/* K2 dentistry — site styles */
:root {
  --ink: #16202B;
  --ink-2: #3A4652;
  --muted: #55606B;
  --line: #E4E4DE;
  --line-2: #DDDDD6;
  --ground: #F7F7F5;
  --paper: #FFFFFF;
  --accent: #1F5E63;
  --accent-dark: #14454A;
  --accent-tint: #EEF3F3;
  --gold: #8A6A33;
  --night: #14202B;
  --night-2: #1C2A37;
  --night-line: #33414F;
  --night-ink: #F2F2EE;
  --night-muted: #B8C2CC;
  --night-gold: #D2B27A;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ground);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.45; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-2); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1; }
.brand-sub { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: 9px 18px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 500; padding: 13px 28px; border-radius: 2px; border: 1px solid var(--accent); line-height: 1.5; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-tint); }
.btn-light { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); font-weight: 700; }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-ghost-light { color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-night { background: var(--night); color: var(--night-ink); }
.eyebrow { font-size: 13px; letter-spacing: 0.24em; color: var(--gold); font-weight: 500; margin-bottom: 14px; }
.section-night .eyebrow { color: var(--night-gold); }
.section-title { font-size: clamp(26px, 3.4vw, 34px); }
.section-head { margin-bottom: 44px; }
.lead { color: var(--ink-2); max-width: 40em; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 56px; }
.stack > * + * { margin-top: 20px; }

/* Hero */
.hero { padding: 88px 0 80px; }
.hero .split { align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.35; letter-spacing: 0.04em; }
.hero p.lead { font-size: 17px; }
.hero-panel { aspect-ratio: 4 / 5; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.hero-panel::before { content: ""; position: absolute; inset: 24px; border: 1px solid var(--night-line); pointer-events: none; }
.hero-panel .big { font-family: var(--serif); font-size: clamp(120px, 16vw, 200px); line-height: 0.9; font-weight: 700; position: relative; }
.hero-panel .quote { font-family: var(--serif); font-size: 18px; line-height: 2; position: relative; color: var(--night-muted); }
.hero-panel .quote strong { color: var(--night-gold); font-weight: 600; }
.hero-photo { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 40px 0; }
.stat-num { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.3; }
.stat-num small { font-size: 16px; padding-left: 4px; }
.stat-label { font-size: 14px; color: var(--muted); }

/* Cards */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 22px 24px; }
.card-label { font-size: 12px; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 6px; }
.card-title { font-weight: 500; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.program { border-top: 2px solid var(--ink); padding-top: 28px; }
.program > * + * { margin-top: 18px; }
.program h3 { font-size: 26px; }
.program .meta { font-size: 13px; color: var(--muted); }
.program p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; background: var(--accent-tint); color: var(--accent); padding: 3px 12px; }
.more { font-weight: 500; display: inline-block; padding: 8px 0; }

/* Events */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-item { border-top: 1px solid var(--line); }
.event-item:last-child { border-bottom: 1px solid var(--line); }
.event-link { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px 28px; align-items: baseline; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.event-link:hover { background: var(--paper); color: var(--ink); }
.event-date { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.event-date small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.event-title { font-size: 18px; font-weight: 500; }
.event-sub { font-size: 14px; color: var(--muted); }
.event-type { font-size: 12px; border: 1px solid var(--accent); color: var(--accent); padding: 2px 10px; white-space: nowrap; }
.event-item.past .event-link { color: var(--muted); }
.empty { background: var(--paper); border: 1px dashed #BFC4C8; padding: 28px; color: var(--ink-2); }
@media (max-width: 640px) {
  .event-link { grid-template-columns: 1fr; }
  .event-type { justify-self: start; }
}

/* Event detail */
.detail-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.detail-table th, .detail-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.detail-table th { width: 9em; font-weight: 500; color: var(--muted); font-size: 14px; white-space: nowrap; }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: 0; }
.fee-list { list-style: none; margin: 0; padding: 0; }
.notice { background: var(--accent-tint); border-left: 0; padding: 18px 22px; color: var(--accent-dark); }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.share a { font-size: 14px; padding: 8px 16px; }
.prose > * + * { margin-top: 1em; }

/* Hands-on (night) */
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--night-line); }
.course-list li:last-child { border-bottom: 1px solid var(--night-line); }
.course-no { font-family: var(--serif); font-size: 28px; color: var(--night-gold); margin-right: 16px; }
.course-date { font-size: 15px; color: var(--night-muted); }
.course-theme { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.course-teacher { font-size: 14px; color: var(--night-muted); }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.fee-box { border: 1px solid var(--night-line); padding: 24px; }
.fee-box > * + * { margin-top: 8px; }
.fee-box .label { font-size: 13px; letter-spacing: 0.12em; color: var(--night-gold); }
.fee-box .num { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.cta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--night-2); padding: 24px 28px; }
.cta-bar p { flex-grow: 1; }
.muted-night { color: var(--night-muted); }

/* Voices */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.voice { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.9; }
.voice figcaption { font-size: 13px; color: var(--muted); }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-size: 14px; color: var(--muted); min-width: 96px; }
.calendar-frame { width: 100%; height: 420px; border: 1px solid var(--line); background: var(--paper); }

