/* =========================================================
   WEWORLDグループ 教室貸出 — 共通スタイル（全ページ共通）
   デザイン：デザインサンプル.html（B案）の色・動きをベースに、
   TOPページサンプル.jpg／校舎別ページ.png のレイアウトに合わせたもの
   ---------------------------------------------------------
   配色（4色）：#1C246E ネイビー＝見出し・本文・ヘッダー/フッター
              #4600FF 青紫＝リンク・ブランド要素
              #B3B3B3 グレー＝罫線・枠・区切り
              #F2A900 アンバー＝申込ボタン・お知らせの強調（文字はネイビー）
   ========================================================= */
:root {
  --navy: #1c246e;
  --navy-2: #2a3390;
  --navy-deep: #12184d;
  --accent: #4600ff;
  --accent-2: #6b33ff;
  --accent-soft: #eeebff;
  --amber: #f2a900;
  --amber-2: #ffbe1a;
  --amber-deep: #c98c00;
  --amber-soft: #fff4d6;
  --gray: #b3b3b3;
  --ink: #1c246e;
  --muted: #5d6178;
  --bg: #fafafa;
  --card: #ffffff;
  --line: #dcdcdc;
  --ph: #d9d9d9;
  --radius-card: 20px;
  --max: 1200px;
  --gutter: 24px;
  --section: 120px;
  --header-h: 76px;
  --font-num: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --font-outline: "Anton", "Impact", sans-serif;
  --grad-accent: linear-gradient(135deg, #6b33ff 0%, #4600ff 55%, #3300bb 100%);
  --grad-navy: linear-gradient(135deg, #2a3390 0%, #1c246e 60%, #12184d 100%);
  --shadow: 0 12px 40px -16px rgba(28,36,110,.28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; } /* スマホで画面が左右に動かないように（傾けた帯がはみ出すため。body だけでは iPhone で効かない） */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: clip; /* hidden だと追従ヘッダーが止まるため clip */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { word-break: auto-phrase; overflow-wrap: anywhere; font-weight: 900; line-height: 1.35; margin: 0; letter-spacing: .01em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--font-num); font-feature-settings: "tnum"; letter-spacing: -.02em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); }
.nowrap { white-space: nowrap; }
/* 改行の出し分け：<br class="br-pc">＝PCだけ改行／<br class="br-sp">＝SP（640px以下）だけ改行 */
.br-sp { display: none; }

/* ---------- 仮置き（画像なし・未確定） ---------- */
.ph {
  display: grid; place-items: center; text-align: center; padding: 12px;
  color: #7a7d8c; font-size: 13px; font-weight: 700;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 10px, transparent 10px 20px), var(--ph);
}
.tbd { color: var(--muted); font-weight: 700; }
.tbd-pill { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.6; padding: 1px 10px; border-radius: 999px; background: #efefef; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }
/* 申込・問い合わせボタン＝アンバー（文字はネイビー） */
.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(201,140,0,.65), inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-primary:hover { background: var(--amber-2); box-shadow: 0 16px 32px -8px rgba(201,140,0,.75), inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
/* 校舎ページ下部の申込ボタン（ネイビー帯の上）もアンバー */
.btn-white { background: var(--amber); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-white:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn-lg { height: 64px; padding: 0 36px; font-size: 17px; }
.is-glow { animation: glow 2.4s ease-in-out infinite; }
.btn-white.is-glow { animation-name: glowW; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; color: var(--accent); text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }
@keyframes glow { 0%, 100% { box-shadow: 0 10px 24px -8px rgba(201,140,0,.65), 0 0 0 0 rgba(242,169,0,.55); } 50% { box-shadow: 0 10px 24px -8px rgba(201,140,0,.65), 0 0 0 14px rgba(242,169,0,0); } }
@keyframes glowW { 0%, 100% { box-shadow: 0 10px 24px -8px rgba(0,0,0,.35), 0 0 0 0 rgba(242,169,0,.6); } 50% { box-shadow: 0 10px 24px -8px rgba(0,0,0,.35), 0 0 0 14px rgba(242,169,0,0); } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.6; padding: 2px 12px; border-radius: 4px; background: var(--accent-soft); color: var(--navy); white-space: nowrap; }
.chip--solid { background: var(--accent); color: #fff; }
.chip--navy { background: var(--navy); color: #fff; }
.chip--warn { background: var(--amber); color: var(--navy); font-weight: 700; }

/* =========================================================
   共通ヘッダー
   ========================================================= */
/* TOPはヘッダー追従。校舎ページはヘッダーは流し、ページ内ナビ（.subnav）を最上部に追従させる */
#site-header { min-height: var(--header-h); position: sticky; top: 0; z-index: 50; }
body[data-page="campus"] #site-header { position: relative; }
.site-header { background: rgba(255,255,255,.97); box-shadow: 0 2px 20px rgba(28,36,110,.1); border-top: 4px solid var(--accent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 4px); gap: 20px; max-width: 1320px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { display: block; width: auto; height: 22px; }
.logo-sub { white-space: nowrap; font-size: 12px; font-weight: 900; color: #fff; background: var(--accent); padding: 2px 10px; border-radius: 4px; }
.gnav { display: flex; align-items: center; gap: 22px; }
.gnav-list { display: flex; gap: 20px; }
.gnav-list a { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; position: relative; padding: 4px 0; }
.gnav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.gnav-list a:hover::after, .gnav-list a[aria-current="page"]::after { transform: scaleX(1); }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.2; color: var(--navy); }
.header-tel .num { font-size: 20px; font-weight: 900; }
.header-tel small { font-size: 11px; color: var(--muted); font-weight: 700; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--accent-soft); color: var(--navy); cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.site-header.is-open .menu-btn span { background: transparent; }
.site-header.is-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   セクション共通（見出し：袋文字の英字＋ブラー表示＋マーカー）
   ========================================================= */
.section { padding: var(--section) 0; position: relative; }
.section--white { background: #fff; }
.section--soft { background: var(--accent-soft); }
.section--dots { background-color: #fff; background-image: radial-gradient(rgba(28,36,110,.09) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.section--dark { background: var(--grad-navy); color: #fff; }
.section-head { position: relative; text-align: center; margin-bottom: 64px; }
.eyebrow {
  position: absolute; left: 0; right: 0; top: -.62em; margin: 0; z-index: 0; pointer-events: none;
  font-family: var(--font-outline); font-size: clamp(56px, 10vw, 132px); font-weight: 400; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1.5px rgba(28,36,110,.13);
}
.eyebrow--long { font-size: clamp(36px, 8vw, 104px); top: -.4em; }
.section--dark .eyebrow { -webkit-text-stroke-color: rgba(255,255,255,.14); }
.section-title { position: relative; z-index: 1; font-size: clamp(26px, 4.2vw, 46px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.section-title::after { content: ""; display: block; width: 72px; height: 6px; margin: 22px auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--accent-2) 50% 100%); }
.section--dark .section-title::after { background: linear-gradient(90deg, #fff 0 50%, rgba(255,255,255,.35) 50% 100%); }
.pill { background-image: linear-gradient(transparent 60%, var(--accent-soft) 60%); background-repeat: no-repeat; background-size: 100% 100%; color: var(--accent); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section--soft .pill { background-image: linear-gradient(transparent 60%, #fff 60%); }
.section--dark .pill { color: var(--accent-soft); background-image: linear-gradient(transparent 82%, var(--accent) 82%); }
.section-title .pill { background: none; padding: 0; }
.js-anim .section-title:not(.is-in) { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(8px); }
.section-lead { position: relative; z-index: 1; color: var(--muted); margin-top: 22px; font-weight: 500; }
.section--dark .section-lead { color: rgba(255,255,255,.78); }
.card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.section-foot { margin-top: 40px; text-align: center; }

/* =========================================================
   TOP：ヒーロー
   ========================================================= */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; padding: 96px 0 150px; overflow: hidden; background: var(--navy); color: #fff; }
.hero .container { position: static; width: 100%; }
.hero-visual { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out both; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,24,77,.95) 0%, rgba(28,36,110,.85) 40%, rgba(28,36,110,.4) 66%, rgba(28,36,110,.18) 100%); }
.hero-visual figcaption { position: absolute; right: 20px; bottom: 76px; z-index: 2; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--navy); }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 140%; background: var(--navy-2); opacity: .12; transform: skewX(-18deg); z-index: 1; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; max-width: 920px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; word-break: keep-all;
  font-size: 15px; font-weight: 900; color: var(--navy); background: var(--amber); padding: 10px 24px 10px 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
  box-shadow: 0 8px 24px -8px rgba(242,169,0,.8);
}
.hero-tag .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px rgba(28,36,110,.2); animation: blink 1.6s infinite; }
.hero h1 { position: relative; z-index: 0; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.2; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero-big { position: relative; display: inline-block; white-space: nowrap; margin-top: .1em; padding: 0 .04em; font-size: clamp(46px, 8.6vw, 128px); font-weight: 900; line-height: 1.1; letter-spacing: .02em; }
.hero-big::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .3em; z-index: -1; background: var(--accent); transform: skewX(-14deg); transform-origin: left; animation: markerIn .7s .75s cubic-bezier(.65,0,.35,1) both; }
.hero-big .ch { display: inline-block; animation: heroChar .9s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i, 0) * .08s); }
.hero-lead { margin-top: 28px; color: rgba(255,255,255,.9); font-size: 17px; font-weight: 500; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-cta .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.hero-cta .btn-outline:hover { background: #fff; color: var(--navy); }
.hero-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.72); }
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1.06); } }
@keyframes heroChar { 0% { opacity: 0; transform: translateY(.6em) scale(.5) rotate(-10deg); } 60% { opacity: 1; transform: translateY(-.08em) scale(1.08) rotate(2deg); } 100% { transform: none; } }
@keyframes markerIn { from { transform: skewX(-14deg) scaleX(0); } to { transform: skewX(-14deg) scaleX(1); } }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- マーキー ---------- */
.marquee { position: relative; z-index: 4; margin-top: -30px; background: var(--accent-soft); color: var(--navy); transform: rotate(-1.5deg); overflow: hidden; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); box-shadow: 0 10px 30px -10px rgba(28,36,110,.4); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding: 14px 28px 14px 0; font-size: 19px; font-weight: 900; white-space: nowrap; }
.marquee span::after { content: "●"; font-size: .6em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 数字の帯 ---------- */
.stats { padding: 88px 0 0; }
.stats-band { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 28px; overflow: hidden; background: var(--grad-navy); color: #fff; box-shadow: 0 30px 60px -24px rgba(28,36,110,.6); position: relative; }
.stat { position: relative; padding: 40px 16px 36px; text-align: center; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: rgba(255,255,255,.18); }
.stat .v { font-size: clamp(34px, 3.8vw, 52px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.stat .v small { font-size: .42em; font-weight: 900; margin-left: 2px; font-family: "Noto Sans JP", sans-serif; letter-spacing: 0; }
.stat .v .pre { font-size: .42em; font-family: "Noto Sans JP", sans-serif; margin-right: 2px; letter-spacing: 0; }
.stat .v.jp { white-space: nowrap; font-family: "Noto Sans JP", sans-serif; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.55; letter-spacing: .02em; }
.stat .d { margin-top: 10px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.78); }

/* ---------- WHY US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* 色帯（上辺の太線）は使わず、1px罫線＋極薄の影で面を区切る */
.why { position: relative; padding: 36px 30px 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28,36,110,.04); transition: transform .3s, box-shadow .3s, border-color .3s; }
.why:hover { transform: translateY(-6px); border-color: #c9bdff; box-shadow: 0 20px 40px -20px rgba(28,36,110,.35); }
.why .no { position: absolute; top: 8px; right: 16px; font-family: var(--font-num); font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 4px #e3dcff; -webkit-text-fill-color: #fff; paint-order: stroke fill; }
.why .icon { position: relative; width: 64px; height: 64px; border-radius: 18px; background: var(--grad-navy); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(28,36,110,.5); }
.why:nth-child(even) .icon { background: var(--grad-accent); }
.why .icon svg { width: 32px; height: 32px; }
.why h3 { position: relative; font-size: 20px; color: var(--navy); margin-top: 22px; }
.why p { position: relative; margin-top: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------- 校舎カード ---------- */
.campus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.campus { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.campus:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -16px rgba(28,36,110,.45); }
.campus-img { overflow: hidden; aspect-ratio: 3 / 2; }
.campus-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.campus:hover .campus-img img { transform: scale(1.08); }
/* 校舎カード：カーソルで傾く・光が反射する・教室写真(01)に切り替わる（傾きは common.js の data-tilt） */
.campus { position: relative; }
.campus::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.45), rgba(255,255,255,0) 55%); mix-blend-mode: soft-light; }
.campus:hover::after { opacity: 1; }
.campus-img { position: relative; }
.campus-img-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s, transform .6s; }
.campus:hover .campus-img-alt, .campus:focus-visible .campus-img-alt { opacity: 1; }
@media (hover: none) {
  .campus-img-alt { animation: campus-swap 8s ease-in-out infinite; }
  .campus:nth-child(even) .campus-img-alt { animation-delay: -4s; }
}
@keyframes campus-swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.campus-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.campus h3 { font-size: 16px; line-height: 1.5; color: var(--navy); }
.campus .spec { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.7; }
.campus .spec .num { font-weight: 600; color: var(--ink); font-size: 15px; }
.campus .text-link { margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--gray); }
.campus.is-soon .text-link { color: var(--muted); }
.campus.is-soon .text-link::after { content: ""; }

/* ---------- 試験・一棟貸切 ---------- */
.exam { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.exam .section-head { text-align: left; margin-bottom: 28px; }
.exam .section-title::after { margin-left: 0; }
.exam .eyebrow, .hall .eyebrow { left: -4px; font-size: clamp(48px, 7vw, 96px); }
.checklist { display: grid; gap: 14px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--navy); }
.checklist li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 6px 12px -4px rgba(70,0,255,.6); }
.exam-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.exam-visual { position: relative; }
.exam-visual img, .exam-visual .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 6px solid #fff; box-shadow: 16px 16px 0 var(--navy); }
.exam-visual figcaption { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- 料金表 ---------- */
.price-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow); border: 3px solid var(--navy); }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { background: var(--navy); color: #fff; font-size: 13px; font-weight: 900; border-bottom: 0; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: #f6f4ff; }
.price-table tbody th { font-size: 15px; font-weight: 900; color: var(--navy); }
.price-table tbody th a { text-decoration: none; }
.price-table tbody th a:hover { text-decoration: underline; }
.price-table .yen { font-size: 22px; font-weight: 900; color: var(--accent); white-space: nowrap; }
.price-table .yen small { font-size: 12px; margin-left: 2px; font-family: "Noto Sans JP", sans-serif; letter-spacing: 0; }
.price-table .tbd { font-size: 15px; }
.price-notes { margin-top: 16px; display: grid; gap: 4px; }
.compare { padding: 32px 28px; background: var(--grad-navy); color: #fff; }
.compare h3 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.compare h3::before { content: "VS"; display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--navy); font-family: var(--font-num); font-size: 15px; }
.compare .sub { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 8px; }
.compare table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 700; }
.compare td:last-child, .compare th:last-child { text-align: right; }
.compare thead th { font-size: 12px; color: rgba(255,255,255,.6); padding-top: 0; }
.compare td .num { font-size: 18px; font-weight: 900; }
.ours-box { margin-top: 16px; padding: 10px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.ours-box table { margin: 0; }
.ours-box td { border-bottom: 0; color: var(--navy); }
.ours-box td .num { color: var(--accent); font-size: 19px; }
/* 他社比較：横棒グラフ（.compare に .in が付くと伸びる） */
.bars-group { margin-top: 22px; }
.bars-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.6); padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.14); }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 6px; padding: 10px 0 4px; font-size: 14px; font-weight: 700; }
.bars .bar-label small { margin-left: 8px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }
.bars .bar-val .num { font-size: 18px; font-weight: 900; }
.bars--plain li { padding-bottom: 10px; }
.bar-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: rgba(255,255,255,.45); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.bars li:nth-child(2) .bar-fill { transition-delay: .12s; }
.bars li:nth-child(3) .bar-fill { transition-delay: .24s; }
.bars li:nth-child(4) .bar-fill { transition-delay: .36s; }
.compare.in .bar-fill, .no-js .bar-fill { width: var(--w); }
.bars li.is-ours { margin-top: 6px; padding: 10px 14px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.bars li.is-ours .bar-label small { color: var(--muted); }
.bars li.is-ours .bar-val .num { color: var(--accent); font-size: 20px; }
.bars li.is-ours .bar-track { background: rgba(70,0,255,.1); }
.bars li.is-ours .bar-fill { background: var(--grad-accent); }
.bars-diff { margin-top: 10px; text-align: right; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); opacity: 0; transform: translateY(6px); transition: opacity .5s 1.3s, transform .5s 1.3s; }
.bars-diff .num { font-size: 20px; font-weight: 900; color: #fff; margin: 0 2px; }
.compare.in .bars-diff, .no-js .bars-diff { opacity: 1; transform: none; }

/* ---------- 利用できる日 ---------- */
.avail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avail { padding: 32px 28px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28,36,110,.04); }
.avail .k { display: inline-block; font-size: 12px; font-weight: 900; padding: 1px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--navy); }
.avail h3 { font-size: 20px; color: var(--navy); margin-top: 14px; }
.avail p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.rule { padding: 28px 24px; text-align: center; background: var(--grad-navy); color: #fff; }
.rule:nth-child(2), .rule:nth-child(3) { background: var(--grad-accent); }
.rule .k { display: inline-block; font-size: 14px; font-weight: 900; color: var(--navy); background: var(--accent-soft); padding: 1px 16px; border-radius: 999px; }
.rule .v { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.2; margin-top: 8px; }
.rule .v small { font-size: 20px; font-weight: 900; margin-left: 6px; font-family: "Noto Sans JP", sans-serif; letter-spacing: 0; }
.notice { margin-top: 24px; padding: 22px 28px; border-radius: 20px; background: var(--amber-soft); border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--navy); font-size: 15px; font-weight: 700; color: var(--navy); display: flex; gap: 14px; align-items: flex-start; }
.notice strong { font-weight: 900; color: var(--navy); background: linear-gradient(transparent 62%, rgba(242,169,0,.55) 62%); }
.notice .mark { flex: none; font-size: 12px; font-weight: 900; color: var(--navy); background: var(--amber); padding: 2px 12px; border-radius: 999px; margin-top: 2px; white-space: nowrap; }

