@charset "UTF-8";
/* ==========================================================================
   第68回朝日新聞社杯競輪祭[GI] / 第4回競輪祭女子王座戦[GI] 特設サイト
   デザインシステム

   構造は吉岡稔真カップ2026（yoshioka2026.css）に準拠し、
   配色は有料席テーマA「提灯ナイター」（yuryo/css/theme_a.css）の
   墨紺 × 金 × 朱 に合わせている。

   書体の方針（豊嶋さん指示 2026-08-19）
     - 明朝体は使わない
     - 見出しの太さは 700 まで。900 はボタン等「一番強くしたい要素」だけ
     - 数字は Roboto を先頭に置く。Roboto は和文グリフを持たないため、
       日本語は自動的に次のフォントへ落ち、数字と英字だけが差し替わる
   ========================================================================== */

/* ============ TOKENS ============ */
:root {
  /* 地色（夜のバンク） */
  --bg: #080C16;
  --bg-2: #0B1120;
  --surface: #101828;
  --surface-2: #0C1322;

  /* 文字
     地色が濃紺なので、補助テキストは青寄りにすると沈んで読みにくい。
     --ink（温かみのある白）と同系の暖かいグレーで明度差だけを付けている。
     濃紺(#080C16)に対するコントラスト比: ink 17.3 / soft 14.8 / faint 10.4
     ※明暗の差を付けすぎると暗く見えるため、3段の幅は意図的に狭くしている */
  --ink: #F4F1EA;
  --ink-soft: #E4E0D6;
  --ink-faint: #C3BDAF;

  /* 罫線（金を薄く） */
  --line: rgba(212, 175, 55, 0.24);
  --line-strong: rgba(212, 175, 55, 0.52);

  /* 差し色 */
  --accent: #D4AF37;         /* 金 */
  --accent-bright: #F5D76E;  /* 金（ハイライト） */
  --accent-pale: #FFF2C4;    /* 提灯の灯り */
  --accent-ink: #080C16;     /* 金地の上に乗せる文字色 */
  --aka: #C8102E;            /* 朱 */
  --aka-bright: #E4384F;

  --maxw: 1180px;
  --header-h: 92px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --f-disp: 'Roboto', "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --f-body: 'Roboto', "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.9vw, 2.9rem);
  --step-3: clamp(2.6rem, 1.8rem + 4vw, 5rem);
  --step-4: clamp(4rem, 2rem + 10vw, 11rem);

  /* 常にダーク基調で固定する（OSのライト設定でも配色を変えない） */
  color-scheme: dark;
}

/* ============ BASE / RESET ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  /* 暗い背景では 400 だと線が細く、暗く沈んで見える。
     本文は 500（Medium）を基準にする。Google Fonts で 500 も読み込み済み。
     見出し・強調の 700 とは別なので、太さの階層は保たれる。 */
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.01em;
  /* 暗い背景では -webkit-font-smoothing: antialiased を当てると
     文字が痩せて暗く見える。既定のサブピクセル描画のままにして、
     線を太らせたほうが明るく読める。ここは意図的に指定していない。 */
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 提灯の灯り。固定レイヤーとして敷き、スクロールしても夜が続いて見えるようにする */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 55% at 50% -8%,
      rgba(255, 198, 96, 0.26) 0%,
      rgba(255, 150, 40, 0.07) 38%,
      rgba(255, 150, 40, 0) 66%),
    radial-gradient(70% 45% at 12% 108%, rgba(200, 16, 46, 0.16), transparent 60%),
    radial-gradient(70% 45% at 88% 108%, rgba(30, 90, 200, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 46%, #04060C 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.15; }
::selection { background: var(--accent-bright); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--f-disp);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ""; width: 2.4em; height: 1px; background: currentColor; display: inline-block; }

/* ============ HEADER ============ */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site .bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
/* 大会ロゴ（340×120 の透過PNG／白版）。高さ基準で縮める。
   340×120 なので、高さ72pxのとき幅204px。 */
.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; min-width: 0; }
/* ロゴは3段組み（第68回朝日新聞社杯／競輪祭GI／第4回競輪祭女子王座戦GI）で、
   小さくすると上下の細い行が潰れる。--header-h に対して詰めすぎないこと */
.brand img { height: 72px; width: auto; max-width: 370px; object-fit: contain; display: block; }
@media (max-width: 900px) { :root { --header-h: 72px; } .brand img { height: 54px; } }
@media (max-width: 560px) { :root { --header-h: 64px; } .brand img { height: 46px; } }

nav.main { display: flex; align-items: center; gap: 1.5rem; }
.nav-item { position: relative; }
/* 和文と欧文で幅が違う（例: 映像 / MOVIE）ため、左寄せだと2行の軸がずれる。
   項目内で中央に揃える。letter-spacing は最後の字の後ろにも入って見た目が左へ寄るので、
   その半分を text-indent で戻している。※ドロワー（1080px以下）では左寄せに戻す */
