/* soldout スタンプ（タイムスロット行に中央オーバーレイ） */
.timeslots li { position: relative; }
.timeslots .timeslot-time { position: relative; display: inline-block; }
.slot-soldout-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; /* 指定: 固定幅 80px */
  height: auto;
  z-index: 2;
  pointer-events: none;
}
/* ドラゴニクス3x3バスケットボールスクール - モバイルファースト */

:root {
  /* --bg-main: #b1e4ff; */
  --bg-main: #ffffff00;
  --bg-soft: #e9f8ff;
  --white: #ffffff;
  --text: #000000;
  --text-sub: #3d5a76;
  --line: #8fc7e3;
  --primary: #1D96D5;
  --primary-dark: #000064;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h3 {
  text-align:left;
  font-family: 'Noto Sans JP', "M PLUS 1p", sans-serif;
  font-size: 1.35rem;
}

body {
  font-family: "Noto Sans JP", "M PLUS 1p", "LINE Seed JP", "Hiragino Maru Gothic ProN", "メイリオ", sans-serif;
  color: var(--text);
  line-height: 1.7;
  /* background: #ffffff00; */
  background: var(--bg-main);
  /* padding-top: 52px; */
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* 横はみ出し要素がドキュメント幅を広げるのを防ぐ（sticky を壊さない） */
}

.container {
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
}

main,
.site-header,
.site-footer,
.section,
.hero {
  scroll-margin-top: 70px;
}

.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 43, 70, 0.1);
  backdrop-filter: blur(6px);
  padding-top: env(safe-area-inset-top);
}

.global-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 10px;
}

.global-nav-inner a {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid rgba(15, 43, 70, 0.14);
  border-radius: 999px;
  background: #fff;
}

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 80px 16px 20px;
  z-index: 33;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.side-nav .brand-logo {
  width: 80vw;
  max-width: 400px;
  margin-bottom: 30px;
}

.side-nav.active {
  transform: translateX(0);
}

.side-nav a {
  color: #000;
  font-family: 'M PLUS 1p', メイリオ, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 1);
  display: block;
}

.side-nav a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.side-nav__indicator {
  display: none;
}

.side-nav .side-nav__sns {
  padding-top: 18px;
  margin-top: auto;
  display: flex;
  gap: 12px;
}

/* ナビオーバーレイ（モバイルのみ） */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(177, 228, 255, 0.82);
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 34;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding-top: calc(8px + env(safe-area-inset-top));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
}

.floating-logo-link {
  /* ヘッダーの flex アイテム（非 compact 時は非表示・compact 時に左端へ） */
  display: none;
  width: 80px;
  flex-shrink: 0;
}

.floating-logo {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* ヒーロー内ロゴ（ページと共にスクロール・2枚ロゴ方式の「大ロゴ」） */
.hero-logo-link {
  /* flex アイテムとして配置 → 他要素と構造的に重なることがない */
  align-self: center;
  flex-shrink: 0;
  /* header（固定・約64px）+ safe-area 分を確保 */
  margin-top: calc(env(safe-area-inset-top) + 44px);
  width: min(calc(100% - 70px), 270px);
  display: block;
  pointer-events: none;
}

.hero-logo-link img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

@keyframes logo-slide-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初回読み込み段階登場アニメーション */
@keyframes entrance-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* JS が transform を制御する要素用（opacity のみ）
   transform を含む animation-fill-mode:both が JS の inline transform を上書きするため */
@keyframes entrance-fade-opacity {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 1. ロゴ：JS が translateY を制御するので opacity のみアニメーション */
.hero-logo-link {
  animation: entrance-fade-opacity 0.4s ease 0.3s both;
}

/* 2. badges：JS が translateY を制御するので opacity のみアニメーション */
.hero-badges {
  animation: entrance-fade-opacity 0.4s ease 0.6s both;
}
/* panel は JS 制御なので opacity のみ */
.hero .container:has(#heroPanel) {
  animation: entrance-fade-opacity 0.4s ease 0.6s both;
}

/* 3. menu ボタン（JS 非制御なので transform 込みで OK） */
.menu-toggle {
  animation: entrance-fade 0.6s ease 0.9s both;
}

body.logo-compact .hero-logo-link {
  display: none;
}

body.logo-compact .floating-logo-link {
  /* ヘッダーの flex アイテムとして表示・上からスライドイン */
  display: block;
  position: static;
  width: 80px;
  animation: logo-slide-in 0.2s ease forwards;
}


.menu-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: auto; /* 常に右端へ寄せる */
}

.menu-label {
  display: block;
  font-family: 'Carme', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: black;
  line-height: 1;
  user-select: none;
  transition: opacity 0.3s;
}

.menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.menu-lines span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: black;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active .menu-lines span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.active .menu-lines span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.brand-ja,
.brand-en {
  display: none;
}

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero-scroll-wrapper {
  height: 350svh;
  max-width: 100vw;
  overflow-x: clip;
}

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100vw;
  height: 100svh;
  overflow: hidden;
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 画像読込前の白画面を抑える暗色背景 */
  background-color: #0d1b2e;

}

/* ヒーロー背景スライド */
.hero-bg-slides {
  position: absolute;
  top: 0;
  bottom: 0;
  /* モバイル（main=100vw）でもデスクトップ（main=810px中央）でも
     常にビューポート全幅を覆う full-bleed 公式 */
  left: calc(50% - 50vw);
  width: 100vw;
  /* z-index を持たせない → スタッキングコンテキストを作らず子の z-index がヒーロー全体で有効になる */
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  will-change: transform;
}

