/* ============================================================
   KASHIMA ACADEMY FC（テスト） - style.css
   design.md（FC町田ゼルビア踏襲）準拠
   Primary #0054a7 / Accent #c49b38 / ライトテーマ固定
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --primary: #0054a7;
  --primary-dark: #003c78;
  --secondary: #002141;
  --accent: #c49b38;
  --accent-dark: #a27e27;

  --bg: #ffffff;
  --surface: #eff4f9;
  --text: #000000;
  --text-sub: #727272;
  --text-inverse: #ffffff;
  --border: #d1d1d1;

  --success: #1a9e4b;
  --danger: #d7263d;
  --warning: #e8a200;

  --grad-gold: linear-gradient(160deg, #c49b38, #a27e27);
  --grad-blue: linear-gradient(160deg, #0054a7, #002141);

  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.15);

  --font-head: Inter, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-body: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;

  --header-h: 56px; /* 2026-07-27：上部白余白を詰める（64→56） */
  --bnav-h: 56px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip; /* 閉状態ドロワー(translateX(100%))の横はみ出し防止 */
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  line-break: strict;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

svg {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section 共通 ---------- */
/* 2026-07-10：セクション余白を全ページで圧縮（96px→64px。「ゆとりありすぎ」指摘対応） */
.sec {
  padding: 64px 0;
}

/* 方眼グリッド模様（.sec--grid）は2026-07-09に全廃（テラノさん指示。TOP含む） */

.sec--surface {
  background: var(--surface);
}

.sec--dark {
  background: var(--secondary);
  color: var(--text-inverse);
}

.sec-head {
  margin-bottom: 28px;
}

/* 2026-07-10：見出しを町田ゼルビア級に拡大・太字化（34px/700→46px/800。フォントは現状のまま） */
.sec-title {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--text);
}

.sec--dark .sec-title {
  color: var(--text-inverse);
}

.sec-kana {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
  margin-top: 4px;
}

.sec-kana::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.sec--dark .sec-kana {
  color: rgba(255, 255, 255, 0.7);
}

.sec-note {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
}

/* ============================================================
   CTA ボタン（design.md 5種）
   ============================================================ */

/* メイン/サブCTA（グラデ・radius 6px / SPはピル） */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
  white-space: nowrap;
}

.btn-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.24s var(--ease-out);
}

.btn-cta > span {
  position: relative;
  z-index: 1;
  transition: color 0.24s var(--ease-out);
}

.btn-cta--gold {
  background: var(--grad-gold);
}

.btn-cta--gold:hover::before {
  opacity: 1;
}

.btn-cta--gold:hover > span {
  color: var(--accent-dark);
}

.btn-cta--blue {
  background: var(--grad-blue);
}

.btn-cta--blue:hover::before {
  opacity: 1;
}

.btn-cta--blue:hover > span {
  color: var(--secondary);
}

/* 標準ボタン（黒ピル・左テキスト＋右円形アイコンの非対称） */
/* 2026-07-10：丸矢印は文字数に関係なくボタン右端に固定（テラノさん指示）。
   テキストは左右対称パディングで常に中央、アイコンは絶対配置で右端 */
.btn-std {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--text-inverse);
  border-radius: 100vmax;
  padding: 0.5rem 3.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 44px;
}

.btn-std__ico {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.btn-std__ico::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: var(--bg);
  transform: translateX(-130%) skewX(-30deg);
  transition: transform 0.48s var(--ease-out);
}

.btn-std:hover .btn-std__ico::before {
  transform: translateX(130%) skewX(-30deg);
}

.btn-std__ico svg {
  position: relative;
  z-index: 1;
  stroke: currentColor;
}

/* 白ボタン（濃色背景上） */
.btn-std--white {
  background: var(--bg);
  color: var(--text);
}

.btn-std--white .btn-std__ico {
  border-color: rgba(0, 0, 0, 0.25);
}

.btn-std--white .btn-std__ico::before {
  background: var(--text);
}

/* 戻る/アウトラインボタン */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 2rem;
  border: 1px solid var(--text);
  border-radius: 100vmax;
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.24s var(--ease-out), color 0.24s var(--ease-out);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--text-inverse);
}

/* ============================================================
   Header（白・fixed 上部）
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  display: flex;
  align-items: center;
}

.header__inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴはヘッダー中央に固定し、ロゴ単体を下（FVヒーロー）へはみ出させる（白い箱・影は付けない。2026-07-09修正） */
.header__logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
}

/* max-width:none：グローバルの img{max-width:100%} が絶対配置(left:50%)の
   利用可能幅にクランプされてSPでロゴが細長く潰れるのを防ぐ（2026-07-10修正） */
.header__logo img {
  height: 112px;
  width: auto;
  max-width: none;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  min-height: 44px;
  padding: 0 8px;
}

.header__contact svg {
  stroke: var(--primary);
}

.header__contact:hover {
  color: var(--primary);
}

/* ハンバーガー（SPのみ表示） */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: transform 0.24s var(--ease-out), opacity 0.24s var(--ease-out);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   ナビバー（画面下部固定＝ゼルビアの個性）
   ============================================================ */
.bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bnav__inner {
  height: var(--bnav-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bnav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 100%;
}

.bnav__item {
  position: relative;
  display: flex;
}

/* ホバー中だけリンクとドロップダウンの隙間を橋渡しして、
   サブメニューが途中で閉じる（＝メニューが死ぬ）のを防ぐ */
.bnav__item:hover::after,
.bnav__item:focus-within::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}

.bnav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.24s var(--ease-out);
}

.bnav__link svg {
  stroke: var(--text-sub);
  transition: transform 0.24s var(--ease-out);
}

.bnav__item:hover .bnav__link,
.bnav__item:focus-within .bnav__link {
  color: var(--primary);
}

.bnav__item:hover .bnav__link svg,
.bnav__item:focus-within .bnav__link svg {
  transform: rotate(180deg);
}

/* ドロップダウン（上方向に開く） */
.bnav__sub {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 230px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

.bnav__item:hover .bnav__sub,
.bnav__item:focus-within .bnav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.bnav__sub a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  color: var(--text);
  white-space: nowrap;
}

.bnav__sub a:hover {
  background: var(--surface);
  color: var(--primary);
}

.bnav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   モバイルドロワー
   ============================================================ */
.drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  background: var(--bg);
  overflow-y: auto;
  padding: 16px 16px 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease-out), visibility 0.3s;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* PC幅ではドロワーを完全に無効化
   （開いたまま窓を広げるとハンバーガーが消えて閉じられなくなる事故の保険） */
@media (min-width: 768px) {
  .drawer {
    display: none;
  }
}

.drawer__group {
  border-bottom: 1px solid var(--border);
}

.drawer__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.drawer__group summary::-webkit-details-marker {
  display: none;
}

.drawer__group summary svg {
  stroke: var(--text-sub);
  transition: transform 0.24s var(--ease-out);
}

.drawer__group[open] summary svg {
  transform: rotate(180deg);
}

.drawer__group ul {
  padding: 0 4px 12px;
}

.drawer__group ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  font-size: 14px;
  color: var(--text);
  border-left: 2px solid var(--border);
}

.drawer__group ul a:hover {
  color: var(--primary);
  border-left-color: var(--accent);
}

