/* =========================================================
   中国故事成語サイト ── 武将 個別ページ用スタイル (busho.css)
   feature.css を読み込んだ上で、その追加として使う記事レイアウト。
   （:root の色変数・body・.hero・.site-footer・.breadcrumb・.ad-slot
     ・.source-note は feature.css 側を利用する）
   ========================================================= */

/* ===== 記事ヒーロー（人物ページ用にコンパクト化） ===== */
.hero.article { padding: 64px 20px 54px; }
.hero.article h1 { font-size: clamp(30px, 6vw, 52px); margin-bottom: 10px; }
.hero.article .reading { font-size: 16px; opacity: 0.8; font-weight: 400; margin-left: 8px; }
.hero.article .dyn { font-size: 15px; opacity: 0.85; margin-top: 6px; }
.hero.article .dyn .sep { opacity: 0.5; margin: 0 8px; }

/* ===== 2カラムレイアウト（本文＋基本データ） ===== */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 40px;
  align-items: start;
  margin: 30px 0;
}
.article-main { min-width: 0; }
.article-side { position: sticky; top: 76px; }

/* ===== 肖像 ===== */
.portrait-figure {
  margin: 0 0 26px;
  text-align: center;
}
.portrait-figure img {
  max-width: 100%;
  width: 260px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(59,47,30,0.16);
  background: var(--bg-accent);
}
.portrait-figure .placeholder {
  width: 220px; height: 280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--bg-warm), var(--bg-dark));
  color: rgba(245,239,224,0.9);
  font-family: 'Noto Serif JP', serif; font-size: 84px; font-weight: 700;
  border-radius: 12px;
}
.portrait-figure figcaption {
  font-size: 12px; color: var(--text-light); margin-top: 10px; line-height: 1.7;
}

/* ===== 基本データ（インフォボックス） ===== */
.infobox {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent-gold);
  border-radius: 12px;
  padding: 20px 22px;
}
.infobox h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px; font-weight: 700; color: var(--text-main);
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td {
  text-align: left; font-size: 13.5px; padding: 7px 0;
  vertical-align: top; border-bottom: 1px dashed var(--border-light);
  line-height: 1.7;
}
.infobox th { color: var(--accent-gold); font-weight: 700; width: 34%; white-space: nowrap; padding-right: 10px; }
.infobox td { color: var(--text-sub); }
.infobox tr:last-child th, .infobox tr:last-child td { border-bottom: none; }

/* ===== 記事本文 ===== */
.article-body { font-size: 16px; color: var(--text-main); line-height: 2.0; }
.article-body .lead {
  font-size: 16.5px; color: var(--text-main); line-height: 2.05;
  background: var(--bg-card); border-left: 4px solid var(--accent-gold);
  padding: 20px 24px; border-radius: 0 8px 8px 0; margin-bottom: 30px;
}
.article-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(21px, 3.4vw, 27px); font-weight: 700; color: var(--text-main);
  line-height: 1.45; margin: 44px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-body h2::before { content: "■ "; color: var(--accent-red); }
.article-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px; font-weight: 700; color: var(--accent-red);
  margin: 30px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body strong { color: var(--text-main); font-weight: 700; border-bottom: 2px solid var(--accent-gold); }
.article-body ul, .article-body ol { margin: 0 0 18px 1.4em; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent-red); }

/* 名言・引用 */
.article-body blockquote.meigen {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent-red);
  border-radius: 0 8px 8px 0;
  padding: 18px 24px; margin: 24px 0;
  font-family: 'Noto Serif JP', serif; font-size: 18px; color: var(--text-main); line-height: 1.9;
}
.article-body blockquote.meigen .src { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* 本文中の表 */
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; overflow-x: auto; display: block; }
.article-body thead th { background: var(--bg-deep); color: var(--text-on-dark); padding: 10px 12px; text-align: left; white-space: nowrap; }
.article-body tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border-light); }
.article-body tbody tr:nth-child(even) { background: var(--bg-light); }

/* ポイントまとめボックス */
.point-box {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.point-box .pt { font-weight: 700; color: var(--accent-red); display: block; margin-bottom: 8px; font-family: 'Noto Serif JP', serif; }

/* ===== 関連人物カード ===== */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.rel-card {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 12px 14px; transition: box-shadow .25s, transform .2s;
}
.rel-card:hover { box-shadow: 0 6px 18px rgba(59,47,30,0.13); transform: translateY(-2px); }
.rel-card .rn { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 16px; }
.rel-card .rr { font-size: 12px; color: var(--text-light); }

/* ===== 前後ナビ ===== */
.pager { display: flex; justify-content: space-between; gap: 14px; margin: 40px 0 10px; }
.pager a {
  flex: 1; text-decoration: none; color: var(--text-sub);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; font-size: 14px; transition: all .2s;
}
.pager a:hover { background: var(--bg-accent); color: var(--accent-red); }
.pager a.next { text-align: right; }
.pager a .lbl { display: block; font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
.pager a.empty { visibility: hidden; }

/* 一覧へ戻るボタン */
.back-btn { text-align: center; margin: 30px 0; }
.back-btn a {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px;
  color: #3B2F1E; background: var(--accent-gold); padding: 12px 30px; border-radius: 30px; transition: all .2s;
}
.back-btn a:hover { background: #d8a948; transform: translateY(-2px); }

/* ===== 一番の見せ場 ===== */
.highlight-box {
  background: linear-gradient(160deg, #FFFDF7 0%, #F7EEDB 100%);
  border: 1px solid var(--border); border-top: 4px solid var(--accent-red);
  border-radius: 10px; padding: 24px 26px 8px; margin: 10px 0 30px;
}
.highlight-box .hl-when { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-gold); letter-spacing: 1px; margin-bottom: 4px; }
.highlight-box .hl-title { font-family: 'Noto Serif JP', serif; font-size: 21px; font-weight: 900; line-height: 1.5; margin-bottom: 14px; color: var(--text-main); }
.highlight-box .hl-why { font-size: 14px; color: var(--text-sub); background: rgba(196,151,59,0.12); border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; }
.highlight-box .hl-why b { color: var(--accent-red); margin-right: 6px; }

/* ===== 沿革（年表） ===== */
.article-body table.enkaku { display: table; table-layout: fixed; }
.article-body table.enkaku th:first-child, .article-body table.enkaku td:first-child { width: 9.5em; white-space: nowrap; color: var(--accent-gold); font-weight: 700; }
.article-body table.enkaku thead th:first-child { color: var(--text-on-dark); }
@media (max-width: 600px) {
  .highlight-box { padding: 20px 18px 6px; }
  .article-body table.enkaku th:first-child, .article-body table.enkaku td:first-child { width: 7.5em; white-space: normal; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 820px) {
  .article-wrap { grid-template-columns: 1fr; gap: 24px; }
  .article-side { position: static; order: -1; }
}