.nav-parent { display: block; text-align: center; text-indent: 0.06em; font-size: 0.82rem; letter-spacing: 0.12em; font-weight: 700; color: var(--ink-soft); position: relative; padding: 0.4rem 0; transition: color 0.2s; cursor: pointer; }
.nav-parent small { display: block; text-indent: 0.1em; font-size: 0.56rem; letter-spacing: 0.2em; color: var(--ink-faint); text-transform: uppercase; font-family: var(--f-disp); font-weight: 700; }
.nav-item:hover .nav-parent, .nav-item:focus-within .nav-parent { color: var(--accent-bright); }
.nav-parent::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent-bright); transition: width 0.25s ease; }
.nav-item:hover .nav-parent::after, .nav-item:focus-within .nav-parent::after { width: 100%; }
/* リンクしない静的なナビ項目（内容未定のとき用）：下線・ホバー色・ポインタを無効化 */
.nav-parent--static, .nav-item:hover .nav-parent--static, .nav-item:focus-within .nav-parent--static { color: var(--ink-soft); cursor: default; }
.nav-parent--static::after { display: none; }

/* 子メニュー（PC：ホバードロップダウン） */
.submenu { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.85); padding: 0.4rem; margin: 0; z-index: 70; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(6px); }
.nav-item:last-child .submenu, .nav-item:nth-last-child(2) .submenu { left: auto; right: 0; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: 0.6rem 0.8rem; border-radius: 3px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.submenu a small { color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--surface-2); color: var(--accent-bright); }
/* リンクしない子メニュー項目（掲載の許可待ちのページ用。header68.php）：見た目だけ残し、ホバーで反応させない */
.submenu-static { display: block; padding: 0.6rem 0.8rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-faint); white-space: nowrap; cursor: default; }
.submenu-static small { font-weight: 500; letter-spacing: 0; }

.btn-ctc {
  display: inline-flex; align-items: center; line-height: 0;
  border-radius: 5px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-ctc img { display: block; width: 46px; height: 46px; }
.btn-ctc:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8); }
.burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0.4rem; }
.burger svg { width: 26px; height: 26px; }
/* 開いているあいだは×に差し替える（状態は header68.php の aria-expanded） */
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; color: var(--accent-bright); }
@media (max-width: 1080px) {
  nav.main { display: none; }
  .burger { display: inline-flex; }
  nav.main.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  nav.main.open .nav-item { border-top: 1px solid var(--line); }
  nav.main.open .nav-parent { padding: 0.9rem 0 0.3rem; color: var(--ink); text-align: left; text-indent: 0; }
  nav.main.open .nav-parent small { text-indent: 0; }
  nav.main.open .nav-parent::after { display: none; }
  /* モバイル：子メニューは常時展開（アコーディオン式） */
  nav.main.open .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; min-width: 0;
    padding: 0 0 0.6rem 0.8rem; border-left: 2px solid var(--line);
  }
  nav.main.open .submenu::before { display: none; }
  nav.main.open .submenu a { padding: 0.5rem 0.4rem; white-space: normal; color: var(--ink-soft); }
  nav.main.open .submenu-static { padding: 0.5rem 0.4rem; white-space: normal; }
}

/* ============ HERO（TOP） ============ */
.hero { position: relative; padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(2rem, 5vw, 3rem); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }

.hero-slider { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.95); }
.hero-slider .slides { display: flex; }
.js .hero-slider .slides { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.hero-slider .slide { flex: 0 0 100%; min-width: 0; }
.hero-slider .slide a, .hero-slider .slide picture { display: block; }
.hero-slider .slide img { width: 100%; display: block; }
/* 矢印 */
.hero-slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(8, 12, 22, 0.6); color: var(--accent-pale); display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background 0.2s; }
.hero-slider .nav:hover { background: rgba(8, 12, 22, 0.88); }
.hero-slider .nav svg { width: 22px; height: 22px; }
.hero-slider .prev { left: 0.8rem; }
.hero-slider .next { right: 0.8rem; }
/* ドット */
.hero-slider .dots { position: absolute; bottom: 0.9rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 3; }
.hero-slider .dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(233, 229, 219, 0.5); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); cursor: pointer; transition: width 0.25s, background 0.25s; }
.hero-slider .dots button[aria-current="true"] { width: 24px; border-radius: 5px; background: var(--accent-bright); }
.hero-slider:not(.ready) .nav, .hero-slider:not(.ready) .dots { display: none; }
@media (max-width: 640px) {
  .hero-slider .nav { width: 38px; height: 38px; }
  .hero-slider .nav svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .js .hero-slider .slides { transition: none; } }

