@charset "UTF-8";
/* ==========================================================================
   鳥取市テニス協会 公式サイト
   design.md v3.1 / プロトタイプ 3a を実装したスタイルシート
   目次
     01. トークン / リセット
     02. レイアウト（コンテナ・セクション・ゴーストテキスト）
     03. タイポグラフィ・セクション見出し
     04. ボタン・バッジ・矢印
     05. アニメーション
     06. ヘッダー / モバイルナビ / 通知バー
     07. ヒーロー
     08. 大会カルーセル
     09. お知らせリスト
     10. 大会カレンダー
     11. リンク集（マーキー）
     12. コート案内
     13. CTA / フッター
     14. 下層ページ（ページヘッダー・パネル・表・タブ・チップ・フォーム）
   ========================================================================== */

/* ============ 01. トークン / リセット ============ */
:root {
  --red: #D8232A;
  --red-dark: #B31C22;
  --red-tint: #FCEDEE;
  --ink: #1A1A1A;
  --gray-800: #3D3D3D;
  --gray-600: #5A5A5A;
  --gray-500: #6E6E6E;
  --gray-300: #C9C9C9;
  --gray-200: #E5E5E5;
  --gray-100: #F2F2F2;
  --gray-050: #F8F8F8;
  --white: #FFFFFF;

  /* 背景の大きな英字（.ghost）専用の色。全体を同じ濃さで塗るため、
     見出しや本文（--ink）に読みづらさが出ない範囲でいちばん濃いところに置いている。
     地の色が違うぶん、グレー地のセクションでは一段濃くして見え方を揃える。 */
  --ghost: #E2E2E2;
  --ghost-on-gray: #DBDBDB;

  --fjp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --flt: "Barlow", system-ui, -apple-system, sans-serif;
  /* 見出し用。幾何学的で字幅の広いサンセリフ（字間を広めに取って使う） */
  --fdisp: "Jost", "Barlow", system-ui, -apple-system, sans-serif;

  --shadow-hover: 0 6px 20px rgba(26, 26, 26, .10);

  /* 枠の角の丸み。サイトの枠（カード・ボタン・バッジ・チップなど）は、ほぼ四角で隅だけ少し丸めたこの値にそろえる */
  --radius: 4px;

  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: 20px;

  --header-h: 76px;  /* スマホ・タブレット：64px のヘッダーの上に 12px の余白を足した高さ（.site-header__inner の padding-top） */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* 見出しの塗り替え（グレー → 黒）の時間。
     グレーの文字が出てから 0.1秒 はそのまま置き、そこから 0.9秒 かけて
     細い白のスラッシュ（/）が左から右へ走り、通ったところが黒くなる。
     合計 1.0秒。@keyframes 側の「待つ」位置がちょうど 0.1秒 にあたるので、
     時間を変えるときは --sweep-dur と keyframes の百分率をそろえて直すこと。
     （--sweep-ease は var(--ease) より減速がゆるく、境目が一定の速さで
       行き渡って見える曲線。--ease だと一瞬で走り抜けてしまう） */
  --sweep-dur: 1.0s;
  --sweep-ease: cubic-bezier(.45, .05, .4, 1);

  /* 走らせる白いスラッシュそのもの。「黒｜グレー」の帯の上に重ねる一枚で、
     境目（42%）に細い白の芯を置き、その両側をだんだん薄くして光らせている。
     背景は 300% に伸ばして使うので、ここでの 1% は文字の幅の 3% にあたる。
     芯は 0.3%（＝文字の幅の約 0.9%）で、髪の毛ほどの細さになる。
     帯と同じ大きさ・同じ位置に敷くので、流すと境目と一緒に動く。
     角度（--slash-deg）は帯と共通。真横（90deg）から 16度 倒してあるので、
     文字の上では下から上へ右に流れる「/」の形で通り過ぎて見える。 */
  --slash-deg: 106deg;
  --slash: linear-gradient(var(--slash-deg),
    rgba(255, 255, 255, 0) 41.0%,
    rgba(255, 255, 255, .30) 41.45%,
    rgba(255, 255, 255, .92) 41.85%,
    #FFFFFF 42%,
    rgba(255, 255, 255, .92) 42.15%,
    rgba(255, 255, 255, .30) 42.55%,
    rgba(255, 255, 255, 0) 43.0%);
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  font-family: var(--fjp);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ---- 押したときの手ごたえ ----
   端末まかせの青い網掛けはやめ、押した所へ赤い雫が落ちて波紋が広がるように出す。
   波紋は main.js が押された要素の中に1枚だけ差し込み、終わったら取り除く。 */
* { -webkit-tap-highlight-color: transparent; }
.ripple-host { overflow: hidden; }
/* すでに position が付いている要素に relative を上書きすると位置が壊れるので、
   static のものにだけ main.js が --rel を足す。 */
.ripple-host--rel { position: relative; }
.ripple {
  position: absolute;
  top: 0; left: 0;
  width: var(--r, 24px);
  height: var(--r, 24px);
  margin: calc(var(--r, 24px) / -2) 0 0 calc(var(--r, 24px) / -2);
  translate: var(--x, 0) var(--y, 0);
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 2;
  animation: ripple .62s cubic-bezier(.22, .61, .36, 1) forwards;
}
/* 濃い地の上（赤いボタン・大会カード・フッター）では白い波紋にする */
.btn--primary .ripple,
.header-contact .ripple,
.tcard .ripple,
.site-footer .ripple,
.circle-btn--solid .ripple { background: #fff; }
@media (prefers-reduced-motion: reduce) { .ripple { display: none; } }

/* 文字に添えるアイコン。色は周りの文字から継ぐ。 */
.ico { display: inline-block; flex: none; vertical-align: -.14em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font: 700 14px/1 var(--fjp);
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ============ 02. レイアウト ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

/* --sec-pt / --head-half は背景の大きな英字（.ghost）の位置決めに使う。
   --sec-pt   … セクション上端から見出しの先頭までの距離
   --head-half … 見出し2行（赤い英語＋日本語）を合わせた高さの半分
   この2つを足した位置＝見出しの中心に、.ghost の中心を合わせる。 */
.section {
  position: relative;
  padding-block: 64px;
  /* overflow: hidden は position:sticky を殺す（スクロールコンテナになるため）。
     clip は切り抜くだけでスクロールコンテナを作らないので、見出しの追従が生きる。
     clip 非対応の古いブラウザには hidden が残る（追従しないだけで崩れない）。 */
  overflow: hidden;
  --sec-pt: 64px;
  --head-half: calc((13px * 1.4 + 8px + 26px * 1.4) / 2);
}
@media (min-width: 640px) {
  .section {
    padding-block: 88px;
    --sec-pt: 88px;
    --head-half: calc((13px * 1.4 + 8px + 30px * 1.4) / 2);
  }
}
@media (min-width: 1024px) {
  .section {
    padding-block: 112px;
    --sec-pt: 112px;
    --head-half: calc((13px * 1.4 + 8px + 34px * 1.4) / 2);
  }
}

/* ヒーローの直後は、ボタンから次の見出しまでが空きすぎるので上を詰める
   （背景の大きな英字が切れない分だけは残す）。 */
.hero + .section { padding-top: 48px; --sec-pt: 48px; }
@media (min-width: 640px) { .hero + .section { padding-top: 56px; --sec-pt: 56px; } }
@media (min-width: 1024px) { .hero + .section { padding-top: 64px; --sec-pt: 64px; } }

.section--gray { background: var(--gray-050); }
/* グレーの区画と白の区画の境目は、くっきり分けずにグラデーションでつなぐ。
   次の区画の上端に、前の区画の地の色から透明へのぼかしを敷く（中身より後ろ。isolation で区画の地より前・中身より後ろに置く） */
.section--gray + .section:not(.section--gray),
.section:not(.section--gray) + .section--gray { isolation: isolate; }
.section--gray + .section:not(.section--gray)::before,
.section:not(.section--gray) + .section--gray::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 120px;
  background: linear-gradient(var(--fade-from), rgba(255, 255, 255, 0));
  z-index: -1;
  pointer-events: none;
}
.section--gray + .section:not(.section--gray) { --fade-from: var(--gray-050); }
.section--cards + .section:not(.section--gray) { --fade-from: var(--gray-100); }
.section:not(.section--gray) + .section--gray { --fade-from: var(--white); }
/* ヒーロー（下端は白）→ 大会情報（グレー）も同じくつなぐ。止める区画（.is-hpin）の .hpin の地は透明にして、区画の地とぼかしを見せる */
.hero + .section--gray { isolation: isolate; --fade-from: var(--white); }
.hero + .section--gray::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 120px;
  background: linear-gradient(var(--fade-from), rgba(255, 255, 255, 0));
  z-index: -1;
  pointer-events: none;
}
@media (min-width: 1024px) { .hero + .section--gray::before { height: 160px; } }
@media (min-width: 1024px) {
  .section--gray + .section:not(.section--gray)::before,
  .section:not(.section--gray) + .section--gray::before { height: 160px; }
}
/* お知らせは上を詰める。ただし見出しの中心に合わせた大きな英字が
   セクション上端からはみ出して切れない分だけは残しておく。 */
.section--flush-top { padding-top: 8px; --sec-pt: 8px; }
@media (min-width: 640px) { .section--flush-top { padding-top: 16px; --sec-pt: 16px; } }
@media (min-width: 1024px) { .section--flush-top { padding-top: 40px; --sec-pt: 40px; } }
.section--tight-bottom { padding-bottom: 48px; }
@media (min-width: 1024px) {
  .section--tight-bottom { padding-bottom: 96px; }
}

/* 背景の大きな英字（TOURNAMENT / NEWS ...） */
.ghost {
  position: absolute;
  right: -8px;
  /* 赤い英語見出しと日本語見出しを合わせた中心に、この文字の中心を合わせる。
     自身の高さの半分は transform で戻す（top には自身基準の % が使えないため）。 */
  top: calc(var(--sec-pt) + var(--head-half));
  transform: translateY(-50%);
  /* position 指定があるため、そのままだと static な本文より前面に描画され、
     見出し行右側（VIEW ALL・カルーセル操作）を覆ってしまう。背面に固定する。 */
  z-index: 0;
  font: 700 clamp(52px, 11vw, 148px)/1 var(--flt);
  letter-spacing: .02em;
  color: var(--ghost);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  /* 文字を横切る細い帯を等間隔に切り抜き、「何度もなでた」跡をつくる
     （9% ごとに繰り返すので、文字の高さの中に7本前後の横線が入る）。
     濃さは color 側で一定に保ち、端を薄くはしない。 */
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 7.6%, transparent 7.6% 9%);
  mask-image: repeating-linear-gradient(180deg, #000 0 7.6%, transparent 7.6% 9%);
}
@supports (overflow: clip) {
  .section, .page-head { overflow: clip; }
}

/* 本文は必ず .ghost より前面に置く */
.section > .container { position: relative; z-index: 1; }
.section--gray .ghost,
.page-head .ghost { color: var(--ghost-on-gray); }

/* 装飾の輪（大会カレンダー） */
.deco-circle {
  position: absolute;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  pointer-events: none;
}
.deco-circle--a { left: -240px; bottom: -1560px; width: 1800px; height: 1800px; }
.deco-circle--b { right: -320px; top: -1600px; width: 1800px; height: 1800px; }
@media (max-width: 639px) { .deco-circle { display: none; } }

/* 2カラム（リスト 5 : 埋め込み 7） */
/* 列は minmax(0, …) にして、中身（横にスクロールする地図のタブなど）の幅で列が広がらないようにする */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}
.split > * { min-width: 0; }
/* お問い合わせの LINE 公式アカウント。LINE の色（緑）で塗りつぶした札 */
.line-badge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: #06C755;
  color: #fff;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.line-badge:hover { background: #05B34C; color: #fff; }
@media (hover: hover) { .line-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6, 199, 85, .3); } }
.line-badge__title { font: 700 17px/1.4 var(--fjp); letter-spacing: .04em; }
.line-badge__text { font: 400 14px/1.8 var(--fjp); opacity: .95; }
.line-badge__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: #06C755;
  font: 700 14px/1 var(--fjp);
  letter-spacing: .04em;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-top: 48px; }
  /* 本文が広い側（フォームなど）を左に置く場合 */
  .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ============ 03. 見出し ============ */
/* 見出しの型（全ページ共通）：
     ■ ENGLISH        ← 赤い四角と英語を同じ行に
     日本語の見出し    ← その下に太字。左端は赤い四角にそろえる
   markup は 四角 ＋ div（英語, 日本語）のまま。div を display: contents にして、grid で並べ替えている。 */
.sec-head { position: relative; }
.sec-head__row { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; row-gap: 6px; align-items: center; }
.sec-head__row > div { display: contents; }
/* 英語・日本語の見出しは文字の幅だけの箱にする（全画面へ移す写しが、文字の幅のまま動くように） */
.sec-head__row > div > .sec-head__eyebrow, .sec-head__row > div > .sec-head__title { justify-self: start; }
.sec-head__mark {
  flex: none;
  width: 14px; height: 14px;
  background: var(--red);
}
.sec-head__eyebrow {
  margin: 0;
  font: 700 13px/1.2 var(--flt);
  letter-spacing: .12em;
  color: var(--red);
  text-transform: uppercase;
}
.sec-head__title {
  grid-column: 1 / -1;
  margin: 0;
  font: 700 26px/1.4 var(--fjp);
  letter-spacing: .04em;
  color: var(--ink);
}
@media (min-width: 640px) { .sec-head__title { font-size: 30px; } }
@media (min-width: 1024px) { .sec-head__title { font-size: 34px; } }

.sec-head__lead {
  margin: 24px 0 0;
  max-width: 40em;
  font: 400 15px/2 var(--fjp);
  letter-spacing: .03em;
  color: var(--gray-800);
}

/* 見出し行（上：見出し／下：VIEW ALL など）。
   画面幅にかかわらず、見出しのすぐ下に置く。 */
.sec-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 1024px) { .sec-bar { gap: 20px; } }
.sec-hint { margin: 14px 0 0; }
/* 区画の下の右端に置く VIEW ALL（トップの大会情報：カードの下） */
.sec-more { display: flex; justify-content: flex-end; margin-top: 20px; }
/* 地図の中の右上に置く VIEW ALL（トップのコート案内。CourtMap の viewAll） */
.cmap__viewall { position: absolute; top: 14px; right: 14px; z-index: 1000; box-shadow: 0 1px 6px rgba(26, 26, 26, .12); }

.hint {
  font: 500 13px/1.4 var(--fjp);
  letter-spacing: .02em;
  color: var(--gray-500);
}
.note {
  margin: 16px 0 0;
  font: 400 12px/1.6 var(--fjp);
  color: var(--gray-500);
}

/* ============ 04. ボタン・バッジ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 54px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font: 700 15px/1 var(--fjp);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
@media (min-width: 640px) { .btn { width: auto; } }

.btn--primary { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--primary:hover .aw { transform: translateX(4px); }
/* ボタンの矢印は SCROLL と同じ線の矢印（.ln-arrow）。文字の下端（ベースライン）の高さにそろえ、ホバーで少し右へ */
.btn .ln-arrow { position: relative; top: .32em; transition: transform .3s ease; }
.btn:hover .ln-arrow { transform: translateX(4px); }

.btn--outline { background: var(--white); color: var(--ink); border: 1px solid var(--gray-300); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }

.btn-stack {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
@media (min-width: 640px) { .btn-stack { align-items: flex-start; } }

/* テキストリンク（→つき） */
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 14px/1 var(--fjp);
  color: var(--ink);
  cursor: pointer;
  transition: color .3s ease;
}
.ghost-link:hover .aw { transform: translateX(4px); }
.ghost-link:hover .sqbtn { background: var(--red); border-color: var(--red); color: #fff; }
.ghost-link .aw { color: var(--red); }

/* VIEW ALL：枠の中に「VIEW ALL ——\」を収めたバッジ。枠・文字・矢印は赤、矢印（.ln-arrow）は文字の下端にそろえる。ホバーで赤く塗る */
.view-all {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--red);
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.view-all__label {
  font: 700 12px/1 var(--flt);
  letter-spacing: .12em;
}
.view-all .ln-arrow { width: 22px; transition: transform .3s ease; }
.view-all:hover { background: var(--red); border-color: var(--red); color: #fff; }
.view-all:hover .ln-arrow { transform: translateX(3px); }

.sqbtn {
  flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.circle-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.circle-btn:hover { border-color: var(--red); color: var(--red); }
.circle-btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.circle-btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.aw, .ar { display: inline-block; transition: transform .3s ease; }

/* バッジ（design.md 2.3 の統一ルール） */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius);
  font: 700 12px/1 var(--fjp);
  letter-spacing: .06em;
  white-space: nowrap;
}
.badge--open { background: var(--red); color: #fff; }          /* 受付中 */
.badge--muted { background: var(--gray-600); color: #fff; }    /* 終了・まもなく受付 */
.badge--closed { background: var(--red-tint); color: var(--red); box-shadow: inset 0 0 0 1px rgba(216, 35, 42, .35); }  /* 受付終了（薄い赤。開催前の大会の枠と同じ系統） */
.badge--outline { border: 1px solid var(--red); color: var(--red); }
.badge--tint { background: var(--red-tint); color: var(--red-dark); }
.badge--light { background: #D99A00; color: #fff; }           /* 夜間照明（濃いめの黄色に白文字） */
/* 画像のバッジ（コートのサーフェス。public/assets/img/badges/）。高さを文字のバッジにそろえ、幅は画像の比率のまま */
.badge--img { padding: 0; min-width: 0; width: auto; height: 26px; border: 0; background: none; border-radius: var(--radius); object-fit: contain; }

/* ============ 05. アニメーション ============ */
@keyframes fadeup { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineup { from { transform: translateY(112%); } to { transform: none; } }
@keyframes phrev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
/* 押した所に落ちた雫が、水面に広がって消えていく */
@keyframes ripple {
  0%   { opacity: .38; scale: 0; }
  100% { opacity: 0; scale: 1; }
}
/* 2週間以内のお知らせに付く NEW。静かに脈を打たせて目に留める。 */
@keyframes news-new {
  0%, 100% { opacity: 1; transform: none; }
  50%      { opacity: .45; transform: scale(.92); }
}
/* 全画面の一覧（お知らせ #news-all・コート案内 #court-all・大会情報 #tournaments-all）の項目。
   モバイルメニューと同じ動き：項目は見出しの下に重ねて隠してあり、開くと上から順に滑り出して位置につく。
   上の項目ほど手前（z-index）なので、遅れて出る下の項目は上の項目の裏から出てくるように見える。
   出だしは速く、位置につく手前で減速（強めのイーズアウト）。順番の間隔はメニューと同じ緩急
   （上ほど広くゆっくり、下へ行くほど詰まって速く。遅れは (2t - t²) × .3s）で、全体 .5s ほど。
   件数が多い一覧（お知らせは100件超）では、11件目以降はまとめて最後の遅れで出す（--k で頭打ち）。
   閉じるとき（.is-closing）は順番が逆で、下から順に、下ほどゆっくり・上へ行くほど速く見出しの下へ戻る（動きは開くときと同じく、出だしが速く終わりがゆっくり）。
   開くたびに動きを流し直すのは main.js の initFullPanel（style に --i を持つ要素の animation を付け直す）。 */
.panel-item {
  --k: min(var(--i, 0), 10);
  --t: calc(var(--k) / 10);   /* 上から 0〜1（11件目以降は 1） */
  --tc: calc(1 - var(--t));   /* 下から 0〜1 */
  position: relative;
  z-index: calc(200 - min(var(--i, 0), 199));
  background: var(--white);
  /* 開くとき：メニューと同じ緩急。上の項目ほど間隔が広くゆっくり（.45s）、下へ行くほど詰まって速く（.25s）。
     自分の番が来るまでは見せない（panel-hold。11件目以降は同じ高さに重ねてあるので、待っているあいだ上の行の位置に見えてしまう） */
  animation: panel-item-in calc(.45s - .2s * var(--t)) cubic-bezier(.16, 1, .3, 1) both, panel-hold 1ms step-end both;
  animation-delay: calc((2 * var(--t) - var(--t) * var(--t)) * .3s);
}
@keyframes panel-hold { from { visibility: hidden; } to { visibility: visible; } }
.is-closing .panel-item {
  /* 閉じるとき：下の項目から順に。下ほど間隔が広くゆっくり（.35s）、上へ行くほど詰まって速く（.2s） */
  animation: panel-item-out calc(.35s - .15s * var(--tc)) cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc((2 * var(--tc) - var(--tc) * var(--tc)) * .2s);
}
/* 透明度は変えない（見出しの裏と画面の上端で隠れる）。半透明にすると裏の項目の文字が透けて重なり、ぼやけて見える */
@keyframes panel-item-in {
  from { transform: translateY(calc((100% + 1px) * -1 * (var(--k) + 1) - 40px)); }
  to   { transform: none; }
}
@keyframes panel-item-out {
  from { transform: none; }
  to   { transform: translateY(calc((100% + 1px) * -1 * (var(--k) + 1) - 40px)); }
}
/* お知らせ・コート案内の全画面：節の見出し（News／お知らせ）だけが、トップのその場所から画面の上部へ滑らかに移り
   （同一ページのビュートランジション。main.js の initFullPanel が見出しに view-transition-name: panel-title を付ける）、
   そのあと行がメニューと同じく見出しの下から順に出る。行の滑り出しは見出しが移り終わる .35s ぶん遅らせる */
.news-all.is-vt:not(.is-closing) .panel-item { animation-delay: calc((2 * var(--t) - var(--t) * var(--t)) * .3s + .35s); }
::view-transition-group(panel-title), ::view-transition-group(panel-eyebrow) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); z-index: 5; }
::view-transition-old(panel-title), ::view-transition-new(panel-title),
::view-transition-old(panel-eyebrow), ::view-transition-new(panel-eyebrow) { animation-duration: .45s; }
/* 項目の重なり（z-index）を一覧の中に閉じ込め、追従する見出し（z-index:1）より常に下にする */
.news-all__body .news-list, .news-all__body .sch-list, .tall__list { isolation: isolate; }
/* 見出しと最初の項目のあいだの余白も見出しと同じ白で覆う（下の項目がここを通り過ぎる一瞬に文字が見えないように）。
   余白の高さ：お知らせ・コート案内は 8px（.news-all__body の一覧の margin-top）、大会情報は 28px（.tall__body の padding-top） */
.news-all__head::after, .tall__head::after {
  content: '';
  position: absolute;
  top: calc(100% + 1px); left: 0; right: 0; /* 見出しの下線（1px）の下から */
  height: 8px;
  background: var(--white);
  pointer-events: none;
}
.tall__head::after { height: 28px; }
/* お知らせの全画面（#news-all）だけは、行が下から浮き上がって順に出る（見出しの裏から滑り出すのではなく）。
   上の行から 45ms ずつずらす（11件目以降はまとめて）。閉じるときは下の行から順に、少し沈みながら消える */
#news-all .panel-item {
  animation: news-rise .55s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--k) * 45ms);
}
#news-all.is-vt:not(.is-closing) .panel-item { animation-delay: calc(var(--k) * 45ms + .35s); }
#news-all.is-closing .panel-item {
  animation: news-sink .3s cubic-bezier(.4, 0, 1, 1) both;
  animation-delay: calc(var(--tc) * 120ms);
}
@keyframes news-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes news-sink { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .panel-item, .is-closing .panel-item, #news-all .panel-item, #news-all.is-closing .panel-item { animation: none; } }

/* 見出しの塗り替え。薄いグレーで出しきってから 0.1秒 そのまま置き、
   残りの 0.9秒 で白いスラッシュが左から右へ走り、通ったところが黒くなる。
   ここは自分で出るところ（0→12%）も持っているので、グレーが出そろうのは 12%。
   そこから 0.1秒（＝22%）まで待って走り出す。
   72% は文字全体がグレー（キャッチコピーは赤）に収まる位置、
   6% は全体が黒に収まる位置。0→100% で振ると前後に境目の見えない間ができ、
   走っている時間が半分になってしまう。 */
@keyframes sweep-hold {
  0%   { opacity: 0; background-position: 72% 0; }
  12%  { opacity: 1; background-position: 72% 0; }
  22%  { opacity: 1; background-position: 72% 0; }
  100% { opacity: 1; background-position: 6% 0; }
}
/* 上と同じ動きの、透明度を触らない版（見出しの出方は .rv / .fu 側に任せる）。
   出るところを持たないぶん、待つのは頭から 0.1秒（＝10%）だけ。 */
@keyframes title-slash {
  0%   { background-position: 72% 0; }
  10%  { background-position: 72% 0; }
  100% { background-position: 6% 0; }
}
/* キャッチコピー用。待つ間を持たず、出たらすぐ境目が走りきる。 */
@keyframes pb-slash {
  from { background-position: 72% 0; }
  to   { background-position: 6% 0; }
}
/* 出るところ。字間を開いた状態から詰めつつ、左から右へ拭うように現れる。 */
@keyframes pb-in {
  0%   { opacity: 0; letter-spacing: .2em; clip-path: inset(0 100% 0 0); }
  18%  { opacity: 1; }
  100% { opacity: 1; letter-spacing: .06em; clip-path: inset(0 -.12em 0 0); }
}
/* 英字（TOTTORI-CITY…）：小さく出て → 少し大きく → 通常の大きさへ */
@keyframes en-in {
  0%   { opacity: 0; transform: scale(.45); }
  35%  { opacity: 1; }
  62%  { transform: scale(1.22); }
  100% { opacity: 1; transform: none; }
}



.fu { animation: fadeup .8s var(--ease) both; }
.hl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hl > span { display: inline-block; transform: translateY(112%); animation: lineup 1s var(--ease) forwards; }
/* 写真の払い。キャッチコピーが写真の上に乗るときには終わっているようにする */
.phv { animation: phrev .6s var(--ease) both; }
.blink { animation: blink 2.4s ease-in-out infinite; }

/* スクロール連動リビール（JS が body.jsrv を付与） */
body.jsrv .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
body.jsrv .rv.on { opacity: 1; transform: none; }
/* まとまりの中の1枚ずつ（main.js の RV_ITEMS）。画面に入ったら、下から少し浮き上がって出る。
   出たあとは遅れ（--rvi）を外し、ホバーの動きまで遅れないようにする（.on のときは delay 0 の transition に戻す） */
body.jsrv .rv-in:not(.on) { opacity: 0; transform: translateY(20px); }
body.jsrv .rv-in.on { animation: rv-in-up .6s var(--ease) calc(var(--rvi, 0) * 70ms) both; }
@keyframes rv-in-up { from { opacity: 0; transform: translateY(20px); } }
/* 現れるブロックの中の写真は、少し小さい状態（.92倍）から等倍へ広がる（ズームイン）。
   .rv の浮き上がりが始まってから .2s 遅れて動き出し、最初は速く・最後はゆっくり（cubic-bezier(.16,1,.3,1)）.9s で収まる。
   transition ではなく animation にしてあるのは、終わったあとホバーの拡大（scale 1.04）の transition をそのまま効かせるため
   （fill は backwards：待っているあいだは .92 倍のまま、終わったら通常の規則に戻る）。
   入れ物（.sheet / .gallery__item / .court-item__photo / .cfac__hero / .link-card）は overflow: hidden。
   動きを減らす設定では .jsrv が付かないので動かない。 */
body.jsrv .rv:not(.on) .sheet img,
body.jsrv .rv:not(.on) .gallery__item img,
body.jsrv .rv:not(.on) .court-item__photo img,
body.jsrv .rv:not(.on) .cfac__hero-link img,
body.jsrv .rv:not(.on) .link-card__banner { transform: scale(.92); }
body.jsrv .rv.on .sheet img,
body.jsrv .rv.on .gallery__item img,
body.jsrv .rv.on .court-item__photo img,
body.jsrv .rv.on .cfac__hero-link img,
body.jsrv .rv.on .link-card__banner { animation: rv-zoom .9s cubic-bezier(.16, 1, .3, 1) .2s backwards; }
@keyframes rv-zoom { from { transform: scale(.92); } to { transform: none; } }

/* 大きな英字は右からスライドインさせる（.section / .page-head は overflow:hidden なので
   画面外へはみ出さずに、横スワイプのように入ってくる）。
   見出しや本文より少し遅れて出てくるよう、transition-delay で間を置く。
   translateY(-50%) は見出しの中心に合わせるためのもので、常に効かせたままにする。 */
body.jsrv .ghost {
  opacity: 0;
  transform: translate(15%, -50%);
  transition: opacity .8s var(--ease) .3s, transform 1.15s var(--ease) .3s;
}
body.jsrv .ghost.on { opacity: 1; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    /* 遅らせたままだと、動きを消しても「出てくるまで待たされる」ことに変わりがない。
       負の遅延で最初から終わった状態にする。 */
    animation-delay: -1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 06. ヘッダー ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  /* 本文との境目に薄く細い黒線を引く（帯の白と地の白を分ける） */
  border-bottom: 1px solid rgba(26, 26, 26, .20);
  transition: transform .35s var(--ease), box-shadow .3s ease;
}
/* 下へ読み進めているあいだは引っ込め、上へ戻したら出す。
   ページ上部と、モバイルメニューを開いているあいだは常に出しておく。 */
.site-header--hidden { transform: translateY(-100%); }
/* 本文の上に重なるので、少しスクロールしたら影をつけて浮かせる */
.site-header.hsh { box-shadow: 0 1px 12px rgba(26, 26, 26, .10); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: box-shadow .3s ease; }
}

