/* ===========================================================
   埼玉スタジアム2002サッカースクール — デザインシステム
   design-direction.md 準拠
   =========================================================== */

:root {
  --color-primary: #D20515;
  --color-primary-dark: #9E0410;
  --color-secondary: #003A8F;
  --color-accent: #D20515;
  --color-gold: #C9A227;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-text: #2B2B2B;
  --color-text-muted: #6B7280;
  --color-border: #E2E8F0;

  --font-base: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* ページ内アンカー(#kids等)でスクロールした際、固定ヘッダー(約70px)に
     見出しが隠れないよう、スクロール先の手前に余白を確保する */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Header / Nav ------------------------------------------------ */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo img { height: 48px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-primary);
  min-width: 44px;
  min-height: 44px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--color-border);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 20px; border-radius: 0; }
  .site-header__inner { flex-wrap: wrap; }
}

/* --- Hero ---------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 56px 0;
}

.hero--photo {
  position: relative;
  overflow: hidden;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 30%;
  padding: 72px 0 56px;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* トップページとして写真の明るさ・ワクワク感を残しつつ、文字周りだけ
     コントラストを確保する（全体を暗くしすぎない） */
  background-image:
    linear-gradient(180deg, rgba(60, 2, 7, 0.55) 0%, rgba(80, 3, 9, 0.28) 42%, rgba(40, 1, 5, 0.62) 100%),
    linear-gradient(90deg, rgba(90, 3, 10, 0.5) 0%, rgba(90, 3, 10, 0.1) 55%, rgba(90, 3, 10, 0) 100%);
}

.hero--compact {
  padding: 40px 0;
}
.hero--compact.hero--photo {
  background-position: center 40%;
}

/* 写真の色味に頼らず、ブランドカラーの赤を「要素」として主張する装飾
   （上下に同じ太さの帯を配置） */
.hero--photo {
  border-top: 20px solid var(--color-primary);
  border-bottom: 20px solid var(--color-primary);
}

/* --- ヒーロースライドショー（複数写真をランダム順でクロスフェード） ----- */

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero--compact .hero-slideshow__layer { background-position: center 40%; }

.hero-slideshow__layer.is-active { opacity: 1; }

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  line-height: 1.4;
  /* ぼやけた大きいぼかしではなく、輪郭をはっきりさせる近接シャドウ+奥行き用の遠方シャドウの2段構成 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.55);
}

/* トップページのメイン見出し：小さな名乗り（スタジアム名）＋大きく力強いブランド名の2段構成で
   インパクトを出す（単なる1行ラベルだと写真の存在感に負けてしまうため） */
.hero__title-kicker {
  display: block;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.hero__title-main {
  display: block;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* デザイン上の改行(<br>)は、狭い画面では文の先頭側がさらに折り返されて
   「ホームグラウ／ンドで、」のような単語途中の孤立行を生むことがあるため、
   狭い画面では無効化し、ブラウザの自然な折り返しに任せる。 */
@media (max-width: 480px) {
  .hero h1 br { display: none; }
}

.hero p { font-size: 19px; font-weight: 700; opacity: 0.98; margin: 0 0 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.4); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

/* ヒーローのCTAボタン。
   囲みがただの div で、ボタンが inline-block のまま並んでいたため、
   スマホで縦に積まれると2つのボタンが隙間なく接していた。
   flexにして間隔を明示し、上下にも余白を持たせる。 */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 16px;
}

/* CTAボタン(.btn=丸いピル・赤/白)とは形・色で明確に区別しつつ、
   ゴールドのアクセントで信頼情報として目を引くチップ型デザイン */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(210, 5, 21, 0.45);
  backdrop-filter: blur(3px);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  padding: 10px 18px 10px 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--navy {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--block { display: block; width: 100%; text-align: center; font-size: 16px; padding: 16px 28px; }

/* --- アンカータブナビ（クラス紹介など） ----------------------------- */

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: -8px 0 36px;
}

.tab-nav a {
  padding: 8px 18px;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
}

.tab-nav a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* --- 引用・メッセージブロック（校長挨拶など） ------------------------ */

.quote-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.quote-block__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.quote-block__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- コーチ写真（円形サムネイル） ------------------------------------ */

.coach-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin: 0 16px 10px 0;
  border: 2px solid var(--color-bg-alt);
}
.emblem-crop {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}
.emblem-crop img { width: 100%; height: 100%; display: block; }