/* キービジュアル直下の金の光条。夜と紙面をつなぐ */
.kv-glow {
  height: 3px; margin-top: -1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(212, 175, 55, 0.15) 12%, var(--accent-bright) 50%,
    rgba(212, 175, 55, 0.15) 88%, transparent 100%);
  box-shadow: 0 0 24px rgba(245, 215, 110, 0.5);
}

.hero-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: clamp(1.4rem, 3vw, 2rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-bar .hero-meta { margin: 0; padding: 0; border: 0; width: 100%; justify-content: space-between; align-items: flex-start; gap: 1rem clamp(1rem, 3vw, 2rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0 clamp(1.4rem, 4vw, 3rem); align-items: baseline; }
.meta-block .k { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); font-weight: 700; }
.meta-block .v { font-size: var(--step-1); font-weight: 700; }
.meta-block .v small { font-size: 0.6em; font-weight: 700; color: var(--ink-soft); }
.meta-block .v .accent { color: var(--accent-bright); }
.open-times { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.2rem 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.open-times b { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .hero-bar .hero-meta { justify-content: flex-start; } }

.cta { font-family: var(--f-disp); font-weight: 800; letter-spacing: 0.06em; font-size: 0.9rem; padding: 0.9rem 1.6rem; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.6em; transition: transform 0.15s, filter 0.2s, background 0.2s, color 0.2s, border-color 0.2s; }
.cta.solid { background: linear-gradient(145deg, var(--accent-pale), var(--accent) 55%, #B8912A); color: var(--accent-ink); box-shadow: 0 2px 18px rgba(212, 175, 55, 0.32); }
.cta.solid:hover { filter: brightness(1.07); transform: translateY(-2px); }
.cta.ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.cta.ghost:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); transform: translateY(-2px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
/* ヒーロー下：レース情報ボタンを等幅で横いっぱいに */
.hero-bar .hero-cta { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; margin: 0; }
.hero-bar .hero-cta .cta { width: 100%; justify-content: center; padding-inline: 0.8rem; }

/* ============ MARQUEE ============ */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; white-space: nowrap; position: relative; z-index: 3; }
.marquee .track { display: inline-flex; align-items: center; gap: 2.5rem; padding: 0.85rem 1.25rem; will-change: transform; animation: ks-slide 30s linear infinite; }
.marquee span { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: 0.14em; color: var(--ink); }
.marquee .dot { color: var(--accent); font-size: 0.7em; }
@keyframes ks-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ============ 下層ページの見出し ============ */
.page-head { padding: clamp(2.2rem, 6vw, 4rem) 0 clamp(1.6rem, 4vw, 2.4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-2); font-weight: 700; letter-spacing: 0.02em; }
.page-head .en { display: block; font-family: var(--f-disp); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.page-head .lead { margin: 1rem 0 0; color: var(--ink-soft); max-width: 72ch; }

/* パンくず */
.crumbs { font-size: 0.76rem; color: var(--ink-faint); padding: 1rem 0 0; letter-spacing: 0.04em; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-bright); }
.crumbs span { margin: 0 0.5em; opacity: 0.6; }

/* ============ SECTION SHELL ============ */
section.block { padding: clamp(3rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line); }
/* ヘッダーが sticky なので、アンカーで飛んだときに見出しが隠れないよう逃がす。
   ページ内リンク（/#access など）は全ページ section[id] で受けている。 */
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); flex-wrap: wrap; }
.sec-head h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: 0.02em; }
.sec-head h2 .accent { color: var(--accent-bright); }
.sec-head .en { font-family: var(--f-disp); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-left: auto; }
.sec-sub { margin: -0.8rem 0 clamp(1.4rem, 3vw, 2rem); color: var(--ink-soft); font-size: 0.9rem; }
.sec-sub strong { color: var(--ink); font-weight: 700; }
h3.sub-head {
  font-size: var(--step-1); font-weight: 700; letter-spacing: 0.02em;
  margin: clamp(2rem, 5vw, 3rem) 0 1rem; padding-left: 0.7em;
  border-left: 3px solid var(--accent); line-height: 1.4;
}
h3.sub-head:first-child { margin-top: 0; }
/* スマホでは「イベント・ファンサービス」のような長い見出しが左右いっぱいまで
   詰まるので、少しだけ小さくする。560px 時点では --step-2 と同じ値になるよう
   係数を合わせてあり、ブレークポイントで段差が出ない。 */
@media (max-width: 560px) {
  .sec-head h2,
  .page-head h1 { font-size: clamp(1.4rem, 0.56rem + 4vw, 1.97rem); }
}