.drawer__single {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   FV（全画面・関東昇格の歓喜写真＋Ken Burnsズーム）
   ※写真には文字が焼き込まれていないため、
     コピー「街クラブを、超える。」をHTML側で重畳する
   ============================================================ */
/* 【2026-07-09 FV写真全体表示版】写真全体を見せるため in-flow 配置＋height:auto。
   ▼▼ 旧仕様（戻す場合はこちら。テラノさん「この形は覚えとけ」対応）▼▼
   .fv { height: calc(100svh - var(--header-h) - var(--bnav-h)); min-height: 540px; }
   .fv__img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
              object-position:center; animation: kenburns 20s ease-in-out infinite alternate; }
   モバイル: .fv { min-height: 480px; }
   ▲▲ ここまで旧仕様 ▲▲ */
.fv {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

/* pictureラッパーの空インラインボックスがFV下に隙間を作らないようにする */
.fv picture {
  display: contents;
}

.fv__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   FV 2枚目「鹿島国際、始動。」（2026-07-27・支給デザイン再現）
   全体をクロスフェード。表示中は1枚目のコピーを逆位相でフェードアウト
   ============================================================ */
.fv__s2 {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  animation: fv-slide2 18s ease-in-out infinite;
}

.fv__s2 .fv__img--2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.14);
}

/* 左のテキスト可読用の暗幕のみ（照明・霧の演出は2026-07-27指示で廃止） */
.fv__s2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(3, 12, 28, 0.55) 0%, rgba(3, 12, 28, 0.26) 40%, transparent 62%);
}

.fv__s2-inner {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1200px) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}

.fv__s2-eyebrow {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #d9b970;
}

.fv__s2-eyebrow span {
  color: #c9a55c;
  padding: 0 0.2em;
}

.fv__s2-title {
  margin-top: 18px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: clamp(46px, 7vw, 108px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 28px rgba(0, 10, 25, 0.6);
}

.fv__s2-sub {
  margin-top: 14px;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #e7d6ae;
}

.fv__s2-body {
  margin-top: 16px;
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}

.fv__s2-box {
  margin-top: 20px;
  width: fit-content;
  padding: 14px 22px 16px;
  border: 1px solid rgba(196, 155, 56, 0.65);
  background: rgba(2, 14, 32, 0.42);
  backdrop-filter: blur(2px);
}

.fv__s2-box-title {
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d9b970;
}

.fv__s2-box dl {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(196, 155, 56, 0.35);
  display: grid;
  gap: 6px;
}

.fv__s2-box dl div {
  display: flex;
  gap: 16px;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.05em;
}

.fv__s2-box dt {
  color: #d9b970;
  font-weight: 700;
  flex: 0 0 2.4em;
}

.fv__s2-box dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.fv__s2-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #dcbb74, #b8903f);
  color: #14263e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 6px;
  text-decoration: none;
}

.fv__s2-scroll {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 12%;
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.72);
}

/* 表示タイミング：1枚目9秒 → 2枚目9秒 */
@keyframes fv-slide2 {
  0%, 44% { opacity: 0; visibility: hidden; }
  50%, 94% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* 2枚目表示中は1枚目のコピーを逆位相で消す */
.fv__copy {
  animation: fv-copy-hide 18s ease-in-out infinite;
}

@keyframes fv-copy-hide {
  0%, 44% { opacity: 1; }
  50%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 767px) {
  /* SPは要素間の縦リズムを均等にし、サブコピーは選手に重ならない幅で折り返す（2026-07-27調整） */
  .fv__s2-inner {
    left: 20px;
    right: 20px;
    top: 52%;
  }

  .fv__s2-body,
  .fv__s2-box {
    display: none;
  }

  .fv__s2-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-shadow: 0 2px 8px rgba(0, 10, 25, 0.8);
  }

  .fv__s2-title {
    margin-top: 10px;
    font-size: clamp(34px, 10.5vw, 46px);
    font-weight: 900;
    line-height: 1.32;
  }

  .fv__s2-sub {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    max-width: 240px;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 10, 25, 0.8);
  }

  .fv__s2-eyebrow {
    font-weight: 700;
  }

  .fv__s2-btn {
    margin-top: 22px;
    padding: 11px 26px;
    font-size: 12px;
  }

  .fv__s2-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv__s2 {
    animation: none;
  }

  .fv__copy {
    animation: none;
  }
}

/* FVの濃紺グラデーションオーバーレイは2026-07-10に廃止
   （テラノさん「背景が見にくい」指摘。コピーの可読性はtext-shadowで確保） */

/* FVコピーは左下配置・存在感を強める（2026-07-09） */
.fv__copy {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1200px) / 2 + 24px));
  bottom: 7%;
  color: var(--text-inverse);
}

.fv__catch {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 20, 40, 0.75), 0 4px 28px rgba(0, 20, 40, 0.85);
}

.fv__sub {
  margin-top: 10px;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 20, 40, 0.7);
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv__img {
    animation: none;
  }
}

/* ============================================================
   TOPICS（小型バナー横流しマーキー・2026-07-10全面改修）
   ・セクションタイトル廃止／FV直下に密着（余白を大幅圧縮）
   ・PCで約5枚が同時に見えるサイズに小型化し、常時ゆっくり横スライド
   ・HTML側は同じ3枚セット×3（2セット目以降は aria-hidden）。
     translateX(-100%/3)＝1セット分で無限ループが継ぎ目なく繋がる
   ============================================================ */
.sec--topics {
  padding: 20px 0;
  background: var(--bg);
}

.topics-slider {
  overflow: hidden;
}

.topics-track {
  display: flex;
  width: max-content;
  animation: topics-marquee 50s linear infinite; /* 2026-07-27：スライド4→5枚化（リクルート追加）に伴い40s→50s（流速を従来と同一に維持） */
}

.topics-slider:hover .topics-track,
.topics-slider:focus-within .topics-track {
  animation-play-state: paused;
}

/* PC：約5枚が一気に見える幅（1200px÷5≒228px）。SPは約2.2枚 */
.topics-slide {
  flex: 0 0 auto;
  width: clamp(160px, 19vw, 228px);
  margin-right: 12px;
  min-width: 0;
}

.topics-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 580 / 320;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-1);
}

@keyframes topics-marquee {
  to {
    transform: translateX(calc(-100% / 3));
  }
}

@media (prefers-reduced-motion: reduce) {
  .topics-track {
    animation: none;
  }
}

/* ============================================================
   サイト内メニュー（写真タイル2列・下部ラベル帯）
   2026-07-10全面改修：ソフトバンクホークスSP版参考。
   PC/SPとも2列固定・写真全面・下部に濃紺帯＋白太字ラベル。
   5枚目（パートナー）は全幅1枚
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-tile {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-1);
  background: var(--secondary);
}

.menu-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s var(--ease-out);
}

.menu-tile:hover img {
  transform: scale(1.06);
}

.menu-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 33, 65, 0) 45%, rgba(0, 33, 65, 0.9) 100%);
}

.menu-tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 20px;
  color: var(--text-inverse);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.menu-tile__en {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.menu-tile__ja {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.menu-tile__arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: background 0.24s var(--ease-out);
}

.menu-tile__arrow svg {
  stroke: var(--text-inverse);
}

.menu-tile:hover .menu-tile__arrow {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   NEWS
   ============================================================ */
/* NEWS：コンパクトな下線型カテゴリーフィルター（2026-08-05） */
.news-tabs {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
}

.news-tab {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 14px;
  border-radius: 0;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.24s var(--ease-out), color 0.24s var(--ease-out);
}

.news-tab::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: transparent;
}

.news-tab:hover {
  background: var(--surface);
  color: var(--primary);
}

.news-tab.is-active {
  background: transparent;
  color: var(--primary);
}

