/* バス何分？ — 実画面と数字が主役。JS・Webフォント・外部読み込みなし。 */
:root {
  color-scheme: light dark;
  --bg: #fff; --bg2: #f0f4f6; --ink: #0d1118; --sub: #5b626b; --tint: #077496; --line: #d5dbe0;
  --night: #0d1118;
  --s1: 12px; --s2: 24px; --s3: 48px; --s4: 88px; --pad: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --t-hero: clamp(2.625rem, 5.2vw, 4.75rem);
  --t-h2: clamp(2rem, 3vw + 0.5rem, 3rem);
}
@media (min-width: 800px) { :root { --s1: 16px; --s2: 32px; --s3: 64px; --s4: 128px; --pad: 48px; } }
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --bg2: #141a22; --ink: #f7f9fa; --sub: #a1a8b1; --tint: #12b8e6; --line: #343d48; }
}
/* 写真と実画面の色に合わせ、LPは白と夜の章を環境にかかわらず保つ。 */
.landing { color-scheme: light; --bg: #f7f9fa; --bg2: #edf0f3; --ink: #0d1118; --sub: #5b626b; --tint: #077496; --line: #cbd2d9; }
.night { color-scheme: dark; --ink: #f7f9fa; --sub: #b1b8c1; --tint: #12b8e6; background: var(--night); color: var(--ink); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.75 var(--font); -webkit-font-smoothing: antialiased; word-break: auto-phrase; }
p, dd { text-wrap: pretty; }
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 2px; }
.nw { display: inline-block; max-width: 100%; }
h1, h2, .answer, .closing { font-feature-settings: "palt"; margin: 0; }
h1, h2 { letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.35; font-weight: 700; }
p, figure { margin: 0; }
.note, figcaption { font-size: 1rem; line-height: 1.7; color: var(--sub); }
.wrap { width: 100%; max-width: 1224px; margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--s4); }
.body { max-width: 34em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header { padding-block: var(--s2) 0; }
.site-header a { color: var(--ink); text-decoration: none; font-weight: 700; }
/* LPのローカルナビ。無地の白を保ち、夜の章の上でも読める。 */
html.lp { --local-nav-offset: 68px; }
.landing section[id], .landing #source { scroll-margin-top: var(--local-nav-offset); }
.local-header { position: sticky; top: 0; z-index: 10; height: 52px; padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
.local-header > .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.local-header .local-brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex-shrink: 0; color: #077496; font-size: 1.0625rem; line-height: 1.2; white-space: nowrap; }
.local-brand img { width: 36px; height: 36px; }
.desktop-toc { display: none; }
.mobile-toc summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 72px; padding-inline: 8px; cursor: pointer; list-style: none; font-size: 0.875rem; }
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc summary::after { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mobile-toc[open] summary::after { transform: translateY(2px) rotate(225deg); }
.toc-panel { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--line); }
.toc-panel ul { list-style: none; margin-block: 0; padding-block: 8px; }
.toc-panel a { display: flex; align-items: center; min-height: 48px; font-size: 0.9375rem; font-weight: 400; }
.local-header a:hover { text-decoration: underline; }
.local-header :focus-visible { outline-offset: 2px; }
/* JSなしの目次はリンク選択後も開いたまま。3項目・161pxのパネル分も空ける。 */
@media (max-width: 899px) {
  html.lp:has(.mobile-toc[open]) { --local-nav-offset: 229px; }
}
@media (min-width: 900px) {
  .mobile-toc { display: none; }
  .desktop-toc { display: flex; align-items: center; gap: 20px; }
  .desktop-toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 0.875rem; font-weight: 400; white-space: nowrap; }
  .release-status { padding: 4px 12px; border-radius: 980px; background: #edf0f3; color: #5b626b; font-size: 0.75rem; line-height: 1.5; white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  html.lp { scroll-behavior: smooth; }
}
/* 公開日に使う公式バッジ。高さ40pxと縦横比を保ち、全周10px以上を空ける。 */
.app-store-badge { display: inline-flex; padding: 10px; }
.app-store-badge img { width: auto; height: 40px; max-width: none; }
/* 公開前の案内。水色は数字に残す。 */
.btn { display: inline-block; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 1rem; line-height: 1.4; padding: 0.8rem 1.35rem; border-radius: 980px; }
.night .btn { background: #f7f9fa; color: #0d1118; }
a.btn { text-decoration: none; }

/* ヒーロー: 答えと一台。 */
.hero { padding-block: var(--s3) 0; }
.hero .wrap { display: grid; gap: var(--s3); }
h1 { font-size: var(--t-hero); line-height: 1.15; font-weight: 700; }
.answer { font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1.2; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 0.18em; white-space: nowrap; }
.answer span { color: var(--tint); font-weight: 400; }
.lede { font-size: 1.25rem; line-height: 1.65; margin-top: var(--s2); max-width: 23em; }
.hero-meta { display: grid; justify-items: start; gap: var(--s1); margin-top: var(--s2); }
.hero-meta .note { font-size: 0.9375rem; }
.device { position: relative; width: min(100%, 294px); aspect-ratio: 49 / 100; margin-inline: auto; }
.device picture, .device img { width: 100%; }
.device video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 13% / 6.4%; }
/* 実画面の上部だけを見せ、v1にない操作行は表示範囲から外す。 */
.hero-device { width: min(100%, 294px); aspect-ratio: 588 / 480; overflow: hidden; }
.hero-device video { height: auto; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; column-gap: var(--s3); }
  .hero .text { padding-bottom: var(--s3); }
  .hero-device { width: 306px; }
}

