:root {
  --color-bg: #faf8f3;
  --color-paper: #f7f2e8;
  --color-ink: #203632;
  --color-muted: #3e5550;
  --color-line: #e4ddd2;
  --color-form: #8a847b;
  --color-stroke: #3a3631;
  --color-accent: #285d85;
  --color-soft: #eaf1f7;
  --color-on: #fff;
  --font-sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 120px;
  --wrap: 1120px;
  --measure: 720px;
  --show: block;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.03em;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0 0 1rem; }
h1, h2, .pull {
  font-family: var(--font-serif);
  font-weight: 600;
  line-break: strict;
  word-break: auto-phrase;
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4.2vw + 14px, 60px);
  line-height: 1.4;
  letter-spacing: 0.06em;
}
h2 {
  font-size: clamp(24px, 2vw + 17px, 40px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 20px;
  top: 8px;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 8px 16px;
  transform: translateY(-160%);
  z-index: 20;
}
.skip:focus { transform: none; }

.preview-bar {
  background: var(--color-paper);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.7;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
}
.switch { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.switch button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--color-form);
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.switch button[aria-pressed="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.logo { text-decoration: none; color: var(--color-ink); margin-right: auto; display: grid; }
.logo-ja { font-family: var(--font-serif); font-weight: 600; font-size: 18px; letter-spacing: 0.08em; }
.logo-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-transform: uppercase;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.menu-btn {
  display: none;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--color-form);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.menu-btn .close { display: none; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { text-decoration: none; color: var(--color-ink); font-size: 14px; letter-spacing: 0.04em; }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--color-accent); }
.nav-en { display: block; color: var(--color-muted); font-size: 14px; letter-spacing: 0.02em; }

.btn {
  --show: inline-flex;
  display: inline-flex;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { align-items: center; text-align: center; }
}
.btn-primary { background: var(--color-accent); color: var(--color-on); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-ghost { background: transparent; color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.btn-en { font-size: 14px; font-weight: 400; letter-spacing: 0.02em; }
.header-cta { --show: inline-flex; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.measure { max-width: var(--measure); }
.section { padding: 64px 0; }
@media (min-width: 960px) {
  .section { padding: 104px 0; }
}
.kicker {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.h1-en, .lede-en {
  color: var(--color-muted);
  font-size: 16px;
  letter-spacing: 0.02em;
}
@media (min-width: 960px) {
  .h1-en { font-size: 14px; }
}
.note { color: var(--color-muted); font-size: 14px; line-height: 1.7; }

.hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(16px, 1fr) minmax(0, min(640px, 58%)) minmax(0, min(420px, 34%)) minmax(16px, 1fr);
    column-gap: 32px;
    align-items: end;
    padding: 96px 0 72px;
  }
  .hero .wrap { grid-column: 2; max-width: none; width: auto; margin: 0; }
}
.hero-copy { max-width: 40rem; position: relative; z-index: 1; }
.badge {
  --show: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-on);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.badge span[lang="en"] { letter-spacing: 0.04em; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-art { margin: 32px 0 0; }
.hero-art svg { width: 100%; }
@media (min-width: 960px) {
  .hero-art {
    grid-column: 3;
    width: 100%;
    margin: 0;
    align-self: end;
  }
}

.band { background: var(--color-paper); }
.soft { background: var(--color-soft); }
.split {
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 48px; }
}
.pull {
  font-size: clamp(24px, 2vw + 17px, 36px);
  line-height: 1.5;
  margin: 0;
}
.paths { display: grid; gap: 24px; }
@media (min-width: 800px) {
  .paths { grid-template-columns: 1.4fr 0.8fr; align-items: stretch; }
}
.path {
  display: block;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 32px;
}
.path-quiet { background: transparent; }
.path strong { display: block; font-family: var(--font-serif); font-size: 28px; font-weight: 600; letter-spacing: 0.04em; margin: 8px 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}
@media (min-width: 800px) {
  .timeline li { grid-template-columns: 9rem 1fr; gap: 32px; }
}
.year { font-family: var(--font-serif); font-weight: 600; font-size: 22px; letter-spacing: 0.06em; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--color-line);
  font-weight: 400;
}
th { color: var(--color-muted); font-weight: 500; width: 9rem; }
@media (max-width: 560px) {
  th, td { display: block; width: auto; padding-right: 0; }
  th { border-bottom: 0; padding-bottom: 0; }
}
.names { display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .names { grid-template-columns: 1fr 1fr; }
}
.names a, .names span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--color-line);
  padding: 8px 16px 8px 0;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid var(--color-line);
  padding: 8px 0;
}
details:last-of-type { border-bottom: 1px solid var(--color-line); }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 500; }
.steps { display: grid; gap: 24px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.step b {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-accent);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 64px 0;
  font-size: 14px;
  line-height: 1.7;
}
.foot { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .foot { grid-template-columns: 1.2fr 0.8fr; }
}
.related { display: grid; gap: 8px; }
.gap-title { margin-top: var(--space-5); }

