@import url("tokens.css");

:root {
  --color-accent: var(--color-green);
  --color-accent-link: var(--color-green-link);
  --color-accent-soft: var(--color-green-soft);
  --color-accent-hover: #0e6870;
  --color-muted: var(--color-text-muted);
  --color-form: var(--color-line-control);
  --color-ink: var(--color-ink-line);
  --color-white: var(--color-on-accent);
  --font-mincho: var(--font-serif);
  --content: var(--content-max);
  --read: var(--read-max);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 120px;
  --content: 1120px;
  --read: 720px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--color-accent-link);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--color-white);
  color: var(--color-text);
  padding: 8px 16px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.note {
  background: var(--color-accent-soft);
  color: var(--color-text);
  margin: 0;
  padding: 12px 20px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 251, 247, 0.94);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-header__inner > * { min-width: 0; max-width: 100%; }
.nav { width: 100%; }
.logo {
  text-decoration: none;
  color: var(--color-text);
}
.logo strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.logo span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--color-accent-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 14px;
  line-height: 1.7;
}
.nav a[aria-current="page"] {
  color: var(--color-accent-link);
  font-weight: 500;
}

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--read); }
section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }

h1, h2, h3 {
  font-family: var(--font-mincho);
  font-weight: var(--weight-serif);
  letter-spacing: 0.06em;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  line-height: 1.4;
  margin: 0;
}
h1 { font-size: clamp(30px, 4.2vw + 14px, 60px); }
h2 { font-size: clamp(24px, 2vw + 17px, 40px); line-height: 1.5; }
h3 { font-size: 22px; line-height: 1.5; }

.kicker {
  margin: 0 0 16px;
  color: var(--color-accent-link);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
h1 + .en, h2 + .en { color: var(--color-accent-link); }
.en {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.lead { margin: 24px 0 0; max-width: 40em; }

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 32px;
}
.note, .lead, .en, .hero__cap, figcaption {
  overflow-wrap: break-word;
}
.btn, .btn-sub {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
}
.btn {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn:hover { background: var(--color-accent-hover); color: var(--color-white); }
.btn span, .btn-sub span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.btn-sub {
  background: transparent;
  color: var(--color-accent-link);
  border: 1px solid var(--color-accent-link);
}
.btn-sub:hover { background: var(--color-accent-soft); }

.hero {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: center;
}
.hero__fig { margin: 0; }
.hero__fig svg { width: 100%; height: auto; }
.hero__cap {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.split {
  display: grid;
  gap: 32px;
  align-items: start;
}
.figure {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
}
.figure figcaption {
  padding: 12px 16px 16px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.facts { margin: 0; padding: 0; list-style: none; }
.facts li {
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}
.facts li:last-child { border-bottom: 1px solid var(--color-line); }
.facts strong { display: block; font-weight: 500; }
.facts span { color: var(--color-muted); font-size: 14px; }

.names {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}
.names li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.names b {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.06em;
}
.names span { color: var(--color-muted); font-size: 14px; }
.surface {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 24px;
}
.band { background: var(--color-accent-soft); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
caption {
  text-align: left;
  font-weight: 500;
  margin-bottom: 8px;
}
th, td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}
th { font-weight: 500; color: var(--color-muted); font-size: 14px; }

.faq { margin: 0; }
.faq details {
  border-top: 1px solid var(--color-line);
  padding: 8px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  padding: 8px 0;
}
.faq details p { margin: 0 0 16px; }

.ext {
  display: inline-block;
  margin-left: 8px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 48px 0 64px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}
.site-footer a { font-size: 14px; }
.site-footer .name {
  font-family: var(--font-en);
  color: var(--color-text);
  font-size: 20px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.foot-grid {
  display: grid;
  gap: 32px;
}
.site-footer ul { list-style: none; margin: 8px 0 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.related {
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  body { font-size: var(--text-body); }
  .nav { width: auto; }
  section { padding: 96px 0; }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .split.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .split.reverse .figure { order: -1; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .btn, .btn-sub { width: auto; }
  .names li { grid-template-columns: 280px 1fr; align-items: baseline; gap: 24px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .surface { padding: 32px; }
}

@media (min-width: 1440px) {
  section { padding: 120px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    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: #0c5c61;
  --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: #0c5c61; }
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__fig 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__fig 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版レイヤー ==== */
