/* ===== 記事ページ専用スタイル ===== */
.article-main {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-light);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* 記事ヘッダー */
.article {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.article-header {
  padding: 40px 48px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-meta time,
.article-meta span:not(.card-category) {
  font-size: 13px;
  color: var(--text-light);
}

.article-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.4;
  margin-bottom: 32px;
}

.article-thumbnail {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  margin: 0 -0px;
}

/* 記事本文 */
.article-body {
  padding: 48px;
  font-size: 16px;
  line-height: 1.9;
}

.article-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.9;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin-bottom: 40px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-serif);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.article-body h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--primary);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { color: var(--text-secondary); }

.article-body strong { color: var(--text-primary); font-weight: 600; }

/* コードブロック */
.code-block {
  background: #1e1e2e;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
}
.code-block pre {
  margin: 0;
}
.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #cdd6f4;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* コールアウト */
.article-callout {
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
}
.article-callout.success {
  background: #ecfdf5;
  border-color: #10b981;
}
.article-callout.warning {
  background: #fffbeb;
  border-color: var(--accent);
}
.article-callout h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.article-callout ul, .article-callout ol {
  margin: 0 0 0 20px;
}
.article-callout p { margin-bottom: 0; }

/* 統計グリッド */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.stat-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 記事フッター */
.article-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-share p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  text-align: right;
}
.share-buttons {
  display: flex;
  gap: 8px;
}
.share-btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.line { background: #06c755; }

/* 関連記事 */
.related-articles h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .article-header { padding: 28px 24px 0; }
  .article-body { padding: 28px 24px; }
  .article-footer { padding: 24px; flex-direction: column; align-items: flex-start; }
  .article-share p { text-align: left; }
  .stats-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