/* slide[0] は最前面でスクロールに合わせて上へ退く */
.hero-bg-slide:first-child {
  z-index: 2;
}

/* ヒーロー内コンテンツを背景より前面に（固定要素・コーチコピーは除外） */
.hero > *:not(.hero-bg-slides):not(.floating-cta):not(.hero-coach-copy) {
  position: relative;
  z-index: 4;
}

/* 2枚目以降に表示するコーチ紹介コピー */
.hero-coach-copy {
  position: absolute;
  bottom: 300px;
  font-family: "M PLUS 1p", "Noto Sans JP", "LINE Seed JP", "Hiragino Maru Gothic ProN", "メイリオ", sans-serif;
  left: 0;
  right: 0;
  z-index: 1;
  color: #ffffff;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.hero-coach-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lead-title {
  font-size: clamp(1.25rem, 7vw, 2.2rem);
  font-weight: 800;
  -webkit-text-stroke: 3px #000000;
  paint-order: stroke fill;
  line-height: 1.15;
  text-shadow: 0 3px 12px rgba(0,0,0,0.38);
  text-align: right;
  rotate: -4.2deg;
  white-space: nowrap;
}

.lead-title strong {
  font-size: 0.62em;
}

.hero-inner {
  text-align: center;
  padding: 4px 0;
  margin-top: auto; /* ロゴと badges の間を埋めてバッジを下へ */
}

.hero-badges {
  /* margin-top: 10px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  will-change: transform;
}

/* .badge {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 8px;
} */

.badge-accent {
  display: block;
  /* border: 3px solid #1a1a1a; */
  text-shadow: none;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.hero h1 {
  font-size: 1.6rem;
  line-height: 1.35;
}

.hero-sub {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.hero-sub,
.card p,
.contact-text,
details p {
  line-height: 1.9;
}

.hero-visual-placeholder {
  display: none;
}

.cta-button {
  display: inline-block;
  justify-items: center;
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border: 1px solid transparent;
}

.cta-button img.cta-arrow {
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: text-bottom;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.cta-alert {
  text-align: center;
    display: inline-block;
  justify-items: center;
  background: #fff;
  font-size: 0.88rem;
  color: #c0392b;
  border: 1px solid #c0392b;
  font-weight: 700;
  margin-top: 15px;
  /* max-width: fit-content; */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-alert img.cta-arrow {
  filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(1200%) hue-rotate(348deg) brightness(95%);
}

.cta-alert:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-sub {
  background: var(--white);
  color: var(--primary-sub);
  border: 2px solid #000000;
}

.cta-map {
  padding: 12px 16px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
}

.hero-event-panel__cta {
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 100%;
}

/* ヒーローの position は .hero-scroll-wrapper + sticky で管理 */

/* 固定の丸型CTA */
.floating-cta , .heroPanelOverlay {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom));
  right: calc(14px + env(safe-area-inset-right));
  width: 76px;
  height: 76px;
  background: #ffc83d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #4b2f00;
  font-weight: 600;
  line-height: 1.3;
  z-index: 32;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.floating-cta__main { font-size: 0.88rem; display: block; }
.floating-cta__sub { font-size: 0.58rem; display: block; margin-top: 1px; -webkit-text-stroke: 3px #ffffff; paint-order: stroke fill; }

/* コンパクト丸型時に表示するラベル */
.hero-event-panel__compact-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-weight: 500;
  font-size: 0.75rem;
  color: #7a1040;
  line-height: 1.3;
  pointer-events: none;
}

/* SVGアイコン共通仕様 */
.hero-event-panel__compact-icon svg,
.floating-cta__main svg {
  width: 14px;
  height: auto;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 1.5px #fff);
  display: block;
  margin-inline: auto;
  margin-bottom: 4px;
}
/* SVGアイコン個別カラー */
.hero-event-panel__compact-icon svg { fill: #0048FF; }
.floating-cta__main svg            { fill: #4b2f00; }

/* 大きなビジュアルとコピー */
.lead-splash {
  position: relative;
}

.lead-splash__image {
  width: 100%;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
              radial-gradient(1200px 500px at 50% 10%, rgba(255,255,255,0.12), rgba(0,0,0,0) 60%),
              url('../common/lead-placeholder.jpg');
  background-size: cover;
  background-position: center;
}

.lead-splash__copy {
  position: relative;
  margin-top: -180px;
  margin-bottom: 10px;
  color: #ffffff;
}

.section {
  position: relative;
  padding: 54px 0;
  margin-top: -40px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.45);
}

#events ,#classes ,#faq {
  background-color: #B1E4FF;
  border-radius: 0 40px 0 0;
  padding: 3rem 0 6rem 0;
}

#about-3x3 {
  background-image: url('../common/3x3basketball_BG.jpg');
  background-size: cover;
  background-position: center;
  background-color: transparent;
  padding: 3rem 0 8rem 0;
  border-radius: 0 40px 0px 0;
}

#about-dragonix-3x3 ,#court {
  background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
                    url('../common/3x3\ school_BG.png');
  background-size: auto, 175%;
  background-repeat: repeat, repeat;
  background-position: 0 0, 0 0;
  background-color: transparent;
  padding: 3rem 0 6rem 0;
  border-radius: 0 40px 0px 0;
}

#coaches ,#contact {
  background-color: #ffffff;
  border-radius: 0 40px 0px 0;
  padding: 3rem 0 6rem 0;
}

#trial {
  background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
                    url('../material/71bf583b63a7ef577c3228266ef6b325_260228_shiro.png');
  background-size:cover;
  background-repeat: repeat, repeat;
  background-position: right 60% top 0;
  background-color: transparent;
  padding: 3.5rem 0 3.5rem 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

#trial > .container p {
  padding: 16px 0 16px 0;
  font-weight: 600;
  margin-bottom: 15px;;
}

