@charset "UTF-8";
/* =========================================================
   冬期講習2026 LP
   - モバイルファースト（中央カラム最大500px）
   - 1080px以上：左 MV+CTA ／ 中央 500px ／ 右 ナビ
   ========================================================= */

/* ---------- 変数 ---------- */
:root {
  --c-text: #333;
  --c-black: #111;
  --c-red: #ec1c24;
  --c-red-dark: #b8202a;
  --c-pink: #e8406c;
  --c-blue: #2a5caa;
  --c-navy: #1a2a85;
  --c-sky: #5ec6ef;
  --c-sky-light: #7ecbf3;
  --c-course2: #0a8ad6;
  --c-beige: #b09d84;
  --c-beige-dark: #a08a6e;
  --c-pale: #e6f0fc;
  --c-grid: #cfe6f8;
  --c-elem: #2e3192;
  --c-junior: #3cb64a;
  --c-high: #d4004f;
  --c-gold1: #c9a227;
  --c-gold2: #f5e08a;
  --c-yellow: #fff200;

  --main-w: 500px;
  --right-w: clamp(240px, 20vw, 360px);
  --pad: 22px;

  --ff: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ---------- リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--c-text);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; }
sup { font-size: .55em; vertical-align: top; position: relative; top: -.2em; }

/* 方眼紙背景 */
.bg-grid {
  background-color: #fff;
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
}

/* 画像プレースホルダー */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  aspect-ratio: var(--ar, auto);
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 10px, transparent 10px 20px),
    #e3e7ec;
  color: #7a8290;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-file);
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  opacity: .8;
}
/* 切り抜き画像用（背景透過想定） */
.ph--clear {
  background: repeating-linear-gradient(45deg, rgba(30,70,140,.08) 0 10px, rgba(30,70,140,.16) 10px 20px);
  border: 2px dashed rgba(30,70,140,.45);
  color: #2c4f80;
}
.ph--dark { background: #26324a; color: #9fb0cc; }

/* 画像が入ったら仮枠の見た目を消す（js/main.js で .has-img を付与） */
.ph.has-img { background: none; border: 0; }
.ph.has-img::after { display: none; }
.ph.has-img > img { width: 100%; height: 100%; object-fit: cover; }
.ph--clear.has-img > img { object-fit: contain; object-position: center bottom; }

/* テキスト装飾 */
.txt-red { color: var(--c-red); }
.txt-pink { color: var(--c-pink); font-weight: 700; }
.txt-blue { color: var(--c-blue); font-weight: 700; }
.note-s { margin-top: 8px; font-size: 9.5px; text-align: center; color: #555; letter-spacing: 0; }
.note-s--left { text-align: left; }
.period-note { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 700; color: #333; }
.period-note + .note-s { margin-top: 6px; }
.note-m { margin-top: 10px; font-size: 12px; text-align: center; line-height: 1.6; }

/* =========================================================
   ボタン
   ========================================================= */
.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 464px;
  min-height: 82px;
  margin: 0 auto;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--c-red);
  box-shadow: 4px 5px 0 var(--c-red-dark);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 60% { background-position: 150% 0; }
  100% { background-position: -100% 0; }
}
.btn-cta:hover { transform: translate(2px, 3px); box-shadow: 2px 2px 0 var(--c-red-dark); filter: brightness(1.05); }
.btn-cta--sm { min-height: 56px; font-size: 20px; max-width: 420px; }

.cta-area { padding: 28px var(--pad) 0; text-align: center; }
.cta-area__note { margin-top: 20px; color: var(--c-red-dark); font-size: 16px; font-weight: 500; letter-spacing: .08em; }
.cta-area--pad { padding: 40px var(--pad) 60px; }
.cta-area--overlap { position: relative; z-index: 3; margin-top: -40px; padding-bottom: 60px; }

/* =========================================================
   共通見出し
   ========================================================= */
.ttl-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-black);
  white-space: nowrap;
}
.ttl-line::before, .ttl-line::after { content: ""; flex: 1; height: 2px; background: currentColor; }

.label {
  margin: 28px var(--pad) 0;
  padding: 8px;
  border-radius: 6px;
  background: var(--c-beige);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.3;
}
.label--wide { letter-spacing: 1.2em; text-indent: 1.2em; }