/* ============ 開催日カード（TOP: Schedule） ============ */
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.day { padding: clamp(1rem, 2.4vw, 1.5rem) clamp(0.6rem, 1.6vw, 1.1rem); background: var(--surface); transition: background 0.25s; text-align: center; }
.day:hover { background: var(--surface-2); }
.day .dow { font-family: var(--f-disp); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-faint); }
.day .date { font-family: var(--f-disp); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; margin: 0.3rem 0 0.1rem; }
.day .date sup { font-size: 0.36em; vertical-align: super; color: var(--ink-faint); font-weight: 700; }
.day .tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); display: inline-block; margin-top: 0.3rem; }
.day.final { background: linear-gradient(160deg, #1A1206, #0C1322); }
.day.final .date { color: var(--accent-bright); }
.day.final .tag { color: var(--accent-pale); }
@media (max-width: 780px) { .days { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .days { grid-template-columns: repeat(2, 1fr); } }
.open-row { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; font-size: 0.9rem; color: var(--ink-soft); }
.open-row b { font-family: var(--f-disp); color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }

/* ============ About（大会紹介） ============ */
/* 見出しはキャッチコピー。スマホ幅で「競輪発祥の地／に、」のように語の途中で
   折れないよう、改行は「、」の後（<wbr>）だけに限る。 */
.about-title { word-break: keep-all; overflow-wrap: anywhere; }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-body { color: var(--ink-soft); }
.about-body p { margin: 0 0 1.1em; }
.kv-card { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface); }
.kv-card img { width: 100%; display: block; }
.kv-card figcaption { padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ink-faint); background: var(--surface-2); }

/* 大会概要（定義リスト） */
.spec { margin: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface); }
.spec > div { display: grid; grid-template-columns: 7em 1fr; gap: 0 1rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); }
.spec > div:first-child { border-top: 0; }
.spec dt { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent); font-family: var(--f-disp); font-weight: 700; padding-top: 0.25em; }
.spec dd { margin: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.6; }
.spec dd small { font-size: 0.86em; font-weight: 500; color: var(--ink-soft); }
@media (max-width: 480px) {
  .spec > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .spec dt { padding-top: 0; }
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ============ カードグリッド（イベント・ファンサービス等） ============ */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.events.col3 { grid-template-columns: repeat(3, 1fr); }
.events.col2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .events, .events.col3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .events, .events.col3, .events.col2 { grid-template-columns: 1fr; } }
.ev { border: 1px solid var(--line); border-radius: 3px; padding: clamp(1.3rem, 3vw, 1.7rem); background: var(--surface); display: flex; flex-direction: column; gap: 0.6rem; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.ev:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.ev .cat { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-family: var(--f-disp); font-weight: 700; }
/* カード見出しは幅が狭い。日本語を文節で折り返す（未対応ブラウザは従来どおりの折返し） */
.ev h3 { font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); font-weight: 700; word-break: auto-phrase; }
.ev h3 span { display: inline-block; }
.ev p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.ev .when { margin-top: auto; font-family: var(--f-disp); font-weight: 700; font-size: 0.8rem; color: var(--ink); letter-spacing: 0.04em; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.ev .when .loc { display: block; line-height: 1.5; }
@media (min-width: 901px) { .ev .when .loc { min-height: 3em; } }
/* 内容未定で非リンクのカード（近日公開） */
.ev--static { cursor: default; }
.ev--static:hover { transform: none; border-color: var(--line); background: var(--surface); }
.ev--static .when { color: var(--ink-faint); }

/* ============ 準備中プレースホルダ ============ */
.coming {
  border: 1px dashed var(--line-strong); border-radius: 4px;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.2rem, 4vw, 2.5rem);
  text-align: center; background: var(--surface-2);
}
.coming .badge {
  display: inline-block; margin-bottom: 1rem; padding: 0.3em 1.2em;
  font-family: var(--f-disp); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.24em; text-indent: 0.24em;
  color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-pale), var(--accent) 55%, #B8912A);
  border-radius: 2px;
}
.coming p { margin: 0 auto; max-width: 60ch; color: var(--ink-soft); }
.coming p + p { margin-top: 0.8rem; }
.coming .when { margin-top: 1.2rem; font-family: var(--f-disp); font-weight: 700; color: var(--accent-bright); letter-spacing: 0.06em; }
.coming strong { color: var(--ink); font-weight: 700; }
/* 「仮掲載」など、本文を左寄せで読ませたい注意書き用 */
.coming--note { text-align: left; padding-block: clamp(1.3rem, 3.5vw, 1.9rem); }
.coming--note p { margin-inline: 0; max-width: none; }