[data-when] { display: none !important; }
html:not([data-status]) [data-when~="planning"],
html[data-status="planning"] [data-when~="planning"],
html[data-status="closed"] [data-when~="closed"],
html[data-status="open"] [data-when~="open"] {
  display: var(--show, block) !important;
}

@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 16px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked + .menu-btn .open { display: none; }
  .nav-toggle:checked + .menu-btn .close { display: inline; }
  .nav-toggle:focus-visible + .menu-btn {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==== TARNAR トークン第2版レイヤー（2026-10-10 Claude適用。S00 tokens.css 第2段に合わせる） ==== */
:root {
  --read: 672px; --measure: 672px; --read-max: 672px;
  --color-paper: #f4efe6; --color-surface: #f4efe6; --color-cream: #f4efe6;
  --color-stroke: #203632;
  --radius-btn: 0; --radius-card: 0;
}
html body h1 { font-size: clamp(26px, 7vw, 46px); line-height: 1.35; letter-spacing: 0.02em; }
html body h2 { font-size: clamp(26px, 5vw, 36px); line-height: 1.35; }
html body h3 { font-size: 22px; }
.section { padding-top: 42px; padding-bottom: 42px; }
@media (min-width: 800px) { .section { padding-top: 64px; padding-bottom: 64px; } }
html body *:not(img):not(video):not(iframe) { border-radius: 0 !important; }
html body img { border-radius: 2px; }
/* 線画：色と太さ（表示px）。記事本文の中の図は対象外 */
svg:not(.entry-body svg) [stroke="#3A3631" i] { stroke: #203632; }
svg:not(.entry-body svg) [fill="#FCFBF7" i] { fill: #faf8f3; }
svg:not(.entry-body svg) [fill="#F7F2E8" i] { fill: #f4efe6; }
svg:not(.entry-body svg) :is(:is(path, line, circle, ellipse, polyline, polygon, rect)[stroke]:not([stroke="none"]), g[stroke]:not([stroke="none"]) :is(path, line, circle, ellipse, polyline, polygon, rect)) { vector-effect: non-scaling-stroke; stroke-width: 2px; }
.hero-art svg :is(:is(path, line, circle, ellipse, polyline, polygon, rect)[stroke]:not([stroke="none"]), g[stroke]:not([stroke="none"]) :is(path, line, circle, ellipse, polyline, polygon, rect)) { stroke-width: 3px; }
@media (min-width: 800px) { .hero-art svg :is(:is(path, line, circle, ellipse, polyline, polygon, rect)[stroke]:not([stroke="none"]), g[stroke]:not([stroke="none"]) :is(path, line, circle, ellipse, polyline, polygon, rect)) { stroke-width: 4px; } }
/* ==== /TARNAR トークン第2版レイヤー ==== */
