:root {
    --bg: oklch(0.985 0.003 250);
    --surface: oklch(1 0 0);
    --ink: oklch(0.24 0.015 255);
    --muted: oklch(0.5 0.015 255);
    --faint: oklch(0.62 0.012 255);
    --line: oklch(0.9 0.006 250);
    --line-strong: oklch(0.82 0.008 250);
    --accent: oklch(0.52 0.16 250);
    --accent-ink: oklch(0.45 0.16 250);
    --accent-soft: oklch(0.95 0.02 250);
    --band-bg: oklch(0.23 0.03 260);
    --band-surface: oklch(0.27 0.032 260);
    --band-ink: oklch(0.95 0.008 250);
    --band-muted: oklch(0.7 0.02 255);
    --band-line: oklch(0.36 0.03 260);
    --band-accent: oklch(0.78 0.1 250);
    --yt: oklch(0.62 0.25 27);
    --shadow: 0 1px 2px oklch(0.24 0.015 255 / 0.04), 0 8px 24px -12px oklch(0.24 0.015 255 / 0.1);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: oklch(0.2 0.012 260);
      --surface: oklch(0.24 0.014 260);
      --ink: oklch(0.93 0.006 250);
      --muted: oklch(0.68 0.014 255);
      --faint: oklch(0.56 0.014 255);
      --line: oklch(0.32 0.014 260);
      --line-strong: oklch(0.4 0.016 260);
      --accent: oklch(0.72 0.13 250);
      --accent-ink: oklch(0.76 0.12 250);
      --accent-soft: oklch(0.3 0.045 255);
      --band-bg: oklch(0.165 0.018 260);
      --band-surface: oklch(0.21 0.02 260);
      --band-ink: oklch(0.94 0.008 250);
      --band-muted: oklch(0.66 0.018 255);
      --band-line: oklch(0.3 0.022 260);
      --band-accent: oklch(0.78 0.1 250);
      --yt: oklch(0.7 0.2 25);
      --shadow: 0 1px 2px oklch(0 0 0 / 0.2), 0 8px 24px -12px oklch(0 0 0 / 0.35);
    }
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "Noto Sans JP", sans-serif;
    background:
      radial-gradient(circle at 16% 0%, color-mix(in oklab, var(--accent) 12%, transparent) 0 18rem, transparent 34rem),
      linear-gradient(180deg, color-mix(in oklab, var(--bg) 92%, white), var(--bg) 38rem);
    color: var(--ink);
    line-height: 1.6;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .42;
    background-image:
      linear-gradient(color-mix(in oklab, var(--line) 62%, transparent) 1px, transparent 1px),
      linear-gradient(90deg, color-mix(in oklab, var(--line) 62%, transparent) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, black, transparent 72%);
  }
  .mono {
    font-family: "IBM Plex Mono", monospace;
    font-feature-settings: normal;
    letter-spacing: 0.08em;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

  /* ───────── header ───────── */
  header[data-screen-label="ヘッダー"] {
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
  }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .logo { display: flex; align-items: baseline; gap: 2px; font-weight: 900; font-size: 21px; letter-spacing: -0.01em; }
  .logo .tld { color: var(--accent); font-weight: 700; }
  .logo-mark { width: 10px; height: 10px; background: var(--accent); display: inline-block; margin-right: 9px; align-self: center; }
  .lang-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
  .lang-switch a { padding: 4px 2px; }
  .lang-switch a:hover { color: var(--accent-ink); }
  .lang-switch .current { color: var(--ink); font-weight: 700; }
  .lang-switch .sep { color: var(--line-strong); }

  /* ───────── hero ───────── */
  .hero { padding: 72px 0 58px; position: relative; }
  .hero::after {
    content: "";
    position: absolute;
    right: 32px;
    top: 42px;
    width: min(34vw, 380px);
    height: min(34vw, 380px);
    border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
    box-shadow: inset 0 0 0 42px color-mix(in oklab, var(--accent) 5%, transparent);
  }
  .hero-kicker {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--accent-ink); font-weight: 600;
    margin-bottom: 22px;
  }
  .hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
  h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: 0.01em;
    text-wrap: pretty;
    max-width: 21em;
  }
  h1 .dim { color: var(--muted); font-weight: 700; }
  .hero-lead {
    margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 38em;
    text-wrap: pretty;
  }

  /* departure board */
  .board {
    margin-top: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .board-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 11px; color: var(--faint);
  }
  .board-row {
    display: grid;
    grid-template-columns: 64px 1fr auto 28px;
    align-items: center; gap: 18px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
  }
  .board-row:last-child { border-bottom: none; }
  .board-row:hover { background: var(--accent-soft); }
  .board-num { font-size: 14px; color: var(--accent-ink); font-weight: 600; }
  .board-dest { font-size: 17px; font-weight: 700; }
  .board-tag { font-size: 11px; color: var(--faint); }
  .board-arrow { color: var(--accent-ink); font-size: 17px; text-align: right; transition: transform 0.15s; }
  .board-row:hover .board-arrow { transform: translateX(4px); }
  .board-row.ride {
    background: var(--band-bg); color: var(--band-ink);
    border-top: 1px solid var(--line-strong);
  }
  .board-row.ride .board-num, .board-row.ride .board-arrow { color: var(--band-accent); }
  .board-row.ride .board-tag { color: var(--band-muted); }
  .board-row.ride:hover { background: var(--band-surface); }

  /* ───────── sections ───────── */
  section { padding: 72px 0 0; }
  .sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 8px; }
  .sec-label { font-size: 12px; color: var(--accent-ink); font-weight: 600; }
  h2 { font-size: 28px; font-weight: 900; letter-spacing: 0.01em; }
  .sec-lead { font-size: 14px; color: var(--muted); margin-bottom: 32px; max-width: 44em; }

  /* intent cards 2x2 */
  .card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .card {
    background: color-mix(in oklab, var(--surface) 96%, var(--bg));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 26px 14px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .22s, border-color .22s, box-shadow .22s;
  }
  .card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
    box-shadow: 0 1px 2px oklch(0.24 0.015 255 / 0.05), 0 18px 42px -24px oklch(0.24 0.08 255 / 0.22);
  }
  .card:nth-child(2), .card:nth-child(4) { margin-top: 18px; }
  .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .card h3 { font-size: 19px; font-weight: 700; line-height: 1.45; text-wrap: pretty; }
  .card-num { font-size: 12px; color: var(--faint); padding-top: 5px; }
  .card-sub { font-size: 13px; color: var(--muted); margin-top: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); text-wrap: pretty; }
  .links { display: flex; flex-direction: column; }
  .link {
    display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 10px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
  }
  .link:last-child { border-bottom: none; }
  .link:hover { background: var(--accent-soft); }
  .link-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
  .link:hover .link-name { color: var(--accent-ink); }
  .badge {
    font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
    color: var(--accent-ink); background: var(--accent-soft);
    border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
    padding: 1px 7px; border-radius: 99px;
    white-space: nowrap;
  }
  .link:hover .badge { background: var(--surface); }
  .link-reason { grid-column: 1; font-size: 12.5px; color: var(--muted); margin-top: 2px; text-wrap: pretty; }
  .link-ext { grid-row: 1 / span 2; grid-column: 2; color: var(--faint); font-size: 13px; transition: transform 0.15s, color 0.15s; }
  .link:hover .link-ext { color: var(--accent-ink); transform: translate(2px, -2px); }

  /* makers */
  .makers {
    margin-top: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    padding: 18px 24px;
    display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  }
  .makers-label { font-size: 11px; color: var(--faint); flex-shrink: 0; }
  .maker-list { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .maker-list a {
    font-size: 13px; font-weight: 500; color: var(--muted);
    padding: 3px 10px;
    border-radius: 6px;
  }
  .maker-list a:hover { color: var(--accent-ink); background: var(--accent-soft); }
  .maker-list a + a { border-left: 1px solid var(--line); border-radius: 0 6px 6px 0; }

  /* ───────── ride-now band ───────── */
  .ride-band {
    margin-top: 80px;
    background: var(--band-bg);
    color: var(--band-ink);
    padding: 64px 0 68px;
  }
  .ride-band .sec-label { color: var(--band-accent); }
  .ride-band .sec-lead { color: var(--band-muted); margin-bottom: 36px; }
  .ride-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .ride-block {
    background: var(--band-surface);
    border: 1px solid var(--band-line);
    border-radius: 10px;
    padding: 22px 22px 10px;
  }
  .ride-time { font-size: 11px; color: var(--band-accent); font-weight: 600; }
  .ride-block h3 { font-size: 16.5px; font-weight: 700; margin: 6px 0 10px; padding-bottom: 12px; border-bottom: 1px solid var(--band-line); }
  .ride-band .link { border-color: var(--band-line); }
  .ride-band .link:hover { background: color-mix(in oklab, var(--band-accent) 12%, transparent); }
  .ride-band .link-name { font-size: 14.5px; }
  .ride-band .link:hover .link-name { color: var(--band-accent); }
  .ride-band .link-reason { color: var(--band-muted); font-size: 12px; }
  .ride-band .link-ext { color: var(--band-muted); }
  .ride-band .link:hover .link-ext { color: var(--band-accent); }

  /* ───────── read ───────── */
  .read-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .read-grid .link {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
  }
  .read-grid .link:last-child { border-bottom: 1px solid var(--line); }

  /* ───────── watch (car YouTubers) ───────── */
  .watch-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .watch-grid .link {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
  }
  .watch-grid .link:last-child { border-bottom: 1px solid var(--line); }
  .yt-ico { width: 20px; height: 20px; color: var(--yt); flex-shrink: 0; transition: transform 0.15s; }
  .watch-grid .link:hover .yt-ico { transform: scale(1.08); }

  /* ───────── footer ───────── */
  footer[data-screen-label="フッター"] {
    margin-top: 88px;
    border-top: 1px solid var(--line);
    padding: 34px 0 48px;
    font-size: 12.5px; color: var(--muted);
  }
  .footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .footer-meta { display: flex; flex-direction: column; gap: 6px; max-width: 46em; }
  .footer-reviewed { font-size: 11px; color: var(--faint); }
  .footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .footer-right a:hover { color: var(--accent-ink); }

  /* responsive */
  @media (max-width: 880px) {
    .card-grid, .ride-grid, .read-grid, .watch-grid { grid-template-columns: 1fr; }
    .hero { padding: 52px 0 48px; }
    .hero::after { display: none; }
    .card:nth-child(2), .card:nth-child(4) { margin-top: 0; }
    .wrap { padding: 0 20px; }
    .board-tag { display: none; }
    .board-row { grid-template-columns: 48px 1fr 24px; }
  }