/* ---------- 事例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-grid--2 { grid-template-columns: repeat(2, 1fr); }
.case-grid--1 { grid-template-columns: minmax(0, 580px); }
.case { overflow: hidden; transition: transform .3s, box-shadow .3s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -16px rgba(28,36,110,.4); }
.case .ph { aspect-ratio: 16 / 9; }
.case-img { aspect-ratio: 16 / 9; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 22px 24px 24px; }
.case h3 { font-size: 18px; color: var(--navy); margin-top: 10px; }
.case p { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.case--row { display: grid; grid-template-columns: 180px 1fr; align-items: center; }
.case--row .ph { aspect-ratio: auto; height: 100%; min-height: 128px; }
.case--row .case-img { aspect-ratio: auto; height: 100%; min-height: 128px; }
.case--row .case-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 流れ ---------- */
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: step; }
.flow-list li { position: relative; padding: 48px 24px 28px; text-align: center; border: 3px solid var(--navy); }
.flow-list li:not(:last-child)::after { content: ""; position: absolute; right: -28px; top: 50%; border-left: 16px solid var(--accent); border-top: 12px solid transparent; border-bottom: 12px solid transparent; transform: translateY(-50%); }
.flow-list .step { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--font-num); font-size: 13px; font-weight: 900; color: #fff; background: var(--grad-accent); padding: 7px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 16px -6px rgba(70,0,255,.6); }
.flow-icon { display: block; width: 50%; max-width: 120px; margin: 0 auto 16px; color: var(--accent); }
.flow-icon svg { display: block; width: 100%; height: auto; }
.flow-list h3 { font-size: 19px; color: var(--navy); }
.flow-list p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
.faq-list details { background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28,36,110,.04); overflow: hidden; transition: border-color .2s; }
.faq-list details:hover { border-color: #c9bdff; }
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 72px; font-weight: 900; color: var(--navy); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .3s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.faq-list .a { position: relative; padding: 0 28px 24px 72px; color: var(--muted); font-size: 15px; font-weight: 500; }
.faq-list .a::before { content: "A"; position: absolute; left: 20px; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-weight: 900; }

/* ---------- お問い合わせ（TOP） ---------- */
.contact-box {
  position: relative; overflow: hidden; border-radius: 32px; padding: 72px 64px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; color: #fff;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px), var(--grad-accent);
  box-shadow: 0 30px 60px -20px rgba(70,0,255,.6);
}
.contact-box::before { content: "CONTACT"; position: absolute; left: -8px; bottom: -.22em; font-family: var(--font-outline); font-size: clamp(80px, 14vw, 200px); letter-spacing: .06em; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.18); pointer-events: none; }
.contact-box h2 { position: relative; font-size: clamp(28px, 3.6vw, 44px); }
.contact-box > div > p { position: relative; color: rgba(255,255,255,.92); margin-top: 18px; font-weight: 700; }
.tel-box { position: relative; display: inline-flex; flex-direction: column; margin-top: 28px; padding: 18px 26px; border-radius: 18px; background: rgba(18,24,77,.55); text-decoration: none; color: #fff; line-height: 1.3; transition: background .2s; }
.tel-box:hover { background: rgba(18,24,77,.8); }
.tel-box small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.75); }
.tel-box .num { font-size: 32px; font-weight: 900; margin: 4px 0 2px; }
.form-card { position: relative; padding: 36px 32px; border-radius: 24px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 20px 40px -16px rgba(0,0,0,.35); }
.contact-box .form-card p { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0; }
.form-card .btn { width: 100%; margin-top: 20px; height: 64px; white-space: normal; }
.contact-box .form-card .note { margin-top: 12px; color: var(--muted); font-weight: 500; font-size: 13px; }