/* ============ 表（発走・発売時間 / 歴代優勝者） ============ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-family: var(--f-disp); font-size: 0.92rem; min-width: 440px; }
table.data th,
table.data td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.data thead th,
table.data th[scope] { background: var(--surface-2); color: var(--accent); font-weight: 700; letter-spacing: 0.08em; font-size: 0.76rem; }
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(212, 175, 55, 0.05); }
table.data .raceno { font-weight: 800; color: var(--accent-bright); }
table.data td.name { text-align: left; font-weight: 700; letter-spacing: 0.02em; }
table.data td.yr { color: var(--ink-faint); }
table.data caption {
  caption-side: top; text-align: left; padding: 0.9rem 0.9rem 0.6rem;
  font-weight: 700; letter-spacing: 0.04em; color: var(--ink);
}
table.data caption small { color: var(--ink-faint); font-weight: 500; margin-left: 0.6em; letter-spacing: 0; }
.table-note { margin: 0.8rem 0 0; font-size: 0.8rem; color: var(--ink-faint); }
.table-note a { color: var(--accent-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.table-note a:hover { color: var(--accent-pale); }

/* 日別の表を並べるグリッド（発走・発売時間）
   1枚あたり最低 480px を確保する。これを下回ると表（min-width 440px）が
   横スクロールに追いやられ、「発売締切」の2列が見えなくなる。
   スマホ幅では min-width を外し、余白を詰めて画面内に5列を収める。
   ※ 列を 1fr にすると表の min-width に引っ張られて枠ごと画面外へはみ出すので、
      minmax(0, 1fr) にしておくこと（2026-09-14 実機確認）。 */
.day-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 560px) {
  .day-tables { grid-template-columns: minmax(0, 1fr); }
  .day-tables table.data { min-width: 0; }
  .day-tables table.data th,
  .day-tables table.data td { padding-inline: 0.25rem; }
  .day-tables table.data thead th { letter-spacing: 0; }
}

/* 歴代優勝者一覧（回・決勝日・氏名・府県）。
   1カラムで縦に並べる（2026-08-31 豊嶋さん指示）。以前は2段組みだったが、
   第67回→第66回が左右に並ぶため「上から順に読む」動きにならなかった。

   幅は 820px で止める（.figure と同じ measure）。1180px いっぱいに広げると
   氏名と府県のあいだが間延びして拾いにくくなる。中央寄せにはせず、
   見出し・補足と左端を揃える。

   罫線は gap ではなく各セルの border で引く。gap 方式だと枠が
   そのまま帯色として見えてしまうため。 */