/* History */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-family: var(--serif); font-weight: 600; }

/* Page head */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 46px); }
.page-head .lead { margin-top: 18px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* CTA */
.cta { background: var(--accent); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-size: clamp(24px, 3vw, 30px); }
.cta p { color: #E3EEEE; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer a { color: var(--night-muted); }
.site-footer a:hover { color: #fff; }
.foot-brand { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--night-ink); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.copyright { border-top: 1px solid #2A3845; padding: 20px 24px 32px; max-width: var(--wrap); margin: 0 auto; font-size: 13px; }

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .site-header { position: static; }
  .nav { gap: 0 16px; }
  .hero-panel { aspect-ratio: auto; min-height: 320px; }
  .detail-table th { width: 6.5em; padding: 14px 12px; }
  .detail-table td { padding: 14px 12px; }
}

/* Logo, hero photo, lecturers */
.brand { align-items: center; }
.brand-logo { height: 40px; width: auto; }
.foot-logo { height: 120px; width: auto; margin-bottom: 8px; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.hero-figure figcaption { font-family: var(--serif); font-size: 15px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.teachers { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.teacher { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--night-muted); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--night-line); flex-shrink: 0; }
.avatar-blank { display: inline-flex; align-items: center; justify-content: center; background: var(--night-2); color: var(--night-gold); font-family: var(--serif); font-size: 20px; }
.course-tag { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--night-gold); border: 1px solid var(--night-gold); padding: 1px 10px; margin-left: 12px; vertical-align: middle; }
.course-list li { align-items: center; }

/* ---------- Color themes (data/site.json "theme") ---------- */
:root[data-theme="mono"] {
  --ink:#2E2E2E; --ink-2:#4A4A4A; --muted:#6B6B6B; --line:#E6E6E6; --line-2:#E6E6E6;
  --ground:#FFFFFF; --paper:#F7F7F7; --accent:#2E2E2E; --accent-dark:#000000; --accent-tint:#F1F1F1;
  --gold:#6B6B6B; --night:#2E2E2E; --night-2:#3A3A3A; --night-line:#555555;
  --night-ink:#F5F5F5; --night-muted:#C4C4C4; --night-gold:#E0E0E0;
}
:root[data-theme="gold"] {
  --ink:#2B2B2B; --ink-2:#4A4A4A; --muted:#6B6B6B; --line:#E9E4DA; --line-2:#E9E4DA;
  --ground:#FFFFFF; --paper:#FAF8F4; --accent:#2B2B2B; --accent-dark:#000000; --accent-tint:#F5EFE3;
  --gold:#86672F; --night:#2B2B2B; --night-2:#363636; --night-line:#4D4A45;
  --night-ink:#F6F3ED; --night-muted:#CFC8BB; --night-gold:#D6B678;
}
:root[data-theme="navy"] {
  --ink:#1C2633; --ink-2:#3B4654; --muted:#5C6773; --line:#E3E5E8; --line-2:#E3E5E8;
  --ground:#FFFFFF; --paper:#F6F7F8; --accent:#1C2633; --accent-dark:#0D141D; --accent-tint:#EDF0F4;
  --gold:#86672F; --night:#16202C; --night-2:#1E2A38; --night-line:#34414F;
  --night-ink:#F2F2EE; --night-muted:#B8C2CC; --night-gold:#D2B27A;
}

/* ---------- Simple top page ---------- */
.hero-logo { padding: 96px 0 88px; text-align: center; border-bottom: 1px solid var(--line); }
.hero-logo img { height: 200px; width: auto; margin: 0 auto 40px; }
.hero-logo h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: 0.2em; font-weight: 500; }
.hero-logo .lead { margin: 20px auto 0; max-width: 34em; font-size: 15px; }
.hero-logo .btn-row { justify-content: center; margin-top: 36px; }
.rule-gold { width: 48px; height: 1px; background: var(--gold); margin: 28px auto; border: 0; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.block-head .section-title { font-size: clamp(22px, 2.6vw, 28px); }
.section-tight { padding: 72px 0; }
.course-mini { list-style: none; margin: 0; padding: 0; }
.course-mini li { display: grid; grid-template-columns: 120px 1fr auto; gap: 4px 24px; align-items: baseline; padding: 16px 4px; border-top: 1px solid var(--line); }
.course-mini li:last-child { border-bottom: 1px solid var(--line); }
.course-mini .cm-date { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.course-mini .cm-theme { font-weight: 500; }
.course-mini .cm-who { font-size: 13px; color: var(--muted); }
.course-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.course-foot p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .course-mini li { grid-template-columns: 1fr; } }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; text-decoration: none; }
.cta { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.cta p { color: var(--ink-2); }

/* ---------- Typography matched to the logo ---------- */
/* K2 / since 2017 = Cormorant Garamond, DENTISTRY = Montserrat */
:root {
  --display: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --label: "Montserrat", "Zen Kaku Gothic New", sans-serif;
}
h1, h2, h3, .section-title { font-family: var(--display); font-weight: 500; }
.eyebrow { font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.brand-sub { font-family: var(--label); font-size: 11px; letter-spacing: 0.32em; }
.event-date, .cm-date, .course-no, .stat-num, .fee-box .num, .timeline .year, .news-date {
  font-family: var(--display); font-variant-numeric: lining-nums; font-weight: 500;
}
.event-date { font-size: 22px; }
.event-date, .cm-date { letter-spacing: 0.02em; }
.cm-date { font-size: 21px; }
.news-date { font-size: 16px; }
.course-no { font-size: 30px; }
.hero-logo h1 { font-family: var(--serif); font-weight: 400; }
.btn { font-family: var(--sans); letter-spacing: 0.06em; }
.event-type, .course-tag, .tag { letter-spacing: 0.04em; }
.voice blockquote { font-weight: 400; }

/* ---------- Course = navy (theme C) inside the gold site ---------- */
.theme-navy {
  --ink:#1C2633; --ink-2:#3B4654; --muted:#5C6773; --line:#E3E5E8; --line-2:#E3E5E8;
  --paper:#F6F7F8; --accent:#1C2633; --accent-dark:#0D141D; --accent-tint:#EDF0F4;
  --gold:#86672F; --night:#16202C; --night-2:#1E2A38; --night-line:#34414F;
  --night-ink:#F2F2EE; --night-muted:#B8C2CC; --night-gold:#D2B27A;
}
.section-night .course-mini li { border-color: var(--night-line); }
.section-night .cm-date small, .section-night .cm-who, .section-night .course-foot p { color: var(--night-muted) !important; }
.section-night .more { color: var(--night-gold); }
.section-night .more:hover { color: #fff; }

h1, h2, h3, .section-title { font-variant-numeric: lining-nums; }

/* ---------- Top: portraits, course banner, gallery ---------- */
.hero-logo { border-bottom: 0; padding-bottom: 56px; }
.portraits { padding: 0 0 80px; border-bottom: 1px solid var(--line); }
.portraits .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 40px; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); }
.portrait figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 18px; text-align: center; }
.p-role { font-family: var(--label); font-size: 10px; letter-spacing: 0.28em; color: var(--gold); }
.p-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.3em; margin-top: 6px; }
.p-roma { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--muted); }
.portraits-more { text-align: center; margin-top: 28px; }
@media (max-width: 640px) { .portraits .wrap { gap: 16px; } .p-name { font-size: 17px; letter-spacing: 0.15em; } .p-role { font-size: 9px; letter-spacing: 0.16em; } }
.course-banner { background: var(--night); color: var(--night-ink); }
.course-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 40px; padding-bottom: 40px; }
.course-banner .eyebrow { color: var(--night-gold); margin-bottom: 6px; }
.cb-title { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); letter-spacing: 0.08em; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-item { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.55)); }
.g-blank { display: flex; align-items: center; justify-content: center; border: 1px dashed #C9C2B5; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.insta-only { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }

/* ---------- Guide cards (top) ---------- */
.guide { padding: 0 0 80px; border-bottom: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.guide-card:hover { border-color: var(--gold); color: var(--ink); }
.g-en { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--gold); }
.g-ja { font-family: var(--serif); font-size: 20px; letter-spacing: 0.08em; }
.g-tx { font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.en-name { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--muted); margin-top: 14px; }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 40px; }
.leader { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.leader img, .profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); }
.leader-name { font-family: var(--serif); font-size: 26px; letter-spacing: 0.2em; display: flex; flex-direction: column; gap: 2px; }
.leader-name .p-roma { letter-spacing: 0.02em; }
.story { list-style: none; margin: 0; padding: 0; }
.story-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.story-item:last-child { border-bottom: 1px solid var(--line); }
.story-year { font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--gold); line-height: 1.2; font-variant-numeric: lining-nums; }
.story-item h3 { font-family: var(--serif); font-size: 22px; }
.story-item p { color: var(--ink-2); max-width: 40em; }
.h-photo { margin: 0; }
.h-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.h-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.story-item .h-photo { max-width: 420px; }
@media (max-width: 640px) { .leader { grid-template-columns: 110px 1fr; gap: 16px; } .story-item { grid-template-columns: 1fr; gap: 8px; } .leader-name { font-size: 20px; letter-spacing: 0.1em; } }