#trial > .container h3 {
  text-align:left;
  font-size: 1.45rem;
  margin-bottom: 22px;
}

#trial > .container > p.application {
  font-size: 0.75rem;
  font-weight: 400;
}

/* イベント横スクロール */
.event-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85vw, 480px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(7.5vw, calc((100vw - 480px) / 2));
  padding-bottom: 8px;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: max(7.5vw, calc((100vw - 480px) / 2));
  padding-right: max(7.5vw, calc((100vw - 480px) / 2));
}

.event-card {
  scroll-snap-align: center;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative; /* 満席バッジの絶対配置用 */
  transition: opacity 0.22s ease;
}

/* イベントカード 写真エリア（ロゴオーバーレイ付き） */
.event-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card__logo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  /* padding: 18% 16px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__logo-overlay img {
  max-height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* TAT専用: 写真右上のNEWバッジ */
.event-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e60020;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* イベントカード 本文エリア */
.event-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.event-title {
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin: 0;
  color: var(--text);
}

/* 会場別カラー：タイトル */
.event-card--tat .event-title {
  color: #e60020;
}
.event-card--usp .event-title {
  color: #009fe8;
}

/* 会場別カラー：場所 */
.event-card--tat .venue-place {
  color: #e60020;
}
.event-card--usp .venue-place {
  color: #009fe8;
}

/* イベント詳細 2カラム dl */
.event-details {
  display: grid;
  grid-template-columns: 3.6em 1fr;
  gap: 0 7px;
  margin: 0;
}

.event-details dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.7;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
}

.event-details dd {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
}

/* 最後の行は下線なし */
.event-details dt:last-of-type,
.event-details dd:last-child {
  border-bottom: none;
}

.event-note {
  font-size: 0.78rem;
  color: var(--text-sub);
  text-align: center;
  margin: 0;
}
.event-card__body > .cta-button {
  text-align: center;
  width: 100%;
  max-width: 480px;
}

/* フィルタ一致なし時のメッセージ */
.event-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* 追加: イベント（動的生成）用スタイル */
/* 時間割リスト */
.timeslots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.timeslots li {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;         /* 改行なし */
  gap: 6px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
  position: relative;        /* バッジ絶対配置の基準 */
}
.timeslot-text {
  white-space: nowrap;       /* 時刻+ラベルは1行キープ */
  flex: 1 1 auto;            /* 余白に応じて伸縮 */
  min-width: 0;              /* 省略時のオーバーフロー抑止 */
}
.slot-capacity {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-sub);
}

/* 枠ごとのステータスバッジ */
.slot-badge {
  position: absolute;         /* テキスト上に重ねる */
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  z-index: 1;
}
.slot-badge--open {
  background: #e7f7ef;
  color: #1a7d41;
  border-color: #a6ddb9;
}
.slot-badge--full {
  background: #ffe5e3;
  color: #b61f1f;
  width: max-content;
  border-color: #f2b6ae;
}
.slot-badge--closed {
  background: #eeeeee;
  color: #6b6b6b;
  border-color: #d0d0d0;
}

/* デザイン上は open/closed は非表示（満席のみ表示） */
.slot-badge--open,
.slot-badge--closed { display: none; }

/* closed スロットは取り消し線＋グレーアウト */
.timeslot--inactive .timeslot-text {
  text-decoration: line-through;
  opacity: 0.45;
}

/* 狭幅でも改行させず、右端に重ねる（追加指定不要） */

/* 日全体の満席バッジ */
.event-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: #e74c3c;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.event-badge--full { background: #e74c3c; }

/* 終了カードの見た目（全体を薄く覆うオーバーレイ。バッジは上に重ねる） */
.event-card--ended { position: relative; }
.event-card--ended::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 1; /* バッジより下 */
}
.event-card--ended .timeslot-time {
  opacity: 0.7;
}

.event-badge--closed { 
  background: #e74c3c; }
/* 画像エリア中央下に配置 */
.event-card__photo { position: relative; }
.event-card__photo .event-badge--closed {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translateX(-50%);
  text-align: center;
  padding: 8px 14px;
  z-index: 3; /* オーバーレイより前面に */
}

/* 終了時のCTA無効化 */
.cta-button--disabled {
  background: #cccccc !important;
  color: #666666 !important;
  border-color: #cccccc !important;
  pointer-events: none;
  cursor: not-allowed;
  /* text-decoration: line-through; */
}

.events-title {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
  margin: 0;
}

/* =====================
   Hero内イベントパネル
   ===================== */
.hero-event-panel {
  position: relative;
  container-type: inline-size;
  background: #ffd6e8;
  border-radius: 20px;
  padding: 15px 16px 15px;  /* 上は飛び出したタグ分の余白 */
  overflow: visible;
  margin-top: 36px;
   /* top: 50%; */

  /* transform: translate(-50%, -50%);  */
  width: 100%;
  max-height: 330px;
  max-width: 480px;
  margin-inline: auto;
  /* transition は JS の FLIP が管理 */
}


/* パネル自身が panel-compact になることはなくなったため削除 */

/* ============================================
   #heroPanelOverlay — 変形アニメーション専用
   ============================================ */
#heroPanelOverlay {
  display: none;
  position: fixed;
  background: #FFE4F4;
  overflow: hidden;
  z-index: 32;
  cursor: pointer;
  /* box-shadow はコンパクト時のみ */
}