.news-tab.is-active::after {
  background: var(--primary);
}

.news-tab:focus-visible {
  outline: 3px solid #f5c800;
  outline-offset: -3px;
}

.news-empty {
  padding: 40px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
}

.news-list {
  border-top: 1px solid var(--border);
  max-width: 920px;
  margin: 0 auto;
}

/* 2026-07-10：オリックス・バファローズ型に改修＝サムネイル左＋（タグ・日付）＋タイトルの行構造 */
.news-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.24s var(--ease-out);
}

/* タブ絞り込みで hidden 属性が付いた行は display:flex を打ち消して非表示にする */
.news-row[hidden] {
  display: none;
}

/* サムネイル（16:9固定）。--logo＝白地にロゴをcontain／--noimg＝濃紺地にエンブレム */
.news-row__thumb {
  position: relative;
  flex: 0 0 168px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.news-row__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-row__thumb--logo {
  background: var(--bg);
}

.news-row__thumb--logo img {
  object-fit: contain;
  padding: 14px 18px;
}

.news-row__thumb--noimg {
  background: var(--grad-blue);
  border: none;
}

.news-row__thumb--noimg img {
  object-fit: contain;
  padding: 16px;
  opacity: 0.9;
}

.news-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 8px;
}

/* タグ＋日付の横並びヘッド（バファローズ型。2026-07-10改訂） */
.news-row__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.news-row:hover {
  background: var(--surface);
}

.news-row__date {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
}

.news-row__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 5px 10px;
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.news-row__badge--gold {
  background: var(--accent);
}

/* タグごとに色を変える（2026-07-09）：パートナー＝金／ジュニアユース＝青／その他は緑・赤等で拡張可 */
.news-row__badge--partner {
  background: var(--accent);
}

.news-row__badge--jy {
  background: var(--primary);
}

.news-row__badge--event {
  background: #1a9e4b;
}

/* NEWSの自由タグ（LINE会員限定・先着など） */
.news-row__label {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  background: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 100vmax;
}

.news-row__badge--info {
  background: #6b4fa0;
}

.news-row__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.news-row:hover .news-row__title {
  color: var(--primary);
}

.news-foot {
  margin-top: 32px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

/* ============================================================
   RESULTS（タブ＋直近試合＋順位表）
   ============================================================ */
.result-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.result-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 100vmax;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  transition: all 0.24s var(--ease-out);
  white-space: nowrap;
}

.result-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.result-tab.is-active {
  background: var(--grad-blue);
  border-color: transparent;
  color: var(--text-inverse);
}

.result-panel {
  display: none;
}

.result-panel.is-active {
  display: block;
}

/* カテゴリー内の大会切り替え：リーグ戦・公式トーナメント等を同じ画面で管理 */
.result-competition-intro {
  margin: -16px 0 12px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.8;
}

.result-competition-mount {
  margin-bottom: 32px;
}

.result-competition-switcher {
  display: grid;
  grid-template-columns: auto minmax(240px, 460px) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.result-competition-switcher__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.result-competition-select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 40px 8px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.result-competition-select:focus-visible {
  outline: 3px solid rgba(0, 84, 167, 0.28);
  outline-offset: 2px;
  border-color: var(--primary);
}

.result-competition-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  color: var(--text-inverse);
  background: var(--primary);
  border-radius: 100vmax;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.result-competition-kind.is-tournament {
  background: var(--accent-dark);
}

.result-competition-view[hidden] {
  display: none !important;
}

.tournament-card {
  max-width: 900px;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
}

.tournament-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--text-inverse);
  background: var(--secondary);
}

.tournament-card__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tournament-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--secondary);
  background: var(--bg);
  border-radius: 100vmax;
  font-size: 11px;
  font-weight: 700;
}

.tournament-card__title {
  margin: 24px 24px 0;
  font-size: 20px;
  line-height: 1.6;
}

.tournament-card__note {
  margin: 8px 24px 20px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.8;
}

.tournament-rounds {
  margin: 0;
  padding: 16px;
  list-style: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.tournament-round {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 6px;
}

.tournament-round--win { border-left-color: var(--success); }
.tournament-round--lose { border-left-color: var(--danger); }
.tournament-round--draw { border-left-color: var(--text-sub); }

.tournament-round__name {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.45;
}

.tournament-round__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  background: rgba(0, 84, 167, 0.07);
  border-right: 1px solid var(--border);
}

.tournament-round__date {
  color: var(--text-sub);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tournament-round__result {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: var(--text-inverse);
  background: var(--primary);
  border-radius: 100vmax;
  font-size: 11px;
  font-weight: 700;
}

.tournament-round__result--win { background: var(--success); }
.tournament-round__result--lose { background: var(--danger); }
.tournament-round__result--draw { background: var(--text-sub); }

.tournament-round__match {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 10px 18px;
}

.tournament-round__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 5px 0;
}

.tournament-round__team + .tournament-round__team {
  border-top: 1px solid var(--border);
}

.tournament-round__team.is-academy {
  color: var(--primary-dark);
  font-weight: 700;
}

.tournament-round__logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tournament-round__team-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

