:root {
  --paper: #f4f4f1;
  --paper-deep: #ebebe6;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #333330;
  --ink-muted: #5e5e5a;
  --hairline: #d4d4ce;
  --dashed: #a8a8a2;
  --yamanote: #9acd32;
  --yamanote-deep: #4f7a12;
  --shu: #e0442a;
  --rule: rgba(26, 26, 26, 0.06);
  --text: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --number: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--yamanote-deep); }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--yamanote-deep); outline-offset: 3px; }

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

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 8px; display: block; }
.site-nav { display: flex; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
@media (max-width: 400px) { .site-nav { gap: 14px; font-size: 13px; } }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yamanote); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* 山手線の黄緑の帯（アプリの到着画面と同じ） */
.line-band { height: 8px; background: var(--yamanote); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ヒーロー。ノートの罫線のような背景 */
.hero {
  padding: 56px 0 48px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 720px) { .hero .wrap { grid-template-columns: 1fr auto; } }
.micro { font-family: var(--number); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; color: var(--yamanote-deep); margin: 0 0 12px; }
h1.title { font-size: clamp(34px, 9vw, 56px); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: 0.02em; }
h1.title .num { font-family: var(--number); font-weight: 600; font-size: 1.15em; }
.lead { color: var(--ink-soft); margin: 24px 0 32px; max-width: 30em; }
.hero-stamp { width: 180px; height: 180px; transform: rotate(-8deg); justify-self: center; }
@media (max-width: 719px) { .hero-stamp { width: 140px; height: 140px; justify-self: start; } }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 4px;
  background: var(--yamanote); color: var(--ink);
  font-weight: 700; text-decoration: none; border: 1.5px solid var(--ink);
}
.btn:hover { color: var(--ink); background: #8bbf26; }
.btn[aria-disabled="true"] { background: var(--card); color: var(--ink-muted); border-color: var(--dashed); border-style: dashed; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--card); }

/* 数字の帯 */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--card); }
.facts div { padding: 20px 12px; text-align: center; }
.facts div + div { border-left: 1px solid var(--hairline); }
.facts b { display: block; font-family: var(--number); font-weight: 600; font-size: clamp(36px, 10vw, 52px); line-height: 1.1; }
.facts small { font-size: 13px; color: var(--ink-muted); }

/* セクション */
section { padding: 48px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: 0; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
h2::before { content: ""; width: 6px; height: 1.2em; background: var(--yamanote); border: 1px solid var(--ink); flex: none; }
.section-lead { color: var(--ink-muted); margin: 0 0 24px; }
h3 { font-size: 18px; margin: 32px 0 8px; }
p { margin: 0 0 16px; }

/* 画面。横にスクロールして見る */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px;
  margin: 0 -20px; padding: 0 20px 12px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
}
.shots li { scroll-snap-align: start; }
.shots img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--ink); background: var(--card); }
@media (max-width: 560px) { .shots { grid-auto-columns: 70%; } }

/* 歩き方 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 52px 1fr; align-items: start; gap: 12px;
  background: var(--card); border: 1px solid var(--ink); border-radius: 4px; padding: 16px;
}
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--number); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--yamanote-deep); }
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--ink-soft); font-size: 15px; }

/* 特長 */
.points { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { border-left: 4px solid var(--yamanote); padding: 4px 0 4px 16px; }
.points li.shu { border-left-color: var(--shu); }
.points b { display: block; font-size: 17px; }
.points span { color: var(--ink-soft); font-size: 15px; }

/* スタンプ帳 */
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.stamps li { background: var(--card); border: 1px dashed var(--dashed); border-radius: 12px; padding: 8px 6px 6px; text-align: center; }
.stamps img { width: 100%; height: auto; display: block; aspect-ratio: 1; }
.stamps small { display: block; font-size: 12px; color: var(--ink-muted); line-height: 1.5; margin-top: 2px; }

/* 注意 */
.notes { padding-left: 1.4em; margin: 0; }
.notes li { margin-bottom: 8px; color: var(--ink-soft); }

/* サポート・プライバシー */
.page { padding-top: 48px; padding-bottom: 24px; }
.page h1 { font-size: clamp(28px, 7vw, 38px); font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.meta { color: var(--ink-muted); font-size: 14px; margin-bottom: 32px; }
.page h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.page h2::before { display: none; }
.page ul { padding-left: 1.4em; margin: 0 0 16px; }
.page li { margin-bottom: 6px; }
details { background: var(--card); border: 1px solid var(--ink); border-radius: 4px; padding: 0 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 44px; }
details p { color: var(--ink-soft); }
.contact { background: var(--card); border: 1px solid var(--ink); border-radius: 4px; padding: 20px; margin: 16px 0; }
.contact p:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--ink); padding: 32px 0 48px; color: var(--ink-muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
footer a { color: var(--ink-muted); }
footer a:hover { color: var(--ink); }
footer p { margin: 0 0 4px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