/* 位置指定はしない：右上の赤ブロックは .site-header（画面幅）を基準にする */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { height: 46px; width: auto; }  /* 透過ロゴ（余白なし）。スマホ・タブレットは 46px（以前の 31px の 1.5 倍） */
@media (min-width: 1024px) { .site-header__logo img { height: 40px; } }

/* スマホ・タブレット（〜1023px）：ヘッダーの帯（白地・下線・影）を出さず、透過のロゴとメニューのボタンだけを
   画面上部に浮かせて固定する（スクロールしても引っ込めない）。ページの先頭（灰色の帯 .page-head ／トップの写真 .hero ／
   重要なお知らせ .notice-bar）はヘッダーの高さぶん上へ伸ばし、ロゴの裏まで同じ下地にする。
   ロゴとボタンには白いにじみをごく薄く付け、写真の上でも読めるようにする。帯の空いたところは押しても下に通す */
@media (max-width: 1023px) {
  .site-header {
    margin-bottom: calc(-1 * var(--header-h));
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    pointer-events: none;
  }
  .site-header.hsh { box-shadow: none; }
  .site-header--hidden { transform: none; }
  /* 画面の上端とロゴ・ボタンのあいだに少し余白を取る（その分 --header-h を 12px 高くしてある） */
  .site-header__inner { padding-top: 12px; }
  .site-header__logo, .site-header .hamburger { pointer-events: auto; }
  .site-header__logo img, .site-header .hamburger {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 0 5px rgba(255, 255, 255, .55));
  }
  /* ページの先頭をヘッダーの高さぶん伸ばす指定は、.page-head / .hero の定義より後ろ（ファイルの最後）に置く */
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 28px; }
}
@media (min-width: 1200px) { .nav { gap: 36px; } }

.nav__link {
  position: relative;
  padding: 6px 0 12px;
  font: 500 15px/1 var(--fjp);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.nav__link--en { font: 600 14px/1 var(--flt); letter-spacing: .08em; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 2px;
  height: 2px;
  background: var(--red);
  transition: left .3s ease, right .3s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { left: 0; right: 0; }
.nav__link:hover { color: var(--ink); }

/* 重要なお知らせの帯（中止・延期）。ヘッダーの直下に赤で出す。 */
.notice-bar { background: var(--red); color: #fff; }
.notice-bar__inner { display: flex; align-items: flex-start; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.notice-bar__label {
  flex: none;
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .8);
  font: 700 11px/1 var(--fjp);
  letter-spacing: .12em;
}
.notice-bar__list { list-style: none; margin: 0; padding: 0; min-width: 0; display: grid; gap: 4px; }
.notice-bar__link { display: flex; gap: 10px; align-items: baseline; color: #fff; font: 700 14px/1.6 var(--fjp); }
.notice-bar__link:hover { color: #fff; text-decoration: underline; }
.notice-bar__date { flex: none; font: 600 12px/1.6 var(--flt); letter-spacing: .06em; opacity: .85; }
.notice-bar__title { min-width: 0; }

/* 画面右上の赤ブロック（お問い合わせ） */
.header-contact {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 160px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font: 700 15px/1 var(--fjp);
  letter-spacing: .04em;
  transition: background .3s ease;
}
.header-contact:hover { background: var(--red-dark); color: #fff; }
@media (min-width: 1024px) {
  .header-contact { display: inline-flex; }
  /* 赤ブロックは画面右端に貼り付くため、ナビはコンテナ幅ではなく
     「画面右端から 160px（ブロック幅）＋24px（余白）」の位置で止める */
  .site-header__inner {
    padding-right: max(var(--gutter), calc(184px - max(0px, (100vw - var(--container-max)) / 2)));
  }
}

/* ハンバーガー */
.hamburger {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.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); }

/* ============ スマホのメニュー（フッターと同じ黒地のデザイン） ============
   開く：黒地（フッターと同じ地の黒＋漂う四角）が画面の下からせり上がって画面を覆う。
         黒地が上端に届くころ、ヘッダーのロゴとメニューのボタンを白に切り替える（.site-header.is-menu）。
         覆い終わってから、各行の文字がそれぞれの下線（見えない線＝文字の下端）の下から順に出てくる。
         行の区切り線（フッターと同じ細い線）は、文字より少し先に左から引く。
   閉じる：文字が下線の下へ一斉に沈み、続けて黒地が下へ下がって元のページが上から見えてくる（出だしは速く、最後はゆっくり）。
   四角は止まっているときも漂い（フッターと同じ）、開くときは手前の大きな四角ほど下から遅れて追いつく。
   行の順番は --i（2列なので左→右、上→下の順。MobileNav.astro が付ける）。 */
.mobile-nav {
  --mn-up: .6s;                                 /* 黒地がせり上がる時間 */
  --mn-up-ease: cubic-bezier(.65, 0, .25, 1);   /* 滑らかに動き出して、滑らかに止まる */
  --mn-down: .5s;                               /* 黒地が下がる時間（閉じる）。main.js も閉じ終わりの時間の計算に使う */
  --mn-down-delay: .12s;                        /* 文字が沈むのを待ってから黒地を下げる */
  --mn-down-ease: cubic-bezier(.25, .8, .3, 1); /* 速く動き出して、最後はゆっくり */
  --mn-step: .045s;                             /* 文字が出る順番の間隔 */
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #262626;  /* フッター（--ink）よりわずかにグレーに寄せた地 */
  color: #fff;
  /* 上の余白はヘッダーの下端まで（main.js が通知バーの有無に合わせて上書きする） */
  padding: var(--header-h) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  /* 行は上から並べ、SNS と著作権の表記（.mobile-nav__foot）は下端に寄せる */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  /* 閉じているあいだは、上端を画面の下端まで下げて隠しておく */
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--mn-down) var(--mn-down-ease) var(--mn-down-delay),
    visibility 0s linear calc(var(--mn-down-delay) + var(--mn-down));
}
.mobile-nav.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path var(--mn-up) var(--mn-up-ease), visibility 0s;
}
@media (min-width: 1024px) { .mobile-nav { display: none; } }
/* 地をグレーに寄せた分、四角（フッターと同じ黒に近い色）は薄めて、地との差を控えめにする */
.mobile-nav__deco { opacity: .45; }
/* 漂う四角（DecoSquares.astro。フッターと共用）。開くとき、大きい（手前の）四角ほど下から遅れて追いつく */
.mobile-nav__deco .footer-dot {
  translate: 0 calc(var(--depth, .5) * 140px);
  transition: translate .3s ease var(--mn-down-delay);
}
.mobile-nav.is-open .mobile-nav__deco .footer-dot {
  translate: none;
  transition: translate 1s cubic-bezier(.16, 1, .3, 1);
}
.mobile-nav__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  padding-top: 40px;  /* ヘッダーと最初の行のあいだ */
}
/* 行（フッターの .fw--head と同じ見た目：上に細い線、白い太字） */
.mobile-nav__link {
  position: relative;
  display: block;
  padding: 18px 0 22px;
  font: 700 15px/1.4 var(--fjp);
  letter-spacing: .02em;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav__link::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .28);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
/* 文字の下端（見えない下線）で切り取り、その下から文字を出す */
.mobile-nav__tx { display: block; overflow: hidden; }
.mobile-nav__tx > span {
  display: block;
  transform: translateY(105%);
  /* 閉じるとき：一斉に沈む。色（今のページの赤 → 白）は遅れなしで変える（行を押したときに同じタイミングで戻す） */
  transition: transform .22s cubic-bezier(.5, 0, .75, 0), color .35s ease-out;
}
.mobile-nav.is-open .mobile-nav__link::before {
  transform: none;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1) calc(var(--mn-up) - .1s + var(--i, 0) * var(--mn-step));
}
.mobile-nav.is-open .mobile-nav__tx > span {
  transform: none;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) calc(var(--mn-up) + var(--i, 0) * var(--mn-step)), color .35s ease-out;
}
/* 今のページの行は赤。別の行を押したときは、押した行が赤くなるのと同じタイミングで白に戻る
   （main.js が .is-active を外す。色の transition は上の .mobile-nav__tx > span に入れてある） */
.mobile-nav__link.is-active .mobile-nav__tx > span,
.mobile-nav__link.is-tapped .mobile-nav__tx > span { color: var(--red); }
@media (hover: hover) {
  .mobile-nav__link:hover .mobile-nav__tx > span { color: var(--gray-300); }
}
/* 下端：SNS と著作権の表記（フッターと同じ）。行の文字と同じく、下端で切り取ってその下から出す */
.mobile-nav__foot { position: relative; margin-top: auto; padding-top: 40px; }
.mobile-nav__copy {
  margin-top: 20px;
  overflow: hidden;
  font: 400 12px/1.6 var(--flt);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
}
.mobile-nav__copy > span {
  display: block;
  transform: translateY(105%);
  transition: transform .22s cubic-bezier(.5, 0, .75, 0);
}
.mobile-nav.is-open .mobile-nav__copy > span {
  transform: none;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) calc(var(--mn-up) + var(--i, 0) * var(--mn-step));
}
.mobile-nav__sns .sns-list { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.mobile-nav__sns li { overflow: hidden; }
.mobile-nav__sns .sns-link {
  padding: 4px 0;
  transform: translateY(105%);
  transition: transform .22s cubic-bezier(.5, 0, .75, 0);
}
.mobile-nav.is-open .mobile-nav__sns .sns-link {
  transform: none;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) calc(var(--mn-up) + var(--i, 0) * var(--mn-step));
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav.is-open,
  .mobile-nav .footer-dot, .mobile-nav__link::before, .mobile-nav__tx > span, .mobile-nav__sns .sns-link, .mobile-nav__copy > span,
  .mobile-nav.is-open .mobile-nav__copy > span,
  .mobile-nav.is-open .footer-dot, .mobile-nav.is-open .mobile-nav__link::before,
  .mobile-nav.is-open .mobile-nav__tx > span, .mobile-nav.is-open .mobile-nav__sns .sns-link {
    transition: none;
  }
}

/* メニューを開いているあいだのヘッダー：ロゴ（白抜きを重ねる）とメニューのボタンを白にする。
   黒地が上端に届くころに切り替え、閉じるときは黒地が下がり始めたらすぐ元に戻す */
.site-header__logo { position: relative; }
.site-header__logo-w {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s ease var(--mn-down-delay, .12s);
}
@media (min-width: 1024px) { .site-header__logo-w { display: none; } }
.site-header.is-menu .site-header__logo-w { opacity: 1; transition: opacity .2s ease .4s; }
.site-header .hamburger span { transition: transform .3s var(--ease), opacity .2s ease, background-color .2s ease .12s; }
.site-header.is-menu .hamburger span { background: #fff; transition: transform .3s var(--ease), opacity .2s ease, background-color .2s ease .4s; }
@media (max-width: 1023px) {
  /* 黒地の上では白いにじみを消す（白抜きのロゴの重ね出し＝opacity も、同じ指定の中で切り替える） */
  .site-header__logo img, .site-header .hamburger { transition: filter .2s ease .12s, opacity .2s ease .12s; }
  .site-header.is-menu .site-header__logo img, .site-header.is-menu .hamburger { filter: none; transition: filter .2s ease .4s, opacity .2s ease .4s; }
}
/* スマホ・タブレット：ロゴの文字を、裏の色に合わせて黒／白に塗り分ける（重なったところだけ、その瞬間だけ白くなる）。
   文字の形（logo-cut-ink.png）で切り抜いた面に backdrop-filter を掛け、裏を白黒にしてから明暗をはっきり分け（contrast）、反転する：
   明るい地 → 黒、暗い地（赤・黒・黒い文字）→ 白。赤い四角（logo-cut-red.png）は塗り分けずに上に重ねる。
   切り抜いた面に裏をぼかす類の効果が効かないブラウザでは、これまでどおりの黒いロゴ（.site-header__logo-img）のまま */
.site-header__logo-ink, .site-header__logo-red { display: none; }
@media (max-width: 1023px) {
  @supports ((backdrop-filter: invert(1)) or (-webkit-backdrop-filter: invert(1))) and ((mask-image: none) or (-webkit-mask-image: none)) {
    .site-header__logo .site-header__logo-img { visibility: hidden; }
    .site-header__logo-ink, .site-header__logo-red { display: block; position: absolute; inset: 0; }
    .site-header__logo .site-header__logo-red { width: 100%; height: 100%; filter: none; }
    .site-header__logo-ink {
      -webkit-mask: url("../img/logo-cut-ink.png") center / 100% 100% no-repeat;
      mask: url("../img/logo-cut-ink.png") center / 100% 100% no-repeat;
      -webkit-backdrop-filter: grayscale(1) contrast(100) invert(1);
      backdrop-filter: grayscale(1) contrast(100) invert(1);
    }
    /* メニューを開いたときも白抜きの画像（.site-header__logo-w）は重ねず、この塗り分けのまま。
       せり上がる黒地の上端が通ったところから順に白へ変わる */
    .site-header .site-header__logo-w { display: none; }
    /* トップの登場の動き（PLAY BEYOND.）のあいだも塗り分けず黒いロゴのまま（main.js の initLogoInk が .is-hero-anim を付ける） */
    .site-header.is-hero-anim:not(.is-menu) .site-header__logo-img { visibility: visible; }
    .site-header.is-hero-anim:not(.is-menu) .site-header__logo-ink, .site-header.is-hero-anim:not(.is-menu) .site-header__logo-red { display: none; }
    /* 写真の上では塗り分けず、黒いロゴのまま（main.js の initLogoInk が .is-over-image を付ける） */
    .site-header.is-over-image:not(.is-menu) .site-header__logo-img { visibility: visible; }
    .site-header.is-over-image:not(.is-menu) .site-header__logo-ink, .site-header.is-over-image:not(.is-menu) .site-header__logo-red { display: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__logo-w, .site-header.is-menu .site-header__logo-w,
  .site-header .hamburger span, .site-header.is-menu .hamburger span { transition: none; }
}


/* ============ メニューからページを移るときの切り替え（ページ間ビュートランジション） ============
   対応ブラウザでは、メニューのリンクを押したあと次のページが描ける状態になるまでメニューを開いたまま待ち、
   描ける状態になったら次のページの上に前のページの「メニュー（黒地）」の写しを重ねて、
   閉じる動き（黒地が下へ下がり、次のページが上から見えてくる）を流す。
   流すかどうかは Base.astro の pageswap / pagereveal が決める（メニューから移るときだけ。それ以外は省く）。
   写しの名前（view-transition-name）は main.js がメニューを開くときに付ける：
     mn-sheet … メニュー（.mobile-nav）。ヘッダーには付けない（ロゴの塗り分けが効かなくなるため。main.js 参照）。
     ヘッダーは次のページのものがそのまま下にあり、黒地が下がるにつれて見えてくる */
@view-transition { navigation: auto; }
/* 前のページ本体はすぐ消し、次のページをそのまま出す（黒地の裏に次のページが見えている状態） */
::view-transition-old(root) { animation: none; opacity: 0; }
::view-transition-new(root) { animation: none; }
/* コート案内の行 → コート案内のページ（types: court）。押した行の写真と施設名が、そのページのその施設の写真・名前へ滑らかに移る */
::view-transition-group(court-photo), ::view-transition-group(court-name) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(court-photo), ::view-transition-new(court-photo) { animation-duration: .5s; height: 100%; object-fit: cover; overflow: hidden; }
::view-transition-old(court-name), ::view-transition-new(court-name) { animation-duration: .5s; }
::view-transition-group(court-photo) { z-index: 40; }
::view-transition-group(court-name) { z-index: 41; }
::view-transition-group(mn-sheet) { z-index: 1; animation: none; }
::view-transition-old(mn-sheet) { animation: vt-sheet-down .5s cubic-bezier(.25, .8, .3, 1) .05s both; }
/* 協会ロゴ（site-logo。Base.astro がメニューから移るときだけ付ける）は黒地より前に出して、消えないようにする。
   前のページの白いロゴ（old）を、黒地と同じ時間・緩急で上から削り（黒地の上端が通ったところから消える）、
   その下の次のページの黒いロゴ（new）を見せる。--vt-logo-from / to はロゴの上端から見た黒地の上端の位置 */
::view-transition-group(site-logo) { z-index: 2; animation: none; }
/* 重ねて足し合わせる既定の重ね方（plus-lighter）だと、黒いロゴが明るい地に溶けて見えなくなるので普通に重ねる */
::view-transition-old(site-logo), ::view-transition-new(site-logo) { mix-blend-mode: normal; }
::view-transition-old(site-logo) { z-index: 1; }  /* 既定では次のページ（new）が上なので、白いロゴを上にする */
::view-transition-new(site-logo) { animation: none; opacity: 1; }
::view-transition-old(site-logo) { animation: vt-logo-out .5s cubic-bezier(.25, .8, .3, 1) .05s both; }
@keyframes vt-logo-out {
  from { opacity: 1; clip-path: inset(var(--vt-logo-from, 0px) 0 0 0); }
  to { opacity: 1; clip-path: inset(var(--vt-logo-to, 100vh) 0 0 0); }
}
/* 写しを撮るあいだのロゴは塗り分けをやめて画像にする：前のページは白抜き、次のページは黒（赤い四角入り） */
.site-header.is-vt-logo .site-header__logo .site-header__logo-img { visibility: visible; }
/* 白いにじみ（drop-shadow）は黒地の上で白いロゴの縁ににじみ出るので、写しのあいだは消す（明るい地では見えない程度のもの） */
.site-header.is-vt-logo .site-header__logo img { filter: none !important; transition: none !important; }
.site-header.is-vt-logo .site-header__logo-ink, .site-header.is-vt-logo .site-header__logo-red { display: none !important; }
.site-header.is-vt-logo.is-menu .site-header__logo-w { display: block !important; opacity: 1; transition: none; }
.site-header.is-vt-logo:not(.is-menu) .site-header__logo-w { display: none !important; }
@keyframes vt-fade { to { opacity: 0; } }
@keyframes vt-sheet-down { from { clip-path: inset(0); } to { clip-path: inset(100% 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============ イベント情報：年ごとのカード（テニス祭りの各回へのボタン） ============
   写真（その回のバナー）の下に年・名称・日時・会場・内容。カード全体がリンクで、ホバーで少し浮く。 */
.ev-list { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
@media (min-width: 768px) { .ev-list { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.ev-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  box-shadow: 0 2px 10px rgba(26, 26, 26, .06);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease, opacity .7s var(--ease);
}
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26, 26, 26, .12); border-color: var(--gray-300); color: inherit; }
.ev-card__media { display: block; aspect-ratio: 1600 / 620; overflow: hidden; background: var(--gray-050); }
.ev-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ev-card:hover .ev-card__media img { transform: scale(1.03); }
.ev-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.ev-card__year { font: 700 13px/1 var(--flt); letter-spacing: .12em; color: var(--red); }
.ev-card__title { font: 700 19px/1.4 var(--fjp); letter-spacing: .02em; color: var(--ink); }
.ev-card__meta { display: flex; flex-direction: column; gap: 4px; font: 400 14px/1.7 var(--fjp); color: var(--gray-800); }
.ev-card__key { display: inline-block; min-width: 3em; margin-right: 8px; font-weight: 700; color: var(--gray-600); }
.ev-card__summary { font: 400 14px/1.9 var(--fjp); color: var(--gray-600); }
.ev-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 14px/1 var(--fjp); color: var(--ink); }
.ev-card__go .aw { color: var(--red); transition: transform .3s ease; }
.ev-card:hover .ev-card__go .aw { transform: translateX(4px); }

/* ============ 07. ヒーロー ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  /* ヘッダーは追従しないので、その高さを引いた残り＝ちょうど1画面ぶん。
     ここで次のセクションが覗かないようにしている。 */
  min-height: calc(100svh - var(--header-h) - 1px);
  background: var(--white);
  overflow: hidden;
}
@supports not (height: 100svh) { .hero { min-height: calc(100vh - var(--header-h) - 1px); } }
/* モバイルは写真の上に文字とボタンを重ねる（同じマスに置く） */
.hero__media, .hero__body { grid-area: 1 / 1; }
.hero__body { align-self: end; z-index: 1; }
.hero__media {
  position: relative;
  /* 写真はヒーロー（1画面ぶん）いっぱいに広げる。
     モバイルはこの上に文字とボタンを重ねる。 */
  height: auto;
  overflow: hidden;
}
/* 写真とベール。払いのアニメーション（.phv）はここに掛ける */
.hero__shot { position: absolute; inset: 0; }
/* キャッチコピーの一式。ボタンと同じ器に入れて、左側にまとめて置く。 */
.hero__copy { position: relative; }
.hero__media img.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  /* 動画は正方形の集合（上から空・木・横断幕・参加者・芝）。人の並びが高さの 52〜74% にある */
  object-position: 50% 50%;
}
.hero__media video.hero__photo {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* スマホ・タブレットは正方形の動画を画面の上に置く（ロゴの裏は空）。下の芝生から白へ溶かし、その下にキャッチコピーを載せる。
   一辺 --hp は画面幅〜その 1.25 倍（画面の高さの 62% まで）。左右の端の人は少し切れるが、人の並びを大きく見せる */
@media (max-width: 1023px) {
  .hero { --hp: max(100vw, min(125vw, 62vh)); --hp: max(100vw, min(125vw, 62svh)); }
  .hero .hero__media .hero__photo {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--hp);
    height: var(--hp);
    transform: translateX(-50%);
  }
}
/* PC は写真が右半分に立つ（文字は重ならない）。下端の白いぼかしを浅くして、人の並びまで見せる */
@media (min-width: 1024px) {
  .hero__media img.hero__photo { object-position: 50% 50%; }
}
/* 背景（動画・写真とベール）は動かさず、真っ白な地から徐々に浮かび上がらせる（位置は固定。.phv の左からの払いの代わり）。
   オープニングのあいだは .splash-on .phv が頭出しのまま止める */
.hero__shot.phv { animation: hero-fade 2.4s cubic-bezier(.4, 0, .2, 1) .1s both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__shot.phv { animation: none; } }
.hero__scrim {
  position: absolute;
  inset: 0;
  /* 人の足元のすぐ下（写真の高さの 74%）から白へ溶かし、写真の下端より上で白になる。キャッチコピーはこの白い所に載る */
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0) calc(var(--hp) * .74),
      rgba(255, 255, 255, .55) calc(var(--hp) * .8),
      rgba(255, 255, 255, .9) calc(var(--hp) * .87),
      #fff calc(var(--hp) * .93));
}


/* PC は写真が右半分に立つ（文字は重ならない）。下端の白いぼかしを浅くして、人の並びまで見せる（.hero__scrim の後ろに置く） */
@media (min-width: 1024px) {
  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 18%),
      linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 24%);
  }
  /* 写真（正方形を枠いっぱいに切り抜き）の中の足元の位置から白へ溶かす。
     枠（.hero__media）の幅・高さ（cqw / cqh）から、写真の一辺 --s と上へはみ出した分 --oy を出し、足元は写真の高さの 74% */
  @supports (width: 1cqw) {
    .hero__media { container-type: size; }
    .hero__scrim {
      --s: max(100cqw, 100cqh);
      --oy: calc((100cqh - var(--s)) / 2);
      background:
        linear-gradient(180deg,
          rgba(255, 255, 255, 0) calc(var(--oy) + var(--s) * .74),
          rgba(255, 255, 255, .55) calc(var(--oy) + var(--s) * .8),
          rgba(255, 255, 255, .9) calc(var(--oy) + var(--s) * .87),
          #fff calc(var(--oy) + var(--s) * .93)),
        linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 24%);
    }
  }
}

