/* ========================================
   記事詳細ページ専用スタイル
   ========================================*/

/* main-content の上書き */
main.main-content { padding: 32px 0 60px; }

/* パンくず */
.article-breadcrumb { margin-bottom: 24px; font-size: .875rem; color: var(--text-muted, #6c757d); }
.article-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.article-breadcrumb li::after { content: '›'; margin-left: 6px; color: #aaa; }
.article-breadcrumb li:last-child::after { content: ''; }
.article-breadcrumb a { color: var(--accent-primary, #5f0cb9); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }

/* 単記事は1カラム表示 */
.content-wrapper { display: block !important; grid-template-columns: none !important; }

/* 記事本体カード */
article.article-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(95,12,185,.06);
  padding: 32px 40px !important;
  max-width: 880px;
  margin: 0 auto;
  display: block !important;
}

/* 記事ヘッダー */
.article-header { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 28px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: #6c757d; margin-bottom: 12px; }
.article-category {
  display: inline-block; background: var(--accent-primary, #5f0cb9); color: #fff;
  padding: 2px 10px; border-radius: 4px; font-weight: 600; font-size: .8rem;
}
h1.article-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 800; line-height: 1.4; color: #1a1a1a;
  margin: 12px 0 18px !important; flex: none !important;
}
.article-summary p { font-size: 1rem; line-height: 1.8; color: #444; }

/* シェア */
.social-share { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.share-button {
  border: 1px solid #ddd; background: #f8f9fa; color: #333;
  padding: 6px 14px; border-radius: 6px; font-size: .85rem; cursor: pointer;
  transition: all .2s;
}
.share-button:hover { background: var(--accent-primary, #5f0cb9); color: #fff; border-color: transparent; }
.share-button.twitter:hover { background: #000; }
.share-button.facebook:hover { background: #1877f2; }
.share-button.line:hover { background: #06c755; }

/* 目次 */
.toc, .table-of-contents {
  background: #f8f5ff; border-left: 4px solid var(--accent-primary, #5f0cb9);
  padding: 20px 24px; border-radius: 8px; margin: 28px 0;
}
.toc h2, .table-of-contents h2 { font-size: 1.1rem; margin: 0 0 12px; }
.toc ul, .table-of-contents ul { list-style: none; padding-left: 0; margin: 0; }
.toc li, .table-of-contents li { padding: 4px 0; }
.toc a, .table-of-contents a { color: var(--accent-primary, #5f0cb9); text-decoration: none; }
.toc a:hover, .table-of-contents a:hover { text-decoration: underline; }

/* 記事本文 */
.article-body { font-size: 1rem; line-height: 1.85; color: #333; }
.article-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700;
  border-bottom: 2px solid var(--accent-primary, #5f0cb9);
  padding-bottom: 8px; margin: 36px 0 18px; color: #222;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--accent-primary, #5f0cb9);
  margin: 28px 0 14px;
}
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 12px 0 18px; padding-left: 28px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent-primary, #5f0cb9); }
.article-body strong { color: #111; }

/* page-summary */
.page-summary {
  background: linear-gradient(135deg, #f8f5ff, #fff);
  border: 1px solid rgba(95,12,185,.15);
  border-radius: 10px; padding: 18px 24px; margin: 20px 0 28px;
}
.page-summary-title { font-weight: 700; color: var(--accent-primary, #5f0cb9); margin: 0 0 8px; }
.page-summary ul { margin: 0; padding-left: 20px; }
.page-summary li { margin: 4px 0; }

/* 記事フッター */
.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; color: #666; font-size: .9rem; }
.article-dates p { margin: 4px 0; }

/* レスポンシブ */
@media (max-width: 768px) {
  article.article-content { padding: 24px 18px !important; }
  h1.article-title { font-size: 1.4rem !important; }
}

/* 旧サイドバー非表示 */
.content-wrapper > aside, .content-wrapper > .sidebar { display: none !important; }