/* ---------- History ---------- */
.year-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 16px 0 32px; position: sticky; top: 72px; background: var(--ground); z-index: 2; border-bottom: 1px solid var(--line); }
.year-nav a { font-family: var(--display); font-size: 18px; text-decoration: none; color: var(--ink); padding: 4px 10px; font-variant-numeric: lining-nums; }
.year-nav a:hover { color: var(--gold); }
.h-year { display: grid; grid-template-columns: 140px 1fr; gap: 16px 40px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.h-year-num { font-family: var(--display); font-size: 44px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums; }
.h-list { list-style: none; margin: 0; padding: 0; }
.h-list li { display: grid; grid-template-columns: 110px 140px 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.h-list li:first-child { border-top: 0; padding-top: 0; }
.h-date { font-family: var(--display); font-size: 17px; font-variant-numeric: lining-nums; }
.h-type { font-size: 13px; color: var(--gold); letter-spacing: 0.04em; }
.h-body { display: flex; flex-direction: column; gap: 2px; }
.h-title { font-weight: 500; }
.h-sp { font-size: 14px; color: var(--ink-2); }
.tbd { color: var(--muted); font-size: 13px; }
.h-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.note { margin-top: 40px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .year-nav { top: 0; }
  .h-year { grid-template-columns: 1fr; }
  .h-list li { grid-template-columns: 1fr; gap: 2px; }
  .h-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- People ---------- */
.profiles { display: flex; flex-direction: column; gap: 56px; }
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; scroll-margin-top: 100px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 24px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.person-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 1px solid var(--night-line); }
.person-blank { display: flex; align-items: center; justify-content: center; background: var(--night-2); color: var(--night-gold); font-family: var(--serif); font-size: 36px; }
.person-name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em; }
.person-meta { font-size: 13px; color: var(--night-muted); }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; gap: 20px; } .profile img { max-width: 240px; } .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .person-photo { width: 96px; height: 96px; } }

