/* --go はアプリの主ボタン（src/style.css の .city-launch・ペダル）と同じ黄緑。--accent はリンクの色。 */
:root { color-scheme: dark; --bg: #14161c; --panel: #1d212b; --line: #2c3342; --text: #eef1f6; --muted: #b3bbc7; --accent: #7db6ff; --go: #dcebb3; --go-ink: #243229; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif; line-height: 1.8; overflow-wrap: anywhere; }
main { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; padding-bottom: max(72px, env(safe-area-inset-bottom)); }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: .85rem; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1.25; }
h2 { margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.25rem; }
h3 { margin: 22px 0 6px; font-size: 1rem; }
p, li, td { color: var(--muted); }
strong { color: var(--text); }
a { color: var(--accent); }
code { font-size: .88em; background: var(--panel); padding: 1px 5px; border-radius: 4px; color: var(--text); }
ul { padding-left: 1.3em; }
.lead { margin-top: 16px; font-size: 1.05rem; }
.notice { margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--text); }
.summary { margin-top: 28px; padding: 4px 18px 10px; background: var(--panel); border-radius: 10px; }
.summary h2 { margin-top: 12px; padding-top: 0; border-top: 0; }
/* 冒頭の画像（走行画面の撮影）と、同意欄へ飛ぶボタン。 */
.hero { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; margin: 20px 0 0; border-radius: 10px; background: var(--panel); object-fit: cover; }
.gate-jump { margin: 18px 0 0; }
.gate-jump .button { min-width: min(100%, 280px); font-size: 1.02rem; }
.table-wrap { overflow-x: auto; }
/* 出典の表：語の途中で割らない。body の overflow-wrap: anywhere を表では使わず、列幅を固定して
   どうしても入らない長い語だけを割る（自動の列幅だと、長い語に合わせて表が横にはみ出す）。 */
table { width: 100%; border-collapse: collapse; font-size: .92rem; table-layout: fixed; overflow-wrap: break-word; line-break: strict; word-break: keep-all; }
@supports (word-break: auto-phrase) { table { word-break: auto-phrase; } }
/* 左の列は実在車の車名が途中で折れない幅、ライセンスの列は短い名前だけなので狭く（「MIT License（全文）」が1行に入る幅）。 */
th:nth-child(1) { width: 31%; } th:nth-child(2) { width: 50%; } th:nth-child(3) { width: 19%; }
/* 行頭に来た全角かっこの前の半文字の空きを詰める（「（Sketchfab）」が半文字右にずれて見えた）。 */
td { text-spacing-trim: trim-start; }
/* 2行目の改変の説明：小さく薄く。素材の行でこの印を使えば、どの行も同じ見せ方になる。 */
.credit-change { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.6; color: #a7afbc; }
.nowrap { white-space: nowrap; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; }
.consent { margin-top: 40px; padding: 4px 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.consent h2 { padding-top: 0; border-top: 0; margin-top: 14px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.button:disabled { opacity: .45; cursor: default; }
.button--primary { background: var(--go); border-color: var(--go); color: var(--go-ink); font-weight: 700; }
.button--primary:hover { background: #e9f4ce; border-color: #e9f4ce; }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent__status { font-size: .92rem; }
.date { margin-top: 40px; font-size: .9rem; color: var(--muted); }
/* 横向きのスマホ：画像を低くして、同意へ飛ぶボタンを最初の画面に入れる。 */
@media (max-height: 540px) and (orientation: landscape) {
  main { padding-top: 20px; }
  .hero { max-height: 40vh; }
}
@media (max-width: 480px) {
  main { padding-top: 32px; }
  .consent__actions .button, .gate-jump .button { width: 100%; }
  /* 出典の表は、行ごとに「使っている場所／素材・作者／ライセンス」を縦に積む（見出しは data-label）。 */
  table, tbody, tr, td { display: block; width: auto; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  /* grid にすると、セルの中の文とリンクが別々の升に割れる。見出しは左に絶対配置し、本文は左を空けて流す。 */
  td { position: relative; padding: 3px 0 3px 7.4em; border: 0; }
  td::before { content: attr(data-label); position: absolute; left: 0; top: 3px; width: 7.4em; color: var(--text); font-size: .8rem; font-weight: 600; line-height: 2.25; }
}