.hist { display: grid; grid-template-columns: 1fr; max-width: 820px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface); }
.hist div {
  display: grid; grid-template-columns: 4.6em 6.4em 1fr auto; align-items: baseline; gap: 0 0.8rem;
  padding: 0.5rem 1rem; border-top: 1px solid var(--line);
}
.hist .k { font-family: var(--f-disp); font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.hist .y { font-family: var(--f-disp); font-size: 0.8rem; color: var(--ink-soft); }
.hist .n { font-weight: 700; font-size: 0.94rem; }
.hist .p { font-size: 0.76rem; color: var(--ink-soft); }
.hist div:first-child { border-top: 0; }
@media (max-width: 420px) {
  .hist div { grid-template-columns: 4.4em 1fr auto; }
  .hist .y { grid-column: 1 / 2; grid-row: 2; }
  .hist .n { grid-column: 2 / 3; grid-row: 1 / 3; align-self: center; }
  .hist .p { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* 一覧の下に付ける補足 */
.hist-notes { margin: 1rem 0 0; }
/* 歴代優勝者一覧の直後だけ、表と同じ幅に揃える（points.html 側は全幅のまま） */
.hist + .hist-notes { max-width: 820px; }
.hist-notes li { position: relative; padding-left: 1.2em; margin-bottom: 0.35em; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.7; }
.hist-notes li::before { content: "※"; position: absolute; left: 0; }
.hist-notes li strong { color: var(--ink-soft); font-weight: 700; }

/* ============ 一次予選ポイントランキング ============ */
/* 列が8つあるので、table.data の既定（440px）では収まらない。
   ここで下限を上げ、狭い画面では .table-scroll に横スクロールさせる。
   ※ `table.data` より詳細度を上げないと既定の 440px に負けるため、
     min-width は必ず `table.data.pt-table` の形で書くこと。 */
table.data.pt-table { min-width: 680px; }
.pt-table td { padding-block: 0.5rem; }

.pt-rank { font-weight: 800; font-size: 1.05rem; width: 4.4em; }
.pt-pref, .pt-class { color: var(--ink-faint); font-size: 0.84rem; }

/* 各レースの「着順 + 獲得ポイント」。着順を小さく、ポイントを金で添える */
.pt-race { font-size: 0.84rem; color: var(--ink-soft); }
.pt-race b { font-weight: 700; color: var(--accent-bright); margin-left: 0.5em; }
.pt-race .yet { color: var(--ink-faint); opacity: 0.6; }

/* 合計ポイント。この表で一番読ませたい数字 */
.pt-total { font-weight: 800; font-size: 1.15rem; color: var(--accent-bright); }
.pt-total small { font-size: 0.6em; font-weight: 700; margin-left: 0.1em; color: var(--ink-faint); }

.pt-group { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; }

/* 区分の区切り行
   区切り行の th は scope 付きなので、そのままだと既存の
   `table.data th[scope]` に背景と文字色を持っていかれる。
   同じ強さでは並びで決まってしまうため、tr を挟んで詳細度を上げてある。 */
table.data tr.pt-sep th {
  text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  padding: 0.5rem 0.7rem; background: var(--surface-2); color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
table.data tr.pt-sep th small { font-weight: 500; letter-spacing: 0.04em; margin-left: 0.8em; opacity: 0.8; }
table.data tr.pt-sep--diamond th { color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-pale), var(--accent) 60%, #B8912A); }
table.data tr.pt-sep--border th { color: var(--ink); background: rgba(200, 16, 46, 0.26); }

/* ダイヤモンドレース進出圏は地色を起こして目立たせる */
.pt-row--diamond td { background: rgba(212, 175, 55, 0.07); }
.pt-row--diamond .name { color: var(--accent-pale); }
.pt-row--diamond .pt-group { color: var(--accent); font-weight: 700; }
/* 二次予選Bは沈める。順位が下であることが一目で分かるように */
.pt-row--second-b .pt-total { color: var(--ink-soft); }
/* 同ポイントで境目にかかっている選手。朱で注意を引く */
.pt-row--border td { background: rgba(200, 16, 46, 0.09); }
.pt-row--border .pt-group { color: var(--aka-bright); font-weight: 700; }

/* 選手名の下に出す府県・級班。狭い画面で列をたたんだときの受け皿で、
   PCでは専用の列があるので出さない */
.pt-table .name .pt-sub { display: none; }

/* 狭い画面は「順位・選手名・合計」の3列だけにする。
   8列のまま横スクロールさせると、このページで一番読ませたい合計ポイントが
   画面の外に出てしまう（390px幅では予選2の途中で切れる）。
   落とした府県・級班と各走の内訳は選手名の下に文字で持たせてあるので、
   列を減らしても情報は失われない。勝ち上がりは区切り行と行の色で読み取れる。 */
@media (max-width: 640px) {
  table.data.pt-table { min-width: 0; font-size: 0.86rem; }
  .pt-table thead th:nth-child(3), .pt-table tbody td:nth-child(3),
  .pt-table thead th:nth-child(4), .pt-table tbody td:nth-child(4),
  .pt-table thead th:nth-child(5), .pt-table tbody td:nth-child(5),
  .pt-table thead th:nth-child(6), .pt-table tbody td:nth-child(6),
  .pt-table thead th:nth-child(8), .pt-table tbody td:nth-child(8) { display: none; }
  .pt-table th, .pt-table td { padding-inline: 0.4rem; }
  .pt-rank { width: 3.4em; font-size: 0.98rem; }
  .pt-table .name { white-space: normal; line-height: 1.35; padding-block: 0.55rem; }
  .pt-table .name .pt-sub {
    display: block; font-weight: 500; font-size: 0.68rem;
    color: var(--ink-faint); letter-spacing: 0.02em; margin-top: 0.15em;
  }
  .pt-table .name .pt-sub--race { color: var(--ink-soft); }
}

/* ポイント設定の表 */
table.data.pt-rule { min-width: 620px; }
.pt-rule th[scope="row"] { text-align: left; white-space: nowrap; }
.pt-cell { font-family: var(--f-disp); font-weight: 700; font-size: 1rem; }
/* 一次予選2で配点が上がる1〜3着 */
.pt-cell.up { color: var(--accent-bright); font-weight: 800; }
.pt-cell.zero { color: var(--ink-faint); opacity: 0.7; }

/* 勝ち上がりの区分カード */
.pt-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.pt-group-card { background: var(--surface); padding: clamp(1.1rem, 2.6vw, 1.5rem); display: flex; align-items: center; gap: 1rem; }
.pt-group-card .rank { font-family: var(--f-disp); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1; color: var(--accent); white-space: nowrap; }
.pt-group-card .rank span { font-size: 0.6em; font-weight: 700; margin: 0 0.1em; color: var(--ink-faint); }
.pt-group-card .rank small { font-size: 0.5em; font-weight: 700; margin-left: 0.15em; color: var(--ink-faint); }
.pt-group-card .nm { font-weight: 700; font-size: 0.98rem; line-height: 1.4; word-break: auto-phrase; }
.pt-group-card .num { font-family: var(--f-disp); font-size: 0.76rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-top: 0.2rem; }
.pt-group-card--diamond { background: linear-gradient(160deg, #1A1206, #0C1322); }
.pt-group-card--diamond .rank { color: var(--accent-bright); }
.pt-group-card--diamond .nm { color: var(--accent-pale); }
@media (max-width: 820px) { .pt-groups { grid-template-columns: 1fr; } }

/* ============ 直近優勝者カード ============ */
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.win { background: var(--surface); padding: 1.1rem 1.2rem; display: block; transition: background 0.2s; }
.win:hover { background: var(--surface-2); }
.win .yr { font-family: var(--f-disp); font-weight: 700; font-size: 0.72rem; color: var(--accent); letter-spacing: 0.06em; }
.win .nm { font-weight: 700; font-size: 1.12rem; margin-top: 0.15rem; }
.win .rg { font-size: 0.7rem; color: var(--ink-soft); }

/* ============ 映像 ============ */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.4rem, 3.5vw, 2.5rem); align-items: start; }
/* 複数本を横並びではなく上下に積むとき（PV → CM の順） */
.movie-grid.stack { grid-template-columns: 1fr; }
.movie-frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 3px; background: #000; display: grid; place-items: center; position: relative; overflow: hidden; }
.movie-frame iframe { width: 100%; height: 100%; border: 0; }
.movie-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.movie-label { display: flex; align-items: center; gap: 0.6em; margin: 0 0 0.9rem; font-weight: 700; font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem); color: var(--ink); letter-spacing: 0.02em; }
.movie-label::before { content: ""; width: 1.7em; height: 2px; background: var(--accent-bright); flex: none; }

/* 過去の決勝戦映像リスト */
.final-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.final-list a { display: flex; align-items: center; gap: 0.9rem; padding: 1.05rem 1.2rem; background: var(--surface); transition: background 0.2s, color 0.2s; }
.final-list a:hover { background: var(--surface-2); color: var(--accent-bright); }
.final-list .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--aka); color: #fff; display: grid; place-items: center; }
.final-list .ic svg { width: 13px; height: 13px; margin-left: 2px; }
.final-list .tx { font-weight: 700; font-size: 0.92rem; line-height: 1.4; }
.final-list .tx small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ============ ファンバス運行表 ============ */
.bus-route { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.3rem; margin: 0 0 1.2rem; }
.bus-route li { display: inline-flex; align-items: center; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.bus-route li small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); }
.bus-route li + li::before { content: "▶"; color: var(--accent); font-size: 0.6em; margin: 0 0.7em 0 0.4em; }
.bus-times { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; }
.bus-times li {
  font-family: var(--f-disp); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--ink);
}
.bus-day { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); padding: 1rem 1.2rem; }
.bus-day h4 { font-family: var(--f-disp); font-weight: 700; font-size: 0.92rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.bus-day ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bus-day li { font-family: var(--f-disp); font-size: 0.88rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); }
.bus-day li b { color: var(--ink); font-weight: 700; }
.bus-day li small { color: var(--ink-soft); font-size: 0.78em; margin-left: 0.2em; }
.bus-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(0.8rem, 2vw, 1.2rem); }

