@charset "UTF-8";
/* =========================================================
   フッター直前のCTA（c-cta c-cta--full）専用。下層ページ（記事・お知らせ一覧・お問い合わせなど）で読み込む
   renewal/css/style.css の「CTA」部分だけを切り出したもの。
   ※style.css は現行CSSとclass名が重なるため、下層ページでは読み込まない。
   ※style.css のCTAを直したら、ここにも同じ内容を反映すること
========================================================= */

/* style.css の :root と reset のうち、CTAで使うものだけをCTAの中に限定して持つ（:where で詳細度を0にし、下の指定を邪魔しない） */
.c-cta { --c-black: #000; --c-mint: #82c1bd; }
:where(.c-cta) { font-family: "Noto Sans JP", sans-serif; font-weight: 500; line-height: 1.6; color: #000; -webkit-font-smoothing: antialiased; }
:where(.c-cta), :where(.c-cta) *, :where(.c-cta) *::before, :where(.c-cta) *::after { box-sizing: border-box; }
:where(.c-cta) :is(h2, p, dl, dd) { margin: 0; padding: 0; }
:where(.c-cta) img { display: block; max-width: 100%; height: auto; }
:where(.c-cta) a { color: inherit; text-decoration: none; }

/* =========================================================
   CTA（教室見学・無料体験）
========================================================= */
.c-cta { margin-top: 120px; padding: 0 8px; }
/* 背景の枠と白いボックスの余白：上下48px。左右はボックス最大1120pxの残りで、48px未満にはしない */
.c-cta__frame { position: relative; padding: 48px; border-radius: 8px; overflow: hidden; container-type: inline-size; }
.c-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-cta__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.c-cta__box {
  position: relative;
  z-index: 2;
  display: flex;
  /* 内側の余白：左右はボックス幅1120pxで80px → 818px表示時（ボックス幅706px）で40px へ比例して縮める。
     文章と写真の間は1120px時の比率（88px）で縮め、最小40px */
  gap: clamp(40px, 7.857cqi, 88px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(40px, 9.662cqi - 28.2px, 80px);
  border-radius: 8px;
  background: #fff;
}
.c-cta__body { flex: 1 1 0; min-width: 0; container-type: inline-size; } /* 文章と写真は左右1:1 */
.c-cta__title { font-weight: 800; font-size: 18px; line-height: 1.4; letter-spacing: 0.08em; }
.c-cta__text { margin-top: 8px; font-weight: 600; font-size: 12px; line-height: 1.6; letter-spacing: 0.08em; }
.c-cta__info { margin-top: 16px; font-size: 12px; line-height: 1.6; letter-spacing: 0.08em; }
.c-cta__info dt { color: var(--c-mint); font-weight: 700; }
.c-cta__time { white-space: nowrap; } /* 時間の表記は途中で改行しない */
.c-cta__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; } /* 横に入りきらなければ縦積み */
.c-cta__btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 1px solid var(--c-black);
  border-radius: 60px;
  background: var(--c-black);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.c-cta__btn img { width: 20px; height: 20px; }
/* 文章の幅が360px未満（ボタン内の左右余白が約24pxを切る＝画面幅 約1020px以下）ではボタンを縦積み */
@container (max-width: 359.98px) {
  .c-cta__btns { flex-direction: column; }
  .c-cta__btn { flex: none; padding: 16px; }
}
@media (hover: hover) {
  .c-cta__btn:hover { background: #fff; color: var(--c-black); }
  .c-cta__btn:hover img { filter: invert(1); }
}
.c-cta__photo { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; }
.c-cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; } /* 横が切れるときは右側（女の子の顔）を残す */
/* パララックス：JSが --parallax-slack（動く分の余白）を入れ、その分だけ画像を上下に大きくする */
.c-cta__photo img {
  top: calc(var(--parallax-slack, 0px) * -1);
  bottom: auto;
  height: calc(100% + var(--parallax-slack, 0px) * 2);
  will-change: transform;
}
/* 筆記体「One up」：1440px時の位置（右47px・下30px・幅399px）を基準に、右端に寄せて配置。
   枠の幅に合わせて縮め、右は16px未満にしない（見切れ防止） */
.c-cta__script {
  position: absolute;
  z-index: 3;
  right: max(16px, calc(50% - 665px));
  bottom: 30px;
  width: clamp(240px, 28%, 399px);
  pointer-events: none;
}
/* フッター直前に置く版（記事詳細ページなど。Figma 1719:1554）
   中身はTOPのCTAと同じ。背景を画面幅いっぱい・角丸なしにして、下のフッターにすき間なく付ける
   （フッター側に上の余白はないので、CTAの次にフッターを置けばぴったり付く）
   上の余白は0。現行サイトでは、CTA（.banner）自体に余白はなく、上の余白は直前の本文セクション（.single-post / .page-news / .contact など）の
   下の余白で作られているため、それをそのまま使う（＝現行と同じ余白）。SPの .c-cta { margin-top } より強くするため .c-cta.c-cta--full で指定 */
.c-cta.c-cta--full { margin-top: 0; padding: 0; }
.c-cta--full .c-cta__frame { border-radius: 0; }

/* ---------- SP（818px未満。現行サイトと同じ切り替え幅） ---------- */
@media not screen and (min-width: 818px) {
  /* ---------- CTA ---------- */
  .c-cta { margin-top: 80px; } /* SPのセクション間は80px（PCの120pxに対して） */
  .c-cta--after-about { margin-top: 40px; } /* ABOUTの下のCTAだけ詰めて40px */
  .c-cta__frame { padding: 16px; } /* 背景の枠と白いボックスの余白は四方16px */
  .c-cta__box {
    flex-direction: column-reverse;
    gap: 24px;
    padding: 24px 20px 32px;
  }
  .c-cta__body { flex: none; }
  .c-cta__photo { flex: none; aspect-ratio: 429 / 268; }
  .c-cta__btns { flex-direction: column; }
  .c-cta__btn { flex: none; padding: 16px; }
  /* SP：写真の内側右下（右・下8px）に収める。白地に重なると見えないため。
     写真の上端 = 枠16px + ボックス24px、写真の高さ = 写真の幅 × 268/429、ロゴの高さ = 160px × 399分の幅 */
  .c-cta__script {
    right: 44px;
    top: calc(40px + (100cqi - 40px) * 268 / 429 - 160px * 160 / 399 - 8px);
    bottom: auto;
    width: 160px;
  }
}