/* スマホ・タブレットは文字を人の並びより下（芝生から先）に置く。画面が低いとヒーローはそのぶん伸びる */
.hero__body { padding-block: calc(var(--hp, 0px) * .8) 26px; }
.hero__title { margin: 0; }

/* ---- キャッチコピー「PLAY BEYOND.」----
   冒頭の導入もこの2語が受け持つ。写真の右上に PLAY、左下に BEYOND. を大きく出し、
   それぞれ赤 → 黒に塗り替えたあと、消さずにそのまま1行へ合流させる。
   合流の終わりは transform なしなので、着地は必ず本来の行の位置になる。

   塗り替えは「黒｜赤」の帯を文字の形に切り抜いて右から左へ流し、赤い文字の上を
   境目が左から右へ走って、通った所が黒く変わるようにしている。
   ここだけ赤を使う（ほかの見出しは色を付けずグレー → 黒だけで変える）。
   2枚重ねると字がわずかにずれて立体的に見えてしまうので、重ねないこと。 */
.pb {
  display: block;
  font: 700 clamp(38px, 10.8vw, 84px)/1.12 var(--fdisp);
  letter-spacing: .06em;
  white-space: nowrap;
}
.pb__ink { display: block; }

/* 1語ぶん。導入では写真の上へ飛ばすので、動かせるよう inline-block にする。
   基点を左に置き、拡大しても左端が動かないようにしている。 */
.pbw {
  display: inline-block;
  transform-origin: left center;
  background-image: linear-gradient(100deg,
    var(--ink) 0 42%,
    var(--red) 42% 100%);
  background-size: 300% 100%;
  background-position: 72% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* 赤い文字が左から現れ、続けて境目が左から右へ走って黒へ変わり、
     塗り終わってから本来の位置へ動く。3つを別の動きに分けてあるので、
     出方・塗り替え・移動の曲線がそれぞれ濁らない。 */
  animation:
    pb-in var(--pb-in-dur) var(--ease) var(--pbw-at) both,
    pb-slash var(--pb-dur) var(--sweep-ease) calc(var(--pbw-at) + .2s) both,
    pb-place var(--pb-move-dur) var(--ease) calc(var(--pb-move-at) + var(--pbw-move-d, 0s)) both;
}
/* PLAY が先、BEYOND. が少し遅れて出る（出る順は元の導入と同じ）。
   合流も PLAY を先に行かせる。右から来る PLAY が行の右半分を横切るので、
   BEYOND. を少しだけ遅らせると、2語が重なって見える瞬間が出ない。 */
.pbw--play   { --pbw-at: var(--pb-in-at); }
.pbw--beyond { --pbw-at: calc(var(--pb-in-at) + var(--pb-gap)); --pbw-move-d: .14s; }

@keyframes pb-place {
  from { transform: var(--pbw-from); }
  to   { transform: none; }
}

/* 導入で2語を置く位置と大きさ。PLAY は写真の右上、BEYOND. は左下。
   行の中の位置からの差で書いてあるので、着地は必ず本来の行になる。

   横は行頭（--pb-x0＝コンテナの左余白）と、行頭から各語までの幅で決まる。
   PLAY の幅は 3.02em、行頭から BEYOND. の左端までは 3.42em（Jost 700・字間 .06em）。
   縦は画面の高さから引いて出す。ヒーローの高さが 100svh − ヘッダーなので、
   svh で書けば画面が低いときも比率が保たれる。
   倍率と位置は、画面からはみ出さない範囲で決めること（.hero は overflow:hidden）。 */
.pbw--play   { --pbw-from: translate(var(--play-x), var(--play-y)) scale(var(--pbw-sc)); }
.pbw--beyond { --pbw-from: translate(var(--beyond-x), var(--beyond-y)) scale(var(--pbw-sc)); }
.pb {
  --pbw-sc: 1.5;
  --pbw-w: 3.02em;    /* PLAY の幅（拡大前） */
  --pbw-gap: 3.42em;  /* 行頭から BEYOND. の左端まで */
  --pb-x0: var(--gutter);
  --play-x: calc(94vw - var(--pbw-w) * var(--pbw-sc) - var(--pb-x0));
  --beyond-x: calc(7vw - var(--pb-x0) - var(--pbw-gap));
  /* スマホ・タブレットは、PLAY を写真の空（高さの 20%）、BEYOND. を人の並びの下の芝生（85%）に置く。
     行の位置（--pb-line）は、画面の下端から 369px 上（キャッチコピーから下の高さ）。
     画面が低くて文字が写真の 80% より下へ押し出されるときは、そちらに合わせる（.hero__body の上の余白） */
  --pb-line: max(100svh - 369px, var(--hp, 0px) * .8 + 17px);
  --play-y: calc(var(--hp, 0px) * .2 - var(--pb-line));
  --beyond-y: calc(var(--hp, 0px) * .85 - var(--pb-line));
}
/* 1024px 以上は写真が右半分だけ、キャッチコピーは左上に来る。
   PLAY は写真の右上の空、BEYOND. は写真の左下の芝生（人の並びの下）から寄ってくる。
   行頭はコンテナの左余白（画面が広いと中央寄せの分だけ内側に入る）。 */
@media (min-width: 1024px) {
  .pb {
    --pbw-sc: 1.7;
    --pb-x0: max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter)));
    --beyond-x: calc(54vw - var(--pb-x0) - var(--pbw-gap));
    --play-y: calc(15svh - 112px);
    --beyond-y: calc(84svh - 172px);
  }
}

/* ヒーローの時間割。上から順に、PLAY が出る → BEYOND. が出る →
   それぞれ赤が走る → 1行へ合流 → 0.5秒おいてサブコピー → 少し遅れて英字 →
   英字の後半でリード・ボタン・赤い四角が動き出す。
   数字を1つ動かすと以降がまとめてずれるよう、前の値からの足し算で書いている。 */
.hero {
  --pb-in-at: .3s;       /* PLAY が出はじめる */
  --pb-gap: .45s;        /* BEYOND. が遅れて出る分 */
  --pb-in-dur: .6s;
  --pb-dur: .9s;         /* 赤 → 黒（出はじめの 0.2秒 後に走る） */
  /* 2語とも塗り終わってから合流する */
  --pb-move-at: calc(var(--pb-in-at) + var(--pb-gap) + .2s + var(--pb-dur) + .1s);
  --pb-move-dur: .8s;
  --pb-settle: calc(var(--pb-move-at) + .14s + var(--pb-move-dur));  /* 合流し終わる時刻 */
  --sub-in: calc(var(--pb-settle) + .5s);   /* サブコピー */
  --en-in: calc(var(--sub-in) + .3s);       /* 英字（少しラグを置く） */
  --rest-in: calc(var(--en-in) + .45s);     /* 英字の後半から、残り全部 */
}

/* 動きを減らす設定では、色を変えずに黒い文字だけを最初から出す。
   （このブロックは .pb の定義より後に置くこと。同じ詳細度なので順序で決まる） */
@media (prefers-reduced-motion: reduce) {
  .pbw {
    animation: none;
    transform: none;
    opacity: 1;
    clip-path: none;
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}
/* 切り抜きが使えない環境では、塗り替えはせず黒い文字だけを出す */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pbw {
    animation: none;
    transform: none;
    opacity: 1;
    clip-path: none;
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}

.hero__sub {
  display: block;
  margin-top: .6em;
  font: 700 clamp(19px, 3.6vw, 26px)/1.6 var(--fjp);
  letter-spacing: .08em;
  color: var(--ink);
}
.hero__en {
  margin: 18px 0 0;
  font: 600 13px/1.5 var(--fdisp);
  letter-spacing: .18em;
  color: var(--red);
}
/* 左から1文字ずつ。小さく出て、少し大きくなってから通常の大きさに落ち着く。
   30文字を 0.02s ずつずらし、最後の文字が出終わるまででちょうど1秒。 */
.hero__en-ch {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
  animation: en-in .42s var(--ease) both;
  animation-delay: calc(var(--en-in) + var(--i) * .02s);
}
/* 英字（TOTTORI-CITY…）の下。1行ぶん空けてから置く。
   キャッチコピーと同じく写真の上に載る。 */
.hero__lead {
  position: relative;
  margin: 40px 0 0;
  max-width: 34em;
  font: 400 15px/2 var(--fjp);
  letter-spacing: .03em;
  color: var(--ink);
}
.hero__lead p { margin: 0; }
.hero__lead p + p { margin-top: .9em; }
/* 英字が出終わって 0.3 秒後から動き出す */
.hero__lead { --lead-in: var(--rest-in); }
.hero__lead-p { margin: 0; }

/* 行ごとに、下のライン（枠は出さない）から起き上がる。
   中の span は block にして行の箱いっぱいに広げる。 */
.hero__lead-line > span {
  display: block;
  transform: translateY(112%);
  animation: lineup .6s var(--ease) calc(var(--lead-in) + var(--i) * .08s) both;
}
@media (prefers-reduced-motion: reduce) {
  .hero__lead-line > span { animation: none; transform: none; }
}

.hero__cta { margin-top: 32px; }
.hero__square, .hero__scroll { display: none; }

@media (min-width: 1024px) {
  /* 文字とボタンは左の列、写真は右の列。重ねずに横に並べる。 */
  .hero { grid-template-columns: 50% 50%; }
  /* 左の列に収まる大きさにする。列幅は「画面の半分 − コンテナの左余白」なので、
     画面が広くなっても content の幅はほぼ一定になる。 */
  .hero .pb { font-size: clamp(46px, 4.9vw, 68px); }
  .hero__media {
    grid-area: 1 / 2;
  }
  .hero__body {
    grid-area: 1 / 1;
    /* 文字は左上に置く（写真の高さに合わせて中央へ下げない） */
    align-self: start;
    z-index: 1;
    /* .container の中央寄せをやめ、左の列いっぱいに使う */
    max-width: none;
    margin-inline: 0;
    padding-inline: max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter))) 24px;
    padding-block: 72px 40px;
  }
  .hero__inner { max-width: none; }
  .hero__en { margin-top: 22px; font-size: 14px; }
  .hero__lead { margin-top: 42px; }
  .hero__cta { margin-top: 40px; }
  .hero__square {
    display: block;
    position: absolute;
    left: calc(45% - 12px);
    bottom: 190px;
    width: 24px; height: 24px;
    background: var(--red);
  }
  .hero__scroll {
    display: flex;
    position: absolute;
    right: 26px;
    bottom: 36px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero__scroll span:first-child {
    writing-mode: vertical-rl;
    font: 500 11px/1 var(--flt);
    letter-spacing: .25em;
    color: var(--ink);
    text-shadow: 0 0 6px rgba(255, 255, 255, .9);
  }
  .hero__scroll .blink { width: 1px; height: 56px; background: var(--ink); }
}

/* ============ 08. 大会カルーセル ============ */
.carousel {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 20px;
  /* 上下は受付中のカードの光（ネオン）が切れないだけ空ける */
  padding: 16px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* 画面いっぱいに流す。1枚目だけ本文と同じ位置から始まるよう内側に余白を取る
     （100% は自分の幅＝画面幅。vw と違いスクロールバーぶんずれない）。 */
  --carousel-pad: max(var(--gutter), calc((100% - var(--container-max)) / 2 + var(--gutter)));
  /* 止まったときに左へ覗かせる幅（前のカードの端を見せて、続きがあると伝える）。
     main.js もこの値を読んで TODAY の線を置くので、px で書いておくこと。 */
  --carousel-peek: 16px;
  padding-inline: var(--carousel-pad);
  scroll-padding-inline-start: calc(var(--carousel-pad) + var(--carousel-peek));
}
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .carousel {
    gap: 24px;
    margin-top: 36px;
    --carousel-peek: 28px;
  }
}


/* 大会カード。日程チップ＋大会名／種目・会場（＋ピクトグラム）／状態のバッジ／要項・ドロー・結果の3つのボタン。
   カードの地を押すと大会名のリンクへ飛ぶ（.tcard__link::after を全面に広げる。ボタンはその上に重ねる） */
.tcard {
  position: relative;
  flex: none;
  /* 次の大会が右端で少し覗く幅にしてある（初期表示の見え方に効く） */
  width: 84vw;
  max-width: 420px;
  /* 高さは中身なり。カルーセルの中では横に並ぶカードがいちばん高いものにそろう（.carousel が flex のため） */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
@media (min-width: 640px) { .tcard { width: 400px; } }
@media (min-width: 1024px) { .tcard { width: 440px; } }
.tcard__link { color: inherit; }
.tcard__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tcard__link:hover { color: inherit; }
/* 浮き上がりはマウスのある端末だけ（スマホではタップのあとホバーの状態が残り、そのカードだけ上にずれて見えるため） */
@media (hover: hover) {
  .tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gray-300); color: inherit; }
}
/* 遷移先が決まっていないカード（結果待ちなど） */
.tcard--nolink { cursor: default; }
.tcard--nolink:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
/* トップの大会情報：区画の地を少し濃いグレーにし、白いカードを影で浮かせて目立たせる（index.html の .section--cards） */
.section--cards { background: var(--gray-100); }
.section--cards .tcard { border-color: transparent; box-shadow: 0 2px 12px rgba(26, 26, 26, .07); }
@media (hover: hover) { .section--cards .tcard:hover { border-color: transparent; box-shadow: var(--shadow-hover); } }
.section--cards .tcard--nolink:hover { box-shadow: 0 2px 12px rgba(26, 26, 26, .07); }

/* 種目・会場の段。文字は上揃えで詰め（1行ずつ、折り返さない）、ピクトグラムは文字の下のレイヤーに右下寄せで置く。
   カードの高さは固定なので、文字が短くても長くても位置は変わらない。文字と重なっても構わない。 */
