/*
Theme Name: Osaka Dream Cup
Theme URI: https://osaka-dreamcup.com/
Author: Osaka Dream Cup
Description: 大阪ドリームカップ（草野球リーグ）公式サイト用のオリジナルテーマ。濃紺×レッドのスポーティなデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osaka-dreamcup
*/

/* ===================================================================
   カラー変数 / 基本設定
   =================================================================== */
:root {
  --navy: #0d1b3e;        /* 濃紺（メイン） */
  --navy-dark: #070f24;   /* さらに濃い紺 */
  --navy-light: #1c2f5e;  /* 明るめの紺 */
  --red: #d7182a;         /* レッド（アクセント） */
  --red-dark: #a3101f;
  --gold: #e8b24a;        /* ゴールド（差し色） */
  --white: #ffffff;
  --off-white: #f4f6fb;
  --gray: #6b7280;
  --gray-light: #d5d9e2;
  --text: #1a1f2e;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 27, 62, 0.12);
  --shadow-lg: 0 14px 40px rgba(13, 27, 62, 0.18);
  --container: 1120px;
  --font: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

/* サイト全体を統一フォントに揃える（見出し・英字・フォーム含む）
   ── 個別に指定した明朝/Times等より優先させるため !important を使用 */
body,
h1, h2, h3, h4, h5, h6,
input, textarea, select, button,
p, a, span, dt, dd, li, th, td, label, blockquote, figcaption,
.hero-title,
.hero .eyebrow,
.section-head .en,
.page-hero .sub,
.hero-scroll-label,
.odc-preloader-text,
.wpcf7 input, .wpcf7 textarea, .wpcf7 select, .wpcf7 button {
  font-family: var(--font) !important;
}

/* ===================================================================
   リセット / ベース
   =================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================================
   ボタン
   =================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(215, 24, 42, .35); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ===================================================================
   ヘッダー
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy-dark);   /* 常に下地の紺色を確保（切替時の白フラッシュ防止） */
  background-image: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-bottom: 1px solid rgba(232, 178, 74, .28);   /* 細いゴールドライン */
  box-shadow: 0 4px 18px rgba(7, 15, 36, .35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-branding a { display: flex; align-items: center; gap: 12px; color: var(--white); }
.site-branding a:hover { color: var(--white); opacity: .85; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; color: var(--white);
  font-size: 18px;
  border: 2px solid var(--gold);
}
.brand-text { font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--gray-light); letter-spacing: .1em; }

/* カスタムロゴ：どんな画像サイズでもヘッダー内に必ず収める */
.site-branding .custom-logo-link { display: flex; align-items: center; line-height: 0; }
.site-header .custom-logo {
  height: 48px;            /* ヘッダー高さ(72px)に収まる固定高 */
  width: auto;
  max-width: 240px;        /* 横長ロゴがナビを押し出さないよう上限 */
  object-fit: contain;
  display: block;
  transition: height .3s ease;
}
.site-header.scrolled .custom-logo { height: 38px; }  /* スクロール時の縮小に追従 */

/* ハンバーガー（全サイズで常時表示・スタイリッシュ） */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 13px;
  background: none; border: none; cursor: pointer; padding: 10px 4px; color: var(--white);
}
.nav-toggle-label {
  font-family: "Times New Roman","Georgia",serif; font-size: 12px; font-weight: 700;
  letter-spacing: .32em; padding-left: .32em; transition: color .3s;
}
.nav-toggle-bars { position: relative; width: 34px; height: 14px; flex: none; }
.nav-toggle-bars span {
  position: absolute; left: 0; height: 2px; border-radius: 2px; background: var(--white);
  transition: width .35s cubic-bezier(.2,.7,.2,1), background .3s;
}
.nav-toggle-bars span:nth-child(1) { top: 0; width: 34px; }
.nav-toggle-bars span:nth-child(2) { top: 6px; width: 20px; background: var(--gold); }
.nav-toggle-bars span:nth-child(3) { top: 12px; width: 27px; }
.nav-toggle:hover .nav-toggle-label { color: var(--gold); }
.nav-toggle:hover .nav-toggle-bars span { background: var(--gold); }
.nav-toggle:hover .nav-toggle-bars span:nth-child(2),
.nav-toggle:hover .nav-toggle-bars span:nth-child(3) { width: 34px; }