/* 図版（バス乗り場・駐車場マップ）
   元画像が大きいので、画面いっぱいに広げず読みやすい幅で中央に置く */
.figure { margin: clamp(1.4rem, 3vw, 2rem) auto 0; max-width: 820px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface); }
.figure img { width: 100%; display: block; background: #fff; }
.figure figcaption { padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-soft); background: var(--surface-2); }
.figure figcaption em { font-style: normal; color: var(--accent-bright); font-weight: 700; }

/* ============ よくあるご質問 ============ */
.faq-list { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem 1rem 3rem;
  position: relative; font-weight: 700; transition: background 0.15s, color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "Q"; position: absolute; left: 1.1rem; top: 1rem;
  width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-disp); font-size: 0.72rem; font-weight: 800;
  background: linear-gradient(145deg, var(--accent-pale), var(--accent) 55%, #B8912A);
  color: var(--accent-ink);
}
.faq-list summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 1.45rem;
  width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq-list details[open] summary { color: var(--accent-bright); background: var(--surface-2); }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list summary:hover { background: var(--surface-2); }
.faq-list .a { padding: 0 1.2rem 1.2rem 3rem; color: var(--ink-soft); font-size: 0.92rem; }

/* 注意事項リスト */
.notes { border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); padding: clamp(1.2rem, 3vw, 1.8rem); }
.notes li { position: relative; padding-left: 1.3em; margin-bottom: 0.7em; color: var(--ink-soft); font-size: 0.9rem; }
.notes li:last-child { margin-bottom: 0; }
.notes li::before { content: "・"; position: absolute; left: 0; color: var(--accent); }

/* 汎用の本文リスト・段落 */
.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .accent { color: var(--accent-bright); }
.note-s { font-size: 0.82rem; color: var(--ink-faint); margin: 0.6rem 0 0; }

