@charset "UTF-8";

/* =============================================================
   improve.css
   「260821_広告LP改善案_株式会社京進御中【特定公開】」への改修分
   既存 CSS（reset / common / top）は変更せず、このファイルで追加・上書きする。

   ■単位のルール（既存踏襲）
     PC（1025px以上）: 1rem = 1px（デザイン幅1450px基準）
     SP（1024px以下） : 1rem = 1px（デザイン幅750px基準）

   ■目次
     00. 共通ユーティリティ
     01-a. FV画像内の学年ラベルのリンク化（改修①）
     01-b. 学年別リンクボタン（改修①）
     02. CTAバンド（改修②⑤）
     03. キャンペーン拡大（改修③）
     04. コース移動にともなう微調整（改修④⑥）
============================================================= */


/* =============================================================
   00. 共通ユーティリティ
============================================================= */
/* 画面には出さず、読み上げ・SEO向けに残すテキスト */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================================
   01-a. FV画像内の学年ラベルのリンク化  （改修①）
   ヒートマップで既にタップが発生している「小学生／中学生／高校生」
   ラベルの上に透明リンクを重ね、コースへ飛べるようにする。
   ※座標はFV画像に合わせた％指定。画像を差し替えたら要調整。
     PC: img/pc/mv-pc_2308.png (1426x600)
     SP: img/sp/mv-sp_2308.png (750x1020)
============================================================= */
.mv__inner {
  position: relative;
}

.mv__inner img {
  display: block;
  width: 100%;
  height: auto;
}

.mv__hotspot {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mv__hotspot-link {
  position: absolute;
  display: block;
  border-radius: 6rem;
  background: rgba(255, 255, 255, 0);
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.35);
}

.mv__hotspot-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* --- PC座標 --- */
.mv__hotspot-link {
  top: 81.5%;
  height: 10%;
}

.mv__hotspot-link.--es {
  left: 19.8%;
  width: 10.2%;
}

.mv__hotspot-link.--js {
  left: 29.9%;
  width: 9.8%;
}

.mv__hotspot-link.--hs {
  left: 39.8%;
  width: 10.6%;
}

/* --- SP座標 --- */
@media screen and (max-width: 1024px) {
  .mv__hotspot-link {
    top: 88.3%;
    height: 6.5%;
  }

  .mv__hotspot-link.--es {
    left: 35.5%;
    width: 19.8%;
  }

  .mv__hotspot-link.--js {
    left: 55.1%;
    width: 19.5%;
  }

  .mv__hotspot-link.--hs {
    left: 74.5%;
    width: 20.4%;
  }
}


/* =============================================================
   01-b. 学年別リンクボタン  .gradenav  （改修①）
   FV直下に大きなボタンを置き、学年別コースへの導線を明示する。
============================================================= */
.gradenav {
  background: #fff;
  padding: 46rem 0 6rem;
}

.gradenav__inner {
  max-width: 1250rem;
  margin: 0 auto;
  padding: 0 25rem;
}

.gradenav__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18rem;
  margin-bottom: 26rem;
  text-align: center;
}


.gradenav__lead-txt {
  position: relative;
  padding: 0 44rem;
  font-size: 30rem;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.gradenav__lead-txt::before,
.gradenav__lead-txt::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 34rem;
  background: #999;
}

.gradenav__lead-txt::before {
  left: 10rem;
  transform: translateY(-50%) rotate(-22deg);
}

.gradenav__lead-txt::after {
  right: 10rem;
  transform: translateY(-50%) rotate(22deg);
}

.gradenav__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30rem;
  list-style: none;
}

.gradenav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12rem;
  padding: 30rem 10rem 26rem;
  border-radius: 22rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6rem 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.gradenav__link:hover {
  transform: translateY(3rem);
  box-shadow: 0 3rem 0 rgba(0, 0, 0, 0.18);
  filter: brightness(1.06);
}