/* メニューを開いたらハンバーガー自体を「×」に変化させ、その場で閉じられるようにする */
body.nav-open .site-header { z-index: 210; }              /* オーバーレイ(z:200)より前面でクリック可能に */
.nav-toggle-bars span { transition: width .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), top .3s ease, opacity .2s ease, background .3s; }
.nav-toggle.is-active .nav-toggle-label { display: none; }
.nav-toggle.is-active .nav-toggle-bars span { background: var(--white); }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(1) { top: 6px; width: 34px; transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bars span:nth-child(3) { top: 6px; width: 34px; transform: rotate(-45deg); }
.nav-toggle.is-active:hover .nav-toggle-bars span { background: var(--gold); }

/* ===== 全画面メニュー ===== */
body.nav-open { overflow: hidden; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; overflow-y: auto;
  background: radial-gradient(circle at 50% 28%, var(--navy-light) 0%, var(--navy-dark) 72%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.nav-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s ease, visibility 0s linear 0s;
}
/* 動きを控える設定では即表示（トランジション・登場演出を無効化） */
@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-overlay.is-open { transition: none; }
  .nav-overlay.is-open .overlay-nav li { animation: none; }
}
.nav-overlay::before, .nav-overlay::after {
  content: ""; position: fixed; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.nav-overlay::before { top: 0; }
.nav-overlay::after { bottom: 0; }

.nav-overlay-close {
  position: fixed; top: 22px; right: 28px; z-index: 210;
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-close-label {
  color: var(--gold); font-family: "Times New Roman","Georgia",serif;
  letter-spacing: .3em; font-size: 12px; font-weight: 700; transition: opacity .3s;
}
.nav-close-icon {
  position: relative; width: 46px; height: 46px;
  border: 1px solid rgba(232,178,74,.45); border-radius: 50%;
  transition: border-color .3s, transform .45s cubic-bezier(.2,.7,.2,1);
}
.nav-overlay-close:hover .nav-close-icon { border-color: var(--gold); transform: rotate(90deg); }
.nav-overlay-close:hover .nav-close-label { opacity: .7; }
.nav-close-icon span {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-close-icon span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.nav-close-icon span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

@media (max-width: 520px) {
  .nav-toggle-label { display: none; }
  .nav-close-label { display: none; }
}

.nav-overlay-inner { margin: auto; width: 100%; max-width: 1080px; padding: 92px 40px 56px; text-align: center; }
.nav-overlay-eyebrow {
  display: block; color: var(--gold); letter-spacing: .42em; font-size: 12px;
  font-weight: 700; margin-bottom: 30px; font-family: "Times New Roman","Georgia",serif;
}

/* 2カラム（横も使う構成） */
.nav-cols {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px;
  text-align: left; align-items: start;
}
.nav-col-label {
  display: block; color: var(--gold); font-family: "Times New Roman","Georgia",serif;
  letter-spacing: .34em; font-size: 12px; font-weight: 700; opacity: .9;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(232,178,74,.25);
}

.overlay-nav ul { list-style: none; margin: 0; padding: 0; }
.overlay-nav a {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 4px; color: var(--white); text-decoration: none; transition: color .25s;
}
.overlay-nav .nav-ja {
  font-family: "Hiragino Mincho ProN","Yu Mincho","YuMincho",serif;
  font-weight: 800; letter-spacing: .05em; line-height: 1.2;
}
.overlay-nav .nav-en {
  font-family: "Times New Roman","Georgia",serif; letter-spacing: .3em;
  color: var(--gray-light); transition: color .25s;
}
.overlay-nav-main li { margin: 8px 0; }
.overlay-nav-main .nav-ja { font-size: clamp(26px, 3vw, 40px); }
.overlay-nav-main .nav-en { font-size: 11px; }
.overlay-nav-sub li { margin: 4px 0; }
.overlay-nav-sub .nav-ja { font-size: clamp(19px, 2vw, 25px); }
.overlay-nav-sub .nav-en { font-size: 10px; }

.overlay-nav a:hover,
.overlay-nav a:hover .nav-en { color: var(--gold); }
.overlay-nav .current-menu-item > a,
.overlay-nav .current-menu-item .nav-en { color: var(--gold); }

/* 資料請求・お問い合わせ CTA */
.nav-cta {
  display: inline-block; margin-top: 24px; background: var(--gold); color: var(--navy);
  font-weight: 800; padding: 14px 30px; border-radius: 6px; letter-spacing: .04em;
  transition: background .2s, transform .2s; box-shadow: 0 8px 22px rgba(232,178,74,.25);
}
.nav-cta:hover { background: #d8b871; color: var(--navy); transform: translateY(-2px); }

/* メニュー内：セレクション募集リンク（コピーライトの上） */
.nav-overlay-selection {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 12px 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
  color: var(--white); font-weight: 700; letter-spacing: .04em;
  transition: background .2s, border-color .2s, transform .2s;
}
.nav-overlay-selection:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.nav-overlay-selection-en {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--gold);
  flex: none;
}
.nav-overlay-selection:hover .nav-overlay-selection-en { color: #fff; }
/* 語中（例：セレクショ／ン募集）で改行させない。折り返すなら会社名との間で */
.nav-overlay-selection-jp { word-break: keep-all; }

/* スマホでは SELECTION を上に、日本語を下に中央寄せで配置 */
@media (max-width: 640px) {
  .nav-overlay-selection {
    flex-direction: column; align-items: center; text-align: center;
    gap: 6px; padding: 14px 22px; margin-top: 32px;
  }
  .nav-overlay-selection-jp { font-size: 14px; letter-spacing: .02em; line-height: 1.6; }
}

.nav-overlay-foot { margin-top: 28px; color: var(--gray-light); font-size: 12px; letter-spacing: .12em; }

@media (max-width: 820px) {
  .nav-cols { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .overlay-nav a { align-items: center; }
  .nav-col-label { text-align: center; }
  .nav-overlay-inner { padding: 84px 24px 48px; }
}

/* 開いたときのスタッガー登場 */
.nav-overlay.is-open .overlay-nav li { animation: odcNavIn .5s cubic-bezier(.2,.7,.2,1) both; }
.nav-overlay.is-open .overlay-nav li:nth-child(1){ animation-delay: .05s; }
.nav-overlay.is-open .overlay-nav li:nth-child(2){ animation-delay: .10s; }
.nav-overlay.is-open .overlay-nav li:nth-child(3){ animation-delay: .15s; }
.nav-overlay.is-open .overlay-nav li:nth-child(4){ animation-delay: .20s; }
.nav-overlay.is-open .overlay-nav li:nth-child(5){ animation-delay: .25s; }
.nav-overlay.is-open .overlay-nav li:nth-child(6){ animation-delay: .30s; }
.nav-overlay.is-open .overlay-nav li:nth-child(7){ animation-delay: .35s; }
@keyframes odcNavIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===================================================================
   ページヘッダー（下層）
   =================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.page-hero h1 {
  font-size: clamp(21px, 5.8vw, 42px); margin: 0 0 8px; line-height: 1.25;
  text-wrap: balance; overflow-wrap: break-word;
}
.page-hero .sub { color: var(--gold); font-weight: 700; letter-spacing: .16em; font-size: 13px; }

/* ===================================================================
   ヒーロー（ホーム）
   =================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(215,24,42,.25), transparent 40%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 20px; line-height: 1.15; }
.hero p { font-size: 18px; color: var(--gray-light); margin: 0 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-wave {
  position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; line-height: 0;
}

/* ===================================================================
   セクション共通
   =================================================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en { color: var(--red); font-weight: 800; letter-spacing: .2em; font-size: 13px; display: block; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; color: var(--navy); }
.section-head .lead { color: var(--gray); margin-top: 14px; }

/* ===================================================================
   次回開催告知カード
   =================================================================== */
.next-cup {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: block;
  position: relative;
  overflow: hidden;
}
.next-cup::before {
  content: "NEXT";
  position: absolute; top: 18px; right: -34px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 12px;
  letter-spacing: .2em; padding: 6px 44px; transform: rotate(45deg);
}
.next-cup .date { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.next-cup .date span { font-size: 16px; color: var(--white); display: block; font-weight: 600; }
/* 大会名をメインに大きく・上部中央に表示 */
.next-cup .cup-name {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; color: var(--gold);
  line-height: 1.3; letter-spacing: .01em; word-break: keep-all;
  text-align: center; margin: 0 0 22px;
}
.next-cup .sub-date { display: block; font-size: 13px; color: var(--gray-light); font-weight: 600; margin-top: 4px; }
/* 詳細（左）とエントリー（右下）を同じ帯に並べ、下の余白をなくす */
.next-cup-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.next-cup dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; margin: 0; flex: 1 1 auto; }
.next-cup dt { font-weight: 800; color: var(--gray-light); }
.next-cup dd { margin: 0; }
/* エントリー導線は右下（コンパクト・ホバーで矢印がスライド） */
.next-cup-foot { flex: none; margin: 0; text-align: right; }
@media (max-width: 640px) {
  .next-cup-body { flex-direction: column; align-items: stretch; gap: 18px; }
  .next-cup-foot { text-align: right; }
}
.next-cup-entry {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 22px; border: 1.5px solid var(--gold); border-radius: 999px;
  color: var(--gold); font-weight: 800; letter-spacing: .16em;
  font-family: "Times New Roman", "Georgia", serif; font-size: 14px;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.next-cup-entry .arrow { display: inline-block; font-size: 16px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.next-cup-link:hover .next-cup-entry { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(232,178,74,.28); }
.next-cup-link:hover .next-cup-entry .arrow { transform: translateX(6px); }

/* クリックできる告知カード */
a.next-cup-link { color: var(--white); text-decoration: none; }
a.next-cup-link:hover { color: var(--white); transform: translateY(-3px); transition: transform .2s, box-shadow .2s; box-shadow: 0 20px 48px rgba(13,27,62,.3); }
a.next-cup-link dt { color: var(--gray-light); }

/* ===== ワンデー大会カード（トップ / 一覧共通の部品） ===== */
.oneday-grid,
.recruit-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px;
}

/* リーグ戦カード（最大2件を縦に） */
.league-cards { display: grid; gap: 24px; }

/* ワンデー：4件以上は横スクロール（マーキー） */
.oneday-marquee {
  position: relative; overflow: hidden; margin-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.oneday-track { display: flex; width: max-content; }
.oneday-group { display: flex; }
.oneday-marquee.is-scrolling .oneday-track { animation: odcMarquee 46s linear infinite; }
.oneday-marquee.is-scrolling:hover .oneday-track { animation-play-state: paused; }
.oneday-marquee .oneday-card { width: 300px; flex: none; margin-right: 20px; }
@media (prefers-reduced-motion: reduce) {
  .oneday-marquee.is-scrolling .oneday-track { animation: none; }
  .oneday-marquee { overflow-x: auto; }
  .oneday-marquee .oneday-group[aria-hidden="true"] { display: none; }
}
.oneday-card,
.recruit-card {
  position: relative; display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--gray-light);
  border-top: 4px solid var(--navy);
  border-radius: 14px; padding: 24px 22px; box-shadow: var(--shadow);
  color: var(--navy); transition: transform .2s, box-shadow .2s;
}
.oneday-card:hover,
.recruit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--navy); }
/* 絞り込みで hidden 属性がついたカードを確実に非表示に（display:block の上書き対策） */
.oneday-card[hidden],
.recruit-card[hidden] { display: none; }
.oneday-card h3,
.recruit-card h3 { margin: 4px 0 14px; font-size: 18px; color: var(--navy); line-height: 1.4; }
.oneday-card dl,
.recruit-card dl { display: grid; grid-template-columns: 46px 1fr; gap: 8px 8px; margin: 0 0 16px; font-size: 14px; }
.oneday-card dt,
.recruit-card dt { font-weight: 800; color: var(--gray); }
.oneday-card dd,
.recruit-card dd { margin: 0; color: var(--text); }
.oneday-go {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-weight: 700; font-size: 14px;
}

/* 残枠バッジ */
.slots-badge {
  display: inline-block; background: var(--red); color: #fff;
  font-weight: 800; font-size: 13px; line-height: 1;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
/* カード上部のバッジ列（左：球速制限／右：残りチーム） */
.card-badges,
.recruit-badge-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 26px; }
.recruit-badge-row { margin-top: 10px; }
.badge-left,
.badge-right { display: inline-flex; align-items: center; }

/* 球速制限バッジ（あり＝黄色／なし＝青） */
.speed-badge {
  display: inline-block; font-weight: 800; font-size: 12px; line-height: 1;
  letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.speed-badge.speed-on { background: #f5c518; color: var(--navy); border: 1px solid #e0af00; }
.speed-badge.speed-off { background: #2f6fd0; color: #fff; border: 1px solid #2a5fc0; }

/* 優勝賞品ライン */
.oneday-prize {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
  margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; text-align: center;
  background: #fdf6e3; border: 1px solid #f0e0b0; color: var(--navy);
  font-weight: 700; font-size: 14px; line-height: 1.5;
}
.oneday-prize .prize-label {
  flex: none; background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 4px;
  line-height: 1;
}

/* 現在募集中の大会へ CTA */
.recruit-cta { text-align: center; margin-top: 48px; }
.recruit-cta .btn { min-width: 260px; }

/* ===== 募集中一覧：絞り込み ===== */
.recruit-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.kind-tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px;
}
.kind-league { background: var(--navy); color: #fff; }
.kind-oneday { background: var(--gold); color: var(--navy); }

.recruit-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 4px; }
.filter-btn {
  border: 1px solid var(--gray-light); background: #fff; color: var(--navy);
  font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.recruit-empty { text-align: center; color: var(--gray); margin-top: 24px; }

@media (max-width: 860px) {
  .oneday-grid, .recruit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .oneday-grid, .recruit-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ヒーローのモットー表記・告知ヒーローの日付 */
.hero .motto { color: var(--gold); font-weight: 800; letter-spacing: .22em; font-size: 13px; margin: 0 0 10px; }
.page-hero .hero-date { color: var(--gold); font-weight: 700; margin: 10px 0 0; font-size: 18px; }

/* ===================================================================
   特徴 / お知らせ / 過去大会 グリッド
   =================================================================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-body { padding: 24px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.card p { margin: 0; color: var(--gray); font-size: 15px; }
.card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-light), var(--navy)); position: relative; }
.card .thumb .label { position: absolute; left: 14px; bottom: 12px; background: var(--red); color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.card .thumb .label-ongoing { background: #2e9e5b; }

/* 特徴アイコンカード */
.feature { text-align: center; padding: 32px 24px; }
.feature .icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 28px; font-weight: 900;
  box-shadow: 0 8px 18px rgba(215,24,42,.3);
}

/* お知らせリスト */
.news-list { list-style: none; margin: 0; padding: 0; max-width: 820px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--gray-light); }
.news-list a { display: flex; gap: 20px; align-items: center; padding: 18px 8px; color: var(--text); flex-wrap: wrap; }
.news-list a:hover { color: var(--red); }
.news-list .date { color: var(--gray); font-size: 14px; font-weight: 700; min-width: 96px; }
.news-list .cat { background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }

/* ===================================================================
   コンテンツ本文（固定ページ）
   =================================================================== */
.content-area { padding: 64px 0; }
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content h2 {
  color: var(--navy);
  font-size: 26px;
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 6px solid var(--red);
}
.entry-content h3 { color: var(--navy-light); font-size: 20px; margin: 32px 0 12px; }
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 1.4em; }
.entry-content li { margin-bottom: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.entry-content th, .entry-content td { border: 1px solid var(--gray-light); padding: 12px 16px; text-align: left; }
.entry-content th { background: var(--navy); color: #fff; font-weight: 700; }
.entry-content tbody tr:nth-child(even),
.entry-content tr:nth-child(even) { background: var(--off-white); }

/* 規約など番号付き条文 */
.entry-content ol.article-list { counter-reset: art; list-style: none; padding-left: 0; }
.entry-content ol.article-list > li {
  counter-increment: art;
  padding: 16px 20px 16px 56px;
  position: relative;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.entry-content ol.article-list > li::before {
  content: "第" counter(art) "条";
  position: absolute; left: 14px; top: 16px;
  color: var(--red); font-weight: 900; font-size: 13px;
}

/* 大会規約 一覧（カード） */
.rules-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.rules-card {
  display: block; background: #fff;
  border: 1px solid var(--gray-light); border-left: 6px solid var(--red);
  border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow); color: var(--navy);
  transition: transform .2s, box-shadow .2s;
}
.rules-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--navy); }
.rules-card .rules-card-en {
  display: block; font-family: "Times New Roman", "Georgia", serif;
  letter-spacing: .28em; font-size: 12px; font-weight: 700; color: var(--gold);
}
.rules-card h2 {
  margin: 8px 0 16px; padding: 0; border: none;
  font-size: 20px; color: var(--navy); line-height: 1.4;
}
.rules-card-go {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 700; font-size: 14px;
}
@media (max-width: 600px) {
  .rules-index { grid-template-columns: 1fr; }
}

/* 定義リスト（概要ページ用） */
.overview-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.overview-table th { width: 34%; background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; vertical-align: top; font-weight: 700; line-height: 1.6; }
.overview-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); line-height: 1.75; vertical-align: top; }

/* 概要テーブル：スマホでは縦積み */
@media (max-width: 600px) {
  .overview-table { font-size: 14px; }
  .overview-table th,
  .overview-table td { display: block; width: 100%; }
  .overview-table th { padding: 10px 14px; }
  .overview-table td { padding: 10px 14px 16px; }
}

/* 各級の賞品 */
.prize-title { margin-top: 48px; }
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin: 20px 0 12px;
}
.prize-card {
  background: #fff; border: 1px solid var(--gray-light);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.prize-card-head {
  background: var(--navy); color: #fff; font-weight: 800;
  padding: 12px 18px; font-size: 16px; letter-spacing: .04em;
}
.prize-card-body { padding: 16px 18px; color: var(--text); line-height: 1.8; }
.prize-tbd { color: var(--gray); }

/* お問い合わせ */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-note { background: var(--off-white); border-left: 5px solid var(--gold); padding: 18px 22px; border-radius: 8px; margin-bottom: 32px; }

/* お問い合わせフォーム */
.odc-form { margin-top: 8px; }
.odc-field { margin: 0 0 22px; }
.odc-field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.odc-field .req,
.odc-field .opt {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.odc-field .req { background: var(--red); color: #fff; }
.odc-field .opt { background: var(--gray-light); color: var(--navy); }
.odc-form input,
.odc-form select,
.odc-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 16px; /* iOSの自動ズーム防止 */
  line-height: 1.6;
}
.odc-form textarea { resize: vertical; min-height: 150px; }
.odc-form input:focus,
.odc-form select:focus,
.odc-form textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(13, 27, 62, .12);
}
.odc-submit { text-align: center; margin-top: 28px; }
.odc-submit .btn { min-width: 220px; }
.odc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-message { border-radius: 10px; padding: 18px 22px; margin-bottom: 28px; line-height: 1.8; }
.form-message--ok { background: #eaf6ec; border: 1px solid #bfe2c6; color: #1c6b34; }
.form-message--error { background: #fdecec; border: 1px solid #f3c2c2; color: #a11b1b; }
.form-message ul { margin: 0; padding-left: 1.2em; }
.form-message li { margin: 4px 0; }

/* ===================================================================
   CTAバンド
   =================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.cta-band p { margin: 0 0 28px; font-size: 17px; opacity: .95; }

/* ===================================================================
   フッター
   =================================================================== */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 15% 0%, rgba(232,178,74,.10), transparent 42%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--gray-light);
  padding: 64px 0 26px;
}
/* 上端のゴールド〜レッドのアクセントライン */
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 {
  color: var(--gold); font-size: 14px; margin: 0 0 18px;
  letter-spacing: .12em; font-weight: 700;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--gray-light); font-size: 15px; transition: color .25s, padding-left .25s; }
.site-footer a:hover { color: var(--gold); padding-left: 4px; }
/* フッターメニューは英字サブラベルを非表示（和文のみ） */
.site-footer .nav-en { display: none; }
.footer-brand .brand-text { color: #fff; font-size: 24px; font-weight: 900; letter-spacing: .04em; }
.footer-brand p { font-size: 14px; margin: 14px 0 0; line-height: 1.9; }
/* フッターの問い合わせボタン・セレクションリンク */
.footer-actions { margin: 18px 0 0; }
.footer-actions .btn { display: inline-block; font-size: 14px; padding: 12px 26px; color: #fff; }
.footer-actions .btn:hover { padding: 12px 26px; color: #fff; }
.footer-selection { margin: 14px 0 0; }
.footer-selection a { color: var(--gold); font-weight: 700; font-size: 14px; }
.footer-selection a:hover { color: #fff; padding-left: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px; text-align: center; font-size: 12px;
  color: rgba(213,217,226,.6); letter-spacing: .08em;
}

/* ===================================================================
   ページネーション / 汎用
   =================================================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--off-white); color: var(--navy); font-weight: 700; }
.pagination .current { background: var(--red); color: #fff; }

/* ===================================================================
   募集要項パーツ（callout / check-list / step-list）
   =================================================================== */
.callout { border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }
.callout-red { background: #fdeef0; border-left: 6px solid var(--red); }
.callout-navy { background: var(--navy); color: #fff; border-left: 6px solid var(--gold); }
.callout-navy a { color: var(--gold); }
.callout-label {
  display: inline-block; background: var(--red); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .08em;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 10px;
}

/* チェックリスト */
.entry-content ul.check-list { list-style: none; padding-left: 0; }
.entry-content ul.check-list li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px dashed var(--gray-light); margin: 0; }
.entry-content ul.check-list li::before {
  content: "✓"; position: absolute; left: 6px; top: 8px;
  color: var(--red); font-weight: 900;
}

/* ステップリスト（申込の流れ） */
.entry-content ol.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.entry-content ol.step-list > li {
  counter-increment: step; position: relative;
  padding: 18px 20px 18px 64px; margin-bottom: 14px;
  background: var(--off-white); border-radius: var(--radius);
}
.entry-content ol.step-list > li::before {
  content: counter(step); position: absolute; left: 16px; top: 18px;
  width: 34px; height: 34px; background: var(--red); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 16px;
}
.entry-content ol.step-list > li h3 { margin: 0 0 4px; }
.entry-content ol.step-list > li p { margin: 0; }

/* ===================================================================
   スポンサー紹介
   =================================================================== */
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 20px 0 12px; }
.sponsor-grid-main { grid-template-columns: repeat(2, 1fr); }
.sponsor-card {
  background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.sponsor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sponsor-card .sponsor-logo {
  height: 112px; display: grid; place-items: center; margin-bottom: 22px;
  padding: 8px; overflow: hidden;
  background: var(--off-white); border-radius: 8px;
  color: var(--gray); font-weight: 800; letter-spacing: .1em;
}
.sponsor-card img.sponsor-logo, .sponsor-card .sponsor-logo img { width: auto; height: auto; max-height: 96px; max-width: 100%; object-fit: contain; }
.sponsor-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.sponsor-card p { margin: 0 0 12px; color: var(--gray); font-size: 14px; }
.sponsor-card .sponsor-link { font-weight: 700; font-size: 14px; }
.sponsor-card-sm { padding: 20px 16px; }
.sponsor-card-sm .sponsor-logo { height: 94px; margin-bottom: 18px; }
.sponsor-card-sm .sponsor-logo img { max-height: 78px; }
.sponsor-card-sm h3 { font-size: 15px; }

/* ===================================================================
   協賛ロゴ帯（ホーム）── 無限スライド（マーキー）
   =================================================================== */
.section-sponsor { padding-bottom: 48px; }
.sponsor-marquee {
  position: relative;
  overflow: hidden;
  /* 左右をふわっとフェード */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track { display: flex; width: max-content; }
.sponsor-group { display: flex; align-items: stretch; }
.sponsor-marquee.is-scrolling .sponsor-track {
  animation: odcMarquee 38s linear infinite;
}
.sponsor-marquee.is-scrolling:hover .sponsor-track { animation-play-state: paused; }
/* ロゴが少ないときは中央に並べるだけ */
.sponsor-marquee.is-static .sponsor-track { width: 100%; justify-content: center; }

@keyframes odcMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.sponsor-logo-item {
  flex: 0 0 auto;
  width: 190px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 24px 22px;
  min-height: 116px;
  margin: 0 10px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.sponsor-logo-item img {
  max-height: 68px; width: auto; object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}
.sponsor-logo-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.sponsor-logo-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
.sponsor-logo-fallback { color: var(--navy); font-weight: 800; text-align: center; font-size: 15px; }
.sponsor-cta-note { text-align: center; margin-top: 30px; color: var(--gray); font-weight: 700; }
.sponsor-cta-note span { margin: 0 10px; color: var(--gray-light); }

/* スポンサーロゴ：タブレット以下はカラー表示（白黒フィルターを解除） */
@media (max-width: 1024px) {
  .sponsor-logo-item img { filter: none; opacity: 1; }
}
/* スポンサーロゴ：タブレットで少し小さく */
@media (max-width: 820px) {
  .sponsor-logo-item { width: 150px; min-height: 96px; padding: 18px 16px; margin: 0 8px; }
  .sponsor-logo-item img { max-height: 52px; }
}
/* スポンサーロゴ：スマホでさらに小さく */
@media (max-width: 520px) {
  .sponsor-logo-item { width: 122px; min-height: 80px; padding: 14px 12px; margin: 0 6px; border-radius: 10px; }
  .sponsor-logo-item img { max-height: 42px; }
  .sponsor-logo-fallback { font-size: 13px; }
}

/* 協賛詳細ページのロゴ */
.sponsor-detail-logo { text-align: center; margin: 0 auto 28px; max-width: 360px; }
.sponsor-detail-logo img { display: inline-block; }

/* 協賛カードがリンクになった場合 */
a.sponsor-card { text-decoration: none; display: block; }
a.sponsor-card:hover { color: inherit; }
.sponsor-card .sponsor-logo img { filter: grayscale(100%); opacity: .82; transition: filter .3s, opacity .3s; }
a.sponsor-card:hover .sponsor-logo img { filter: grayscale(0); opacity: 1; }

/* ===================================================================
   スクロール連動アニメーション（.js のときだけ有効）
   =================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 子要素を少しずつずらして表示 */
.js .reveal.is-visible .grid > *,
.js .reveal.is-visible .sponsor-logos > *,
.js .reveal.is-visible .news-list > li {
  animation: odcFadeUp .6s ease both;
}
.js .reveal.is-visible .grid > *:nth-child(2),
.js .reveal.is-visible .sponsor-logos > *:nth-child(2) { animation-delay: .07s; }
.js .reveal.is-visible .grid > *:nth-child(3),
.js .reveal.is-visible .sponsor-logos > *:nth-child(3) { animation-delay: .14s; }
.js .reveal.is-visible .sponsor-logos > *:nth-child(4) { animation-delay: .21s; }
.js .reveal.is-visible .sponsor-logos > *:nth-child(5) { animation-delay: .28s; }

@keyframes odcFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================================
   ヒーローの演出
   =================================================================== */
.hero { background-size: 180% 180%; animation: odcGradient 18s ease infinite; }
@keyframes odcGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* 浮遊する光の球 */
.hero::after {
  content: ""; position: absolute; z-index: 1;
  width: 340px; height: 340px; right: -60px; top: -80px;
  background: radial-gradient(circle, rgba(232,178,74,.28), transparent 68%);
  border-radius: 50%;
  animation: odcFloat 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes odcFloat {
  0%,100% { transform: translateY(0) translateX(0); }
  50%     { transform: translateY(28px) translateX(-18px); }
}
/* ヒーロー内テキストの登場（.js時のみ） */
.js .hero-inner > * { opacity: 0; animation: odcHeroIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.js .hero-inner > *:nth-child(2) { animation-delay: .18s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .31s; }
.js .hero-inner > *:nth-child(4) { animation-delay: .44s; }
@keyframes odcHeroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================================
   ヘッダーのスクロール縮小
   =================================================================== */
.site-header { transition: background-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease; }
.header-inner { transition: height .3s ease; }
.site-header.scrolled { background-color: rgba(13,27,62,.92); background-image: none; backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.site-header.scrolled .header-inner { height: 60px; }

/* ===================================================================
   細部の洗練（ボタン・見出し・カード）
   =================================================================== */
/* ボタンに光沢のスイープ */
.btn { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

/* セクション見出しの英字にアクセントライン */
.section-head .en { position: relative; display: inline-block; padding-bottom: 10px; }
.section-head .en::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* 特徴アイコンをホバーでバウンド */
.feature .icon { transition: transform .3s ease; }
.card.feature:hover .icon { transform: translateY(-4px) scale(1.06) rotate(-4deg); }

/* カードのサムネイルをホバーでズーム */
.card .thumb { overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }

/* リンクの下線アニメ（本文内） */
.entry-content a { background-image: linear-gradient(var(--red), var(--red)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; }
.entry-content a:hover { background-size: 100% 2px; }

/* 動きを控える設定の人には演出を無効化 */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::after, .js .hero-inner > *, .js .reveal,
  .js .reveal.is-visible .grid > *, .js .reveal.is-visible .sponsor-logos > *,
  .js .reveal.is-visible .news-list > li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===================================================================
   ローディング演出（ロゴマーク）
   =================================================================== */
.odc-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--navy-light), var(--navy-dark) 70%);
  transition: opacity .6s ease, visibility .6s ease;
}
.odc-preloader.is-hidden { opacity: 0; visibility: hidden; }
.odc-preloader-inner { display: grid; justify-items: center; gap: 18px; }
.odc-preloader .custom-logo { max-height: 88px; width: auto; animation: odcMarkIn 1s cubic-bezier(.2,.7,.2,1) both; }
.odc-preloader-mark {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--gold);
  color: #fff; font-weight: 900; font-size: 40px;
  display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(215,24,42,.4);
  animation: odcMarkIn 1s cubic-bezier(.2,.7,.2,1) both;
}
.odc-preloader-text {
  color: #fff; letter-spacing: .42em; font-size: 12px; font-weight: 700;
  padding-left: .42em;
  opacity: 0; animation: odcFadeUp .8s ease .25s forwards;
  font-family: "Times New Roman", "Georgia", serif;
}
.odc-preloader-bar {
  width: 140px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.18); overflow: hidden;
}
.odc-preloader-bar > span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 3px;
  animation: odcLoadBar 1.1s ease-in-out infinite;
}
@keyframes odcMarkIn {
  0%   { opacity: 0; transform: translateY(10px) scale(.82); }
  60%  { opacity: 1; transform: translateY(0) scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes odcLoadBar {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ===================================================================
   ヒーローをシネマティックに（全画面・Ken Burns・パララックス）
   =================================================================== */
.hero { min-height: 92vh; display: flex; align-items: center; }
.hero-inner { padding: 40px 20px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title { font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; font-weight: 700; letter-spacing: .02em; }
.hero .eyebrow { font-family: "Times New Roman", "Georgia", serif; letter-spacing: .2em; }

/* 背景画像がある場合 */
.hero-bg {
  position: absolute; inset: -6% 0 0 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.12); will-change: transform;
  animation: odcKenBurns 18s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,15,36,.72) 0%, rgba(7,15,36,.55) 45%, rgba(7,15,36,.82) 100%);
}
.hero-has-bg { animation: none; }
.hero-has-bg .hero-inner { position: relative; z-index: 2; }
@keyframes odcKenBurns {
  from { transform: scale(1.12) translateY(0); }
  to   { transform: scale(1.2) translateY(-2%); }
}

/* スクロール誘導 */
.hero-scroll {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: 10px;
  color: #fff;
}
.hero-scroll:hover { color: var(--gold); }
.hero-scroll-label { font-size: 11px; letter-spacing: .3em; font-family: "Times New Roman", serif; }
.hero-scroll-line { width: 1px; height: 46px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--gold); animation: odcScrollLine 1.8s ease-in-out infinite;
}
@keyframes odcScrollLine {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* ヒーロー文字の登場（行ごと） */
.js .hero-title .line { transform: translateY(105%); opacity: 0; animation: odcLineUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero-title .line:nth-child(1) { animation-delay: .35s; }
.js .hero-title .line:nth-child(2) { animation-delay: .5s; }
@keyframes odcLineUp {
  to { transform: translateY(0); opacity: 1; }
}

/* 見出し英字・リード文をより上質に */
.section-head .en { font-family: "Times New Roman", "Georgia", serif; letter-spacing: .32em; }
.page-hero .sub { font-family: "Times New Roman", "Georgia", serif; }

/* 動きを控える設定では新演出も停止 */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .odc-preloader-bar > span, .hero-scroll-line::after,
  .js .hero-title .line, .odc-preloader-mark, .odc-preloader .custom-logo, .odc-preloader-text {
    animation: none !important;
  }
  .js .hero-title .line { transform: none !important; opacity: 1 !important; }
  .sponsor-marquee.is-scrolling .sponsor-track { animation: none !important; }
}

/* ===================================================================
   過去大会：クラス別 結果表
   =================================================================== */
.tournament-hero-img { margin: 0 auto 32px; max-width: 900px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }

/* クラス切り替えタブ */
.class-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin: 0 auto 32px; }
.class-tab {
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.class-tab:hover { border-color: var(--red); color: var(--red); }
.class-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13,27,62,.25);
}

/* タブ有効時は選択中のクラスだけ表示 */
.tournament-results.has-tabs .class-panel { display: none; }
.tournament-results.has-tabs .class-panel.is-active { display: block; animation: odcFadeUp .4s ease both; }
.class-panel h2 {
  text-align: center; border: none; padding: 0; margin: 0 0 24px;
  color: var(--navy);
}
.class-panel h2::after {
  content: ""; display: block; width: 48px; height: 3px; margin: 12px auto 0;
  background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 3px;
}

/* 順位表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.tournament-results table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 0; box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.tournament-results thead th,
.tournament-results thead tr:first-child th {
  background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap;
}
/* 1位（首位）行はヘッダーと区別できるよう金色の淡いハイライト */
.tournament-results tbody tr:first-child td { background: #fdf5e2; }
.tournament-results th, .tournament-results td {
  border: 1px solid var(--gray-light); padding: 12px 14px; text-align: center;
}
.tournament-results td:nth-child(2), .tournament-results th:nth-child(2) { text-align: left; white-space: nowrap; } /* チーム名列（長くても1行。表は横スクロール可） */
.tournament-results tbody tr:nth-child(even) { background: var(--off-white); }
.tournament-results tbody tr:hover { background: #fff6e9; }

/* 上位3位に色付き順位バッジ（1列目が順位の想定） */
.tournament-results tbody tr td:first-child { font-weight: 800; color: var(--navy); }
.tournament-results tbody tr:nth-child(1) td:first-child { color: #b8860b; }  /* 金 */
.tournament-results tbody tr:nth-child(2) td:first-child { color: #7a7a7a; }  /* 銀 */
.tournament-results tbody tr:nth-child(3) td:first-child { color: #b5651d; }  /* 銅 */

/* ===================================================================
   トーナメント表（ブラケット）
   =================================================================== */
.odc-bracket { display: flex; gap: 0; overflow-x: auto; padding: 8px 0 4px; -webkit-overflow-scrolling: touch; align-items: stretch; }
.odc-bracket .round {
  display: flex; flex-direction: column;
  flex: 1 0 200px; min-width: 200px; padding: 0 12px;
}
.odc-bracket .round-title {
  flex: 0 0 auto;
  text-align: center; font-weight: 700; color: var(--navy);
  font-size: 13px; letter-spacing: .06em; margin: 0 0 14px;
  padding-bottom: 6px; border-bottom: 2px solid var(--gold);
}
/* 試合だけを均等配置 → 隣ラウンドと縦位置が揃う */
.odc-bracket .round-matches {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: space-around;
}
.odc-bracket .match {
  position: relative; background: #fff;
  border: 1px solid var(--gray-light); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow); margin: 0;
}
.odc-bracket .team { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; font-size: 14px; color: var(--gray); line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; } /* トーナメント表は改行OK */
.odc-bracket .team + .team { border-top: 1px solid var(--gray-light); }
.odc-bracket .team .score { font-weight: 800; color: var(--navy); min-width: 24px; text-align: right; flex: none; }
.odc-bracket .team.win { background: #fff6e9; color: var(--navy); font-weight: 800; }
.odc-bracket .team.win .score { color: var(--red); }
/* シード（1回戦不在のチームを1回戦に明示） */
.odc-bracket .team.is-seed { color: var(--navy); }
.odc-bracket .seed-tag { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: .02em; white-space: nowrap; }
.odc-bracket .match.seed-only { background: #fbfbfd; border-style: dashed; }
/* 右へ伸びる接続線 */
.odc-bracket .round:not(:last-child) .match::after {
  content: ""; position: absolute; right: -12px; top: 50%;
  width: 12px; height: 2px; background: var(--gray-light);
}
/* 優勝カード */
.odc-bracket .champion .round-matches { justify-content: center; }
.odc-bracket .champion-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; border-radius: 12px; padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow-lg); border: 2px solid var(--gold);
}
.odc-bracket .champion-card .crown { font-size: 30px; }
.odc-bracket .champion-card .label { color: var(--gold); font-size: 12px; letter-spacing: .2em; font-weight: 700; }
.odc-bracket .champion-card .name { font-size: 20px; font-weight: 900; margin-top: 4px; max-width: 100%; }

/* 大会詳細ページ下部のボタン */
.tournament-nav-btns {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 24px; margin-top: 48px;
}
.tournament-nav-btns .back-link { color: var(--red); font-weight: 700; }
.tournament-nav-btns .back-link:hover { color: var(--red-dark); }

/* ===================================================================
   レスポンシブ
   =================================================================== */
@media (max-width: 860px) {
  .hero { min-height: 82vh; }
  .hero-scroll { bottom: 74px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .sponsor-grid, .sponsor-grid-main { grid-template-columns: repeat(2, 1fr); }
  .next-cup { grid-template-columns: 1fr; text-align: center; }
  .next-cup dl { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 90px; }
  .next-cup { padding: 28px; }
  .brand-text { font-size: 17px; }
  .sponsor-logos { grid-template-columns: repeat(2, 1fr); }
  .hero::after { width: 220px; height: 220px; }
  .site-header .custom-logo { height: 40px; max-width: 170px; }

  /* ローディング演出をスマホ向けに縮小 */
  .odc-preloader-inner { gap: 14px; }
  .odc-preloader .custom-logo { max-height: 52px; }
  .odc-preloader-mark { width: 58px; height: 58px; font-size: 26px; border-width: 2px; }
  .odc-preloader-text { font-size: 10px; letter-spacing: .3em; padding-left: .3em; }
  .odc-preloader-bar { width: 104px; }
}

/* ヒーロー：スマホ最適化（ボタンを全幅で縦並び／SCROLLの重なり防止／改行調整） */
@media (max-width: 640px) {
  .hero { min-height: auto; align-items: flex-start; padding: 88px 0 118px; }
  .hero-inner { padding: 6px 20px 0; }
  .hero p { font-size: 16px; line-height: 1.9; margin-bottom: 30px; }
  .hero-br { display: none; }              /* スマホでは強制改行を解除して自然な折り返しに */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; text-align: center; padding: 15px 18px; }
  .hero-scroll { bottom: 34px; }           /* 本文・ボタンの下（余白内）に配置して重なりを防止 */
}

/* ===================================================================
   セレクション募集ページ
   =================================================================== */
.selection-hero-reward {
  display: inline-block; margin-top: 14px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 18px; letter-spacing: .02em;
  padding: 8px 20px; border-radius: 6px;
}
.selection-lead { font-size: 17px; line-height: 1.9; margin: 4px 0 8px; }
.selection-lead strong { color: var(--red); }

.selection-points {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 12px;
}
.selection-point {
  position: relative; background: #fff; border: 1px solid var(--gray-light);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: 0 6px 18px rgba(13,27,62,.06);
}
.selection-point-no {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 6px;
}
.selection-point h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); line-height: 1.5; }
.selection-point p { margin: 0; line-height: 1.8; color: var(--text); font-size: 14.5px; }

.selection-note { color: var(--gray); font-size: 13px; }
.selection-form-note { margin: 0 0 18px; color: var(--text); line-height: 1.8; }

.sponsor-selection-cta { margin-top: 36px; }
.sponsor-selection-cta h3 { margin: 0 0 8px; color: #fff; }
.sponsor-selection-cta-btn { margin: 16px 0 0; }

@media (max-width: 640px) {
  .selection-points { grid-template-columns: 1fr; }
  .selection-hero-reward { font-size: 16px; }
}

/* ===================================================================
   沿革（年表）
   =================================================================== */
.odc-history { list-style: none; margin: 24px 0 8px; padding: 0; }
.odc-history > li { position: relative; padding: 0 0 26px 100px; }
.odc-history > li::before { content: ""; position: absolute; left: 78px; top: 6px; bottom: -6px; width: 2px; background: var(--gray-light); }
.odc-history > li:last-child::before { display: none; }
.odc-history > li::after { content: ""; position: absolute; left: 74px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gray-light); }
.odc-history .hist-year { position: absolute; left: 0; top: 0; width: 62px; text-align: right; font-weight: 900; color: var(--navy); font-size: 18px; }
.odc-history .hist-body h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.odc-history .hist-body p { margin: 0; line-height: 1.8; color: var(--text); }
@media (max-width: 520px) {
  .odc-history > li { padding-left: 76px; }
  .odc-history > li::before { left: 58px; }
  .odc-history > li::after { left: 54px; }
  .odc-history .hist-year { width: 46px; font-size: 15px; }
  .odc-history .hist-body h3 { font-size: 16px; }
}

/* ===================================================================
   チーム紹介（一覧・個別）
   =================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--gray-light); border-top: 4px solid var(--navy);
  border-radius: 14px; padding: 26px 20px; box-shadow: var(--shadow);
  color: var(--navy); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--navy); }
.team-card-logo { width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 14px; }
.team-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.team-logo-fallback { font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.4; }
.team-card-name { font-size: 17px; margin: 0; color: var(--navy); line-height: 1.4; }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.team-detail-logo { text-align: center; margin: 0 0 24px; }
.team-detail-logo img { max-width: 200px; height: auto; display: inline-block; }
.team-detail-photo { margin: 0 0 28px; border-radius: 12px; overflow: hidden; }
.team-detail-photo img { width: 100%; height: auto; display: block; }
.team-intro { line-height: 1.9; }

/* ===================================================================
   追加調整：協賛一覧ロゴのカラー化 / 紹介ページロゴ縮小 / 青帯の高さ
   =================================================================== */
@media (max-width: 1024px) {
  .sponsor-card .sponsor-logo img { filter: none; opacity: 1; }
}
@media (max-width: 640px) {
  .sponsor-detail-logo { max-width: 210px; }
  .page-hero { padding: 34px 0; }
}
@media (max-width: 400px) {
  .sponsor-detail-logo { max-width: 168px; }
  .page-hero { padding: 28px 0; }
}

/* ===================================================================
   大会期間（スケジュール）：子ページへのボタン
   =================================================================== */
.schedule-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.schedule-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 18px 24px; border-radius: 12px; font-weight: 800; font-size: 17px;
  box-shadow: var(--shadow); border: 1px solid rgba(232,178,74,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.schedule-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--navy-light); color: #fff; }
.schedule-btn-arrow { color: var(--gold); font-size: 18px; transition: transform .25s ease; }
.schedule-btn:hover .schedule-btn-arrow { transform: translateX(5px); }
@media (max-width: 520px) { .schedule-btns { grid-template-columns: 1fr; } }
