:root {
  --bg: #f7f3ea;
  --surface: #fffdf7;
  --ink: #23302a;
  --muted: #5d685f;
  --line: #ddd4c2;
  --field: #3f6b4a;
  --field-ink: #ffffff;
  --soil: #8a5a36;
  --chalk: #2c3a33;
  --chalk-ink: #eef1e6;
  --todo-bg: #fff1b8;
  --todo-ink: #5a4500;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171d19;
    --surface: #1f2722;
    --ink: #e8ece4;
    --muted: #a8b2a6;
    --line: #34403a;
    --field: #7fb28a;
    --field-ink: #0f1712;
    --soil: #d29a6c;
    --chalk: #26332c;
    --chalk-ink: #e8ece4;
    --todo-bg: #4a3d0c;
    --todo-ink: #ffe9a3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
}
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
img { max-width: 100%; height: auto; }
a { color: var(--field); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--soil); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.preview-bar { background: var(--todo-bg); color: var(--todo-ink); text-align: center; font-size: 14px; padding: 6px 16px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--serif); white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--field); font-weight: 600; }
.lang { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 15px; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }

@media (max-width: 420px) { .brand { font-size: 17px; gap: 8px; } .brand svg { width: 26px; height: 26px; } .site-header .wrap { gap: 10px; } }
@media (max-width: 860px) {
  .nav.desktop { display: none; }
  .menu { display: block; position: relative; }
  .menu .nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 220px; z-index: 5; box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
  .menu .nav ul { flex-direction: column; }
}

/* Sections */
main section { padding: 40px 0; }
main section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3, h2.h3 { font-size: 20px; }
:lang(ja) h1 { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--soil); margin-bottom: .6em; }
:lang(ja) .eyebrow { text-transform: none; letter-spacing: .08em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46em; }
.small { font-size: 14px; color: var(--muted); }

.hero { padding: 64px 0 48px; }
.hero-sm { padding: 48px 0 32px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn { display: inline-block; background: var(--field); color: var(--field-ink); text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; border: 2px solid var(--field); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--field); }
.btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

.paths, .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--field); transform: translateY(-2px); transition: transform .15s, border-color .15s; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .cap { margin-top: 10px; font-size: 14px; }
.card-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--soil); font-size: 20px; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.split:has(> div + div ul) { align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.quote { background: var(--chalk); color: var(--chalk-ink); border-radius: var(--radius); padding: 32px; font: italic 24px/1.4 var(--serif); }
.quote p { margin: 0; }
.more { font-weight: 600; text-decoration: none; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--field); color: var(--field-ink); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; }

.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--field); font-weight: 700; }

.note { background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 28px !important; margin: 32px 0; }

.offer-group h2 span { color: var(--soil); }
.offer-group .grid { margin-bottom: 16px; }

.timeline { display: grid; gap: 18px; }
.timeline article { border-left: 4px solid var(--field); padding: 4px 0 4px 20px; }

.terms { max-width: 46em; }
.terms h3 { margin-top: 1.4em; }

.event { display: grid; grid-template-columns: 96px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.event-date { text-align: center; background: var(--bg); border-radius: 10px; padding: 10px 6px; font-family: var(--serif); }
.event-date b { display: block; font-size: 30px; line-height: 1.1; }
.event dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 12px; font-size: 15px; }
.event dt { color: var(--muted); }
.event dd { margin: 0; }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; } }
.empty { text-align: center; color: var(--muted); }

.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 1px 6px; font-size: .92em; }
.todo::before { content: "✎ "; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; padding: 32px 0; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
