/* HAMAYA Racing の版下（サイト本体と同じ値）。準備中の1枚だけを配る。 */
  @font-face {
    font-family: "Outfit";
    src: url("/fonts/outfit.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Zen";
    src: url("/fonts/zenkakugothicnew-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
  }
  :root {
    --bg: #FAFAFA;
    --ink: #0B1B3F;      /* 白地で読める強調色。蛍光は文字に使わない */
    --body: #43506B;
    --dim: #5F6C88;
    --volt: #d9ff00;
    --panel: #F1F4FA;
    --neon: #39FF14;   /* ライトが点く色 */
    --line-soft: rgba(11, 27, 63, 0.07);
    --sans: "Outfit", "Zen", system-ui, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    display: grid;
    place-items: center;
    padding: 40px 24px 56px;
    -webkit-font-smoothing: antialiased;
  }
  main { width: 100%; max-width: 720px; text-align: center; }
  .logo { width: min(88%, 420px); height: auto; display: block; margin: 0 auto 56px; }
  .cs {
    font-size: clamp(30px, 7.2vw, 90px);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    color: var(--ink);
  }
  .ja { margin-top: 22px; font-size: clamp(15px, 3.6vw, 19px); letter-spacing: 0.04em; }
  .en { margin-top: 10px; color: var(--dim); font-size: clamp(13px, 3.2vw, 16px); letter-spacing: 0.03em; }
  .ja, .contact { color: var(--body); }
  .contact { color: var(--ink); }
  /* 読み込みから動き続ける背景。写真を使わず、淡い色の塊が4つ、それぞれ違う速さで
     回って混ざる。Motion Prompt #095（グラデーションアニメーション）の型を、
     CSS だけで作ったもの。 */
  .mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #FAFAFA; }
  .mesh .mb {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--w);
    height: var(--w);
    border-radius: 50%;
    translate: -50% -50%;
    background: radial-gradient(circle, var(--c) 0%, rgba(250, 250, 250, 0) 68%);
  }
  .mesh .b1 { --w: 60vw; --c: rgba(233, 255, 0, 0.85); }
  .mesh .b2 { --w: 52vw; --c: rgba(11, 27, 63, 0.14); }
  .mesh .b3 { --w: 68vw; --c: rgba(126, 150, 220, 0.38); }
  .mesh .b4 { --w: 40vw; --c: rgba(233, 255, 0, 0.5); }
  /* 色の塊が回る。1周の速さを4つで変えて、混ざり方が変わり続けるようにする。 */
  @keyframes swirl {
    from { transform: rotate(0turn) translateX(var(--r)) rotate(0turn); }
    to   { transform: rotate(1turn) translateX(var(--r)) rotate(-1turn); }
  }
  @media (prefers-reduced-motion: no-preference) {
    .mesh .mb { animation: swirl var(--t) linear infinite; }
    .mesh .b1 { --r: 12vw; --t: 28s; }
    .mesh .b2 { --r: 17vw; --t: 38s; animation-delay: -14s; }
    .mesh .b3 { --r: 9vw;  --t: 46s; animation-delay: -26s; }
    .mesh .b4 { --r: 19vw; --t: 32s; animation-delay: -8s; }
  }
  /* スタートの反応速度。淡い面にライトと数字だけを置く */
  .rt { max-width: 400px; margin: 64px auto 0; }
  .rt-card {
    position: relative;
    background: var(--panel); border-radius: 18px; padding: 26px 20px 14px;
    transition: background 0.06s linear;
  }
  .rt-snd {
    position: absolute; top: 6px; right: 10px; padding: 5px 4px;
    border: 0; background: none; cursor: pointer;
    font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; color: var(--dim);
  }
  .rt-snd:hover, .rt-snd:focus-visible { color: var(--ink); }
  .rt-panel {
    display: block; width: 100%; padding: 0; border: 0; background: none;
    text-align: center; cursor: pointer; font-family: var(--sans);
    -webkit-tap-highlight-color: transparent; user-select: none;
  }
  .rt-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
  /* ガントリーの代わりの細い線。消灯の瞬間に蛍光へ */
  .rt-line { display: block; height: 1px; background: rgba(11, 27, 63, 0.18); transition: background 0.12s linear; }
  .rt-lights { display: flex; justify-content: center; gap: 14px; margin: 20px 0 0; }
  .rt-l {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(11, 27, 63, 0.32); background: #fff;
    transition: background 0.06s linear, border-color 0.06s linear, box-shadow 0.06s linear;
  }
  .rt-l.on {
    background: var(--neon); border-color: var(--neon);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.65), 0 0 0 3px rgba(57, 255, 20, 0.18);
  }
  .rt-msg {
    margin: 16px 0 0; min-height: 1.4em;
    font-size: 12px; letter-spacing: 0.06em; color: var(--dim);
  }
  .rt-msg b {
    display: block; margin-bottom: 1px;
    font-family: "Outfit", var(--sans); font-size: 26px; font-weight: 600;
    letter-spacing: 0; color: var(--ink);
  }
  /* 消灯の瞬間は、カードごと蛍光に反転させる（反応の合図をはっきり出す） */
  .rt[data-state="go"] .rt-card { background: var(--volt); }
  .rt[data-state="go"] .rt-line { background: rgba(11, 27, 63, 0.25); }
  .rt[data-state="go"] .rt-l { border-color: rgba(11, 27, 63, 0.4); background: transparent; box-shadow: none; }
  .rt[data-state="go"] .rt-msg { color: #050D1F; }
  .rt[data-state="go"] .rt-stats { border-top-color: rgba(11, 27, 63, 0.18); color: rgba(5, 13, 31, 0.72); }
  .rt[data-state="go"] .rt-stats b { color: #050D1F; }
  .rt[data-state="fault"] .rt-msg { color: var(--ink); font-weight: 700; }
  .rt-stats {
    display: flex; justify-content: space-between; gap: 12px;
    margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft);
    font-size: 11px; letter-spacing: 0.06em; color: var(--dim);
  }
  .rt-stats b {
    display: block; margin-top: 2px;
    font-family: "Outfit", var(--sans); font-size: 15px; font-weight: 400; color: var(--ink);
  }
  @media (max-width: 560px) {
    .rt { max-width: 100%; margin-top: 48px; }
    .rt-card { padding: 20px 16px 12px; }
    .rt-l { width: 22px; height: 22px; }
    .rt-lights { gap: 11px; }
    .rt-msg b { font-size: 22px; }
  }
  .rule { height: 2px; width: 72px; background: var(--ink); margin: 48px auto 30px; }
  .contact { font-size: clamp(15px, 3.8vw, 19px); letter-spacing: 0.06em; }
  .contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(11,27,63,.3); }
  .sns { margin-top: 18px; font-size: clamp(13px, 3.4vw, 16px); letter-spacing: 0.14em; color: var(--dim); }
  .sns a { color: var(--dim); text-decoration: none; }
  .sns a:hover, .contact a:hover { color: var(--ink); border-color: var(--ink); }
  .sns span { margin: 0 12px; }
  footer { margin-top: 64px; color: var(--dim); font-size: 12.5px; letter-spacing: 0.16em; }