.tcard__info { position: relative; flex: 1 1 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tcard__info .tcard__text { flex: 1 1 auto; }
.tcard__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; max-width: 100%; min-width: 0; }
.tcard__line { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard__info[data-len="long"] .tcard__event { font-size: 13px; }
/* 種目の写真（カードの上。TournamentCard.astro・src/data/event-photos.js）。写真の無い種目は、種目名だけの薄いグレーの面 */
.tcard__photo { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--gray-100); }
.tcard__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; }
@media (hover: hover) { .tcard:hover .tcard__photo img { transform: scale(1.04); } }
.tcard__photo--none { display: flex; align-items: center; justify-content: center; }
/* 結果の出た大会：優勝者の写真を重ねておき、.is-on の1枚だけを見せてゆっくり入れ替える（ディゾルブ。main.js の initCardSlides） */
.tcard__slides { position: absolute; inset: 0; display: block; }
.tcard__photo .tcard__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; transition: opacity 1.2s ease, transform .6s var(--ease); }
.tcard__photo .tcard__slide.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tcard__photo .tcard__slide { transition: none; } }
/* 写真の左上に重ねる日付（白い札に影を付けて、写真の上でも読めるようにする） */
.tcard__photo .tcard__date {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 8px rgba(26, 26, 26, .18);
}
.tcard__photo-label { font: 700 13px/1 var(--fjp); letter-spacing: .12em; color: var(--gray-400, #b0b0b0); }
/* 終了した大会は大会名だけ少し薄く（写真は色のまま） */
.tcard--past .tcard__title { color: var(--gray-600); }
/* まだ開催前の大会（未受付・受付終了）はカード全体をしっかりした赤い枠で囲む（受付中はさらに赤いネオンの光が明滅する） */
.tcard.tcard--soon, .tcard.tcard--closed,
.section--cards .tcard.tcard--soon, .section--cards .tcard.tcard--closed { border: 2px solid var(--red); }
/* 受付中・本日開催はカード全体を赤い枠で囲む（ホバーやトップの灰色の区画でも赤のまま） */
.tcard.tcard--open, .tcard.tcard--live,
.section--cards .tcard.tcard--open, .section--cards .tcard.tcard--live { border: 2px solid var(--red); }
/* 受付中は赤い枠のまわりの光をゆっくり明滅させる（締切の点滅 due-blink と同じ間隔。動きを減らす設定の端末では光らせたまま止める） */
.tcard.tcard--open, .section--cards .tcard.tcard--open { animation: card-neon 1.6s ease-in-out infinite; }
/* 受付中：赤い枠のまわりに赤いネオンの光をにじませ、ゆっくり明滅させる（枠そのものの赤は変えない） */
@keyframes card-neon {
  0%, 100% { box-shadow: 0 0 0 1px rgba(216, 35, 42, .9), 0 0 10px 2px rgba(216, 35, 42, .55), 0 0 26px 6px rgba(255, 60, 70, .35); }
  50%      { box-shadow: 0 0 0 0 rgba(216, 35, 42, 0), 0 0 4px 0 rgba(216, 35, 42, .15), 0 0 10px 0 rgba(255, 60, 70, 0); }
}
@media (prefers-reduced-motion: reduce) { .tcard.tcard--open, .section--cards .tcard.tcard--open { animation: none; box-shadow: 0 0 0 1px rgba(216, 35, 42, .9), 0 0 10px 2px rgba(216, 35, 42, .45); } }

.tcard__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px 16px 16px; }
@media (min-width: 640px) { .tcard__body { padding: 20px 20px 18px; } }
.tcard__head { display: flex; gap: 12px; align-items: flex-start; }
.tcard__title {
  margin: 0;
  font: 700 16px/1.5 var(--fjp);
  letter-spacing: .02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 1024px) { .tcard__title { font-size: 17px; } }

.tcard__foot { display: flex; flex-direction: column; flex: 1 1 auto; gap: 0; }
.tcard__event {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 14px/1.6 var(--fjp);
  letter-spacing: .02em;
  color: var(--ink);
}
.tcard__venue {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 400 12px/1.6 var(--fjp);
  color: var(--gray-600);
}
.tcard__ico { width: 14px; height: 14px; flex: none; color: var(--gray-500); }
.tcard__venue .tcard__ico { color: var(--red); }  /* 会場の地図のピンは赤 */
/* ---- 種目のピクトグラム（components/EventIcon.astro） ----
   高さは外側が決め、幅は絵の縦横比（aspect-ratio）で決まる。中の img は枠いっぱいに重ねる。
   1つずつ、画面に入った瞬間（main.js の initEventIcons が .is-on を付ける）に一度だけ動く：
     選手 … 体（.evicon__body）は足を軸にわずかに揺れ、前腕＋ラケット（.evicon__arm）は肘を軸に
            テイクバック → スイング。ボールが右から飛んできて打ち返される
     団体戦 … 6人を1人ずつに切って（clip-path）、応援のように順に跳ねる
   カルーセルを横に送って初めて見えたカードも、そのときに動く。 */
.evicon { position: relative; display: block; flex: none; }
.evicon img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.evicon .evicon__body { transform-origin: 45% 100%; }
/* ボールは left / top / height を、前腕は clip-path / transform-origin を EventIcon.astro がインラインで置く */
.evicon .evicon__ball { right: auto; bottom: auto; width: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.evicon .evicon__fig { transform-origin: 50% 100%; }
.evicon.is-on .evicon__body { animation: ev-body 1.3s var(--ease) .1s both; }
.evicon.is-on .evicon__arm  { animation: ev-arm 1.3s cubic-bezier(.4, 0, .3, 1) calc(.1s + var(--i) * .12s) both; }
.evicon.is-on .evicon__ball { animation: ev-ball 1.3s cubic-bezier(.3, .6, .4, 1) .1s both; }
.evicon.is-on .evicon__fig  { animation: ev-cheer .6s ease-in-out calc(.1s + var(--i) * .08s) 2 both; }
/* 前腕：構え（0）→ テイクバック（後ろへ大きく）→ 振り抜き（前へ）→ 戻る。向きは --dir で左右を反転 */
@keyframes ev-arm {
  0%   { transform: rotate(0); }
  32%  { transform: rotate(calc(-48deg * var(--dir, 1))); }
  58%  { transform: rotate(calc(30deg * var(--dir, 1))); }
  80%  { transform: rotate(calc(-6deg * var(--dir, 1))); }
  100% { transform: rotate(0); }
}
/* 体：前腕と逆向きにわずかに揺れ、振り抜きでほんの少し前へ出る */
@keyframes ev-body {
  0%   { transform: rotate(0); }
  32%  { transform: rotate(4deg) translateX(-2%); }
  58%  { transform: rotate(-4deg) translateX(3%); }
  80%  { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}
/* ボール：右から飛んできて（0→56%）、振り抜きに合わせて上へ打ち返され、元の位置に落ち着く */
@keyframes ev-ball {
  0%   { transform: translate(300%, -260%) scale(.6); opacity: 0; }
  10%  { opacity: 1; }
  56%  { transform: translate(-50%, -50%) scale(1); }
  74%  { transform: translate(120%, -220%) scale(.85); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
/* 団体戦：跳ねながら、交互に少し傾く（腕を上げて応援している感じに） */
@keyframes ev-cheer {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-14%) scaleY(1.05) rotate(calc(3deg * var(--tilt, 1))); }
}
@media (prefers-reduced-motion: reduce) {
  .evicon__body, .evicon__arm, .evicon__ball, .evicon__fig { animation: none !important; }
}


/* VIEW ALL で開く全件表示。横並びだったカードが、縦に並び直して出てくる。 */
.tall {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tall[hidden] { display: none; }
.tall__panel { min-height: 100%; padding-bottom: 64px; }
.tall__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.tall__body { padding-top: 28px; }
.tall__list {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) { .tall__list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .tall__list { grid-template-columns: repeat(3, 1fr); } }
/* 出入りの動きは .panel-item（上の共通ルール） */
.tall__item .tcard { width: 100%; max-width: none; }
.tall__more { margin-top: 32px; }

/* 4つのボタン（大会情報ページの一覧の .tl-btn を小さくしたもの）。カード全面のリンクより手前に置く */
.tcard__btns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  /* 状態のバッジ（上）とボタン（下）のあいだに区切りの線 */
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.tcard .tcard__btn {
  min-height: 40px;
  padding: 8px 4px;
  gap: 0;
  justify-content: center;
  font-size: 12.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 受付中のバッジの横に申込締切（「締切 10/2」）。受付中のカードだけ。
   見落とされないよう赤い太字でゆっくり点滅させる（動きを減らす設定の端末では点滅しない） */
.tcard__status { flex: none; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tcard__due {
  font: 700 13px/1 var(--fjp);
  letter-spacing: .02em;
  color: var(--red);
  white-space: nowrap;
  animation: due-blink 1.6s ease-in-out infinite;
}
.tcard__due small { font: 700 11px/1 var(--fjp); color: var(--red); margin-right: 4px; }
@keyframes due-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tcard__due { animation: none; } }

/* TODAY マーカー */
.today-marker {
  flex: none;
  width: 44px;
  /* 初期表示はこの線が左に来る。左には前（終了した大会）の端が覗く。 */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
@media (min-width: 1024px) { .today-marker { width: 64px; } }
.today-marker__label {
  font: 700 11px/1 var(--flt);
  letter-spacing: .2em;
  color: var(--red);
  writing-mode: vertical-rl;
}
.today-marker__line { width: 2px; flex: 1; background: var(--red); }
.today-marker__date {
  font: 500 11px/1 var(--flt);
  letter-spacing: .08em;
  color: var(--gray-500);
  writing-mode: vertical-rl;
}

/* ---- 縦スクロールで横に送る（トップの大会情報。main.js の initCarousel） ----
   .hpin を画面に止め（sticky。top は main.js がヘッダーの高さか、区画が高いときは下端がそろう位置に入れる）、
   止まっている長さ（.hpin-track の高さ）は main.js が「区画の高さ＋横に送る幅」で入れる。
   止めているあいだは縦のスクロール量をそのまま横の位置にするので、吸い付き（scroll-snap）は切る */
.is-hpin .hpin { position: sticky; background: var(--gray-100); }
.hero + .section--gray.is-hpin .hpin { background: transparent; }
/* 区画の下の余白は詰める。止める区画の下に余る灰色は、次の区画（白い地）が重なって隠す（main.js の .hpin-track の margin-bottom） */
.section.is-hpin { padding-bottom: 0; }
.section.is-hpin + .section { background: var(--white); }
/* 背景の英字は止める区画の見出しに合わせる（--hpin-pad は main.js が入れる、中身の上の余白） */
.is-hpin .hpin > .ghost { top: calc(var(--hpin-pad, 0px) + var(--head-half)); }
.is-hpin .carousel { scroll-snap-type: none; }

/* ---- 入ってきたときの動き（.js-intro → .is-intro。main.js）----
   TODAY の文字 → 赤い線が上から伸びる → 日付 → 今後の大会のカードが右から順に（--ci）入る。
   終了した大会（線の左。端だけ覗いている）は最初に静かに出す */
.carousel.js-intro .today-marker__label,
.carousel.js-intro .today-marker__date { opacity: 0; transform: translateY(-8px); }
.carousel.js-intro .today-marker__line { transform: scaleY(0); transform-origin: 50% 0; }
.carousel.js-intro .tcard { opacity: 0; translate: 48px 0; }
.carousel.is-intro .today-marker__label { opacity: 1; transform: none; transition: opacity .4s ease .1s, transform .5s var(--ease) .1s; }
.carousel.is-intro .today-marker__line { transform: none; transition: transform .8s cubic-bezier(.7, 0, .2, 1) .3s; }
.carousel.is-intro .today-marker__date { opacity: 1; transform: none; transition: opacity .4s ease 1s, transform .5s var(--ease) 1s; }
.carousel.is-intro .tcard {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity .5s ease calc(1.15s + min(var(--ci, 0), 3) * .12s),
    translate .7s var(--ease) calc(1.15s + min(var(--ci, 0), 3) * .12s),
    box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}

/* ============ 09. お知らせリスト ============ */
.news-list { margin-top: 32px; }
@media (min-width: 1024px) { .news-list { margin-top: 48px; } }

.news-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "date flag"
    "title title";
  gap: 6px 14px;
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--gray-200);
  transition: background .3s ease;
  cursor: pointer;
}
.news-row:hover { background: var(--gray-050); color: inherit; }
.news-row:hover .news-row__title { color: var(--ink); }
.news-row:hover .sqbtn { background: var(--red); border-color: var(--red); color: #fff; }

.news-row__date { grid-area: date; }
.news-row__day {
  display: block;
  font: 700 22px/1 var(--flt);
  letter-spacing: .02em;
  color: var(--ink);
}
.news-row__year {
  display: block;
  margin-top: 5px;
  font: 500 12px/1 var(--flt);
  letter-spacing: .08em;
  color: var(--gray-500);
}
.news-row__flag { grid-area: flag; justify-self: start; }
/* 2週間以内のお知らせに付く印。目に留まるよう、静かに脈を打たせる。 */
.news-new {
  display: inline-block;
  font: 700 12px/1 var(--flt);
  letter-spacing: .12em;
  color: var(--red);
  animation: news-new 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .news-new { animation: none; } }

.news-row__title {
  grid-area: title;
  font: 700 12px/1.6 var(--fjp);
  letter-spacing: 0;
  color: var(--gray-800);
  transition: color .3s ease;
  /* 折り返さず1行に収める。入り切らないときだけ末尾を省略する。 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.news-row .sqbtn { display: none; }

@media (min-width: 768px) {
  .news-row {
    grid-template-columns: 130px 52px 1fr 44px;
    grid-template-areas: "date flag title arrow";
    gap: 20px;
    padding: 26px 8px;
  }
  .news-row__day { font-size: 26px; }
  .news-row__title { font-size: 15px; }
  .news-row .sqbtn { display: inline-flex; grid-area: arrow; }
}
@media (min-width: 1024px) { .news-row { grid-template-columns: 150px 56px 1fr 44px; } }
@media (min-width: 1024px) { .news-row__title { font-size: 16px; } }

/* 4件目（NEWS_VISIBLE の次）。まだ続きがあることだけ伝えたいので、薄くフェードさせて押せなくする。 */
.news-peek { position: relative; }
/* VIEW ALL は4件目（薄くした行）の右端に、行の高さの中央にそろえて重ねる */
.news-peek__more { position: absolute; inset: 0 0 0 auto; display: flex; align-items: center; }
.news-list--peek {
  margin-top: 0;
  opacity: .34;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}
.news-list--peek .news-row { border-bottom: 0; }

/* コート案内の施設一覧の4件目。お知らせの4件目（.news-list--peek）と同じ見せ方で、1件ぶんの高さに切る。
   全施設は「すべての施設を見る」で全画面のパネル（.news-all）に開く。 */
.court-peek { max-height: 96px; overflow: hidden; }

/* 全件表示（お知らせ・コート案内）。画面いっぱいに白い面を出し、右上で閉じる。項目の動きは .panel-item。 */
/* サイトのヘッダーの下から画面の下までに出す（ヘッダーとメニューはこの上に残る：ヘッダー 100、メニュー 90 より下の 85）。
   スマホのヘッダーは帯が無いので、ヘッダーの裏（画面の上端〜--header-h）も白で覆う（box-shadow を上へずらして重ねる） */
.news-all {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 85;
  background: var(--white);
  box-shadow: 0 calc(-1 * var(--header-h)) 0 var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.news-all[hidden] { display: none; }
.news-all__panel { min-height: 100%; padding-bottom: 64px; }
.news-all__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
/* 閉じるボタン。ハンバーガーが開いているときと同じ×にそろえている。 */
.close-x {
  flex: none;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.close-x span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: background .3s ease;
}
.close-x span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.close-x span:nth-child(2) { opacity: 0; }
.close-x span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.close-x:hover span { background: var(--red); }
.news-all__body .news-list,
.news-all__body .sch-list { margin-top: 8px; }
/* 収まり切らない側の端を白く透かす（下：まだ続きがある、上：送って見出しの裏に隠れた分がある）。
   端まで送ると消える（main.js が .is-top / .is-bottom を付ける） */
.news-all::before, .news-all::after {
  content: '';
  position: fixed;
  left: 0; right: 0;
  z-index: 2;
  height: 96px;
  pointer-events: none;
  transition: opacity .3s ease;
}
.news-all::after { bottom: 0; background: linear-gradient(to top, var(--white) 20%, rgba(255, 255, 255, 0)); }
.news-all::before { top: calc(var(--header-h) + var(--panel-head, 96px)); background: linear-gradient(to bottom, var(--white), rgba(255, 255, 255, 0)); height: 48px; }
.news-all.is-bottom::after, .news-all.is-top::before { opacity: 0; }



/* 一行タイプ（下層ページのお知らせ） */
.news-row--compact { grid-template-areas: "date badge" "title title"; }
@media (min-width: 768px) {
  .news-row--compact { grid-template-columns: 110px 84px 1fr 20px; min-height: 66px; padding: 20px 8px; }
  .news-row--compact .news-row__title { font-weight: 400; font-size: 16px; }
}
.news-row--compact .news-row__date {
  font: 500 14px/1.4 var(--flt);
  letter-spacing: .04em;
  color: var(--gray-500);
}

/* ============ 10. 大会カレンダー ============ */
.sch-list { border-top: 1px solid var(--gray-200); }
.sch-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--gray-200);
  transition: background .3s ease;
  cursor: pointer;
}
.sch-item:hover { background: var(--gray-050); color: inherit; }
.sch-item:hover .sch-item__title { color: var(--red); }
.sch-item--next { border-left: 3px solid var(--red); padding-left: 13px; }

.date-chip {
  flex: none;
  /* 日付（08.16）が折り返さないよう、幅は下限だけ決めて中身に合わせる */
  width: auto;
  min-width: 64px;
  height: 64px;
  padding-inline: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.date-chip__md { font: 700 20px/1 var(--flt); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.date-chip__dow { font: 700 11px/1 var(--flt); letter-spacing: .1em; color: var(--red); white-space: nowrap; }

/* 大会カードの日程チップ。中身の作りは上と同じで、少し小さい。 */
.date-chip--card { min-width: 56px; height: 56px; border-radius: var(--radius); background: var(--gray-050); }
@media (min-width: 640px) { .date-chip--card { min-width: 60px; height: 60px; } }
.date-chip--card .date-chip__md { font-size: 18px; }
@media (min-width: 640px) { .date-chip--card .date-chip__md { font-size: 19px; } }

.sch-item__text { min-width: 0; }
.sch-item__title {
  display: block;
  font: 700 15px/1.5 var(--fjp);
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .3s ease;
}
@media (min-width: 640px) {
  .sch-item__title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.sch-item__place {
  display: block;
  margin-top: 3px;
  font: 400 13px/1.5 var(--fjp);
  color: var(--gray-500);
}

/* ---- 月ごとのカレンダー（大会情報ページ）----
   大会のある月だけを並べ、開催日のマスを赤くする。
   マスの下にその月の大会を出すので、カレンダーを見たまま中身も分かる。 */
.cal { margin-top: 32px; }
@media (min-width: 1024px) { .cal { margin-top: 48px; } }

/* 月送り */
.cal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}
.cal__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  min-width: 8em;
}
.cal__month {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px;
}
.cal__month[hidden] { display: none; }
@media (min-width: 768px) {
  .cal__month { padding: 28px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; }
}
.cal__num { font: 700 34px/1 var(--flt); letter-spacing: .02em; color: var(--ink); }
.cal__meta { display: flex; flex-direction: column; gap: 3px; }
.cal__en { font: 700 11px/1 var(--flt); letter-spacing: .14em; color: var(--red); }
.cal__year { font: 500 11px/1 var(--flt); letter-spacing: .08em; color: var(--gray-500); }
.cal__count { margin-left: auto; font: 500 13px/1 var(--fjp); color: var(--gray-500); white-space: nowrap; }
@media (max-width: 420px) { .cal__label { min-width: 0; } .cal__count { font-size: 12px; } }

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__dow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  font: 700 10px/1 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-500);
}
.cal__dow.is-sun { color: var(--red); }
.cal__dow.is-sat { color: #3B6FB5; }
.cal__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  font: 500 14px/1 var(--flt);
  color: var(--gray-800);
}
.cal__cell--empty { visibility: hidden; }
.cal__cell.is-sun { color: var(--red); }
.cal__cell.is-sat { color: #3B6FB5; }
/* 開催日 */
.cal__cell.is-on {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
/* 今日。赤い枠を点滅させる（開催日と重なるときは赤い地の外側で点滅） */
.cal__cell.is-today { position: relative; font-weight: 700; }
.cal__cell.is-today:not(.is-on) { color: var(--red); }
.cal__cell.is-today::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  pointer-events: none;
  animation: blink 1.4s ease-in-out infinite;
}
.cal__cell.is-on.is-today::after { inset: -4px; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .cal__cell.is-today::after { animation: none; } }

/* 月を送ったときの動き（main.js の initCalendar が .is-enter・--cal-dir・--k・--i を付ける）。
   月の数字は送った向きから回り込み、曜日とマスは送った向きの端から波のように小さく弾んで並び、
   開催日は赤い地が出たあとに輪が広がって消える。下の大会の一覧は1件ずつ下から起き上がる */
.cal { --cal-dir: 1; }
.cal__label.is-flip { perspective: 400px; }
.cal__label.is-flip .cal__num { display: inline-block; animation: cal-num .55s var(--ease) both; }
.cal__label.is-flip .cal__meta { animation: cal-meta .55s var(--ease) .08s both; }
@keyframes cal-num {
  from { opacity: 0; transform: translateX(calc(var(--cal-dir) * 28px)) rotateY(calc(var(--cal-dir) * -70deg)); }
}
@keyframes cal-meta { from { opacity: 0; transform: translateY(8px); } }
.cal__month.is-enter .cal__dow,
.cal__month.is-enter .cal__cell:not(.cal__cell--empty) {
  animation: cal-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--k, 0) * 22ms);
}
.cal__month.is-enter .cal__cell.is-on {
  animation:
    cal-pop .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--k, 0) * 22ms) both,
    cal-ring .9s ease-out calc(var(--k, 0) * 22ms + .3s) both;
}
@keyframes cal-pop {
  from { opacity: 0; transform: translateX(calc(var(--cal-dir) * 16px)) scale(.5); }
}
@keyframes cal-ring {
  from { box-shadow: 0 0 0 0 rgba(216, 35, 42, .55); }
  to   { box-shadow: 0 0 0 12px rgba(216, 35, 42, 0); }
}
.cal__month.is-enter .cal__item { animation: cal-item .55s var(--ease) both; animation-delay: calc(.18s + var(--i, 0) * 70ms); }
@keyframes cal-item {
  from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cal__label.is-flip .cal__num, .cal__label.is-flip .cal__meta,
  .cal__month.is-enter .cal__dow, .cal__month.is-enter .cal__cell, .cal__month.is-enter .cal__item { animation: none; }
}

.cal__list { margin-top: 20px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .cal__list { margin-top: 0; } }
.cal__list:empty::after {
  content: "この月の大会はありません。";
  font: 400 13px/1.8 var(--fjp);
  color: var(--gray-500);
}
.cal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
}
.cal__item-day { flex: none; min-width: 1.4em; font: 700 15px/1 var(--flt); color: var(--red); }
.cal__item-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cal__item-name {
  font: 700 14px/1.5 var(--fjp);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cal__item-sub { font: 400 12px/1.5 var(--fjp); color: var(--gray-500); }
.cal__item-badge { margin-left: auto; flex: none; min-width: 0; height: 22px; font-size: 11px; padding: 0 8px; }

/* 締切（黒い点）とドロー会議（赤い枠の点）。マスでは数字の下に並べ、凡例でも同じ点を使う */
.cal__cell { position: relative; }
.cal__mks { position: absolute; left: 50%; bottom: 14%; display: flex; gap: 3px; transform: translateX(-50%); }
.cal__mk { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; }
.cal__mk--due { background: var(--ink); }
.cal__mk--draw { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--red); }
.cal__cell.is-on .cal__mk--due { background: var(--white); }
.cal__cell.is-on .cal__mk--draw { background: transparent; box-shadow: inset 0 0 0 1.5px var(--white); }
@media (min-width: 768px) { .cal__mk { width: 7px; height: 7px; } }
/* 凡例 */
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font: 500 12px/1.6 var(--fjp); color: var(--gray-600); }
.cal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal__key--game { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--red); }
/* 一覧の締切・ドロー会議の行。日付は黒（ドロー会議は赤）、頭に小さな札 */
.cal__item--due .cal__item-day { color: var(--ink); }
.cal__item-name .cal__tag { margin-right: 8px; }
.cal__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  font: 700 11px/1 var(--fjp);
  letter-spacing: .04em;
  vertical-align: 2px;
}
.cal__tag--due { background: var(--ink); color: #fff; }
.cal__tag--draw { border: 1px solid var(--red); color: var(--red); background: var(--white); }
.cal__item-when { font: 700 13px/1.5 var(--fjp); color: var(--ink); white-space: nowrap; }
.cal__item--due .cal__item-sub, .cal__item--draw .cal__item-sub { color: var(--gray-600); }
/* トップのカレンダー（ScheduleCalendar の extras）：イベントは黒いマス、水曜テニスは水曜のマスに緑の点 */
.cal { --cal-lesson: #2E9D5B; }
.cal__cell.is-ev { background: var(--ink); color: #fff; font-weight: 700; }
.cal__key--event { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.cal__mk--lesson { background: var(--cal-lesson); }
.cal__mk--event { background: var(--ink); box-shadow: 0 0 0 1.5px var(--white); }
.cal__cell.is-on .cal__mk--lesson, .cal__cell.is-ev .cal__mk--lesson { box-shadow: 0 0 0 1.5px var(--white); }
.cal__tag--event { background: var(--ink); color: #fff; }
.cal__tag--lesson { background: var(--cal-lesson); color: #fff; }
.cal__item--event .cal__item-day { color: var(--ink); }
.cal__item-day--wk { font: 700 11px/1.15 var(--fjp); color: var(--cal-lesson); text-align: center; }
.cal__item-link { color: inherit; text-decoration: underline; text-decoration-color: var(--gray-300); text-underline-offset: 3px; }
.cal__item-link:hover { color: var(--red); text-decoration-color: currentColor; }
/* 一覧の行は全体を押せる（主のリンクの ::after を行いっぱいに広げる）。大会名ごとのリンクはその上に出す */
.cal__item--go { position: relative; cursor: pointer; transition: background-color .2s ease; }
.cal__item-link--go { text-decoration: none; }
.cal__item-link--go::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cal__item .cal__item-link:not(.cal__item-link--go) { position: relative; z-index: 2; }
.cal__item-arrow { flex: none; margin-left: 4px; font: 400 20px/1 var(--flt); color: var(--gray-300); transition: transform .2s ease, color .2s ease; }
.cal__item-badge + .cal__item-arrow { margin-left: 0; }
.cal__item:not(:has(.cal__item-badge)) .cal__item-arrow { margin-left: auto; }
@media (hover: hover) {
  .cal__item--go:hover { background: var(--gray-050); }
  .cal__item--go:hover .cal__item-arrow { color: var(--red); transform: translateX(3px); }
  .cal__item--go:hover .cal__item-link--go { color: var(--red); }
}
.cal__item--go:active { background: var(--gray-100); }
.cal__item-link--go:focus-visible { outline: none; }
.cal__item-link--go:focus-visible::after { outline: 2px solid var(--red); outline-offset: -2px; }

/* 予定のあるマスは押せる（その日の内容を吹き出しで出す。main.js の initCalendar） */
.cal__grid { position: relative; }
.cal__cell[data-has] { cursor: pointer; }
@media (hover: hover) { .cal__cell[data-has]:not(.is-on):not(.is-ev):hover { background: var(--gray-100); } }
.cal__cell[data-has]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cal__cell.is-picked { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); z-index: 1; }
.cal__pop {
  position: absolute;
  left: -8px; right: -8px;
  z-index: 5;
  padding: 10px 14px 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(26, 26, 26, .18);
  animation: cal-pop-in .22s var(--ease) both;
}
/* マスを指す三角（--ax は押したマスの真ん中。吹き出しは左に 8px はみ出しているぶんを足す） */
.cal__pop::before {
  content: "";
  position: absolute;
  top: -7px; left: calc(var(--ax, 50%) + 8px - 7px);
  width: 14px; height: 14px;
  background: var(--white);
  border-left: 1px solid var(--gray-200); border-top: 1px solid var(--gray-200);
  transform: rotate(45deg);
}
.cal__pop.is-above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
@keyframes cal-pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.cal__pop.is-above { animation-name: cal-pop-in-up; }
@keyframes cal-pop-in-up { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.cal__pop-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.cal__pop-date { font: 700 18px/1 var(--flt); color: var(--ink); }
.cal__pop-dow { font: 700 12px/1 var(--fjp); color: var(--gray-500); }
.cal__pop-close { width: 32px; height: 32px; margin: -6px -8px 0 0; border: 0; background: none; font: 400 22px/1 var(--flt); color: var(--gray-500); cursor: pointer; }
.cal__pop-close:hover { color: var(--red); }
.cal__pop-list { display: flex; flex-direction: column; }
.cal__pop-list .cal__item { padding: 9px 4px; animation: none !important; opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .cal__pop { animation: none; } }

/* ---- コート案内の地図 ----
   Leaflet で自前に描く（main.js の initCourtMap）。上のボタンで施設を切り替え、「すべて」で全施設、
   「現在地」で位置情報の許可を求めて青い点を出す。 */
.cmap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
/* 左端の「すべて」は固定、区切り線の右に施設を1行で並べ、はみ出す分は横にスクロール（スクロールバーは出さない） */
.cmap__tabs {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-200);
}
.cmap__tab--all { flex: none; }
/* 施設が1つだけのとき（水曜テニス教室の井原公園）は切り替えの列を出さない */
.cmap--single .cmap__tabs { display: none; }
.cmap__tabs-wrap {
  flex: 1 1 auto;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--gray-200);
}
.cmap__tabs-scroll { gap: 6px; padding: 2px 0; scroll-snap-type: x proximity; }
.cmap__tabs-scroll .cmap__tab { scroll-snap-align: start; }
/* 施設の切り替え。大会結果の年度タブ（.year-tab）と同じ、角を少しだけ丸めた四角。選択中は赤 */
.cmap__tab {
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font: 700 12px/1 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-800);
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.cmap__tab:hover { border-color: var(--red); color: var(--red); }
.cmap__tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cmap__frame {
  position: relative;
  height: clamp(280px, 85vw, 360px); /* スマホは画面の幅に合わせる */
  background: var(--gray-050);
}
/* 選んだ施設の写真。地図の左上に重ねる（地図と見分けがつくよう白い枠）。サーフェス・面数などは地図の下のバッジに */
.cmap__photo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000; /* Leaflet のコントロールと同じ高さ */
  display: block;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--gray-200), 0 2px 10px rgba(26, 26, 26, .18);
  cursor: zoom-in;
  /* タップで拡大：左上を基点に transform で大きくする（main.js が倍率と位置を計算）。しばらくすると元に戻る */
  transform-origin: top left;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.cmap__photo.is-zoomed { cursor: zoom-out; z-index: 1100; box-shadow: 0 0 0 1px var(--gray-200), 0 12px 40px rgba(26, 26, 26, .35); }
.cmap__photo[hidden] { display: none; }
.cmap__photo-img {
  display: block;
  width: clamp(110px, 30vw, 180px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
/* 地図の下のバッジ（サーフェスの画像・面数・夜間照明など。courts.js の mapData → main.js の showBadges） */
.cmap__badges { order: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; } /* 1行目は施設名と「Googleマップで開く」、2行目にバッジ */
.cmap__badges:empty { display: none; }
/* コートの情報の1行（コート案内の写真の上・地図の下で共通）：「オムニコート | 16面 | 夜間照明あり」。区切りは細い縦線 */
.cinfo { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin: 0; font: 700 13px/1.5 var(--fjp); letter-spacing: .04em; }
.cinfo > span { display: inline-flex; align-items: center; }
.cinfo > span + span::before { content: ''; display: inline-block; width: 1px; height: .95em; margin: 0 10px; background: currentColor; opacity: .55; }
.cinfo__main { color: var(--red); }
.cmap__badges.cinfo { color: var(--gray-800); gap: 4px 0; }
.cfac__badges.cinfo { gap: 4px 0; }
@media (min-width: 1024px) { .cmap__frame { height: 420px; } }
/* 自前で描く地図（Leaflet）。読み終わるまでは下敷きを見せる。 */
.cmap__map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--gray-050);
  opacity: 0;
  transition: opacity .4s ease;
}
.cmap__map.is-ready { opacity: 1; }
/* 指で操作する端末で、地図を1本指でなぞったときに一瞬出す案内（main.js の initCourtMap）。押しても下に通す */
.cmap__hint {
  position: absolute;
  inset: 0;
  z-index: 1100;  /* Leaflet のコントロール（1000）より上 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 26, 26, .62);
  font: 700 15px/1.6 var(--fjp);
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.cmap__hint.is-on { opacity: 1; }
/* 地図タイルをサイトの地の色に寄せる。ピンとラベルは別レイヤーなので色が残る */
/* 「地図」（OpenStreetMap）のときだけ色をグレーに落とす。航空写真はそのまま */
.cmap__map .ctile-map { filter: grayscale(1) brightness(1.08) contrast(.82); opacity: .9; }
/* 地図の種類の切り替え（航空写真／地図）。地図の右下、＋－の上（左上の写真カードと重ならない位置）。施設の切り替えボタンと同じ見た目 */
.cmap__layers {
  position: absolute;
  right: 14px; bottom: 110px;
  z-index: 500;
  display: flex;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(26, 26, 26, .12);
}
.cmap__layer {
  padding: 8px 10px;
  font: 700 11px/1 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-800);
  background: var(--white);
  transition: background .3s ease, color .3s ease;
}
.cmap__layer + .cmap__layer { border-left: 1px solid var(--gray-300); }
.cmap__layer:hover { color: var(--red); }
.cmap__layer.is-active { background: var(--ink); color: #fff; }
.cmap__map .leaflet-control-zoom { border: 1px solid var(--gray-200); border-radius: 0; box-shadow: none; margin: 0 14px 14px 0; }
.cmap__map .leaflet-control-zoom a {
  width: 32px; height: 32px; line-height: 30px;
  font: 400 18px/30px var(--flt);
  color: var(--ink); background: var(--white); border-bottom: 1px solid var(--gray-200); border-radius: 0;
}
.cmap__map .leaflet-control-zoom a:last-child { border-bottom: 0; }
.cmap__map .leaflet-control-zoom a:hover { color: var(--red); background: var(--white); }
.cmap__map .leaflet-control-attribution {
  margin: 0; padding: 3px 8px;
  font: 400 10px/1.4 var(--flt); color: var(--gray-500);
  background: rgba(255, 255, 255, .85);
}
.cmap__map .leaflet-control-attribution a { color: var(--gray-600); }
/* 縮尺（右下。拡大縮小のボタンの下）。白い地に黒い目盛り。拡大縮小のボタンとの間は詰める */
.cmap__map .leaflet-control-scale { margin: 0 14px 8px 0; }
.cmap__map .leaflet-control-zoom { margin-bottom: 8px; }
.cmap__map .leaflet-control-scale-line {
  padding: 1px 6px 0;
  border: 2px solid var(--ink); border-top: 0;
  font: 600 11px/1.5 var(--flt); color: var(--ink);
  background: rgba(255, 255, 255, .85);
  text-shadow: none;
}

/* テニスコートの面。敷地は薄く、コート1面ずつは赤で塗る（タイルがグレーなので赤だけが立つ） */
.cmap__map .carea { fill: var(--red); fill-opacity: .08; stroke: var(--red); stroke-width: 1; stroke-opacity: .35; }
.cmap__map .ccourt { fill: var(--red); fill-opacity: .55; stroke: var(--white); stroke-width: 1; stroke-opacity: .9; }

/* ピン：赤い点に白い縁。見ている施設は輪が広がる */
.cpin-wrap { background: none; border: 0; }
.cpin { position: relative; display: block; width: 20px; height: 20px; }
.cpin__dot {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(26, 26, 26, .25);
  transition: transform .3s var(--ease);
}
.cpin__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
  transform: scale(.6);
}
.cpin-wrap.is-active .cpin__dot { transform: scale(1.15); }
.cpin-wrap.is-active .cpin__ring { animation: cpin-pulse 1.8s ease-out infinite; }
@keyframes cpin-pulse {
  0%   { opacity: .9; transform: scale(.6); }
  100% { opacity: 0;  transform: scale(2.4); }
}
@media (prefers-reduced-motion: reduce) { .cpin-wrap.is-active .cpin__ring { animation: none; opacity: .6; transform: scale(1.4); } }

/* ラベル：白地に細い枠。見ている施設は赤地 */
.cpin-label.leaflet-tooltip {
  padding: 5px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 700 12px/1 var(--fjp);
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .08);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.cpin-label.leaflet-tooltip::before { display: none; }
.cpin-label.leaflet-tooltip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
/* 主会場（ヤマタ）のラベルは他の施設のラベルより前に、見ている施設のラベルはさらに前に */
.cpin-label.leaflet-tooltip.is-main { z-index: 900; }
.cpin-label.leaflet-tooltip.is-active { z-index: 1000; }

/* 現在地：青い点（白い縁）と、精度の円 */
.cmap__map .cloc { fill: #1a73e8; fill-opacity: 1; stroke: var(--white); stroke-width: 3; }
.cmap__map .cloc-acc { fill: #1a73e8; fill-opacity: .12; stroke: #1a73e8; stroke-width: 1; stroke-opacity: .4; }
/* 現在地ボタン。地図の左下に重ねる（右下の拡大縮小・帰属表示と重ならない位置）。形は施設タブと同じ */
.cmap__locate {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1000; /* Leaflet のコントロールと同じ高さ。地図のタイル・ピンより前 */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font: 700 12px/1 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-800);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .08);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.cmap__locate:hover { border-color: #1a73e8; color: #1a73e8; }
.cmap__locate[hidden] { display: none; }
.cmap__locate-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a73e8; box-shadow: 0 0 0 2px var(--white); }
.cmap__locate.is-active { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.cmap__locate.is-active:hover { color: #fff; }
.cmap__locate.is-busy { opacity: .6; cursor: progress; }
/* 位置情報の結果（許可されていない、取れなかった）を知らせる文言。無いときは出さない */
.cmap__msg { flex: 1; min-width: 0; font: 400 12px/1.5 var(--fjp); color: var(--gray-600); }
.cmap__msg:empty { display: none; }

/* 地図が出せないときの下敷き。地図が読めた場合はその後ろに隠れる。 */
.cmap__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(45deg, var(--gray-050) 0, var(--gray-050) 10px, var(--white) 10px, var(--white) 20px);
  color: var(--gray-500);
}
.cmap__fallback-pin { width: 34px; height: 34px; color: var(--red); opacity: .5; }
.cmap__fallback-text { font: 500 12px/1.6 var(--fjp); }
.cmap__bar {
  display: flex;
  flex-wrap: wrap;             /* 2行目にバッジ（.cmap__badges）が入る */
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px;
  border-top: 1px solid var(--gray-200);
}
.cmap__name { font: 700 13px/1.5 var(--fjp); letter-spacing: .02em; color: var(--ink); }
.cmap__open { font-size: 12px; white-space: nowrap; }

/* 埋め込みプレースホルダー */
.embed {
  position: relative;
  height: 360px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background-image: repeating-linear-gradient(45deg, var(--gray-050) 0, var(--gray-050) 10px, var(--white) 10px, var(--white) 20px);
}
@media (min-width: 1024px) { .embed { height: 480px; } }
.embed--map { height: 320px; }
@media (min-width: 1024px) { .embed--map { height: 460px; } }
.embed__label {
  font: 500 13px/1.6 ui-monospace, Menlo, monospace;
  color: var(--gray-500);
  background: var(--white);
  padding: 6px 14px;
  border: 1px dashed var(--gray-300);
}
.embed__note { font: 400 11px/1.6 ui-monospace, Menlo, monospace; color: var(--gray-500); }
/* design.md: モバイルではGoogleカレンダー埋め込みを表示しない */
@media (max-width: 639px) { .embed--calendar { display: none; } }

.embed-wrap { position: relative; }
.embed-wrap__square {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  background: var(--red);
}
@media (max-width: 639px) { .embed-wrap__square { width: 24px; height: 24px; top: -8px; right: -8px; } }

.embed-caption {
  margin: 16px 0 0;
  font: 400 14px/1.9 var(--fjp);
  letter-spacing: .02em;
  color: var(--gray-600);
}

/* ============ 11. リンク集（マーキー） ============ */
/* 自動で流れつづけるが、指やホイールで動かせる。
   触っているあいだは止まり、離れて7秒ほどでまた流れ出す（動きは main.js が担当）。
   カードは中身を2組並べてあり、半分進んだところで戻すことで継ぎ目なくつながる。
   トップページは2段組みで、上段と下段を逆向きに流している
   （向きは data-marquee-dir、1 が右から左・-1 が左から右）。 */
.marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* 流れるリンクの帯の裏だけグレーにする。上下の端は白からなだらかにグレーへ（--mq-fade の幅で）変える */
  --mq-fade: 48px;
  margin-top: 0;
  padding-block: calc(var(--mq-fade) + 4px);
  background: linear-gradient(180deg,
    rgba(242, 242, 242, 0) 0,
    var(--gray-100) var(--mq-fade),
    var(--gray-100) calc(100% - var(--mq-fade)),
    rgba(242, 242, 242, 0) 100%);
}
@media (min-width: 1024px) { .marquee-rows { gap: 20px; --mq-fade: 64px; } }
.marquee-rows .marquee { margin-top: 0; }
/* VIEW ALL を押したあと（main.js の initLinksLeave）：止めたバナーを大きくしながら、画面全体を白で覆ってからリンク集へ */
/* VIEW ALL を押したあと（main.js の initLinksLeave）：白い地（.lk-layer）を敷き、その上でバナーの写し（.lk-layer__img）を
   リンク集のページと同じ並びへ動かす（動きは main.js の Web Animations）。そのあとリンク集へ移る */
.lk-layer { position: fixed; inset: 0; z-index: 4000; background: rgba(255, 255, 255, 0); transition: background-color .45s ease .05s; pointer-events: none; }
.lk-layer.is-on { background: rgba(255, 255, 255, 1); }
/* 協会のロゴの写し。並べ替えのあいだもヘッダーの同じ位置に出しておく（main.js） */
.lk-layer__logo { position: absolute; display: block; z-index: 2; pointer-events: none; }
.lk-layer__img { position: absolute; display: block; object-fit: cover; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(26, 26, 26, .12); transform-origin: 0 0; }
/* 測定用に裏で読み込むリンク集のページ。並べ終えたらふわっと重ねてから移る */
.lk-frame { position: fixed; inset: 0; z-index: 4001; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.lk-frame.is-on { opacity: 1; }
/* トップのリンク集から移ってきたページ（と測定用の iframe の中）は、出現の動きを止めてそのまま出す */
html.is-links-arrive { scroll-behavior: auto; }
html.is-links-arrive .fu, html.is-links-arrive .hl > span { animation: none !important; opacity: 1 !important; transform: none !important; }
html.is-links-arrive .page-title, html.is-links-arrive .sub-head { animation: none; background-image: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }

.marquee {
  margin-top: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.marquee::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .marquee { margin-top: 48px; } }
.marquee__track {
  display: flex;
  width: max-content;
}

/* 横長のバナーを上に敷き、その下に一言説明。
   団体名はバナーに描かれているので、文字としては出さない。
   バナーは 1018×168（およそ6:1）を想定。比率が違うものは切り抜いて合わせる。 */
.link-card {
  flex: none;
  overflow: hidden; /* バナーのズームイン（.rv）が枠からはみ出さないように */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "banner banner"
    "text   ext";
  align-items: center;
  gap: 10px;
  width: 272px;
  margin-right: 16px;
  padding: 12px 14px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .3s ease, transform .3s ease;
}
.link-card:hover { border-color: var(--red); transform: translateY(-3px); color: inherit; }
.link-card__banner {
  grid-area: banner;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1018 / 168;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-050);
}
.link-card__banner--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px dashed var(--gray-300);
  font: 400 11px/1.3 var(--fjp);
  color: var(--gray-500);
  text-align: center;
}
.link-card__text { grid-area: text; min-width: 0; }
.link-card__desc {
  display: block;
  font: 400 11px/1.4 var(--fjp);
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card__ext { grid-area: ext; font: 400 12px/1 var(--flt); color: var(--gray-300); }

/* トップページのマーキー用。白いカードの枠は出さず、バナーそのものを
   カードと同じ大きさで見せる。押している間だけ太い赤枠を出す。 */
.link-card--compact {
  position: relative;
  display: block;
  width: 300px;
  margin-right: 14px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
/* 以前（232px／264px）の約 1.3 倍 */
@media (min-width: 1024px) { .link-card--compact { width: 344px; margin-right: 20px; } }
.link-card--compact .link-card__banner {
  width: 100%;
  border-radius: var(--radius);
}
/* 枠はバナーの内側に重ねて描く。バナーが後ろに敷かれているので、
   要素側の border や inset の影だと画像に隠れて出てこない。 */
.link-card--compact::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: var(--radius);
  pointer-events: none;
  transition: border-color .18s ease;
}
.link-card--compact:hover { border: 0; transform: none; }
.link-card--compact.is-pressed::after { border-color: var(--red); }
@media (hover: hover) {
  .link-card--compact:hover::after { border-color: var(--red); }
}

/* 静的なリンクカードグリッド（リンク集ページ） */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .link-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.link-grid .link-card { width: auto; margin-right: 0; }

/* ============ 12. コート案内 ============ */
/* 1行：ピンと施設名を同じ行に、その下にサーフェス、さらに面数（夜間照明があれば添える）。矢印は出さない（写真と重なるため） */
.court-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--gray-200);
  transition: background .3s ease;
  cursor: pointer;
}
.court-item__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.court-item__spec { display: flex; flex-direction: column; gap: 2px; padding-left: 30px; font: 400 13px/1.6 var(--fjp); color: var(--gray-600); }
.court-item__surface { font-weight: 700; color: var(--gray-800); }
.court-item__faces { letter-spacing: .02em; }
.court-item:hover { background: var(--gray-050); color: inherit; }
.court-item:hover .sch-item__title { color: var(--red); }
/* 施設の写真。行の右端に敷き、中央へ向けて薄くする。文字と矢印はその上に */
.court-item--photo { position: relative; overflow: hidden; }
.court-item--photo > :not(.court-item__photo) { position: relative; z-index: 1; }
.court-item__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 52%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 45%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 45%, #000 80%);
  pointer-events: none;
}
.court-item__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }  /* 押しても写真は広げない（そのままコート案内のページへつなぐ） */
.court-item--photo .court-item__head, .court-item--photo .court-item__spec { max-width: 72%; }
.court-item--photo .sch-item__title,
.court-item--photo .court-item__spec { text-shadow: 0 0 6px var(--white), 0 0 2px var(--white); }
.court-pin {
  width: 20px; height: 20px;
  color: var(--red);
}