.coach-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 22px;
}

/* --- 写真未提供時のロゴプレースホルダー ------------------------------- */

.photo-placeholder--emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
}
.photo-placeholder--emblem img { width: 55%; height: 55%; object-fit: contain; opacity: 0.55; }

/* --- サブコーチ一覧（写真つきミニカード） ----------------------------- */

.sub-coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.sub-coach-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .sub-coach-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sub-coach-grid--3col { grid-template-columns: 1fr; }
}
.sub-coach-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sub-coach-card__photo { width: 100%; height: 280px; object-fit: cover; object-position: center 25%; display: block; }
.sub-coach-card__photo.photo-placeholder--emblem { display: flex; }
.sub-coach-card__body { padding: 20px; }
.sub-coach-card__body h4 { margin: 0 0 8px; font-size: 18px; }
.sub-coach-card__body p { margin: 4px 0 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

.quote-block p { line-height: 1.9; margin: 0 0 14px; }
.quote-block p:last-child { margin-bottom: 0; }

/* --- カテゴリーバナー（クラス紹介の章扉など） ------------------------- */

.category-banner {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  padding: 18px 24px;
  background: var(--color-bg-alt);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.category-banner__text h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--color-text);
}

.category-banner__text p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .quote-block { grid-template-columns: 1fr; text-align: left; }
  .quote-block__avatar { margin: 0 auto; }
}

/* --- コンパクトコーチリスト（サブコーチ等） --------------------------- */