#heroPanelOverlay .hero-event-panel__compact-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 500;
  font-size: 0.55rem;
  color: #0048FF;
  line-height: 1.2;
  pointer-events: none;
  -webkit-text-stroke: 2px #ffffff;
  paint-order: stroke fill;
}

@keyframes panel-appear {
  from { opacity: 0; transform: scale(0.65); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes panel-disappear {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.65); }
}

#heroPanelOverlay.panel-compact {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  animation: panel-appear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#heroPanelOverlay.panel-disappearing {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  animation: panel-disappear 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}

#heroPanelOverlay.panel-compact .hero-event-panel__compact-label {
  display: flex;
}

/* #events より下にいるとき SVG を上向き（180度回転）に */
#heroPanelOverlay.svg-flip .hero-event-panel__compact-icon svg {
  transform: rotate(180deg);
}

/* -----------------------------------------------
   hero-event-panel 内コンテンツ: 300px内に収める
   ----------------------------------------------- */
.hero-event-panel .hero-event-panel__header {
  margin-bottom: 8px;
}
.hero-event-panel .events-season-tag {
  position: absolute;
  top: -35px;
  left: 14px;
  width: 80px;
  height: auto;
}
.hero-event-panel .events-title {
  text-align: center;
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 8.7cqw, 50px);
  line-height: 1.25;
  white-space: nowrap;
  /* テキストストローク: 外側2px・丸型・白
     -webkit-text-stroke は stroke が文字エッジを中心に描かれるため
     4px 指定 + paint-order: stroke fill で塗りが上に重なり
     外側に実質 2px のみ見える（= Outside 2px 相当） */
  -webkit-text-stroke: 4px #ffffff;
  paint-order: stroke fill;
}
.hero-event-panel .events-title strong{
  color: red;
  font-weight: 700;
}
.events-title .kern-clinic {
  letter-spacing: -0.08em;
}
.events-title .kern-excl {
  margin-left: -0.08em;
}
.hero-event-panel .events-venue-grid {
  gap: 6px;
}
.hero-event-panel .venue-block {
  gap: 4px;
}
/* 写真は aspect-ratio をやめて固定高さに */
.hero-event-panel .venue-photo {
  aspect-ratio: unset;
  height: 72px;
}
/* .hero-event-panel .venue-logo {
  padding: 5px 7px 6px;
  gap: 1px;
} */
.hero-event-panel .venue-logo__tag {
  font-size: 0.65rem;
}
.hero-event-panel .venue-logo__name {
  font-size: 0.78rem;
}
.hero-event-panel .date-pills {
  gap: 3px;
  min-height: 42px; /* 2行分を確保 → pill数が少なくても高さを揃える */
  align-content: start;
}
.hero-event-panel .date-pill {
  font-size: 0.65rem;
  padding: 4px 2px;
}
.hero-event-panel .venue-expand {
  font-size: 0.9rem;
  padding-bottom: 0;
}
.hero-event-panel .hero-event-panel__more {
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}


.hero-event-panel__more {
  display: block;
  width: calc(100% + 28px);
  margin-left: -14px;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  margin-top: 14px;
}

.events-season-tag {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 4px;
}

/* イベントパネル 右側浮き出しCTA */
.events-venue-grid {
  /* width: 50%; */
  display: grid;
  grid-template-columns: 1fr 1fr auto; 
  /* grid-template-columns: 3fr 1fr auto; */
  gap: 8px;
  align-items: stretch;
  /* align-items: start; */
  justify-content: center;
  margin-bottom: 6px; 
  /* margin: 0 auto 6px; */
}

.event-panel-cta__chevrons {
  font-size: 1rem;
  display: block;
  margin-bottom: 2px;
}

.venue-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 10px;
  gap: 6px;
  background-color: #fff;
  /* a タグ化によるリンクスタイルをリセット */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.venue-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px 10px 0 0;
  background: #b1c8d8 ;
  overflow: hidden;
}

.venue-photo--indoor {
  background-color: #c8d8c8;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TAT画像用のNEWバッジ */
.venue-new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e60020;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ロゴカード: 白背景の小カード */
.venue-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px 4px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden; /* ロゴ画像がカードをはみ出すのを防ぐ */
}

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

/* 日程ピル */
.date-pills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 4px;
  margin: 0;
}

.date-pill {
  background: #D8F2FF;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding: 5px 4px;
  line-height: 1;
}

/* 展開ボタン */
.venue-expand {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1;
  padding-bottom: 2px;
  cursor: pointer;
  margin-top: auto; /* venue-block 下端に揃える */
}

.event-more__body { margin-top: 10px; color: var(--text-sub); }

.section-title {
  text-align: center;
}

.section-title p  {

  font-size: 1.4rem;
  font-weight: 500;
}