/* ---- コート案内のページ（courts.html）：施設1件 ----
   写真を画面の幅いっぱいに敷き、その左上に施設名・バッジを重ねる（暗い帯はほぼ付けず、文字の影で読ませる）
   → 本文（説明・表）→ 予約・問い合わせのボタンは表と切り離した枠に。 */
.section--cfac { padding-top: 0; }
.cfac { scroll-margin-top: 72px; }
.cfac + .cfac { margin-top: 72px; }
@media (min-width: 1024px) { .cfac + .cfac { margin-top: 96px; } }
.cfac__hero {
  /* スクロールすると写真は画面の上端（協会のロゴの裏）で止まり、その施設の説明が流れ終わるまでとどまる
     （次の施設に入ると一緒に上へ抜ける）。ロゴは写真の上に重なる（白に変わる。main.js の initLogoInk）。
     スマホは写真の上にロゴの分の高さを足す。説明が読めるよう、写真の高さは画面の 55%（＋ロゴの分）まで */
  position: sticky;
  top: 0;
  z-index: 3;
  display: block;
  width: 100%;
  /* 写真は 16:9 のまま見せる（施設の写真はどれも 960×540）。スマホは画面の幅いっぱいの 16:9 */
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
/* PC：画面いっぱいの幅で 16:9 にすると画面より高くなるので、高さを画面の 70% までにし、
   写真はその高さで 16:9 の幅にして真ん中に置く（左右の余りは地の色） */
@media (min-width: 1024px) {
  .cfac__hero { --cfac-h: min(56.25vw, 70svh); aspect-ratio: auto; height: var(--cfac-h); }
  .cfac__hero:not(.cfac__hero--noimg) .cfac__hero-link { left: 50%; right: auto; width: calc(var(--cfac-h) * 16 / 9); transform: translateX(-50%); }
}
.cfac__hero--noimg { aspect-ratio: auto; height: auto; min-height: 200px; }
/* .gallery（写真の升目）の grid を打ち消す（写真の無い施設で、名前の帯が升目の1列ぶんの幅に縮んでいた） */
.cfac__hero.gallery { display: block; }
.cfac__hero-link { position: absolute; inset: 0; border-radius: 0; background: var(--ink); }
.cfac__hero-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  transition: transform 1.2s var(--ease);
}
.cfac__hero:hover .cfac__hero-link img { transform: scale(1.04); }
/* 写真の上の文字（施設名・サーフェス・面数など）。写真の右下に置く。下端からごく薄い暗い帯を敷き、文字の影で読ませる。
   押しても下の写真のリンクに通す */
.cfac__hero-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 0 18px;
  background: linear-gradient(0deg, rgba(26, 26, 26, .4) 0%, rgba(26, 26, 26, 0) 100%);
  color: var(--white);
  text-align: right;
  pointer-events: none;
}
@media (min-width: 1024px) { .cfac__hero-cap { padding: 72px 0 28px; } }
/* 写真の上のコートの情報は白い文字（影で読ませる）。PC は少し大きく */
.cfac__hero-cap .cinfo { color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 10px rgba(0, 0, 0, .4); }
.cfac__hero-cap .cinfo__main { color: #fff; background: var(--red); padding: 1px 8px; border-radius: 3px; text-shadow: none; }
@media (min-width: 1024px) { .cfac__hero-cap .cinfo { font-size: 15px; } }
/* 写真は枠いっぱいに（.gallery__item img の縦横比の指定を打ち消す。打ち消さないと写真の下に地の色がのぞいていた） */
.cfac__hero .cfac__hero-link img { width: 100%; height: 100%; aspect-ratio: auto; max-height: none; object-fit: cover; }
.cfac__hero-cap .cfac__name { justify-content: flex-end; }
.cfac__hero-cap .cfac__badges { justify-content: flex-end; }
.cfac__hero--noimg .cfac__hero-cap { position: static; padding: 40px 0 28px; background: var(--ink); }
.cfac__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  word-break: keep-all;  /* 施設名は途中で折り返さない */
  font: 700 clamp(24px, 6vw, 40px)/1.25 var(--fjp);
  letter-spacing: .02em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 14px rgba(0, 0, 0, .45);
}
.cfac__name .court-pin { width: .8em; height: .8em; flex: none; color: var(--red); }
.cfac__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
/* 写真が出たあとで文字を出す。施設名とバッジのあいだに線があるつもりで、施設名はその線から上へ、バッジは線から下へ滑り出す。
   .cfac__cap-top / .cfac__cap-bottom が切り取りの箱（線の位置＝上の箱の下端・下の箱の上端）。
   写真の動き（rv-zoom .2s 遅れ + .9s）がほぼ収まった .75s から。動きを減らす設定（.jsrv 無し）では動かさない */
