:root {
  --paper: #f6f3eb;
  --ink: #142c3b;
  --muted: #425a67;
  --line: #bdc7c1;
  --mint: #a8ebd1;
  --green: #13594c;
  color-scheme: light;
  font-family: "Inter", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
h1, h2, p, figure { margin: 0; }
a { color: var(--green); text-underline-offset: .21em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #087a69; outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -200px; z-index: 10; padding: 8px 16px; background: white; }
.skip:focus { top: 8px; }
.top { border-bottom: 1px solid var(--line); }
.bar, .wrap { width: min(1170px, 100% - clamp(40px, 10vw, 160px)); margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.05em; color: var(--ink); }
.brand i { display: block; position: relative; width: 23px; height: 16px; }
.brand i::before, .brand i::after { content: ""; position: absolute; left: 0; border-radius: 1px; height: 6px; background: var(--ink); }
.brand i::before { top: 0; width: 23px; } .brand i::after { bottom: 0; width: 15px; }
.languages { display: flex; gap: 3px; }
.languages a { display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); background: transparent; font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; min-height: 36px; }
.languages [aria-current="page"] { color: var(--ink); border-color: var(--line); background: #fffdf7; font-weight: 700; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 80px); padding: clamp(43px, 6vw, 86px) 0 43px; }
.eyebrow, .sub, figcaption { color: var(--muted); font-size: .85rem; line-height: 1.65; }
.eyebrow { font-weight: 650; letter-spacing: .035em; }
h1 { font-size: clamp(36px, 4.15vw, 64px); letter-spacing: -.06em; line-height: 1.16; margin: 13px 0 12px; }
.lead { font-size: clamp(19px, 2vw, 27px); font-weight: 650; line-height: 1.4; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 21px 0 10px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--green); border-radius: 5px; color: var(--green); font-weight: 650; line-height: 1.5; text-decoration: none; }
.action:hover { background: #e0f4ea; }
.action.primary { background: var(--ink); border-color: var(--ink); color: #fffdf7; }
.action.primary:hover { background: var(--green); }
.shot { display: block; border: 1px solid #bdc7c1; border-radius: 6px; overflow: hidden; background: var(--paper); }
.shot img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 10px; }
.index { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 3px 28px; padding: 11px 0; }
.index a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; min-height: 36px; }
.chapter { display: grid; grid-template-columns: minmax(170px, .55fr) minmax(0, 1.5fr); gap: clamp(26px, 5vw, 76px); padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.chapter:last-child { margin-bottom: 40px; }
.chapter h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.35; letter-spacing: -.035em; }
.chapter p + p { margin-top: 12px; }
.chapter ol { margin: 18px 0 20px; padding-left: 1.65em; }
.chapter li { margin-bottom: 9px; padding-left: .22em; }
.chapter li::marker { font-weight: 750; color: var(--green); }
code { overflow-wrap: anywhere; padding: .08em .3em; background: #eae8df; border-radius: 3px; font: .93em "IBM Plex Mono", Consolas, monospace; }
.outcome { padding: 12px 16px; background: #dcf4e8; border-left: 3px solid var(--green); }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; line-height: 1.55; padding: 7px 3px; }
summary::marker { color: var(--green); }
details p { padding: 3px 3px 9px; }
.contact { display: inline-block; margin-top: 12px; font-weight: 650; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero figure { max-width: 590px; }
  .chapter { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
}
@media (max-width: 480px) {
  .actions { flex-direction: column; align-items: stretch; }
  .bar, .wrap { width: calc(100% - 36px); }
  .bar { min-height: 58px; }
  .hero { padding-top: 32px; padding-bottom: 27px; }
  .index { column-gap: 18px; font-size: .94rem; }
  .languages a { min-height: 40px; }
}