.section-title h2 {
  font-size: 1.86rem;
  line-height: 1.1;
  font-weight: 700;
}

.section-title h2 > span {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 200;
  font-family: 'Carme', sans-serif;
  margin-bottom: 18px;
}

.section-title h2 > span > span {
  display: inline-block;
  font-size: 0.87rem;
  font-weight: 900;
}

#about-3x3 .section-title {
  color: var(--white);
}

/* イベント フィルターボタン */
.event-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.event-filter__btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 43, 70, 0.25);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--text);
}

.event-filter__btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* イベント ナビゲーション */
.event-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.event-nav__btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.event-nav__btn:disabled {
  opacity: 0.4;
}

.event-nav__btn svg {
  color: var(--primary);
}

.card-grid {
  display: grid;
  gap: 27px;
}

.card {
  background: var(--white);
  /* border: 1px solid rgba(15, 43, 70, 0.1); */
  border-radius: 20px;
  padding: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.card p + p {
  margin-top: 8px;
}

/* ────────────────── About 3x3 basketball ここから ─────────────────── */

#about-3x3 .card {
  padding: 16px;
}

#about-3x3 .card h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

#about-3x3 .card p {
  font-size: 0.85rem;
  line-height: 1.8;
  font-weight: 400;
}



/* ────────────────── スクールの特徴カード ─────────────────── */

/* card-gridをcontainerの左右余白(24px)の外まで広げる */
#about-dragonix-3x3 .card-grid {
  margin-left: -24px;
  /* margin-right: -24px; */
}

#about-dragonix-3x3 .card {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 20px 32px;
  max-width: none;   /* このセクションのみmax-width解除 */
  margin: 0;         /* .cardのmargin: 0 autoを上書き */
}

/* 奇数カード：左端を画面端まで・右に24px余白・左角丸なし */
#about-dragonix-3x3 .card:nth-child(odd) {
  margin-right: 24px;
  border-radius: 0 20px 20px 0;
  padding-left: 44px; /* 24px(画面余白分) + 20px(通常padding) */
}

/* 偶数カード：右端を画面端まで・左に24px余白・右角丸なし */
#about-dragonix-3x3 .card:nth-child(even) {
  margin-left: 24px;
  border-radius: 20px 0 0 20px;
  padding-right: 44px; /* 24px(画面余白分) + 20px(通常padding) */
}

#about-dragonix-3x3 .card > div:first-child {
  width: 150px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  align-self: center;
  text-align: left;
}

#about-dragonix-3x3 .card > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#about-dragonix-3x3 .card h3 {
  align-self: center;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 0;
}

#about-dragonix-3x3 .card p {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 12px !important;
}

/* 偶数カード：画像を右・見出しを左に反転 */
#about-dragonix-3x3 .card:nth-child(even) {
  grid-template-columns: 1fr 130px;
}

#about-dragonix-3x3 .card:nth-child(even) > div:first-child {
  grid-column: 2;
  grid-row: 1;
}

#about-dragonix-3x3 .card:nth-child(even) h3 {
  /* text-align: right; */
  /* text-align: left; */
  grid-column: 1;
  grid-row: 1;
}


@media (min-width: 512px) and (max-width: 840px) {
  #about-dragonix-3x3 .card-grid {
  margin-left: -99px;
  /* margin-right: -24px; */
}

#about-dragonix-3x3 .card {
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 20px 64px;
  max-width: none;   /* このセクションのみmax-width解除 */
  margin: 0;         /* .cardのmargin: 0 autoを上書き */
}

/* 奇数カード：左端を画面端まで・右に24px余白・左角丸なし */
#about-dragonix-3x3 .card:nth-child(odd) {
  margin-right: 99px;
  border-radius: 0 20px 20px 0;
  padding-left: 124px; /* 24px(画面余白分) + 20px(通常padding) */
}

/* 偶数カード：右端を画面端まで・左に24px余白・右角丸なし */
#about-dragonix-3x3 .card:nth-child(even) {
  margin-left: 99px;
  border-radius: 20px 0 0 20px;
  padding-right: 124px; /* 24px(画面余白分) + 20px(通常padding) */
}

#about-dragonix-3x3 .card > div:first-child {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  align-self: center;
}
}

@media (max-width: 450px) {
  #about-dragonix-3x3 .card {
    display: block;
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
  }

  #about-dragonix-3x3 .card > div:first-child {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
  }

  #about-dragonix-3x3 .card h3 {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 8px;
    text-align: center;
  }

  #about-dragonix-3x3 .card p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 8px !important;
  }
}

/* ────────────────── クラス紹介カード ─────────────────── */

/* アイコン＋クラス名を横並び */
#classes .card:has(.class-icon) {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: start;
}

/* アイコン以外の全要素は両列をまたぐ */
#classes .card .class-age,
#classes .card .class-desc,
#classes .card .schedule,
#classes .card .price,
#classes .card .cta-button {
  grid-column: 1 / -1;
}

/* クラスアイコン（丸形バッジ） */
.class-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  flex-shrink: 0;
  font-family: 'M PLUS 1p', sans-serif;
  letter-spacing: 0;
  align-self: center;
}