.cfac__cap-top { overflow: hidden; padding-bottom: 6px; }
.cfac__cap-bottom { overflow: hidden; margin-top: 8px; padding-top: 2px; }
body.jsrv .cfac.rv:not(.on) .cfac__name { transform: translateY(115%); opacity: 0; }
body.jsrv .cfac.rv:not(.on) .cfac__badges { transform: translateY(-115%); opacity: 0; }
body.jsrv .cfac.rv.on .cfac__name { animation: cfac-name-in .6s cubic-bezier(.16, 1, .3, 1) .75s both; }
body.jsrv .cfac.rv.on .cfac__badges { animation: cfac-badges-in .6s cubic-bezier(.16, 1, .3, 1) .85s both; }
@keyframes cfac-name-in { from { transform: translateY(115%); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes cfac-badges-in { from { transform: translateY(-115%); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
/* コート案内の行からつないで来た施設（Base.astro の pagereveal が .cfac--vt を付ける）は、写真と施設名がページ間の
   ビュートランジションで移ってくるので、この文字の動きと写真のズームは流さない */
body.jsrv .cfac.rv.on.cfac--vt .cfac__name, body.jsrv .cfac.rv.on.cfac--vt .cfac__badges, body.jsrv .cfac.rv.on.cfac--vt .cfac__hero-link img { animation: none; transform: none; opacity: 1; }
.cfac__hero .badge {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.cfac__hero .badge--open { background: var(--red); border-color: var(--red); }
.cfac__hero .badge--light { background: #D99A00; border-color: #D99A00; }
.cfac__hero .badge--img { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.cfac__body { padding-top: 28px; }
.cfac__desc { margin: 0; font: 400 15px/1.9 var(--fjp); color: var(--gray-800); }
.cfac .deflist { margin-top: 20px; }
.cfac__tbd { color: var(--gray-500); }
.cfac__maplink { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; font: 700 12px/1.5 var(--fjp); color: var(--red); white-space: nowrap; }
.cfac__maplink:hover .aw { transform: translateX(3px); }
.cfac .deflist__val a:not(.cfac__maplink) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
/* 予約・問い合わせのボタン。表から切り離した枠（薄いグレーの面）に */
.cfac__actions {
  margin-top: 28px;
  padding: 18px 18px 20px;
  background: var(--gray-050);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.cfac__actions-title { margin: 0 0 12px; font: 700 13px/1.5 var(--fjp); letter-spacing: .06em; color: var(--gray-600); }
.cfac__actions-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--red); vertical-align: 1px; }
.cfac__actions-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cfac__actions .btn { width: auto; min-height: 46px; padding: 12px 20px; font-size: 14px; }
@media (max-width: 639px) { .cfac__actions .btn { width: 100%; } }

/* ============ 13. CTA / フッター ============ */
.cta {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
}
@media (min-width: 640px) { .cta { grid-template-columns: 5fr 7fr; min-height: 320px; } }
.cta__media { position: relative; overflow: hidden; min-height: 200px; }
.cta__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta__body { background: var(--gray-050); display: flex; align-items: center; }
.cta__inner { padding: 48px var(--gutter); max-width: 680px; }
@media (min-width: 1024px) { .cta__inner { padding: 64px 72px; } }
.cta__head { display: flex; gap: 14px; align-items: flex-start; }
.cta__head .sec-head__mark { margin-top: 8px; }
.cta__title {
  margin: 0;
  font: 700 21px/1.5 var(--fjp);
  letter-spacing: .04em;
  color: var(--ink);
}
@media (min-width: 1024px) { .cta__title { font-size: 26px; } }
.cta__text {
  margin: 16px 0 0;
  font: 400 15px/1.9 var(--fjp);
  letter-spacing: .03em;
  color: var(--gray-800);
}
.cta__text + .cta__text { margin-top: 10px; }
/* 締めの一言。少し離して、太めに置く。 */
.cta__close {
  margin: 20px 0 0;
  font: 700 16px/1.7 var(--fjp);
  letter-spacing: .06em;
  color: var(--ink);
}
@media (min-width: 1024px) { .cta__close { font-size: 17px; } }
.cta .btn { margin-top: 28px; }

/* ---- 見出しの塗り替え（ヒーロー以外）----
   「黒｜グレー」の帯を文字の形に切り抜いて流し、その上に細い白のスラッシュ（/）を
   重ねて一緒に走らせる。グレーで出たあと 0.2秒 はそのまま置き、そこから
   スラッシュが左から右へ抜けていって、通ったところが黒へ変わる。
   2枚は大きさも位置もそろえてあるので、流すとスラッシュが境目の上に乗り続ける。
   最初に出るときだけ動かす（.rv は一度 .on が付いたら外れないので自然に1回きり）。 */
.sec-head__title, .page-title, .sub-head {
  background-image:
    var(--slash),
    linear-gradient(var(--slash-deg),
      var(--ink) 0 42%,
      var(--gray-300) 42% 100%);
  background-size: 300% 100%;
  background-position: 6% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* JS が動くときだけ、出る前をグレーにしておく */
body.jsrv .rv .sec-head__title,
body.jsrv .rv .sub-head { background-position: 72% 0; }
body.jsrv .rv.on .sec-head__title,
body.jsrv .rv.on .sub-head { animation: title-slash var(--sweep-dur) var(--sweep-ease) 0s both; }
/* ページ見出しは読み込み時に出るので、そのまま走らせる */
.page-title { animation: title-slash var(--sweep-dur) var(--sweep-ease) .1s both; }

@media (prefers-reduced-motion: reduce) {
  .sec-head__title, .page-title, .sub-head,
  body.jsrv .rv .sec-head__title, body.jsrv .rv .sub-head,
  body.jsrv .rv.on .sec-head__title, body.jsrv .rv.on .sub-head {
    animation: none;
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .sec-head__title, .page-title, .sub-head,
  body.jsrv .rv .sec-head__title, body.jsrv .rv .sub-head,
  body.jsrv .rv.on .sec-head__title, body.jsrv .rv.on .sub-head {
    animation: none;
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}

/* ---- 見出しの塗り替え（ほかの見出しと同じ作り）----
   「黒｜薄いグレー」の帯を文字の形に切り抜いて右から左へ流し、細い白のスラッシュ（/）を
   重ねる。見た目はスラッシュが左から右へ走り、通ったところが黒く変わる。
   グレーは --gray-300。--gray-200 だと白に近すぎて、白いスラッシュが埋もれてしまう。
   .rv が .on になってから走らせるので、画面に入ったときに動く。 */
.ink-sweep {
  display: inline;
  background-image:
    var(--slash),
    linear-gradient(var(--slash-deg),
      var(--ink) 0 42%,
      var(--gray-300) 42% 100%);
  background-size: 300% 100%;
  background-position: 6% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* JS が動くときだけ、出る前を薄いグレーにしておく */
body.jsrv .ink-sweep { background-position: 72% 0; opacity: 0; }
body.jsrv .rv.on .ink-sweep {
  animation: sweep-hold var(--sweep-dur) var(--sweep-ease) .05s both;
}
/* 動きを減らす設定と、切り抜きが使えない環境では、黒い文字をそのまま出す */
@media (prefers-reduced-motion: reduce) {
  .ink-sweep, body.jsrv .ink-sweep, body.jsrv .rv.on .ink-sweep {
    animation: none;
    opacity: 1;
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .ink-sweep, body.jsrv .ink-sweep, body.jsrv .rv.on .ink-sweep {
    animation: none;
    opacity: 1;
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}

.site-footer { position: relative; background: #262626; overflow: hidden; }  /* スマホのメニューと同じ、わずかにグレーに寄せた地 */
.site-footer .footer-deco { opacity: .45; }  /* 四角は地との差を控えめに（メニューと同じ） */
/* 地の黒とわずかに色の違う四角を散らした背景。
   位置・大きさ・色・速さは要素ごとの変数で持たせる。
   止まっているときも常に少しだけ漂い、スクロール中は奥行きの分だけ大きく動く。 */
.footer-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--c);
  border-radius: 3px;
  /* 常時の漂い。止まって見ていても動きが分かる速さにしてある。transform を使う。 */
  animation: footer-drift var(--d) ease-in-out var(--delay) infinite alternate;
  /* スクロールに合わせた上下。transform とは別枠の translate なので、
     上の漂いと打ち消し合わない。--sy は main.js がフッターに書き込む。
     --depth は四角が大きいほど大きく（0.2〜1.7）、手前ほど速く動いて奥行きが出る。 */
  translate: 0 calc(var(--sy, 0px) * var(--depth, .5));
  will-change: translate;
}
@keyframes footer-drift {
  from { transform: none; }
  to   { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-dot { animation: none; }
}
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  padding-block: 56px 40px;
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 280px repeat(4, 1fr);
    gap: 44px;
    padding-block: 96px 100px;
    align-items: start;
  }
}
.site-footer__brand { grid-column: 1 / -1; margin-bottom: 32px; }
@media (min-width: 1024px) { .site-footer__brand { grid-column: auto; margin-bottom: 0; } }
.site-footer__brand img { width: auto; height: 46px; }
@media (min-width: 1024px) { .site-footer__brand img { height: 56px; } }
/* スマホ・タブレット：フッターを画面いっぱいの高さ（今の画面の高さ）にし、ロゴをヘッダーのロゴと同じ位置（上 12px＋帯の中ほど・左は余白）・
   同じ大きさに置く。いちばん下までスクロールすると、画面の上端に浮いているヘッダーのロゴにちょうど重なる
   （重なるとヘッダーのロゴは消し、フッターのロゴだけを見せる。main.js の initLogoInk の .is-over-footer） */
@media (max-width: 1023px) {
  /* 高さは「今の」画面の高さ（dvh）。ブラウザのアドレスバーが出ている・引っ込んでいるどちらでも、いちばん下までスクロールすると
     フッターの上端が画面の上端にそろう（svh だとバーが引っ込んだときに足りず、ロゴがずれていた）。
     dvh が使えないブラウザは main.js が今の画面の高さ（innerHeight）を --vp-h に入れる */
  .site-footer { min-height: var(--vp-h, 100vh); min-height: 100dvh; display: flex; flex-direction: column; }
  .site-footer__grid { padding-top: calc(12px + (var(--header-h) - 12px - 46px) / 2); }
  .site-footer__bottom { margin-top: auto; }
  .site-header .site-header__logo { transition: opacity .25s ease; }
  .site-header.is-over-footer:not(.is-menu) .site-header__logo { opacity: 0; }
}
/* 背の低い画面でも1画面に収まるよう、フッターの中の余白を詰める */
@media (max-width: 1023px) and (max-height: 720px) {
  .site-footer__grid { padding-bottom: 20px; }
  .site-footer__brand { margin-bottom: 20px; }
  .site-footer__bottom { padding-bottom: 24px; gap: 14px; }
}
/* ロゴの下の SNS（管理画面の Social に入れたものだけ出る） */
.site-footer__sns { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font: 700 13px/1 var(--flt);
  letter-spacing: .04em;
  transition: color .3s ease;
}
.sns-link:hover { color: var(--gray-300); }
.sns-link__ico { width: 22px; height: 22px; }

.fw { display: block; color: #fff; cursor: pointer; transition: color .3s ease; }
.fw:hover { color: var(--gray-300); }
.fw--head {
  border-top: 1px solid rgba(255, 255, 255, .28);
  padding: 18px 0 24px;
  font: 700 15px/1.4 var(--fjp);
  letter-spacing: .02em;
}
@media (min-width: 1024px) { .fw--head { padding-bottom: 34px; } }
.fw--head-tight { padding-bottom: 22px; }
.fw--sub {
  padding: 0 0 14px;
  font: 400 14px/1.6 var(--fjp);
  color: rgba(255, 255, 255, .75);
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 48px;
  }
}
.site-footer__utils { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .site-footer__utils { flex-direction: row; gap: 32px; } }
.site-footer__utils .fw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 14px/1 var(--fjp);
}
.site-footer__copy {
  font: 400 12px/1.6 var(--flt);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
}
/* 著作権の表記の上のキャッチコピー（フッター・スマホのメニュー共通。ヒーローの PLAY BEYOND. と同じ書体） */
.site-footer__end { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 1024px) { .site-footer__end { align-items: flex-end; text-align: right; } }
.tagline { display: block; margin: 0; font: 700 22px/1.1 var(--fdisp); letter-spacing: .06em; color: #fff; }
@media (min-width: 1024px) { .site-footer__end .tagline { font-size: 26px; } }
.mobile-nav__copy.mobile-nav__tagline { margin-top: 24px; }
.mobile-nav__tagline + .mobile-nav__copy { margin-top: 6px; }


/* ============ リンク集ページ ============
   種類ごとの見出しの下に一覧（絞り込みのタブは置かない）。
   1件は1つの枠に「バナー → 団体名と ↗ → 説明（全文）」を収め、枠全体の下地に同じバナーを拡大してぼかしたものを敷く。
   スマホは1列、640px から2列、1024px から3列（同じ段の枠は高さをそろえる） */
.lgroup[hidden] { display: none; }
.lgroup + .lgroup { margin-top: 64px; }
.llist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 48px 32px; }
@media (min-width: 640px) { .llist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .llist { grid-template-columns: repeat(3, 1fr); gap: 56px 36px; } }
.llist > li { display: flex; }
.litem {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 20px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  transition: border-color .3s ease;
}
.litem:hover { color: inherit; border-color: var(--gray-300); }
/* 枠全体の下地：同じバナーを枠いっぱいに拡大して強くぼかしたもの（ガウスぼかし）。
   明るく薄めて色の気配だけを残し、全体に白を薄く、下へ行くほど濃く重ね（::before）、団体名と説明を読みやすくする。
   ぼかしを強くすると縁が暗く欠けるので、枠より大きめ（inset）に敷く */
.litem__bg {
  position: absolute;
  inset: -30%;
  background: center / cover no-repeat;
  filter: blur(40px) saturate(1.15) brightness(1.15);
  opacity: .42;
}
.litem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .3) 40%, rgba(255, 255, 255, .72) 100%);
  pointer-events: none;
}
.litem > :not(.litem__bg) { position: relative; }
.litem__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4.2 / 1;
  padding: 2% 3%;
}
.litem__media img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(26, 26, 26, .12); transition: transform .5s var(--ease); }
.litem:hover .litem__media img { transform: scale(1.03); }
.litem__noimg { font: 700 15px/1.5 var(--fjp); color: var(--gray-500); text-align: center; }
.litem__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.litem__name { font: 700 18px/1.4 var(--fjp); letter-spacing: .04em; color: var(--ink); transition: color .2s ease; }
.litem__ext { flex: none; font: 400 24px/1 var(--flt); color: var(--ink); transition: transform .3s ease, color .2s ease; }
.litem:hover .litem__name, .litem:hover .litem__ext { color: var(--red); }
.litem:hover .litem__ext { transform: translate(2px, -2px); }
.litem__desc { font: 400 14px/1.9 var(--fjp); letter-spacing: .04em; color: var(--gray-800); }
.sns-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .sns-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.sns-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--ink);
  transition: border-color .3s ease, transform .3s ease;
}
.sns-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.sns-card__ico { width: 32px; height: 32px; flex: none; color: var(--red); }
.sns-card__text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sns-card__name { font: 700 15px/1.4 var(--fjp); }
.sns-card__desc { font: 400 13px/1.6 var(--fjp); color: var(--gray-600); }

/* 動画の埋め込み（テニス祭りの YouTube） */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ 14. 下層ページ ============ */
.page-head {
  position: relative;
  background: var(--gray-050);
  border-bottom: 1px solid var(--gray-200);
  padding-block: 32px 40px;
  overflow: hidden;
}
/* 下層ページも同じ考え方で、英語見出し＋日本語見出しの中心に大きな英字を合わせる。
   セクションと違い、上端からタイトルまでにパンくず（12px/1.6）とその下の余白が入る。 */
.page-head {
  --sec-pt: calc(32px + 12px * 1.6 + 20px);
  --head-half: calc((12px * 1.4 + 8px + 26px * 1.4) / 2);
}
@media (min-width: 1024px) {
  .page-head {
    padding-block: 40px 56px;
    --sec-pt: calc(40px + 12px * 1.6 + 20px);
    --head-half: calc((12px * 1.4 + 8px + 38px * 1.4) / 2);
  }
}

/* 白地にする下層ページ（404 だけ。大会情報もほかの下層ページと同じ灰色の帯にそろえた）。
   背景の英字も白地用の濃さに戻す。 */
.page-head--plain { background: var(--white); border-bottom: 0; }
.page-head--plain .ghost { color: var(--ghost); }
/* 大会一覧の絞り込み（灰色の帯には入れず、一覧のすぐ上） */
.chips--list { margin: 28px 0 0; }



.breadcrumb {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 400 12px/1.6 var(--fjp);
  color: var(--gray-500);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--gray-300); }

/* ページの見出しも同じ型（■ ENGLISH ／ 次の行に日本語） */
.page-title-row {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  margin-top: 20px;
}
.page-title-row > div { display: contents; }
.page-title {
  grid-column: 1 / -1;
  margin: 0;
  font: 700 26px/1.4 var(--fjp);
  letter-spacing: .04em;
  color: var(--ink);
}
@media (min-width: 1024px) { .page-title { font-size: 38px; } }
.page-title__en {
  margin: 0;
  font: 700 12px/1.4 var(--flt);
  letter-spacing: .12em;
  color: var(--red);
  text-transform: uppercase;
}
.page-lead {
  position: relative;
  margin: 20px 0 0;
  max-width: 46em;
  font: 400 15px/1.9 var(--fjp);
  letter-spacing: .03em;
  color: var(--gray-800);
}
/* 大会ページの上部：バッジの行と、その下の日程・会場・種目（大会情報の一覧と同じ .tl-item__info）。.page-lead のあとに置く */
.page-lead--tags { display: flex; align-items: center; max-width: none; margin-top: 20px; }
.tl-item__info--head { position: relative; max-width: 760px; margin-top: 18px; }

/* 小見出し（h3 相当） */
.sub-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  font: 700 20px/1.5 var(--fjp);
  letter-spacing: .03em;
  color: var(--ink);
}
.sub-head::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-top: 8px;
  background: var(--red);
}
@media (min-width: 1024px) { .sub-head { font-size: 22px; } }

.prose { font: 400 15px/1.95 var(--fjp); letter-spacing: .03em; color: var(--gray-800); }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.bullet-list { display: flex; flex-direction: column; gap: 10px; }
.bullet-list li {
  position: relative;
  padding-left: 20px;
  font: 400 15px/1.8 var(--fjp);
  color: var(--gray-800);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 8px; height: 8px;
  background: var(--red);
}

/* パネル / カード */
.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
}
@media (min-width: 1024px) { .panel { padding: 32px; } }
.panel--tint { background: var(--red-tint); border-color: rgba(216, 35, 42, .2); }
.panel--gray { background: var(--gray-050); border-color: var(--gray-200); }
/* 見落としてほしくない注意（左に赤い罫を立てる） */
.panel--accent { background: var(--red-tint); border-color: transparent; border-left: 4px solid var(--red); }

/* 登録費の表。区分ごとに市登録・県登録を並べて見せる。 */
.fee-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font: 400 14px/1.6 var(--fjp);
}
.fee-table th, .fee-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: middle;
}
.fee-table thead th {
  background: var(--gray-050);
  border-bottom: 1px solid var(--gray-300);
  font: 700 13px/1.5 var(--fjp);
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.fee-table tbody th {
  width: 32%;
  font: 700 14px/1.6 var(--fjp);
  color: var(--ink);
}
.fee-table__free { background: var(--gray-050); }
/* 各委員会の表（協会について）。委員の列が長いぶん、委員会名と人名の列が狭められて
   「玉川 裕｜康」のように名前の途中で折れていた。名前は折り返さず、委員の列だけで折り返す。 */
.fee-table--committee { min-width: 0; }
.fee-table--committee tbody th { width: auto; white-space: nowrap; }
.fee-table--committee .nowrap { white-space: nowrap; }
.fee-table--committee td:last-child { min-width: 18em; }
.fee {
  font: 700 22px/1 var(--flt);
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
}
.fee__yen { font: 700 13px/1 var(--fjp); margin-left: 3px; }
.fee--free { font: 700 18px/1 var(--fjp); color: var(--red); }
/* 入会案内の登録費：スマホでも横にずらさず幅に収める（余白と文字を詰め、区分名は折り返してよい） */
.fee-table--fit { min-width: 0; table-layout: fixed; }
.fee-table--fit tbody th { width: 34%; }
.fee-table__sub { display: inline-block; }
@media (max-width: 639px) {
  .fee-table--fit th, .fee-table--fit td { padding: 12px 8px; }
  .fee-table--fit thead th .reg { min-width: 0; width: 100%; padding: 0 6px; }
  .fee-table--fit tbody th { font-size: 13px; }
  .fee-table--fit .fee { font-size: 19px; }
  .fee-table--fit .fee__yen { font-size: 12px; }
  .fee-table--fit .fee--free { font-size: 16px; }
}

/* 入会案内の登録の種類。大会情報の「登録区分」の札（.reg--shi／.reg--ken）と同じ塗り分け。
   市（団体）＝赤の塗り・白文字、県（団体）と個人（市・県）＝赤い線・赤文字 */
.regcard {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  color: var(--red);
}
.regcard__head { padding: 22px 22px 6px; }
.regcard__title { margin: 0; font: 700 18px/1.5 var(--fjp); letter-spacing: .03em; color: inherit; }
.regcard__desc { margin: 6px 0 0; font: 400 13px/1.8 var(--fjp); color: inherit; opacity: .85; }
.regcard__file {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 16px 22px 22px;
  color: inherit;
  transition: background-color .25s ease;
}
.regcard__type {
  flex: none;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font: 700 11px/1.3 var(--flt);
  letter-spacing: .06em;
}
.regcard__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.regcard__name { font: 700 15px/1.5 var(--fjp); color: inherit; }
.regcard__note { font: 400 11px/1.6 var(--fjp); color: inherit; opacity: .8; }
.regcard__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font: 700 15px/1 var(--flt);
  transition: background-color .25s ease, color .25s ease;
}
/* 県（団体）・個人（市・県）：赤い線・赤文字 */
.regcard--ken .regcard__file:hover { background: var(--red-tint); color: var(--red); }
.regcard--ken .regcard__file:hover .regcard__go { background: var(--red); border-color: var(--red); color: #fff; }
/* 市（団体）：赤の塗り・白文字 */
.regcard--shi { background: var(--red); color: #fff; }
.regcard--shi .regcard__type { background: #fff; color: var(--red); }
.regcard--shi .regcard__file:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.regcard--shi .regcard__file:hover .regcard__go { background: #fff; color: var(--red); }

.panel__title {
  margin: 0 0 12px;
  font: 700 17px/1.5 var(--fjp);
  letter-spacing: .02em;
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .card-grid { gap: 24px; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* 定義リスト（開催概要など） */
.deflist { border-top: 1px solid var(--gray-200); }
.deflist__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-200);
}
@media (min-width: 640px) {
  .deflist__row { grid-template-columns: 160px 1fr; gap: 24px; padding: 18px 4px; }
}
.deflist__key {
  font: 700 14px/1.7 var(--fjp);
  letter-spacing: .04em;
  color: var(--ink);
}
.deflist__val { font: 400 15px/1.8 var(--fjp); color: var(--gray-800); }

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- 大会一覧（大会情報ページ）----
   1大会を1ブロックで出す。見出しはサイト共通の赤い角マーク、下に細い罫。
   その下に 日程・会場・種目、要項／申込書／ドロー／結果 の4ボタン、備考 の順。
   表だと7列を横に読まされるが、ブロックなら上から順に読めば済むので
   スマホで横にずらさなくてよい。ボタンは共通の .btn--outline をそのまま使う。 */
/* 拡大表示（.tl__cards）は、トップの大会カード（.tcard）をスマホ1列・タブレット2列・PC3列で並べる。
   カードの高さは同じ行でそろえる。.tl-item の一式は大会ページの見出し（EventMeta.astro）が使っている */
.tl__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .tl__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tl__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tl__card { display: flex; }
.tl__card[hidden] { display: none; }
.tl__cards .tcard { flex: 1 1 auto; width: auto; max-width: none; }
.tl-item[hidden] { display: none; }

.tl-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.tl-item__head .sec-head__mark { width: 12px; height: 12px; margin-top: 9px; }
.tl-item__title {
  /* 角マークと同じ行に残るよう、折り返しの下限を小さめにしておく（バッジは次の行へ） */
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
  font: 700 19px/1.5 var(--fjp);
  letter-spacing: .03em;
  color: var(--ink);
}
@media (min-width: 1024px) { .tl-item__title { font-size: 22px; } }
.tl-item__title a { transition: color .3s ease; }
.tl-item__title a:hover { color: var(--red); }
.tl-item__tags { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding-left: 26px; }
@media (min-width: 640px) { .tl-item__tags { margin-left: auto; padding-left: 0; } }
.tl-item--done .tl-item__head .sec-head__mark { background: var(--gray-300); }
.tl-item--done .tl-item__title { color: var(--gray-600); }

/* 日程・会場を左に、種目（文言＋ピクトグラム）を右に。
   画面（枠）をまん中で二つに分け、右半分は左端（まん中の線）にそろえて種目のアイコンと文言を置く。
   1行目：日付（左）と種目（右・まん中から左揃え）、2行目：会場（左）とピクトグラム（右下） */
.tl-item__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-items: start; margin-top: 20px; }
/* 会場名・種目名は文字の途中で折り返さず、区切り（／・）の後ろの <wbr> でだけ折り返す。
   会場名は左半分に入り切らなくても途中で折らず、そのまま右へはみ出させる（右半分の2行目は右下の絵だけなので重ならない） */
.tl-item__place, .tl-item__event-label { word-break: keep-all; }
.tl-item__event-label { overflow-wrap: anywhere; }
.tl-item__place { white-space: nowrap; }
/* dl は箱にせず（display: contents）、日程の行と会場の行をそれぞれ grid の左列に置く */
.tl-item__meta { display: contents; }
.tl-item__meta .tl-item__row { grid-column: 1; min-width: 0; }
.tl-item__event { display: contents; }
.tl-item__event-icons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 8px; }
.tl-item__event-icons .evicon { height: 40px; }
.tl-item__event-icons[data-n="3"] .evicon, .tl-item__event-icons[data-n="4"] .evicon { height: 32px; }
@media (min-width: 640px) {
  .tl-item__event-icons { gap: 12px; }
  .tl-item__event-icons .evicon, .tl-item__event-icons[data-n="3"] .evicon, .tl-item__event-icons[data-n="4"] .evicon { height: 52px; }
}
.tl-item--done .tl-item__event-icons .evicon { filter: grayscale(1); opacity: .5; }
.tl-item__event-text { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; }
.tl-item__event-icons { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; }
.tl-item__event-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font: 700 14px/1.6 var(--fjp);
  letter-spacing: .03em;
  color: var(--ink);
}
.tl-item__event-text .tl-item__ico { flex: none; margin-top: 2px; color: var(--gray-600); }
.tl-item__event-text { color: var(--gray-600); }

.tl-item__row { display: flex; align-items: flex-start; gap: 10px; }
.tl-item__row dt { flex: none; display: flex; align-items: center; height: 24px; color: var(--gray-600); }
.tl-item__row dd {
  margin: 0;
  font: 400 15px/1.6 var(--fjp);
  letter-spacing: .03em;
  color: var(--gray-800);
}
.tl-item__ico { width: 18px; height: 18px; }
/* 狭い画面（360px 級）では会場名と種目名を少し小さく・字間を詰めて、どちらも区切り以外で折れないようにする。
   上の font の一括指定より後ろに置くこと */
@media (max-width: 639px) {
  .tl-item__row { gap: 8px; }
  .tl-item__row dd { font-size: 14px; }
  .tl-item__event-text { font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 374px) {
  .tl-item__row dd { font-size: 13px; letter-spacing: 0; }
  .tl-item__event-icons .evicon, .tl-item__event-icons[data-n="3"] .evicon, .tl-item__event-icons[data-n="4"] .evicon { height: 28px; }
}
/* 日程は大会カード・個別ページと同じく Barlow の「2026.10.18 SUN」 */
.tl-item__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.tl-item__ymd { font: 700 18px/24px var(--flt); letter-spacing: .03em; color: var(--ink); }
.tl-item__dow { font: 700 12px/24px var(--flt); letter-spacing: .1em; color: var(--red); }
.tl-item__date-note { font: 400 13px/24px var(--fjp); letter-spacing: 0; color: var(--gray-500); }
.tl-item--done .tl-item__ymd, .tl-item--done .tl-item__dow { color: var(--gray-500); }
/* 狭い画面では日付を少し小さくして、曜日と同じ行に収める（上の font の一括指定より後ろに置くこと） */
@media (max-width: 374px) { .tl-item__date { gap: 0 6px; } .tl-item__ymd { font-size: 16px; letter-spacing: .01em; } }
.tl-item--done .tl-item__row dd { color: var(--gray-600); }

/* 3つのボタン（要項・ドロー・結果）。スマホでも 1 行に並べる（小さめ。矢印は 640px から） */
.tl-item__btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .tl-item__btns { max-width: 580px; gap: 12px; }
}
.tl-btn { width: 100%; gap: 12px; padding-inline: 20px; }
@media (max-width: 639px) {
  .tl-btn { justify-content: center; gap: 0; min-height: 44px; padding: 10px 6px; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
  .tl-btn .aw { display: none; }
}
@media (max-width: 374px) { .tl-btn { font-size: 12px; letter-spacing: 0; padding-inline: 4px; } }
.tl-btn:hover .aw { transform: translateX(4px); }
/* まだ素材の無いもの。押せないことが色で分かるよう、枠を消して薄い地にする */
.tl-btn--off {
  border: 1px solid var(--gray-100);
  background: var(--gray-100);
  color: var(--gray-300);
  cursor: default;
  pointer-events: none;
  justify-content: center;
}

/* 会場名の「ヤマタスポーツパーク」のロゴ（Venue.astro）。文字の高さに合わせて行の中に置く */
.venue-logo { display: inline-block; height: 1.1em; width: auto; vertical-align: -.18em; }

/* ---- 大会一覧の切り替え（TournamentList.astro）----
   .tl--rows のときは縮小表示（.tlx）、外れているときは拡大表示（.tl__cards）だけを出す */
.tl--rows .tl__cards, .tl:not(.tl--rows) .tlx { display: none; }
/* 表示を切り替えたときの出方（main.js の initViewSwitch が .is-switching・.sw-wait／.sw-in・--si を付ける）。
   ページを開いたときと、スクロールして見えてきたときも同じ。
   縮小表示：大会の行が少し小さい状態から等倍へズームしながら順に出る。
   拡大表示：カードが少し小さい状態から等倍へズームしながら順に出る */
.tl.is-switching .tlx__head { animation: tl-fade .4s ease both; }
/* 画面に入るまでは隠して待たせ（.sw-wait）、入ったら出す（.sw-in）。同じときに入ったものは --si で少しずつずらす */
.tl .sw-wait { opacity: 0; }
.tlx__body .tlx__row.sw-wait { transform: scale(.94); }
.tl__card.sw-wait { transform: scale(.86); }
.tlx__body .tlx__row.sw-in { animation: tl-row-in .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--si, 0), 14) * 40ms); }
.tl__card.sw-in { animation: tl-card-in .65s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--si, 0), 9) * 70ms); }
@keyframes tl-fade { from { opacity: 0; } }
@keyframes tl-row-in { from { opacity: 0; transform: scale(.94); } }
@keyframes tl-card-in { from { opacity: 0; transform: scale(.86); } }
@media (prefers-reduced-motion: reduce) {
  .tl.is-switching .tlx__head, .tlx__body .tlx__row.sw-in, .tl__card.sw-in { animation: none; }
  .tl .sw-wait { opacity: 1; transform: none; }
}