.period {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-size: 58px;
  font-weight: 700;
  color: #3e3a39;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.period__tilde { margin: 0 6px; font-size: 32px; font-weight: 400; }
.day {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border-radius: 50%;
  background: #888;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}
.day--sun { background: var(--c-red); }

.grade {
  margin: 34px 0 10px;
  text-align: center;
  font-size: 50px;
  font-weight: 500;
  color: #3e3a39;
  line-height: 1.2;
}

/* 付箋タグ */
/*
  紙の形はSVGで描画（viewBox 600×150）
  - 上30%（y0〜45）は右端が反り上がる部分のための透明余白
  - 本体は y45〜145。右端は上へ反り、下辺も右端で持ち上がる
  - 持ち上がった下辺の下に、ぼかした影
*/
.tags { display: grid; gap: 0; }
.tags__item {
  position: relative;
  padding: 1.5em 1.6em .7em 1.75em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23efefef'/%3E%3Cstop offset='.55' stop-color='%23f3f3f3'/%3E%3Cstop offset='.85' stop-color='%23f9f9f9'/%3E%3Cstop offset='1' stop-color='%23fff'/%3E%3C/linearGradient%3E%3ClinearGradient id='v' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.6'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-20%25' y='-100%25' width='140%25' height='300%25'%3E%3CfeGaussianBlur stdDeviation='5'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M400 146 C500 150 570 132 600 108 L604 132 C566 154 490 160 400 152 Z' fill='%23000' fill-opacity='.42' filter='url(%23b)'/%3E%3Cpath d='M0 45 L300 45 C430 45 530 32 600 2 L600 106 C560 132 500 145 440 145 L0 145 Z' fill='url(%23g)'/%3E%3Cpath d='M0 45 L300 45 C430 45 530 32 600 2 L600 106 C560 132 500 145 440 145 L0 145 Z' fill='url(%23v)'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  color: #c4202a;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transform: rotate(-8deg);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
/* 上の付箋の影が下の付箋の反りにかかるよう、上ほど手前に */
.tags__item:nth-child(1) { z-index: 3; }
.tags__item:nth-child(2) { z-index: 2; }
.tags__item:nth-child(3) { z-index: 1; }
/* 左端の色帯（紙の本体部分に合わせる：SVGの y45〜145 ／ 150 → 上30%〜下3.333%） */
.tags__item::before {
  content: "";
  position: absolute;
  left: 0; top: 30%; bottom: 3.333%;
  width: 1.2em;
  background: var(--tag-c);
}
.tags__item--green { --tag-c: #86c46d; }
.tags__item--blue { --tag-c: #7ec8cf; }
.tags__item--yellow { --tag-c: #ffe07a; }

/* =========================================================
   MV（SP）
   ========================================================= */
/* 横方向だけ切り取り（付箋の右はみ出しを画面端でカット）、縦方向ははみ出しOK */
.mv { position: relative; overflow-x: clip; overflow-y: visible; }
/* MV画像（背景・タイトル・人物を含む1枚）。画像比率 1001:1207、下端は帯に重なる */
.mv__visual { margin: 0; aspect-ratio: 1001 / 1207; font-size: 14px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mv__bottom {
  position: relative;
  z-index: 1;
  margin-top: -46px; /* 画像下端（机の部分）に帯を重ねる */
  padding: 10px 26px;
  background: var(--c-beige);
}
.mv__start { color: #fff; font-size: 26px; font-weight: 500; letter-spacing: .06em; }
.mv__start span { font-size: .8em; }
.tags--mv {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 14px;
  gap: 0;
}
.tags--mv .tags__item:nth-child(2) { margin-left: 4px; }
.tags--mv .tags__item:nth-child(3) { margin-left: 8px; }
.tags--mv .tags__item { font-size: 13px; }

/* =========================================================
   参加者特典
   ========================================================= */
.perks { padding: 50px 0 0; overflow: hidden; }
.perks__lead {
  margin-top: 40px;
  text-align: center;
  color: var(--c-sky);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
}
.perks__area { margin-top: 18px; text-align: center; font-size: 17px; font-weight: 500; }
.perks__box {
  display: grid;
  gap: 6px;
  margin: 40px 38px 0;
  padding: 6px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbe78d, #d9c27a 30%, #f4ecc8 55%, #e7d48f 80%, #f7efcd);
  position: relative;
  z-index: 1;
}
.perk {
  padding: 22px 12px 26px;
  background: #fff;
  text-align: center;
}
.perk:first-child { border-radius: 18px 18px 0 0; }
.perk:last-child { border-radius: 0 0 18px 18px; }
.perk__badge {
  display: inline-block;
  padding: 2px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c99b16, #f2d55a 45%, #e6c34a 60%, #c99b16);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(120,80,0,.4);
}
.perk__ttl { margin-top: 6px; font-size: 30px; font-weight: 900; color: var(--c-black); line-height: 1.35; }
.perk__sub { margin-top: 8px; font-size: 20px; font-weight: 300; }
.perk__value {
  color: var(--c-red);
  font-size: 110px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.perk__value--price { font-size: 82px; letter-spacing: -.03em; }
.perk__value--price span { font-size: .72em; }
.perk__note { margin-top: 6px; font-size: 8.5px; letter-spacing: -.02em; color: #555; }
/* 講師4名：左右2枚に分割（中央は空けて特典ボックスの下端を見せる） */
.perks__staff {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin: -97px 0 0;
  pointer-events: none;
}
.perks__staff img { width: 46%; height: auto; }

/* =========================================================
   イントロ
   ========================================================= */
.intro {
  padding: 80px 0 60px;
  border-top: 4px solid var(--c-sky);
  text-align: center;
}
.intro__ttl { font-size: 26px; font-weight: 700; letter-spacing: .1em; line-height: 1.9; color: var(--c-black); }
.intro__txt { margin: 30px var(--pad) 0; font-size: 15.5px; letter-spacing: .1em; line-height: 2.1; }
.tags--intro { margin: 40px 50px 40px 40px; gap: 0; }
.tags--intro .tags__item { font-size: 31px; text-align: left; }
.tags--intro .tags__item:nth-child(2) { margin-left: 12px; }
.tags--intro .tags__item:nth-child(3) { margin-left: 26px; }
.hurry {
  margin: 0 var(--pad) 26px;
  color: var(--c-beige);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}
.hurry__s { display: block; margin-bottom: 14px; font-size: 18px; }

/* =========================================================
   選べる2つのコース
   ========================================================= */
.courses { border-top: 4px solid var(--c-sky); }
.courses__head { padding: 50px 0 60px; text-align: center; }
.courses__ttl { color: var(--c-sky); font-size: 50px; font-weight: 900; line-height: 1.3; }
.courses__ttl span { font-size: 1.3em; }

.course { padding: 0 var(--pad); }
.course--1 { background: var(--c-sky-light); }
.course--2 { background: var(--c-course2); border-top: 4px solid #fff; }

.course__head { position: relative; min-height: 270px; padding-top: 44px; }
.course__num {
  position: absolute;
  left: -4px;
  top: 30px;
  font-size: 200px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255,255,255,.75);
  font-family: Arial, Helvetica, sans-serif;
}
.course__ttl {
  position: relative;
  padding-left: 88px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
}
.course__img { position: absolute; right: 0; bottom: 0; width: 55%; height: 130px; }

.course__card {
  position: relative;
  padding: 50px 22px 0;
  border-radius: 24px 24px 18px 18px;
  background: #fff;
  overflow: hidden;
}
.course__period { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.course__price {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--c-beige);
  color: var(--c-pink);
  font-size: 98px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.course__price--free { padding: 0 0 18px; font-size: 128px; font-weight: 900; }
.course__yen { display: flex; flex-direction: column; align-items: center; margin-left: 6px; margin-bottom: 14px; font-size: 44px; line-height: 1; }
.course__yen small { font-size: 16px; margin-bottom: 4px; }
.course__note { margin-top: 10px; text-align: center; font-size: 11px; color: #555; }

.num-list { counter-reset: num; display: grid; gap: 14px; margin: 34px 0 40px; }
.num-list li {
  position: relative;
  counter-increment: num;
  padding-left: 38px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  color: #3e3a39;
}
.num-list li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
}

.best {
  position: relative;
  margin: 0 -22px 34px;
  padding: 10px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .08em;
}
.best::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top: 16px solid #000;
  border-bottom: 0;
}
.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 38px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #3e3a39;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='5' width='18' height='18' fill='%23fff' stroke='%23888' stroke-width='1'/%3E%3Cpath d='M4 13l5 6L22 2' fill='none' stroke='%23e60012' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.course__card .note-s { margin-top: 26px; font-size: 10.5px; }
.course__photo { margin: 18px -22px 0; }
/* コース1の授業風景：写真の左端（幅の約10%）が白い余白なので、右下基準で拡大して隠す */
.course--1 .course__photo > img { transform: scale(1.14); transform-origin: right center; }

/* 吹き出し見出し */
.bubble { position: relative; margin: 76px 0 18px; padding: 18px 0 30px; text-align: center; }
.bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bubble h3 { position: relative; font-size: 38px; font-weight: 900; color: var(--c-black); letter-spacing: .05em; }

/* 指導内容・教科例：学年タブ（タブ切替＋左右スワイプ） */
.acc--elem, .gtabs__tab--elem { --acc-c: var(--c-elem); }
.acc--junior, .gtabs__tab--junior { --acc-c: var(--c-junior); }
.acc--high, .gtabs__tab--high { --acc-c: var(--c-high); }

.gtabs { position: relative; }
.gtabs__nav {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gtabs__nav::-webkit-scrollbar { display: none; }
.gtabs__tab {
  flex: 1 0 auto;
  min-width: 118px;
  padding: 10px 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--acc-c);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.3;
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.gtabs__tab.is-active {
  background: var(--acc-c);
  color: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
}

/* スワイプできることを示す手のアイコン（最初の操作で消える） */
.gtabs__hint {
  position: absolute;
  z-index: 2;
  right: -8px;
  top: -10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(60,60,60,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h7M5 7l2.5-2.5M5 7l2.5 2.5M27 7h-7M27 7l-2.5-2.5M27 7l-2.5 2.5'/%3E%3Cpath d='M14 27v-11a2 2 0 0 1 4 0v5l5.2 1.1a2.2 2.2 0 0 1 1.7 2.5L24.3 29'/%3E%3Cpath d='M14 20.5l-1.8-1.4a2 2 0 0 0-2.7 2.9L13 26'/%3E%3C/svg%3E") no-repeat center / 32px;
  pointer-events: none;
  animation: hint-swipe 1.8s ease-in-out infinite;
  transition: opacity .4s;
}
.gtabs.is-used .gtabs__hint { opacity: 0; animation: none; }
@keyframes hint-swipe {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

.gtabs__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  transition: height .3s;
}
.gtabs__viewport::-webkit-scrollbar { display: none; }
.gtabs__track { display: flex; gap: 16px; align-items: flex-start; }
.gtabs__panel {
  flex: 0 0 100%;
  padding: 22px 0 4px;
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
}
.gtabs__ttl {
  margin: 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd;
  color: var(--acc-c);
  font-size: 22px;
  font-weight: 700;
}
.acc__body { padding: 0 22px; }
.acc__item { padding: 28px 0 24px; font-size: 16px; font-weight: 500; line-height: 1.6; color: #3e3a39; }
.acc__item + .acc__item { border-top: 1px solid #bbb; }
.acc__ttl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--acc-c);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
}
.acc__ttl::before {
  content: "";
  flex: 0 0 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23666' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 3l7 7L11 28H4v-7z'/%3E%3Cpath d='M18 7l7 7'/%3E%3C/svg%3E") no-repeat center / contain;
}
.circles { display: flex; justify-content: center; margin: 18px 0 20px; }
.circles__item {
  display: grid;
  place-items: center;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.circles__item + .circles__item { margin-left: -12px; }
.circles__item--yellow { background: conic-gradient(from 30deg, #f6c518, #e8b81a, #f3d34a, #f0b51a, #f6c518); }
.circles__item--teal { background: conic-gradient(from 30deg, #20c5b8, #2fb8d0, #34d0c0, #22b3c8, #20c5b8); }

/* =========================================================
   合格実績
   ========================================================= */
.results { padding-bottom: 60px; border-top: 4px solid #3a6b9e; position: relative; }
.results::before, .results::after {
  /* 桜の花びら（装飾）：上のセクションとの境目に少しかかるよう配置 */
  content: "";
  position: absolute;
  z-index: 1;
  width: 120px;
  aspect-ratio: 120 / 280; /* 画像の実寸比に合わせる（ずれると縮小されて端にスキマが出る） */
  background: no-repeat center / contain;
  pointer-events: none;
}
.results::before { left: 0; top: -92px; background-image: url("../img/second-bg-sakura-left-sp.webp"); background-position: left center; }
.results::after { right: 0; top: -17px; background-image: url("../img/second-bg-sakura-right-sp.webp"); background-position: right center; }
.results__intro { padding: 100px var(--pad) 40px; text-align: center; }
.results__catch { font-family: var(--ff-serif); font-size: 52px; font-weight: 700; line-height: 1.3; color: #231815; }
/* 行末の「、」「。」は文字の右半分が空白なので、半角分詰めて見た目の中央を揃える */
.punct-end { margin-right: -.5em; }
.results__txt { margin-top: 30px; font-size: 13px; font-weight: 500; line-height: 2; }

.marquee { display: grid; gap: 16px; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track--reverse { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { position: relative; margin-right: 8px; width: 236px; aspect-ratio: 472 / 370; flex: none; } /* 背景部分 472×370 素材の半分サイズ */
.marquee__item .ph { width: 100%; height: 100%; }
.marquee__item .ph::after { display: none; }
.marquee__school {
  position: absolute;
  left: 10px;
  bottom: 26px;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 6px rgba(0,0,0,.5), 2px 2px 0 rgba(0,0,0,.35);
}
.marquee__tag {
  position: absolute;
  right: 0;
  bottom: 8px;
  padding: 0 18px;
  background: rgba(255,255,255,.92);
  font-size: 13px;
  letter-spacing: .3em;
}

/* 新デザイン版：背景色入り写真を下端に合わせて置き、上の透明部分に描かれた頭は枠の上へはみ出させる */
.marquee { overflow-x: clip; overflow-y: visible; padding-top: 14px; } /* 1段目の頭が切れないよう上に余白 */
.marquee__item--cut .ph { position: absolute; inset: 0; overflow: visible; background: none; border: 0; }
.marquee__item--cut .ph.has-img > img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; object-fit: initial; }
.marquee__item--cut .marquee__school, .marquee__item--cut .marquee__tag { z-index: 1; }
.marquee__school--s { font-size: 33px !important; letter-spacing: -.03em; }   /* 5文字の学校名 */
.marquee__school--v { bottom: auto; writing-mode: vertical-rl; letter-spacing: -.04em; } /* 縦書き */
.marquee__sub {
  position: absolute;
  z-index: 1;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(0,0,0,.7);
}
.marquee__item--cut .marquee__school { font-size: 38px; text-shadow: 0 0 8px rgba(0,0,0,.45), 2px 2px 0 rgba(0,0,0,.3); }

.record { padding: 80px var(--pad) 0; }
.record__ttl {
  padding-bottom: 6px;
  border-bottom: 1px solid #222;
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  color: #222;
}
.record__ttl span { display: block; font-size: 15px; letter-spacing: .15em; color: #444; }
.record__cat {
  margin-top: 40px;
  padding: 6px;
  color: #fff;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: .08em;
}
.record__cat--junior { background: #4a7fb5; }
.record__cat--high { background: #8cc63f; }
.record__cat--univ { background: #d4145a; }
.record__main {
  margin-top: 28px;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.4;
  color: #231815;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.record__main b { margin: 0 4px; color: var(--c-red); font-size: 1.2em; font-family: Arial, Helvetica, sans-serif; }
.record__sub { margin-top: 8px; font-size: 16px; line-height: 1.6; color: #333; white-space: nowrap; }
/* 1行ずつ横幅いっぱいに：文字サイズは js/main.js（.js-fit）で最長行が幅ぴったりになるよう自動調整し、
   短い行は学校名の間隔を広げて両端を揃える */
.record .rl { display: block; text-align: justify; text-align-last: justify; }
.record .rl--natural { text-align: left; text-align-last: auto; } /* 短い行は均等割付せず自然な文字間で */
.js-fit.is-measure .rl { width: max-content; }
.record__foot { margin-top: 30px; font-size: 9px; line-height: 1.6; color: #444; }

/* =========================================================
   合格体験記
   ========================================================= */
.voice { padding: 0 0 0; overflow: hidden; }
.voice__ttl {
  padding: 50px var(--pad);
  background: linear-gradient(90deg, #1f3a99, #003d73 50%, #090f60);
  color: #fff;
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.5;
}

.slider { position: relative; margin-top: 64px; }
.slider__viewport {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__list { display: flex; gap: 20px; padding: 0 28px; width: max-content; }
.slider__slide { display: grid; gap: 28px; width: 390px; scroll-snap-align: center; }
.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  cursor: pointer;
  transform: translateY(-50%);
}
.slider__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}
.slider__arrow--prev { left: 6px; }
.slider__arrow--prev::before { transform: translateX(2px) rotate(-45deg); }
.slider__arrow--next { right: 6px; }
.slider__arrow--next::before { transform: translateX(-2px) rotate(135deg); }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5d3e0;
  cursor: pointer;
}
.slider__dots button[aria-selected="true"] { background: var(--c-navy); }

.vcard {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  height: 190px; /* 全カードの高さを統一 */
  border-left: 12px solid var(--vc);
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.vcard--junior { --vc: #1f63b0; }
.vcard--high { --vc: #4d8f3a; }
.vcard--univ { --vc: #a8002f; }
.vcard__img { height: 100%; }
.vcard__img::after { display: none; }
.vcard__body { position: relative; padding: 12px 14px 12px 24px; }
.vcard__body::before {
  /* 桜の「合格」スタンプ */
  content: "合格";
  position: absolute;
  right: 6px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 46% 54% 50% 50% / 50% 46% 54% 50%;
  background: radial-gradient(circle, #fde3ea 55%, #f9d0db 100%);
  color: #f2a7ba;
  font-size: 18px;
}
.vcard__school { position: relative; font-size: 26px; font-weight: 900; color: #3e3a39; line-height: 1.3; }
.vcard__also { position: relative; font-size: 16px; color: #666; font-weight: 300; }
.vcard__name { margin-top: 6px; font-size: 18px; color: #777; font-weight: 300; white-space: nowrap; }
.vcard__name--long { font-size: 14px; letter-spacing: -.02em; }
.vcard__msg { margin-top: 2px; font-size: 17px; line-height: 1.4; color: #3e3a39; }

.voice__banner {
  display: block;
  margin: 50px 34px 0;
  padding: 10px;
  border: 3px solid #1f6fb5;
  background: linear-gradient(90deg, #fbe7ef, #fff 40%, #fff 60%, #fbe2ec);
  text-align: center;
  transition: opacity .2s;
}
.voice__banner:hover { opacity: .85; }
.voice__banner-sub { display: block; font-size: 14px; font-style: italic; color: #333; }
.voice__banner-main { display: block; color: #e0539a; font-size: 46px; font-weight: 900; letter-spacing: .15em; line-height: 1.2; }
.voice__banner-year { display: block; color: #1f80d0; font-size: 22px; font-weight: 900; letter-spacing: .15em; line-height: 1.2; }
.voice .cta-area--pad { padding-bottom: 50px; }

/* =========================================================
   3つの理由
   ========================================================= */
.reasons { border-top: 4px solid #3a6b9e; }
.reasons__head {
  position: relative;
  padding: 50px 0 40px;
  min-height: 530px;
  background: #5ec6ef;
  border-bottom: 4px solid var(--c-beige);
  overflow: hidden;
}
.reasons__ttl1 {
  padding: 0 0 6px 50px;
  border-bottom: 3px solid #fff;
  margin-right: 34px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.reasons__ttl1 span { font-size: 52px; font-weight: 900; letter-spacing: -.02em; }
.reasons__ttl2 { padding-left: 58px; color: #fff; font-size: 56px; font-weight: 900; line-height: 1.1; }
.reasons__ttl2 span { color: var(--c-yellow); font-size: 96px; vertical-align: -6px; margin-right: 4px; }
.reasons__txt {
  position: relative;
  z-index: 1;
  margin: 30px 0 0 56px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}
.reasons__teacher { position: absolute; right: 40px; bottom: 0; width: 46%; height: 280px; }
.reasons__caption { position: absolute; right: 12px; top: 312px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }

.reasons__body { padding-top: 50px; }
.reason { padding: 0 var(--pad) 60px; }
.reason + .reason { padding-top: 60px; border-top: 4px solid var(--c-sky-light); }
.reason__no { padding-left: 6px; font-size: 19px; letter-spacing: .1em; color: #222; }
.reason__label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 36px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
}
.reason__label--2line { font-size: 30px; }
.reason__label-no { font-size: 38px; }
.reason__label--2line small { display: block; font-size: 19px; }
.reason__ttl { margin: 46px 18px 0; font-size: 30px; font-weight: 900; color: #111; line-height: 1.45; }
.reason__txt { margin: 12px 18px 0; font-size: 18.5px; font-weight: 400; line-height: 1.95; letter-spacing: .02em; }
.reason__img { margin: 20px 18px 0; }
.reason__img--sheet { background-color: #cfd6de; border-color: #9aa5b3; color: #555; }
/* チェック表：3枚を少しずつ回転させて重ねる（奥→手前の順に記述） */
.sheets { position: relative; height: 340px; margin: 24px 18px 0; }
.sheets img {
  position: absolute;
  top: 24px;
  width: 52%;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.sheets img:nth-child(1) { left: 40%; transform: rotate(8deg); }
.sheets img:nth-child(2) { left: 26%; transform: rotate(4deg); }
.sheets img:nth-child(3) { left: 8%;  transform: rotate(-4deg); }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 22px 0;
  padding: 18px 16px 14px;
  border: 1px solid #ddd;
  background: #fff;
}
.compare__head {
  padding: 2px;
  border: 1px solid var(--c-blue);
  color: var(--c-blue);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.pie {
  position: relative;
  margin: 8px auto 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.pie--gray { background: conic-gradient(#6dbfcc 0 20%, #fff 20% 20.6%, #dcdcdc 20.6% 100%); color: #333; }
.pie--navy { background: conic-gradient(#6dbfcc 0 20%, #fff 20% 20.6%, #1b4a91 20.6% 100%); color: #fff; }
.pie__slice { position: absolute; left: 55%; top: 22%; color: #222; }
.pie__main { position: absolute; left: 18%; top: 54%; }
.compare__foot { margin-top: 6px; text-align: center; font-size: 12px; color: #666; white-space: nowrap; }
.compare__foot--pink { color: var(--c-pink); }

.staff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 30px 0 0 18px; }
.staff__item { background: #fff; box-shadow: 2px 3px 5px rgba(0,0,0,.2); }
.staff__item .ph::after { display: none; }
.staff__item p { padding: 6px 8px; font-size: 12px; line-height: 1.5; }

.report { display: grid; grid-template-columns: 1fr 1.05fr; gap: 16px; align-items: start; margin-right: 0; }
.report .reason__txt { margin-right: 0; letter-spacing: .15em; }
.report__img { margin-top: 12px; border: 18px solid #e5e5e5; }
/* 画像が入っても灰色の額縁を残す（.ph.has-img の border:0 を上書き） */
.report__img.has-img { border: 14px solid #e5e5e5; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }

.promise { position: relative; min-height: 595px; margin: 60px 0 0; padding: 70px 0 0 40px; border-top: 4px solid var(--c-sky-light); overflow-x: clip; /* 右へはみ出した画像を切る */ }
.promise__txt { position: relative; z-index: 1; font-size: 25px; font-weight: 900; line-height: 1.5; color: #231815; }
.promise__txt mark { background: linear-gradient(transparent 62%, var(--c-yellow) 62%); color: inherit; }
.promise__img {
  position: absolute;
  right: -60px;   /* 右へ寄せる（はみ出しは .promise で切る） */
  bottom: 30px;
  width: 101%;    /* 元の70% × 1.2 × 1.2 */
  height: 605px;  /* 元の420px × 1.2 × 1.2 */
  background-color: #d9e2ea;
  border-color: #a9b6c3;
  color: #6c7a89;
}
.promise__caption { position: absolute; right: 12px; top: 241px; font-size: 16px; font-weight: 700; line-height: 1.35; color: #231815; }
.promise__caption b { display: block; font-size: 21px; }
.promise__caption b small { font-size: .7em; }

/* =========================================================
   日程・詳細
   ========================================================= */
.detail { padding: 100px 0 0; background: var(--c-pale); border-top: 6px solid var(--c-sky); }
.detail__card {
  margin: 56px 36px 0;
  padding: 20px 0 70px;
  border-radius: 30px;
  background: #fff;
}
.detail__card .label { margin: 28px 17px 0; }
.detail__card .label:first-child { margin-top: 28px; }
.detail__card .period { font-size: 50px; }
.detail__card .note-s { font-size: 8px; }
.timetable {
  width: fit-content;
  margin: 26px auto 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.55;
  color: #3e3a39;
}
.timetable li { display: grid; grid-template-columns: 1.2em 1fr; gap: 8px; font-variant-numeric: tabular-nums; }
.timetable li span { font-weight: 400; }
.fee__unit { margin-top: 10px; text-align: center; font-size: 30px; font-weight: 700; color: #3e3a39; }
.fee {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: #3e3a39;
  letter-spacing: -.02em;
}
.fee__yen { display: flex; flex-direction: column; align-items: center; margin-left: 4px; font-size: 44px; }
.fee__yen small { font-size: 12px; }
.venue { margin-top: 36px; text-align: center; font-size: 30px; font-weight: 700; line-height: 1.4; color: #3e3a39; }
.venue span { display: block; font-size: 20px; }
.btn-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  margin: 14px 20px 0;
  border-radius: 8px;
  background: var(--c-sky);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: filter .2s;
}
.btn-sub:hover { filter: brightness(1.08); }

/* 教室一覧（開閉） */
.schools { margin: 50px 20px 0; }
.schools > summary.btn-sub { position: relative; margin: 0; cursor: pointer; list-style: none; }
.schools > summary::-webkit-details-marker { display: none; }
.schools > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  transition: transform .3s, margin .3s;
}
.schools[open] > summary { border-radius: 8px 8px 0 0; }
.schools[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.schools__body { padding: 16px 14px 18px; border: 3px solid var(--c-sky); border-top: 0; border-radius: 0 0 8px 8px; background: #f4fbfe; }
.schools__lead { text-align: center; font-size: 18px; font-weight: 700; color: #3e3a39; line-height: 1.5; }
.schools__lead span { display: block; font-size: 13px; font-weight: 500; color: #666; }
.schools__list { display: grid; gap: 12px; margin-top: 14px; }
.school { padding: 14px 14px 12px; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.school__name { padding-left: 10px; border-left: 5px solid var(--c-sky); color: var(--c-navy); font-size: 20px; font-weight: 700; line-height: 1.3; }
.school__access { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.6; color: #3e3a39; }
.school__addr { margin-top: 4px; font-size: 13px; line-height: 1.5; color: #666; }
.school__btns { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 6px; margin-top: 10px; }
.school__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 4px;
  border: 2px solid var(--c-sky);
  border-radius: 6px;
  color: #1f86b8;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.school__btn:hover { background: var(--c-sky); color: #fff; }
.school__btn--tel { background: var(--c-sky); color: #fff; }
.school__btn--tel::before { content: "☎"; margin-right: 4px; }
.btn-sub::before { content: ""; width: 28px; height: 30px; background: no-repeat center / contain; }
.btn-sub--pin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 8 12 20 12 20s12-12 12-20C24 5.4 18.6 0 12 0zm0 17a5 5 0 110-10 5 5 0 010 10z' fill='%23fff'/%3E%3C/svg%3E"); }
.btn-sub--faq::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='2.4'%3E%3Cpath d='M16 3a13 13 0 1 0 7 24l5 2-1.5-5A13 13 0 0 0 16 3z'/%3E%3Cpath d='M12.5 12.5a3.5 3.5 0 1 1 5 3.2c-1 .5-1.5 1.3-1.5 2.3v1' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='23' r='.8' fill='%23fff'/%3E%3C/svg%3E"); }

/* =========================================================
   よくある質問
   ========================================================= */
.faq { padding: 30px 28px 60px; background: var(--c-beige); }
.faq__ttl { text-align: center; color: #fff; font-size: 44px; font-weight: 900; line-height: 1.25; }
.faq__ttl::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M16 3a13 13 0 1 0 7 24l5 2-1.5-5A13 13 0 0 0 16 3z'/%3E%3Cpath d='M12.5 12.5a3.5 3.5 0 1 1 5 3.2c-1 .5-1.5 1.3-1.5 2.3v1' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='23' r='.8' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.faq__item { margin-top: 30px; }
.faq__item summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  border: 3px solid #7fcdf1;
  border-radius: 18px;
  background: #fff;
  color: #222;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  height: 3px;
  margin-top: -1.5px;
  background: #7fcdf1;
  transition: transform .3s;
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__a { padding: 18px 18px 0; color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.8; letter-spacing: .05em; }
.faq__link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 300; text-decoration: underline; text-underline-offset: 3px; }
.faq__note { margin-top: 16px; font-size: 11px; font-weight: 300; opacity: .9; }

/* =========================================================
   電話
   ========================================================= */
.tel { padding: 70px var(--pad) 70px; text-align: center; border-top: 6px solid var(--c-sky); }
.tel__lead { font-size: 23px; font-weight: 700; color: #231815; letter-spacing: .05em; }
.tel__num {
  display: block;
  margin-top: 6px;
  color: var(--c-red);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}
.tel__time { margin-bottom: 30px; font-size: 17px; letter-spacing: .05em; }

/* =========================================================
   申込後の流れ
   ========================================================= */
.flow { background: var(--c-sky); padding-bottom: 60px; }
.flow__head {
  position: relative;
  padding: 120px var(--pad) 50px;
  background: #fff;
  border-top: 6px solid var(--c-sky);
  text-align: center;
  /* 全身写真のトリミング：左右は画面端・下はこの白いエリアの下端で切る（上だけ120pxまで線の上へはみ出し可） */
  clip-path: inset(-120px 0 0 0);
  overflow-x: clip; /* clip-path は見た目だけなので、横幅の計算からもはみ出しを除外 */
}
.flow__person { position: absolute; z-index: 1; background-color: #d6e8f5; color: #6d8aa5; border-color: #9cbad3; }
/* 2人とも中央へ向かって斜めに傾ける（回転の軸は腰のあたり） */
.flow__person--l { left: -60px; top: -40px; width: 200px; aspect-ratio: 520 / 1052; transform: rotate(24deg); transform-origin: center 55%; }    /* 生徒（メガホン・全身） */
.flow__person--r { right: -68px; top: -40px; width: 170px; aspect-ratio: 2680 / 5600; transform: rotate(-24deg); transform-origin: center 52%; } /* 講師（全身・左右反転済み） */
.flow__person.has-img > img { object-position: center top; }
.flow__ttl { z-index: 2; } /* 見出しの文字は人物より手前に */
.flow__ttl {
  position: relative;
  padding-bottom: 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.95;
  letter-spacing: .08em;
  color: #111;
}
.flow__ttl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 3px dotted var(--c-sky);
}
.flow__ttl em { font-style: normal; color: #1d4f9c; }

.steps { display: grid; gap: 58px; padding: 50px 28px 0; }
.step {
  position: relative;
  padding: 36px 18px 30px;
  border: 2px solid var(--c-beige);
  border-radius: 24px;
  background: #fff;
  text-align: center;
}
.step + .step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -46px;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top: 22px solid #fff;
  border-bottom: 0;
}
.step__no { color: var(--c-beige); font-size: 26px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.step__ttl { margin-bottom: 20px; font-size: 32px; font-weight: 700; color: #111; letter-spacing: .08em; }
.step__img { position: relative; border-radius: 10px; overflow: hidden; }
.step__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.step__badge {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 6px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}
.step__badge em { margin: 0 4px; padding: 0 6px; font-style: normal; background: var(--c-red); color: #fff; }
.step__txt { margin-top: 18px; text-align: left; font-size: 16px; font-weight: 400; line-height: 1.85; letter-spacing: .08em; }

.flow__last { position: relative; min-height: 230px; margin-top: 40px; padding: 50px 0 0 40px; }
.flow__hurry { position: relative; z-index: 1; color: #fff; font-size: 23px; font-weight: 700; line-height: 1.4; }
.flow__hurry span { display: block; margin-bottom: 10px; font-size: 18px; }
/* 生徒：頭〜スカート上部で切り抜き。ブレザーの裾から下は下のCTAボタンの後ろに隠す */
.flow__girl { position: absolute; right: 24px; bottom: -62px; width: 175px; aspect-ratio: 2260 / 3590; }
.flow__girl.has-img > img { object-position: center top; }
.cta-area--flow { position: relative; z-index: 2; padding-top: 0; }

/* =========================================================
   フッター
   ========================================================= */
.footer { padding: 46px 26px 40px; background: #1a2a85; color: #fff; }
.footer__contact {
  padding: 40px 16px 34px;
  background: linear-gradient(170deg, #fff 60%, #fbf7e6 75%, #fff 90%);
  color: var(--c-navy);
  text-align: center;
}
.footer__contact-lead { font-size: 15px; font-weight: 700; line-height: 1.5; }
.footer__contact-label { margin-top: 20px; font-size: 13px; font-weight: 700; }
.footer__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 32px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.footer__fd { display: block; width: 46px; height: auto; flex: none; } /* フリーダイヤルマーク（common_tel_icon.svg） */
.footer__contact-time { font-size: 12px; font-weight: 700; }

.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 36px; font-size: 13px; font-weight: 700; }
.footer__list li { border-bottom: 1px solid rgba(255,255,255,.2); }
.footer__list a { display: block; padding: 10px 12px; transition: background .2s; }
.footer__list a:hover { background: rgba(255,255,255,.08); }
.footer__list--box { background: #142070; }
.footer__list--box li:last-child { border-bottom: 0; }
.footer__cat { margin: 0 0 6px; padding: 2px; border: 1px solid #fff; text-align: center; }
.footer__nav > div:nth-of-type(2), .footer__nav > div:nth-of-type(3) { margin-top: 24px; }
.footer__nav > div:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.footer__nav > .footer__list { grid-column: 1; grid-row: 1; }
/* 外部リンクアイコン（四角＋右上への矢印） */
.ext {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.3'%3E%3Cpath d='M7 2.5H2.5v11h11V9'/%3E%3Cpath d='M9.5 1.5h5v5'/%3E%3Cpath d='M14.5 1.5L7.5 8.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.footer__logo { margin-top: 40px; text-align: center; line-height: 0; }
.footer__logo img { display: inline-block; width: 220px; height: auto; }
.footer__sns { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; font-size: 14px; font-weight: 700; }
.footer__sns ul { display: flex; align-items: center; gap: 14px; }
.sns { display: block; transition: opacity .2s; }
.sns:hover { opacity: .8; }
.sns img { height: 40px; width: auto; }
.footer__copy { margin-top: 26px; text-align: center; font-size: 12px; letter-spacing: .03em; }

/* =========================================================
   SP追従CTA
   ========================================================= */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  transform: translateY(110%);
  transition: transform .35s;
}
.fixed-cta.is-show { transform: none; }

/* =========================================================
   SP：ハンバーガーメニュー（右上固定。中央カラムの右上に合わせる）
   ========================================================= */
.sp-menu-btn {
  position: fixed;
  top: 2px;
  right: max(2px, calc(50% - var(--main-w) / 2 + 2px));
  z-index: 110;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-navy);
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  cursor: pointer;
}
.sp-menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.sp-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sp-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-menu { position: fixed; inset: 0; z-index: 100; overflow: hidden; visibility: hidden; transition: visibility 0s .35s; }
/* スマホ〜タブレット：万一はみ出す要素があっても横スクロールさせない保険（PCは sticky を使うため対象外） */
@media (max-width: 1079px) {
  body { overflow-x: hidden; }
}
.sp-menu.is-open { visibility: visible; transition: none; }
.sp-menu__overlay { position: absolute; inset: 0; background: rgba(10,20,60,.45); opacity: 0; transition: opacity .35s; }
.sp-menu.is-open .sp-menu__overlay { opacity: 1; }
.sp-menu__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc(50% - var(--main-w) / 2));
  width: min(82vw, 340px);
  padding: 80px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #fff;
  transform: translateX(105%);
  transition: transform .35s;
}
.sp-menu.is-open .sp-menu__panel { transform: none; }
.sp-menu__list { border-top: 1px solid #e3e8f0; }
.sp-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid #e3e8f0;
  color: var(--c-navy);
  font-size: 16px;
  font-weight: 700;
}
.sp-menu__list a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.sp-menu__cta { margin-top: 24px; }
.sp-menu__tel { margin-top: 20px; text-align: center; color: var(--c-navy); }
.sp-menu__tel span { display: block; font-size: 13px; font-weight: 700; }
.sp-menu__tel a { display: block; color: var(--c-red); font-size: 26px; font-weight: 700; line-height: 1.3; }
.sp-menu__tel small { font-size: 12px; }
@media (min-width: 1080px) {
  .sp-menu-btn, .sp-menu { display: none; } /* PCは右カラムのナビを使用 */
}

/* =========================================================
   スクロールフェード
   ========================================================= */
.js-fade { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.js-fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-fade { opacity: 1; transform: none; transition: none; }
  .btn-cta::after { animation: none; }
  /* 合格者写真の帯はゆっくりした動きなので、この設定でも動かす */
  html { scroll-behavior: auto; }
}

/* PC専用要素はSPで非表示 */
.pc-left, .pc-right { display: none; }

/* =========================================================
   SP 小さい端末（〜499px）：500px基準のサイズを画面幅に合わせて縮小
   ========================================================= */
/* --sp-zoom は js/main.js で「画面幅 ÷ 500」を設定 */
@media (max-width: 499px) {
  .main { width: 500px; zoom: var(--sp-zoom, 1); }
}

/* =========================================================
   タブレット（500px〜1079px）：中央に500pxで表示
   ========================================================= */
@media (min-width: 500px) {
  body { background: #eef4fa; }
  /* 中央カラムの外に余白がある幅では、MVの付箋の右はみ出しを隠さず表示 */
  .mv { overflow-x: visible; }
  .main { max-width: var(--main-w); margin: 0 auto; background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.08); }
  .fixed-cta { left: 50%; right: auto; width: var(--main-w); margin-left: calc(var(--main-w) / -2); }
}

/* =========================================================
   PC（1080px〜）：左 MV+CTA ／ 中央 500px ／ 右 ナビ
   ========================================================= */
@media (min-width: 1080px) {
  body {
    background-color: #eef4fa;
    background-image:
      linear-gradient(#dde9f5 1px, transparent 1px),
      linear-gradient(90deg, #dde9f5 1px, transparent 1px);
    background-size: 36px 36px;
  }
  .layout {
    display: grid;
    grid-template-columns: 1fr var(--main-w) var(--right-w);
    align-items: start;
  }
  .main { margin: 0; }
  .fixed-cta { display: none; }

  .pc-left, .pc-right {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  /* 左：MV */
  .pc-left { overflow: hidden; }
  .pc-logo { position: absolute; top: 28px; left: 32px; z-index: 2; display: block; width: clamp(160px, 13vw, 220px); line-height: 0; transition: opacity .2s; }
  .pc-logo:hover { opacity: .8; }
  .pc-logo img { width: 100%; height: auto; }
  .pc-mv { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
  .pc-mv__visual { position: absolute; inset: 0; aspect-ratio: auto; background: linear-gradient(160deg, #2f7fe0, #43c3f0 70%, #bfe9fb); color: rgba(255,255,255,.5); justify-content: flex-start; padding-top: 24px; }
  .pc-mv__visual.has-img > img { width: 100%; height: 100%; object-fit: cover; }

  /* ---- アニメーション背景 ---- */
  .pc-mv__anim { overflow: hidden; background: linear-gradient(155deg, #1546b8 0%, #1f6fe0 40%, #2fa6ee 75%, #5fd3f7 100%); }
  /* ゆっくり漂う光のかたまり */
  .pc-mv__anim::before, .pc-mv__anim::after {
    content: "";
    position: absolute;
    width: 80vmax;
    height: 80vmax;
    border-radius: 50%;
    filter: blur(20px);
  }
  .pc-mv__anim::before { left: -35vmax; top: -40vmax; background: radial-gradient(circle, rgba(130,225,255,.55), transparent 62%); animation: mvBlobA 16s ease-in-out infinite alternate; }
  .pc-mv__anim::after  { right: -40vmax; bottom: -45vmax; background: radial-gradient(circle, rgba(20,40,170,.65), transparent 62%); animation: mvBlobB 20s ease-in-out infinite alternate; }
  @keyframes mvBlobA { to { transform: translate(14vmax, 18vmax) scale(1.15); } }
  @keyframes mvBlobB { to { transform: translate(-16vmax, -12vmax) scale(1.2); } }
  /* 方眼（ノートのマス目）が斜めに流れる */
  .pc-mv__grid {
    position: absolute;
    inset: -50%;
    background-image:
      linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 44px 44px;
    transform: rotate(-12deg);
    animation: mvGrid 18s linear infinite;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
  }
  @keyframes mvGrid { to { background-position: 44px 44px; } }
  /* ゆっくり回る光の輪 */
  .pc-mv__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vmin;
    height: 120vmin;
    margin: -60vmin 0 0 -60vmin;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.55);
    animation: mvSpin 24s linear infinite;
  }
  .pc-mv__ring--2 { width: 86vmin; height: 86vmin; margin: -43vmin 0 0 -43vmin; border-top-color: rgba(255,255,255,.12); border-left-color: rgba(255,255,255,.5); animation-duration: 16s; animation-direction: reverse; }
  @keyframes mvSpin { to { transform: rotate(360deg); } }
  /* 舞い落ちる雪 */
  .pc-mv__snow {
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(2.5px 2.5px at 30px 40px, #fff 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 110px 90px, rgba(255,255,255,.85) 50%, transparent 51%),
      radial-gradient(2px 2px at 190px 160px, rgba(255,255,255,.9) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 70px 220px, #fff 50%, transparent 51%),
      radial-gradient(3px 3px at 250px 260px, rgba(255,255,255,.75) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 280px 30px, rgba(255,255,255,.8) 50%, transparent 51%);
    background-size: 300px 300px;
    opacity: .85;
    animation: mvSnow 22s linear infinite;
  }
  .pc-mv__snow--2 { background-size: 180px 180px; opacity: .5; animation-duration: 34s; filter: blur(.6px); }
  @keyframes mvSnow { to { background-position: 300px 900px; } }
  .pc-mv__snow--2 { animation-name: mvSnow2; }
  @keyframes mvSnow2 { to { background-position: -180px 540px; } }
  /* 斜めに走る光 */
  .pc-mv__shine {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    transform: rotate(20deg);
    animation: mvShine 7s ease-in-out infinite;
  }
  @keyframes mvShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
  .pc-mv__body { position: relative; z-index: 1; width: min(88%, 520px); text-align: center; }
  .pc-mv__catch {
    padding: 6px 10px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: clamp(14px, 1.3vw, 20px);
    font-weight: 700;
  }
  .pc-mv__title {
    margin-top: 14px;
    padding: 4px 0;
    border-top: 3px double rgba(255,255,255,.85);
    border-bottom: 3px double rgba(255,255,255,.85);
    color: #fff;
    font-size: clamp(64px, 7vw, 120px);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 4px 6px 0 rgba(0,40,120,.25);
  }
  .pc-mv__start { margin: 18px 0 34px; color: #fff; font-size: clamp(20px, 2vw, 32px); font-weight: 500; letter-spacing: .06em; }
  .pc-mv__start span { font-size: .8em; }
  .btn-cta--pc { font-size: clamp(20px, 1.9vw, 30px); min-height: clamp(64px, 6vw, 86px); background-color: var(--c-red); }
  .pc-mv__note { margin-top: 16px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-shadow: 0 1px 3px rgba(0,0,0,.3); }

  /* 右：ナビ */
  .pc-right { flex-direction: column; justify-content: center; gap: 36px; padding: 32px clamp(20px, 2vw, 40px); }
  .pc-nav ul { display: grid; gap: 14px; }
  .pc-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 8px 16px;
    border: 2px solid var(--c-navy);
    border-radius: 999px;
    background: #fff;
    color: var(--c-navy);
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 700;
    text-align: center;
    transition: background .2s, color .2s;
  }
  .pc-nav__btn:hover, .pc-nav__btn.is-current { background: var(--c-navy); color: #fff; }
  .pc-tel { text-align: center; color: var(--c-navy); }
  .pc-tel p { font-size: 13px; font-weight: 700; }
  .pc-tel a { display: block; color: var(--c-red); font-size: clamp(22px, 1.9vw, 30px); font-weight: 700; line-height: 1.3; }
  .pc-tel small { font-size: 12px; }
}