.class-kids       { background: #FF0000; }  /* キッズ：レッド */
.class-beginner   { background: #0067A5; }  /* Beginner：ブルー */
.class-advanced   { background: #8300FF; }  /* Advanced：パープル */
.class-highschool { background: #228C22; }  /* 中高生：グリーン */
.class-skillup    { background: #FF00FF; }  /* スキルアップ：パープル */

/* クラスカードの年齢・説明 */
/* h3内のサブラベル（例：(Beginner : 初心者)） */
#classes .card h3 {
  font-size: 1.4rem;
  align-self: center;
  margin-bottom: 0;
}

#classes .card h3 span {
  /* display: block; */
  font-size: 0.9rem;
  font-weight: 400;
  /* color: var(--text-sub); */
  margin-top: 2px;
}

.class-age {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 6px !important;
  margin-top: 8px;
}

.class-desc {
  font-size: 0.78rem;
  line-height: 1.45 !important;
  color: var(--text);
  margin-bottom: 18px !important;
}

/* ── スケジュール ── */
.schedule {
  /* background: #f3f9fd; */
  border-radius: 12px;
  /* padding: 12px 14px; */
  margin-bottom: 16px;
}

.schedule__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.schedule__header img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.schedule__header p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 !important;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin-left: 29px;
  display: grid;
  gap: 6px;
}

.schedule-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.schedule-item__day {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 4.5em;
  line-height: 1.7 !important;
  padding-top: 1px;
  flex-shrink: 0;
}

.schedule-item__times {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.schedule-warmup {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 4px;
}

/* ── 料金ピル ── */
.price {
  margin-bottom: 18px;
}

.price__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.price__header img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.price__header p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 !important;
}

.price__header-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-sub);
}

/* メイン料金表示 */
.price-main {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 18px 10px;
  /* background: var(--bg-soft); */
  border-radius: 10px;
  /* margin-bottom: 10px; */
}

.price-main__label {
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 3px 10px;
  white-space: nowrap;
}

.price-main__value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-main__value small {
  font-size: 1rem;
  font-weight: 700;
}

.price-main__unit {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 2px;
}

.price-sub-heading {
font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 3px 10px;
  white-space: nowrap;
  margin-bottom: 12px;;
}

.price-discount-heading {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  margin: 6px 0 4px !important;
  padding-left: 4px;
}

.price-pills {
  list-style: none;
  padding: 0;
  margin: 8px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.price-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
}

.price-pill__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  margin: 0 !important;
}

.price-pill__label sup {
  font-size: 0.7em;
}

.price-pill__value {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 !important;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.price-pill--discount .price-pill__new {
  color: #e04040;
}

.price-pill--discount .price-pill__old {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-sub);
  text-decoration: line-through;
}

.price__note {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 8px !important;
  margin-left: 19px;
}

#classes .card .cta-button {
  max-width: 480px;
  margin-top: auto; /* クラスカードのCTAをカード下部に揃える */
}

/* ── その他の費用・脚注 ── */
.join-price {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 43, 70, 0.08);
}

.join-price:last-of-type {
  border-bottom: none;
}

.join-price p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0 !important;
}

.join-price p:first-child {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.join-price p:nth-child(2) {
  font-size: 1.05rem;
  font-weight: 700;
  justify-self: end;
  text-align: right;
}

.join-price p:nth-child(2) span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 2px;
}

.join-price .notes {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  line-height: 1.5 !important;
  color: var(--text-sub);
  margin-top: 2px !important;
  text-align: left;
}

.footnotes {
  padding: 16px 4px 0;
  display: grid;
  gap: 8px;
}

.footnotes p {
  font-size: 0.68rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0 !important;
}

/* ── ホームコートカード ── */
#court .card {
  margin: 0 auto;
  padding: 0;
  width: 100% ;
  max-width: 480px;
  overflow: hidden;
}

#court .card > div:first-child {
  overflow: hidden;
  max-height: 200px;
}

#court .card > div:first-child img {
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: center 65%;
}

#court .card .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 43, 70, 0.08);
  margin-bottom: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
#court .card .logo:hover { opacity: 0.75; }

#court .card .logo img {
  width: auto;
  max-width: 220px;
  height: auto;
}

#court .card .logo .logo__external {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.45;
}

#court .card h3 {
  padding: 12px 20px 0;
  font-size: 1.05rem;
  color: #009fe8;
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
}

#court .card h3 span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  /* color: var(--text-sub); */
  margin-top: 2px;
}

#court .card h4 {
  padding: 8px 20px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}

/* アクセス情報（アイコン＋テキスト） */
.access {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 20px;
}

.access img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}

.access p {
  font-size: 0.83rem;
  /* line-height: 1.55; */
  color: var(--text);
}

#court .card .cta-map {
  display: block;
  margin: 16px 20px 20px;
  width: calc(100% - 40px);
  max-width: none;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--primary-dark);
}

.coach-grid {
  display: grid;
  grid-auto-flow: column;
  /* 85vw が 480px を超える幅（≈565px〜）ではカードが max-width: 480px で止まり
     セル内で左寄りになるため min() で上限を揃える */
  grid-auto-columns: min(85vw, 480px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* カードが 480px 固定になった領域では (100vw - 480px)/2 でセンタリング */
  scroll-padding-inline: max(7.5vw, calc((100vw - 480px) / 2));
  padding-bottom: 8px;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: max(7.5vw, calc((100vw - 480px) / 2));
  padding-right: max(7.5vw, calc((100vw - 480px) / 2));
}

.coach-card {
  width: 100%;
  max-width: 480px;;
  scroll-snap-align: center;
  background: var(--bg-soft);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 28px 20px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.coach-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  text-align: center;
}

.coach-card h3 span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-sub);
}