/* ---- 縮小表示（.tlx）：1大会1行の表 ----
   列の幅は --tlx-cols（左から 大会名｜日程｜状態｜登録区分｜種目｜会場｜締切｜予備日｜要項｜ドロー｜結果）。
   状態・登録区分の列はバッジが欠けない幅にしてある。どの列も中身は中央にそろえる。
   左端の大会名の列だけは横スクロールしても固定（position: sticky; left: 0）。
   項目名の行（.tlx__head）は本体の外に置いて画面の上端に固定し（position: sticky; top）、横の位置は本体の横スクロールについていかせる：
     対応ブラウザ … スクロール連動アニメーション（本体の scroll-timeline --tlx-x に項目名の行の transform を結ぶ）。
                    ブラウザがスクロールと同じコマで動かすので、指の動きにぴったりついてくる（.tlx--sda。main.js が付ける）
     それ以外     … main.js の initTlx が本体のスクロール量に合わせて transform でずらす
   スマホでは上端にロゴとメニューのボタンが浮いているので、その下（--header-h）に止める。
   PC はヘッダーが出ているあいだはその下、下へ読み進めてヘッダーが引っ込んだら画面の上端に止める */
.tlx {
  --tlx-cols: 150px 60px 92px 96px 150px 172px 64px 120px 68px 68px 68px;
  position: relative;
  margin-top: 8px;
  timeline-scope: --tlx-x;  /* 本体の横スクロールの進み具合（下の .tlx__body）を、項目名の行からも使えるようにする */
}
@media (min-width: 768px) { .tlx { --tlx-cols: 220px 72px 100px 104px 170px 190px 72px 130px 76px 76px 76px; } }
.tlx__row {
  display: grid;
  grid-template-columns: var(--tlx-cols);
  width: max-content;
  min-width: 100%;
}
.tlx__head {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--ink);
}
.tlx__head .tlx__row { will-change: transform; }
/* 項目名の行の「大会名」は、行ごと左へずらす分を打ち消して、本体の固定列の上にとどめる */
.tlx__head .tlx__cell--name { position: relative; left: auto; z-index: 1; background: var(--white); }
/* スクロール連動アニメーション（--tlx-max は送れる最大の幅。main.js が測って入れる） */
.tlx--sda .tlx__head .tlx__row { animation: tlx-shift linear both; animation-timeline: --tlx-x; }
.tlx--sda .tlx__head .tlx__cell--name { animation: tlx-keep linear both; animation-timeline: --tlx-x; }
@keyframes tlx-shift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--tlx-max, 0px)), 0, 0); } }
@keyframes tlx-keep { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--tlx-max, 0px), 0, 0); } }
/* スマホ：止まっているあいだは、項目名の行より上（ロゴとメニューのボタンの裏）も白で覆い、下を流れる行が透けないようにする */
@media (max-width: 1023px) {
  .tlx__head.is-stuck { box-shadow: 0 -30px 0 var(--white), 0 -60px 0 var(--white), 0 calc(-1 * var(--header-h)) 0 var(--white); }
}
@media (min-width: 1024px) {
  .tlx__head { transition: top .35s var(--ease); }
  body:has(.site-header--hidden) .tlx__head { top: 0; }
}
.tlx__row--head .tlx__cell {
  padding: 10px 8px;
  font: 700 11px/1.4 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-600);
  white-space: nowrap;
}
.tlx__body {
  overflow-x: auto;
  overscroll-behavior-x: contain;  /* 端まで送ったときに、ブラウザの「戻る」操作やページの横揺れに伝わらないように */
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-timeline: --tlx-x x;
}
.tlx__body .tlx__row { border-bottom: 1px solid var(--gray-200); }
.tlx__body .tlx__row[hidden] { display: none; }
.tlx__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 12px 8px;
  background: var(--white);
  text-align: center;
}
.tlx__body .tlx__row:hover .tlx__cell { background: var(--gray-050); }
/* 左端（日程・大会名）は固定。横に送ったときは右端に薄い影を付けて、下を流れていく列と分ける */
.tlx__cell--date { padding-left: 4px; padding-right: 4px; gap: 0; }
.tlx__cell--name { position: sticky; left: 0; z-index: 1; }
.tlx.is-scrolled .tlx__cell--name { box-shadow: 6px 0 8px -6px rgba(26, 26, 26, .25); }
/* 日程の列：年（小さく）／月日／曜日 の3段 */
.tlx__y { font: 500 10px/1.3 var(--flt); letter-spacing: .04em; color: var(--gray-500); }
.tlx__md { font: 700 15px/1.25 var(--flt); letter-spacing: .02em; color: var(--ink); }
.tlx__dow { font: 700 10px/1.3 var(--flt); letter-spacing: .1em; color: var(--red); }
/* 大会名：意味の切れ目（<wbr>）でだけ折り返す */
.tlx__name { font: 700 14px/1.5 var(--fjp); letter-spacing: .02em; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 768px) { .tlx__name { font-size: 15px; } }
.tlx__name a { transition: color .3s ease; }
.tlx__name a:hover { color: var(--red); }
.tlx__cell--text { font: 400 13px/1.6 var(--fjp); color: var(--gray-800); word-break: keep-all; overflow-wrap: anywhere; }
.tlx__sub { font-size: 11px; color: var(--gray-500); }
.tlx__row--done .tlx__name, .tlx__row--done .tlx__md { color: var(--gray-600); }
.tlx__row--done .tlx__dow { color: var(--gray-500); }
.tlx .tlx__btn { width: 100%; min-height: 34px; padding: 6px 2px; gap: 0; justify-content: center; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.tlx .tlx__btn .aw { display: none; }
/* 右へ送れることを示す（main.js が送り切ったら .is-end、送れる幅が無ければ .is-fit を付けて消す） */
.tlx__hint {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  margin: 0 2px 8px;
  font: 500 12px/1 var(--flt);  /* SCROLL の文字（以前は 10px） */
  letter-spacing: .18em;
  color: var(--gray-600);
  transition: opacity .3s ease;
}
.tlx__hint .ln-arrow { animation: hs-nudge 1.8s ease-in-out infinite; }
.tlx.is-end .tlx__hint, .tlx.is-fit .tlx__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tlx__hint .ln-arrow { animation: none; } }

/* 絞り込み（左）と表示の切り替え（右）。スマホでも1行に収める */
.tl-tools { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 24px; }
.tl-tools .chips { margin: 0; }
/* 絞り込み：1つの枠の中に「すべて｜受付中｜終了」を並べた切り替え。選んだ所は赤。件数は名前の右に小さく */
.seg { display: inline-flex; flex: 0 1 auto; min-width: 0; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.seg .seg__btn {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  font: 700 13px/1.4 var(--fjp);
}
@media (min-width: 640px) { .seg .seg__btn { padding: 10px 18px; } }
/* 狭い画面（〜419px）は、1行に収まるよう件数を省いて余白を詰める */
@media (max-width: 419px) { .seg .seg__btn { padding: 10px 11px; } .seg__n { display: none; } }
.seg .seg__btn + .seg__btn { border-left: 1px solid var(--gray-300); }
.seg .seg__btn:hover { border-color: var(--gray-300); }
.seg .seg__btn.is-active { border-left-color: var(--red); }
.seg .seg__btn.is-active + .seg__btn { border-left-color: var(--red); }
.seg__n { font: 600 11px/1 var(--flt); letter-spacing: .02em; opacity: .7; }
.seg .seg__btn.is-active .seg__n { opacity: .9; }
/* 表示の切り替え：絵だけの四角いボタン2つ */
.view-switch { display: inline-flex; flex: none; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.view-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--gray-600);
  transition: background-color .25s ease, color .25s ease;
}
.view-switch__btn + .view-switch__btn { border-left: 1px solid var(--gray-300); }
.view-switch__btn:hover { color: var(--ink); }
.view-switch__btn.is-active { background: var(--ink); color: #fff; }
/* 切り替えの絵：縮小表示は細い横線3本、拡大表示はカード4枚（どちらも currentColor で描く） */
.view-switch__ico { position: relative; width: 14px; height: 12px; flex: none; }
.view-switch__ico--cards { width: 14px; height: 14px; }
.view-switch__ico--rows { background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat; }
.view-switch__ico--cards { background: linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat, linear-gradient(currentColor, currentColor) 8px 0 / 6px 6px no-repeat, linear-gradient(currentColor, currentColor) 0 8px / 6px 6px no-repeat, linear-gradient(currentColor, currentColor) 8px 8px / 6px 6px no-repeat; }

.tl-item__note { margin-top: 24px; }
.tl-item__note-label {
  margin: 0 0 6px;
  font: 700 12px/1.5 var(--fjp);
  letter-spacing: .06em;
  color: var(--gray-500);
}
.tl-item__note-list { display: flex; flex-direction: column; gap: 6px; }
.tl-item__note-list li {
  font: 400 14px/1.7 var(--fjp);
  letter-spacing: .03em;
  color: var(--gray-800);
}
.tl-item--done .tl-item__note-list li { color: var(--gray-600); }

.reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius);
  font: 700 12px/1 var(--fjp);
  letter-spacing: .06em;
  white-space: nowrap;
}
.reg--ken { background: var(--white); border: 1px solid var(--red); color: var(--red); }
.reg--shi { background: var(--red); color: #fff; }
.reg--free { background: var(--gray-600); color: #fff; }

/* ============ 横に 1 行で並べる列（.hscroll） ============
   大会結果の年度（令和・平成それぞれ）と地図の施設の列。折り返さず、収まらない分は横にスクロール（スクロールバーは出さない）。
   はみ出しているあいだは、続きのある側の端を少し透かし、列の下の右端に「scroll →」の案内を出す。
   端まで送ると透かしと案内は消える（案内の高さぶんの余白は、はみ出している列には常に取っておき、送っても高さが変わらないようにする）。はみ出しの有無と位置は main.js の initHScroll が .is-overflow / .is-start / .is-end で付ける。
   使い方：<div class="hscroll" data-hscroll><div class="hscroll__track">…</div><span class="hscroll__hint"><span class="hscroll__arrow"></span>SCROLL</span></div> */
.hscroll { position: relative; min-width: 0; --hs-l: 0px; --hs-r: 0px; }
.hscroll.is-overflow { padding-bottom: 16px; }
.hscroll__track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .2), #000 var(--hs-l), #000 calc(100% - var(--hs-r)), rgba(0, 0, 0, .2));
  mask-image: linear-gradient(to right, rgba(0, 0, 0, .2), #000 var(--hs-l), #000 calc(100% - var(--hs-r)), rgba(0, 0, 0, .2));
}
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__track > * { flex: none; }
.hscroll.is-overflow:not(.is-start) { --hs-l: 36px; }
.hscroll.is-overflow:not(.is-end) { --hs-r: 48px; }
.hscroll__hint {
  position: absolute;
  top: 100%;
  right: 2px;
  display: flex;
  align-items: baseline;  /* 矢印（線）は文字の下端（ベースライン）にそろえる */
  gap: 8px;
  margin-top: -14px;
  font: 500 12px/1 var(--flt);  /* SCROLL の文字（以前は 10px） */
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-600);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.hscroll.is-overflow:not(.is-end) .hscroll__hint { opacity: 1; }
/* 表の横スクロール（main.js が .table-scroll を包む）：案内は表の上の右端に出す */
.hscroll--top.is-overflow { padding-bottom: 0; padding-top: 24px; }
.hscroll--top .hscroll__hint { top: 0; margin-top: 0; }
.hscroll__track.table-scroll { display: block; }
.hscroll__arrow { animation: hs-nudge 1.8s ease-in-out infinite; }
/* 線の矢印：細い横線の右端から、短い線を左上へ跳ね上げただけの矢印（——\ の形）。
   SCROLL の矢印（.hscroll__arrow）と、トップの大会情報の「終了した大会／今後の大会」に使う。
   --left は左向き（左右を反転） */
.ln-arrow, .hscroll__arrow {
  position: relative;
  flex: none;
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
}
.ln-arrow::after, .hscroll__arrow::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: rotate(35deg);
}
.ln-arrow--left { transform: scaleX(-1); }
.hint--lr { display: inline-flex; align-items: stretch; gap: 14px; }
/* 文字の下に矢印。終了した大会は右寄せ（左向きの矢印が縦線から離れていく）、今後の大会は左寄せ */
.hint__item { display: inline-flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hint__item--past { align-items: flex-end; }
/* 「終了した大会｜今後の大会」のあいだの赤い縦線（文字と矢印の高さいっぱい） */
.hint__bar { display: block; flex: none; width: 2px; background: var(--red); }
@keyframes hs-nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .hscroll__arrow { animation: none; } }

/* フィルタチップ / タブ。年度タブ（.year-tab）と同じ、角を少しだけ丸めた四角。選択中は赤 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.chip {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font: 700 13px/1.4 var(--fjp);
  letter-spacing: .02em;
  color: var(--gray-800);
  transition: all .25s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
}
.tab {
  position: relative;
  padding: 14px 20px;
  font: 700 14px/1.4 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-500);
  transition: color .25s ease;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }
.tabpanel[hidden] { display: none; }

/* ステップ */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative;
  /* 番号の右に見出しを並べ、説明は見出しの下（番号の列は空ける） */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px 24px 24px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  grid-row: 1;
  grid-column: 1;
  font: 700 28px/1 var(--flt);
  letter-spacing: .04em;
  color: var(--red);
}
.step__title { grid-row: 1; grid-column: 2; }
.step__title {
  margin: 0;
  font: 700 17px/1.5 var(--fjp);
  letter-spacing: .02em;
  color: var(--ink);
}
.step__text { grid-column: 2; margin: 8px 0 0; font: 400 14px/1.8 var(--fjp); color: var(--gray-800); }

/* Q&A */
.qa { border-top: 1px solid var(--gray-200); }
.qa__item { border-bottom: 1px solid var(--gray-200); padding: 20px 4px; }
.qa__q {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  font: 700 16px/1.6 var(--fjp);
  color: var(--ink);
}
.qa__q::before { content: "Q."; flex: none; color: var(--red); font-family: var(--flt); }
.qa__a {
  display: flex;
  gap: 12px;
  margin: 0;
  font: 400 15px/1.9 var(--fjp);
  color: var(--gray-800);
}
.qa__a::before { content: "A."; flex: none; color: var(--gray-300); font-family: var(--flt); font-weight: 700; }

/* ダウンロードリスト */
.dl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--gray-200);
  transition: background .3s ease;
}
.dl-item:hover { background: var(--gray-050); color: inherit; }
.dl-item:hover .sqbtn { background: var(--red); border-color: var(--red); color: #fff; }
.dl-item__type {
  flex: none;
  min-width: 46px;
  padding: 4px 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius);
  font: 700 11px/1.4 var(--flt);
  letter-spacing: .06em;
  text-align: center;
}
/* ボタンで使うとき（開催記録の「写真・動画」。全画面のパネルを開く） */
button.dl-item { width: 100%; text-align: left; }
.dl-item__text { min-width: 0; }
.dl-item__title {
  display: block;
  font: 700 15px/1.6 var(--fjp);
  color: var(--ink);
}
.dl-item__note {
  display: block;
  margin-top: 2px;
  font: 400 13px/1.5 var(--fjp);
  color: var(--gray-500);
}
.dl-item .sqbtn { margin-left: auto; }

/* 要確認の注記 */
.todo-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--red-tint);
  color: var(--red-dark);
  border-radius: var(--radius);
  font: 700 11px/1.7 var(--fjp);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ============ フォーム ============ */
.form { max-width: var(--container-narrow); }
.form__row { margin-bottom: 28px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font: 700 15px/1.6 var(--fjp);
  letter-spacing: .02em;
  color: var(--ink);
}
.form__req {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font: 700 11px/1 var(--fjp);
  letter-spacing: .06em;
}
.form__opt {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--gray-600);
  font: 700 11px/1 var(--fjp);
  letter-spacing: .06em;
}
.form__hint { margin: 0 0 8px; font: 400 13px/1.7 var(--fjp); color: var(--gray-500); }

.input, .textarea, .select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font: 400 16px/1.6 var(--fjp);
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.textarea { min-height: 160px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 35, 42, .12);
  outline: none;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--red);
  background: var(--red-tint);
}
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font: 700 13px/1.6 var(--fjp);
  color: var(--red);
}
.field-error.is-shown { display: flex; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font: 400 15px/1.8 var(--fjp);
  color: var(--gray-800);
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--red);
}

.form-done {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 28px;
  background: var(--gray-050);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
}
.form-done.is-shown { display: flex; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__send-error { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--red); background: #FDF0F0; font: 500 14px/1.8 var(--fjp); color: var(--red); }
.form [data-form-submit]:disabled { opacity: .6; cursor: progress; }
.form-done__title {
  margin: 0;
  font: 700 20px/1.5 var(--fjp);
  letter-spacing: .03em;
  color: var(--ink);
}
.form-done__text { margin: 0; font: 400 15px/1.9 var(--fjp); color: var(--gray-800); }

/* ============ 15. 大会結果（一覧・詳細） ============ */
/* 一覧の行の右端に付く「12件」「写真14」「PDF」の並び */
.result-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
}
@media (max-width: 639px) {
  /* 幅が足りないので、狭い画面では件数だけ残す */
  .result-tags .badge--tint, .result-tags .dl-item__type { display: none; }
}

/* 年度の選択。令和・平成の2段に分け、年の数字だけをそれぞれ 1 行に並べる（収まらない分は横スクロール：.hscroll） */
.year-picker {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 40px;
}
.year-picker__era { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.year-picker__label { padding-top: 8px; font: 700 13px/1.4 var(--fjp); letter-spacing: .08em; color: var(--gray-500); }
.year-picker__years { gap: 6px; padding: 2px 0; }
.year-tab {
  min-width: 52px;
  padding: 7px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font: 700 15px/1 var(--flt);
  letter-spacing: .02em;
  color: var(--gray-800);
  transition: all .2s ease;
}
.year-tab__unit { margin-left: 2px; font: 500 10px/1 var(--fjp); color: var(--gray-500); }
.year-tab:hover { border-color: var(--red); color: var(--red); }
.year-tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.year-tab.is-active .year-tab__unit { color: rgba(255, 255, 255, .8); }

/* 年度の見出し。「令和5年度 2023」（大会数は出さない） */
.year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 24px; }
.year-head__title { margin: 0; font: 700 24px/1.3 var(--fjp); color: var(--ink); }
.year-head__en { margin-left: 10px; font: 500 14px/1 var(--flt); letter-spacing: .08em; color: var(--gray-500); }

/* 年度の中の大会一覧。赤い四角・大会名、その下に日付（カレンダー印）と種目（一覧の印）。大会情報の一覧と同じ形 */
.rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-200); }
.rlist__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-200);
  color: inherit;
  transition: background .2s ease;
}
.rlist__item:hover { background: var(--gray-050); color: inherit; }
.rlist__item:hover .rlist__title { color: var(--red); }
.rlist__mark { flex: none; align-self: flex-start; width: 10px; height: 10px; margin: 7px 6px 0 0; background: var(--red); } /* 大会名の1行目にそろえる */
.rlist__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rlist__title { display: block; min-width: 0; font: 700 16px/1.5 var(--fjp); color: var(--ink); transition: color .2s ease; }
.rlist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font: 400 13px/1.6 var(--fjp); letter-spacing: .02em; color: var(--gray-600); }
.rlist__when, .rlist__what { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rlist__ico { width: 16px; height: 16px; flex: none; color: var(--gray-500); }
.rlist__ymd { font: 700 15px/1 var(--flt); letter-spacing: .03em; color: var(--ink); }
.rlist__dow { font: 700 11px/1 var(--flt); letter-spacing: .1em; color: var(--red); }
.rlist__note { color: var(--gray-500); }
.rlist__item .sqbtn { flex: none; }
.rlist__item:hover .sqbtn { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 639px) {
  .rlist__item { gap: 6px 12px; }
  .rlist__item .sqbtn { display: none; }
}

/* 結果ページの1かたまり。スマホは 結果画像 → その下に優勝者の写真 の1列、
   PC（1024px〜）は 左に結果画像・右に優勝者の写真 の2列。 */
.container--result { max-width: 1040px; }
.rblock { margin-top: 32px; }
@media (min-width: 1024px) {
  .rblock--split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
  .rblock--split .gallery.gallery--winners { margin-top: 0; }
}
/* 入賞者の名前。写真の下に「男子シングルスA級　優勝 ○○　準優勝 ○○」 */
.rblock__caption { margin: 10px 0 0; font: 400 14px/1.8 var(--fjp); color: var(--gray-800); text-align: center; }  /* 写真の無い入賞者の行も中央そろえ */
/* 入賞者の行（AwardLine）。順位のバッジは横の種目の枠（.rblock__cat）と同じ形・大きさで、順位ごとの色の塗りに白文字
   （1 金・2 銀・3 銅・4 緑、それ以外（ベスト4 など）は灰色）。名前は太字、「選手」「ペア」と注記は普通の太さ */
.awards { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; vertical-align: middle; }
.award { display: inline-flex; align-items: center; gap: 10px; font: 400 14px/1.6 var(--fjp); color: var(--ink); }
.award__badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--gray-500);
  background: var(--gray-500);
  font: 700 12px/1.6 var(--fjp);
  letter-spacing: .02em;
  color: #fff;
  white-space: nowrap;
}
.award__badge--1 { background: #C9A227; border-color: #C9A227; }  /* 優勝：金 */
.award__badge--2 { background: #8E959C; border-color: #8E959C; }  /* 準優勝：銀 */
.award__badge--3 { background: #B5683A; border-color: #B5683A; }  /* 3位：銅 */
.award__badge--4 { background: #2F6E5F; border-color: #2F6E5F; }  /* 4位：緑 */
.award__name { font-weight: 700; }
.award__pre, .award__suffix, .award__note { font-weight: 400; }
.award__suffix { margin-left: 3px; }
.award__note { margin-left: 4px; color: var(--gray-600); }
.rblock__cat { display: inline-block; margin-right: 10px; padding: 1px 8px; border: 1px solid var(--red); font: 700 12px/1.6 var(--fjp); color: var(--red); }
/* 種目と画像が対応づけられないページでは、入賞者の名前を画像のあとに種目ごとに1行ずつ */
.rblock__captions { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.rblock__captions .rblock__caption { margin-top: 6px; }
/* 写真1枚ごとの入賞者（「種目 ｜ 優勝 ○○」）。写真の下に */
.gallery.gallery--winners .gallery__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 10px 2px 0; font: 400 14px/1.6 var(--fjp); letter-spacing: .02em; color: var(--ink); text-align: center; }  /* 写真の幅を基準に中央そろえ */
.gallery.gallery--winners .gallery__cap .rblock__cat { margin-right: 0; }
.gallery.gallery--winners .gallery__item { background: none; overflow: visible; }
.gallery.gallery--winners .gallery__item img { border-radius: var(--radius); }
.gallery.gallery--winners .gallery__item:hover img { transform: none; }
.rblock:first-child { margin-top: 0; }
.rblock + .rblock { margin-top: 48px; }
/* 優勝者の写真。1枚なら横いっぱい、2枚なら半分ずつ、それ以上は折り返す */
/* （.gallery の定義より前にあるので、打ち消すためにクラスを重ねている） */
.gallery.gallery--winners { display: flex; flex-wrap: wrap; gap: 28px 20px; margin-top: 12px; }  /* 入賞者の写真が続くときは少し余白を空ける */
.gallery.gallery--winners .gallery__item { flex: 1 1 300px; max-width: 100%; }
.gallery.gallery--winners .gallery__item img { aspect-ratio: auto; height: auto; }
.deflist__group { padding: 20px 4px 6px; font: 700 13px/1.5 var(--fjp); letter-spacing: .08em; color: var(--red); }

/* クラブ対抗戦の結果ページ。部ごとの見出し（部の名前＋優勝クラブ）の下に、結果表と優勝クラブの写真 */
.division + .division { margin-top: 56px; }
.jump + .division { margin-top: 40px; }
.division__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}
.division__name { font: 700 20px/1.3 var(--fjp); letter-spacing: .02em; color: var(--ink); }
.division__name::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--red); vertical-align: 2px; }
/* 見出しの横の優勝者名（.division__champ）は出さなくなった。名前は写真の下の .rblock__caption にだけ出す */
.division__award { margin-right: 8px; font: 700 12px/1.6 var(--fjp); letter-spacing: .06em; color: var(--red); }
.division .rblock { margin-top: 0; }
/* リーグ表が何枚もある部（8部など）は、.sheets の升目で並べる。結果表の間隔は小さめに */
.rblock__sheet.sheets { margin-top: 0; gap: 12px; }
/* 優勝クラブの写真は、リーグ表の下に（横に並べない）。全幅だと大きすぎるので幅を抑える */
.division__photos { max-width: 560px; margin-top: 16px; }
.division__photos .gallery.gallery--winners { margin-top: 0; }

/* ギャラリーの入口（結果ページの下部）。写真を少し見せて、別ページへ */
.gallery-peek { display: block; margin-top: 16px; color: inherit; }
.gallery-peek__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (min-width: 640px) { .gallery-peek__grid { grid-template-columns: repeat(8, 1fr); } }
.gallery-peek__grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--gray-050); transition: opacity .3s ease; }
.gallery-peek:hover .gallery-peek__grid img { opacity: .85; }
.gallery-peek__label { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 14px/1.5 var(--fjp); letter-spacing: .04em; color: var(--ink); }
.gallery-peek:hover .gallery-peek__label { color: var(--red); }
.gallery-peek:hover .aw { transform: translateX(4px); }

