/* =========================================================
   Sunny Side School - 共通スタイル
   ========================================================= */

/* 🌟 ベースフォント：PC / スマホ / タブレットで見た目を揃えるため
   Google Fonts の M PLUS Rounded 1c を最優先にする。
   - 旧来は Windows 限定の創英角ポップ体（HG / HGP / HGS）を優先していたが、
     iOS / Android / macOS には存在せずフォールバックされて表示差が出るため格下げ。
   - 創英角ポップ体は Web フォント未読込時の最終手段としてのみ残す。
   - Font Awesome のアイコン（i.fa-*）は own font-family が当たるよう、
     `*` ではなくテキスト系セレクタにのみ強制適用して、アイコンを壊さない。 */
:root {
  --font-pop: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN',
              'Yu Gothic', 'Meiryo',
              'HGP創英角ﾎﾟｯﾌﾟ体', 'HGS創英角ﾎﾟｯﾌﾟ体', 'HG創英角ﾎﾟｯﾌﾟ体',
              'HGP Soei Kaku Poptai',
              system-ui, sans-serif;
}
body {
  font-family: var(--font-pop);
}
body, p, h1, h2, h3, h4, h5, h6,
span, a, li, dt, dd, td, th, label, button, summary, input, textarea, select, small, time {
  font-family: var(--font-pop) !important;
}
/* 数値・英字（時間割・料金）は丸ゴシックの数字グリフのみで読みやすくなる */
.tabular { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* 🅰️ ディスプレイ（見出し・主役）フォント：創英角ポップ体に最も近い Web フォント
   「Mochiy Pop One」を、見出し・ヒーロー・ボタン・バッジ等の“主役”に適用する。
   - 創英角ポップ体は Windows 専用のためスマホ/Mac で化ける。Web フォントで全端末統一。
   - 本文（p・長文）は引き続き M PLUS Rounded 1c（var(--font-pop)）で可読性を確保。
   - Font Awesome アイコン(<i>)を壊さないよう、子孫は `*` ではなく span 等のみ指定。 */
:root {
  --font-display: 'Mochiy Pop One', 'M PLUS Rounded 1c',
                  'Hiragino Maru Gothic ProN', 'Yu Gothic', 'Meiryo',
                  'HGP創英角ﾎﾟｯﾌﾟ体', 'HGS創英角ﾎﾟｯﾌﾟ体', 'HG創英角ﾎﾟｯﾌﾟ体',
                  system-ui, sans-serif;
}
h1, h2, h3, h4,
h1 span, h2 span, h3 span, h4 span,
.font-display, .font-display span,
.btn-pop,
.event-card h4,
.feat-title,
.age-badge, .age-badge span,
.event-month,
.speech-bubble,
.footer-brand-name,
.footer-tagline {
  font-family: var(--font-display) !important;
}

/* 📐 ベースリセット：レスポンシブの土台 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, iframe, video { max-width: 100%; height: auto; display: block; }

/* 📐 つぶれ防止：ポップ体は元から太いので、太字積み増しをほどほどに */
body {
  background-color: #fef08a;
  background-image: radial-gradient(#fde047 20%, transparent 20%), radial-gradient(#fde047 20%, transparent 20%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  letter-spacing: 0.025em;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px; /* 極小端末でレイアウトが破綻しない最小幅 */
  overflow-x: hidden; /* 装飾の絶対配置による横スクロール防止 */
}

/* 本文段落：用途別に行間を分ける。
   - .prose-body：散文に使う標準（about / プロフィール文など）。1.7 で読み流せる密度に
   - .prose-lead：キャッチ／リードに使う1段ふくらませ
   - 既存の <p> 単独はそのままに、改修対象だけ class で上書きする方針。 */
p { line-height: 1.7; }
.prose-body { line-height: 1.75; }
.prose-body p + p { margin-top: 0.65rem; }
.prose-lead { line-height: 1.5; font-size: 1.05rem; }

/* 「font-bold」を扱うエリアの可読性 — 700 まで抑えて創英角ポップ体の自然な太さに任せる */
.font-bold { font-weight: 700; }

/* 小さな文字は font-black を使わず字間を広げる */
.text-xs, .text-sm { letter-spacing: 0.05em; }

/* 見出しは font-black 維持・字間広めに */
h1, h2, h3, h4, h5 { letter-spacing: 0.04em; line-height: 1.3; }
/* フッター下端に余白を持たせて、フローティングCTAと重ならないようにする */
footer { padding-bottom: 6rem !important; }
@media (max-width: 767px) {
  footer { padding-bottom: 5rem !important; }
}

/* ===== 共通装飾 ===== */
.super-shadow { box-shadow: 8px 8px 0px 0px #1e293b; }
.super-shadow-white { box-shadow: 8px 8px 0px 0px #ffffff; }

/* =========================================================
   📐 視覚階層ヘルパ（depth- prefix）
   - hero    : ページ唯一の主役（最強CTA・主役写真）
   - primary : セクションの主要カード
   - subtle  : メタ情報・タグ・補助カード
   ========================================================= */
.depth-hero    { box-shadow: 10px 10px 0 0 #1e293b; border: 6px solid #1e293b; }
.depth-primary { box-shadow:  5px  5px 0 0 #1e293b; border: 4px solid #1e293b; }
.depth-subtle  { box-shadow: none;                  border: 2px solid #1e293b; }
@media (max-width: 767px) {
  .depth-hero    { box-shadow: 6px 6px 0 0 #1e293b; }
  .depth-primary { box-shadow: 4px 4px 0 0 #1e293b; }
}

/* =========================================================
   ♿ アクセシビリティ底上げ
   - キーボード操作時のフォーカスリングを共通付与
   - reduced-motion でループアニメーション全停止
   ========================================================= */
:focus-visible {
  outline: 4px solid #facc15;
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-pop, .float, .wiggle, .sun-sparkle, .trial-cta {
    animation: none !important;
  }
  .trial-cta { transition: none !important; }
}

/* =========================================================
   🟡 統一ボタン .btn-pop（Pop / Brutalism スタイル）
   サイズ：sm / md(default) / lg / xl
   配色：primary（黄）/ pink / white / cyan / dark
   ========================================================= */
.btn-pop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 900;
  text-decoration: none;
  border: 5px solid #1e293b;
  border-radius: 9999px;
  padding: 0.85rem 1.7rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  box-shadow: 6px 6px 0 0 #1e293b;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-pop:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 #1e293b;
}
.btn-pop:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 #1e293b;
}
.btn-pop i { font-size: 0.95em; }

/* サイズ */
.btn-pop.btn-sm  { padding: 0.5rem 1.1rem; font-size: 0.85rem; border-width: 3px; box-shadow: 3px 3px 0 0 #1e293b; }
.btn-pop.btn-sm:hover  { box-shadow: 5px 5px 0 0 #1e293b; }
.btn-pop.btn-lg  { padding: 1.05rem 2rem; font-size: 1.2rem; border-width: 6px; box-shadow: 7px 7px 0 0 #1e293b; }
.btn-pop.btn-lg:hover  { box-shadow: 10px 10px 0 0 #1e293b; }
.btn-pop.btn-xl  { padding: 1.2rem 2.3rem; font-size: 1.45rem; border-width: 6px; box-shadow: 8px 8px 0 0 #1e293b; }
.btn-pop.btn-xl:hover  { box-shadow: 11px 11px 0 0 #1e293b; }

/* バリアント */
.btn-pop.btn-primary { background: #facc15; color: #1e293b; }
.btn-pop.btn-primary:hover { background: #fde047; }
.btn-pop.btn-primary i:first-child { color: #ec4899; }

.btn-pop.btn-pink { background: #ec4899; color: #fff; }
.btn-pop.btn-pink:hover { background: #f472b6; }

.btn-pop.btn-white { background: #fff; color: #ec4899; }
.btn-pop.btn-white:hover { background: #fdf2f8; }

.btn-pop.btn-cyan { background: #06b6d4; color: #fff; }
.btn-pop.btn-cyan:hover { background: #22d3ee; }

.btn-pop.btn-dark {
  background: #1e293b;
  color: #fde047;
  border-color: #fde047;
  box-shadow: 6px 6px 0 0 #fde047;
}
.btn-pop.btn-dark:hover { background: #0f172a; box-shadow: 9px 9px 0 0 #fde047; }
.btn-pop.btn-dark:active { box-shadow: 2px 2px 0 0 #fde047; }

@media (max-width: 767px) {
  .btn-pop { padding: 0.75rem 1.4rem; font-size: 0.95rem; border-width: 4px; box-shadow: 4px 4px 0 0 #1e293b; }
  .btn-pop:hover { box-shadow: 6px 6px 0 0 #1e293b; }
  .btn-pop.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.05rem; border-width: 4px; box-shadow: 5px 5px 0 0 #1e293b; }
  .btn-pop.btn-xl { padding: 1rem 1.8rem; font-size: 1.15rem; border-width: 5px; box-shadow: 6px 6px 0 0 #1e293b; }
  .btn-pop.btn-dark { box-shadow: 4px 4px 0 0 #fde047; }
}

/* シャドウは1段に絞り、白文字＋濃紺の単純な凹凸に。
   ピンクの2段目影は背景ストライプと喧嘩していたので削除。 */
.text-3d { text-shadow: 4px 4px 0px #1e293b; }

.blob { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }

/* ストライプ背景 */
.bg-stripe-pink { background: repeating-linear-gradient(45deg, #f472b6, #f472b6 20px, #ec4899 20px, #ec4899 40px); }
.bg-stripe-cyan { background: repeating-linear-gradient(-45deg, #22d3ee, #22d3ee 20px, #06b6d4 20px, #06b6d4 40px); }

/* ===== 🟡 ヒーロー横の丸バッジ ===== */
.age-badge {
  width: clamp(140px, 28vw, 220px);
  height: clamp(140px, 28vw, 220px);
  border-radius: 9999px;
  background: #fde047;
  border: 6px solid #1e293b;
  box-shadow: 8px 8px 0 0 #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.35;
  position: relative;
}
.age-badge .age-badge-lead {
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  margin-bottom: 0.35rem;
}
.age-badge .age-badge-main {
  font-size: clamp(1.05rem, 2.6vw, 1.7rem);
  color: #ec4899;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.age-badge .age-badge-sub {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  margin-top: 0.25rem;
}
@media (max-width: 767px) {
  .age-badge { width: 150px; height: 150px; padding: 0.6rem; box-shadow: 4px 4px 0 0 #1e293b; }
}

/* ===== 💬 ふきだし ===== */
.speech-bubble {
  display: inline-block;
  position: relative;
  background: #fff;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1e293b;
  box-shadow: 4px 4px 0 0 #1e293b;
  white-space: nowrap;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}
/* 下向きしっぽ（左寄せ） */
.speech-bubble.tail-bl::after {
  bottom: -22px; left: 22px;
  border-top-color: #1e293b;
  border-bottom: 0;
}
.speech-bubble.tail-bl::before {
  content: '';
  position: absolute;
  bottom: -14px; left: 26px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  z-index: 1;
}
/* 下向きしっぽ（右寄せ） */
.speech-bubble.tail-br::after {
  bottom: -22px; right: 22px;
  border-top-color: #1e293b;
  border-bottom: 0;
}
.speech-bubble.tail-br::before {
  content: '';
  position: absolute;
  bottom: -14px; right: 26px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  z-index: 1;
}

/* ===== 🎀 マスキングテープ ===== */
.washi-tape {
  position: absolute;
  width: 110px;
  height: 28px;
  background: repeating-linear-gradient(135deg, #67e8f9 0 8px, #22d3ee 8px 16px);
  border: 2px solid #1e293b;
  box-shadow: 2px 2px 0 0 rgba(30, 41, 59, 0.4);
  z-index: 5;
}
.washi-tape.tape-tl { top: -10px; left: -18px; transform: rotate(-15deg); }
.washi-tape.tape-tr { top: -10px; right: -18px; transform: rotate(15deg); }
.washi-tape.pink     { background: repeating-linear-gradient(135deg, #fbcfe8 0 8px, #f472b6 8px 16px); }
.washi-tape.yellow   { background: repeating-linear-gradient(135deg, #fef08a 0 8px, #facc15 8px 16px); }

/* ===== ⭐ ステッカー装飾（飛び出す星・ハート等） ===== */
.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 4px solid #1e293b;
  background: #fde047;
  box-shadow: 4px 4px 0 0 #1e293b;
  font-size: 1.2rem;
  color: #1e293b;
  z-index: 6;
}
.sticker.pink   { background: #f9a8d4; color: #fff; }
.sticker.cyan   { background: #67e8f9; color: #fff; }
.sticker.yellow { background: #fde047; color: #1e293b; }
.sticker.white  { background: #fff;    color: #ec4899; }
@media (max-width: 767px) {
  .sticker { width: 38px; height: 38px; font-size: 1rem; box-shadow: 2px 2px 0 0 #1e293b; }
  .washi-tape { width: 80px; height: 22px; }
}

/* 🌈 黄色マーカー風ハイライト */
.hl {
  background: #fde047;
  padding: 0 0.3rem;
  border-radius: 0.35rem;
  font-weight: 900;
  box-shadow: 0 2px 0 0 #1e293b;
  display: inline-block;
  line-height: 1.4;
}

/* ===== アニメーション（ループ系） ===== */
.float { animation: float 3s infinite ease-in-out; }
.wiggle { animation: wiggle 2s infinite ease-in-out; }
.pulse-pop { animation: pulse-pop 1.5s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@keyframes pulse-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== 🎬 スクロール連動 reveal アニメーション =====
   note: 個別 translate/scale プロパティを使うと transform: rotate(...) と合成されるので
   Tailwind の rotate-1/2/3 などと併用しても回転が消えない。
   note2: 初期状態は .is-pending クラスが付いた時のみ非表示にする。
   JS が「画面外要素」だけに .is-pending を付け、画面内要素は初めから可視となるため
   ページロード時のチラつき・空白が出ない。 */

.reveal.is-pending {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, translate;
}
.reveal.is-pending.is-visible {
  opacity: 1;
  translate: 0 0;
}

.reveal-pop.is-pending {
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, scale;
}
.reveal-pop.is-pending.is-visible {
  opacity: 1;
  scale: 1;
}

.reveal-slide-left.is-pending {
  opacity: 0;
  translate: -40px 0;
  transition: opacity 0.7s ease-out, translate 0.7s ease-out;
}
.reveal-slide-left.is-pending.is-visible { opacity: 1; translate: 0 0; }

.reveal-slide-right.is-pending {
  opacity: 0;
  translate: 40px 0;
  transition: opacity 0.7s ease-out, translate 0.7s ease-out;
}
.reveal-slide-right.is-pending.is-visible { opacity: 1; translate: 0 0; }

/* =========================================================
   📱 ヒーロー流動タイポ（vw連動でデバイス幅に追従）
   - モバイル `.text-7xl !important` 等の上書きを越えるため、!important を付ける
   ========================================================= */
#top h2.text-3d {
  font-size: clamp(2.6rem, 9.5vw, 5rem) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
@media (min-width: 768px) {
  #top h2.text-3d { font-size: clamp(3.2rem, 7.5vw, 5rem) !important; }
}
#top .inline-block,
#top span.inline-block,
#top p.inline-block {
  max-width: 100%;
  white-space: normal;
}
#top section, /* 念のためヒーロー周辺全体 */
section#top { padding-left: 1rem; padding-right: 1rem; }

/* スタガー（順番に表示） */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal-pop[data-delay="1"] { transition-delay: 0.1s; }
.reveal-pop[data-delay="2"] { transition-delay: 0.2s; }
.reveal-pop[data-delay="3"] { transition-delay: 0.3s; }
.reveal-pop[data-delay="4"] { transition-delay: 0.4s; }
.reveal-pop[data-delay="5"] { transition-delay: 0.5s; }
.reveal-pop[data-delay="6"] { transition-delay: 0.6s; }

/* ===== スプラッシュ（オープニング） ===== */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: #22d3ee;
  background-image: radial-gradient(#06b6d4 20%, transparent 20%), radial-gradient(#06b6d4 20%, transparent 20%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: fadeOutSplash 2.2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}
#splash-screen > div {
  width: min(72vw, 18rem);
  height: min(72vw, 18rem);
  max-width: 90vmin;
  max-height: 90vmin;
}
@keyframes fadeOutSplash {
  0% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.5); visibility: hidden; pointer-events: none; }
}

/* ===== スムーススクロール ===== */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* =========================================================
   🚀 ページトランジション（シンプルなフェードのみ）
   - 入場：opacity 0 → 1。動かない、透明度だけ。短く控えめに。
   - 退場：opacity 1 → 0。すぐ次ページへ。
   - スプラッシュロゴはアニメの影響を受けないよう、body 自身ではなく
     `body > :not(#splash-screen)` を対象にする。
   - reduced-motion 環境では完全無効化。
   ========================================================= */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* スプラッシュなしページ：即フェードイン */
body:not(.has-splash):not(.page-leave) > :not(#splash-screen) {
  animation: page-fade-in 0.35s ease both;
}

/* スプラッシュページ：スプラッシュ消失まで完全に隠す → content-revealed でフェードイン */
body.has-splash > :not(#splash-screen) {
  opacity: 0;
}
body.has-splash.content-revealed:not(.page-leave) > :not(#splash-screen) {
  animation: page-fade-in 0.45s ease both;
}

/* 退場：splash 以外の子要素をフェードアウト */
body.page-leave > :not(#splash-screen) {
  animation: none !important;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.page-leave { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  body > :not(#splash-screen),
  body.has-splash > :not(#splash-screen),
  body.has-splash.content-revealed > :not(#splash-screen),
  body.page-leave > :not(#splash-screen) {
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ===== ナビゲーション ===== */
.pop-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 6px solid #1e293b;
  box-shadow: 0 6px 0 0 #1e293b;
}
.pop-nav a {
  display: inline-block;
  padding: 0.34rem 0.72rem;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background-color 0.2s ease;
  white-space: nowrap;
}
/* インラインナビは ≥1280px でのみ表示（それ未満はハンバーガー）。
   8メニュー＋問合せ＋IG＋ロゴが1段に収まるよう、サイズは控えめに保つ。 */
@media (min-width: 1280px) {
  .pop-nav a { padding: 0.4rem 0.85rem; font-size: 0.88rem; }
}
.pop-nav a:hover { transform: translateY(-3px) rotate(-2deg); }
/* 現在のページをハイライト */
.pop-nav a.is-current {
  background: #1e293b !important;
  color: #fde047 !important;
}
/* 「おといあわせ」リンクをアウトライン化：ヒーローCTAを唯一の主役にするため */
.pop-nav a.nav-contact {
  background: #fff !important;
  color: #be185d !important;
  border-color: #be185d !important;
}
.pop-nav a.nav-contact:hover {
  background: #fdf2f8 !important;
}

/* ナビ Instagram アイコン */
nav.pop-nav a.nav-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%);
  border: 3px solid #1e293b;
  box-shadow: 3px 3px 0 0 #1e293b;
  font-size: 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
nav.pop-nav a.nav-insta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 #1e293b; }
nav.pop-nav a.nav-insta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 #1e293b; }

.nav-toggle { display: none; }
nav.pop-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
@media (min-width: 1280px) {
  nav.pop-nav .nav-links { flex-wrap: nowrap; gap: 0.32rem; }
}
/* ロゴとナビ自体を1段の横並びにするため、親 flex の wrap を制御 */
nav.pop-nav > div {
  flex-wrap: nowrap;
}
@media (max-width: 1279px) {
  nav.pop-nav > div { flex-wrap: wrap; }
}

/* ===== 🖼️ 写真フレーム（クリーンでモダンな“写真カード”） =====
   従来の「黒い太枠＋カクカクした影」は重く古い印象だったため、
   白いマット縁＋やわらかいドロップシャドウ＋角丸の現代的な写真カードに刷新。
   UI（ボタン・カード）のポップな世界観はそのまま、写真だけを軽やかに見せる。 */
.media-frame {
  border: 4px solid #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 18px 32px -14px rgba(15, 23, 42, 0.40),
              0 6px 14px -8px rgba(15, 23, 42, 0.26);
  outline: 1px solid rgba(15, 23, 42, 0.08);
  outline-offset: -1px;
  overflow: hidden;
  background: #ffffff;
  display: block;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
/* ホバー：影が深まり少し浮く＋写真がほんのりズーム（reduced-motion では無効） */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .media-frame:hover {
    box-shadow: 0 26px 44px -14px rgba(15, 23, 42, 0.48),
                0 10px 20px -8px rgba(15, 23, 42, 0.32);
    transform: translateY(-4px);
  }
  .media-frame:hover img { transform: scale(1.05); }
}
/* 標準サイズ：PCで最大420px、モバイルで最大320px */
.media-h-md { aspect-ratio: 4 / 3; max-height: 420px; }
.media-h-lg { aspect-ratio: 16 / 10; max-height: 480px; }
.media-h-sm { aspect-ratio: 1 / 1; max-height: 320px; }

/* ギャラリー（複数並び）はマット縁を少しだけ細く、影も控えめにして軽さを出す */
.media-frame.is-soft,
.course-photos .media-frame,
.event-card .event-photo .media-frame {
  border-width: 3px;
  border-radius: 1.15rem;
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.36),
              0 4px 10px -6px rgba(15, 23, 42, 0.24);
}
/* 写真キャプション（撮影メモ的な小見出し）を統一トーンで */
.photo-caption {
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #64748b;
  letter-spacing: 0.03em;
}

/* about セクション内のレガシー画像にも安全制限 */
section#about img { max-height: 460px; object-fit: cover; }

/* 🗺 Google Maps / Form iframe の流動化 */
.responsive-frame {
  position: relative;
  width: 100%;
  display: block;
}
iframe.map-frame {
  width: 100%;
  height: clamp(220px, 45vw, 380px);
  border: 0;
  display: block;
}
iframe.form-frame {
  width: 100%;
  height: clamp(560px, 90vh, 760px);
  border: 0;
  display: block;
}

/* about の Let's have fun! 吹き出し位置（モバイルで写真からはみ出ないように） */
section#about .speech-bubble {
  font-size: clamp(0.75rem, 2.4vw, 1rem);
  padding: 0.4rem 0.9rem;
  max-width: 75%;
  white-space: normal;
}

/* ===== 🎒 コースカード ===== */
.course {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.75rem;
  box-shadow: 8px 8px 0 0 #ffffff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 0 #ffffff;
}
.course-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 5px solid #1e293b;
  color: #fff;
}
.course-head .c-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  font-size: 1.5rem;
  line-height: 1;
}
.course-head .c-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.course-head .c-age {
  margin-left: auto;
  background: #fff;
  color: #1e293b;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border: 2px solid #1e293b;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.course-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.course-lead {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  color: #1e293b;
}
.course-highlight {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.7;
  padding: 0.75rem 0.9rem;
  border: 3px dashed;
  border-radius: 0.9rem;
  color: #1e293b;
}

/* テーマカラー */
.course.pink .course-head { background: #ec4899; }
.course.pink .course-highlight { background: #fdf2f8; border-color: #f472b6; }
.course.pink .c-icon { color: #ec4899; }
.course.orange .course-head { background: #f97316; }
.course.orange .course-highlight { background: #fff7ed; border-color: #fb923c; }
.course.orange .c-icon { color: #f97316; }
.course.yellow .course-head { background: #eab308; color: #1e293b; }
.course.yellow .c-age { background: #1e293b; color: #fde047; }
.course.yellow .course-highlight { background: #fefce8; border-color: #facc15; }
.course.yellow .c-icon { color: #eab308; }
.course.lime .course-head { background: #65a30d; }
.course.lime .course-highlight { background: #f7fee7; border-color: #84cc16; }
.course.lime .c-icon { color: #65a30d; }
.course.cyan .course-head { background: #0891b2; }
.course.cyan .course-highlight { background: #ecfeff; border-color: #22d3ee; }
.course.cyan .c-icon { color: #0891b2; }
.course.purple .course-head { background: #9333ea; }
.course.purple .course-highlight { background: #faf5ff; border-color: #a855f7; }
.course.purple .c-icon { color: #9333ea; }

/* チェックリスト */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 900;
}
.check-list li + li { margin-top: 0.7rem; }
.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.1rem;
  background: #ffffff;
  border: 3px solid #1e293b;
  border-radius: 8px;
  box-shadow: 2px 2px 0 0 #1e293b;
}
.check-mark i { font-size: 1.05rem; font-weight: 900; }

.course-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.6rem;
  align-items: stretch;
}
.course-photos .media-frame { aspect-ratio: 4 / 3; max-height: 240px; }

/* ===== フローティング無料体験CTA（btn-pop ベース） =====
   ヒーローCTAと競合させないため、初期は不可視。
   JS（scripts.js）でスクロール 300px 越えると `.is-revealed` を付与して出現。 */
.trial-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: #facc15;
  color: #1e293b;
  font-weight: 900;
  letter-spacing: 0.04em;
  border: 5px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 6px 6px 0 0 #1e293b;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.15s ease,
              background 0.2s ease, opacity 0.25s ease;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}
.trial-cta.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.trial-cta:hover {
  background: #fde047;
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 #1e293b;
  animation: pulse-pop 1.2s infinite; /* hover時にだけ「ぴょこっ」と反応 */
}
.trial-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 #1e293b; }
.trial-cta i { color: #ec4899; }

/* ===== Instagram CTA カード ===== */
.insta-cta { background: linear-gradient(135deg, #fbbf24 0%, #ec4899 40%, #8b5cf6 100%); }

/* ===== Instagram 案内セクション（旧ニュース欄に替わる導線） ===== */
.insta-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: #fff;
  color: #ec4899;
  font-size: 2.6rem;
  border: 5px solid #1e293b;
  box-shadow: 4px 4px 0 0 #1e293b;
}
.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  color: #be185d;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  border: 4px solid #1e293b;
  box-shadow: 4px 4px 0 0 #1e293b;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.insta-cta:hover .insta-follow-btn {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #1e293b;
}
.insta-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 4px solid #1e293b;
  border-radius: 1.25rem;
  box-shadow: 4px 4px 0 0 #1e293b;
  padding: 1.25rem 1rem;
  font-weight: 900;
  color: #1e293b;
  text-align: center;
  line-height: 1.4;
}
.insta-point p { margin: 0; font-size: 0.95rem; }
.insta-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%);
  color: #fff;
  font-size: 1.4rem;
  border: 3px solid #1e293b;
}
@media (max-width: 767px) {
  .insta-hero-icon { width: 4rem; height: 4rem; font-size: 2rem; }
  .insta-follow-btn { font-size: 0.95rem; padding: 0.75rem 1.3rem; }
}

/* テーブル th */
.th-rainbow:nth-child(2) { background-color: #f472b6; }
.th-rainbow:nth-child(3) { background-color: #fb923c; }
.th-rainbow:nth-child(4) { background-color: #facc15; }
.th-rainbow:nth-child(5) { background-color: #a3e635; }
.th-rainbow:nth-child(6) { background-color: #22d3ee; }
.th-rainbow:nth-child(7) { background-color: #c084fc; }

/* details/summary */
.course-card summary::-webkit-details-marker { display: none; }
.course-card summary { outline: none; }
.course-card[open] { transform: rotate(0deg) !important; }

/* =========================================================
   モバイル対応（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  .hero-deco { display: none; }
  .text-3d { text-shadow: 3px 3px 0px #1e293b; }

  .text-8xl { font-size: 2.2rem  !important; line-height: 1.1 !important; }
  .text-7xl { font-size: 1.9rem  !important; line-height: 1.1 !important; }
  .text-6xl { font-size: 1.7rem  !important; line-height: 1.15 !important; }
  .text-5xl { font-size: 1.45rem !important; line-height: 1.2 !important; }
  .text-4xl { font-size: 1.3rem  !important; line-height: 1.25 !important; }
  .text-3xl { font-size: 1.15rem !important; line-height: 1.3 !important; }
  .text-2xl { font-size: 1.05rem !important; line-height: 1.4 !important; }
  .text-xl  { font-size: 0.95rem !important; line-height: 1.5 !important; }
  .text-lg  { font-size: 0.9rem  !important; line-height: 1.5 !important; }
  .text-base { font-size: 0.875rem !important; line-height: 1.55 !important; }

  section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  section.px-4, section[class*="px-4"] { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }

  /* スマホ：ギャラリー/イベント写真は1カラム・“全幅”で表示する。
     aspect-ratio と max-height が衝突すると写真の横幅が縮み、セル内で左寄せ
     （右側に余白）になって「左に寄って見える」原因になっていた。max-height を
     外して幅100%で埋め、高さは aspect-ratio に任せることで中央・全幅に揃える。 */
  .course-photos { grid-template-columns: 1fr !important; gap: 0.6rem !important; }
  .course-photos .media-frame,
  .event-card .event-photo .media-frame {
    max-height: none !important;
    width: 100% !important;
  }

  .media-h-md { max-height: 280px; }
  .media-h-lg { max-height: 320px; }
  .media-h-sm { max-height: 240px; }
  section#about img { max-height: 320px; }

  .super-shadow { box-shadow: 4px 4px 0px 0px #1e293b !important; }
  .super-shadow-white { box-shadow: 4px 4px 0px 0px #ffffff !important; }

  .nav-insta { width: 2.2rem; height: 2.2rem; font-size: 1.05rem; border-width: 2px; box-shadow: 2px 2px 0 0 #1e293b; }
  .insta-cta { padding: 1rem !important; }

  /* 見出しピル折返し */
  h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; word-break: normal; line-break: strict; }
  h3 .inline-block, h4 .inline-block {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3 !important;
  }
  /* 回転を抑制 */
  .-rotate-1, .rotate-1,
  .-rotate-2, .rotate-2,
  .-rotate-3, .rotate-3 { --tw-rotate: 0deg !important; }

  @keyframes pulse-pop-mobile {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
  }
  .pulse-pop { animation: pulse-pop-mobile 1.5s infinite; }

  img, iframe { max-width: 100%; }

  /* 時間割スマホカード行折返し */
  #schedule .md\:hidden li {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  #schedule .md\:hidden li > span:first-child { flex: 0 0 auto; }
  #schedule .md\:hidden li > span:last-child  { flex: 1 1 auto; min-width: 0; }
  #schedule .grid > div { overflow-wrap: anywhere; }
  #price th { white-space: normal; }

  #teacher .bg-cyan-300 ul li,
  #teacher .bg-orange-300 ul li {
    padding-left: 1.6rem;
    text-indent: -1.6rem;
    line-height: 1.6;
  }
  #teacher .bg-cyan-300 ul li > i,
  #teacher .bg-orange-300 ul li > i {
    display: inline-block;
    width: 1.2rem;
    text-align: center;
    margin-right: 0.4rem !important;
  }

  #top .inline-block { max-width: 100%; white-space: normal; }
  #top section.bg-stripe-pink { padding-top: 4rem !important; padding-bottom: 4rem !important; }

  #contact a.inline-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 1rem 1.25rem !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  .trial-cta { font-size: 0.85rem !important; padding: 10px 14px !important; right: 10px; bottom: 10px; }
  #access li { gap: 0.75rem; }

  /* コースカード mobile */
  .course-head { padding: 0.75rem 0.9rem; gap: 0.6rem; }
  .course-head .c-icon { width: 2.35rem; height: 2.35rem; font-size: 1.3rem; }
  .course-head .c-title { font-size: 1.15rem; }
  .course-head .c-age { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
  .course-body { padding: 0.95rem 1rem 1.05rem; gap: 0.75rem; }
  .course-lead { font-size: 0.95rem; }
  .course-highlight { font-size: 0.9rem; padding: 0.65rem 0.8rem; }
  .check-list li { font-size: 1rem; }
  .check-mark { width: 1.55rem; height: 1.55rem; }
  .check-mark i { font-size: 0.9rem; }

  /* （旧）ハンバーガー専用ブロックは下に統合済 */
}

/* =========================================================
   📱 ハンバーガーメニュー：lg(1023px)以下で発動。
   読みやすさ重視で、開いた後のリストは
   - 同じ高さ・同じ余白の縦並び
   - 文字サイズ大きめ・太字
   - ベースは白背景＋濃い枠（カラフルすぎる印象を緩和）
   - 現在のページだけ濃色塗り＋黄文字でハイライト
   - お問い合わせのみピンク強調
   - Instagram のみグラデ＋ラベル付き
   ========================================================= */
@media (max-width: 1279px) {
  nav.pop-nav > div { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 3px solid #1e293b;
    background: #facc15;
    color: #1e293b;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 3px 3px 0 0 #1e293b;
  }
  .nav-toggle i { font-size: 1rem; }
  .nav-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 #1e293b; }

  nav.pop-nav .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 3px dashed #1e293b;
    margin-top: 0.6rem;
  }
  nav.pop-nav .nav-links.is-open { display: flex; }

  /* カラフル配色：黒太枠・黒文字はそのまま、背景を各メニューごとに色分けして
     “ポップ”に。白一色だった従来版より、開いたときの華やかさを出す。
     文字は濃紺(#1e293b)のままでも各パステルカラー上で十分読める。 */
  nav.pop-nav .nav-links a {
    text-align: center;
    padding: 0.85rem 1rem !important;
    font-size: 1.05rem !important;
    font-weight: 900;
    border: 3px solid #1e293b !important;
    border-radius: 12px !important;
    box-shadow: 3px 3px 0 0 #1e293b;
    background: #fff !important;
    color: #1e293b !important;
    letter-spacing: 0.04em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.18s ease;
  }
  /* メニューごとのカラー（PC版ナビと同じ色分けを踏襲） */
  nav.pop-nav .nav-links a.bg-yellow-200 { background: #fde047 !important; }
  nav.pop-nav .nav-links a.bg-pink-200   { background: #f9a8d4 !important; }
  nav.pop-nav .nav-links a.bg-cyan-200   { background: #67e8f9 !important; }
  nav.pop-nav .nav-links a.bg-orange-200 { background: #fdba74 !important; }
  nav.pop-nav .nav-links a.bg-purple-200 { background: #d8b4fe !important; }
  nav.pop-nav .nav-links a.bg-rose-200   { background: #fda4af !important; }
  nav.pop-nav .nav-links a.bg-lime-200   { background: #bef264 !important; }
  nav.pop-nav .nav-links a:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 0 #1e293b;
    filter: brightness(1.06);
  }
  /* 現在のページ：濃色塗り＋黄文字で強調 */
  nav.pop-nav .nav-links a.is-current {
    background: #1e293b !important;
    color: #fde047 !important;
  }
  /* おといあわせ：ピンクで強調 */
  nav.pop-nav .nav-links a.nav-contact {
    background: #ec4899 !important;
    color: #fff !important;
    border-color: #1e293b !important;
  }
  nav.pop-nav .nav-links a.nav-contact:hover {
    background: #f472b6 !important;
  }
  /* Instagram：グラデ＋アイコン＋ラベル */
  nav.pop-nav .nav-links a.nav-insta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    padding: 0.85rem 1rem !important;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%) !important;
    color: #fff !important;
    border: 3px solid #1e293b !important;
  }
  nav.pop-nav .nav-links a.nav-insta::after {
    content: 'Instagram';
    font-weight: 900;
    color: #fff;
  }
  nav.pop-nav .nav-links a.nav-insta i { font-size: 1.2rem; }
}

/* 超小型端末（〜380px）向け */
@media (max-width: 380px) {
  .text-5xl { font-size: 1.3rem !important; }
  .text-4xl { font-size: 1.18rem !important; }
  .text-3xl { font-size: 1.05rem !important; }
  h3 > span.inline-block, h4 > span.inline-block {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  /* ボタンが画面幅を超えないように */
  .btn-pop, .btn-pop.btn-xl, .btn-pop.btn-lg {
    max-width: calc(100vw - 2rem);
    white-space: normal;
    line-height: 1.3;
  }
  .btn-pop.btn-xl { font-size: 1rem; padding: 0.85rem 1.2rem; }
  /* フッターロゴが極小端末で大きすぎないように */
  .site-footer .footer-brand img { height: 50px; }
  /* スプラッシュロゴを小さく */
  #splash-screen > div { width: 60vw; height: 60vw; }
}

/* =========================================================
   📱 タブレット〜小型ノート（768px - 1023px）の最適化
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  /* セクション横余白を取って詰まり感緩和 */
  section { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* ヒーロー：タブレットで適切なサイズ */
  #top h2.text-3d { font-size: clamp(2.8rem, 6vw, 4rem); }

  /* フッター3列：中央列が長文のため幅配分を調整 */
  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2.5rem;
  }
  .site-footer .footer-col.footer-brand {
    grid-column: 1 / -1; /* ブランドは横一列で */
  }
  .site-footer .footer-brand p { max-width: 42em; }

  /* スケジュールマトリクス：列幅をすこしタイトに */
  #schedule .grid.grid-cols-\[auto_repeat\(4\,1fr\)\] { gap: 0.5rem !important; }
  #schedule .grid > div { font-size: 0.95rem; }

  /* page-banner deco アイコンの被り防止 */
  .page-banner .deco { font-size: 2.2rem; }

  /* feat-card：タブレットで2列維持しつつ余白整える */
  .feat-card { padding: 1.4rem; }

  /* 講師紹介プロフィール：左右の比率調整 */
  #teacher .md\:w-2\/5 { width: 45%; }
  #teacher .md\:w-3\/5 { width: 55%; }
}

/* =========================================================
   📺 大画面（1280px+）：装飾の余裕を活用
   ========================================================= */
@media (min-width: 1280px) {
  .hero-deco { transform: scale(1.15); }
}

/* アニメーション抑制設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  .float, .wiggle, .pulse-pop { animation: none; }
  .reveal.is-pending, .reveal-pop.is-pending,
  .reveal-slide-left.is-pending, .reveal-slide-right.is-pending {
    opacity: 1 !important;
    translate: 0 0 !important;
    scale: 1 !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   🦶 サイトフッター（共通リッチデザイン）
   ========================================================= */
.site-footer {
  position: relative;
  background: #1e293b;
  color: #fff;
  border-top: 8px solid #0f172a;
  padding-bottom: 6rem; /* フローティングCTA分の余白 */
}
/* 上部装飾バンド：シアン水玉＋吹き出し */
.site-footer .footer-band {
  position: relative;
  background-color: #22d3ee;
  background-image: radial-gradient(#06b6d4 20%, transparent 20%), radial-gradient(#06b6d4 20%, transparent 20%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  border-bottom: 6px solid #0f172a;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}
.site-footer .footer-band .footer-bubble {
  background: #fff;
  color: #ec4899;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  padding: 0.65rem 1.4rem;
  max-width: calc(100% - 2rem);
  white-space: normal;
}
.site-footer .footer-band .footer-bubble-en {
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  letter-spacing: 0.02em;
}
.site-footer .footer-band .footer-tagline {
  margin-top: 0.9rem;
  font-weight: 900;
  color: #1e293b;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* 本体グリッド */
.site-footer .footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer .footer-main { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 3rem; }
}

.site-footer .footer-col h4 {
  display: inline-block;
  background: #fde047;
  color: #1e293b;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.3rem 0.9rem;
  border: 3px solid #fff;
  border-radius: 9999px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.site-footer .footer-brand img {
  height: 70px;
  width: auto;
  background: #fde047;
  border: 4px solid #fff;
  border-radius: 1rem;
  padding: 6px 10px;
  margin-bottom: 0.75rem;
}
.site-footer .footer-brand p {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e2e8f0;
}
.site-footer .footer-brand .footer-brand-name {
  color: #fde047;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.site-footer .footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.site-footer .footer-info li {
  display: flex;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #f1f5f9;
}
.site-footer .footer-info li i {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fde047;
  color: #1e293b;
  font-size: 0.95rem;
}
.site-footer .footer-info li small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.site-footer .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.site-footer .footer-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.site-footer .footer-menu a:hover {
  background: #ec4899;
  border-color: #fff;
  transform: translateY(-2px);
}
.site-footer .footer-menu a i { color: #fde047; font-size: 0.7rem; }

/* SNS / 著作権 */
.site-footer .footer-bottom {
  border-top: 3px dashed rgba(255, 255, 255, 0.2);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
}
.site-footer .footer-sns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.site-footer .footer-sns a {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%);
  border: 3px solid #fff;
  font-size: 1.25rem;
  color: #fff;
  transition: transform 0.15s;
}
.site-footer .footer-sns a:hover { transform: translateY(-3px) scale(1.05); }
.site-footer .footer-copy {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

@media (max-width: 767px) {
  .site-footer .footer-band { padding: 1.75rem 1rem 1.5rem; }
  .site-footer .footer-band .footer-bubble-en { font-size: 1.15rem; padding: 0.5rem 1rem; }
  .site-footer .footer-main { padding: 2.25rem 1rem 1.5rem; gap: 2rem; }
  .site-footer .footer-menu { grid-template-columns: 1fr; }
  .site-footer .footer-brand img { height: 56px; }
  .site-footer { padding-bottom: 5rem; }
}

/* =========================================================
   🖼️ ハイライト写真ブロック（マスキングテープ付き）
   ========================================================= */
.photo-spotlight {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.photo-spotlight .media-frame {
  background: #fff;
  border-width: 0;
  padding: 0.7rem;
}
.photo-spotlight .media-frame img {
  border-radius: 0.9rem;
}
.photo-spotlight .photo-caption {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  background: #fff;
  color: #1e293b;
  font-weight: 900;
  font-size: 0.95rem;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 4px 4px 0 0 #1e293b;
  transform: rotate(-2deg);
}
.photo-spotlight .photo-caption i { color: #f97316; }

/* =========================================================
   📑 ページタイトルバナー（各サブページ共通）
   ========================================================= */
.page-banner {
  padding: 4rem 1rem 3rem;
  text-align: center;
  border-bottom: 8px solid #1e293b;
  position: relative;
  overflow: hidden;
}
.page-banner h1 {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  background: #fde047;
  color: #1e293b;
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 3rem);
  border: 6px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 6px 6px 0 0 #1e293b;
  letter-spacing: 0.04em;
}
.page-banner p {
  margin-top: 1rem;
  font-weight: 800;
  font-size: 1rem;
  color: #1e293b;
}
.page-banner .deco {
  position: absolute;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.page-banner .deco.tl { top: 1rem; left: 1.5rem; }
.page-banner .deco.tr { top: 1rem; right: 1.5rem; }
.page-banner .deco.bl { bottom: 0.75rem; left: 2rem; }
.page-banner .deco.br { bottom: 0.75rem; right: 2rem; }
@media (max-width: 767px) {
  .page-banner { padding: 2.5rem 0.75rem 2rem; }
  .page-banner .deco { display: none; }
}

/* 🃏 各ページへの誘導カード
   note: 高さが揃わない時に中央寄せ（justify-content: center）すると上下に大きな空白が出るので
   先頭から積み上げる（flex-start）+ arrow を mt: auto で下端固定する。 */
.page-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.5rem;
  box-shadow: 6px 6px 0 0 #1e293b;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}
.page-link-card .arrow {
  margin-top: auto;  /* 矢印を常にカード下端に */
}
.page-link-card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow: 10px 10px 0 0 #1e293b;
}
.page-link-card .icon-wrap {
  width: 4.5rem;
  height: 4.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  background: #fde047;
  font-size: 2rem;
  flex-shrink: 0;
}
.page-link-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}
.page-link-card p {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: #475569;
}
.page-link-card .arrow {
  margin-top: auto;  /* カード下端へ押しやる */
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 900;
  color: #ec4899;
}
.page-link-card.theme-pink   { background: #fdf2f8; }
.page-link-card.theme-cyan   { background: #ecfeff; }
.page-link-card.theme-orange { background: #fff7ed; }
.page-link-card.theme-purple { background: #faf5ff; }
.page-link-card.theme-lime   { background: #f7fee7; }
.page-link-card.theme-yellow { background: #fefce8; }

/* =========================================================
   🎨 シンプル特徴カード（白背景＋色アイコン）
   2色制（ピンク・シアン）の交互配置で色彩を整理
   ========================================================= */
.feat-card {
  background: #fff;
  border: 5px solid #1e293b;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 5px 5px 0 0 #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 0 #1e293b; }

.feat-card .feat-icon {
  flex-shrink: 0;
  width: clamp(2.8rem, 8vw, 3.4rem);
  height: clamp(2.8rem, 8vw, 3.4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}
.feat-card.is-pink .feat-icon { background: #ec4899; }
.feat-card.is-cyan .feat-icon { background: #06b6d4; }

.feat-card h4 {
  font-size: clamp(1.05rem, 3.2vw, 1.4rem);
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.feat-card p {
  font-size: clamp(0.85rem, 2.6vw, 1rem);
  font-weight: 700;
  color: #334155;
  line-height: 1.75;
  margin: 0;
  overflow-wrap: anywhere;
}
.feat-card .hl-mark {
  background: #fde047;
  color: #1e293b;
  padding: 0.05rem 0.45rem;
  border-radius: 0.3rem;
  font-weight: 900;
  display: inline-block;
  line-height: 1.5;
}

@media (min-width: 480px) {
  .feat-card { padding: 1.5rem; gap: 1rem; border-width: 6px; box-shadow: 6px 6px 0 0 #1e293b; }
}
@media (min-width: 1024px) {
  .feat-card { padding: 1.75rem; }
}

/* =========================================================
   🎨 セクション背景バリエーション（0514改修）
   ========================================================= */

/* お教室の特徴：白 → クリーム＋うっすらドット */
.section-features-bg {
  background-color: #fff7ed;
  background-image:
    radial-gradient(rgba(236, 72, 153, 0.18) 14%, transparent 14%),
    radial-gradient(rgba(34, 211, 238, 0.18) 14%, transparent 14%);
  background-size: 36px 36px, 36px 36px;
  background-position: 0 0, 18px 18px;
}

/* ニュース：オレンジベース＋ストライプ＋ドット＋太陽キラキラ */
.section-news-bg {
  position: relative;
  background-color: #fb923c;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.10) 0 14px,
      rgba(255, 255, 255, 0)    14px 28px),
    radial-gradient(rgba(255, 255, 255, 0.35) 18%, transparent 18%),
    radial-gradient(rgba(255, 237, 167, 0.55) 18%, transparent 18%);
  background-size: auto, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 14px 14px;
  overflow: hidden;
}
.section-news-bg::before,
.section-news-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* 太陽キラキラ装飾（疑似要素にFAは置けないので、JS不要のCSS光線をいくつか配置） */
.sun-sparkle {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fef08a;
  font-size: 1.6rem;
  filter: drop-shadow(2px 2px 0 #1e293b);
  animation: sun-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.sun-sparkle.s1 { top: 6%;  left: 4%;  animation-delay: 0s;   }
.sun-sparkle.s2 { top: 12%; right: 6%; animation-delay: 0.5s; font-size: 1.9rem; }
.sun-sparkle.s3 { bottom: 14%; left: 8%; animation-delay: 1.0s; font-size: 1.4rem; }
.sun-sparkle.s4 { bottom: 8%;  right: 10%; animation-delay: 1.5s; font-size: 2.1rem; }
@keyframes sun-pulse {
  0%, 100% { transform: scale(1) rotate(0deg);   opacity: 0.85; }
  50%      { transform: scale(1.18) rotate(20deg); opacity: 1;    }
}
@media (max-width: 767px) {
  .sun-sparkle { width: 36px; height: 36px; font-size: 1.2rem; }
  .sun-sparkle.s2 { font-size: 1.4rem; }
  .sun-sparkle.s4 { font-size: 1.5rem; }
}

/* =========================================================
   🪟 ポップアップ式コースカード（<details>/<summary>）
   ========================================================= */
.course-pop {
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.75rem;
  box-shadow: 8px 8px 0 0 #ffffff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-pop[open] {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 0 #ffffff;
}
.course-pop > summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 5px solid #1e293b;
  color: #fff;
}
.course-pop > summary::-webkit-details-marker { display: none; }
.course-pop > summary::marker { content: ''; }
.course-pop > summary .toggle-hint {
  background: #fff;
  color: #1e293b;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.22rem 0.6rem;
  border: 2px solid #1e293b;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 0 #1e293b;
}
.course-pop > summary .toggle-hint::before { content: '詳細を見る'; }
.course-pop[open] > summary .toggle-hint::before { content: '閉じる'; }
.course-pop > summary .toggle-hint i { transition: transform 0.25s ease; }
.course-pop[open] > summary .toggle-hint i { transform: rotate(180deg); }

/* 開閉時に「ポンッ」と出るアニメーション */
.course-pop[open] > .course-body { animation: pop-open 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop-open {
  0%   { opacity: 0; transform: scale(0.96) translateY(-6px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* テーマカラー（既存 .course と同じバリエーション） */
.course-pop.pink   > summary { background: #ec4899; }
.course-pop.pink   .c-icon   { color: #ec4899; }
.course-pop.pink   .course-highlight { background: #fdf2f8; border-color: #f472b6; }

.course-pop.orange > summary { background: #f97316; }
.course-pop.orange .c-icon   { color: #f97316; }
.course-pop.orange .course-highlight { background: #fff7ed; border-color: #fb923c; }

.course-pop.yellow > summary { background: #eab308; color: #1e293b; }
.course-pop.yellow .c-age    { background: #1e293b; color: #fde047; }
.course-pop.yellow .c-icon   { color: #eab308; }
.course-pop.yellow .course-highlight { background: #fefce8; border-color: #facc15; }

.course-pop.lime   > summary { background: #65a30d; }
.course-pop.lime   .c-icon   { color: #65a30d; }
.course-pop.lime   .course-highlight { background: #f7fee7; border-color: #84cc16; }

.course-pop.cyan   > summary { background: #0891b2; }
.course-pop.cyan   .c-icon   { color: #0891b2; }
.course-pop.cyan   .course-highlight { background: #ecfeff; border-color: #22d3ee; }

.course-pop.purple > summary { background: #9333ea; }
.course-pop.purple .c-icon   { color: #9333ea; }
.course-pop.purple .course-highlight { background: #faf5ff; border-color: #a855f7; }

/* コース下注記（小学生コース案内） */
.course-note {
  margin-top: 2rem;
  background: #fff;
  border: 5px dashed #fde047;
  border-radius: 1.25rem;
  padding: 1.1rem 1.4rem;
  color: #1e293b;
  font-weight: 800;
  text-align: center;
  line-height: 1.7;
  box-shadow: 4px 4px 0 0 #1e293b;
}
.course-note i { color: #ec4899; margin-right: 0.4rem; }

/* =========================================================
   ✉️ お問い合わせ3本立て（フォーム / メール / Instagram）
   - カードは「アクションのトリガー」。長文字列は表示しない
   - メアド・IGアカ名はリンク先（href）に保持し、補助行は ellipsis で1行
   ========================================================= */
.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem auto 0;
  max-width: 760px;
}
/* 3カラム化はカード幅に余裕がある 880px 以降だけ。
   それ未満ではメアド/IG名がはみ出るので 1カラム or 2カラムに */
@media (min-width: 640px) {
  .contact-channels { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}
.contact-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.4rem 0.85rem 1.2rem;
  background: #fff;
  border: 4px solid #1e293b;
  border-radius: 1.25rem;
  box-shadow: 4px 4px 0 0 #1e293b;
  font-weight: 900;
  color: #1e293b;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 180px;
  min-width: 0; /* flex/grid 子で min-content を 0 にしないと ellipsis が効かない */
  width: 100%;
  overflow: hidden; /* 万一はみ出してもカード外に漏らさない */
  /* word-break: break-all は厳禁 — 単語の途中で改行され読めなくなる */
}
.contact-channel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 #1e293b;
}
.contact-channel .ch-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 3px solid #1e293b;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.contact-channel.is-form  .ch-icon { background: #3b82f6; }
.contact-channel.is-mail  .ch-icon { background: #ec4899; }
.contact-channel.is-insta .ch-icon { background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%); }
.contact-channel .ch-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 900;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
}
.contact-channel .ch-label {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #1e293b;
}
.contact-channel .ch-sub {
  /* 長いメアド／IGアカ名は1行＋ellipsis で。完全な値は href 側に保持 */
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  padding: 0 0.2rem;
}
.contact-channel .ch-note {
  font-size: 0.78rem;
  font-weight: 800;
  color: #be185d;
  margin-top: -0.15rem;
}

/* =========================================================
   🗓️ 年間スケジュール 4本柱（teacher.html #calendar 用）
   ========================================================= */
.event-card {
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.75rem;
  padding: 1.4rem 1.2rem;
  box-shadow: 8px 8px 0 0 #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 0 #1e293b;
}
.event-card .event-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  background: #fff;
  font-size: 1.9rem;
}
.event-card.is-eiken    .event-icon { background: #fde047; color: #ca8a04; }
.event-card.is-halloween .event-icon { background: #fed7aa; color: #ea580c; }
.event-card.is-test     .event-icon { background: #bae6fd; color: #0284c7; }
.event-card.is-meeting  .event-icon { background: #fbcfe8; color: #be185d; }
.event-card h4 {
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  margin: 0;
  color: #1e293b;
  letter-spacing: 0.04em;
}
.event-card p {
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
  margin: 0;
  text-align: center;
  line-height: 1.7;
}
.event-card .event-photo {
  margin-top: auto;
  padding-top: 0.4rem;
}
.event-card .event-photo .media-frame { aspect-ratio: 4/3; max-height: 220px; }
.event-card .event-photo .photo-todo {
  background: #fef3c7;
  border: 3px dashed #d97706;
  border-radius: 1rem;
  padding: 0.85rem;
  text-align: center;
  color: #92400e;
  font-weight: 900;
  font-size: 0.85rem;
}
.event-card .event-month {
  display: inline-block;
  background: #1e293b;
  color: #fde047;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  margin: 0 auto;
}

/* =========================================================
   ❓ FAQ（カテゴリ別アコーディオン）
   ========================================================= */
.faq-category {
  margin-bottom: 2.5rem;
}
.faq-category-title {
  display: inline-block;
  background: #fde047;
  color: #1e293b;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.45rem 1.1rem;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 4px 4px 0 0 #1e293b;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.faq-item {
  background: #fff;
  border: 5px solid #1e293b;
  border-radius: 1.25rem;
  box-shadow: 5px 5px 0 0 #1e293b;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.faq-item + .faq-item { margin-top: 0.85rem; }
.faq-item[open] {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #1e293b;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  font-weight: 900;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.55;
  outline: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }
.faq-item > summary .q-mark {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  background: #ec4899;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 3px solid #1e293b;
}
.faq-item > summary .q-text {
  flex: 1;
  min-width: 0;
}
.faq-item > summary .q-toggle {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.25s ease;
  color: #ec4899;
  font-size: 1.1rem;
}
.faq-item[open] > summary .q-toggle { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.15rem 1.15rem 4rem;
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.85;
  animation: pop-open 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-answer p + p { margin-top: 0.6rem; }
.faq-answer .a-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #06b6d4;
  color: #fff;
  font-size: 0.7rem;
  border: 2px solid #1e293b;
  margin-right: 0.4rem;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .faq-item > summary { font-size: 0.95rem; padding: 0.85rem 0.95rem; gap: 0.65rem; }
  .faq-item > summary .q-mark { width: 1.85rem; height: 1.85rem; font-size: 0.9rem; border-width: 2px; }
  .faq-answer { padding: 0 0.95rem 0.95rem 3.4rem; font-size: 0.9rem; }
}

/* =========================================================
   🪜 無料体験の流れ（5ステップカード）
   ========================================================= */
.flow-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .flow-steps { grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
}
.flow-step {
  position: relative;
  background: #fff;
  border: 5px solid #1e293b;
  border-radius: 1.25rem;
  box-shadow: 5px 5px 0 0 #1e293b;
  padding: 1.25rem 0.8rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.flow-step .step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ec4899;
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  border: 3px solid #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.flow-step .step-icon {
  margin-top: 0.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #fde047;
  border: 3px solid #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #1e293b;
}
.flow-step h5 {
  font-weight: 900;
  color: #1e293b;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.flow-step p {
  font-weight: 700;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
@media (min-width: 640px) {
  .flow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.55rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #1e293b;
  }
  .flow-step:last-child::after { display: none; }
}

/* =========================================================
   💬 保護者の声（吹き出しカード）
   ========================================================= */
.voices {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .voices { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.voice-card {
  position: relative;
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.5rem;
  box-shadow: 6px 6px 0 0 #1e293b;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.voice-card .voice-text {
  font-weight: 700;
  color: #1e293b;
  line-height: 1.85;
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}
.voice-card .voice-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 3px dashed #cbd5e1;
}
.voice-card .voice-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 3px solid #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.voice-card.is-pink   .voice-avatar { background: #ec4899; }
.voice-card.is-cyan   .voice-avatar { background: #06b6d4; }
.voice-card.is-orange .voice-avatar { background: #f97316; }
.voice-card.is-purple .voice-avatar { background: #9333ea; }
.voice-card.is-lime   .voice-avatar { background: #65a30d; }
.voice-card.is-yellow .voice-avatar { background: #eab308; color: #1e293b; }
.voice-card .voice-name {
  font-weight: 900;
  font-size: 0.9rem;
  color: #1e293b;
  letter-spacing: 0.03em;
}
.voice-card .voice-attr {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.section-voices-bg {
  background-color: #fef9c3;
  background-image:
    radial-gradient(rgba(244, 114, 182, 0.18) 14%, transparent 14%),
    radial-gradient(rgba(34, 211, 238, 0.18) 14%, transparent 14%);
  background-size: 36px 36px, 36px 36px;
  background-position: 0 0, 18px 18px;
}

/* =========================================================
   🎒 コースカード v2（統一テンプレート / 0515 UI/UX改修）
   - 全6コースを同じ構造で並べて比較しやすく
   - 写真は常時表示、詳細はカード下部のボタンで開閉
   - レベルメーター・タグで違いをひと目で把握
   ========================================================= */
.course-v2 {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.5rem;
  box-shadow: 8px 8px 0 0 #ffffff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-v2:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 0 #ffffff;
}

/* カバー写真（常時表示・トグル発火しない）
   人物の頭が切れないよう object-position を上寄せ＋ aspect-ratio を 4/3 にして縦余裕 */
.course-v2 .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 5px solid #1e293b;
}
.course-v2 .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%; /* 頭部を残す */
  display: block;
}
.course-v2 .cover .age-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #1e293b;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 3px 3px 0 0 #1e293b;
  letter-spacing: 0.04em;
}
.course-v2 .cover .photo-na {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #94a3b8;
  background: repeating-linear-gradient(45deg,
    #f8fafc 0 12px,
    #e2e8f0 12px 24px);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.course-v2 .cover .photo-na i { margin-right: 0.4rem; font-size: 1.4rem; }

/* テーマカラー帯（タイトルバー） */
.course-v2 .title-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-bottom: 4px solid #1e293b;
  color: #fff;
}
.course-v2 .title-bar .c-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  font-size: 1.3rem;
}
.course-v2 .title-bar .c-name {
  flex: 1;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* コース内容（統一フォーマット） */
.course-v2 .body {
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

/* メタ行：レベル＋頻度／時間 */
.course-v2 .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-bottom: 3px dashed #e2e8f0;
  padding-bottom: 0.7rem;
}
.course-v2 .level {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 900;
  font-size: 0.85rem;
  color: #1e293b;
  letter-spacing: 0.04em;
}
.course-v2 .level-stars {
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: #facc15;
  text-shadow: 1px 1px 0 #1e293b, -1px 1px 0 #1e293b, 1px -1px 0 #1e293b, -1px -1px 0 #1e293b;
}
.course-v2 .frequency {
  font-weight: 800;
  font-size: 0.8rem;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}
.course-v2 .frequency i { margin-right: 0.3rem; color: #06b6d4; }

/* リード文（1行〜2行） */
.course-v2 .lead {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.55;
  color: #1e293b;
  margin: 0;
}

/* キーワードタグ */
.course-v2 .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.course-v2 .tag {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border: 2px solid #1e293b;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* テーマカラー反映：色相は既存の course と統一 */
.course-v2.pink   .title-bar { background: #ec4899; }
.course-v2.pink   .c-icon    { color: #ec4899; }
.course-v2.pink   .tag       { background: #fdf2f8; }

.course-v2.orange .title-bar { background: #f97316; }
.course-v2.orange .c-icon    { color: #f97316; }
.course-v2.orange .tag       { background: #fff7ed; }

.course-v2.yellow .title-bar { background: #eab308; color: #1e293b; }
.course-v2.yellow .c-icon    { color: #eab308; }
.course-v2.yellow .tag       { background: #fefce8; }

.course-v2.lime   .title-bar { background: #65a30d; }
.course-v2.lime   .c-icon    { color: #65a30d; }
.course-v2.lime   .tag       { background: #f7fee7; }

.course-v2.cyan   .title-bar { background: #0891b2; }
.course-v2.cyan   .c-icon    { color: #0891b2; }
.course-v2.cyan   .tag       { background: #ecfeff; }

.course-v2.purple .title-bar { background: #9333ea; }
.course-v2.purple .c-icon    { color: #9333ea; }
.course-v2.purple .tag       { background: #faf5ff; }

/* details/summary：写真＆内容はクリック発火しない、フッターボタンだけがトグル領域 */
.course-v2 details { margin-top: auto; }
.course-v2 details > summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #1e293b;
  color: #fde047;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 3px 3px 0 0 #fde047;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: fit-content;
  align-self: flex-start;
}
.course-v2 details > summary::-webkit-details-marker { display: none; }
.course-v2 details > summary::marker { content: ''; }
.course-v2 details > summary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 #fde047; }
.course-v2 details > summary i { transition: transform 0.25s ease; }
.course-v2 details[open] > summary i { transform: rotate(180deg); }
.course-v2 details > summary::before { content: '詳しく見る'; }
.course-v2 details[open] > summary::before { content: '閉じる'; }

/* 詳細パネル（比較に効く情報だけ）
   - 1カラム縦stack に統一：dt/dd 2カラムは狭いカード幅で破綻するため
   - 薄い黄色＋黒太枠で「展開された」視覚信号を強める
   - 各項目を独立ブロックにし、dt はチップ風ラベルに */
.course-v2 .detail-panel {
  margin-top: 1rem;
  background: #fef9c3;
  border: 3px solid #1e293b;
  border-radius: 1.1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #1e293b;
  box-shadow: 4px 4px 0 0 #1e293b;
  animation: pop-open 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.course-v2 .detail-panel dl {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
}
.course-v2 .detail-panel > dl > div,
.course-v2 .detail-panel .dl-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
/* dl の中で dt/dd を直接子にしている既存マークアップにも対応 */
.course-v2 .detail-panel dt {
  display: inline-block;
  width: fit-content;
  font-weight: 900;
  color: #1e293b;
  background: #fde047;
  padding: 0.18rem 0.65rem;
  border: 2px solid #1e293b;
  border-radius: 9999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.course-v2 .detail-panel dt + dd { margin-top: 0; }
.course-v2 .detail-panel dd {
  margin: 0 0 0.7rem 0;
  font-weight: 800;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.65;
}
.course-v2 .detail-panel dd:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .course-v2 .title-bar .c-name { font-size: 1.1rem; }
  .course-v2 .lead { font-size: 0.95rem; }
  .course-v2 .tag { font-size: 0.72rem; }
}

/* コースカード v2 / 「対象」「時間」行 と 簡易チェックリスト
   ボタンを押す前から：対象／時間／リード／チェック2項目 が読めるように */
.course-v2 .target-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1e293b;
  border-bottom: 3px dashed #e2e8f0;
  padding-bottom: 0.55rem;
  margin: 0;
}
.course-v2 .target-line .label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-right: 0.3rem;
}
.course-v2 .target-line .target-val {
  color: #1e293b;
  font-weight: 900;
}
.course-v2 .checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.course-v2 .checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1e293b;
}
.course-v2 .checks li::before {
  content: '\2713'; /* ✓ */
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  border: 2px solid #1e293b;
  border-radius: 0.35rem;
  font-weight: 900;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

/* モーダル内の追加情報用 */
.modal-card .highlight-box {
  background: #fef9c3;
  border: 3px dashed #facc15;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.modal-card .modal-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.modal-card .modal-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e293b;
}
.modal-card .modal-checks li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  border: 2px solid #1e293b;
  border-radius: 0.4rem;
  font-weight: 900;
  font-size: 0.95rem;
  margin-top: 0.1rem;
}
.modal-card .modal-section-title {
  display: inline-block;
  background: #ec4899;
  color: #fff;
  font-weight: 900;
  padding: 0.22rem 0.7rem;
  border: 2px solid #1e293b;
  border-radius: 9999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 0.7rem;
}
/* モーダル内の追加写真（2枚目）。
   コースカードのカバー（1枚目）と合わせて、1コース2枚を活用。 */
.modal-card .modal-photo {
  margin: 0 0 1rem;
  border: 4px solid #1e293b;
  border-radius: 1rem;
  overflow: hidden;
  background: #f1f5f9;
}
.modal-card .modal-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   🪟 共通モーダル（<dialog>）
   - course-modal : コース詳細をポップアップで表示
   - image-modal  : 時間割画像などをポップアップで表示
   - 他カードに影響を与えない（grid 高さズレ問題の解決）
   ========================================================= */
dialog.app-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}
dialog.app-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
dialog.app-modal[open] {
  animation: modal-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-in {
  0%   { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    }
}
.modal-card {
  position: relative;
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.5rem;
  box-shadow: 10px 10px 0 0 #1e293b;
  padding: 3.2rem 1.4rem 1.4rem; /* ×ボタンが内側にあるので上 padding を確保 */
  width: min(560px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
}
/* ×ボタンを「カード内側の右上」に絶対配置。
   画面端や overflow:auto による見切れを防ぐため、外側にはみ出さない */
.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: #ec4899;
  color: #fff;
  border: 3px solid #1e293b;
  box-shadow: 3px 3px 0 0 #1e293b;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 5;
}
.modal-close:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 #1e293b; }
.modal-close:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 #1e293b; }

/* コースモーダル本体 */
.modal-card .modal-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 4px dashed #fde047;
  font-weight: 900;
  font-size: 1.3rem;
  color: #1e293b;
  line-height: 1.3;
}
.modal-card .modal-title .c-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fde047;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  font-size: 1.2rem;
  color: #1e293b;
  flex-shrink: 0;
}
.modal-card .modal-title .age-pill {
  margin-left: auto;
  background: #1e293b;
  color: #fde047;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

/* モーダル内 dl（縦stack＋黄チップキー） */
.modal-card dl {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}
.modal-card dt {
  display: inline-block;
  width: fit-content;
  font-weight: 900;
  color: #1e293b;
  background: #fde047;
  padding: 0.2rem 0.7rem;
  border: 2px solid #1e293b;
  border-radius: 9999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.modal-card dd {
  margin: 0 0 0.5rem 0;
  font-weight: 800;
  color: #1e293b;
  font-size: 0.98rem;
  line-height: 1.7;
}
.modal-card .modal-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* コース「詳しく見る」ボタン（ポップアップ起動） */
.course-v2 .open-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #1e293b;
  color: #fde047;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 3px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 3px 3px 0 0 #fde047;
  cursor: pointer;
  margin-top: auto;
  width: fit-content;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.course-v2 .open-detail-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 #fde047;
}
.course-v2 .open-detail-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 #fde047;
}

/* 画像モーダル：画像はビューポート内に収まるよう height ベースで制約 */
.image-modal-card {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 92vh;
  background: #fff;
  border: 6px solid #1e293b;
  border-radius: 1.25rem;
  box-shadow: 10px 10px 0 0 #1e293b;
  padding: 0.85rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden; /* スクロールせず収める */
}
.image-modal-card .modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  margin: 0;
}
.image-modal-card img {
  display: block;
  max-width: 100%;
  /* モーダル padding (≒1.5rem) + caption (≒1.4rem) + ×ボタン分を除いた高さで切る */
  max-height: calc(92vh - 4.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 3px solid #1e293b;
}
.image-modal-card .modal-cap {
  text-align: center;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .image-modal-card { padding: 0.55rem; }
  .image-modal-card img { max-height: calc(88vh - 4rem); }
}

/* スケジュールページ用「画像でも見る」ボタン */
.schedule-image-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: #facc15;
  color: #1e293b;
  font-weight: 900;
  font-size: 0.95rem;
  border: 4px solid #1e293b;
  border-radius: 9999px;
  box-shadow: 4px 4px 0 0 #1e293b;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.schedule-image-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #1e293b;
  background: #fde047;
}
.schedule-image-cta i { color: #ec4899; }

/* =========================================================
   🎨 共通柄背景（サブページ全体に "ホームと同じ可愛い水玉" を）
   ベース色 + 同色系のドットを2層で重ねた、柔らかい水玉柄
   ========================================================= */
.bg-dotted-yellow {
  background-color: #fef9c3;
  background-image:
    radial-gradient(rgba(250, 204, 21, 0.55) 18%, transparent 18%),
    radial-gradient(rgba(250, 204, 21, 0.55) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}
.bg-dotted-pink {
  background-color: #fce7f3;
  background-image:
    radial-gradient(rgba(244, 114, 182, 0.55) 18%, transparent 18%),
    radial-gradient(rgba(244, 114, 182, 0.55) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}
.bg-dotted-cyan {
  background-color: #cffafe;
  background-image:
    radial-gradient(rgba(34, 211, 238, 0.55) 18%, transparent 18%),
    radial-gradient(rgba(34, 211, 238, 0.55) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}
.bg-dotted-orange {
  background-color: #ffedd5;
  background-image:
    radial-gradient(rgba(251, 146, 60, 0.55) 18%, transparent 18%),
    radial-gradient(rgba(251, 146, 60, 0.55) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}
.bg-dotted-lime {
  background-color: #ecfccb;
  background-image:
    radial-gradient(rgba(132, 204, 22, 0.55) 18%, transparent 18%),
    radial-gradient(rgba(132, 204, 22, 0.55) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}
.bg-dotted-purple {
  background-color: #f3e8ff;
  background-image:
    radial-gradient(rgba(168, 85, 247, 0.5) 18%, transparent 18%),
    radial-gradient(rgba(168, 85, 247, 0.5) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}
/* 暗色ベース（コース紹介の背景など、白カードを引き立てたい場合） */
.bg-dotted-dark {
  background-color: #1e293b;
  background-image:
    radial-gradient(rgba(253, 224, 71, 0.18) 18%, transparent 18%),
    radial-gradient(rgba(244, 114, 182, 0.18) 18%, transparent 18%);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* =========================================================
   Phase 1 レスポンシブ補強（2026-05-25 追加）
   既存スタイルは変更せず、末尾追加で上書き。
   目的:
     1. 全インタラクティブ要素を最小 44x44px タップ領域に
     2. 641-1023px の中間ゾーン崩れ修正
     3. モバイル(〜640px) の料金表/スケジュール/コースカード改行最適化
   ========================================================= */

/* --- 1. 共通: ユーティリティのみ ---------------------------
   ※ 以前ここに p/li/dd 一括の line-break: strict と
   overflow-wrap: anywhere を入れていたが、全ページの
   日本語改行が変わり書体が変わって見えるため撤去。
   ピンポイントの調整は #price/#schedule/.course-v2 側で行う。 */
.no-break { white-space: nowrap; }

/* --- 2. 共通: 最小タップ領域 44x44 ------------------------- */
.btn-pop,
.course-v2 .open-detail-btn,
.schedule-image-cta,
.trial-cta,
.modal-close,
.page-link-card .arrow,
nav a,
.footer-menu a,
.footer-sns a {
  min-height: 44px;
}
.btn-pop, .course-v2 .open-detail-btn, .schedule-image-cta, .trial-cta {
  min-width: 44px;
}
/* 小サイズボタンも 44px 確保（パディングを微調整） */
.btn-pop.btn-sm {
  padding: 0.65rem 1.2rem;
  min-height: 44px;
}
/* 「詳しく見る」: アイコン+短文でも 44px 達成 */
.course-v2 .open-detail-btn {
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
}
/* 閉じる×ボタンも 44x44 を明示 */
.modal-close {
  width: 2.75rem;
  height: 2.75rem;
}

/* --- 3. 中間ブレークポイント (641-1023px) ------------------ */
@media (min-width: 641px) and (max-width: 1023px) {
  /* ボイスカード/お知らせ等の 1→3カラム飛ばし対策: 中間で 2カラムに */
  .grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* コースカード: md 段階で 2カラム維持(既存)、ただし gap を詰める */
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    gap: 1.5rem;
  }
  /* モーダルを少し広く (560px→640px) して中サイズで余裕を持たせる */
  .modal-card { width: min(640px, 92vw); }
  /* スケジュールPCマトリクスの曜日チップ: 文字を縮めて折返し回避 */
  #schedule .grid > div { font-size: 0.95rem; }
}
/* スケジュールスマホカード: 641-767px (md未満) で 2カラムに */
@media (min-width: 641px) and (max-width: 767px) {
  #schedule .grid.grid-cols-1.gap-6.md\:hidden {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- 4. モバイル(〜640px) 微調整 ---------------------------- */
@media (max-width: 640px) {
  /* a) コースカードリード文: 行間のみ広げる(改行ルールは既定のまま) */
  .course-v2 .lead {
    line-height: 1.7;
  }
  /* b) コースカード「詳しく見る」を横幅100%にしてタップしやすく */
  .course-v2 .open-detail-btn {
    width: 100%;
    justify-content: center;
  }
  /* c) スケジュール: カラーバッジを少し小さく折返し抑制 */
  #schedule .flex.flex-wrap > span {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
  }
  /* d) スケジュールスマホカード: 時間と内容の間にゆとり */
  #schedule .md\:hidden li {
    padding: 0.75rem 0.85rem;
  }
  #schedule .md\:hidden li > span:first-child {
    font-size: 0.9rem;
  }
  #schedule .md\:hidden li > span:last-child {
    font-size: 1rem;
  }
  /* e) 料金表: th と td を縦積みにして横はみ出し解消 */
  #price table,
  #price tbody,
  #price tr {
    display: block;
    width: 100%;
  }
  #price tr {
    border-bottom: 4px dashed #cbd5e1;
    padding: 0.85rem 0;
  }
  #price tr:last-child { border-bottom: none; }
  #price th,
  #price td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.15rem 0 !important;
  }
  #price td {
    text-align: right;
    font-size: 1.5rem;
  }
  #price th { font-size: 1rem; }
  /* th 内の補足説明は少し詰める */
  #price th .block {
    margin-top: 0.2rem;
    margin-left: 1.8rem;
  }
  /* f) ヒーロー/見出しの強制改行調整(極小端末で余白詰まり緩和) */
  .text-3d { text-shadow: 2px 2px 0 #1e293b; }
}

/* --- 5. 極小端末(〜380px) ---------------------------------- */
@media (max-width: 380px) {
  .course-v2 .lead { font-size: 0.88rem; line-height: 1.65; }
  .course-v2 .open-detail-btn { font-size: 0.85rem; }
  #price td { font-size: 1.3rem; }
  .modal-close { width: 2.5rem; height: 2.5rem; }
  .trial-cta { padding: 0.7rem 1.1rem; font-size: 0.85rem; }
}
