/* =========================================================
   明光義塾 大学入試まるわかり講座 LP
   PC：デザインされたヒーロー＋フロー型ボディ（影なし・背景色をセクションで統一）
   SP：縦1カラム・モバイル最適化
   ========================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: #f0f8fd;
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; border: 0; max-width: 100%; }

/* =========================================================
   PC版（フロー型・>= 768px で表示）
   ========================================================= */
.view-desktop { display: block; }

.d {
  --blue:   #004aab;
  --bg:     #f0f8fd;
  --yellow: #fee902;
  --red:    #ff4147;
  color: var(--blue);
  background: var(--bg);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
}
.d p { margin: 0; }

/* セクションの土台（背景色はセクション単位で統一・影なし） */
.d-container { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.d-section   { padding: 92px 0; }
.d-section.tight { padding: 56px 0; }
.d-section.d-pb-sm { padding-bottom: 40px; }   /* 多様化の下を詰める */
.d-section.d-pt-sm { padding-top: 8px; }        /* その下のCTAの上を詰める */
.d-white     { background: #ffffff; }

/* 黄色マーカー（共通） */
.d .mk  { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 4px; }
.d .red { color: var(--red); }

/* ---------- ヒーロー（左寄せ・開催日は講座ボックス内に丸型バッジ） ---------- */
.d-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  overflow: hidden;
}
.d-hero-bg {
  position: absolute; inset: 0;
  background: url(../images/hero-bg.webp) no-repeat 72% center;
  background-size: cover;
}
/* 左から白フェード（左寄せテキストの可読性）＋下フェード（ボディへ繋ぐ） */
.d-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(240,248,253,.95) 0%, rgba(240,248,253,.80) 30%,
      rgba(240,248,253,.18) 58%, rgba(240,248,253,0) 78%),
    linear-gradient(to bottom,
      rgba(240,248,253,0) 66%, rgba(240,248,253,.85) 90%, var(--bg) 100%);
}
.d-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 30px 40px 46px;
  display: flex; flex-direction: column; align-items: flex-start;
}
/* ロゴ：左上 */
.d-hero-logo { width: clamp(160px, 14vw, 208px); margin: 0 0 auto; }
/* キャッチ：左寄せ */
.d-hero-catch {
  text-align: left; max-width: 720px;
  font-size: clamp(30px, 3.3vw, 50px); font-weight: 900; line-height: 1.5;
  margin: 26px 0 24px;
}
.d-hero-catch .mk { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 4px; }

