/* AI実践ラボ - メインスタイル */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --border: #e2e8f0;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--primary);
  color: white;
  padding: 24px 0;
  margin-bottom: 40px;
}
.site-header a { color: white; text-decoration: none; }
.site-title { font-size: 1.5rem; margin-bottom: 4px; }
.site-description { font-size: 0.9rem; opacity: 0.85; margin-bottom: 12px; }
.site-header nav a {
  margin-right: 16px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.hero h2 { font-size: 1.6rem; margin-bottom: 12px; }
.hero p { color: var(--text-light); font-size: 1.05rem; }

/* Post List */
.post-list h2 { font-size: 1.3rem; margin-bottom: 24px; }
.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { color: var(--text-light); font-size: 0.95rem; margin-top: 8px; }

/* Post Meta */
.post-meta {
  color: var(--text-light);
  font-size: 0.85rem;
}
.post-meta time { margin-right: 12px; }

/* Tags */
.post-tags { margin-top: 8px; }
.tag {
  display: inline-block;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-right: 6px;
  margin-bottom: 4px;
}

/* Post Content */
.post-header { margin-bottom: 32px; }
.post-title { font-size: 1.7rem; line-height: 1.4; margin-bottom: 12px; }
.post-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.post-content h3 { font-size: 1.1rem; margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.post-content th { background: var(--bg-gray); font-weight: 600; }
.post-content code {
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--bg-gray);
  color: var(--text-light);
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 8px;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Buy Button */
.buy-button {
  display: inline-block;
  background: var(--primary);
  color: white !important;
  padding: 10px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.buy-button:hover { background: var(--primary-dark); }

/* Responsive */
@media (max-width: 600px) {
  .post-title { font-size: 1.3rem; }
  .hero h2 { font-size: 1.3rem; }
  .container { padding: 0 16px; }
}