.gradenav__name {
  font-size: 48rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.gradenav__range {
  font-size: 24rem;
  font-weight: 700;
  line-height: 1.7;
  border-radius: 100rem;
  padding: 1rem 26rem;
  white-space: nowrap;
}

.gradenav__link.--hs {
  background: linear-gradient(180deg, #2794DD 0%, #0079C2 100%);
}

.gradenav__link.--hs .gradenav__range {
  background: #005A94;
}

.gradenav__link.--js {
  background: linear-gradient(180deg, #10C39D 0%, #00B08D 100%);
}

.gradenav__link.--js .gradenav__range {
  background: #008A6E;
}

.gradenav__link.--es {
  background: linear-gradient(180deg, #EE5C8F 0%, #E7447E 100%);
}

.gradenav__link.--es .gradenav__range {
  background: #C2225F;
}

@media screen and (max-width: 1024px) {
  .gradenav {
    padding: 30rem 0 4rem;
  }

  .gradenav__inner {
    max-width: none;
    width: 100%;
    padding: 0 24rem;
  }

  .gradenav__lead {
    gap: 12rem;
    margin-bottom: 20rem;
  }


  .gradenav__lead-txt {
    font-size: 30rem;
  }

  .gradenav__list {
    gap: 14rem;
  }

  .gradenav__link {
    gap: 8rem;
    padding: 22rem 4rem 18rem;
    border-radius: 16rem;
    box-shadow: 0 5rem 0 rgba(0, 0, 0, 0.18);
  }

  .gradenav__name {
    font-size: 38rem;
  }

  .gradenav__range {
    font-size: 21rem;
    padding: 1rem 14rem;
  }
}


/* =============================================================
   02. CTAバンド  .ctaband
   改修②＝FVのCTA強調 / 改修⑤＝コース内にも設置
   2026-08-21修正：①関西・愛知のバッジに「登録はメールアドレスだけ。」を統合
                   ②下の注記文を削除
                   ③コース内のCTAはコースヘッダー画像の直後に配置（.--incourse）
                   ④SPもボタンを横並び（2カラム）に
============================================================= */
.ctaband {
  background: #fff;
  padding: 44rem 0 54rem;
}

.ctaband__inner {
  max-width: 1250rem;
  margin: 0 auto;
  padding: 0 25rem;
}

.ctaband__ttl {
  text-align: center;
  margin-bottom: 42rem;
}

.ctaband__ttl-main {
  display: inline-block;
  position: relative;
  padding: 0 66rem;
  font-size: 62rem;
  font-weight: 900;
  line-height: 1.2;
  color: #E61922;
}

.ctaband__ttl-main::before,
.ctaband__ttl-main::after {
  content: "";
  position: absolute;
  top: 52%;
  width: 4rem;
  height: 76rem;
  background: #333;
}

.ctaband__ttl-main::before {
  left: 14rem;
  transform: translateY(-50%) rotate(-22deg);
}

.ctaband__ttl-main::after {
  right: 14rem;
  transform: translateY(-50%) rotate(22deg);
}

.ctaband__ttl-sub {
  display: block;
  margin-top: 6rem;
  font-size: 32rem;
  font-weight: 700;
  color: #333;
}

.ctaband__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40rem;
  list-style: none;
}

.ctaband__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210rem;
  padding: 96rem 90rem 32rem 90rem;
  border-radius: 18rem;
  color: #fff;
  text-decoration: none;
  font-size: 42rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8rem 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ctaband__btn:hover {
  transform: translateY(4rem);
  box-shadow: 0 4rem 0 rgba(0, 0, 0, 0.22);
  filter: brightness(1.06);
}

.ctaband__btn.--kansai {
  background: linear-gradient(180deg, #FF9331 0%, #F56A00 100%);
}

.ctaband__btn.--syutoken {
  background: linear-gradient(180deg, #F53A46 0%, #E00A18 100%);
}

/* --- バッジ（白い吹き出し） --- */
.ctaband__badge {
  position: absolute;
  top: -14rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24rem);
  background: #fff;
  border-radius: 100rem;
  padding: 4rem 28rem;
  font-size: 26rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.14);
}

/* 2行バッジ（登録はメールアドレスだけ。＋ 1分で自動返信） */
.ctaband__badge.--2line {
  padding: 8rem 30rem 10rem;
  border-radius: 40rem;
  line-height: 1.35;
}

.ctaband__badge-sub {
  display: block;
  font-size: 23rem;
  font-weight: 500;
  color: #444;
}

.ctaband__badge-main {
  display: block;
  font-size: 34rem;
  font-weight: 900;
}

.ctaband__btn.--kansai .ctaband__badge {
  color: #F56A00;
}

.ctaband__btn.--syutoken .ctaband__badge {
  color: #E00A18;
}

/* --- 矢印 --- */
.ctaband__arrow {
  position: absolute;
  top: 50%;
  right: 28rem;
  transform: translateY(-50%);
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.ctaband__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11rem 0 11rem 17rem;
  border-color: transparent transparent transparent currentColor;
}

.ctaband__btn.--kansai .ctaband__arrow {
  color: #F56A00;
}

.ctaband__btn.--syutoken .ctaband__arrow {
  color: #E00A18;
}

/* --- コース内に置くCTA（修正③） ---
   .subject__box の負のマージン（ヘッダー画像への食い込み）を打ち消す */
.ctaband.--incourse {
  padding: 40rem 0 0;
}

.ctaband.--incourse + .subject__box {
  margin-top: 0;
}

@media screen and (max-width: 1024px) {
  .ctaband {
    padding: 40rem 0 46rem;
  }

  .ctaband__inner {
    max-width: none;
    width: 100%;
    padding: 0 24rem;
  }

  .ctaband__ttl {
    margin-bottom: 34rem;
  }

  .ctaband__ttl-main {
    padding: 0 56rem;
    font-size: 54rem;
  }

  .ctaband__ttl-main::before,
  .ctaband__ttl-main::after {
    width: 4rem;
    height: 66rem;
  }

  .ctaband__ttl-main::before {
    left: 8rem;
  }

  .ctaband__ttl-main::after {
    right: 8rem;
  }

  .ctaband__ttl-sub {
    font-size: 30rem;
  }

  /* ④SPも横並び（2カラム） */
  .ctaband__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16rem;
  }

  .ctaband__btn {
    gap: 14rem;
    min-height: 176rem;
    padding: 78rem 12rem 24rem;
    font-size: 30rem;
    line-height: 1.35;
    border-radius: 14rem;
    box-shadow: 0 6rem 0 rgba(0, 0, 0, 0.22);
  }

  .ctaband__badge {
    top: -12rem;
    max-width: calc(100% - 8rem);
    padding: 3rem 14rem;
    font-size: 22rem;
    border-radius: 100rem;
  }

  .ctaband__badge.--2line {
    padding: 6rem 12rem 8rem;
    border-radius: 30rem;
  }

  .ctaband__badge-sub {
    font-size: 19rem;
  }

  .ctaband__badge-main {
    font-size: 27rem;
  }

  /* 幅が狭いので矢印はテキストの右に並べる（::before の基準になるよう relative） */
  .ctaband__arrow {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 38rem;
    height: 38rem;
  }

  .ctaband__arrow::before {
    border-width: 9rem 0 9rem 14rem;
  }

  .ctaband.--incourse {
    padding: 36rem 0 0;
  }
}


/* =============================================================
   03. キャンペーン拡大  （改修③）
   PC = 従来の横長バナー画像 / SP = 縦組みテキスト版（文字を大きく）
============================================================= */
.campaign__pc {
  display: block;
}

.campaign__pc img {
  display: block;
  width: 100%;
  height: auto;
}

.cp {
  display: none;
}

@media screen and (max-width: 1024px) {
  .campaign {
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .campaign__pc {
    display: none;
  }

  .cp {
    display: block;
    background: linear-gradient(135deg, #C5D94F 0%, #E8E846 55%, #FFED43 100%);
    padding: 30rem 24rem 26rem;
  }

  .cp__term {
    display: table;
    margin: 0 auto;
    background: #002447;
    color: #FCE93E;
    font-size: 30rem;
    font-weight: 700;
    line-height: 1.6;
    border-radius: 100rem;
    padding: 4rem 28rem;
    letter-spacing: 0.02em;
  }

  .cp__term span {
    color: #fff;
  }

  .cp__term small {
    font-size: 22rem;
  }

  .cp__ttl {
    margin: 16rem 0 22rem;
    text-align: center;
    color: #002447;
    font-size: 56rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  .cp__card {
    position: relative;
    background: #fff;
    border-radius: 20rem;
    padding: 0 20rem 24rem;
    margin-bottom: 20rem;
    text-align: center;
  }

  .cp__card-cond {
    margin: 0 -20rem 20rem;
    border-radius: 20rem 20rem 0 0;
    background: #002447;
    color: #fff;
    font-size: 27rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 12rem 14rem;
  }

  .cp__price {
    color: #002447;
    font-size: 62rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
  }

  .cp__price b {
    font-size: 104rem;
    font-weight: 900;
  }

  .cp__price em {
    font-style: normal;
    font-size: 84rem;
    font-weight: 900;
  }

  .cp__price-note {
    margin-top: 14rem;
    padding-top: 14rem;
    border-top: 3rem dotted #A6CE39;
    color: #002447;
    font-size: 34rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .cp__price-sub {
    margin-top: 6rem;
    color: #002447;
    font-size: 22rem;
    font-weight: 500;
    line-height: 1.5;
  }

  .cp__card:last-of-type {
    padding-top: 24rem;
  }

  .cp__card-lead {
    color: #002447;
    font-size: 32rem;
    font-weight: 900;
    line-height: 1.4;
  }

  .cp__card-lead::before {
    content: "＼";
    margin-right: 4rem;
  }

  .cp__card-lead::after {
    content: "／";
    margin-left: 4rem;
  }

  .cp__card-txt {
    margin-top: 8rem;
    color: #002447;
    font-size: 26rem;
    font-weight: 500;
    line-height: 1.6;
  }

  .cp__bubble {
    position: absolute;
    top: -14rem;
    right: -8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132rem;
    height: 132rem;
    border-radius: 50%;
    background: #FCE93E;
    color: #002447;
    font-size: 21rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }

  .cp__quo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    margin-top: 14rem;
  }

  .cp__quo img {
    width: 300rem;
    height: auto;
  }

  .cp__quo-txt {
    color: #002447;
    font-size: 58rem;
    font-weight: 900;
    line-height: 1.1;
  }

  .cp__note {
    background: #fff;
    border-radius: 14rem;
    padding: 14rem 16rem;
    color: #002447;
    font-size: 20rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
  }
}


/* =============================================================
   04. コース移動にともなう微調整  （改修④⑥）
============================================================= */
/* ページ内リンクでコースへ飛んだとき、追従ヘッダーに見出しが隠れないように */
#course {
  scroll-margin-top: 110rem;
}

/* 池谷パートを後方へ移動したため、直前セクションとの境目に区切りを入れる */
.iketani {
  border-top: 2rem solid #E4E4E4;
}
