@charset "UTF-8";
/* ==========================================================
   スーパースターフェスタ2026 特設サイト
   モバイルファースト：基本 = スマホ / 768px〜 = タブレット・PC / 1024px〜 = PC
   ========================================================== */

:root {
  --bg: #1a0504;
  --bg-deep: #0e0202;
  --bg-card: #2a0b08;
  --line: rgba(255, 197, 49, .25);
  --text: #fff;
  --text-sub: #d9c7bf;
  --gold: #ffc531;
  --gold-light: #fff3c4;
  --orange: #ff8a00;
  --red: #d0121b;
  --sun: #ff4d6d;
  --header-h: 56px;
  --font-display: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Hiragino Sans", sans-serif;
  --font-num: "Orbitron", sans-serif;
  --gold-grad: linear-gradient(180deg, #fffbe6 0%, #ffe07a 28%, #ffb21a 52%, #ff8a00 62%, #ffe48a 80%, #ffb000 100%);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 12px;
  background: rgba(14, 2, 2, .96); /* backdrop-filterは子のfixedメニューを閉じ込めるので使わない */
  border-bottom: 1px solid var(--line);
}
.header__logo { position: relative; z-index: 2; }
.header__logo img { height: 32px; width: auto; }
.menu-btn {
  position: relative; z-index: 2;
  width: 44px; height: 44px; border: 0; background: none;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: #fff;
  transition: transform .25s, background .25s;
}
.menu-btn span { top: 21px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.gnav {
  position: fixed; inset: 0; z-index: 1;
  padding: calc(var(--header-h) + 16px) 24px 24px;
  background: rgba(14, 2, 2, .97);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.gnav.is-open { opacity: 1; visibility: visible; }
.gnav a {
  display: block; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: bold; font-size: 16px;
}
.gnav a { position: relative; }
.gnav a::after { content: "›"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 20px; }
/* 2ライン目の英語表記 */
.gnav a small {
  display: block; margin-top: 2px;
  font-family: var(--font-num); font-size: 10px; font-weight: 900;
  letter-spacing: .2em; color: var(--gold); opacity: .8;
}body.is-menu-open { overflow: hidden; }

/* ---------- 共通セクション ---------- */
main { overflow: hidden; } /* 背景は下の「背景アクセント」で指定 */
.sec { max-width: 760px; margin: 0 auto; padding: 48px 16px 16px; }

/* ===== 背景アクセント ===== */
/* 画面の左右に交互に、オレンジ系のやわらかい光を置く */
main {
  background:
    radial-gradient(ellipse 120% 40% at 50% 0%, #3a0c07 0%, transparent 70%),
    radial-gradient(ellipse 70% 900px at -10% 1600px, rgba(255, 110, 20, .26), transparent 70%),
    radial-gradient(ellipse 70% 900px at 110% 3200px, rgba(255, 60, 90, .20), transparent 70%),
    radial-gradient(ellipse 70% 900px at -10% 4800px, rgba(255, 150, 30, .22), transparent 70%),
    radial-gradient(ellipse 70% 900px at 110% 6400px, rgba(80, 150, 255, .16), transparent 70%),
    radial-gradient(ellipse 70% 900px at -10% 8000px, rgba(255, 110, 20, .22), transparent 70%),
    var(--bg);
}
/* チェッカーフラッグ：KVの市松模様を各セクションの区切りに(カウントダウン直下の「〜とは」は文字と重なるので除く) */
.sec { position: relative; }
.sec:not(#about)::before {
  content: ""; position: absolute; left: 50%; top: 10px; z-index: 0; pointer-events: none;
  width: 100vw; height: 22px; transform: translateX(-50%);
  background: conic-gradient(rgba(255, 170, 60, .26) 25%, transparent 0 50%, rgba(255, 170, 60, .26) 0 75%, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

/* 見出し画像(700×305)：スマホは画面幅いっぱい、PCは最大520px。端はページ背景になじませる */
.ttl-img { margin: 0 -16px 8px; }
.ttl-img img {
  width: 100%; max-width: 520px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.players + .ttl-img, .players__note + .ttl-img { margin-top: 16px; }

/* ---------- アクセス ---------- */
.map {
  aspect-ratio: 4 / 3;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 12px;
  margin-top: 16px; font-size: 14px; line-height: 1.6;
}
.access dt {
  height: fit-content; padding: 2px 8px; border-radius: 3px;
  background: var(--red); font-size: 12px; font-weight: bold; white-space: nowrap;
  text-align: center;
}
.access dd b { color: var(--gold); }
.access-btn {
  position: relative;
  display: block; margin: 20px auto 8px; max-width: 420px;
  padding: 14px 40px; border-radius: 28px;
  text-align: center; text-decoration: none; font-weight: bold; font-size: 15px;
  color: #3a0700; background: var(--gold-grad);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  transition: filter .2s, transform .2s;
}
.access-btn::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-top: 2px solid #3a0700; border-right: 2px solid #3a0700; transform: rotate(45deg);
}
.access-btn:hover, .access-btn:active { filter: brightness(1.1); transform: translateY(-2px); }
@media (min-width: 768px) {
  .map { aspect-ratio: 16 / 9; }
  .access { font-size: 15px; }
}

.soon--left { text-align: left !important; } /* 長い文はスマホで中央揃えだと改行位置が不自然なので左揃え */
.soon {
  margin: 16px 0;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

/* ---------- KV ---------- */
.kv {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
/* 画像より画面が広いときに左右に見える背景：KV画像そのものを大きくぼかして敷く */
.kv::before {
  content: "";
  position: absolute; inset: -60px;
  background: url(../img/kv.jpg) center / cover no-repeat;
  filter: blur(40px) brightness(.75) saturate(1.2);
}
/* 下端をページ背景色へなじませる */
.kv::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.kv__inner {
  position: relative; z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}
.kv__img { width: 100%; }
/* 画像の左右端を背景のぼかしへ溶け込ませる(画面が画像幅より広いときだけ) */
@media (min-width: 1401px) {
  .kv__img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}

/* ---------- カウントダウン ---------- */
.countdown {
  position: relative;
  padding: 20px 16px 22px;
  text-align: center;
  font-weight: 900;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(255, 150, 30, .18), transparent 70%),
    var(--bg-deep);
}
/* 上下の金ライン */
.countdown::before, .countdown::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, #fff3c4 50%, var(--gold) 80%, transparent);
}
.countdown::before { top: 0; }
.countdown::after { bottom: 0; }
.countdown__label { font-size: clamp(15px, 4.4vw, 22px); letter-spacing: .04em; }
.countdown__main {
  display: flex; justify-content: center; align-items: baseline; gap: 12px;
  font-size: clamp(20px, 6vw, 30px); line-height: 1;
  margin-top: 6px;
}
.countdown__num {
  font-family: var(--font-num); font-weight: 900;
  font-size: clamp(72px, 24vw, 128px); line-height: .9;
  letter-spacing: .02em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #3a0700) drop-shadow(0 0 16px rgba(255, 160, 30, .6));
}

/* ---------- ABOUT ---------- */
/* 透かし文字・見出し・リード文＝HTML＋CSS、レース紹介＝画像 */
#about { position: relative; padding-top: 32px; }
#about > *:not(.about__bg) { position: relative; z-index: 1; }

/* 背景の大きな透かし文字 */
.about__bg {
  position: absolute; z-index: 0; left: 50%; top: 8px;
  width: max-content;
  transform: translateX(-50%) rotate(-6deg) !important; /* スクロール表示のアニメーションに上書きされないよう固定 */
  font-family: var(--font-num); font-weight: 900; font-style: italic;
  font-size: clamp(56px, 17vw, 120px); line-height: .95; text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 140, 40, .22);
  pointer-events: none;
}

/* 見出し：シルバーの立体文字 */
.about__ttl {
  text-align: center;
  font-family: var(--font-display); font-weight: 400;
  line-height: 1.1;
}
.about__ttl span {
  display: block;
  white-space: nowrap;
  transform: skewX(-8deg); /* 親にtransformを付けるとスクロール表示のアニメーションと競合するので子に付ける */
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 40%, #9a9a9a 55%, #ffffff 75%, #c9c9c9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5a4030) drop-shadow(0 4px 6px rgba(0, 0, 0, .7));
}
.about__ttl span:first-child { font-size: clamp(26px, 8.2vw, 58px); }
.about__ttl span:last-child { font-size: clamp(34px, 10vw, 62px); }
.about__ttl small { font-size: .7em; }

/* リード文 */
.about__lead { margin-top: 20px; text-align: center; font-weight: 900; }
.about__lead-1 {
  display: inline-block;
  font-size: clamp(20px, 6.2vw, 34px);
  line-height: 1.4;
  border-bottom: 2px solid #fff;
}
.about__lead-2 { margin-top: 10px; font-size: clamp(14px, 4.3vw, 22px); letter-spacing: -.02em; }
.about__gather {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: clamp(14px, 4.3vw, 22px); line-height: 1.35; text-align: left;
}
.about__gather strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 3em; line-height: 1;
  transform: skewX(-8deg);
  background: linear-gradient(180deg, #fff 0%, #fff6d8 45%, #e2c58a 60%, #fff 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5a4030) drop-shadow(0 0 12px rgba(255, 200, 80, .55));
}

/* レース紹介画像(700×1100)：スマホは画面幅いっぱい、PCは原寸700pxで中央 */
.about__races { margin: 16px -16px 8px; }
.about__img {
  width: 100%; max-width: 700px; margin: 0 auto;
  /* 上端を背景になじませる */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6%);
}
@media (min-width: 732px) {
  .about__races { margin: 24px auto 8px; }
  /* PCでは左右の端もなじませる */
  .about__img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 6%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-composite: intersect;
  }
}

/* ---------- YouTube(タップで読み込み) ---------- */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 16px 0 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  border: 1px solid var(--line);
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; inset: 0; width: 100%; border: 0;
  background: rgba(0, 0, 0, .15);
  display: grid; place-items: center;
}
.yt__play::before {
  content: ""; width: 68px; height: 48px; border-radius: 12px; background: #f00;
}
.yt__play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.yt.is-empty { display: grid; place-items: center; color: var(--text-sub); font-weight: bold; }

/* ---------- レース情報ボタン(画像 700×250) ---------- */
/* スマホ：画面幅いっぱいに縦並び / PC：2列 */
.race-links { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -16px; } /* スマホもPCも2列 */
.race-link { position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.race-link img {
  width: 100%; transition: filter .2s, transform .2s;
  /* 画像の四角い背景を、上下左右の端でページ背景になじませる */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.race-link:hover img, .race-link:active img { filter: brightness(1.2); transform: scale(1.02); }
/* 準備中：グレーアウトのみ(文字ラベルなし) */
.race-link.is-soon { cursor: default; }
.race-link.is-soon img { filter: grayscale(1) brightness(.55); transform: none; }

/* ---------- 出場選手 ---------- */
/* スマホは3列、768px以上で4列。flexで並べて、端数が出る最下段はセンター揃え */
.players {
  --cols: 3; --gap-x: 10px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px var(--gap-x);
  margin-bottom: 32px;
}
.players > li { flex: 0 0 calc((100% - var(--gap-x) * (var(--cols) - 1)) / var(--cols)); min-width: 0; }
.players__empty {
  flex-basis: 100%;
  padding: 56px 16px;
  text-align: center; color: var(--text-sub);
  border: 1px dashed var(--line); border-radius: 8px;
}
.players__empty small { font-size: 12px; }
.players__note { margin: -18px 0 32px; font-size: 12px; color: var(--text-sub); text-align: center; } /* 写真一覧のすぐ下に補足 */
.player { display: block; text-decoration: none; text-align: center; }
/* 写真枠(3:4)。写真が入るまではシルエットを表示 */
.player__photo {
  display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--line);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Ccircle cx='15' cy='15' r='7' fill='%23ffffff' fill-opacity='.12'/%3E%3Cpath d='M2 40c0-9 6-14 13-14s13 5 13 14z' fill='%23ffffff' fill-opacity='.12'/%3E%3C/svg%3E") center bottom / 90% no-repeat,
    linear-gradient(180deg, #3a100a, var(--bg-card));
}
.player__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; transform-origin: 50% 35%; }
a.player .player__photo { transition: border-color .2s, transform .2s; }
a.player:hover .player__photo, a.player:active .player__photo { border-color: var(--gold); transform: translateY(-2px); }
/* マウスオーバーで顔のあたりを中心にアップ(マウス操作の端末のみ) */
@media (hover: hover) {
  a.player:hover .player__photo img { transform: scale(1.15); }
}
.player__name { display: block; margin-top: 5px; font-size: clamp(12px, 3.9vw, 15px); font-weight: bold; line-height: 1.3; white-space: nowrap; }
.player__meta { display: block; min-height: 1.5em; font-size: clamp(10px, 3vw, 11px); color: var(--text-sub); }
/* スーパースター出場回数「〇大会連続〇回目」(幅320pxのスマホでも1行に収まるよう画面幅に合わせて縮小) */
.player__streak {
  display: block; min-height: 1.3em;
  font-size: clamp(9px, 2.9vw, 11px); font-weight: bold; line-height: 1.3; color: var(--gold);
  letter-spacing: -.02em; white-space: nowrap;
}

/* ---------- インフォメーション ---------- */
.news li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, .35);
  font-size: 14px;
}
.news time { font-family: var(--font-num); font-size: 12px; color: var(--text-sub); }
.news__tag {
  padding: 0 8px; border-radius: 2px;
  background: var(--red); font-size: 11px; font-weight: bold; line-height: 20px;
}
.news__text { flex: 1 1 100%; }
a.news__text { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- SNS ---------- */
.sns {
  margin-top: 32px; padding: 20px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 150, 30, .18), transparent 70%), var(--bg-card);
}
.sns__ttl { margin-bottom: 14px; text-align: center; font-size: 17px; font-weight: 900; }
.sns__ttl span { color: var(--gold); }
.sns__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 14px; border-radius: 10px;
  text-decoration: none; color: #fff; font-weight: bold;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
  transition: filter .2s, transform .2s;
}
.sns__btn:hover, .sns__btn:active { filter: brightness(1.1); transform: translateY(-2px); }
.sns__btn svg { flex: none; width: 28px; height: 28px; fill: #fff; }
.sns__label { line-height: 1.2; text-align: center; }
.sns__label b { font-size: 11px; white-space: nowrap; }
/* 4つ同じ大きさで横並び */
.sns__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sns__row .sns__btn { flex-direction: column; gap: 6px; min-height: 72px; padding: 10px 2px; }
.sns__btn--yt { background: #ff0000; }
.sns__btn--insta { background: linear-gradient(45deg, #f9a43a, #e1306c 50%, #8a3ab9); }
.sns__btn--fb { background: #1877f2; }
.sns__btn--line { background: #06c755; }
@media (min-width: 768px) {
  .sns__row { gap: 12px; }
  .sns__row .sns__btn { min-height: 88px; }
  .sns__btn svg { width: 34px; height: 34px; }
  .sns__label b { font-size: 14px; }
}

/* ハンバーガーメニュー内のSNSアイコン */
.gnav__sns { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }
.gnav__sns a { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.gnav__sns a::after { display: none; }
.gnav__sns svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- イベント ---------- */
.tabs {
  position: sticky; top: var(--header-h); z-index: 10;
  display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 4px;
  margin: 0 -16px 16px; padding: 8px 16px;
  background: rgba(26, 5, 4, .95);
}
.tabs__btn {
  min-height: 44px; padding: 4px 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-card);
  font-family: var(--font-num); font-weight: 900; font-size: 16px; line-height: 1;
}
.tabs__btn:first-child { font-family: inherit; font-size: 13px; }
.tabs__btn small { font-family: sans-serif; font-size: 10px; margin-left: 1px; }
.tabs__btn.is-sun { color: var(--sun); }
.tabs__btn[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.day-bar {
  margin: 24px 0 12px;
  padding: 6px 12px;
  background: var(--red);
  font-size: 15px; font-weight: bold;
}
.day-bar--gold { background: linear-gradient(90deg, #b36b00, #ffc531 60%, transparent); color: #1a0504; margin-top: 40px; }
.tabs__panel .day-bar { margin-top: 0; }

.ev {
  margin-bottom: 16px; padding-bottom: 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.ev__img { width: 100%; border-radius: 6px; margin-top: 10px; } /* イベント名の下に写真 */
.ev__img--portrait { display: block; width: 72%; max-width: 340px; margin-left: auto; margin-right: auto; } /* 縦長写真は幅を抑えて中央に */
.ev__catch { font-size: 12px; color: var(--gold); font-weight: bold; }
.ev__title { font-weight: 900; font-size: clamp(19px, 6.4vw, 22px); line-height: 1.4; letter-spacing: .03em; } /* 読みやすさ優先でゴシック太字 */
.ev__series { display: block; font-size: clamp(15px, 4.4vw, 18px); white-space: nowrap; } /* 大会名は1行に収める */
.ev__role { display: block; margin-bottom: 2px; font-size: 13px; font-weight: bold; letter-spacing: .08em; color: var(--text-sub); } /* 出演者の肩書(小さめ) */
.ev__info {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px;
  margin-top: 10px; text-align: left; font-size: 14px;
}
.ev__info dt {
  padding: 0 8px; height: fit-content;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 12px; font-weight: bold; text-align: center; border-radius: 2px;
}
/* 日替わり講師(ev__info の中の一覧) */
.ev__info .ev__lecturers { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.ev__info .ev__lecturers dt { padding: 0; border: 0; border-radius: 0; height: auto; text-align: left; color: var(--text-sub); font-size: 13px; font-weight: normal; }
.ev__info .ev__lecturers dd { font-weight: bold; }
.ev__desc { margin-top: 10px; font-size: 14px; line-height: 1.7; text-align: left; }
.ev__note { margin-top: 6px; font-size: 12px; color: var(--text-sub); text-align: left; }

/* ---------- テーブル共通 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, .15); text-align: center; vertical-align: middle; }
.tbl thead th { background: var(--red); font-size: 12px; font-weight: bold; padding: 6px; }
/* 項目セルの色：歴代覇者＝青系、歴代女王＝ピンク系(各見出し画像の色に合わせる) */
#rekidai .tbl thead th { background: linear-gradient(180deg, #2f8ee0, #164f9a); }
#queen .tbl thead th { background: linear-gradient(180deg, #ef5fa8, #b0246c); }
.tbl small { display: block; font-size: 11px; color: var(--text-sub); font-weight: normal; }
.tbl--time td { font-size: 14px; font-weight: bold; font-variant-numeric: tabular-nums; } /* 時刻は読みやすいゴシックで */

/* ---------- 発走時刻 ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jtabs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4px; margin-bottom: 12px; }
.jtabs__btn {
  min-height: 44px; padding: 4px 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-card);
  font-family: var(--font-num); font-weight: 900; font-size: 14px; line-height: 1;
}
.jtabs__btn small { font-family: sans-serif; font-size: 10px; margin-left: 1px; }
.jtabs__btn[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
/* 先着プレゼント */
.tbl--gift { background: rgba(0, 0, 0, .25); }
.tbl--gift thead th { background: linear-gradient(180deg, #ffb21a, #c26a00); color: #1a0504; }
.tbl--gift tbody tr:nth-child(even) { background: rgba(255, 255, 255, .04); }
.tbl--gift tbody th { width: 3.2em; font-size: 18px; font-weight: bold; line-height: 1.3; color: var(--gold); font-variant-numeric: tabular-nums; }
.tbl--gift tbody th small { display: inline; margin-left: 2px; font-size: 11px; color: var(--gold); }
.tbl--gift td { text-align: left; padding: 8px 10px; }
.gift { list-style: none; margin: 0; padding: 0; }
.gift li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; font-size: clamp(12px, 3.9vw, 15px); font-weight: bold; }
.gift li + li { border-top: 1px dashed rgba(255, 255, 255, .15); }
.gift b { flex-shrink: 0; font-size: clamp(12px, 3.6vw, 14px); color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl--jikoku { background: rgba(0, 0, 0, .25); }
.tbl--jikoku thead th { line-height: 1.25; }
.tbl--jikoku th, .tbl--jikoku td { padding: 9px 4px; }
.tbl--jikoku tbody tr:nth-child(even) { background: rgba(255, 255, 255, .04); }
.tbl--jikoku tbody th { width: 3.2em; font-size: 16px; font-weight: bold; color: var(--gold); }
.tbl--jikoku tbody th small { display: inline; font-size: 10px; color: var(--gold); margin-left: 1px; }
.tbl--jikoku td { font-size: 15px; font-weight: bold; font-variant-numeric: tabular-nums; }
.tbl--jikoku td.go { color: var(--gold); font-size: 16px; }
.tbl--jikoku thead th { white-space: nowrap; }
.tbl--jikoku thead th:last-child { background: linear-gradient(180deg, #ffb21a, #c26a00); color: #1a0504; }

/* 回と年：「第40回」「2025年」と単位まで書いて読み間違いを防ぐ */
.tbl--winner tbody th { width: 4.6em; color: var(--gold); white-space: nowrap; }
.tbl--winner .no { display: block; font-size: 13px; font-weight: bold; line-height: 1.2; }
.tbl--winner .no b { font-size: 20px; margin: 0 1px; }
.tbl--winner .yr { display: block; margin-top: 2px; font-size: 11px; font-weight: normal; color: var(--text-sub); }
.tbl--winner td:nth-child(2) { text-align: left; }
.tbl--winner td:nth-child(2) strong { font-size: 15px; }
.tbl--winner td:nth-child(3), .tbl--winner td:nth-child(4) { width: 3.4em; }
.ico {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
}
.ico::before { content: ""; width: 16px; height: 16px; background: var(--gold); }
.ico--result::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h12l4 4v14H4zm3 6v2h10V9zm0 4v2h10v-2zm0 4v2h7v-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h12l4 4v14H4zm3 6v2h10V9zm0 4v2h10v-2zm0 4v2h7v-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ico--movie::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E") center / contain no-repeat; }

.more-btn {
  display: block; width: 100%; margin-top: 12px; min-height: 44px;
  border: 1px solid var(--gold); border-radius: 22px; background: none;
  color: var(--gold); font-weight: bold; font-size: 14px;
}

/* ---------- アコーディオン(発走時刻) ---------- */
.acc { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer;
  padding: 12px 16px; background: var(--bg-card); font-weight: bold;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "＋"; float: right; color: var(--gold); }
.acc[open] summary::after { content: "－"; }

/* ---------- テレビ中継 ---------- */
.tv { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tv__ch { padding: 8px 14px; background: var(--red); font-size: 15px; }
.tv__ch small { font-size: 12px; font-weight: normal; margin-left: 4px; }
.tv__list { display: grid; grid-template-columns: 1fr auto; }
.tv__list dt, .tv__list dd { padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.tv__list dt:first-of-type, .tv__list dt:first-of-type + dd { border-top: 0; }
.tv__list dd { font-size: 15px; font-weight: bold; color: var(--gold); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.footer { padding: 40px 16px calc(88px + env(safe-area-inset-bottom)); background: var(--bg-deep); border-top: 1px solid var(--line); text-align: center; } /* 下余白はTOPボタンがコピーライトに重ならないように */
.footer__sns { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; }
.footer__sns a { display: grid; place-items: center; width: 44px; height: 44px; }
.footer__sns svg { width: 26px; height: 26px; fill: #fff; }
/* フッターのリンク：カテゴリごとに2列 */
.footer__links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: center; gap: 0 24px;
  margin: 0 auto 24px; font-size: 13px; text-align: left;
}
.footer__cat {
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-weight: bold; color: var(--gold);
}
.footer__group a { display: block; padding: 6px 0 6px 12px; position: relative; text-decoration: none; color: var(--text-sub); }
.footer__group a::before { content: "›"; position: absolute; left: 0; color: var(--gold); }
.footer__group a:hover { color: #fff; }
.footer__note { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; }
.footer__copy { color: #8a7a74; }

/* TOPに戻るボタン：金色の丸に矢印＋「TOP」 */
.to-top {
  position: fixed; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-grad);
  border: 2px solid #fff3c4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .6), 0 0 14px rgba(255, 170, 30, .45);
  text-decoration: none; color: #3a0700;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 24px; height: 24px; fill: #3a0700; margin-bottom: -4px; }
.to-top span { font-family: var(--font-num); font-weight: 900; font-size: 11px; line-height: 1; letter-spacing: .05em; }
.to-top:hover, .to-top:active { filter: brightness(1.1); transform: translateY(-2px); }

/* ---------- スクロールで表示 ---------- */
.js .sec > * { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.js .sec > .is-in { opacity: 1; transform: none; }
.js .sec > .tabs { opacity: 1; transform: none; } /* sticky要素はアニメーションしない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .sec > * { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ==========================================================
   768px〜 タブレット・PC
   ========================================================== */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .to-top { bottom: 28px; right: 28px; width: 60px; height: 60px; }
  .to-top svg { width: 26px; height: 26px; }
  .to-top span { font-size: 12px; }
  .header { padding: 0 24px; }
  .header__logo img { height: 38px; }
  .sec { padding-top: 72px; }
  .race-links { margin: 0; }
  .tabs { margin: 0 0 16px; padding: 8px 0; }
  .players { --cols: 4; --gap-x: 8px; row-gap: 12px; }
  .player__name { font-size: 14px; }
  .player__meta { font-size: 12px; }
  .player__streak { font-size: 12px; letter-spacing: 0; }
  .news__text { flex: 1 1 auto; }
}

/* ==========================================================
   1024px〜 PC：ヘッダーにメニューを横並び表示
   ========================================================== */
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .gnav {
    position: static; padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible;
  }
  .gnav ul { display: flex; gap: 4px; }
  .gnav a { padding: 6px 14px; border: 0; font-size: 14px; line-height: 1.3; text-align: center; border-radius: 4px; }
  .gnav a small { margin-top: 1px; font-size: 9px; letter-spacing: .15em; color: var(--text-sub); opacity: 1; }
  .gnav a:hover small { color: var(--gold); }
  .gnav a:hover { background: rgba(255, 197, 49, .15); color: var(--gold); }
  .gnav a::after { display: none; }
  .gnav__sns { display: none; }
}
