/* =========================================================
   ゆるっとイギリス史 共通デザイン
   色はここ（:root）でまとめて管理しています
   ========================================================= */
:root {
  --navy: #1b2a4a;      /* 濃紺（メインカラー） */
  --navy-2: #2c3e66;
  --red: #c8102e;       /* ユニオンジャックの赤 */
  --gold: #b08d57;      /* 王冠っぽい金 */
  --cream: #f7f3ea;     /* 紙っぽい背景色 */
  --paper: #ffffff;
  --ink: #1f2430;       /* 文字色 */
  --muted: #5f6675;
  --line: #e2dccd;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(27, 42, 74, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: "Noto Serif JP", serif; line-height: 1.4; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 16px; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.sp { display: none; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 4px solid var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { color: #fff; text-decoration: none; font-family: "Noto Serif JP", serif; font-weight: 900; font-size: 1.15rem; }
.logo-mark { margin-right: 6px; }
.nav a { color: #fff; text-decoration: none; margin-left: 20px; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--gold); }

/* ---------- トップのヒーロー ---------- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover; background-position: center;
  color: #fff; padding: 96px 0 88px; text-align: center;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); margin: 8px 0 16px; letter-spacing: .05em; text-shadow: 0 3px 12px rgba(0,0,0,.4); }
.hero-kicker { color: var(--gold); font-weight: 700; letter-spacing: .1em; margin: 0; }
.hero-lead { max-width: 680px; margin: 0 auto; font-size: 1.05rem; }
.hero-btns { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; color: rgba(255,255,255,.7); }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: 12px 28px; border-radius: 999px; font-weight: 700; }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn:hover { opacity: .9; }

/* ---------- 見出し ---------- */
.sec-title { font-size: 1.6rem; margin: 0 0 24px; padding-left: 14px; border-left: 6px solid var(--red); }
.sec-title span { display: block; font-size: .8rem; color: var(--gold); font-family: "Noto Sans JP", sans-serif; letter-spacing: .1em; }

.digest { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.digest p { margin: 6px 0; }
.digest b { color: var(--navy); }
.note { font-size: .9rem; color: var(--muted); }

/* ---------- カード一覧 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); }
.card-img { height: 150px; background: var(--navy) center/cover no-repeat; position: relative; }
.card-img.portrait { height: 200px; background-position: center 20%; }
.card-body { padding: 12px 16px 16px; }
.card-body h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.years { margin: 2px 0 6px; font-size: .8rem; color: var(--muted); }
.catch { margin: 0; font-size: .9rem; }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-family: "Noto Sans JP", sans-serif; }
.card-img .badge { position: absolute; left: 10px; top: 10px; }

/* ---------- 下層ページの見出し ---------- */
.page-head { background: var(--navy); color: #fff; padding: 40px 0 36px; border-bottom: 4px solid var(--gold); }
.page-head h1 { margin: 4px 0 8px; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.page-head p { margin: 0; }
.crumb { font-size: .8rem; opacity: .8; margin-bottom: 12px !important; }
.crumb a { color: #fff; }
.kicker { color: var(--gold); font-weight: 700; }
.catch-big { font-size: 1.15rem; }
.en { opacity: .85; }

/* ---------- 記事 ---------- */
.article { max-width: 860px; }
.hero-fig { margin: 0 0 40px; }
.hero-fig img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { font-size: .72rem; text-align: right; margin-top: 4px; }
figcaption a { color: var(--muted); }
.lead { font-size: 1.05rem; background: var(--paper); padding: 20px 24px; border-radius: var(--radius); margin-bottom: 40px; }

/* ---------- 年表（縦のタイムライン） ---------- */
.timeline { list-style: none; margin: 0 0 40px; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 112px; top: 6px; bottom: 6px; width: 3px; background: var(--line); }
.timeline li { display: flex; gap: 28px; margin-bottom: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 102px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--red); border: 3px solid var(--cream); }
.t-year { flex: 0 0 90px; font-weight: 700; color: var(--navy); font-size: .9rem; text-align: right; padding-top: 4px; }
.timeline li > div { padding-left: 22px; }
.timeline h4 { margin: 0 0 2px; font-size: 1.08rem; }
.timeline p { margin: 0; }

.tsukkomi { background: #fff7e0; border: 2px dashed var(--gold); border-radius: var(--radius); padding: 18px 22px; margin: 32px 0; }
.tsukkomi h3 { margin: 0 0 6px; color: var(--red); font-size: 1.1rem; }
.tsukkomi h3::before { content: "💡 "; }
.tsukkomi p { margin: 0; }
.tsukkomi ul { margin: 0; padding-left: 1.2em; }
.tsukkomi li { margin-bottom: 6px; }

.more { font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.pager a { text-decoration: none; font-weight: 700; }

/* ---------- 年表ページ ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.toc a { background: var(--paper); padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: .85rem; box-shadow: var(--shadow); }
.tl-era { margin-bottom: 56px; scroll-margin-top: 80px; }
.tl-era h2 { font-size: 1.5rem; margin-bottom: 4px; }
.tl-era h2 .badge { margin-right: 10px; vertical-align: middle; }
.tl-era h2 small { font-size: .85rem; color: var(--muted); margin-left: 10px; font-family: "Noto Sans JP", sans-serif; }
.tl-era > .catch { margin-bottom: 20px; color: var(--muted); }
.group-title { font-size: 1.2rem; margin: 40px 0 16px; }
.group-title a { text-decoration: none; color: var(--navy); }

/* ---------- 人物ページ ---------- */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; margin-bottom: 32px; }
.portrait-fig { margin: 0; }
.portrait-fig img { width: 100%; max-height: 380px; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-box { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.profile-box dl { display: grid; grid-template-columns: 5em 1fr; gap: 6px 12px; margin: 0 0 12px; }
.profile-box dt { color: var(--muted); font-size: .85rem; padding-top: 2px; }
.profile-box dd { margin: 0; font-weight: 700; }
.summary { margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.quote { margin: 0 0 40px; padding: 20px 28px; background: var(--navy); color: #fff; border-radius: var(--radius); font-family: "Noto Serif JP", serif; }
.quote p { margin: 0; font-size: 1.2rem; }
.quote cite { display: block; font-size: .8rem; color: var(--gold); margin-top: 8px; font-style: normal; font-family: "Noto Sans JP", sans-serif; }
.bio p { margin: 0 0 1.2em; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 32px 0; font-size: .85rem; margin-top: 40px; }
.site-footer a { color: #fff; }
.sign { color: var(--gold); font-weight: 700; }

/* ---------- スマホ向け ---------- */
@media (max-width: 640px) {
  .sp { display: inline; }
  .nav a { margin-left: 14px; }
  .logo { font-size: 1rem; }
  .section { padding: 36px 0; }
  .hero { padding: 64px 0 60px; }
  .profile { grid-template-columns: 1fr; }
  .portrait-fig img { max-height: 420px; }
  .timeline::before { left: 7px; }
  .timeline li { flex-direction: column; gap: 0; padding-left: 28px; }
  .timeline li::before { left: -2px; top: 6px; }
  .t-year { text-align: left; flex: none; padding-top: 0; }
  .timeline li > div { padding-left: 0; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img.portrait { height: 160px; }
  .pager { flex-direction: column; }
}