/* =========================================================
   校舎別ページ
   ========================================================= */
.c-hero { padding: 28px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.c-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; margin-top: 28px; }
.c-hero .chips { margin-bottom: 18px; }
.c-hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
.c-hero h1 .pill { transition: background-size .8s cubic-bezier(.65,0,.35,1) .4s; }
.js-anim .c-hero h1:not(.is-in) .pill { background-size: 0% 100%; }
.c-hero .sub { margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--navy); }
.c-hero .sub span { color: var(--gray); margin: 0 8px; }
.c-hero .lead { margin-top: 18px; color: var(--muted); font-weight: 500; }
/* 最短ご利用日（校舎ページのヒーロー） */
.soonest { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 20px; border-radius: 18px; background: #fff; border: 2px solid var(--accent-soft); box-shadow: 0 10px 28px -16px rgba(28,36,110,.35); }
.soonest-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.soonest-icon svg { width: 28px; height: 28px; }
.soonest-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.soonest-date { margin-top: 2px; font-size: 15px; font-weight: 900; color: var(--navy); line-height: 1.3; }
.soonest-date.is-js { font-size: 16px; }
.soonest-date .num { font-family: var(--font-num); font-size: 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.soonest-date small { font-size: 15px; margin: 0 2px; }
.soonest-date .dow { font-size: 15px; }
.soonest-date .from { font-size: 14px; color: var(--muted); margin-left: 4px; }
.soonest-date.is-set .num { animation: soonest-pop .5s cubic-bezier(.2,.7,.2,1.4); }
@keyframes soonest-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.soonest-date .num { display: inline-block; }
.soonest-note { margin-top: 4px; font-size: 12px; color: var(--muted); }
.c-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.c-gallery-main { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 3 / 2; box-shadow: 0 24px 48px -20px rgba(28,36,110,.5); background: var(--ph); }
.c-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.c-gallery-main figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--navy); }
.c-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.c-thumbs button, .c-thumbs .ph { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.c-thumbs button { padding: 0; border: 3px solid transparent; background: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.c-thumbs button:hover { transform: translateY(-2px); }
.c-thumbs button[aria-current="true"] { border-color: var(--accent); }
.c-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.c-thumbs .ph { font-size: 12px; }
.summary { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; background: #fff; border-radius: var(--radius-card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28,36,110,.04); overflow: hidden; }
.summary > div { padding: 20px 22px; }
.summary > div + div { border-left: 1px solid var(--line); }
.summary dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.summary dd { margin-top: 4px; font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.4; }
.summary dd .num { font-size: 28px; color: var(--accent); }
.summary dd small { font-size: 14px; margin-left: 2px; }
.summary--4 { grid-template-columns: repeat(4, 1fr); }

.subnav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(28,36,110,.3); }
.subnav ul { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 0 14px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--navy); }
.subnav a.is-active { color: var(--navy); border-bottom-color: var(--accent); }
body[data-page="campus"] { scroll-padding-top: 0; }
html:has(body[data-page="campus"]) { scroll-padding-top: 72px; }

.hall { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hall-img { position: relative; }
.hall-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; border: 6px solid #fff; box-shadow: -16px 16px 0 var(--navy); }
.hall .section-head { text-align: left; margin-bottom: 20px; }
.hall .section-title::after { margin-left: 0; }
.hall-text { color: var(--muted); font-weight: 500; }
.hall-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 32px; }
.hall-specs > div { padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px -10px rgba(28,36,110,.35); }
.hall-specs dt { font-size: 11px; font-weight: 700; color: var(--muted); }
.hall-specs dd { font-size: 18px; font-weight: 900; color: var(--navy); line-height: 1.5; }
.hall-specs dd .num { font-size: 22px; color: var(--accent); }
.hall-specs dd small { font-size: 12px; }

.rooms { display: grid; gap: 16px; }
.room { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; padding: 16px 28px 16px 16px; transition: transform .25s, box-shadow .25s; }
.room:hover { transform: translateX(6px); box-shadow: 0 20px 44px -18px rgba(28,36,110,.45); }
.room-img { aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; }
/* 写真のない教室：定員を大きく見せるタイル */
.room-img--cap { display: grid; place-content: center; justify-items: center; gap: 2px; background: radial-gradient(circle at 1px 1px, rgba(70,0,255,.16) 1px, transparent 1.5px) 0 0 / 12px 12px, var(--accent-soft); border: 1px solid rgba(70,0,255,.12); }
.room-img--cap .cap-k { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.room-img--cap .cap-v { font-family: var(--font-num); font-size: 40px; font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.room-img--cap .cap-v small { font-family: "Noto Sans JP", sans-serif; font-size: 14px; margin-left: 2px; color: var(--navy); letter-spacing: 0; }
.room h3 { font-size: 19px; color: var(--navy); }
.room .chips { margin-top: 8px; }
.room .meta { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.room-price { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 28px; text-align: right; }
.room-price dt { font-size: 11px; font-weight: 700; color: var(--muted); }
.room-price dd { font-size: 24px; font-weight: 900; color: var(--accent); white-space: nowrap; grid-row: 2; }
.room-price dd small { font-size: 12px; margin-left: 2px; font-family: "Noto Sans JP", sans-serif; letter-spacing: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { padding: 36px 32px; }
.panel-eyebrow { font-family: var(--font-num); font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--accent); }
.panel h2 { font-size: 26px; color: var(--navy); margin: 6px 0 20px; }
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-weight: 700; }
.kv dd { text-align: right; }
.kv dd.ok { font-weight: 900; color: var(--accent); }
.kv--wide > div { justify-content: flex-start; }
.kv--wide dt { width: 9em; flex: none; }
.kv--wide dd { text-align: left; }
.panel .note { margin-top: 16px; }

.access-addr { font-size: 17px; font-weight: 900; color: var(--navy); }
.access-addr + .note { margin-top: 4px; }
.map { margin-top: 24px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; aspect-ratio: 16 / 7; background: var(--ph); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.access-foot { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }

.cta-band { padding: 80px 0; text-align: center; color: #fff; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px), var(--grad-navy); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.8); font-weight: 700; }
.cta-band .btn { margin-top: 28px; }
.cta-band .tel { margin-top: 18px; font-weight: 700; }
.cta-band .tel a { font-family: var(--font-num); font-size: 22px; font-weight: 900; text-decoration: none; margin: 0 4px; color: #fff; }


/* =========================================================
   共通フッター
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 40px; font-size: 14px; border-top: 6px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 40px 72px; }
.footer-brand .name { color: #fff; font-size: 18px; font-weight: 900; }
.footer-brand address { margin-top: 14px; font-style: normal; line-height: 1.9; }
.footer-brand a { color: #fff; font-weight: 900; text-decoration: none; }
.footer-col h2 { font-size: 13px; color: #fff; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .soon { color: rgba(255,255,255,.4); }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-num); font-size: 12px; }

/* ---------- 追従CTA ---------- */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 60; height: 60px; padding: 0 28px; transition: opacity .3s, transform .3s; animation: ctaWiggle 3s ease-in-out 1.5s infinite; }
.float-cta:hover, .float-cta:focus-visible { animation-play-state: paused; }
.float-cta.is-hidden { animation: none; }
@keyframes ctaWiggle { 0%, 80%, 100% { rotate: 0deg; } 82% { rotate: -8deg; } 84% { rotate: 8deg; } 86% { rotate: -7deg; } 88% { rotate: 6deg; } 90% { rotate: -4deg; } 92% { rotate: 2deg; } }
.sp-bar { display: none; }
.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- スクロールでフェードイン ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-cta, .hero-big .ch, .hero-big::after, .hero-visual img, .is-glow, .marquee-track, .hero-tag .dot { animation: none; }
  .section-title, .c-hero h1 .pill, .campus-img img, .c-gallery-main img { transition: none; }
  .bar-fill, .bars-diff { transition: none; }
  .soonest-date.is-set .num { animation: none; }
  .campus-img-alt { animation: none; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1240px) {
  .header-tel { display: none; }
}
@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .gnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 20px var(--gutter) 28px; background: #fff; box-shadow: 0 20px 30px -20px rgba(28,36,110,.4); border-top: 1px solid var(--line); display: none; }
  .site-header.is-open .gnav { display: flex; }
  .gnav-list { flex-direction: column; gap: 0; }
  .gnav-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .gnav-list a::after { display: none; }
  .header-tel { display: flex; align-items: center; }
  .gnav .btn { width: 100%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
  .stat:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.18); }
  .price-wrap { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .flow-list li:nth-child(2)::after { display: none; }
  .exam, .hall, .c-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .summary { grid-template-columns: repeat(3, 1fr); }
  .summary > div:nth-child(4) { border-left: 0; }
  .summary > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .summary--4 { grid-template-columns: repeat(2, 1fr); }
  .summary--4 > div:nth-child(3) { border-left: 0; }
  .summary--4 > div:nth-child(4) { border-left: 1px solid var(--line); }
  .summary--4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .room { grid-template-columns: 160px 1fr; }
  .room-price { grid-column: 1 / -1; justify-content: end; }
}
@media (max-width: 860px) {
  .contact-box { grid-template-columns: 1fr; padding: 48px 28px; gap: 32px; }
  .tel-box { display: flex; width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .case-grid, .avail-grid { grid-template-columns: 1fr; }
  .case-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
  :root { --gutter: 16px; --section: 80px; --header-h: 64px; }
  body { font-size: 15px; }
  /* 下部固定バーの高さ分の余白は、フッター内に取ってフッターと同じ色にする */
  .site-footer { padding-bottom: calc(40px + 76px + env(safe-area-inset-bottom)); }
  .logo-mark { height: 17px; }
  .logo-sub { font-size: 11px; padding: 1px 8px; }
  .btn { height: 54px; padding: 0 22px; font-size: 15px; }
  .btn-lg { height: 58px; font-size: 15px; }
  .hero { min-height: auto; padding: 56px 0 110px; }
  .hero-tag { font-size: 13px; padding: 8px 20px 8px 14px; }
  .hero-lead { font-size: 15px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual::after { background: linear-gradient(180deg, rgba(18,24,77,.9) 0%, rgba(28,36,110,.85) 60%, rgba(28,36,110,.92) 100%); }
  .hero-visual figcaption { bottom: 52px; right: 12px; }
  .marquee span { font-size: 15px; padding: 10px 20px 10px 0; gap: 20px; }
  .stats { padding-top: 64px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); border-radius: 22px; }
  .stat { padding: 26px 10px 24px; }
  .stat .d { font-size: 12px; }
  .stat::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.18); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .section-head { margin-bottom: 44px; }
  .eyebrow:not(.eyebrow--long) { font-size: 44px; }
  .why-grid, .campus-grid, .rules { grid-template-columns: 1fr; }
  .why { padding: 28px 22px 26px; }
  .exam-visual img, .exam-visual .ph { box-shadow: 8px 8px 0 var(--navy); }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { padding: 2px 0; border: 0; }
  .price-table tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .price-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
  .price-table .yen { font-size: 19px; }
  .compare { padding: 28px 20px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li::after { display: none; }
  .notice { flex-direction: column; gap: 8px; box-shadow: 5px 5px 0 var(--navy); padding: 20px; }
  .faq-list summary { padding: 18px 44px 18px 62px; }
  .faq-list .a { padding: 0 20px 20px 62px; }
  .faq-list summary::before, .faq-list .a::before { left: 14px; }
  .tel-box .num { font-size: 26px; }
  .form-card { padding: 28px 20px; }
  .case--row { grid-template-columns: 110px 1fr; }
  .case--row .case-body { padding: 16px; }
  .c-hero { padding-top: 20px; }
  .c-hero .sub { font-size: 15px; }
  .c-hero-cta .btn { flex: 1 1 auto; }
  .summary { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .summary > div { padding: 16px; }
  .summary > div:nth-child(n) { border-left: 0; border-top: 0; }
  .summary > div:nth-child(even) { border-left: 1px solid var(--line); }
  .summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .summary > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .summary--4 > div:last-child { grid-column: auto; border-left: 1px solid var(--line); }
  .summary dd { font-size: 17px; }
  .summary dd .num { font-size: 24px; }
  .subnav ul { gap: 20px; }
  .hall-img img { box-shadow: -8px 8px 0 var(--navy); }
  .hall-specs { grid-template-columns: 1fr 1fr; }
  .hall-specs > div:last-child { grid-column: 1 / -1; }
  .room { grid-template-columns: 1fr; padding: 14px 14px 20px; gap: 14px; }
  .room-img--cap { aspect-ratio: auto; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; } /* iPhoneで空白になるため高さを固定値で確保 */
  .room:hover { transform: none; }
  .room-price { justify-content: start; text-align: left; }
  .panel { padding: 28px 20px; }
  .kv--wide dt { width: 7em; }
  .map { aspect-ratio: 4 / 3; }
  .cta-band { padding: 64px 0; }
  .float-cta { display: none; }
  .sp-bar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy); box-shadow: 0 -6px 20px rgba(0,0,0,.2); transition: opacity .3s, transform .3s;
  }
  .sp-bar .btn { height: 52px; padding: 0 12px; font-size: 15px; }
  .sp-bar .btn-outline { border-color: #fff; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