.coach-card > p:first-of-type {
  /* 英語名 */
  font-size: 0.88rem;
  font-family: 'Carme', sans-serif;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 16px;
}

.coach-card p.profile {
  /* プロフィール文 */
  font-size: 0.82rem;
  color: var(--text);
  text-align: left;
  line-height: 1.65;
  margin-bottom:  14px;
}

.coach-card .website {
  display: flex;
  justify-content: center;
  margin: 16px 0 12px;
  margin-top: auto; /* flexで下に固定 */
}

.coach-card .website img {
  width: 180px;
  height: auto;
}

.coach-card .sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 12px 0 20px;
  margin-top: auto; /* .website がない場合に下に固定 */
}

/* .website直後の.snsはauto-margin不要（.websiteが既に下に固定している） */
.coach-card .website + .sns {
  margin-top: 12px;
}

.coach-card .sns a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-card .sns img {
  width: 28px;
  height: 28px;
}


.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  background-color: #d3d3d3;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.coach-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.coach-nav__btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.coach-nav__btn:disabled {
  opacity: 0.4;
}

.coach-nav__btn svg {
  color: var(--primary);
}

.contact {
  padding-bottom: 64px;
}

.application-actions{
  /* display: grid; */
  text-align: center;
  justify-content: center;
  margin-bottom: 65px;
}

.application-actions h3,
.contact-actions h3 {
  text-align: center;
  margin-bottom: 12px;
}

.application-actions h3 img{
  width: 100%;
  max-width: 480px;
  height: auto;
}

.contact-cta{
  margin-bottom: 30px;
}

.contact-text {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.contact-actions {
  text-align: center;
}

.contact-actions p {
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.contact-actions > .cta-button {
  margin-bottom: 16px;
}

.cta-line {
   background: #06C755;
   font-weight: 500 !important;
}

.cta-line img {
  width: 25px;
  height: auto;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 12px;
}

.faq-list {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

details {
  background: var(--white);
  /* border: 1px solid rgba(15, 43, 70, 0.1); */
  border-radius: 20px;
  /* padding: 24px 32px; */
  overflow: hidden;
  transition: background-color 0.3s ease;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  transition: background-color 0.3s ease;
  user-select: none;
}

/* デフォルトの三角形を非表示 */
summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  display: none;
}

/* ホバー効果 */
details:hover {
  background-color: #ebffff;
}

summary:active {
  background-color: rgba(11, 108, 168, 0.1);
}

.faq-question {
  flex: 1;
  text-align: left;
}

.faq-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--primary-dark);
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* 開いている時の矢印回転 */
details[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
  padding: 0 32px;
}

details[open] .faq-answer {
  opacity: 1;
  padding: 0 32px 24px 32px;
}

.faq-answer p {
  color: var(--text-sub);
}

.site-footer {
  position: relative;
  background-image: linear-gradient(rgba(255, 255, 255, 0.17), rgba(255,255,255,0.17));
  background-color: transparent;
  padding: 3.5rem 0 3.5rem 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../common/3x3%20school_BG.png');
  background-size: 225%;
  background-repeat: no-repeat;
  background-position: right 0 top 10;
  transform: rotate(180deg);
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #d9effa;
}

.footer-brand {
  display: block;
  margin-bottom: 16px;
}

.footer-brand > img {
  width: 90vw;
  max-width: 400px;
  height: auto;
  display: block;
}

.brand-name {
  display: none;
}

.sns_footer {
  gap: 10px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.side-nav__sns a,
.sns_footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #000000;
  border-radius: 999px;
  flex-shrink: 0;
}

.sns_footer a img {
  width: 22px;
  height: 22px;
}

.footer-inner .g-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.g-nav li {
  margin: 0;
}

.g-nav li a {
  display: block;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #000000;
  /* border-bottom: 1px solid rgba(255,255,255,0.1); */
  text-decoration: none;
}

/* .g-nav li:first-child a {
  border-top: 1px solid rgba(255,255,255,0.1);
} */

/* 上段と下段の区切り線 */
.footer-inner > span {
  display: block;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 28px 0 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 0.7rem;
  color: #ffffff;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-inner > p:last-child {
  font-size: 0.7rem;
  color: rgba(217,239,250,0.6);
  text-align: center;
}

@media (min-width: 841px) {
  body {
    padding-top: 0px;
    background-color: #ffffff;
  }

  .global-nav {
    position: sticky;
    top: 0;
  }

  .global-nav-inner {
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  main,
  .site-footer {
    margin-top: 60px;
    margin-left: auto;
    margin-right: max(20px, 4vw);
    width: calc(100vw - max(20vw, 180px));
    max-width: 530px;
    border-radius: 40px;
    overflow: clip;
    border: 10px solid #8fc7e3;
  }

  .site-header {
    left: auto;
    right: max(30px, 4vw);
    width: calc(100vw - max(20vw, 180px));
    max-width: 540px;
    transform: none;
  }

  .menu-toggle {
    display: none;
  }

  .side-nav {
    font-family: 'M PLUS 1p', メイリオ, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 40vw;
    min-width: 180px;
    max-width: 300px;
    height: 100vh;
    /* background: #8fc7e3; */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 80px 16px 20px 44px;
    z-index: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    overflow-y: auto;
  }

  .side-nav .brand-logo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 32px;
  }

  .side-nav__indicator {
    display: block;
    position: absolute;
    left: 25px;
    top: 80px;
    width: 20px;
    height: 20px;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    flex-shrink: 0;
  }

  .side-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .side-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: black;
    padding: 10px 12px;
    border-radius: 8px;
    position: relative;
  }

  .side-nav a::after {
    content: none;
  }

  .side-nav a span {
    position: relative;
    display: inline-block;
  }

  .side-nav a span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8fc7e3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 1px;
  }

  .side-nav a:hover span::after {
    transform: scaleX(1);
  }

  .side-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
  }

    .side-nav__sns {
    display: flex;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 20px;
    border-radius: 999px;
  }