/* ヒーロー下段：講座ボックス（左下）＋CTA（右下） */
.d-hero-bottom {
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 36px;
}
/* 講座ボックス（右下・開催日バッジと右端ラインを揃える／中央寄せ・少し小さめ） */
.d-hero-course {
  position: absolute; z-index: 3;
  right: 5%;                       /* 開催日バッジ（right:5%）と右端を揃える */
  bottom: 46px;                    /* CTA の下端（hero-inner の下パディング）と揃える */
  width: min(470px, 40%);
  background: rgba(255,255,255,.88);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;              /* ボックス内テキストを中央配置 */
}
.d-eyebrow    { font-size: clamp(14px, 1.4vw, 18px); font-weight: 700; color: #000; margin-bottom: 5px; }
/* タイトルは常に1行（折り返さない）。最大フォントはボックス幅に収まる値に抑える */
.d-course-ttl { font-size: clamp(23px, 2.5vw, 35px); font-weight: 900; margin-bottom: 5px; white-space: nowrap; }
.d-course-sub { font-size: clamp(12px, 1.2vw, 15px); font-weight: 700; color: #000; }

/* =========================================================
   開催日バッジ（ヒーロー右上の丸型・薄い青背景／青枠・装飾なし）
   構成：「開催」を上に、その下に【8月 / 3–4 / 会場】を中央へ密集させる
   縦の間隔は flex の gap だけで管理する：
     ・開催 ⇄ 日付クラスター = .datebadge の gap（広め）
     ・8月 / 3–4 / 会場 の間  = .db-core の gap（密集）
   ========================================================= */
.datebadge {
  position: absolute; top: 13%; right: 5%; z-index: 3;
  width: clamp(190px, 17.5vw, 228px); aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #f0f8fd;
  border: 4px solid var(--blue);
  color: var(--blue);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  text-align: center; line-height: 1;
}

/* ＼ 開催 ／（下に黄色の細リボン） */
.datebadge .db-lead {
  margin: 0; position: relative; padding-bottom: 7px;
  font-size: clamp(13px, 1.45vw, 16px); font-weight: 700; letter-spacing: .12em;
}
.datebadge .db-lead::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 2px; background: var(--yellow);
}

/* 日付クラスター（8月 / 3–4 / 会場 を中央へ密集）
   大きな「3–4」の行ボックスの余白を潰し（line-height）、
   8月と会場をマイナスマージンで日付に重ねて吸着させる */
.datebadge .db-core { display: flex; flex-direction: column; align-items: center; gap: 0; }
.datebadge .db-month {
  font-size: clamp(28px, 3vw, 36px); font-weight: 900; line-height: 1;
  margin-bottom: 12px;             /* 日付との間に少し余白 */
}
/* 「月」（8より小さめ） */
.datebadge .db-month .u { font-size: clamp(18px, 1.9vw, 22px); }
.datebadge .db-days {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  font-size: clamp(36px, 3.8vw, 48px); font-weight: 900; letter-spacing: .01em;
  line-height: .7;                /* 数字の上下余白を潰す */
}
.datebadge .db-days .day { background: transparent; }
.datebadge .db-days .day small {
  font-size: .3em; font-weight: 700; vertical-align: .25em; margin-left: 1px;
}
.datebadge .db-days .db-dash { font-size: .28em; font-weight: 700; }

/* 会場 */
.datebadge .db-place {
  margin: 0; margin-top: 18px;      /* 日付との間に少し余白 */
  font-size: clamp(10px, 1.05vw, 12px); font-weight: 700; line-height: 1.2;
}

/* ヒーローCTA（右下・中央寄せ） */
.d-hero-cta { text-align: center; width: min(430px, 44%); }
.d-hero-cta .lead { font-size: clamp(15px, 1.5vw, 19px); margin-bottom: 12px; white-space: nowrap; }
.d-hero-cta .d-btn { padding: 18px 38px; font-size: clamp(17px, 1.8vw, 22px); }
.d-hero-cta .note { font-size: clamp(12px, 1.2vw, 14px); margin-top: 12px; }

/* ---------- CTA（モバイルに合わせた黄色ボタン・影なし） ---------- */
.d-cta { text-align: center; }
.d-cta .lead { font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; margin-bottom: 18px; }
.d-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 100%;
  background: var(--yellow); color: var(--blue);
  font-weight: 900; font-size: clamp(19px, 2vw, 26px);
  border-radius: 16px; padding: 22px 56px;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.d-btn:hover { transform: translateY(-3px); filter: brightness(1.04); }
.d-btn:active { transform: translateY(-1px); }
.d-btn .arw { width: 26px; height: 26px; flex: none; transition: transform .2s ease; }
.d-btn:hover .arw { transform: translateX(7px); }
/* キラッと光る（glint） */
.d-btn::after {
  content: ""; position: absolute; top: 0; left: -75%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.85) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: d-glint 3.4s ease-in-out infinite;
}
@keyframes d-glint {
  0%  { left: -75%; }
  24% { left: 130%; }
  100%{ left: 130%; }
}
.d-cta .note { font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; margin-top: 18px; line-height: 1.7; }

/* ---------- 青帯 ---------- */
.d-bluebar {
  background: var(--blue); color: #fff; text-align: center;
  padding: 26px 24px; font-size: clamp(18px, 1.9vw, 25px); font-weight: 700;
}
.d-bluebar .yl { color: var(--yellow); font-size: 1.2em; }