/* 種目ごとの順位。「優勝　◯◯ペア」を1行ずつ */
.place-list { list-style: none; margin: 0; padding: 0; }
.place-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 3px 0;
}
.place-list__award {
  flex: none;
  min-width: 4.5em;
  font: 700 13px/1.8 var(--fjp);
  letter-spacing: .04em;
  color: var(--red);
}
.place-list__name { font: 400 15px/1.8 var(--fjp); color: var(--ink); }
.place-list__note { font: 400 12px/1.8 var(--fjp); color: var(--gray-500); }

/* 大会写真。枚数が多いので、小さめに敷き詰める */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 24px;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
/* 写真は枠を付けず、写真そのものの角だけ丸める（余白を作らない） */
.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-050);
}
.gallery__item img {
  display: block;
  width: 100%;
  /* img の width/height 属性が高さに効いたままだと、幅だけ縮んで縦長の升目になる */
  height: auto;
  aspect-ratio: 4 / 3;
  /* 升目を写真で埋める（白い余白を作らない）。結果表・ドロー表は .sheet で別に出す */
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__count {
  margin-left: 10px;
  font: 400 13px/1 var(--flt);
  color: var(--gray-500);
}

/* 画像の全画面表示（main.js の initLightbox が組み立てる） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 18, .96);
  color: #fff;
  animation: lb-in .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 8px 0 16px;
  flex: none;
}
.lightbox__count { flex: none; font: 600 14px/1 var(--flt); letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.lightbox__cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.4 var(--fjp); color: rgba(255, 255, 255, .85); }
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: 400 28px/1 var(--flt);
  transition: background .2s ease;
}
/* ホバーで明るくするのはマウスのときだけ（タッチでは押したあともホバーが残り、白い紙面の上で白くなって見えなくなる） */
@media (hover: hover) { .lightbox__btn:hover { background: rgba(255, 255, 255, .2); } }
.lightbox__close { flex: none; }
.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 8px;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
/* 原寸表示。中央寄せをやめて、はみ出した分をスクロールで読む */
.lightbox.is-zoomed .lightbox__stage { display: block; padding: 0; }
.lightbox.is-zoomed .lightbox__img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .35);
  font-size: 40px;
}
/* 前後のボタンは白い紙面の上に重なることが多いので、ホバー・押したあとも暗いまま（白くしない） */
@media (hover: hover) { .lightbox__nav:hover { background: rgba(0, 0, 0, .55); } }
.lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }
.lightbox__nav[hidden] { display: none; }
.lightbox.is-zoomed .lightbox__nav { display: none; }
.lightbox__hint {
  flex: none;
  margin: 0;
  padding: 10px 16px 14px;
  text-align: center;
  font: 400 12px/1.5 var(--fjp);
  color: rgba(255, 255, 255, .55);
}
.lightbox.is-zoomed .lightbox__hint { visibility: hidden; }
@media (max-width: 639px) {
  .lightbox__nav { width: 36px; height: 52px; font-size: 32px; background: rgba(0, 0, 0, .25); }
}

/* 前後の大会への行き来 */
.page-nav {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}
@media (min-width: 768px) {
  .page-nav { grid-template-columns: 1fr auto 1fr; gap: 24px; text-align: left; }
  .page-nav__link--next { text-align: right; }
}
.page-nav__link { display: block; min-width: 0; }
.page-nav__link:hover .page-nav__title { color: var(--red); }
.page-nav__dir {
  display: block;
  font: 700 12px/1.6 var(--flt);
  letter-spacing: .06em;
  color: var(--gray-500);
}
.page-nav__title {
  display: block;
  margin-top: 4px;
  font: 500 14px/1.6 var(--fjp);
  color: var(--ink);
  transition: color .25s ease;
}

/* ---- クラブ対抗戦の年度別アコーディオン ---- */
.champ { border-bottom: 1px solid var(--gray-200); }
.champ:first-of-type { border-top: 1px solid var(--gray-200); }
.champ__year {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  font: 700 16px/1.6 var(--fjp);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.champ__year::-webkit-details-marker { display: none; }
/* 年度の前に、ほかの見出しと同じ赤い四角 */
.champ__year::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--red); }
.champ__year::after {
  content: "＋";
  margin-left: auto;
  font: 400 15px/1 var(--flt);
  color: var(--red);
}
.champ[open] > .champ__year::after { content: "－"; }
.champ__count { font: 400 12px/1 var(--flt); color: var(--gray-500); }
/* 部の行は一覧（ul）の上端の裏から順に滑り出す（.panel-item）。はみ出した分は一覧の箱で切り取る（overflow）ので、
   見出しと最初の行のあいだの余白に裏の行が見えることはない。一覧の下のリンクは行のあとにふわっと出す */
.champ__body { padding: 0 4px 24px; }
.champ__list { isolation: isolate; overflow: hidden; }
.champ__after { animation: fadeup .4s var(--ease) .45s both; }
.is-closing .champ__after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .champ__after { animation: none; } }
.champ__block + .champ__block { margin-top: 24px; }
.champ__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/1.6 var(--fjp);
  color: var(--gray-600);
}
.champ__title:hover { color: var(--red); }
.champ__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .champ__list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1024px) { .champ__list { grid-template-columns: repeat(3, 1fr); } }
.champ__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.champ__div {
  flex: none;
  min-width: 5.5em;
  font: 700 13px/1.7 var(--fjp);
  letter-spacing: .04em;
  color: var(--red);
}
.champ__club { font: 400 15px/1.7 var(--fjp); color: var(--ink); }
.champ__award { margin-right: 6px; font: 700 12px/1.6 var(--fjp); color: var(--red); }
/* 年度の中の、結果表と写真のページへのリンク（前期・後期で2つになることがある） */
.champ__links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.champ__links .ghost-link { font-size: 13px; }
.champ__none { margin: 8px 0 0; font: 400 13px/1.7 var(--fjp); color: var(--gray-500); }

/* ============ 16. オープニング（全画面の映像） ============ */
/* 既定は非表示。Base.astro の <head> 内スクリプトが描画前に html へ .splash-on を
   付けたときだけ出る。＝JS が無効な環境では最初から本文が見える。 */
.splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  background: #000;
}
.splash-on .splash { display: block; }
/* 幕が上がるまで背後を動かさない */
.splash-on body { overflow: hidden; }

/* 16:9 の映像の置き方。
   ・横長の画面：画面幅いっぱいに収め、線が走る演出を端まで見せる
   ・縦長の画面：そのままだとロゴが小さすぎるので 2.15 倍に拡大し、
     左右を画面の外へ逃がす。映像の縁は真っ黒なので背景の #000 と地続きに見える
   ・縦は 100svh を超えない（上下は必ず収まる）
   画面より大きくなる場合があるので、grid/flex ではなく絶対配置＋transform で
   中央に置き、はみ出す分を左右へ均等に逃がす。 */
.splash__video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  --splash-vh: 100vh;
  --splash-k: 100;   /* 画面幅に対する倍率（%） */
  width: min(calc(var(--splash-k) * 1vw), calc(var(--splash-vh) * 16 / 9));
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #000;
  transition: transform 1s var(--ease);
}
@supports (height: 100svh) {
  .splash__video { --splash-vh: 100svh; }
}
@media (max-aspect-ratio: 1 / 1) {
  .splash__video { --splash-k: 215; }
}

.splash__skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .78);
  font: 700 12px/1 var(--flt);
  letter-spacing: .14em;
  animation: fadeup .6s var(--ease) 1.2s both;
  transition: color .3s ease, border-color .3s ease;
}
.splash__skip:hover { color: #fff; border-color: #fff; }
.splash__skip .aw { color: var(--red); }

/* 幕を上げる。.splash-on が外れても消えないよう、ここでも display を指定する。
   映像を少しだけ寄せながら溶かすことで、ロゴがそのままトップページへ
   入っていくように見せる。 */
.splash.is-out {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s var(--ease);
}
.splash.is-out .splash__video { transform: translate(-50%, -50%) scale(1.06); }
.splash.is-out .splash__skip { opacity: 0; transition: opacity .2s ease; }

/* オープニング中はヒーローの登場アニメーションを頭出しのまま止めておき、
   幕が上がってから走らせる（映像の裏で終わってしまうのを防ぐ） */
.splash-on .phv,
.splash-on .fu,
.splash-on .hl > span,
.splash-on .pbw,
.splash-on .hero__en-ch { animation-play-state: paused; }

/* ============ 15. 大会の個別ページ ============ */

/* ページ上部の、節への飛び札。要項・ドロー・結果を見に来た人が
   スクロールせずに目的の節へ行けるようにする。 */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}
.jump__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font: 700 13px/1.5 var(--fjp);
  letter-spacing: .04em;
  color: var(--gray-800);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.jump__link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.jump__n { font: 400 11px/1 var(--flt); color: var(--gray-500); }
.jump__link:hover .jump__n { color: var(--gray-300); }
/* 結果の種目・部の飛び札は折り返さず 1 行に並べ、収まらない分は横スクロール（.hscroll） */
.jump--scroll { display: block; }
.jump--scroll .jump__track { gap: 6px; padding: 2px 0; }

/* 大会1件の中の節。左に赤い縦線を引いて、節の切れ目を分かりやすくする */
.esec + .esec { margin-top: 64px; }
/* 大会1件の中の節の見出しも同じ型：■ ENGLISH（枚数）／ 次の行に日本語の太字 */
.esec__head {
  display: grid;
  grid-template-columns: 12px auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}
.esec__head::before { content: ""; grid-column: 1; grid-row: 1; width: 12px; height: 12px; background: var(--red); }
.esec__head .sub-head { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.esec__head .sub-head::before { display: none; }
.esec__en {
  grid-column: 2;
  grid-row: 1;
  font: 700 12px/1.4 var(--flt);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.esec__head .gallery__count { grid-column: 3; grid-row: 1; justify-self: start; margin-left: 0; }
/* 英語の無い見出し（ギャラリーなど）は、枚数を英語の位置に */
.esec__head:not(:has(.esec__en)) .gallery__count { grid-column: 2; }

/* 要項・ドロー・結果の紙面。当日の写真と違い「その場で読めること」が要るので、
   写真のような小さな升目ではなく、1〜2列に大きく並べる。 */
.sheets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 768px) { .sheets { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
/* 横に長いリーグ表・スコア表は、半分の幅に割ると字が潰れる。
   同じ節に縦長の紙と混ざることがあるので、1枚ずつ横いっぱいに広げる。 */
.sheet--wide { grid-column: 1 / -1; }

/* 紙面（規約・要項・ドロー・結果表）はそのまま置く。枠も拡大ボタンも付けず、タップで全画面（main.js の lightbox）。
   添え書き（.sheet__cap）があれば下に小さく */
.sheet { display: block; color: inherit; }
.sheet:hover { color: inherit; }
.sheet img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
}
.sheet__cap {
  display: block;
  padding: 8px 2px 0;
  font: 700 13px/1.6 var(--fjp);
  letter-spacing: .03em;
  color: var(--gray-800);
}

/* まだ中身が無い節（結果待ちなど）の言い方 */
.lesson-status {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 24px 0 0; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--ink);
  font: 500 14px/1.8 var(--fjp); color: var(--ink);
}
.lesson-status__tag { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 3px; background: var(--ink); color: #fff; font: 700 12px/1 var(--fjp); letter-spacing: .06em; margin-top: 2px; }
.esec__wait {
  margin: 24px 0 0;
  padding: 20px;
  background: var(--gray-050);
  border-left: 3px solid var(--gray-300);
  font: 400 14px/1.9 var(--fjp);
  color: var(--gray-600);
}

/* ============ 汎用ユーティリティ ============ */
.stack-24 > * + * { margin-top: 24px; }
.stack-40 > * + * { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.text-red { color: var(--red); }
.nowrap { white-space: nowrap; }

/* ============ スマホ・タブレットのヘッダー（帯なし）に合わせて、ページの先頭をロゴの裏まで伸ばす ============
   ヘッダーの帯をなくした分（.site-header の margin-bottom で本文を上へ寄せた分）だけ、先頭の下地の上の余白を足す。
   .page-head / .hero の定義より後ろに置くこと */
@media (max-width: 1023px) {
  .page-head { padding-top: calc(32px + var(--header-h)); --sec-pt: calc(32px + var(--header-h) + 12px * 1.6 + 20px); }
  .notice-bar { padding-top: var(--header-h); }
  .notice-bar ~ #main > .page-head:first-child { padding-top: 32px; --sec-pt: calc(32px + 12px * 1.6 + 20px); }
  /* トップの写真はヘッダーの裏（画面の上端）から敷く。文字とボタンは下端に揃えてあるので、位置は変わらない */
  .hero { min-height: 100svh; }
}

/* ============ 申込用紙のボタンと、ページの中で開くビューア ============
   ボタン（.eform。EntryForms.astro）は「大会名 申込用紙」を大きく、その下に中身の名前と大きさ。
   押すと .pdfv（main.js の initPdfViewer）が画面いっぱいに開く。上の帯にダウンロード・印刷・閉じる */
.eforms { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 768px) { .eforms { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.eform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.eform__type {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font: 700 11px/1 var(--flt);
  letter-spacing: .06em;
  transition: background-color .25s ease, color .25s ease;
}
.eform__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eform__title { font: 700 15px/1.5 var(--fjp); letter-spacing: .03em; }
.eform__kind { display: inline-block; margin-left: .5em; color: var(--red); transition: color .25s ease; }
.eform__note { font: 400 12px/1.5 var(--fjp); color: var(--gray-600); transition: color .25s ease; }
.eform__open {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ease);
}
@media (hover: hover) {
  .eform:hover { background: var(--red); color: #fff; box-shadow: var(--shadow-hover); }
  .eform:hover .eform__type { background: #fff; color: var(--red); }
  .eform:hover .eform__kind, .eform:hover .eform__note { color: #fff; }
  .eform:hover .eform__open { background: rgba(255, 255, 255, .2); color: #fff; transform: scale(1.08); }
}

.pdfv {
  /* スマホのメニュー（.mobile-nav）と同じ地の色・同じ開き方。地は少し透かして、後ろのページがうっすら見える。
     開くときは下から黒地がせり上がり（clip-path）、閉じるときは少し待ってから下がる。時間と曲線もメニューと同じ */
  --pv-up: .6s;
  --pv-up-ease: cubic-bezier(.65, 0, .25, 1);
  --pv-down: .5s;
  --pv-down-delay: .12s;
  --pv-down-ease: cubic-bezier(.25, .8, .3, 1);
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: rgba(38, 38, 38, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--pv-down) var(--pv-down-ease) var(--pv-down-delay);
}
.pdfv[hidden] { display: none; }
.pdfv.is-open { clip-path: inset(0); transition: clip-path var(--pv-up) var(--pv-up-ease); }
/* 中身（帯の文字・ボタン・紙面）は、地がせり上がってから出し、閉じるときは先に消す */
.pdfv__title, .pdfv__btn, .pdfv__body { opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.pdfv.is-open .pdfv__title, .pdfv.is-open .pdfv__btn, .pdfv.is-open .pdfv__body { opacity: 1; transform: none; transition: opacity .4s ease .35s, transform .5s var(--ease) .35s; }
.pdfv.is-open .pdfv__btn--print { transition-delay: .4s; }
.pdfv.is-open .pdfv__body { transition-delay: .45s; }
html.is-pdfv, html.is-pdfv body { overflow: hidden; }
.pdfv__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: transparent;
  color: #fff;
}
.pdfv__title { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pdfv__name { font: 700 14px/1.4 var(--fjp); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfv__sub { font: 400 11px/1.4 var(--fjp); color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfv__sub:empty { display: none; }
.pdfv__actions { flex: none; display: flex; align-items: center; gap: 6px; }
.pdfv__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: 700 13px/1 var(--fjp);
  letter-spacing: .03em;
  transition: background-color .2s ease;
}
.pdfv__btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.pdfv__btn--dl { background: var(--red); }
.pdfv__btn--dl:hover { background: #b81d23; }
/* スマホは絵だけ（文字は読み上げ用に残す） */
@media (max-width: 639px) {
  .pdfv__btn { width: 40px; padding: 0; justify-content: center; }
  .pdfv__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* 閉じるボタン（main.js が body の直下に置く。黒地の clip-path の外なので、閉じる途中でも欠けない）。
   メニューのボタン（.hamburger）と同じ大きさ・同じ3本線で、同じ位置に重ねる（位置は main.js が入れる。PC は帯の右端）。
   開くと、線が黒 → 白に変わってから ✕ に。閉じると ✕ → 3本線、黒地が下がるのに合わせて白 → 黒に戻り、
   下がりきったらメニューのボタンと入れ替わる */
.pdfv-close {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 3001;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}
.pdfv-close[hidden] { display: none; }
.pdfv-close span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s ease, background-color .3s ease .25s; }
.pdfv-close.is-open span { background: #fff; transition: transform .35s var(--ease) .35s, opacity .2s ease .35s, background-color .25s ease .15s; }
.pdfv-close.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pdfv-close.is-open span:nth-child(2) { opacity: 0; }
.pdfv-close.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.pdfv-close:hover { background: rgba(255, 255, 255, .12); }
/* 開いているあいだと閉じ終わるまでは、メニューのボタンを隠す（閉じるボタンがその場所に重なっている） */
html.is-pdfv-menu .site-header .hamburger { visibility: hidden; }
/* 帯の右端は閉じるボタンのぶん空ける */
.pdfv__bar { padding-right: 64px; }
@media (max-width: 1023px) { .pdfv__bar { min-height: var(--header-h); padding-top: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .pdfv, .pdfv.is-open, .pdfv-close span, .pdfv__title, .pdfv__btn, .pdfv__body { transition: none !important; }
}
.pdfv__body {
  position: relative;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 12px max(24px, env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .pdfv__body { padding: 28px 24px 40px; } }
/* 読み込み中（.pdfv.is-loading）。0.25 秒より早く描けたときは出さない（transition-delay）。
   赤い弧が回り、LOADING の後ろの点が順に跳ねる */
.pdfv__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.pdfv.is-loading .pdfv__loading { opacity: 1; visibility: visible; transition: opacity .3s ease .25s, visibility 0s linear .25s; }
.pdfv__spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--red);
  border-right-color: var(--red);
  animation: pdfv-spin .9s cubic-bezier(.5, .1, .5, .9) infinite;
}
@keyframes pdfv-spin { to { transform: rotate(360deg); } }
.pdfv__ltext { font: 600 13px/1 var(--flt); letter-spacing: .32em; color: rgba(255, 255, 255, .85); }
.pdfv__dots { display: inline-flex; margin-left: .1em; }
.pdfv__dots i { font-style: normal; display: inline-block; animation: pdfv-dot 1.2s ease-in-out infinite; }
.pdfv__dots i:nth-child(2) { animation-delay: .15s; }
.pdfv__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pdfv-dot { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
/* 2ページ目以降を描いているあいだ、紙面の下に小さく点を出す */
.pdfv__more { display: none; justify-content: center; padding: 18px 0 4px; font: 700 22px/1 var(--flt); color: rgba(255, 255, 255, .7); }
.pdfv.is-more .pdfv__more { display: flex; }
@media (prefers-reduced-motion: reduce) { .pdfv__spin, .pdfv__dots i { animation-duration: 2.4s; } }
.pdfv__pages { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pdfv__page { margin: 0; width: 100%; max-width: 900px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); background: #fff; animation: pdfv-page .4s var(--ease) both; }
/* 2ページ以上あるとき：スクロールで下から入ってくるページが、浮き上がりながら少し大きくなって現れる
   （スクロールの位置そのものに合わせて動く。入りはじめから 360px 送るあいだで出きる）。
   対応していないブラウザでは、読み込んだときにふわっと出るだけ */
@supports (animation-timeline: view()) {
  .pdfv__page + .pdfv__page, .pdfv__page:has(+ .pdfv__page) {
    animation: pdfv-flow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 360px;
  }
  @keyframes pdfv-flow {
    from { opacity: .15; transform: translateY(48px) scale(.92); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
    to   { opacity: 1; transform: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
  }
}
@media (prefers-reduced-motion: reduce) { .pdfv__page { animation: none !important; } }
.pdfv__page img { display: block; width: 100%; height: auto; }
@keyframes pdfv-page { from { opacity: 0; transform: translateY(12px); } }
.pdfv.is-frame .pdfv__body { padding: 0; overflow: hidden; }
.pdfv.is-frame .pdfv__pages { height: 100%; }
.pdfv__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

/* 印刷はビューアの紙面だけ。1枚を1ページに収める */
@media print {
  html.is-pdfv body > *:not(.pdfv) { display: none !important; }
  html.is-pdfv, html.is-pdfv body { overflow: visible; background: #fff; }
  html.is-pdfv .pdfv { position: static; display: block; background: #fff; opacity: 1; transform: none; }
  html.is-pdfv .pdfv__bar, html.is-pdfv .pdfv__loading, html.is-pdfv .pdfv__more { display: none; }
  html.is-pdfv .pdfv__body { overflow: visible; padding: 0; }
  html.is-pdfv .pdfv__pages { display: block; }
  html.is-pdfv .pdfv__page { max-width: none; box-shadow: none; animation: none; break-after: page; page-break-after: always; break-inside: avoid; }
  html.is-pdfv .pdfv__page:last-child { break-after: auto; page-break-after: auto; }
  html.is-pdfv .pdfv__page img { width: 100%; max-height: 100vh; object-fit: contain; }
}