.side-nav__sns a {
    border-radius: 999px;
  }

  .nav-overlay {
    display: none;
  }

  main {
    position: relative;
    z-index: 1;
  }

  .pc-radius {
    border-radius: 40px 40px 0 0;
  }

  .container {
    width: min(100% - 48px, 760px);
  }

  .site-header {
    background: transparent;
  }

  .hero {
    min-height: 100svh;
    padding: 0 0 32px;
    background-size: cover;
    background-position: center top;
  }

  /* PC: full-bleed を解除し main の幅・角丸に合わせる */
  .hero-bg-slides {
    left: 0;
    width: 100%;
    /* border-radius: 40px 40px 0 0; */
    overflow: hidden;
  }

  .hero-bg-slide:first-child {
    border-radius: 0;
    clip-path: none;
  } 

  /* PC ヒーロー内ロゴ：main に margin-top:60px があるのでヘッダー回避は不要 */
  .hero-logo-link {
    margin-top: 30px;
    width: min(calc(100% - 60px), 290px);
  }

  body.logo-compact .floating-logo-link {
    /* PC でもヘッダーの flex アイテムとして上からスライドイン */
    display: block;
    position: static;
    width: 80px;
    animation: logo-slide-in 0.2s ease forwards;
  }

  .hero-inner {
    padding: 32px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-visual-placeholder {
    min-height: 320px;
  }

  h2 {
    font-size: 1.9rem;
    margin-bottom: 28px;
  }

  /* .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  } */

  /* .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  } */

  /* .coach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  } */

  /* .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
  } */

  /* PC: window 右端に配置（モバイルと同じ right 値） */
  .floating-cta {
    width: 100px;
    height: 100px;
    right: calc(14px + env(safe-area-inset-right));
    bottom: 40px;
  }
  .floating-cta__sub { font-size: 0.78rem; }
  #heroPanelOverlay .hero-event-panel__compact-label { font-size: 0.78rem; }

  .lead-splash__image { min-height: 620px; }
  .lead-title { font-size: 2rem; }

  /* .hero-event-panel {
    padding: 14px 14px 0; 
  } */

  /* PC では events-title を大きく（パネル外のみ） */
  .events-title { font-size: 1.8rem; }

  /* PC でも events-title の大型化をパネル内では抑制 */
  /* .hero-event-panel .events-title { font-size: 1.05rem; } */

  /* PC でも padding が 14px のままなので幅計算を維持 */
  .hero-event-panel .hero-event-panel__more {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .hero-event-panel .events-venue-grid { gap: 6px; }

  .date-pill { font-size: 0.82rem; padding: 5px 4px; }

  .cta-button {
    min-width: 250px;
  
  }

  .section {
    padding: 84px 0;
  }

  /* コーチgrid: 841px以上は main 内側幅 520px(=540px-border20px) が固定
     カード 480px → 中央揃えの padding = (520 - 480) / 2 = 20px */
  .coach-grid {
    grid-auto-columns: 480px;
    scroll-padding-inline: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* イベントscrollerも同様に固定センタリング */
  .event-scroller {
    grid-auto-columns: 480px;
    scroll-padding-inline: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1100px) {
  main,
  .site-footer {
    margin-right: max(150px, 18vw);
    width: calc(200vw - max(23vw, 190px));
    max-width: 600px;
  }

  /* 841px で右寄せになった .site-header をフルワイドに戻し、
     内側の header-inner で main と同じ幅・位置に揃える */
  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

  .site-header .header-inner {
    margin-left: auto;
    margin-right: max(150px, 16vw);
    width: calc(200vw - max(23vw, 190px));
    max-width: 600px;
  }
}

/* ============================================================
   縦幅が小さい画面 (< 650px)：hero 内ロゴとの重なりを防ぐ
   hero-event-panel を非表示にしてバッジとの間隔を確保する
   ============================================================ */
@media (max-height: 500px) {
  /* hero 内のイベントパネルエリアを非表示 */
  .hero .container:has(#heroPanel) {
    display: none;
  }
  /* fixed で浮いている overlay パネルは panel-compact 以外を非表示 */
  #heroPanelOverlay:not(.panel-compact):not(.panel-disappearing) {
    display: none !important;
  }

  .badge-accent{
    margin-bottom: 25vh;
  }
}

/* ============================================================
   スクロールフェードインアニメーション
   .fade-up → .is-visible を JS (scroll-fade.js) で付与
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  /* prefers-reduced-motion：動きを減らす設定のユーザーには即表示 */
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* JS 無効 / 非対応ブラウザ向けフォールバック */
@media (scripting: none) {
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* アクセシビリティ：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    transition: opacity 0.3s ease;
    transform: none;
  }
}