/* ---------- 見出し・本文 ---------- */
.d-head { font-size: clamp(28px, 3vw, 44px); font-weight: 900; text-align: center; line-height: 1.5; margin: 0 0 8px; }
.d-head.black { color: #000; }
.d-head.big   { line-height: 1.4; }
.d-copy { font-size: clamp(16px, 1.7vw, 20px); font-weight: 700; color: #000; line-height: 1.9; }
.d-copy .big { color: var(--blue); font-size: 1.3em; font-weight: 900; }

/* ---------- 画像（中央寄せ） ---------- */
.d-figure { width: 100%; margin: 36px auto 0; }
.d-illust    { max-width: 600px; }
.d-graph     { max-width: 920px; }
.d-advantage { max-width: 980px; }
.d-results   { max-width: 900px; }
.d-summer    { max-width: 1000px; }

/* お悩み（イラスト人物＋チェックを2カラム） */
.d-worry {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px; align-items: center; margin-top: 28px;
}
.d-worry-person { width: 100%; max-width: 420px; margin: 0 auto; }
.d-checks { display: flex; flex-direction: column; gap: 4px; }
.d-check  { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; }
.d-check img  { width: 30px; height: 30px; flex: none; margin-top: 3px; }
.d-check span { font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; }
.d-emph { text-align: center; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; margin-top: 40px; line-height: 1.6; }
.d-emph .mk2 { background: var(--yellow); padding: 2px 6px; }

/* 多様化（円グラフ＋コピーを2カラム） */
.d-diversify {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px; align-items: center; margin: 36px 0 0;
}
.d-circle { width: 300px; margin: 0 auto; }

/* 早く知った人有利の注記ボックス（単独の強調・影なし） */
.d-notebox {
  background: #f7f7f7; border-radius: 20px; padding: 30px;
  text-align: center; max-width: 860px; margin: 36px auto 0;
}
.d-notebox .t1 { color: #000; font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; }
.d-notebox .t2 { color: var(--blue); font-size: clamp(19px, 2vw, 26px); font-weight: 900; margin-top: 8px; }

/* 2日間で戦略：見出し（修正前デザイン＝黄色マーカー画像を大きな文字の背面に） */
.d-head-2days { text-align: center; font-weight: 900; color: var(--blue); line-height: 1.6; }
.d-head-2days .big {
  position: relative; display: inline-block; z-index: 0;
  font-size: clamp(44px, 5.5vw, 74px); padding: 0 6px;
}
.d-head-2days .big::before {
  content: ""; position: absolute; z-index: -2;
  left: 50%; top: 66%; transform: translate(-50%, -50%);
  width: 114%; aspect-ratio: 363 / 242;
  background: url(../images/student.webp) no-repeat center;
  background-size: contain;
}
.d-head-2days .sm  { position: relative; z-index: 1; font-size: clamp(18px, 2.3vw, 29px); }
.d-head-2days .tilt { transform: rotate(-4deg); }

/* 2日間で戦略（画像を2カラム） */
.d-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 36px; }
.d-grid-2 img { width: 100%; border-radius: 18px; }

/* お申し込みの流れ（横並び＋矢印） */
.d-container.d-container-wide { max-width: 1160px; }
.d-flow-head {
  background: var(--blue); color: #fff; border-radius: 16px;
  text-align: center; font-size: clamp(19px, 2vw, 27px); font-weight: 900;
  padding: 15px; max-width: 720px; margin: 0 auto;
}
.d-flow-note { text-align: center; font-weight: 700; margin: 22px auto 0; max-width: 820px; line-height: 1.7; }
.d-flow-note .s { display: block; font-size: clamp(13px, 1.3vw, 15px); margin-top: 6px; }
.d-flow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.d-flow img:not(.chev) { width: clamp(172px, 20vw, 238px); border-radius: 14px; }
.d-flow .chev { width: 26px; flex: none; }

/* 安心セクション（ロゴとテキストを横並び・少し大きめ） */
.d-anshin { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.d-anshin img { width: clamp(280px, 30vw, 380px); margin: 0; }
.d-anshin p   { font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; transform: translateY(-12px); }

/* 最終ビジュアル（CTAを画像に重ねて配置） */
.d-finalvisual {
  position: relative; width: 100%;
  min-height: clamp(480px, 46vw, 660px);
  background: url(../images/footer-bg.webp) no-repeat center;
  background-size: cover;
}
/* バッジは右側に配置（少し下・左へ） */
.d-final-badge { position: absolute; top: 16%; right: 15%; width: clamp(180px, 20vw, 248px); }
.d-final-badge img { width: 100%; }
.d-final-badge p {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.3; text-align: center;
}
/* CTAは中央・さらに下めに配置（注記が1行に収まるよう横幅を広げる） */
.d-final-cta {
  position: absolute; left: 50%; top: 73%; transform: translate(-50%, -50%);
  width: min(620px, 94%); text-align: center;
}
.d-final-cta .lead { font-size: clamp(15px, 1.5vw, 19px); margin-bottom: 12px; }
.d-final-cta .note { font-size: clamp(12px, 1.2vw, 14px); margin-top: 12px; white-space: nowrap; }
.d-final-cta .d-btn { padding: 18px 34px; font-size: clamp(17px, 1.7vw, 21px); }
.d-final-cta .lead, .d-final-cta .note { color: var(--blue); }

/* プライバシーポリシー */
.d-privacy { background: var(--blue); text-align: center; padding: 24px 16px; }
.d-privacy a { color: #fff; font-size: 14px; text-decoration: none; }
.d-privacy a:hover { text-decoration: underline; }

/* ---------- スクロール表示アニメーション ---------- */
.d .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.d .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .d .reveal { opacity: 1; transform: none; transition: none; }
  .d-btn::after { animation: none; }
}

/* タブレット幅では2カラムを1カラムに */
@media (max-width: 900px) {
  .d-section { padding: 64px 0; }
  .datebadge { top: 8%; right: 3%; width: 152px; border-width: 3px; gap: 13px; }
  .datebadge .db-lead { font-size: 12px; padding-bottom: 5px; }
  .datebadge .db-lead::after { width: 28px; height: 2px; }
  .datebadge .db-month { font-size: 32px; }
  .datebadge .db-month .u { font-size: 24px; }
  .datebadge .db-days { font-size: 33px; gap: 5px; }
  .d-hero { display: block; min-height: auto; }
  .d-hero-bottom { flex-direction: column; align-items: stretch; gap: 18px; }
  .d-hero-cta { width: 100%; }
  /* 講座ボックスはバッジ揃えの絶対配置を解除し、CTA の下へ通常フローで配置 */
  .d-hero-course {
    position: static; width: auto;
    margin: 20px 40px 28px;
  }
  .d-worry, .d-diversify { grid-template-columns: 1fr; gap: 24px; }
  .d-circle { width: 260px; }
  .d-flow { flex-wrap: wrap; gap: 14px; }
  .d-flow img:not(.chev) { width: 40%; }
  .d-flow .chev { transform: rotate(90deg); }
  .d-finalvisual { min-height: clamp(440px, 58vw, 560px); }
  .d-final-badge { top: 11%; right: 9%; width: 140px; }
  .d-final-cta { top: 70%; width: min(560px, 94%); }
  .d-final-cta .note { white-space: nowrap; font-size: clamp(11px, 1.6vw, 13px); }
}

/* ---------- タブレット／中間幅（600–900px：iPad縦・小型タブレット・横向き等）専用の微調整 ---------- */
@media (min-width: 600px) and (max-width: 900px) {
  /* ヒーロー内側を1画面ぶんの高さにし、CTAを最初の画面の下端に表示する */
  .d-hero-inner {
    min-height: 100vh;
    min-height: 100svh;          /* ブラウザのツールバーぶんを除いた実高さ */
    display: flex; flex-direction: column;
    padding: 30px 40px 28px;
  }
  .d-hero-logo   { margin: 0 0 24px; }   /* ロゴ下の auto マージンを解除 */
  .d-hero-bottom { margin-top: auto; }    /* CTA を hero-inner の下端へ押し下げ */
  /* 講座ボックスは1画面の直下（スクロール直後）に表示 */
  .d-hero-course { margin: 22px 40px 28px; }

  /* 開催日バッジ：大きくして中のテキスト（日付・会場）を収める */
  .datebadge {
    top: 4%; right: 4%;
    width: 200px; border-width: 4px; gap: 16px;
  }
  .datebadge .db-lead { font-size: 14px; padding-bottom: 6px; }
  .datebadge .db-lead::after { width: 32px; height: 3px; }
  .datebadge .db-month { font-size: 30px; margin-bottom: 10px; }
  .datebadge .db-month .u { font-size: 20px; }
  .datebadge .db-days { font-size: 40px; gap: 6px; }
  .datebadge .db-place { margin-top: 14px; font-size: 12px; }

  /* お悩み：見出しイラストを小さく／人物イラストも小さくし、チェック項目を横に並べる（左寄せ） */
  .d-illust { max-width: 360px; }
  .d-worry { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .d-worry-person { max-width: 220px; }
  .d-checks { align-items: flex-start; }
  /* チェック項目と「そのモヤモヤ…」テキストの間の余白を広げる */
  .d-emph { margin-top: 88px; }

  /* 入試の多様化：円グラフとコピー文を横並びのまま（縦積みにしない） */
  .d-diversify { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }

  /* お申し込みの流れ：矢印SVGはタブレットでは非表示（4ステップを2×2で表示） */
  .d-flow .chev { display: none; }

  /* 最終ビジュアルの「高１・高２対象」丸バッジを少し横に広げる */
  .d-final-badge { width: 180px; }
}

/* =========================================================
   スマホ専用レイアウト（< 768px で表示）
   ========================================================= */
.view-mobile { display: none; }

/* 600px 未満をスマホ専用レイアウトに（600px 以上は PC の流動レイアウトで中間幅も埋める） */
@media (max-width: 599px) {
  body { background: #f0f8fd; }
  .view-desktop { display: none; }
  .view-mobile  { display: block; }
}

.view-mobile { overflow-x: hidden; }
.m {
  background: #f0f8fd;
  color: #004aab;
  font-family: 'Noto Sans JP', sans-serif;
  width: 100%;
  max-width: 600px;          /* スマホ帯（〜599px）いっぱいまで広げ、左右余白の空きをなくす */
  margin: 0 auto;
  overflow-x: hidden;
  line-height: 1.6;
}
.m img { display: block; max-width: 100%; }

/* セクション余白 */
.m-sec { padding: 36px 20px; }
.m-sec.tight { padding: 24px 20px; }

/* ヒーロー（最上部に開催日バー → 全面背景＋白フェード → 講座タイトル） */
.m-hero { position: relative; padding: 0 0 16px; }

/* 開催日バー（最上部・小さく） */
.m-eventbar {
  background: #004aab; color: #fff;
  text-align: center; font-size: clamp(11px, 3.4vw, 13px); font-weight: 700;
  padding: 9px 12px; letter-spacing: .01em; word-break: keep-all;
}
.m-eventbar .lbl {
  background: #fee902; color: #004aab; font-weight: 900;
  border-radius: 10px; padding: 1px 9px; margin-right: 8px;
}

/* ロゴは一番左上 */
.m-logo { position: absolute; top: 10px; left: 12px; z-index: 3; width: 128px; margin: 0; }

/* 全面の背景画像（学生写真・少し右寄せ)＋白フェード */
.m-hero-visual {
  position: relative; width: 100%;
  min-height: 326px;
  background: url(../images/hero-bg.webp) no-repeat 55% center;
  background-size: cover;
  display: flex; align-items: flex-end;
}
.m-hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,.5) 58%,
    rgba(255,255,255,.92) 82%,
    #f0f8fd 100%);
}
/* キャッチコピー：左寄せ・少し小さめ */
.m-h1 {
  position: relative; z-index: 1;
  width: 100%;
  text-align: left;
  font-size: clamp(22px, 6.2vw, 30px); font-weight: 900; line-height: 1.5;
  margin: 0; padding: 0 20px 10px; letter-spacing: .01em;
}
/* 黄色マーカー（テキスト下線ハイライト） */
.mk {
  background: linear-gradient(transparent 58%, #fee902 58%);
  padding: 0 2px;
}
.m-eyebrow { font-size: 15px; font-weight: 700; color: #000; margin: 0 0 4px; }
.m-eyebrow .red { color: #ff4147; }

/* セクションボックスは透明（白背景バンド上に直接配置・影なし） */
.m-card {
  background: transparent; border-radius: 0;
  box-shadow: none;
  padding: 8px 0;
}
.m-card + .m-card { margin-top: 12px; }

/* 「こんな悩み」〜「早く知った人から有利」を白背景バンドに */
.m-white { background: #ffffff; }

/* 講座タイトル */
.m-course { text-align: center; margin-top: 12px; padding: 0 14px; }
.m-course .ttl { font-size: clamp(22px, 6vw, 30px); font-weight: 900; margin: 2px 0 5px; }
.m-course .sub { font-size: clamp(11px, 3.3vw, 13px); font-weight: 700; color: #000; }

/* 開催日ボックス */
.m-date {
  margin: 18px auto 0; max-width: 360px;
  background: #fff9b5; border: 2px solid #004aab; border-radius: 12px;
  padding: 14px; text-align: center;
}
.m-date .d { font-size: 22px; font-weight: 700; }
.m-date .p { font-size: 13px; font-weight: 700; margin-top: 2px; }

/* 青帯 */
.m-bluebar {
  background: #004aab; color: #fff; text-align: center;
  padding: 18px 20px; font-size: 19px; font-weight: 700;
}
.m-bluebar .yl { color: #fee902; font-size: 23px; }

/* CTA */
.m-cta { padding: 28px 20px; text-align: center; }
.m-cta .lead { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.m-btn {
  position: relative; overflow: hidden;
  display: block; text-align: center;
  background: #fee902; color: #004aab; font-weight: 700; font-size: 18px;
  border-radius: 12px; padding: 18px 14px; text-decoration: none;
  line-height: 1.45;
}
.m-btn:active { transform: translateY(1px); }
.m-btn .arw {
  display: inline-block; width: 18px; height: 18px;
  vertical-align: -3px; margin-left: 8px;
}
/* キラッと光る（glint）アニメーション */
.m-btn::after {
  content: "";
  position: absolute; top: 0; left: -75%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg,
    transparent 0%, rgba(255,255,255,.85) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: m-glint 3.2s ease-in-out infinite;
}
@keyframes m-glint {
  0%   { left: -75%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .m-btn::after { animation: none; }
}
.m-cta .note { font-size: 13px; font-weight: 700; margin-top: 12px; line-height: 1.5; }

/* セクション見出し */
.m-head { font-size: 24px; font-weight: 900; text-align: center; line-height: 1.45; }
.m-head.black { color: #000; }
.m-head.big { font-size: 27px; line-height: 1.45; }
.m-head.big .mk { background: linear-gradient(transparent 55%, #fee902 55%); }

/* チェックリスト */
.m-checks { margin: 18px 0 22px; }
.m-check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.m-check img { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.m-check span { font-size: 16px; font-weight: 700; }
.m-emph { text-align: center; font-size: 18px; font-weight: 700; line-height: 1.6; }
.m-emph .mk2 { background: #fee902; padding: 2px 4px; }

/* 画像ブロック */
.m-figure { width: 100%; border-radius: 14px; margin: 18px 0; }
.m-figure.flat { border-radius: 0; }
.m-circle { width: 250px; margin: 22px auto; }

/* 主な入試形態（2カラムのテキストカード） */
.m-types { margin-top: 24px; }
.m-types-head { text-align: center; font-weight: 900; font-size: 19px; color: #004aab; margin-bottom: 14px; }
.m-types-grid { display: flex; flex-direction: column; gap: 10px; }
.m-type {
  background: #f0f8fd; border: 2px solid #cfe3f5; border-radius: 12px;
  padding: 14px 18px; text-align: center;
}
.m-type .ttl { display: block; font-weight: 900; font-size: 18px; color: #004aab; margin-bottom: 4px; }
.m-type .d { display: block; font-size: 13px; font-weight: 700; color: #333; line-height: 1.6; }
.m-types-foot { text-align: center; font-weight: 900; font-size: 16px; color: #004aab; margin-top: 16px; line-height: 1.6; }

/* 夏期講習：summer-1/2/3 を縦並びでボックス囲み */
.m-summer { margin-top: 18px; }
.m-summer-card {
  border: 2px solid #e4e4e4; border-radius: 14px;
  background: #fff; padding: 10px;
}
.m-summer-card + .m-summer-card { margin-top: 14px; }
/* ボックスはそのまま・画像を少し小さく（内側に余白） */
.m-summer-card img { width: 88%; border-radius: 8px; display: block; margin: 6px auto; }

/* 年内入試コピー */
.m-copy { font-size: 16px; font-weight: 700; color: #000; line-height: 1.7; text-align: center; }
.m-copy .big { color: #004aab; font-size: 22px; font-weight: 900; }

/* グレー注記ボックス */
.m-note-box {
  background: #f7f7f7; border-radius: 16px; padding: 18px 16px;
  text-align: center; font-weight: 700; line-height: 1.6; margin-top: 18px;
}
.m-note-box .t1 { color: #000; font-size: 15px; }
.m-note-box .t2 { color: #004aab; font-size: 17px; }

/* お申し込みの流れ */
.m-flow-head {
  background: #004aab; color: #fff; border-radius: 16px;
  text-align: center; font-size: 24px; font-weight: 900; padding: 16px;
}
.m-flow-note { text-align: center; font-weight: 700; margin-top: 14px; }
.m-flow-note .s { font-size: 13px; display: block; margin-top: 4px; }
.m-flow { margin-top: 18px; }
/* ボックスはそのまま・画像を少し小さく（中央寄せで余白） */
.m-flow img { width: 88%; border-radius: 12px; display: block; margin: 0 auto; }
.m-flow .chev { text-align: center; color: #004aab; font-size: 26px; line-height: 1; margin: 6px 0; }

/* 安心セクション見出し（ロゴを大きく・テキストとは詰める・下に余白） */
.m-anshin { text-align: center; margin-bottom: 36px; }
.m-anshin img { width: 252px; display: block; margin: 0 auto -30px; }
.m-anshin .t { font-size: 27px; font-weight: 900; margin: 0; }

/* フッター：最後の画像（バナー・左寄せ） */
.m-finalvisual {
  width: 100%;
  min-height: 300px;
  background: url(../images/footer-bg.webp) no-repeat left center;
  background-size: cover;
}

/* プライバシーポリシー（下部に小さく） */
.m-privacy { background: #004aab; text-align: center; padding: 18px 16px; }
.m-privacy a { color: #fff; font-size: 13px; text-decoration: none; }
.m-privacy a:hover { text-decoration: underline; }

/* =========================================================
   プライバシーポリシー ページ（PC／SP 共通・レスポンシブ）
   ホームのトーン＆マナー（ブルー / イエロー / 角丸 / Noto Sans JP）に合わせる
   ========================================================= */
.pp {
  --blue:   #004aab;
  --bg:     #f0f8fd;
  --yellow: #fee902;
  color: #333;
  background: var(--bg);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー（ホームへ戻るボタンのみ・背景なし） */
.pp-header { background: transparent; }
.pp-header-inner {
  max-width: 980px; margin: 0 auto;
  padding: 18px 28px 0;
  display: flex; align-items: center; justify-content: flex-start;
}
.pp-back {
  color: var(--blue); font-weight: 700; font-size: clamp(13px, 1.4vw, 15px);
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
  border: 2px solid #d6e7f6; border-radius: 999px;
  padding: 7px 18px; transition: background .2s ease, border-color .2s ease;
}
.pp-back .ar { font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.pp-back:hover { background: #f0f8fd; border-color: var(--blue); }

/* タイトル（帯ではなく見出しとして・コンパクト） */
.pp-hero {
  background: transparent;
  color: var(--blue);
  text-align: center;
  padding: clamp(14px, 2.6vw, 24px) 24px clamp(18px, 3vw, 28px);
}
.pp-hero-inner { max-width: 980px; margin: 0 auto; }
.pp-hero-en {
  margin: 0 0 6px; letter-spacing: .24em;
  font-size: clamp(10px, 1.2vw, 12px); font-weight: 700;
  color: #6fa3d6;
}
.pp-hero-ttl {
  margin: 0; font-weight: 900; line-height: 1.35;
  font-size: clamp(21px, 3vw, 30px);
  display: inline-block; position: relative;
}
.pp-hero-ttl::after {
  content: ""; display: block;
  width: 48px; height: 4px; border-radius: 999px;
  background: var(--yellow);
  margin: 10px auto 0;
}

/* 本文 */
.pp-main { flex: 1 0 auto; padding: clamp(8px, 2vw, 20px) 20px clamp(40px, 6vw, 64px); }
.pp-card {
  background: #fff;
  max-width: 860px; margin: 0 auto;
  border-radius: 22px;
  padding: clamp(24px, 4.5vw, 48px);
}
.pp-intro {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 500;
}

.pp-block { padding: clamp(22px, 3vw, 30px) 0; border-top: 1px solid #eef3f8; }
.pp-block:first-of-type { border-top: 0; padding-top: clamp(16px, 2.4vw, 24px); }
.pp-block p { margin: 0 0 12px; font-size: clamp(14px, 1.55vw, 16px); }
.pp-block p:last-child { margin-bottom: 0; }

/* 見出し（番号バッジ＋テキスト） */
.pp-h2 {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0 0 16px;
  color: var(--blue); font-weight: 900;
  font-size: clamp(18px, 2.1vw, 24px); line-height: 1.45;
}
.pp-h2 .num {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 7px;
  background: var(--blue); color: #fff;
  border-radius: 999px;
  font-size: clamp(14px, 1.5vw, 16px); font-weight: 900; line-height: 1;
  transform: translateY(2px);
}
.pp-h2 .txt { flex: 1; }

/* 箇条書き */
.pp-list { margin: 4px 0 0; padding: 0; list-style: none; }
.pp-list li {
  position: relative; padding: 7px 0 7px 26px;
  font-size: clamp(14px, 1.55vw, 16px); font-weight: 500;
}
.pp-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--blue);
}

/* お問い合わせ窓口 */
.pp-contact {
  margin: 6px 0 0; padding: 20px 22px;
  background: #f0f8fd; border-radius: 14px;
}
.pp-contact .row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 7px 0; }
.pp-contact .row + .row { border-top: 1px dashed #cfe3f5; }
.pp-contact dt {
  flex: none; min-width: 132px;
  font-weight: 700; color: var(--blue);
  font-size: clamp(13px, 1.4vw, 15px);
}
.pp-contact dd {
  margin: 0; font-size: clamp(14px, 1.5vw, 16px); font-weight: 500;
}
.pp-contact a { color: var(--blue); font-weight: 700; word-break: break-all; }

.pp-date {
  margin: clamp(20px, 3vw, 28px) 0 0; text-align: right;
  font-size: clamp(13px, 1.4vw, 15px); font-weight: 700; color: var(--blue);
}

/* フッター */
.pp-footer {
  background: var(--blue); color: #fff; text-align: center;
  padding: 28px 20px; flex-shrink: 0;
}
.pp-footer-home {
  display: inline-block; color: #fff; font-weight: 700;
  font-size: clamp(14px, 1.5vw, 16px); text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.5);
  padding-bottom: 2px; margin-bottom: 16px;
}
.pp-footer-home:hover { border-bottom-color: var(--yellow); }
.pp-copy { margin: 0; font-size: 12px; color: rgba(255,255,255,.85); }

@media (max-width: 767px) {
  .pp { line-height: 1.85; }
  .pp-header-inner { padding: 11px 16px; }
  .pp-h2 { gap: 11px; }
  .pp-h2 .num { min-width: 30px; height: 30px; }
  .pp-contact { padding: 16px 16px; }
  .pp-contact dt { min-width: 100%; }
}