/* 推奨選手・注目選手カード */
.riders { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.rider { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); padding: clamp(1.2rem, 3vw, 1.6rem); }
.rider .nm { font-size: var(--step-1); font-weight: 700; letter-spacing: 0.04em; }
.rider .meta { font-family: var(--f-disp); font-size: 0.76rem; color: var(--accent); letter-spacing: 0.08em; margin-top: 0.2rem; }
.rider p { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ============ アクセス ============ */
.access-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.access-info .addr { font-size: var(--step-1); font-weight: 700; }
.access-info .addr small { display: block; font-size: 0.5em; color: var(--ink-faint); letter-spacing: 0.1em; margin-top: 0.4rem; font-weight: 700; }
.ways { margin-top: 1.6rem; display: flex; flex-direction: column; }
.way { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.way:last-child { border-bottom: 1px solid var(--line); }
.way .ic { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.way .ic svg { width: 20px; height: 20px; }
.way b { display: block; font-weight: 700; }
.way span { font-size: 0.86rem; color: var(--ink-soft); }
.way a { color: var(--accent-bright); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
/* 外部リンクにだけ矢印を出す。サイト内リンクには付けない */
.way a[target="_blank"]::after { content: "↗"; margin-left: 0.25em; font-size: 0.9em; text-decoration: none; display: inline-block; }
.way a:hover, .way a:focus-visible { color: var(--accent-pale); text-decoration-thickness: 2px; }
.map-col { display: flex; flex-direction: column; gap: 1rem; }
.map-embed { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr; } }

/* ============ 関連リンクバナー ============ */
.link-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; align-items: stretch; }
.link-banners a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; transition: transform 0.15s, box-shadow 0.2s; }
.link-banners a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8); }
.link-banners img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 1; object-fit: contain; background: #fff; }
/* スマホは auto-fill だと1列になって縦に間延びするので2列で固定する */
@media (max-width: 560px) {
  .link-banners { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* ============ FOOTER ============ */
footer.site { background: var(--surface-2); border-top: 1px solid var(--line-strong); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
/* フッターのブランドは大会ロゴ（白版）。ヘッダーより一回り小さくするが、
   ヘッダーと同じ3段組みなので細い行が読める高さは残すこと */
img.mark { height: 56px; width: auto; max-width: 100%; display: block; }
@media (max-width: 560px) { img.mark { height: 46px; } }
.foot-brand p { color: var(--ink-soft); font-size: 0.86rem; margin: 0.6rem 0 0; max-width: 38ch; }
.foot-links { display: flex; gap: clamp(2rem, 6vw, 4rem); flex-wrap: wrap; }
.foot-col h4 { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-family: var(--f-disp); font-weight: 700; margin: 0 0 0.9rem; }
.foot-col a { display: block; font-size: 0.9rem; color: var(--ink-soft); padding: 0.28rem 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--accent-bright); }
.foot-bottom { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.foot-bottom small { color: var(--ink-faint); font-size: 0.76rem; letter-spacing: 0.04em; }
.foot-bottom a { color: var(--ink-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
.foot-bottom a:hover { color: var(--accent-bright); }

/* ============ MOTION ============ */
/* JS有効時のみ隠す（未実行・reduced-motion時は常に表示＝内容が消えない） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ PAGE TOP ============ */
#PageTop { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: 44px; height: 44px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#PageTop.show { opacity: 1; pointer-events: auto; }

/* ============ よくあるご質問 フロートボタン ============
   PC: 左下に固定（右下の #PageTop と重ならないよう左側に置く）
   SP: 画面最下部に横幅いっぱいのバーとして固定 */
#FaqFloat {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.8rem 1.2rem; border-radius: 2px;
  background: linear-gradient(145deg, var(--accent-pale), var(--accent) 55%, #B8912A);
  color: var(--accent-ink);
  font-family: var(--f-disp); font-weight: 800; letter-spacing: 0.06em; font-size: 0.82rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: filter 0.2s, transform 0.15s;
}
#FaqFloat .fq-icon {
  display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--accent-ink); color: var(--accent-bright);
  font-size: 0.85em; font-weight: 900; line-height: 1;
}
@media (hover: hover) {
  #FaqFloat:hover { filter: brightness(1.07); transform: translateY(-2px); }
}
@media (max-width: 900px) {
  #FaqFloat {
    left: 0; right: 0; bottom: 0; justify-content: center;
    border-radius: 0; font-size: 0.88rem;
    padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
  }
  /* 最下部のバーに重ならないよう、ページトップボタンを持ち上げる */
  #PageTop { bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  /* バーがフッター末尾を隠さないよう、その分だけ下に余白を足す */
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ============ 仮情報バッジ（本番公開前に削除する） ============ */
.demo-note { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 80; background: rgba(200, 16, 46, 0.92); color: #fff; font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.5rem 0.95rem; border-radius: 100px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); font-family: var(--f-disp); font-weight: 700; }

/* ============ 画像のダウンロード抑止 ============
   ドラッグ保存・iOS長押し保存を抑止（右クリック抑止は footer68.php のJS）。
   ※完全な防止は不可。一般的な保存操作を抑止する目的。 */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