.person-bio { font-size: 12.5px; line-height: 1.7; color: var(--night-muted); margin-top: 8px; }
.person-bio.is-pending { opacity: .55; letter-spacing: .05em; }
.people-light .person-meta, .people-light .person-bio { color: var(--ink-2); }
.pending-note { padding: 28px; border: 1px dashed var(--line, #ccc); color: var(--ink-2); text-align: center; font-size: 14px; }

/* ---------- Roots / lineage ---------- */
.roots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 8px; }
.root-card { background: var(--paper); border: 1px solid var(--line); padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.root-card h3 { font-family: var(--serif); font-size: 22px; }
.root-card p { color: var(--ink-2); }
.root-en, .root-card .root-en { font-family: var(--display); font-size: 15px; color: var(--muted); margin-top: -4px; }
.roots-merge { text-align: center; font-size: 28px; color: var(--gold); margin: 8px 0 0; line-height: 1; }
.lineage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 0 8px; }
.lin-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); }
.lin-box:hover { border-color: var(--gold); color: var(--ink); }
.lin-yr { font-family: var(--display); font-size: 15px; color: var(--gold); font-variant-numeric: lining-nums; }
.lin-nm { font-family: var(--serif); font-weight: 600; }
.lin-k2 { grid-column: 1 / -1; text-align: center; align-items: center; position: relative; margin-top: 18px; border-color: var(--gold); }
.lin-k2::before { content: "↓"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 18px; }
.year-nav .nav-root { font-family: var(--serif); font-size: 14px; color: var(--ink-2); }
.track-head, .roots-divider { padding-top: 40px; }
.roots-divider { margin-top: 56px; border-top: 2px solid var(--gold); }
.root-track { padding-top: 24px; scroll-margin-top: 140px; }
.root-head { padding: 32px 0 8px; }
.root-lead { color: var(--ink-2); max-width: 46em; margin-top: 10px; }
@media (max-width: 640px) { .roots { grid-template-columns: 1fr; } }