/* 登録: 実際の操作を左に、言葉を右に。 */
.register { background: var(--bg2); padding-block: var(--s3); }
.register .wrap { display: grid; gap: var(--s3); align-items: center; }
.register .body { margin-top: var(--s2); max-width: 27em; }
.register-device { width: min(100%, 258px); }
@media (min-width: 900px) {
  .register .wrap { grid-template-columns: 1fr 1.2fr; }
  .register .text { grid-column: 2; grid-row: 1; }
  .register-device { grid-column: 1; grid-row: 1; }
}

/* 出る時間: アプリ内の徒歩表示を大きく。 */
.departure .wrap { display: grid; gap: var(--s3); }
.departure .body { margin-top: var(--s2); }
.walking { max-width: 560px; }
.walking-crop { aspect-ratio: 1256 / 690; overflow: hidden; border-radius: 24px; }
.walking img { width: 100%; }
.walking figcaption { margin-top: var(--s1); }
@media (min-width: 900px) {
  .departure .wrap { grid-template-columns: 1fr 1.2fr; align-items: center; }
}

/* ホーム画面ウィジェットとWatchアプリの実画面。 */
.widgets .wrap { display: grid; gap: var(--s3); }
.widgets .body { margin-top: var(--s2); max-width: 25em; }
.home-surfaces { display: grid; gap: var(--s3); }
.home-widget { width: 100%; max-width: 660px; border-radius: 9% / 20%; overflow: hidden; }
.home-widget img { width: 100%; }
.watch-app { display: grid; justify-items: center; gap: var(--s2); }
.watch-app picture { width: 208px; max-width: 100%; border-radius: 32px; overflow: hidden; }
.watch-app figcaption { text-align: center; }
@media (min-width: 600px) {
  .watch-app { display: flex; align-items: center; }
  .watch-app picture { flex-shrink: 0; }
  .watch-app figcaption { text-align: left; }
}
@media (min-width: 1000px) {
  .widgets .wrap { grid-template-columns: 0.85fr 1.45fr; gap: var(--s3); align-items: start; }
}

/* 目安: 文章が先、図はその下。 */
.honest .wrap { display: grid; gap: var(--s2) var(--s3); }
.honest .body { max-width: 30em; }
.honest .small-line { margin-top: var(--s2); }
.honest .source { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); }
.estimate-road { width: 100%; margin-top: var(--s1); }
.estimate-road img { width: 100%; }
.estimate-note { display: none; }
@media (min-width: 900px) {
  .honest .wrap { grid-template-columns: 5fr 6fr; }
  .estimate-road { grid-column: 1 / -1; }
}

/* 価格表に代えて、無料であることだけを短く。 */
.free-note { padding-block-end: var(--s3); font-size: 1rem; }

/* 閉じ: 写真の上に、作った理由だけを残す。 */
.close { position: relative; isolation: isolate; padding-block: var(--s4); }
.close-background { position: absolute; inset: 0; z-index: -2; }
.close-background img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(13 17 24 / 53%); }
.close .small { font-size: 1rem; color: #f7f9fa; max-width: 28em; }
.closing { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; margin-top: var(--s2); text-wrap: balance; }
.app { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.app-id { display: flex; align-items: center; gap: var(--s1); font-weight: 700; font-size: 1.25rem; }
.app-id img { width: 64px; height: 64px; border-radius: 14.3px; }

.site-footer { background: var(--bg2); padding-block: var(--s3); font-size: 1rem; line-height: 1.7; color: var(--sub); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s2); }
.site-footer a { display: inline-block; padding-block: 6px; color: var(--sub); }
.site-footer a:hover { color: var(--ink); }

/* /support /privacy /legal は既存の読み物の構成を保つ。 */
.page { padding-block: var(--s3) var(--s4); }
.page h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
.page .lead { margin-top: var(--s2); color: var(--sub); }
.page h2 { font-size: 1.5rem; line-height: 1.4; letter-spacing: -0.01em; margin-top: var(--s3); }
.page .col { max-width: 40rem; }
.page p, .page ul { margin-top: var(--s1); }
.page ul { padding-left: 1.25em; }
.page li + li { margin-top: 0.4em; }
.page dl { margin: var(--s1) 0 0; }
.page dt { font-weight: 700; margin-top: var(--s2); }
.page dd { margin: 4px 0 0; }
.page .meta { margin-top: var(--s3); }

@media (max-width: 599px) {
  .hero { padding-block-start: 32px; }
  .hero .wrap { gap: 36px; }
  .hero-device { width: min(100%, 258px); }
  .lede { font-size: 1.0625rem; }
  .hero-meta { margin-top: 20px; }
  .estimate-road { width: calc(100% + 2 * var(--pad)); margin-inline: calc(-1 * var(--pad)); }
  /* viewBoxは1200×450のまま。560px表示で28pxラベルは13.1px。
     道の端の余白と小さな注記だけを切り、注記は同じ言葉を本文サイズで示す。 */
  .estimate-diagram { width: 100%; height: 144px; overflow: hidden; }
  .estimate-road img { width: 560px; max-width: none; margin-left: calc((100% - 375px) / 2 - 24px); }
  .estimate-note { display: block; margin: var(--s1) var(--pad) 0; font-size: 0.875rem; text-align: center; }
  .close-background img { object-position: 64% center; }
}

/* 動きを減らす設定では静止画だけ。sourceのmediaも併用し初回の動画取得を避ける。 */
@media (prefers-reduced-motion: reduce) {
  .device video { display: none; }
}
