:root {
  --ink: #17202a;
  --muted: #607080;
  --line: #dce3e8;
  --paper: #ffffff;
  --wash: #f4f6f7;
  --accent: #315d57;
  --warm: #8a5b35;
  color-scheme: light;
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.eyebrow, .index { color: var(--accent); font-weight: 700; letter-spacing: .13em; font-size: .76rem; }
h1 { max-width: 900px; margin: 12px 0 4px; font-size: clamp(2.15rem, 6vw, 4.7rem); line-height: 1.08; letter-spacing: -.035em; }
.title-line { display: block; }
.subtitle { margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
.lead { max-width: 760px; margin: 30px 0; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions a { color: var(--ink); border: 1px solid var(--line); padding: 10px 16px; text-decoration: none; border-radius: 4px; }
.actions .primary { color: white; background: var(--accent); border-color: var(--accent); }
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
.section-head h2 { margin: 0 0 28px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, 1fr); }
.metrics article, .two article, .flow article { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--paper); }
.metrics strong { display: block; font: 600 1.8rem/1.1 ui-monospace, SFMono-Regular, monospace; }
.metrics span { color: var(--muted); font-size: .88rem; }
.note { color: var(--muted); margin-top: 16px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
.flow article span { color: var(--accent); font: 700 .85rem ui-monospace, monospace; }
.flow h3, .two h3 { margin: 12px 0 6px; }
.flow p, .two li { color: var(--muted); font-size: .92rem; }
.arrow { align-self: center; padding: 8px; color: var(--muted); }
.two { grid-template-columns: 1fr 1fr; }
.two .ok { border-top: 3px solid var(--accent); }
.two .hold { border-top: 3px solid var(--warm); }
.two ul { padding-left: 20px; }
.text-link { color: var(--accent); font-weight: 700; }
footer { padding: 32px 0 56px; color: var(--muted); font-size: .88rem; }

@media (max-width: 800px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 26px, 1080px); }
  .hero { padding-top: 56px; }
  .metrics, .two { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 36px 1fr; }
}