.coach-compact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.coach-compact-list dl {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.coach-compact-list dt { font-weight: 700; font-size: 14px; }
.coach-compact-list dd { margin: 4px 0 0; font-size: 12px; color: var(--color-text-muted); line-height: 1.6; }

/* --- Alert banner (中止情報) ---------------------------------------- */

.alert-banner {
  background: #FFF4F4;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0;
}

.alert-banner__icon { font-size: 22px; line-height: 1; }
.alert-banner__title { font-weight: 700; color: var(--color-accent); margin: 0 0 4px; }
.alert-banner--ok { background: #F0FAF4; border-color: #1B9C55; }
.alert-banner--ok .alert-banner__title { color: #157A42; } /* 文字色はコントラスト4.5:1確保のため#1B9C55より暗く */
.alert-banner--info { background: #F0F6FF; border-color: var(--color-secondary); }
.alert-banner--info .alert-banner__title { color: var(--color-secondary); }

/* --- 次回開催日の帯（ヒーロー直下・最優先告知） --------------------- */

.next-session-bar {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
}
.next-session-bar--card { border-radius: var(--radius); margin: 24px 0; }
.next-session-bar strong { color: var(--color-gold); }
.next-session-bar a { color: var(--color-gold); text-decoration: underline; }
.next-session-bar a:hover { color: #fff; }

/* --- AIカメラ映像への案内帯（お知らせ「本日の状況」直下） --------------- */

.camera-promo-bar {
  display: block;
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  margin-top: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.camera-promo-bar:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* --- 天気予報ウィジェット（お知らせ「本日の状況」、気象庁データをJSで描画） ----- */

.weather-widget {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.weather-widget__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}
.weather-widget__days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.weather-widget__day {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.weather-widget__day-label { margin: 0 0 4px; font-weight: 700; font-size: 13px; }
.weather-widget__day-icon { margin: 0 0 4px; font-size: 22px; }
.weather-widget__day-weather { margin: 0 0 4px; font-size: 12px; color: var(--color-text-muted); }
.weather-widget__day-temp { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--color-text); }
.weather-widget__day-pop { margin: 0; font-size: 11px; color: var(--color-secondary); }

@media (max-width: 480px) {
  .weather-widget__days { grid-template-columns: 1fr; }
}

/* --- お知らせ・イベント絞り込みピル ---------------------------------- */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.filter-pill {
  display: inline-block;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--color-primary); }
.filter-pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
[data-category].is-hidden { display: none !important; }

/* --- 体験募集バナー（独立・目立たせる） ----------------------------- */

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFF3F3;
  border: 1px solid #F5C4C8;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 24px;
}
.cta-banner__text p {
  margin: 0;
  font-size: 15px;
}
.cta-banner__text p.cta-banner__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 6px;
}

/* --- Sections -------------------------------------------------------- */

section { padding: 48px 0; }
.section--alt { background: var(--color-bg-alt); }

.section__header { text-align: center; margin-bottom: 32px; }
.section__header::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.section__header h2 { font-size: 26px; margin: 0 0 8px; }
.section__header p { color: var(--color-text-muted); margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* 5枚など、auto-fitだと最終行が「4+1」の孤立カードになる場合に使う。
   明示的に3列にすることで 5枚→3+2 のようにバランス良く折り返す。 */
.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .card-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .card-grid--3col { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card__img {
  display: block;
  width: calc(100% + 40px);
  max-width: calc(100% + 40px);
  height: 160px;
  object-fit: cover;
  margin: -20px -20px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; }
.card h4 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; color: var(--color-text); }
.card p { margin: 0 0 6px; color: var(--color-text-muted); font-size: 14px; line-height: 1.75; }
.card p:last-child { margin-bottom: 0; }

/* カード全体がリンクの場合（a.card）：枠内どこを押しても遷移する */
a.card,
a.feature-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
a.card:hover,
a.feature-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
a.card .card__cta,
a.feature-card .card__cta {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
}
a.card:hover .card__cta,
a.feature-card:hover .card__cta { text-decoration: underline; }

/* --- 画像つきフィーチャーカード（施設案内など） ------------------- */

.feature-grid {
  display: grid;
  /* min(100%, 320px) にすることで、320px幅の画面でも
     コンテナ幅(パディング差引後)を超えて横スクロールが発生しないようにする */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.feature-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .feature-grid--2col { grid-template-columns: 1fr; }
}

.feature-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .feature-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid--3col { grid-template-columns: 1fr; }
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.feature-card__body { padding: 20px; }
.feature-card h3 { margin: 0 0 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.75; }

/* --- コーチ紹介カード（写真を大きく見せる） -------------------------- */

.coach-feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.coach-feature img { width: 100%; height: 280px; object-fit: cover; display: block; }
.coach-feature__body { padding: 20px; }
.coach-feature__body h3 { margin: 0 0 8px; font-size: 19px; }
.coach-feature__body p { margin: 0 0 10px; color: var(--color-text-muted); font-size: 14px; line-height: 1.75; }
.coach-feature__body p:last-child { margin-bottom: 0; }

.coach-feature--lead img { height: 360px; }

/* 氏名の右横に小さく添えるふりがな（h3/h4内のインライン要素として使う） */
.coach-name-kana { font-size: 12px; font-weight: 400; color: var(--color-text-muted); margin-left: 6px; }
.sub-coach-card__body .coach-name-kana { font-size: 11px; }

/* 役職バッジは氏名の折り返し具合に関わらず、常に氏名の下に独立した行で表示する */
.coach-badge-row,
.sub-coach-card__body .coach-badge-row { margin: 4px 0 10px; }
.coach-badge-row .badge { margin: 0; vertical-align: baseline; }

/* 縦横比の異なる顔写真でも、顔が切れずズームしすぎないよう4:5トリミング＋上寄せにする */
.coach-feature--portrait img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-position: center 12%;
}

/* 写真未提供のヘッドコーチも、他カードと同じ比率のプレースホルダーにする */
.coach-feature .photo-placeholder--emblem { height: 280px; }
.coach-feature--portrait .photo-placeholder--emblem { aspect-ratio: 4 / 5; height: auto; }
/* .coach-feature img の width:100%/height:280px/object-fit:cover に負けないよう明示的に上書き */
.coach-feature .photo-placeholder--emblem img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  opacity: 0.55;
  aspect-ratio: auto;
}

/* --- バッジ --------------------------------------------------------- */

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--color-primary);
  color: #fff;
}
.badge--gold { background: var(--color-gold); color: #3a2e05; }
.badge--navy { background: var(--color-secondary); color: #fff; }

/* --- AIカメラ映像：専用ページ（認証フォーム・ビューア） -------------- */

.camera-authbox {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.camera-authbox__input {
  width: 100%;
  box-sizing: border-box;
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.camera-authbox__error {
  margin-top: 12px;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1.6;
}

.camera-viewer__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.camera-viewer__tab {
  border: 1px solid var(--color-secondary);
  background: #fff;
  color: var(--color-secondary);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.camera-viewer__tab.is-active {
  background: var(--color-secondary);
  color: #fff;
}
.camera-viewer__frame-wrap {
  position: relative;
  width: 100%;
  /* STADIUM TUBE側の動画の下に表示されるタイトル・日付カード、フッターまで
     スクロールなしで見えるよう、16:9(56.25%)より大きめに余裕を持たせる */
  padding-top: 78%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.camera-viewer__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- News list --------------------------------------------------------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.news-list li { border-bottom: 1px solid var(--color-border); }
.news-list li > span,
.news-list li > a.news-list__row {
  display: flex;
  gap: 16px;
  padding: 14px 10px;
  margin: 0 -10px;
  align-items: baseline;
  border-radius: 6px;
}
.news-list a.news-list__row {
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s ease;
}
.news-list a.news-list__row:hover { background: var(--color-bg-alt); text-decoration: none; }
.news-list time { color: var(--color-text-muted); font-size: 13px; white-space: nowrap; }
.news-list a.news-list__row span.news-list__title { color: var(--color-text); font-weight: 600; }

/* --- データテーブル（料金表など） -------------------------------------
   日本語は単語間にスペースが無いため、列が狭いと「項目」のような短い語でも
   1文字ずつ縦に折り返されてしまう。ラベル列は折り返し禁止にし、
   横幅が足りない場合はテーブルごと横スクロールさせる。 */

.table-scroll { overflow-x: auto; }

.table-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
@media (max-width: 680px) {
  .table-scroll-hint { display: block; }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

/* 備考欄など説明文が長い列を含むテーブル用。狭い画面では横スクロールさせる。 */
.data-table--wide {
  min-width: 480px;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.data-table thead tr { background: var(--color-bg-alt); }

.data-table th:first-child,
.data-table td:first-child {
  white-space: nowrap;
}

/* 料金表（複数のクラス区分ごとに別テーブルになっている）の列幅を全区分で揃える */
.pricing-table {
  table-layout: fixed;
}
.pricing-table th:first-child,
.pricing-table td:first-child {
  white-space: normal;
  width: 34%;
}
.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
  width: 20%;
}
.pricing-table th:nth-child(3),
.pricing-table td:nth-child(3) {
  width: 20%;
}
.pricing-table th:nth-child(4),
.pricing-table td:nth-child(4) {
  width: 26%;
}

/* --- 開催日カレンダー ---------------------------------------------------- */

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}
.calendar-legend__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.calendar-legend__swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-month {
  margin-bottom: 36px;
}
.calendar-month h3 {
  text-align: center;
  font-size: 18px;
  margin: 0 0 10px;
}

.calendar-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
}
.calendar-table th,
.calendar-table td {
  border: 1px solid var(--color-border);
  vertical-align: top;
  padding: 6px;
  font-size: 12px;
  height: 64px;
}
.calendar-table th {
  height: auto;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}
.calendar-table th.is-sun { background: #8a8a8a; }
.calendar-table th.is-sat { background: #8a8a8a; }
.calendar-table th.is-weekday { background: var(--color-primary); }

.calendar-table td .cal-day { font-weight: 700; font-size: 13px; }
.calendar-table td .cal-note { display: block; font-size: 10px; line-height: 1.3; margin-top: 2px; }

.calendar-table td.is-school { background: #FFE3E3; }
.calendar-table td.is-school .cal-day { color: var(--color-primary); }
.calendar-table td.is-event { background: #FFF6CC; }
.calendar-table td.is-holiday { background: var(--color-bg-alt); color: var(--color-text-muted); }
.calendar-table td.is-tbd { background: #DCEEFB; }
.calendar-table td.is-dim { color: var(--color-border); background: #fff; }


/* --- カレンダーの表示切替（スマホのみ） ------------------------------------
   7列の表はPCでは問題ないが、スマホでは1列あたりが細くなり注記が読みづらい。
   そのため「7列」と「縦並び」を切り替えられるようにし、選んだ表示は
   localStorageに保存して同じ端末では次回も維持する（main.js）。
   680px超では表がそのまま収まるので、切替ボタン自体を出さない。 */

.calendar-view-toggle { display: none; }
.calendar-list { display: none; }

@media (max-width: 680px) {
  .calendar-view-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 0 16px;
  }
  .calendar-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;              /* 指で押せる大きさを確保する */
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-text-muted);
    background: #fff;
    border: 1px solid var(--color-border);
    cursor: pointer;
  }
  .calendar-view-toggle__btn:first-child {
    border-radius: 999px 0 0 999px;
    border-right: none;
  }
  .calendar-view-toggle__btn:last-child { border-radius: 0 999px 999px 0; }
  .calendar-view-toggle__btn.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
  }
  .calendar-view-toggle__icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  /* 7列表示：スマホ幅に収める。はみ出さないので最小幅の指定を外す。 */
  .calendar-table { min-width: 0; }
  .calendar-table th,
  .calendar-table td {
    padding: 4px 2px;
    font-size: 11px;
    height: 58px;
  }
  .calendar-table th { padding: 6px 2px; font-size: 12px; }
  .calendar-table td .cal-day { font-size: 12px; }
  .calendar-table td .cal-note { font-size: 9px; line-height: 1.25; margin-top: 1px; }

  /* 横スクロールの案内は、実際にはみ出しているときだけ出す（JSが is-scrollable を付ける） */
  .table-scroll-hint--auto { display: none; }
  .calendar-month.is-scrollable > .table-scroll-hint--auto { display: block; }

  /* 縦並び表示 */
  .calendar-views[data-cal-view="list"] .table-scroll,
  .calendar-views[data-cal-view="list"] .table-scroll-hint--auto { display: none; }
  .calendar-views[data-cal-view="list"] .calendar-list {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .calendar-list__item {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-top: none;
    border-left-width: 4px;
    background: #fff;
  }
  .calendar-list__item:first-child { border-top: 1px solid var(--color-border); }
  .calendar-list__item.is-school { border-left-color: var(--color-primary); background: #FFF7F7; }
  .calendar-list__item.is-event { border-left-color: #E0A800; background: #FFFCF0; }
  .calendar-list__item.is-tbd { border-left-color: #6BA3D6; background: #F7FBFF; }
  .calendar-list__item.is-holiday { border-left-color: var(--color-border); }
  .calendar-list__date {
    flex: 0 0 68px;
    font-weight: 700;
    font-size: 14px;
  }
  .calendar-list__dow { font-size: 12px; font-weight: 400; }
  .calendar-list__body { flex: 1 1 auto; }
  .calendar-list__status { font-size: 13px; }
  .calendar-list__note {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-top: 2px;
  }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: #16233C;
  color: #CBD5E1;
  padding: 48px 0 24px;
  margin-top: 48px;
  font-size: 14px;
}

.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0; }
.footer-grid li a { display: block; padding: 7px 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #94A3B8;
}

.footer-archive-link { opacity: 0.7; }

/* --- お申込みフォーム --------------------------------------------------- */

.form-field { margin-bottom: 18px; }
.form-field label.form-field__label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-required { color: var(--color-primary); font-size: 12px; font-weight: 700; margin-left: 6px; }
.form-hint { display: block; color: var(--color-text-muted); font-size: 12px; margin-top: 4px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-options { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.form-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}
.form-options input { margin: 0; }

.form-subgroup {
  margin: 10px 0 0 20px;
  padding: 12px 14px;
  background: var(--color-bg-alt);
  border-radius: 6px;
}
.form-subgroup__title { font-size: 13px; font-weight: 700; color: var(--color-text-muted); margin: 0 0 8px; }

/* --- イベントカード --------------------------------------------------- */

.event-card {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.event-card:first-child { padding-top: 0; }
.event-card:last-child { border-bottom: none; }

.event-card__body { flex: 1; min-width: 0; }
.event-card__photo {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--color-bg-alt);
}
.event-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  font-size: 40px;
}

.event-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.event-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}

.event-card__title { font-size: 19px; margin: 0 0 10px; }
.event-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.8; margin: 0 0 12px; }
.event-card__price { font-size: 15px; margin: 0 0 14px; }
.event-card__price strong { font-size: 20px; color: var(--color-primary); margin-right: 6px; }
.event-card__price span { font-size: 12px; color: var(--color-text-muted); }
.event-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .event-card { flex-direction: column-reverse; }
  .event-card__photo { width: 100%; }
}

.event-section-divider {
  text-align: center;
  margin: 48px 0 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-muted);
  position: relative;
}
.event-section-divider::before,
.event-section-divider::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--color-border);
  vertical-align: middle;
  margin: 0 12px;
}

/* --- かんがえる足（会員限定コラム） -------------------------------- */

.kangaeru-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.kangaeru-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.kangaeru-filter select {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
}
.kangaeru-filter-empty {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.kangaeru-issue {
  margin-bottom: 32px;
}
.kangaeru-issue h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 17px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}
.kangaeru-pdf-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  border-radius: 999px;
  padding: 4px 14px;
}
.kangaeru-pdf-link:hover {
  background: var(--color-secondary);
  color: #fff;
  text-decoration: none;
}
.kangaeru-coach {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.kangaeru-coach__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.kangaeru-coach__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.kangaeru-coach__avatar.photo-placeholder--emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}
.kangaeru-coach__avatar.photo-placeholder--emblem img { width: 70%; height: 70%; }
.kangaeru-coach__name {
  margin: 0;
  font-size: 16px;
}
.kangaeru-entry {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.kangaeru-entry:last-child { margin-bottom: 0; }
.kangaeru-entry h5 {
  margin: 0 0 2px;
  font-size: 15px;
}
.kangaeru-entry__sched {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.kangaeru-theme {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.kangaeru-entry p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.kangaeru-entry p:last-child { margin-bottom: 0; }

/* ===== 活動実績アーカイブ（旧WordPressから復元したページ） ===== */
/* 旧本文のHTMLをそのまま載せるため、はみ出しだけ確実に抑える */
.archive-article { line-height: 1.9; }
.archive-article img { max-width: 100%; height: auto; }
.archive-article table { max-width: 100%; }
.archive-article iframe { max-width: 100%; }
.archive-article__date { font-size: 14px; opacity: 0.85; margin: 0 0 4px; }
.archive-year { border-bottom: 1px solid var(--color-border); }
.archive-year > summary {
  cursor: pointer; padding: 14px 4px; font-weight: 700; list-style: none;
}
.archive-year > summary::-webkit-details-marker { display: none; }
.archive-year > summary::before { content: "▶"; display: inline-block; margin-right: 8px; font-size: 11px; transition: transform .2s; }
.archive-year[open] > summary::before { transform: rotate(90deg); }
/* 当時のタイトル欄に本文が書かれていた記事があるため、見出しも長文を許容する */
.archive-article__title { font-size: 20px; line-height: 1.6; }
@media (min-width: 768px) { .archive-article__title { font-size: 24px; } }

/* ===== 書類ダウンロード（入会案内の規約・概要PDF） ===== */
.doc-download { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.doc-download__lead { margin: 0 0 10px; font-weight: 700; font-size: 15px; }
.doc-download__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-download__buttons .btn {
  color: var(--color-primary); border-color: var(--color-primary); flex: 1 1 260px; text-align: center;
}

/* タイトル欄にお知らせ全体が書かれていた記事を、読める形に組み直したときの体裁 */
.archive-article__subhead {
  font-size: 17px; margin: 28px 0 10px; padding-left: 12px;
  border-left: 4px solid var(--color-primary); line-height: 1.5;
}
.archive-article__list { margin: 8px 0 16px; padding-left: 1.2em; }
.archive-article__list li { margin-bottom: 4px; }
.archive-article p { margin: 0 0 12px; }

/* 長いURLなど折り返せない文字列でスマホがはみ出すのを防ぐ。
   公開前検証(2026-11-13)で /policy/ など5ページの横スクロールを検出したため */
.container, .card, .archive-article, .news-list__title { overflow-wrap: anywhere; }

/* 日程が未定のイベントのボタン。押せないことが見た目で分かるようにする */
.btn--disabled {
  background: #e3e5e8;
  color: #8a9099;
  border: 1px solid #d5d8dc;
  cursor: default;
  pointer-events: none;
}
.btn--disabled:hover { transform: none; box-shadow: none; }