.tournament-round__score {
  flex: 0 0 38px;
  text-align: right;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tournament-round__penalty {
  margin: 8px 0 2px;
  padding: 7px 10px;
  color: var(--danger);
  background: rgba(215, 38, 61, 0.08);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.tournament-card__empty {
  margin: 0;
  padding: 28px 24px;
  color: var(--text-sub);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
}

.result-data-source,
.tournament-card__source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 8px 2px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tournament-card__source {
  margin: 4px 24px 18px;
}

.result-data-source:hover,
.tournament-card__source:hover {
  text-decoration-thickness: 2px;
}

/* 過去結果：閉じた状態は1行、開いたときだけ全試合を見せる */
.match-history {
  margin-top: 28px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.match-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.match-history > summary::-webkit-details-marker {
  display: none;
}

.match-history > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  color: var(--text-inverse);
  background: var(--primary);
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1;
}

.match-history[open] > summary::after {
  content: "−";
}

.match-history__count {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.match-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.match-history__item {
  display: grid;
  grid-template-columns: minmax(118px, 0.65fr) minmax(360px, 2fr) minmax(170px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.match-history__item:last-child {
  border-bottom: 0;
}

.match-history__meta {
  display: grid;
  gap: 2px;
}

.match-history__date {
  font-family: var(--font-head);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.match-history__stage,
.match-history__venue {
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.6;
}

.match-history__fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.match-history__team:first-child {
  text-align: right;
}

.match-history__score {
  min-width: 54px;
  color: var(--secondary);
  font-family: var(--font-head);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.match-history__venue {
  margin: 0;
}

/* 次の試合・直近の試合＝横並び2カラム。順位表はその直下に全幅 */
.result-matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.result-matches--single {
  grid-template-columns: minmax(0, 620px);
}

.result-rank {
  margin-top: 40px;
}

.result-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  margin-bottom: 12px;
}

/* 試合カード */
.match-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--grad-blue);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.match-card__body {
  padding: 24px 16px 20px;
  text-align: center;
}

.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.match-card__team {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.match-card__team-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.match-card__emblem {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.match-card__emblem img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.match-card__emblem--tbd {
  border: 2px dashed var(--border);
  box-shadow: none;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
}

.match-card__emblem--none {
  color: var(--text-sub);
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
}

.match-card__score {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  align-self: start;
  margin-top: 22px;
}

.match-card__score i {
  font-style: normal;
  font-size: 18px;
  color: var(--text-sub);
}

.match-card__vs {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  padding: 0 10px;
  align-self: start;
  margin-top: 30px;
}

.match-card__meta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 12px;
  color: var(--text-sub);
}

.match-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-card__meta svg {
  stroke: var(--accent);
}

/* 順位表 */
.rank-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rank-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--secondary);
  color: var(--text-inverse);
  border-radius: 100vmax;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rank-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
}

.rank-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
}

.rank-table th,
.rank-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rank-table th {
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.rank-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
}

.rank-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-team__logo {
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rank-team__name {
  display: block;
}

.rank-table tbody tr:last-child td {
  border-bottom: none;
}

/* 自チーム行＝ブルーベタ＋白抜き＋左端に金のアクセント（2026-07-10刷新）
   ※--secondaryだと濃紺セクション背景と同化するため--primaryを使う（同日テラノさん指摘で変更） */
.rank-table .is-highlight td {
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.rank-table .is-highlight td:first-child {
  box-shadow: inset 4px 0 0 var(--accent);
}

.match-card__team-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-logo--crest-only {
  object-fit: cover;
  object-position: left center;
}

/* 全チームを同じ表示面積に統一。白い円形台座は使わない。 */
.rank-team__logo.team-logo--academy,
.tournament-round__logo.team-logo--academy {
  object-fit: contain;
  border-radius: 50%;
  outline: 0;
}

.result-rank-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 860px;
  min-height: 48px;
  margin: 28px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.result-rank-shortcut strong {
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.result-rank-shortcut > span:last-child {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.result-rank-shortcut:hover {
  border-color: var(--primary);
}

@media (max-width: 767px) {
  .rank-team__logo,
  .tournament-round__logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .result-rank-shortcut {
    margin-top: 20px;
  }
}

.result-empty {
  padding: 56px 24px;
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 14px;
}

.result-foot {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.achieve-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.achieve-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 写真素材のないカード用：濃紺グラデ＋エンブレム */
.achieve-card__photo--emblem {
  background: var(--grad-blue);
  display: grid;
  place-items: center;
}

.achieve-card__photo--emblem img {
  width: auto;
  height: 62%;
}

/* 正方形素材の横長トリミング時に上部の文字帯を避けて下側を見せる */
.img-pos-lower {
  object-position: center 68%;
}

.achieve-card__body {
  padding: 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.achieve-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

.achieve-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.achieve-card__text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* ============================================================
   PARTNER
   ============================================================ */
.partner-tier {
  max-width: 1040px;
  margin: 0 auto 48px;
}

.partner-tier:last-child {
  margin-bottom: 0;
}

.partner-tier__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.partner-tier__title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent);
}

.partner-grid {
  display: grid;
  gap: 20px;
}

/* minmax(0,1fr)：ロゴ原寸(min-content)による枠はみ出しを防ぐ */
.partner-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* プラチナ：全幅大バナー1枚（本番: 1024x341 ≒ 3:1）
   ※パートナー枠はすべて border-radius: 0（完全な四角・角丸禁止） */
.partner-platinum {
  position: relative;
  aspect-ratio: 3 / 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.24s var(--ease-out);
}

/* 潮来工機ロゴ（新支給・トリミング済み1200x283 ≒ 4.2:1）を枠内で中央配置。
   原寸(1200px)を上限に縮小方向のみで表示して「引き伸ばし＝ぼやけ」を防ぐ。
   横長比率のため幅制限は70%に緩和（高さ約50%で他ロゴと光学的に揃う） */
.partner-platinum img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: min(1200px, 70%);
  max-height: 52%;
}

/* 全ボックス同一比率（本番と同じ3:1）。
   トリミング済みロゴを同一枠に contain して見かけの大きさを揃える
   ※border-radius: 0（完全な四角）で固定。角丸は禁止 */
.partner-box {
  position: relative;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  aspect-ratio: 3 / 1;
  transition: box-shadow 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

.partner-box:hover {
  box-shadow: var(--shadow-1);
}

a.partner-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}

/* 絶対配置＋object-fit：全枠を同一比率(3:1)に固定し、
   トリミング済みロゴを同一の描画領域に contain して大きさを揃える */
.partner-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  object-fit: contain;
}

/* ロゴの縦横比に応じた面積補正。
   3:1枠にcontainすると「正方形に近いロゴ＝枠の高さ一杯」に、
   「横長ワードマーク＝低い帯」になり、見かけの大きさが揃わない。
   縦横比バンドごとに縮小して光学的な面積を均一化する。
   - .logo-sq : 縦横比 〜2.4:1（藤枝建設・ユニック・鎮誠会・adidas）
   - .logo-mid: 縦横比 2.4〜3.3:1（枠をほぼ両方向に満たすバナー型） */
.partner-box img.logo-sq {
  transform: scale(0.9); /* 2026-07-26: 0.72では他ロゴより小さすぎた（海老根さん指摘）*/
}

.partner-box img.logo-mid {
  transform: scale(0.85);
}

.partner-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   公式SNS・LINE（濃色帯）
   ============================================================ */
.sns__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.sns__lead {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.sns__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.sns__note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* LINE登録CTA：LINEブランドグリーン(#06C755)の大型ピル。
   白円＋LINEマークで一目で「LINE」と分かる。濃紺背景上で高コントラスト */
.btn-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 48px 8px 10px;
  background: #06c755;
  color: var(--text-inverse);
  border-radius: 100vmax;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

/* hover：光沢スイープ＋浮き上がり */
.btn-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translateX(-101%);
  pointer-events: none;
}

.btn-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.45);
}

.btn-line:hover::after {
  transform: translateX(101%);
  transition: transform 0.48s var(--ease-out);
}

.btn-line__ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.btn-line__ico svg {
  width: 26px;
  height: 26px;
  fill: #06c755;
}

.btn-line__label {
  position: relative;
  z-index: 1;
}

.btn-line__arrow {
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
}

.btn-line__arrow svg {
  stroke: rgba(255, 255, 255, 0.9);
  transition: transform 0.24s var(--ease-out);
}

.btn-line:hover .btn-line__arrow svg {
  transform: translateX(3px);
}

/* ============================================================
   MEDIA（メディア掲載・白背景）
   YouTube風の均等カードグリッド＋媒体色分けタグの記事リスト。
   タグ色・Caption(#727272)の視認性のため背景は白。
   ============================================================ */
.sec--media {
  background: var(--bg);
}

.media-lead {
  max-width: 860px;
  margin: -24px 0 48px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.media-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.media-label--articles {
  margin-top: 64px;
}

/* 動画：YouTube風カードの均等グリッド（PC3列×2段） */
.media-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.media-card {
  display: block;
}

.media-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.24s var(--ease-out);
}

.media-card:hover .media-card__thumb {
  box-shadow: var(--shadow-3);
}

/* サムネイルは480x360(4:3・上下黒帯入り)のため、16:9枠にcoverで黒帯を落とす */
.media-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s var(--ease-out);
}

.media-card:hover .media-card__thumb img {
  transform: scale(1.04);
}

/* 中央：YouTube風の赤い再生ボタン（角丸長方形＋白抜き▶・hover拡大） */
.media-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 52px;
  height: 36px;
  border-radius: 10px;
  background: rgba(204, 17, 17, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.24s var(--ease-out), transform 0.24s var(--ease-out);
}

.media-card__play svg {
  margin-left: 1px;
}

.media-card:hover .media-card__play {
  background: #f00;
  transform: translate(-50%, -50%) scale(1.14);
}

/* 右下：再生時間バッジ（YouTube準拠のダーク） */
.media-card__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* サムネ下：タイトル（2行clamp）→チャンネル名＋日付（YouTubeのカード構造） */
.media-card__meta {
  display: block;
  padding: 10px 2px 0;
}

.media-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text);
}

.media-card:hover .media-card__title {
  color: var(--primary);
}

.media-card__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
}

