:root {
  color-scheme: light;
  --bg: #f4f7f4;
  --ink: #172027;
  --muted: #5b6770;
  --panel: #fff;
  --line: #d6ded8;
  --green: #188038;
  --green-dark: #11652c;
  --green-soft: #e7f4ed;
  --blue: #235f82;
  --blue-soft: #e7f1f7;
  --rust: #a24d32;
  font-family: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.68; }
a { color: var(--blue); font-weight: 800; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid rgba(35, 95, 130, .35); outline-offset: 3px; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 64px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--rust); }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 13px; }
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.lang-toggle svg { width: 16px; height: 16px; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin-bottom: 12px; font-size: clamp(25px, 4vw, 32px); line-height: 1.15; }
h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.25; }
.lead { margin-bottom: 16px; color: #3a464f; font-size: 19px; }
.notice { color: var(--muted); font-weight: 700; }
.release-pill { display: inline-flex; margin-bottom: 16px; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 900; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; }
.button:hover { background: var(--green-dark); text-decoration: none; }
.button.secondary { background: var(--panel); color: var(--green-dark); }
.button.secondary:hover { background: var(--green-soft); }
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.35fr); gap: 42px; align-items: center; margin-bottom: 36px; }
.hero-shot, figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 34px rgba(23, 32, 39, .11); }
.content { display: grid; gap: 18px; }
section { padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 12px 26px rgba(23, 32, 39, .07); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--green-soft); }
.feature:nth-child(even) { background: var(--blue-soft); }
.feature p { margin-bottom: 0; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; counter-reset: steps; }
.step { position: relative; padding-left: 46px; }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 1px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.step p { margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.gallery .wide { grid-column: 1 / -1; }
figure { margin: 0; }
figcaption { margin-top: 9px; color: var(--muted); font-size: 14px; font-weight: 700; }
ul, ol { margin-bottom: 0; padding-left: 22px; }
li + li { margin-top: 8px; }
code { padding: 2px 6px; border-radius: 5px; background: #edf3ef; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.manual-page h1 { font-size: clamp(34px, 5.8vw, 56px); }
.manual-page .intro { max-width: 850px; margin-bottom: 30px; }
.toc ol { columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.manual-page section { scroll-margin-top: 20px; }
.manual-page figure { margin-top: 18px; }
.manual-page figure + figure { margin-top: 24px; }
.manual-page .callout { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--green); border-radius: 4px 8px 8px 4px; background: var(--green-soft); }
.manual-page .callout p:last-child { margin-bottom: 0; }
.manual-page .warning { border-left-color: var(--rust); background: #f8ece8; }
.page-footer { margin-top: 24px; color: var(--muted); font-weight: 700; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .feature-grid, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1080px); padding-top: 18px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .feature-grid, .step-grid, .gallery { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  section { padding: 20px; }
}
