:root {
  --ink: #26231f;
  --muted: #6e675e;
  --paper: #f8f5ee;
  --paper-2: #efe8da;
  --line: #d8cdbb;
  --accent: #764936;
  --accent-soft: #efe0d5;
  --deep: #24302b;
  --white: #fffdf8;
  --max: 1120px;
  --reading: 760px;
  --shadow: 0 16px 48px rgba(52, 42, 30, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248,245,238,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216,205,187,.7);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 14px; }
.brand-main { font-weight: 700; font-size: 1.35rem; letter-spacing: .08em; }
.brand-sub { color: var(--accent); font-size: .88rem; letter-spacing: .12em; }
.nav { display: flex; gap: 24px; font-size: .9rem; color: var(--muted); }

.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .16em; font-size: .86rem; }
.hero h1 {
  max-width: 880px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.28;
  letter-spacing: .025em;
  margin: 18px 0 28px;
}
.hero-lead { max-width: 760px; font-size: clamp(1.02rem, 2vw, 1.28rem); color: #4f4942; }
.hero-example {
  margin-top: 42px;
  padding: 26px 30px;
  max-width: 760px;
  border-left: 3px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-example strong { color: var(--accent); }

.hero-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
  max-width: 980px;
  margin: 38px 0 4px;
}
.hero-gallery a {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform .35s ease;
}
.hero-gallery a:hover img {
  transform: scale(1.025);
}
.hero-gallery span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(36,48,43,.88);
  color: var(--white);
  font-family: system-ui, sans-serif;
  font-size: .76rem;
  letter-spacing: .04em;
}
.cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 20px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  transition: .2s ease;
}
.cta:hover { background: var(--deep); color: var(--white); }

.section { padding: 84px 0; }
.section.alt { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-kicker { color: var(--accent); font-family: system-ui, sans-serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.section h2 { margin: 8px 0 0; font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.4; }
.section-intro { max-width: 720px; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #bda994; box-shadow: var(--shadow); }
.card-year { color: var(--accent); font-size: 2.25rem; line-height: 1; margin-bottom: 26px; }
.card-label { font-family: system-ui, sans-serif; color: var(--muted); font-size: .76rem; letter-spacing: .08em; margin-bottom: 10px; }
.card h3 { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.65; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card .more { margin-top: auto; padding-top: 22px; color: var(--accent); font-family: system-ui, sans-serif; font-size: .82rem; }

.pair { min-height: 270px; background: var(--deep); color: var(--white); border-color: var(--deep); }
.pair:hover { color: var(--white); border-color: var(--deep); }
.pair .card-label, .pair p { color: #d7d9d5; }
.pair .names { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.5; margin: 4px 0 18px; }
.pair .x { color: #c9aa92; margin: 0 .2em; }

.connection-list { display: grid; border-top: 1px solid var(--line); }
.connection {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.connection strong { color: var(--accent); font-size: 1.08rem; }
.connection p { margin: 0; color: var(--muted); }
.connection .arrow { font-family: system-ui, sans-serif; color: var(--muted); }

.article-hero { padding: 64px 0 46px; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-family: system-ui, sans-serif; font-size: .78rem; color: var(--muted); margin-bottom: 28px; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.35; margin: 0 0 24px; }
.article-deck { font-size: 1.13rem; color: var(--muted); }
.article-body { padding: 56px 0 96px; }
.article-body h2 { margin: 3.2em 0 .8em; font-size: 1.75rem; line-height: 1.5; }
.article-body h3 { margin: 2.2em 0 .6em; font-size: 1.25rem; }
.article-body p { margin: 1.15em 0; }
.answer-box { background: var(--white); border: 1px solid var(--line); padding: 28px; margin: 0 0 44px; }
.answer-box strong { color: var(--accent); }
.timeline { width: 100%; border-collapse: collapse; margin: 28px 0 42px; background: var(--white); }
.timeline th, .timeline td { border-bottom: 1px solid var(--line); padding: 14px 16px; vertical-align: top; text-align: left; }
.timeline th { font-family: system-ui, sans-serif; font-size: .82rem; color: var(--muted); }
.source-note { padding: 22px 24px; background: var(--paper-2); color: var(--muted); font-size: .9rem; }

.article-figure {
  margin: 38px 0 50px;
}
.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.article-figure--scroll img {
  aspect-ratio: auto;
  max-height: 520px;
  object-fit: contain;
}
.article-figure figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: .76rem;
  line-height: 1.65;
}
.article-figure figcaption a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 50px;
}
.article-figure-pair .article-figure {
  margin: 0;
}
.article-figure-pair .article-figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.category-hero { padding: 64px 0 38px; }
.category-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; }
.category-hero p { color: var(--muted); max-width: 720px; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer-brand { font-weight: 700; letter-spacing: .08em; }
.footer-copy, .footer-links { color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 680px) {
  .wrap, .reading { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 64px; }
  .brand-sub { display: none; }
  .hero { padding: 62px 0 52px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-example { padding: 22px; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 30px; }
  .hero-gallery a { min-height: 138px; }
  .hero-gallery a:first-child { grid-column: 1 / -1; min-height: 205px; }
  .hero-gallery img { min-height: 138px; }
  .hero-gallery a:first-child img { min-height: 205px; }
  .section { padding: 58px 0; }
  .grid-5, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .connection { grid-template-columns: 1fr; gap: 6px; }
  .connection .arrow { display: none; }
  .article-hero { padding: 44px 0 30px; }
  .article-body { padding: 36px 0 68px; }
  .timeline { display: block; overflow-x: auto; white-space: normal; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-figure-pair { gap: 10px; }
  .article-figure-pair figcaption { font-size: .7rem; }
}