.media-card__sub time::before {
  content: "・";
}

/* 記事：大手情報サイト型「主記事＋新着リスト」 */
.media-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  background: #fff;
}

.media-feature__lead {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  background: var(--secondary);
  color: #fff;
}

.media-feature__lead--text {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.12), transparent 23%),
    linear-gradient(145deg, #0054a7 0%, #002141 68%);
}

.media-feature__lead--text::before {
  content: "FEATURED";
  position: absolute;
  top: 30px;
  left: 32px;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--font-head);
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.media-feature__visual {
  position: absolute;
  inset: 0;
}

.media-feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 21, 41, 0.96) 3%, rgba(0, 21, 41, 0.52) 52%, rgba(0, 21, 41, 0.06) 100%);
}

.media-feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.36s var(--ease-out);
}

.media-feature__lead:hover .media-feature__visual img {
  transform: scale(1.025);
}

.media-feature__lead-body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
}

.media-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.media-feature__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* 媒体名はテキスト表示。ロゴ画像は許諾確認まで使用しない */
.mtag--asahi { background: #063f87; }      /* 朝日新聞 */
.mtag--sponichi { background: #e60012; }   /* スポニチ */
.mtag--nikkan { background: #d7263d; }     /* 日刊スポーツ */
.mtag--diamondv { background: #111111; }   /* DiamondV */
.mtag--digest { background: #006e3a; }     /* サッカーダイジェスト */
.mtag--fzone { background: #00a0e9; color: #002141; } /* FOOTBALL ZONE：明色背景のため濃色文字 */
.mtag--number { background: #c30d23; }     /* Number Web */
.mtag--tvtokyo { background: #0089cf; }    /* FOOT×BRAIN・テレビ東京 */
.mtag--other { background: #727272; }      /* その他 */

.media-feature__date {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
}

.media-feature__lead .media-feature__date {
  color: rgba(255, 255, 255, 0.8);
}

.media-feature__lead-title {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.media-feature__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.media-feature__read span {
  display: inline-block;
  transition: transform 0.24s var(--ease-out);
}

.media-feature__lead:hover .media-feature__read span {
  transform: translateX(3px);
}

.media-feature__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.media-feature__list li + li {
  border-top: 1px solid var(--border);
}

.media-feature__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: start;
  min-height: 104px;
  padding: 16px 18px;
  transition: background 0.24s var(--ease-out);
}

.media-feature__item:hover {
  background: var(--surface);
}

.media-feature__item-body {
  min-width: 0;
}

.media-feature__item-title {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  transition: color 0.24s var(--ease-out);
}

.media-feature__item:hover .media-feature__item-title {
  color: var(--primary);
}

.media-feature__nowrap {
  white-space: nowrap;
}

.media-feature__arrow {
  display: inline-block;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.7;
  transition: transform 0.24s var(--ease-out);
}

.media-feature__item:hover .media-feature__arrow {
  transform: translateX(3px);
}

/* ============================================================
   Footer（#002141）
   ============================================================ */
/* 2026-07-10：CTA帯との境の白ラインを廃止（border-top削除。テラノさん指摘）
   同日夜：CTA帯〜フッターの重さ指摘で余白も圧縮（64→48px） */
.footer {
  background: var(--secondary);
  color: var(--text-inverse);
  padding: 48px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer__org-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer__org-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__org-meta {
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.75);
}

.footer__org-meta strong {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-inverse);
}

/* SNSアイコン（レジスタ土浦方式：SVGシンボルスプライト） */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--text-inverse);
  transition: background 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.socials__letter {
  display: block;
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer__nav-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__nav a:hover {
  color: var(--text-inverse);
}

.footer__nav li {
  line-height: 1.6;
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__links a:hover {
  color: var(--text-inverse);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .result-matches {
    gap: 20px;
  }

  .partner-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* MEDIA動画：タブレットは2列（均等グリッド維持） */
  .media-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-feature {
    grid-template-columns: 1fr;
  }

  .media-feature__lead {
    min-height: 460px;
  }

  .media-feature__list {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .media-feature__list li {
    border-bottom: 1px solid var(--border);
  }

  .media-feature__list li + li {
    border-top: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 下部ナビ：タブレット幅でもリンク＋CTA2つが収まるよう圧縮 */
  .bnav__inner {
    padding: 0 12px;
    gap: 8px;
  }

  .bnav__link {
    padding: 0 6px;
    font-size: 11px;
  }

  .bnav__cta {
    gap: 8px;
  }

  .bnav__cta .btn-cta {
    padding: 0 10px;
    font-size: 0.625rem;
  }
}

@media (max-width: 767px) {
  body {
    --bnav-h: 60px;
  }

  .sec {
    padding: 44px 0;
  }

  .container {
    padding: 0 16px;
  }

  .result-competition-intro {
    margin-top: -12px;
    font-size: 12px;
  }

  .result-competition-switcher {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px;
  }

  .result-competition-switcher__label {
    grid-column: 1 / -1;
  }

  .result-competition-select {
    font-size: 13px;
  }

  .tournament-card__title {
    margin: 20px 18px 0;
    font-size: 18px;
  }

  .tournament-card__note {
    margin: 8px 18px 16px;
  }

  .tournament-rounds {
    padding: 10px;
  }

  .tournament-round {
    grid-template-columns: 1fr;
  }

  .tournament-round__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .tournament-round__result {
    margin-left: auto;
  }

  .tournament-round__match {
    padding: 8px 14px;
  }

  .tournament-round__team-name {
    font-size: 13px;
  }

  .tournament-round__score {
    font-size: 24px;
  }

  .match-history__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .match-history__fixture {
    gap: 8px;
  }

  .match-history__venue {
    text-align: center;
  }

  .sec-title {
    font-size: 32px;
  }

  /* ヘッダー：ハンバーガー表示（右端）。ロゴは中央のまま */
  .hamburger {
    display: flex;
  }

  .header__contact,
  .header__cta {
    display: none;
  }

  .header__logo {
    top: 2px;
  }

  .header__logo img {
    height: 80px;
  }

  /* 下部ナビ：リンクは隠しCTA 2大ボタンのみ（ピル） */
  .bnav__list {
    display: none;
  }

  .bnav__inner {
    justify-content: center;
    padding: 0 16px;
  }

  .bnav__cta {
    width: 100%;
    gap: 12px;
  }

  .bnav__cta .btn-cta {
    flex: 1;
    height: 44px;
    border-radius: 100vmax;
    font-size: 0.75rem;
  }

  .bnav__cta .btn-cta::before {
    border-radius: 100vmax;
  }

  /* FV（写真全体表示版：min-height撤廃で画像の高さに任せる）。コピーは左下 */
  .fv__copy {
    left: 16px;
    right: 16px;
    bottom: 6%;
  }

  .fv__catch {
    font-size: 30px;
  }

  .fv__sub {
    font-size: 11px;
  }

  /* TOPICS：FV直下に密着（余白最小） */
  .sec--topics {
    padding: 14px 0;
  }

  /* メニュータイル：SPも2列維持（ホークス型）。ラベルは小さめに */
  .menu-tile {
    aspect-ratio: 4 / 3;
  }

  .menu-tile__body {
    padding: 10px 12px;
  }

  .menu-tile__ja {
    font-size: 15px;
  }

  .menu-tile__en {
    font-size: 10px;
  }

  .menu-tile__arrow {
    display: none;
  }

  /* NEWS：サムネを小さく（バファローズSP型） */
  .news-row {
    gap: 12px;
    padding: 14px 8px;
    align-items: flex-start;
  }

  .news-row__thumb {
    flex-basis: 104px;
  }

  .news-row__title {
    font-size: 13px;
    line-height: 1.6;
  }

  /* 試合カード：縦積み */
  .result-matches {
    grid-template-columns: 1fr;
  }

  /* 実績カード：1カラム */
  .achieve-grid {
    grid-template-columns: 1fr;
  }

  /* 試合カード・順位表 */
  .match-card__score {
    font-size: 34px;
    margin-top: 26px;
  }

  .match-card__vs {
    margin-top: 30px;
  }

  .match-card__emblem {
    width: 68px;
    height: 68px;
  }

  .match-card__emblem img {
    width: 54px;
    height: 54px;
  }

  /* パートナー：テラノさん指定の列数（角丸なしは維持）
     オフィシャル=2列／クラブ=3列／ファミリー=4列／提携=3列
     （サプライヤーも4列グリッドのため4列）。プラチナは全幅1枚のまま */
  .partner-grid {
    gap: 8px;
  }

  .partner-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* 枠が小さくなる分、枠内paddingを詰めて視認性を保つ
     （オフィシャルは2列＝枠が大きいので余白を残す） */
  .partner-grid--2 .partner-box img {
    padding: 9px 12px;
  }

  .partner-grid--4 .partner-box img {
    padding: 5px 7px;
  }

  .partner-grid--3 .partner-box img {
    padding: 7px 9px;
  }

  .partner-platinum img {
    max-width: 74%;
    max-height: 56%;
  }

  /* MEDIA：動画は狭幅でも2列（2026-07-10 テラノさん指示） */
  .media-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .media-card__title {
    font-size: 13px;
  }

  .media-card__sub {
    font-size: 11px;
  }

  .media-lead {
    margin: -16px 0 40px;
    font-size: 14px;
  }

  .media-feature__lead {
    min-height: 410px;
  }

  .media-feature__lead-body {
    padding: 24px 20px;
  }

  .media-feature__lead-title {
    font-size: 24px;
  }

  .media-feature__list {
    grid-template-columns: 1fr;
  }

  .media-feature__list li:nth-child(odd) {
    border-right: 0;
  }

  .media-feature__item {
    min-height: 0;
    padding: 15px 12px;
  }

  .footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   サブページ共通テンプレ（2026-07-07 サブページ再設計）
   ワイヤーフレーム_サブページ再設計.md §2 準拠。
   既存TOP用スタイルには一切手を入れず、末尾追加のみ。
   ============================================================ */

/* ---------- A. ページヘッダー（写真背景帯） ---------- */
.page-head {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--secondary);
}

.page-head__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* コピー可読性のための濃紺オーバーレイ */
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 33, 65, 0.82) 0%, rgba(0, 33, 65, 0.55) 55%, rgba(0, 33, 65, 0.35) 100%);
}

.page-head__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-head__en {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
}

/* 英字タイトルが長い場合の縮小版（固定300pxの高さ内で2行以内に収める。2026-07-09追加） */
.page-head__en--long {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: 0.04em;
}

/* 金の短罫線 */
.page-head__en::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 14px 0 10px;
}

.page-head__ja {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
}

.page-head__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-head__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--grad-gold);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.page-head__badge--blue {
  background: var(--grad-blue);
}

/* ---------- B. パンくず ---------- */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-sub);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--border);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ---------- C. アンカーナビ（章ピル・アウトライン仕様） ---------- */
.anchor-nav {
  padding: 24px 0;
  background: var(--bg);
}

.anchor-nav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.anchor-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1.5rem;
  border: 1px solid var(--text);
  border-radius: 100vmax;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.24s var(--ease-out), color 0.24s var(--ease-out);
}

.anchor-pill:hover {
  background: var(--text);
  color: var(--text-inverse);
}

/* ---------- サブページ章見出し（日本語＝主・英字＝小さな金の眉ラベル） ---------- */
.sub-head {
  margin-bottom: 32px;
}

.sub-head__en {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.sub-head__en::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.sub-head__ja {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text);
}

.sub-head--center {
  text-align: center;
}

.sub-head--center .sub-head__en {
  justify-content: center;
}

.sec--dark .sub-head__en {
  color: var(--accent);
}

.sec--dark .sub-head__ja {
  color: var(--text-inverse);
}

/* ---------- 大型CTA（金/青グラデ・radius6px／SPピル・右端円形アイコン） ----------
   統一アナトミー：左テキスト＋右円形アイコン（btn-std／btn-std--whiteと同形）。
   グラデ背景・radius 6px（SPは100vmaxピル）・ホバー白レイヤー反転は design.md CTA仕様。 */
.btn-cta-lg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 56px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
}

.btn-cta-lg::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.24s var(--ease-out);
}

.btn-cta-lg > span:not(.btn-cta-lg__ico) {
  position: relative;
  z-index: 1;
  transition: color 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

/* 右端の円形アイコン（1px輪郭＋矢印。btn-std__icoと同形） */
.btn-cta-lg > .btn-cta-lg__ico {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
}

.btn-cta-lg__ico svg {
  stroke: currentColor;
}

.btn-cta-lg--gold {
  background: var(--grad-gold);
}

.btn-cta-lg--gold:hover::before {
  opacity: 1;
}

.btn-cta-lg--gold:hover > span {
  color: var(--accent-dark);
}

.btn-cta-lg--gold:hover .btn-cta-lg__ico {
  border-color: rgba(162, 126, 39, 0.5);
}

.btn-cta-lg--blue {
  background: var(--grad-blue);
}

.btn-cta-lg--blue:hover::before {
  opacity: 1;
}

.btn-cta-lg--blue:hover > span {
  color: var(--secondary);
}

.btn-cta-lg--blue:hover .btn-cta-lg__ico {
  border-color: rgba(0, 33, 65, 0.5);
}

/* セクション直下の「次の行動」ボタン行 */
.sec-action {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ---------- E. RELATED（関連ページ3カード） ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related-card {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  box-shadow: var(--shadow-1);
}

.related-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s var(--ease-out);
}

.related-card:hover img {
  transform: scale(1.06);
}

.related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 33, 65, 0) 30%, rgba(0, 33, 65, 0.85) 100%);
}

.related-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 20px;
  color: var(--text-inverse);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.related-card__en {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.related-card__ja {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.related-card__arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: background 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

.related-card__arrow svg {
  stroke: var(--text-inverse);
}

.related-card:hover .related-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- F. CTA帯（濃紺全幅・クリーンな濃紺） ----------
   2026-07-10：グラデ終端をフッターと同色(--secondary)にして白ライン・継ぎ目を消す。余白も圧縮 */
/* 2026-07-10夜2回目：「CTA帯〜フッターが重い」の代替案として濃紺→ライト基調に反転。
   淡いブルーグレーのグラデ地＋濃紺見出し。濃紺の塊はフッターだけになり下部が軽くなる。
   （テラノさんの背景写真ができたら cta-band--photo で写真版に切替可能） */
.cta-band {
  position: relative;
  background: linear-gradient(180deg, #eef3f9 0%, #e2eaf4 100%);
  color: var(--text);
  padding: 48px 0;
  text-align: center;
  overflow: hidden;
}

.cta-band > .container {
  position: relative;
  z-index: 1;
}

.cta-band__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.cta-band__title {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--secondary);
}

.cta-band__text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* ライト地では白ピルが見えないため、CTA帯内の白ピルは黒ピルとして描画（HTML変更なしで全18ページに効く） */
.cta-band .btn-std--white {
  background: var(--text);
  color: var(--text-inverse);
}

.cta-band .btn-std--white .btn-std__ico {
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn-std--white .btn-std__ico::before {
  background: var(--bg);
}

.cta-band__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ---------- サブページ共通 Responsive ---------- */
@media (max-width: 767px) {
  .page-head {
    height: 220px;
  }

  .page-head__badges {
    margin-top: 12px;
  }

  .sub-head {
    margin-bottom: 32px;
  }

  .sub-head__ja {
    font-size: 27px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-band {
    padding: 40px 0;
  }

  .cta-band__title {
    font-size: 22px;
  }

  /* CTAはSPでピル（design.md確定仕様） */
  .btn-cta-lg {
    width: 100%;
    max-width: 400px;
    border-radius: 100vmax;
  }

  .btn-cta-lg::before {
    border-radius: 100vmax;
  }

  /* 全幅化時はボタンのテキスト＋アイコンを中央寄せで統一（2026-07-09再修正：左右分割はしない） */
  .cta-band__actions .btn-std,
  .cta-band__actions .btn-outline,
  .sec-action .btn-std,
  .sec-action .btn-outline {
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }
}

/* ============================================================
   TOP背景リッチ化（2026-07-10・テラノさん承認A+B案）
   A案＝セクション背景の大型アウトライン英字透かし
   B案＝濃紺セクション（選手写真ぼかし）＋全幅写真ディバイダー
   ※方眼・金の罫線は使わない（確定方針）
   ============================================================ */

/* ---------- A. 大型アウトライン英字透かし ---------- */
.sec--wm {
  position: relative;
  overflow: hidden;
}

.sec--wm::before {
  content: attr(data-wm);
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(84px, 12vw, 168px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 84, 167, 0.12);
  pointer-events: none;
  user-select: none;
}

.sec--wm > .container {
  position: relative;
  z-index: 1;
}

/* 濃紺セクション上では白のアウトラインに */
.sec--dark.sec--wm::before {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

/* ---------- B-1. RESULTS：濃紺セクション ----------
   写真ぼかし背景は「ぼんやりして邪魔」との指摘で2026-07-10夜に廃止。
   VISIONと同じクリーンな濃紺＋青ラジアルグローで統一 */
.sec--results {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(0, 84, 167, 0.5) 0%, rgba(0, 33, 65, 0) 60%),
    var(--secondary);
}

.sec--results > .container {
  position: relative;
  z-index: 2;
}

/* 濃紺上のタブ・ラベル・順位まわりの反転 */
.sec--results .result-tab {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

.sec--results .result-tab:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.sec--results .result-tab.is-active {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--text-inverse);
}

.sec--results .result-competition-intro {
  color: rgba(255, 255, 255, 0.78);
}

.sec--results .result-competition-switcher {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.sec--results .result-competition-switcher__label {
  color: var(--text-inverse);
}

.sec--results .result-competition-kind {
  background: var(--primary);
}

.sec--results .result-competition-kind.is-tournament {
  color: var(--secondary);
  background: var(--accent);
}

.sec--results .result-label {
  color: rgba(255, 255, 255, 0.75);
}

.sec--results .rank-num {
  color: var(--text-inverse);
}

.sec--results .rank-chip {
  background: rgba(255, 255, 255, 0.14);
}

.sec--results .result-empty {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.sec--results .match-card,
.sec--results .rank-table-wrap,
.sec--results .match-history {
  border: none;
}

.sec--results .result-data-source {
  color: #fff;
}

/* B-2. PARTNER前の全幅写真ディバイダー（photo-band）は2026-07-10夜に廃止（テラノさん「画像不要」） */

/* ============================================================
   OUR VISION（クラブの想い・2026-07-10新設 → 同日完成）
   TOPICS直下のゼルビア風・大型ステートメント帯。
   文言はphilosophy.html（育成哲学と未来）の原文と整合を取った確定コピー。
   背景写真プレースホルダは廃止（テラノさん指示）＝クリーンな濃紺＋青のラジアルグロー
   ============================================================ */
.sec--vision {
  position: relative;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(0, 84, 167, 0.55) 0%, rgba(0, 33, 65, 0) 62%),
    var(--secondary);
  color: var(--text-inverse);
  overflow: hidden;
}

.vision__inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 72px;
}

.vision__en {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
}

.vision__en::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.vision__catch {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.vision__lead {
  margin-top: 20px;
  max-width: 680px;
  font-size: 15px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.88);
}

.vision__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* テラノさん作成のCTA帯背景画像（全ページ共通）が届いたら：
   ①画像を res/cta-bg.jpg として保存
   ②各ページの <section class="cta-band"> に cta-band--photo を追加
   推奨サイズ＝2400×1000px・被写体は中央（cover配置のため上下左右は画面幅により切れる） */
/* ↓ CTA背景画像が届いたら res/cta-bg.jpg で保存し、以下のルールを有効化する
   （backgroundに res/cta-bg.jpg を center / cover no-repeat で指定する）
.cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
*/

@media (max-width: 767px) {
  .vision__inner {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .vision__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .sec--wm::before {
    top: 6px;
  }
}

.vision__actions {
  margin-top: 36px;
}

/* 濃紺セクション内の白カードは文字色を黒に戻す（sec--darkのcolor継承対策） */
.sec--results .match-card,
.sec--results .rank-table-wrap {
  color: var(--text);
}

/* ============================================================
   ナビ階層化（2026-07-10夜・チームメニュー見にくい指摘対応）
   親（ジュニアユース/ジュニア/鹿島国際U15）の下に子（試合結果・選手紹介）
   ============================================================ */
/* PC：下部ナビのドロップダウン内の子項目 */
.bnav__sub .bnav__sub-child {
  position: relative;
  padding-left: 32px;
  font-size: 12px;
  color: var(--text-sub);
}

.bnav__sub .bnav__sub-child::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--border);
}

.bnav__sub .bnav__sub-child:hover {
  color: var(--primary);
}

/* SP：ドロワー内の入れ子リスト */
.drawer__group ul ul.drawer__nest {
  padding: 0 0 4px 16px;
}

.drawer__nest a {
  font-size: 13px;
  min-height: 40px;
  color: var(--text-sub);
}

/* ============================================================
   TOPのOFFICIAL LINEセクション（2026-07-10夜6回目）
   濃紺のままでフッターと繋がり「下が重い」原因になっていたため、
   CTA帯と同じライト基調に反転。濃紺の塊はフッターだけにする
   ============================================================ */
/* PARTNER（surface）と色が被らないよう白ベタに（2026-07-10再修正） */
.sec--line {
  background: var(--bg);
}

.sec--line .sns__lead {
  color: var(--text);
}

.sec--line .sns__note {
  color: var(--text-sub);
}

/* ============================================================
   アクション行のボタン幅を統一（2026-07-10夜8回目）
   縦積み・折返し時もボタン幅が揃う＝右端固定の丸矢印が全ボタンで
   同じ位置に揃う（「矢印の位置そろってない」指摘の根本対応）
   ============================================================ */
.cta-band__actions .btn-cta-lg,
.cta-band__actions .btn-std,
.cta-band__actions .btn-line,
.sec-action .btn-cta-lg,
.sec-action .btn-std,
.sec-action .btn-line {
  width: 100%;
  max-width: 480px;
}

/* LINEボタンは全幅化時、アイコン＋ラベルを中央寄せ（矢印は右端固定のまま） */
.cta-band__actions .btn-line,
.sec-action .btn-line {
  justify-content: center;
}

/* PARTNER領域のグレー化案は2026-07-10に試作→青みsurfaceに統一で確定
   （ロゴは白枠ボックス内にあり背景色の影響を受けないため。テラノさん承認） */

/* ============================================================
   SP改行バランス調整（2026-07-11追記・既存ルール変更なし）
   目的：携帯幅で見出し・キャッチコピーがフレーズ途中や
   1〜2文字だけで折り返す「微妙な改行」を防ぐ。
   ①text-wrap: balance … 対応ブラウザのみ効く安全な改善
   ②.u-phrase … フレーズ単位の折返し制御（1フレーズ全角12字以内目安）
   ============================================================ */
.sub-head__ja,
.sec-title,
.cta-band__title,
.page-head__ja,
.fv__catch,
.vision__catch,
.ev-catch,
.zc-brand__catch,
.init-catch p,
.jr-concept__catch,
.jy-concept__catch,
.kk-lead__catch,
.os-catch,
.rq-lead__catch,
.school-catch {
  text-wrap: balance;
}

.u-phrase {
  display: inline-block;
}

/* 「.○○-catch span」の強調色ルールに .u-phrase が巻き込まれないよう明示的に打ち消す
   （内側の強調spanには引き続き色が付く） */
.ev-catch .u-phrase,
.zc-brand__catch .u-phrase,
.jr-concept__catch .u-phrase,
.jy-concept__catch .u-phrase,
.os-catch .u-phrase,
.ph-vision__catch .u-phrase,
.ph-results__lead .u-phrase,
.ts-lead__catch .u-phrase {
  color: inherit;
}

/* ============================================================
   小さいSP（〜480px）：中央ロゴとハンバーガーの重なり防止（2026-07-12）
   ロゴ実寸1129×340（アスペクト約3.32）。片側の障害物
   ＝header__inner padding 24px＋ハンバーガー44px＋余白10px＝78px
   → 利用可能幅 = 100vw − 156px（中央配置のため左右対称に確保）
   上限265.6px（＝現行の高さ80px相当）なので、421.6px以上では
   現状と同寸となり、481px以上（メディアクエリ外）と見た目が連続する。
   検証（ハンバーガー左端との間隔）：
   320px→ロゴ幅164px・間隔10px／375px→219px・10px／
   390px→234px・10px／480px→265.6px（現状同寸）・約39px
   ============================================================ */
@media (max-width: 480px) {
  .header__logo img {
    width: min(100vw - 156px, 265.6px);
    height: auto;
  }
}

/* ============ フェーズC（2026-07-26）：フッター所在地（本番AIO型を移植） ============ */
.footer__org-address {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}
.footer__org-address p + p {
  margin-top: 4px;
}

/* ============================================================
   フェーズD（2026-07-26）：UI・品質グレードアップ
   ============================================================ */

/* ---------- 順位表：数字を Inter＋等幅数字に（design.md 3.1・UI提案5） ---------- */
.rank-table td {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
}

/* ---------- キーボードフォーカスリングのブランド化（UI提案11・WCAG 2.4.7） ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- モーション①：サイト共通スクロールリビール（1系統・UI提案6）
   regional.html の既承認 IntersectionObserver 作法を横展開。
   実装は各ページ共通の末尾スクリプト（インラインスタイル・アニメ後に自動解除）。
   CSSに常設クラスを置かないのは、カード側のホバー用 transition を
   上書きしないため（JS無効時・reduced-motion時は完全静止＝即時表示）。 ---------- */

/* ---------- モーション②：TOPロードの一度きりオーケストレーション（UI提案7）
   写真は動かさない（FV全体表示の確定を維持）。キャッチ→サブ→TOPICSの順・計1秒以内 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fv__catch,
  .fv__sub,
  .sec--topics .topics-slider {
    animation: fv-rise 0.55s ease both;
  }

  .fv__catch { animation-delay: 0s; }
  .fv__sub { animation-delay: 0.2s; }
  .sec--topics .topics-slider { animation-delay: 0.4s; }

  @keyframes fv-rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- モーション③：OUR VISION 金短罫線シグネチャー（UI提案9）
   新装飾なし＝既存の金短罫線（.vision__en::before 28px）とキャッチを動かすだけ。
   .vision-anim は index の JS からのみ付与（reduced-motion時は付与しない） ---------- */
.vision-anim .vision__en::before {
  width: 0;
  transition: width 0.6s ease 0.1s;
}

.vision-anim.is-inview .vision__en::before {
  width: 28px;
}

.vision-anim .vision__catch-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.vision-anim .vision__catch-line:nth-of-type(1) { transition-delay: 0.25s; }
.vision-anim .vision__catch-line:nth-of-type(2) { transition-delay: 0.45s; }

.vision-anim.is-inview .vision__catch-line {
  opacity: 1;
  transform: none;
}

/* reduced-motion：出現系はすべて即時表示（二重の安全策。JS側でも付与しない） */
@media (prefers-reduced-motion: reduce) {
  .vision-anim .vision__catch-line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vision-anim .vision__en::before {
    width: 28px;
    transition: none;
  }
}

/* ============================================================
   VOICE 手紙風（共通部品・2026-07-26 フェーズE追加タスク）
   junior.html / junior-youth.html の「保護者さまの声」で使用。
   旧 .voice-grid / .voice-card（写真カード型）はページCSSから削除済み。
   注意：__body の line-height 30px と背景罫線の周期 30px は同期が前提。
   どちらかを変えるときは必ず両方を合わせること。
   ============================================================ */
.voice-letters {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.voice-letter {
  width: min(100%, 780px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
  padding: 34px 42px 26px;
}

/* 便箋を机に置いたような互い違いの配置（羅列感の回避） */
.voice-letter:nth-child(even) { align-self: flex-end; }

/* 便箋の頭：LETTER番号＋右へ伸びるヘアライン（レターヘッドの罫線） */
.voice-letter__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.voice-letter__no {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.voice-letter__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 本文：行の下に極薄の罫線＝便箋。line-height 30px と罫線周期 30px を一致させる */
.voice-letter__body {
  font-size: 15px;
  line-height: 30px;
  letter-spacing: 0.02em;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 29px,
    rgba(0, 84, 167, 0.10) 29px 30px
  );
}

/* 結び：ヘアラインの上に署名（立場タグ＋保護者さま） */
.voice-letter__sign {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.voice-tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(0, 84, 167, 0.08);
  color: var(--primary);
}

.voice-letter__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 767px) {
  .voice-letters { gap: 20px; }

  .voice-letter {
    width: 100%;
    align-self: auto !important; /* 基底の:nth-child(even)より優先（モック準拠） */
    padding: 24px 20px 20px;
  }

  .voice-letter__head { margin-bottom: 14px; }

  .voice-letter__sign { margin-top: 16px; }
}

/* SPのNEWSフィルター：1行のまま横スクロール */
@media (max-width: 767px) {
  .news-tabs {
    padding-bottom: 0;
  }

  .news-tab {
    padding-inline: 11px;
    font-size: 11px;
  }

  .news-tab::after {
    right: 11px;
    left: 11px;
  }
}
