@charset "UTF-8";

/*
  イポッチ LP スタイルシート

  目次（「3. ファースト」のように番号と名前で検索すると移動できます）
     1. 共通（変数・基本設定・ボタン・共通パーツ）
     2. ヘッダー・ナビゲーション  … .header
     3. ファーストビュー（メインビジュアル）  … .hero
        （お知らせ … #news）
     4. イポッチとは  … #about
     5. コース別教材（3つの柱・タブ・教材紹介）  … #experience
     6. 取り組み方のご紹介  … #howto
     7. 会費のご案内・ご入会手続き  … #courses / #admission
     8. 保護者の声  … .voices
     9. むすびのメッセージ  … #closing
    10. よくあるご質問  … #faq
    11. 資料請求・お問い合わせ  … #contact
    12. フッター  … .footer

  画面の幅
    1050px以下 … タブレット・小さめのパソコン
     960px以下 … メニューをボタンにまとめる
     760px以下 … スマホ
     374px以下 … 小さいスマホ（一部は 350px・520px）

  文字の大きさの目安
    本文・会費・日付 15〜16px ／ 補足 14〜15px ／ 写真の説明 13〜14px ／ 最小 12px
    （12pxより小さくしない）

  画像について
    本番サーバーは .webp を配らない（「ページが見つかりませんでした」になる）ため、画像は .jpg を使う。

  注意
    ・同じ場所の指定は、下に書いたものが優先されます。順番は入れ替えないでください。
    ・見出しの書体には、使う文字だけを入れています。新しい漢字を使うときは、
      「フォント」の追加分（-add.woff2）に文字を足してください。
*/

/* フォント */
@font-face {
  font-family: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/m-plus-rounded-1c-700.woff2') format('woff2');
}
@font-face {
  font-family: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/m-plus-rounded-1c-500.woff2') format('woff2');
}

/* 元のフォントにない文字を補う追加分（よくあるご質問・保護者の声・教材一覧などで使う文字） */
@font-face {
  font-family: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/m-plus-rounded-1c-700-add.woff2') format('woff2');
  unicode-range: U+2460, U+2461, U+2462, U+4e01, U+4e08, U+4e0b, U+4e0e, U+4eca, U+4ed6, U+4ee3, U+4ef6, U+4f11, U+4f3c, U+50cd, U+50cf, U+5143, U+5145, U+518d, U+51ac, U+5236, U+52a0, U+52b9, U+52df, U+5316, U+5370, U+53f7, U+5468, U+548c, U+54b2, U+54e1, U+56f2, U+578b, U+57fa, U+5831, U+5857, U+5883, U+58eb, U+591c, U+5922, U+592b, U+5947, U+597d, U+5a18, U+5a92, U+5b57, U+5b88, U+5b9d, U+5ba4, U+5bdd, U+5be7, U+5c71, U+5de5, U+5df1, U+5e30, U+5eab, U+5eb7, U+5f62, U+5f79, U+5f85, U+5fb3, U+5fc5, U+5fd9, U+5ff5, U+606f, U+6075, U+60a9, U+60f3, U+611b, U+614c, U+6162, U+616e, U+61a7, U+6211, U+6253, U+627f, U+62c5, U+6388, U+63a2, U+63c3, U+64b2, U+64cd, U+6574, U+65e9, U+65fa, U+6628, U+66ae, U+6700, U+670d, U+679d, U+6b32, U+6b8b, U+6c7d, U+6ca2, U+6d0b, U+6d17, U+6e29, U+6e2c, U+6e90, U+70b9, U+7121, U+7406, U+74b0, U+74f6, U+7652, U+76db, U+76e4, U+7740, U+77ac, U+78e8, U+793e, U+798f, U+7a1a, U+7b46, U+7b52, U+7bc9, U+7d04, U+7d0d, U+7d42, U+7d50, U+7dba, U+7dbf, U+7de8, U+7df4, U+7e26, U+7e54, U+805e, U+80af, U+80fd, U+8239, U+8272, U+828b, U+82bd, U+8449, U+8457, U+8981, U+89a7, U+89e6, U+8a00, U+8a18, U+8a3c, U+8a66, U+8aad, U+8ab0, U+8abf, U+8b1d, U+8ca0, U+8caf, U+8cb4, U+8d64, U+8d77, U+8f03, U+8fc4, U+8fce, U+8ff7, U+8ffd, U+9003, U+904b, U+9053, U+91cc, U+925b, U+93e1, U+9418, U+9580, U+9650, U+969b, U+96c6, U+96db, U+96f0, U+975e, U+9774, U+97f3, U+97ff, U+9803, U+98a8, U+990a, U+9999, U+9ad8, U+9e97;
}
@font-face {
  font-family: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/m-plus-rounded-1c-500-add.woff2') format('woff2');
  unicode-range: U+2460, U+2461, U+2462, U+4e01, U+4e08, U+4e0b, U+4e0e, U+4eca, U+4ed6, U+4ee3, U+4ef6, U+4f11, U+4f3c, U+50cd, U+50cf, U+5143, U+5145, U+518d, U+51ac, U+5236, U+52a0, U+52b9, U+52df, U+5316, U+5370, U+53f7, U+5468, U+548c, U+54b2, U+54e1, U+56f2, U+578b, U+57fa, U+5831, U+5857, U+5883, U+58eb, U+591c, U+5922, U+592b, U+5947, U+597d, U+5a18, U+5a92, U+5b57, U+5b88, U+5b9d, U+5ba4, U+5bdd, U+5be7, U+5c71, U+5de5, U+5df1, U+5e30, U+5eab, U+5eb7, U+5f62, U+5f79, U+5f85, U+5fb3, U+5fc5, U+5fd9, U+5ff5, U+606f, U+6075, U+60a9, U+60f3, U+611b, U+614c, U+6162, U+616e, U+61a7, U+6211, U+6253, U+627f, U+62c5, U+6388, U+63a2, U+63c3, U+64b2, U+64cd, U+6574, U+65e9, U+65fa, U+6628, U+66ae, U+6700, U+670d, U+679d, U+6b32, U+6b8b, U+6c7d, U+6ca2, U+6d0b, U+6d17, U+6e29, U+6e2c, U+6e90, U+70b9, U+7121, U+7406, U+74b0, U+74f6, U+7652, U+76db, U+76e4, U+7740, U+77ac, U+78e8, U+793e, U+798f, U+7a1a, U+7b46, U+7b52, U+7bc9, U+7d04, U+7d0d, U+7d42, U+7d50, U+7dba, U+7dbf, U+7de8, U+7df4, U+7e26, U+7e54, U+805e, U+80af, U+80fd, U+8239, U+8272, U+828b, U+82bd, U+8449, U+8457, U+8981, U+89a7, U+89e6, U+8a00, U+8a18, U+8a3c, U+8a66, U+8aad, U+8ab0, U+8abf, U+8b1d, U+8ca0, U+8caf, U+8cb4, U+8d64, U+8d77, U+8f03, U+8fc4, U+8fce, U+8ff7, U+8ffd, U+9003, U+904b, U+9053, U+91cc, U+925b, U+93e1, U+9418, U+9580, U+9650, U+969b, U+96c6, U+96db, U+96f0, U+975e, U+9774, U+97f3, U+97ff, U+9803, U+98a8, U+990a, U+9999, U+9ad8, U+9e97;
}


/* ==========================================================
   1. 共通（変数・基本設定・ボタン・共通パーツ）
   ========================================================== */

/* --- 色・書体（変数） --- */
:root {
  --ink: #2c444c;
  --blue: #3586a3;
  --deep: #246d87;
  --pink: #b94770;
  --line: #dce8e9;
  --heading: 'M PLUS Rounded 1c','Hiragino Maru Gothic ProN',sans-serif;
  --body: 'M PLUS Rounded 1c','Hiragino Maru Gothic ProN','Yu Gothic',Meiryo,sans-serif;
}

/* --- 基本設定 --- */
* {
  box-sizing: border-box;
}

html {
  /* スマホを横にしたとき、文字の大きさが勝手に変わらないようにする */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  background: #fff;
  font-weight: 500;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

figure,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #a33e66;
  outline-offset: 5px;
}

a:hover {
  color: var(--deep);
}

/* --- 横幅・余白 --- */
.wrap {
  width: min(1120px,calc(100% - 80px));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

/* --- セクション見出し --- */
.section-heading {
  text-align: center;
  margin: 0 auto 64px;
}

.section-heading p:last-child {
  margin-top: 20px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 14px;
  letter-spacing: .06em;
}

h2 {
  font-size: 34px;
}

/* --- ボタン --- */
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 40px;
  background: var(--deep);
  color: white;
  font-weight: 600;
  text-align: center;
  line-height: 1.65;
  transition: background .2s,transform .2s;
  box-shadow: 0 4px 0 #174c6014;
}

.button:hover {
  background: #185670;
  color: #fff;
  transform: translateY(-2px);
}

.button.secondary {
  background: white;
  color: var(--deep);
  border: 1px solid var(--blue);
  box-shadow: none;
}

.button.secondary:hover {
  background: #f2f8f9;
}

.button.small {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 22px;
}

/* --- 小さな文字・補助 --- */
.section-footnote {
  font-size: 14px;
  margin-top: 26px;
  text-align: center;
}

.fine,
.caption,
.section-footnote {
  color: #52676d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sp {
  display: none;
}

/* --- 写真 --- */
.photo-original {
  display: block;
  height: auto!important;
  max-height: none!important;
  aspect-ratio: auto!important;
  object-fit: contain!important;
  clip-path: none!important;
  mask: none!important;
  -webkit-mask: none!important;
  transform: none!important;
}

/* --- 文章・リストの共通設定 --- */
main p,
main blockquote,
main dl,
main li {
  line-height: 1.75!important;
}

main h2,
main h3,
main h4 {
  font-weight: 700;
  line-height: 1.55!important;
}

main .course-facts strong {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
.pillar-circle span,
.pillar-label,
.howto-lead {
  font-family: var(--heading)!important;
}

body,
p,
blockquote,
li,
dl {
  letter-spacing: .03em;
}

h1,
h2,
h3,
h4 {
  letter-spacing: .03em!important;
}

.section {
  padding-block: 116px;
}

[hidden] {
  display: none!important;
}

/* --- 入会ボタン --- */
.button.enrollment-link {
  background: #ea7e95;
  font-size: 18px;
  font-weight: 700;
  min-height: 56px;
  box-shadow: 0 4px 0 #a5486420;
}

.button.enrollment-link:hover {
  background: #e4738d;
}

.button.enrollment-link,
.button.enrollment-link:hover {
  color: #fff;
}

/* タブレット以下（1050px以下） */
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 56px);
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 86px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .sp {
    display: inline;
  }

  .eyebrow {
    font-size: 13px;
    margin-bottom: 13px;
  }

  h2 {
    font-size: 27px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading p:last-child {
    margin-top: 18px;
  }

  .section-footnote {
    margin-top: 24px;
    font-size: 13px;
  }

  .section-heading p:last-child,
  .experience-copy>p,
  .gentle-note p,
  .contact p:not(.eyebrow) {
    font-size: 16px;
  }

  .section {
    padding-block: 88px;
  }
}

/* 小さいスマホ（374px以下） */
@media (max-width: 374px) {
  .wrap {
    width: calc(100% - 32px);
  }
}

/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ==========================================================
   2. ヘッダー・ナビゲーション
   ========================================================== */

/* --- メニューから移動したときの位置 ---
   見出しがヘッダーの下 約45px に来るよう、セクションの上の余白の分だけ詰める */
:is(#about,#experience,#voices,#courses,#faq,#admission,#contact).section {
  scroll-margin-top: -76px;
}

#howto.section {
  scroll-margin-top: -20px;
}

@media (max-width: 760px) {
  :is(#about,#experience,#voices,#courses,#faq,#admission,#contact).section {
    scroll-margin-top: -54px;
  }

  #about.section.wrap {
    scroll-margin-top: -26px;
  }

  #howto.section {
    scroll-margin-top: -22px;
  }
}

/* --- 本文へ移動（キーボード操作用） --- */
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #fff;
  z-index: 100;
  padding: 12px;
}

.skip:focus {
  top: 5px;
}

/* --- ヘッダー --- */
.header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(30px,calc((100vw - 1240px)/2));
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e4eded;
  background: #fff;
}

/* --- ロゴ --- */
.brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand img {
  width: 115px;
  height: 69px;
}

.brand span {
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: .06em;
  font-size: 14px;
}

/* --- パソコン用メニュー --- */
.desktop-nav {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  gap: 21px;
}

.desktop-nav>a:not(.button) {
  padding-block: 12px;
}

/* --- スマホ用メニュー --- */
.menu-toggle,
.mobile-menu {
  display: none;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }
}

/* 小さめのパソコン以下（1200px以下）: メニューが入るよう、ロゴ横の文字を隠す */
@media (max-width: 1200px) {
  .brand span {
    display: none;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .header {
    min-height: 78px;
    padding: 6px 20px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 98px;
    height: 59px;
  }

  .brand span {
    display: block;
    line-height: 1.8;
    font-size: 13px;
  }
}

/* 幅の狭いタブレット・スマホ（960px以下）: メニューをボタンにまとめる
   幅を変えるときは、script.js の 961px も一緒に変える */
@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ink);
    padding: 5px 0 0;
    width: 52px;
    min-height: 58px;
    gap: 8px;
    cursor: pointer;
  }

  .menu-label {
    font-size: 12px;
    letter-spacing: .04em;
  }

  .menu-lines {
    width: 22px;
    height: 13px;
    position: relative;
    border-top: 1px solid var(--deep);
    border-bottom: 1px solid var(--deep);
  }

  .menu-lines:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    border-top: 1px solid var(--deep);
  }

  .menu-toggle[aria-expanded=true] .menu-lines {
    border-bottom: 0;
    border-top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded=true] .menu-lines:after {
    top: 6px;
  }

  .menu-toggle[aria-expanded=true] .menu-lines:before {
    content: '';
    position: absolute;
    left: 10px;
    top: -4px;
    height: 22px;
    border-left: 1px solid var(--deep);
  }

  .mobile-menu:not([hidden]) {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 15px #2c444c0b;
    /* 縦の短い画面では、メニューの中をスクロールできるようにする */
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 25px 20px;
    flex-direction: column;
  }

  .mobile-menu a {
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* 小さいスマホ（374px以下） */
@media (max-width: 374px) {
  .header {
    padding-inline: 16px;
  }
}


/* ==========================================================
   3. ファーストビュー（メインビジュアル）
   ========================================================== */

/* --- 全体 --- */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-v5 {
  padding: 0;
}

.opening-message {
  scroll-margin-top: 115px;
}

.hero-v5 h1 {
  font-weight: 700;
}

.hero-v5 .hero-service {
  margin: 0 0 5px;
}

.hero-v5 .hero-age {
  color: #52676d;
  margin: 0;
}

.hero-v5 .hero-button {
  margin: 0;
}

/* --- 区切りの風景画 --- */
.opening-landscape {
  height: 130px;
  background: url('assets/river-cover.jpg') center top/cover no-repeat;
  mask-image: linear-gradient(to bottom,transparent,#000 14%,#000 88%,transparent);
  -webkit-mask-image: linear-gradient(to bottom,transparent,#000 14%,#000 88%,transparent);
}

main>:not(.hero) img.photo-original {
  border-radius: 16px!important;
}

/* --- レイアウト --- */
.hero-v22 {
  background: #fff;
  overflow: hidden;
}

.hero-v22 .hero-cover {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: 54px;
  align-items: center;
  width: min(1240px,calc(100% - 72px));
  margin: auto;
  padding: 24px 0 50px;
}

/* --- 豆形の写真 --- */
.bean-collage {
  position: relative;
  width: 100%;
  aspect-ratio: .97;
  isolation: isolate;
}

.hero-bean {
  position: absolute;
  margin: 0;
  --delay: 0s;
  --float-delay: 0s;
}

.bean-calendar {
  --delay: .22s;
  --float-delay: -2.4s;
}

.bean-wood {
  --delay: .44s;
  --float-delay: -4.2s;
  z-index: 4;
}

.bean-float {
  position: relative;
  width: 100%;
  height: 100%;
}

.bean-window,
.bean-halo {
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.bean-window {
  transform: rotate(var(--bean-angle));
  transform-origin: 50% 50%;
  overflow: hidden;
  z-index: 1;
}

.bean-halo {
  background: var(--halo-color);
  z-index: 0;
}

.bean-window img {
  width: 100%;
  height: 100%;
  max-width: none;
  transform-origin: 50% 50%;
}

/* --- 見出し・説明・ボタン --- */
.hero-v22 .opening-message {
  width: 100%;
  max-width: none;
  padding: 0;
  text-align: left;
  position: relative;
  z-index: 5;
}

.hero-v22 h1 {
  font-size: clamp(34px,3.25vw,45px);
  line-height: 1.4;
  margin: 0 0 28px;
  color: #205f79;
}

.hero-v22 .hero-service {
  font-size: 15px;
}

.hero-v22 .hero-age {
  font-size: 15px;
}

.hero-v22 .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 28px;
}

.hero-v22 .hero-actions .button {
  min-width: 190px;
}

/* --- 動き（script.jsが is-animated を付ける） --- */
.hero-v22.is-animated .hero-bean {
  animation: bean-arrive .85s cubic-bezier(.2,.7,.25,1) var(--delay) both;
}

.hero-v22.is-animated .bean-float {
  animation: bean-float 7s ease-in-out var(--float-delay) infinite alternate;
}

.hero-v22.is-animated .bean-halo {
  animation: bean-halo-sway 8s ease-in-out var(--float-delay) infinite alternate;
}

.hero-v22.is-offscreen * {
  animation-play-state: paused!important;
}

.hero-v22 .bean-calendar img {
  filter: saturate(1.18) brightness(1.02) contrast(1.035);
}

.hero-v22 .bean-wood img {
  filter: saturate(1.24) brightness(1.045) contrast(1.055);
}

.bean-backdrops {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- 写真ごとの位置と形（ボール・カレンダー・木） --- */
.hero-v22 .bean-ball {
  --halo-color: #c2e2f1;
  --halo-x: -1.8%;
  --halo-y: -.8%;
  --bean-angle: 0deg;
  top: 16%;
  aspect-ratio: .75;
  z-index: 3;
  /* 元ファイル: assets/hero-ball-mask-v27.svg（直接開いても表示されるよう埋め込み） */
  --bean-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 533' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M267 20C352 4 399 86 389 203C376 350 282 487 174 517C79 530 10 487 12 407C8 354 24 321 63 276C105 228 154 193 165 135C174 77 195 34 267 20Z'/%3E%3C/svg%3E");
  left: 2.5%;
  width: 74%;
}

.hero-v22 .bean-calendar {
  --halo-color: #f1bfd2;
  --halo-x: 2%;
  --halo-y: .8%;
  --bean-angle: 0deg;
  /* 元ファイル: assets/hero-calendar-mask-v26.svg（直接開いても表示されるよう埋め込み） */
  --bean-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 555' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M256 12C348 -3 401 82 397 216C394 361 297 498 187 537C104 566 25 534 15 444C4 345 37 197 94 102C138 37 198 12 256 12Z'/%3E%3C/svg%3E");
  right: 0;
  top: 0;
  width: 42%;
  aspect-ratio: .75;
  z-index: 2;
}

.hero-v22 .bean-wood {
  --halo-color: #c8e2cd;
  --halo-x: 2%;
  --halo-y: .8%;
  --bean-angle: 0deg;
  /* 元ファイル: assets/hero-wood-mask-v26.svg（直接開いても表示されるよう埋め込み） */
  --bean-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 533' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M270 12C356 6 399 82 397 209C405 336 379 424 295 487C210 552 66 541 21 460C-19 391 16 292 75 204C132 117 194 25 270 12Z'/%3E%3C/svg%3E");
  right: 0;
  top: 54%;
  width: 52%;
  aspect-ratio: .75;
}

.bean-backdrop .bean-halo {
  transform-origin: 50% 50%;
}

.hero-v22 .bean-window,
.hero-v22 .bean-halo {
  -webkit-mask-image: var(--bean-mask);
  mask-image: var(--bean-mask);
}

.hero-v22 .bean-window img {
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero-v22 .bean-ball img {
  filter: saturate(1.25) brightness(1.045) contrast(1.055);
  transform: translateX(2%);
}

/* --- 写真の後ろの色の形 --- */
.hero-v22 .bean-backdrop.bean-ball {
  --halo-x: -3%;
  --halo-y: -8%;
  --halo-angle: -12deg;
  --halo-scale: 1.10;
}

.hero-v22 .bean-backdrop.bean-calendar {
  --halo-x: -5%;
  --halo-y: 10%;
  --halo-angle: -18deg;
  --halo-scale: 1.10;
}

.hero-v22 .bean-backdrop.bean-wood {
  --halo-y: 4%;
  --halo-angle: 10deg;
  --halo-scale: 1.08;
  --halo-x: -10%;
}

.hero-v22 .bean-backdrop .bean-halo {
  transform: translate(var(--halo-x),var(--halo-y)) rotate(var(--halo-angle)) scale(var(--halo-scale));
}

.bean-backdrop.bean-ball .bean-float::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #f7d8e4;
  -webkit-mask-image: var(--bean-mask);
  mask-image: var(--bean-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translate(4%,7%) rotate(6deg) scale(1.035);
  transform-origin: 50% 50%;
}

.hero-v22.is-animated .bean-backdrop .bean-halo {
  animation: bean-clear-sway-v29 5s ease-in-out var(--float-delay) infinite alternate;
  animation-name: bean-wide-sway-v31;
}

.hero-v22.is-animated .bean-backdrop.bean-ball .bean-float::before {
  animation: bean-pink-sway-v32 5s ease-in-out -1.8s infinite alternate;
  animation-play-state: inherit;
}

.hero-v22 .hero-identity-logo {
  display: block;
  width: 220px;
  max-width: 76%;
  height: auto;
  margin: 22px 0 0;
}

/* タブレット・パソコン（761px以上） */
@media (min-width: 761px) {
  .hero-v22 .bean-collage {
    aspect-ratio: .95;
  }

  .hero-v22 .bean-ball {
    top: 10%;
    width: 68%;
  }

  .hero-v22 .bean-calendar {
    width: 43%;
  }

  .hero-v22 .bean-wood {
    top: 47%;
    width: 43%;
  }
}

/* タブレット（761〜1050px） */
@media (min-width: 761px) and (max-width: 1050px) {
  .hero-v22 .hero-cover {
    width: calc(100% - 48px);
    gap: 30px;
    grid-template-columns: 1.1fr 1fr;
    padding-top: 35px;
  }

  .hero-v22 h1 {
    font-size: 32px;
  }

  .hero-v22 .hero-service {
    font-size: 15px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .opening-message {
    scroll-margin-top: 90px;
  }

  .hero-v5 .hero-service {
    margin-bottom: 5px;
  }

  .hero-v5 .hero-button {
    padding: 11px 30px;
  }

  .opening-landscape {
    height: 100px;
    background-size: max(100%,594px) auto;
    background-position: 42% top;
  }

  .hero-v5 .hero-actions .button.enrollment-link {
    font-size: 18px;
    min-height: 56px;
  }

  .hero-v22 .hero-cover {
    display: block;
    width: 100%;
    max-width: 560px;
    padding: 12px 0 36px;
  }

  .bean-collage {
    width: 100%;
  }

  .hero-v22 .opening-message {
    width: calc(100% - 48px);
    max-width: 480px;
    margin: 24px auto 0;
    text-align: center;
  }

  .hero-v22 h1 {
    font-size: clamp(29px,8.7vw,40px);
    line-height: 1.4;
    margin: 0 0 25px;
    text-align: left;
  }

  .hero-v22 .hero-service {
    font-size: 15px;
  }

  .hero-v22 .hero-actions {
    align-items: center;
    margin-top: 25px;
    gap: 18px;
  }

  .hero-v22 .bean-collage {
    aspect-ratio: .76;
  }

  .hero-v22 .bean-backdrop.bean-wood {
    --halo-x: 18%;
  }

  .hero-v22 .hero-identity-logo {
    margin: 22px auto 0;
  }
}

/* --- ファーストビューの背景・文字・ボタン --- */
.hero-v22 {
  background: radial-gradient(circle at 88% 12%,#fff3c9 0,#fff3c900 34%),linear-gradient(180deg,#fcf8ed 0,#f7f4ea 100%);
  /* 下のふちをゆるい曲線にして、次の白い背景につなぐ */
  padding-bottom: 54px;
}

/* --- 下のふちの曲線 --- */
.hero-v22::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: -8%;
  right: -8%;
  bottom: -44px;
  height: 88px;
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  background: #fff;
  pointer-events: none;
}

.hero-v22 .hero-cover {
  position: relative;
  z-index: 1;
  width: min(1240px,calc(100% - 72px));
  padding: 26px 0 36px;
}

.hero-v22 .bean-collage {
  max-width: 660px;
  margin: 0 auto;
}

.hero-v22 h1 {
  margin-bottom: 26px;
  font-size: clamp(42px,4.5vw,62px);
  line-height: 1.45;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* --- 見出しの黄色い線 --- */
.hero-mark {
  background: linear-gradient(transparent 70%,#ffe28a 70%,#ffe28a 94%,transparent 94%);
}

/* --- ロゴと教材の説明 --- */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-v22 .hero-identity-logo {
  flex: none;
  width: 158px;
  max-width: none;
  margin: 0;
}

.hero-v22 .hero-service {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.hero-v22 .hero-actions {
  flex-flow: row wrap;
  align-items: center;
  gap: 18px 14px;
  max-width: 460px;
  margin-top: 30px;
}

.hero-v22 .hero-actions .button {
  min-width: 212px;
  min-height: 62px;
  padding: 12px 16px;
  font-size: 18px;
}

.hero-v22 .hero-actions .enrollment-link {
  box-shadow: 0 6px 16px #d4567a47;
}

/* タブレット（761〜1050px） */
@media (min-width: 761px) and (max-width: 1050px) {
  .hero-v22 .hero-cover {
    width: calc(100% - 48px);
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .hero-v22 h1 {
    font-size: clamp(38px,5vw,46px);
  }

  .hero-identity {
    gap: 14px;
  }

  .hero-v22 .hero-identity-logo {
    width: 126px;
  }

  .hero-v22 .hero-service {
    font-size: 15px;
  }

  .hero-v22 .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-v22 .hero-actions .button {
    min-width: 260px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .hero-v22 {
    padding-bottom: 40px;
  }

  .hero-v22::after {
    bottom: -26px;
    height: 52px;
  }

  .hero-v22 .hero-cover {
    width: 100%;
    padding: 8px 0 20px;
  }

  /* 見出しとボタンが早く見えるよう、写真は少し小さめ */
  .hero-v22 .bean-collage {
    width: min(90%,46vh,460px);
    min-width: min(72%,360px);
    aspect-ratio: .95;
  }

  .hero-v22 .bean-ball {
    top: 10%;
    width: 68%;
  }

  .hero-v22 .bean-calendar {
    width: 43%;
  }

  .hero-v22 .bean-wood {
    top: 47%;
    width: 43%;
  }

  .hero-v22 .bean-backdrop.bean-wood {
    --halo-x: -10%;
  }

  .hero-v22 .opening-message {
    width: calc(100% - 40px);
    margin-top: 10px;
  }

  .hero-v22 h1 {
    margin: 0 0 14px;
    font-size: clamp(35px,10.6vw,50px);
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
  }

  .hero-identity {
    justify-content: center;
    gap: 14px;
    text-align: left;
  }

  .hero-v22 .hero-identity-logo {
    width: 104px;
    margin: 0;
  }

  .hero-v22 .hero-service {
    margin: 0 0 2px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-v22 .hero-age {
    font-size: 14px;
  }

  .hero-v22 .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
    margin: 18px auto 0;
  }

  .hero-v22 .hero-actions .button,
  .hero-v5 .hero-actions .button.enrollment-link {
    min-width: 0;
    min-height: 58px;
    padding: 10px 4px;
    font-size: clamp(14px,4vw,17px);
    white-space: nowrap;
  }
}

/* 小さいスマホ（350px以下） */
@media (max-width: 350px) {
  .hero-v22 h1 {
    font-size: 33px;
  }

  .hero-identity {
    gap: 10px;
  }

  .hero-v22 .hero-identity-logo {
    width: 96px;
  }

  .hero-v22 .hero-service {
    font-size: 14px;
  }
}

/* 切り抜きに対応していないブラウザ用 */
@supports not ((mask-image:url('')) or (-webkit-mask-image:url(''))) {
  .bean-window,
  .bean-halo {
    border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%;
  }
}

/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion:reduce) {
  .hero-v22 .hero-bean,
  .hero-v22 .bean-float {
    animation: none!important;
  }

  .hero-v22 .bean-backdrop .bean-halo {
    animation: none!important;
  }

  .hero-v22 .bean-backdrop.bean-ball .bean-float::before {
    animation: none!important;
  }
}

/* --- 動きの定義 --- */
@keyframes bean-arrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bean-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}

@keyframes bean-halo-sway {
  from {
    transform: translate(var(--halo-x),var(--halo-y)) rotate(calc(var(--bean-angle) - 15deg)) scale(1.025);
  }
  to {
    transform: translate(calc(var(--halo-x) + 3%),calc(var(--halo-y) + 2%)) rotate(calc(var(--bean-angle) + 2deg)) scale(1.04);
  }
}

@keyframes bean-clear-sway-v29 {
  from {
    transform: translate(calc(var(--halo-x) - 2%),calc(var(--halo-y) - 2%)) rotate(calc(var(--halo-angle) - 3deg)) scale(var(--halo-scale));
  }
  to {
    transform: translate(calc(var(--halo-x) + 2%),calc(var(--halo-y) + 2%)) rotate(calc(var(--halo-angle) + 3deg)) scale(var(--halo-scale));
  }
}

@keyframes bean-wide-sway-v31 {
  from {
    transform: translate(calc(var(--halo-x) - 4%),calc(var(--halo-y) - 4%)) rotate(calc(var(--halo-angle) - 5deg)) scale(var(--halo-scale));
  }
  to {
    transform: translate(calc(var(--halo-x) + 4%),calc(var(--halo-y) + 4%)) rotate(calc(var(--halo-angle) + 5deg)) scale(var(--halo-scale));
  }
}

@keyframes bean-pink-sway-v32 {
  from {
    transform: translate(0%,3%) rotate(1deg) scale(1.035);
  }
  to {
    transform: translate(8%,11%) rotate(11deg) scale(1.035);
  }
}


/* --- お知らせ（ファーストビューのすぐ下） --- */
.news {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1080px;
  margin-top: 12px;
  padding: 26px 36px;
  border: 2px solid #cfe5ee;
  border-radius: 24px;
  background: #fff;
}

.news h2 {
  margin: 0;
  color: #205f79;
  font-size: 24px;
  text-align: center;
}

.news-list {
  margin: 0;
  padding: 0 0 0 32px;
  border-left: 2px dotted #b5d5e2;
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 0;
  padding: 16px 0;
}

.news-list li + li {
  border-top: 1px solid var(--line);
}

.news-label {
  flex: none;
  padding: 2px 14px;
  border-radius: 16px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.news-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.news-text p + p {
  margin-top: 4px;
}

.news-text strong {
  white-space: nowrap;
  background: linear-gradient(transparent 68%,#ffe28a 68%);
  font-weight: 700;
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .news {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 20px 10px;
  }

  .news h2 {
    font-size: 21px;
  }

  .news-list {
    padding: 0;
    border-left: 0;
  }

  .news-list li {
    flex-direction: column;
    gap: 8px;
  }
}


/* --- お試し教材プレゼントの案内 --- */
/* ファーストビューの吹き出し */
.gift-balloon {
  position: relative;
  width: fit-content;
  margin: 28px 0 0;
  padding: 10px 24px;
  border-radius: 28px;
  background: #ffe28a;
  color: #2c444c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}

.gift-balloon b {
  color: #a8325c;
  font-size: 18px;
}

.gift-balloon::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 94px;
  border: solid transparent;
  border-width: 13px 11px 0;
  border-top-color: #ffe28a;
}

.gift-balloon + .hero-actions,
.hero-v22 .gift-balloon + .hero-actions {
  margin-top: 20px;
}

/* 教材・会費の下の帯 */
.gift-band {
  display: grid;
  grid-template-columns: 124px 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 960px;
  margin: 56px auto 0;
  padding: 24px 36px;
  border-radius: 28px;
  background: #fff3c9;
}

.gift-band > img {
  width: 124px;
  height: 124px;
  border: 5px solid #fff;
  border-radius: 50%!important;
  object-fit: cover;
  object-position: center 58%;
}

.gift-band p {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}

.gift-band .gift-title {
  color: #a8325c;
  font-family: var(--heading);
  font-size: 27px;
}

.gift-band .button {
  min-width: 220px;
  min-height: 60px;
  font-size: 18px;
  font-weight: 700;
}

/* 教材の下の帯は、次のセクションとの間をあける */
.wrap:not(.section) > .gift-band {
  margin-top: 0;
  margin-bottom: 90px;
}

/* 資料請求カードの中 */
.contact-gift {
  margin: 0 0 14px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #fff3c9;
  font-weight: 700;
  line-height: 1.6;
}

.contact-gift b,
.gift-balloon b {
  white-space: nowrap;
}

.contact-gift b {
  color: #a8325c;
  font-size: 18px;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .gift-band {
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 22px 26px;
  }

  .gift-band > img {
    width: 100px;
    height: 100px;
  }

  .gift-band .gift-title {
    font-size: 23px;
  }

  .gift-band .button {
    min-width: 190px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .gift-balloon {
    margin: 16px auto 0;
    padding: 7px 18px;
    font-size: 14px;
  }

  .gift-balloon b {
    font-size: 16px;
  }

  .gift-balloon::after {
    left: 25%;
  }

  .hero-v22 .gift-balloon + .hero-actions {
    margin-top: 18px;
  }

  .gift-band {
    grid-template-columns: 92px minmax(0,1fr);
    gap: 16px;
    max-width: 520px;
    margin-top: 36px;
    padding: 22px 20px;
  }

  .gift-band > img {
    width: 92px;
    height: 92px;
  }

  .gift-band .gift-title {
    font-size: 21px;
  }

  .gift-band .button {
    grid-column: 1/-1;
    width: 100%;
    max-width: 340px;
    min-width: 0;
    margin: 0 auto;
  }
}

/* 小さいスマホ（374px以下） */
@media (max-width: 374px) {
  .gift-band {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 12px;
  }

  .gift-band > img {
    width: 72px;
    height: 72px;
  }

  .contact-gift {
    padding-inline: 6px;
  }

  .gift-band .gift-title {
    font-size: 20px;
  }
}


/* ==========================================================
   4. イポッチとは
   ========================================================== */

/* --- イポッチの紹介 --- */
.about {
  padding-block: 84px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 70px;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}

.about h2 {
  margin-bottom: 22px;
}

.about .identity {
  margin-bottom: 16px;
}

.about-intro p:not(.eyebrow) {
  font-size: 18px;
}

.about strong {
  background: linear-gradient(transparent 65%,#fdeeb5 65%);
  font-weight: 700;
}

/* --- 写真 --- */
.about-photo {
  position: relative;
  aspect-ratio: .75;
  --about-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 533' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M267 20C352 4 399 86 389 203C376 350 282 487 174 517C79 530 10 487 12 407C8 354 24 321 63 276C105 228 154 193 165 135C174 77 195 34 267 20Z'/%3E%3C/svg%3E");
}

.about-photo:before,
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask: var(--about-mask) center/100% 100% no-repeat;
  mask: var(--about-mask) center/100% 100% no-repeat;
}

.about-photo:before {
  content: '';
  background: #c8e2cd;
  transform: translate(-5%,3%) rotate(-8deg) scale(1.04);
}

.about-photo img {
  object-fit: cover;
}

/* --- 「子どもの育ち」に関するたいせつなこと --- */
.about-philosophy {
  margin-top: 64px;
  scroll-margin-top: 110px;
  text-align: center;
}

.about-philosophy h2 {
  color: var(--deep);
  font-size: 28px;
}

/* --- 悩みの吹き出し --- */
.about-worry {
  max-width: 760px;
  margin: 0 auto;
}

.about-worry ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.about-worry li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  border-radius: 22px;
  background: #e7f3f9;
  font-weight: 700;
}

.about-worry li span {
  word-break: keep-all;
}

.about-worry li:after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  border: 8px solid transparent;
  border-top: 12px solid #e7f3f9;
  border-bottom: 0;
  transform: translateX(-50%);
}

.about-worry p,
.about-worry li,
.about-answer p,
.about-closing {
  text-wrap: balance;
}

/* --- 伝えたいこと --- */
.about-answer {
  max-width: 900px;
  margin: 44px auto 0;
  padding: 38px 44px;
  border-radius: 24px;
  background: #fbf0f4;
}

.about-answer p:first-child {
  margin-bottom: 14px;
  font-size: 21px;
}

.about-answer strong {
  background: linear-gradient(transparent 65%,#f9cfd9 65%);
}

/* --- 3つのポイント --- */
.about-points {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.about-points li {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--point-color);
  border-radius: 16px;
}

.about-points li:nth-child(1) { --point-color: #64bad4; }
.about-points li:nth-child(2) { --point-color: #e48aab; }
.about-points li:nth-child(3) { --point-color: #67bb94; }

.about-points h3 {
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 20px;
}

.about-closing {
  max-width: 760px;
  margin: 44px auto 0;
}

/* --- 署名ロゴ --- */
.philosophy-signature {
  width: 100%;
  max-width: 400px;
  margin: 28px auto 0;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .about-intro {
    grid-template-columns: 1fr 270px;
    gap: 44px;
  }

  .about-points {
    gap: 16px;
  }

  .about-points li {
    padding: 22px 18px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .about {
    padding-block: 60px 64px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-intro p:not(.eyebrow) {
    font-size: 17px;
  }

  .about-photo {
    width: 72%;
    max-width: 290px;
    margin-inline: auto;
  }

  .about-philosophy {
    margin-top: 52px;
    scroll-margin-top: 100px;
  }

  .about-philosophy h2 {
    font-size: 23px;
  }

  .about-worry p,
  .about-answer,
  .about-closing {
    text-align: left;
  }

  .about-worry ul {
    grid-template-columns: 1fr;
  }

  .about-answer {
    margin-top: 32px;
    padding: 26px 22px;
  }

  .about-answer p:first-child {
    font-size: 18px;
  }

  .about-points {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-points li {
    padding: 22px 20px;
  }

  .about-closing {
    margin-top: 32px;
  }

}


/* ==========================================================
   5. コース別教材（3つの柱・タブ・教材紹介）
   ========================================================== */

/* --- コースの絵柄（雲・太陽・虹・星） --- */
.motif {
  display: block;
  position: relative;
  width: 44px;
  height: 36px;
  margin: 0 0 13px;
}

.cloud {
  width: 41px;
  height: 15px;
  background: #e1f0f8;
  border-radius: 12px;
  margin-top: 13px;
}

.cloud:before,
.cloud:after {
  content: '';
  position: absolute;
  background: #e1f0f8;
  border-radius: 50%;
}

.cloud:before {
  width: 21px;
  height: 21px;
  top: -10px;
  left: 5px;
}

.cloud:after {
  width: 25px;
  height: 25px;
  left: 15px;
  top: -14px;
}

.sun {
  background: #f7cf6c;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  margin: 5px 7px 15px;
  outline: 2px dotted #edc25b;
  outline-offset: 5px;
}

.rainbow {
  height: 26px;
  width: 43px;
  border: 5px solid #eaa0b3;
  border-bottom: 0;
  border-radius: 45px 45px 0 0;
  box-shadow: inset 0 0 0 4px #f4cf7b;
  margin-top: 6px;
}

.rainbow:after {
  content: '';
  position: absolute;
  inset: 5px 4px 0;
  border: 4px solid #93c7bc;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}

.galaxy {
  font-size: 49px;
  line-height: .7;
  color: #8d8bbb;
  font-style: normal;
  text-align: center;
  margin-top: 0;
}

/* --- 教材の紹介（写真と文章） --- */
.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 104px;
}

.experience-visual {
  position: relative;
  min-height: 0;
  padding: 0;
  width: 100%;
  margin: 0;
}

.main-visual {
  position: relative;
}

.main-visual figcaption {
  border-radius: 4px;
  bottom: -42px;
  left: 0;
  line-height: 1.7;
}

.material-visual {
  right: 0;
  bottom: 0;
}

.material-visual img {
  background: #fff;
}

.material-visual figcaption {
  line-height: 1.7;
}

.expression .experience-visual {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
}

.expression .experience-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.expression .main-visual>img {
  object-position: center;
}

.grow .main-visual>img {
  background: #f9f8f5;
}

.grow .material-visual {
  bottom: 18px;
  width: 100%;
}

/* --- 3つの柱の図 --- */
.pillars-figure {
  text-align: center;
}

.pillars-venn {
  position: relative;
  width: 100%;
  aspect-ratio: 1.08;
  isolation: isolate;
}

.pillar-circle {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 62%;
  aspect-ratio: 1;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  mix-blend-mode: multiply;
  text-align: center;
}

.pillar-circle span {
  line-height: 1.5;
  position: absolute;
  letter-spacing: .03em;
}

.circle-life {
  top: 0;
  left: 19%;
  background-image: url('assets/watercolor-blue-v3.jpg');
  color: #16475b;
}

.circle-expression {
  bottom: 0;
  left: 0;
  background-image: url('assets/watercolor-pink-v3.jpg');
  color: #682840;
}

.circle-grow {
  bottom: 0;
  right: 0;
  background-image: url('assets/watercolor-green-v3.jpg');
  color: #164832;
}

.pillar-circle:hover {
  filter: brightness(.98);
  color: #173f50;
}

.pillar-circle:focus-visible {
  outline: 3px solid #173f50;
  outline-offset: 5px;
}

.experience .main-visual {
  width: 100%;
  margin: 0;
}

.experience .main-visual>img {
  width: 100%;
}

.experience .main-visual figcaption {
  position: static;
  max-width: none;
  background: transparent;
  transform: none;
  font-family: var(--body);
  font-size: 13px;
  text-align: left;
  margin-top: 9px;
  padding: 0;
  color: #52676d;
}

.experience .material-visual {
  position: static;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 20px;
  padding: 18px 0 0;
  transform: none;
  box-shadow: none;
  background: transparent;
  border-top: 0;
}

.experience .material-visual img {
  width: 44%;
  flex-shrink: 0;
}

.experience .material-visual figcaption {
  flex: 1;
  padding: 0;
  font-size: 14px;
  text-align: left;
}

.expression {
  grid-template-columns: .9fr 1.2fr;
  gap: 60px;
}

.grow .main-visual {
  width: 100%;
}

/* --- 柱の名前ラベル --- */
.pillar-label {
  display: inline-block;
  border-bottom: 3px solid;
}

.pillar-blue {
  color: #246d87;
  border-color: #64bad4;
}

.pillar-pink {
  color: #9f3c62;
  border-color: #e48aab;
}

.pillar-green {
  color: #2e7251;
  border-color: #67bb94;
}

.circle-life span {
  top: 22%;
  left: 0;
  width: 100%;
}

.circle-expression span {
  top: 44%;
  left: 0;
  width: 72%;
}

.circle-grow span {
  top: 44%;
  right: 0;
  width: 72%;
}

.pillar-circle span,
.pillar-label {
  font-weight: 700;
}

.experiences>.section-heading {
  margin-bottom: 36px;
}

/* --- コース切り替えタブ --- */
.course-tabs {
  position: sticky;
  top: 100px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding: 6px 0;
  background: #fff;
  gap: 6px;
  padding-bottom: 0;
  border-bottom: 0;
}

.course-tabs button {
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  min-width: 0;
  min-height: 48px;
  line-height: 1.3;
  letter-spacing: .03em;
}

.course-tabs button span {
  font-size: 17px;
  font-weight: 700;
}

.course-tabs button small {
  font-size: 13px;
  white-space: nowrap;
}

/* --- 3つの柱の説明 --- */
.pillar-overview {
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 64px;
  display: block;
  max-width: 800px;
  margin: 0 auto 38px;
}

.pillar-overview .fine {
  font-size: 15px;
}

/* --- コースの見出し --- */
.selected-course-heading {
  text-align: center;
  margin-top: 0;
}

.selected-course-heading h3 {
  font-size: 27px;
  color: var(--deep);
}

.selected-course-heading p {
  font-size: 15px;
  margin-top: 6px;
}

/* --- タブの中身 --- */
.course-panel {
  outline-offset: 6px;
  background: var(--course-bg);
  padding: 40px 44px 48px;
  display: flow-root;
}

.course-panel .experience:first-of-type {
  margin-top: 40px;
}

/* --- 教材の例 --- */
.course-example {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.course-example h4 {
  font-size: 20px;
  color: var(--deep);
  margin-bottom: 12px;
}

.course-example p {
  font-size: 16px;
}

.pillar-overview .pillars-figure {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.pillar-overview .pillar-circle span {
  font-size: 30px;
}

.course-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 30px;
  font-style: normal;
}

.course-tab-icon .motif {
  flex: none;
  margin: 0!important;
  transform: scale(.6);
  transform-origin: center;
}

.course-tabs button[aria-selected="true"] .cloud,
.course-tabs button[aria-selected="true"] .cloud:before,
.course-tabs button[aria-selected="true"] .cloud:after {
  background: #b3daed;
}

.course-panel .experience {
  scroll-margin-top: var(--course-scroll-margin,175px);
}

.course-panel .experience-copy>h3.pillar-label {
  font-size: 27px!important;
  line-height: 1.55!important;
  margin: 0 0 22px;
  padding-bottom: 8px;
}

.course-panel .course-example:has(>h4:only-child) {
  padding-top: 18px;
}

.course-tabs [data-course="aozora"],
#materials-panel-aozora {
  --course-bg: #d9f0f6;
  --course-accent: #5c9bb8;
}

.course-tabs [data-course="ohisama"],
#materials-panel-ohisama {
  --course-bg: #f9f4cc;
  --course-accent: #b99d37;
}

.course-tabs button,
.course-tabs button[aria-selected="true"] {
  border: 0;
  border-top: 4px solid transparent;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--course-bg);
  color: var(--ink);
  box-shadow: none;
}

.course-tabs button[aria-selected="true"] {
  border-top-color: var(--course-accent);
}

.course-tabs button:hover {
  background: var(--course-bg);
  filter: none;
}

.course-tabs button:focus-visible {
  outline-offset: -5px;
}

.course-panel .course-example {
  border-top-color: #2c444c25;
}

.pillar-overview>.pillars-introduction {
  max-width: 730px;
  margin: 0 auto 30px;
  text-align: left;
}

.pillar-overview>.course-switch-note {
  max-width: 730px;
  margin: 26px auto 0;
  text-align: left;
}

.course-tabs [data-course="niji"],
#materials-panel-niji {
  --course-bg: #f6e3ec;
  --course-accent: #bd7e9d;
}

.course-tabs [data-course="ginga"],
#materials-panel-ginga {
  --course-bg: #eae6f2;
  --course-accent: #a18cba;
}

.experiences.section {
  padding-bottom: 56px;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .experience {
    gap: 35px;
  }

  .expression {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .course-tabs {
    top: 100px;
  }

  .course-tab-icon {
    display: none;
  }

  .course-tabs button {
    flex-wrap: wrap;
    gap: 0 8px;
  }

  .pillar-overview {
    gap: 38px;
    grid-template-columns: 230px 1fr;
    display: block;
  }

  .course-panel .experience {
    scroll-margin-top: var(--course-scroll-margin,163px);
  }

  .course-panel {
    padding-inline: 30px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .experience {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 80px;
  }

  .experience-visual {
    order: 0;
    width: 100%;
    min-height: 0!important;
    padding: 0;
    margin: 0;
  }

  .experience-copy {
    order: 1;
    width: 100%;
    padding-top: 0;
  }

  .main-visual>img {
    object-position: 50% 35%;
  }

  .material-visual {
    right: 1px;
    bottom: 0;
  }

  .expression .main-visual>img {
    object-position: center;
  }

  .grow .material-visual {
    bottom: 0;
  }

  .main-visual figcaption,
  .grow .main-visual figcaption {
    bottom: -40px;
  }

  .experience .main-visual {
    width: 100%;
  }

  .experience .main-visual figcaption {
    font-size: 13px;
    margin-top: 9px;
    line-height: 1.75;
  }

  .experience .material-visual {
    width: 100%;
    margin-top: 18px;
    gap: 18px;
    padding-top: 16px;
  }

  .experience .material-visual img {
    width: 44%;
  }

  .experience .material-visual figcaption {
    font-size: 14px;
  }

  .grow .main-visual,
  .grow .material-visual {
    width: 100%;
  }

  .experiences>.section-heading {
    margin-bottom: 24px;
  }

  .course-tabs {
    top: 78px;
    padding: 4px 0;
    margin-inline: calc(-1 * var(--experience-gutter));
    gap: 4px;
    padding-inline: 12px;
    padding-bottom: 0;
  }

  .course-tabs button {
    flex-direction: column;
    gap: 1px;
    padding: 3px 2px;
    min-height: 46px;
  }

  .course-tabs button span {
    font-size: 14px;
    letter-spacing: 0;
  }

  .course-tabs button small {
    font-size: 12px;
    letter-spacing: 0;
  }

  .pillar-overview {
    flex-direction: column;
    gap: 26px;
    display: block;
    margin: 0 auto 26px;
  }

  .selected-course-heading h3 {
    font-size: 24px;
  }

  .course-panel .experience:first-of-type {
    margin-top: 32px;
  }

  .course-example {
    margin-top: 22px;
    padding-top: 20px;
  }

  .course-example h4 {
    font-size: 19px;
  }

  .pillar-overview .pillars-figure {
    width: 100%;
    max-width: 320px;
  }

  .pillar-overview .pillar-circle span {
    font-size: 26px;
  }

  .course-tab-icon {
    display: none;
  }

  .course-panel .experience {
    scroll-margin-top: var(--course-scroll-margin,117px);
  }

  .course-panel .experience-copy>h3.pillar-label {
    font-size: 24px!important;
    margin-bottom: 20px;
  }

  #experience {
    --experience-gutter: 20px;
  }

  .course-tabs button,
  .course-tabs button[aria-selected="true"] {
    border-radius: 10px 10px 0 0;
    border-top-width: 3px;
  }

  .course-panel {
    margin-inline: calc(-1 * var(--experience-gutter));
    padding: 30px var(--experience-gutter) 38px;
  }

  .pillar-overview>.pillars-introduction {
    margin-bottom: 24px;
  }

  .pillar-overview>.course-switch-note {
    margin-top: 24px;
  }

  .experiences.section {
    padding-bottom: 32px;
  }
}

/* 小さいスマホ（374px以下） */
@media (max-width: 374px) {
  #experience {
    --experience-gutter: 16px;
  }
}

/* スマホ（520px以下）: タブの年齢と学年を2行にして、文字を小さくしすぎない */
@media (max-width: 520px) {
  .course-tabs .tab-sep {
    display: block;
    height: 0;
    overflow: hidden;
  }
}

/* 小さいスマホ（350px以下） */
@media (max-width: 350px) {
  .course-tabs button span {
    font-size: 14px;
  }

  .course-tabs button small {
    font-size: 12px;
  }
}


/* --- 3つの柱の図とカード --- */
#experience.experiences > .section-heading {
  margin-bottom: 22px;
}

.pillar-overview {
  max-width: 1080px;
}

.pillar-overview > .pillars-introduction {
  max-width: 640px;
  margin-bottom: 40px;
}

.pillars-main {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

/* 水彩の円（白を重ねて、やわらかい色にする） */
.circle-life {
  background-image: linear-gradient(#ffffff80,#ffffff80),url('assets/watercolor-blue-v3.jpg');
}

.circle-expression {
  background-image: linear-gradient(#ffffff80,#ffffff80),url('assets/watercolor-pink-v3.jpg');
}

.circle-grow {
  background-image: linear-gradient(#ffffff80,#ffffff80),url('assets/watercolor-green-v3.jpg');
}

.pillar-cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar-cards li {
  margin: 0;
}

.pillar-card {
  display: flex;
  position: relative;
  align-items: center;
  gap: 22px;
  padding: 14px 52px 14px 14px;
  border-radius: 22px;
  background: var(--card-bg);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s,box-shadow .2s;
}

.pillar-card-life { --card-bg: #e4f2f9; --card-color: #2f78a0; }
.pillar-card-expression { --card-bg: #fce9f0; --card-color: #b94770; }
.pillar-card-grow { --card-bg: #e6f3ea; --card-color: #337c58; }

.pillar-card:hover {
  color: var(--ink);
  box-shadow: 0 8px 20px #2c444c24;
  transform: translateY(-2px);
}

.pillar-card:focus-visible {
  outline: 3px solid var(--card-color);
  outline-offset: 3px;
}

/* 右はしの下向きの矢印 */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  width: 11px;
  height: 11px;
  border: solid var(--card-color);
  border-width: 0 3px 3px 0;
  transform: translateY(-70%) rotate(45deg);
}

.pillar-card img {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%!important;
  object-fit: cover;
}

.pillar-card-text {
  /* 言葉の途中で改行しない（改行位置は <wbr>） */
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: grid;
  justify-items: start;
  gap: 5px;
  line-height: 1.6;
}

.pillar-card b {
  padding: 1px 16px;
  border-radius: 16px;
  background: var(--card-color);
  color: #fff;
  font-size: 15px;
}

.pillar-card strong {
  color: var(--card-color);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.pillar-card-text > span {
  font-size: 15px;
}

.pillar-overview > .course-switch-note {
  max-width: none;
  margin-top: 40px;
  text-align: center;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .pillars-main {
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
  }

  .pillar-card {
    gap: 16px;
    padding-right: 42px;
  }

  .pillar-card::after {
    right: 18px;
  }

  .pillar-card img {
    width: 88px;
    height: 88px;
  }

  .pillar-card strong {
    font-size: 18px;
  }

  .pillar-card-text > span {
    font-size: 15px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .pillar-overview > .pillars-introduction {
    margin-bottom: 24px;
  }

  .pillars-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pillar-cards {
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .pillar-card {
    gap: 14px;
    padding: 12px 34px 12px 12px;
  }

  .pillar-card::after {
    right: 16px;
    width: 9px;
    height: 9px;
  }

  .pillar-card img {
    width: 84px;
    height: 84px;
  }

  .pillar-card strong {
    font-size: 16px;
  }

  .pillar-card-text > span {
    font-size: 15px;
  }

  .pillar-overview > .course-switch-note {
    margin-top: 28px;
    text-align: left;
  }
}

/* 小さいスマホ（350px以下） */
@media (max-width: 350px) {
  .pillar-card img {
    width: 64px;
    height: 64px;
  }

  .pillar-card strong {
    font-size: 15px;
  }
}

/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion: reduce) {
  .pillar-card {
    transition: none;
  }

  .pillar-card:hover {
    transform: none;
  }
}

/* コース概要（タブの中身） */
.selected-course-heading {
  padding: 34px 40px;
  border-radius: 20px;
  background: #fff;
}

.selected-course-heading .motif {
  margin-inline: auto;
}

.selected-course-heading .cloud,
.selected-course-heading .cloud:before,
.selected-course-heading .cloud:after {
  background: #b3daed;
}

.selected-course-heading h3 {
  margin-top: 12px;
  font-size: 30px;
}

/* --- コースの特徴ラベル --- */
.course-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.course-chips li {
  padding: 3px 16px;
  border-radius: 20px;
  background: var(--course-bg);
  font-size: 15px;
  font-weight: 700;
}

.course-intro {
  max-width: 760px;
  margin: 18px auto 0;
}

.selected-course-heading .course-intro p {
  font-size: 16px;
}

.course-intro strong {
  background: linear-gradient(transparent 65%,#fdeeb5 65%);
  font-weight: 700;
}

.selected-course-heading .course-new {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
}

.course-new b {
  margin-right: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #d8343d;
  color: #fff;
  font-size: 13px;
}

.course-panel .experience,
.course-panel .experience:first-of-type {
  grid-template-columns: 420px 1fr;
  gap: 44px;
  margin-top: 24px;
  padding: 34px 40px;
  border-radius: 20px;
  background: #fff;
}

.course-panel .expression {
  grid-template-columns: 1fr 420px;
}

/* --- 縦長の写真 --- */
.photo-tall {
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.course-panel .main-visual > .photo-tall {
  object-position: 50% 30%;
}

#experience-niji-life .photo-tall,
#experience-niji-grow .photo-tall {
  object-position: 50% 100%;
}

.course-panel .experience-copy > h3.pillar-label {
  margin-bottom: 14px;
  padding: 2px 22px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  font-size: 20px!important;
}

.course-panel .pillar-blue { background: #2f78a0; }
.course-panel .pillar-pink { background: #b94770; }
.course-panel .pillar-green { background: #337c58; }

.course-panel .course-example,
.course-panel .course-example:has(> h4:only-child) {
  margin-top: 22px;
  padding: 18px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--course-bg);
}

.course-panel .course-example h4 {
  margin-bottom: 0;
  font-size: 18px;
}

.course-panel .course-example h4 + p {
  margin-top: 6px;
  font-size: 15px;
}

/* --- ピックアップ --- */
.pick-up {
  color: #a63d62;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.course-panel .material-list {
  margin-top: 24px;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .course-panel .experience,
  .course-panel .experience:first-of-type {
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    padding: 26px;
  }

  .course-panel .expression {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .selected-course-heading {
    padding: 26px 20px;
  }

  .selected-course-heading h3 {
    font-size: 25px;
  }

  .course-intro {
    text-align: left;
  }

  .course-new b {
    display: table;
    margin: 0 auto 8px;
  }

  .course-panel .experience,
  .course-panel .experience:first-of-type {
    gap: 20px;
    margin-top: 16px;
    padding: 20px;
  }

  .course-panel .experience-copy > h3.pillar-label {
    font-size: 18px!important;
  }

  .course-panel .material-list {
    margin-top: 16px;
  }
}

/* スマホ（520px以下）: コースの特徴を1行におさめる */
@media (max-width: 520px) {
  .course-chips li {
    padding-inline: 13px;
    font-size: 14px;
  }
}


/* ==========================================================
   6. 取り組み方のご紹介
   ========================================================== */

/* --- 全体 --- */
.howto {
  background: #edebe3;
}

.howto.section {
  padding-top: 60px;
}

.howto-block {
  border-radius: 24px;
  background: #fff;
}

.howto-life {
  padding: 48px;
  text-align: center;
}

/* --- 柱の名前ラベル --- */
.howto-tag {
  display: inline-block;
  padding: 3px 22px;
  border-radius: 20px;
  background: var(--tag-color);
  color: #fff;
  font-weight: 700;
}

.howto-life { --tag-color: #2f78a0; }
.howto-expression { --tag-color: #b94770; --point-bg: #fbf0f4; }
.howto-grow { --tag-color: #337c58; --point-bg: #eef6f0; }

.howto-lead {
  margin-top: 12px;
  color: var(--tag-color);
  font-size: 25px;
}

/* --- 取り組みの手順 --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-top: 34px;
  text-align: left;
}

.steps img,
.howto-pair img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.steps article:nth-child(1) img {
  object-position: 85% 50%;
}

.steps article:nth-child(2) img {
  object-position: 50% 25%;
}

.steps article:nth-child(3) img {
  /* 顔と、削っている歯の絵が入る位置 */
  object-position: 50% 0%;
}

.steps h4 {
  margin: 18px 0 8px;
  color: var(--deep);
  font-size: 18px;
}

/* --- 取り組みの流れ --- */
/* --- 取り組みの流れ（1〜4の丸を線でつなぐ） ---
   丸の下に赤いラベルを重ねて一体に見せる。
   パソコン・タブレット：横一列。線は .growth-flow:before
   スマホ：Z の順（1→2、斜めに3、3→4）。線は HTML の .growth-flow-lines（SVG）
   スマホの丸の位置を変えるときは、SVG の座標も一緒に変える */
.growth-flow-wrap {
  position: relative;
  max-width: 880px;
  margin: 64px auto 0;
}

.growth-flow-lines {
  display: none;
}

.growth-flow {
  display: grid;
  position: relative;
  grid-template-columns: repeat(4,1fr);
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
  isolation: isolate;
}

/* 丸をつなぐ横の線（丸の中心の高さ。丸の後ろを通る） */
.growth-flow:before {
  content: '';
  position: absolute;
  top: 66px;
  left: 12.5%;
  right: 12.5%;
  z-index: -1;
  border-top: 4px solid #f0d77e;
}

.growth-flow li {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  margin: 0;
  counter-increment: flow;
}

.growth-flow b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  flex: none;
  border: 5px solid #f5dc86;
  border-radius: 50%;
  background: #fffdf3;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

/* 丸の下にラベルを重ねる */
.growth-flow span {
  position: relative;
  margin-top: -18px;
  padding: 3px 14px;
  border: 3px solid #fffdf3;
  border-radius: 20px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* 順番の番号 */
.growth-flow li:after {
  content: counter(flow);
  position: absolute;
  top: -15px;
  left: calc(50% - 15px);
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #d8b53c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 23.5px;
  text-align: center;
  /* 枠線を含めて 30px の真円にする（::after は全体の box-sizing の指定が効かないため） */
  box-sizing: border-box;
}

/* 3の丸の吹き出し（ほめる声）：丸の右上に、少し傾けて置く */
.growth-flow em {
  position: absolute;
  top: -40px;
  left: calc(50% + 34px);
  z-index: 2;
  padding: 5px 16px 6px;
  border: 3px solid #f2a7bd;
  border-radius: 22px;
  background: #fff4f7;
  box-shadow: 0 3px 0 #f2a7bd59;
  color: #b94770;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transform: rotate(-6deg);
}

/* 吹き出しのしっぽ（左下へ） */
.growth-flow em:before,
.growth-flow em:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 18px;
  border-style: solid;
  border-color: transparent;
}

.growth-flow em:before {
  margin-top: 0;
  border-width: 12px 14px 0 0;
  border-top-color: #f2a7bd;
}

.growth-flow em:after {
  left: 21px;
  margin-top: -4px;
  border-width: 8px 9px 0 0;
  border-top-color: #fff4f7;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .growth-flow {
    gap: 24px;
  }

  .growth-flow b {
    width: 124px;
    height: 124px;
  }

  .growth-flow:before {
    top: 60px;
  }


  .growth-flow em {
    left: calc(50% + 24px);
    padding-inline: 12px;
    font-size: 14px;
  }
}

/* スマホ（760px以下）：幅264pxの決まった大きさで、Z の順に並べる */
@media (max-width: 760px) {
  .growth-flow-wrap {
    width: 264px;
    margin-top: 56px;
  }

  .growth-flow-lines {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 264px;
    height: 318px;
    fill: none;
    stroke: #f0d77e;
    stroke-width: 4;
    stroke-linejoin: round;
  }

  .growth-flow {
    grid-template-columns: 120px 120px;
    grid-auto-rows: 131px;
    gap: 56px 24px;
  }

  .growth-flow:before {
    display: none;
  }

  .growth-flow b {
    width: 110px;
    height: 110px;
    font-size: 15px;
  }

  .growth-flow span {
    margin-top: -14px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .growth-flow li:after {
    top: -14px;
    left: calc(50% - 14px);
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 24px;
  }

  .growth-flow em {
    top: -42px;
    left: -38px;
    padding: 4px 11px 5px;
    font-size: 13px;
    transform: rotate(-5deg);
  }

  .growth-flow em:before {
    left: auto;
    right: 16px;
    border-width: 11px 0 0 12px;
  }

  .growth-flow em:after {
    left: auto;
    right: 19px;
    border-width: 7px 0 0 8px;
  }
}

/* 小さいスマホ（374px以下）：吹き出しが画面からはみ出さないよう右へ寄せる */
@media (max-width: 374px) {
  .growth-flow em {
    left: -22px;
  }
}

/* --- 「成績表ではありません」 --- */
.gentle-note {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
  padding: 30px 40px;
  border-radius: 16px;
  background: #fbf0f4;
  text-align: left;
}

.gentle-note > img {
  width: 130px;
  flex-shrink: 0;
}

.gentle-note h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.gentle-note p + p {
  margin-top: 9px;
}

/* --- オリジナル絵本の見本 --- */
.picture-book {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 36px;
  margin: 48px 0 0;
  padding: 28px 40px 28px 20px;
  border-radius: 24px;
  background: #f3f8fa;
}

.picture-book img {
  width: 100%;
  height: auto;
}

.picture-book figcaption {
  text-align: left;
}

.picture-book-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 16px;
  border-radius: 20px;
  background: var(--tag-color,#2f78a0);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.picture-book h3 {
  margin: 0 0 12px;
  color: #205f79;
  font-size: 24px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.picture-book figcaption > p:not(.picture-book-tag) {
  margin: 0;
}

.picture-book figcaption > p.picture-book-note {
  margin-top: 14px;
  color: #52676d;
  font-size: 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.picture-book .nowrap {
  white-space: nowrap;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .picture-book {
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    padding: 24px 28px 24px 14px;
  }

  .picture-book h3 {
    font-size: 21px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .picture-book {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
    padding: 16px 14px 24px;
  }

  .picture-book figcaption {
    padding-inline: 8px;
  }

  .picture-book h3 {
    font-size: 21px;
  }
}

/* --- 表現・育み --- */
.howto-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.howto-pair .howto-block {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.howto-pair img {
  border-radius: 0;
}

.howto-grow img {
  object-position: 50% 12%;
}

.howto-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 34px 34px;
}

.howto-body > p + p {
  margin-top: 12px;
}

.howto-body .howto-lead {
  margin-bottom: 14px;
}

/* --- ポイント --- */
.howto-point {
  width: 100%;
  margin-top: auto;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--point-bg);
}

.howto-body > p:last-of-type {
  margin-bottom: 22px;
}

.howto-point h4 {
  margin-bottom: 6px;
  color: var(--tag-color);
  font-size: 17px;
}

.howto-point p {
  font-size: 15px;
}

/* --- 保護者へのサポート --- */
.parent-support {
  max-width: 850px;
  margin: 44px auto 0;
  text-align: center;
}

.parent-support h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.parent-support p {
  text-align: left;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .howto-life {
    padding: 40px 30px;
  }

  .howto-body {
    padding: 26px 24px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .howto.section {
    padding-top: 56px;
  }

  .howto-life {
    padding: 32px 20px;
  }

  .howto-lead {
    font-size: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 26px;
  }

  .gentle-note {
    gap: 12px;
    margin-top: 36px;
    padding: 22px 18px;
    align-items: flex-start;
  }

  .gentle-note > img {
    width: 48px;
  }

  .gentle-note h3 {
    font-size: 17px;
  }

  .howto-pair {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .howto-body {
    padding: 24px 20px 26px;
  }
}



/* ==========================================================
   7. 会費のご案内・ご入会手続き
   ========================================================== */

/* --- コースカード --- */
.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.course {
  border: 1px solid #d3e4e8;
  border-radius: 9px;
  scroll-margin-top: 15px;
  overflow: visible;
}

/* --- カードの上部（名前・写真） --- */
.course-top {
  justify-content: space-between;
  background: linear-gradient(120deg,#f3f9fb,#fff);
  display: flex;
  padding: 0 0 0 26px;
  gap: 14px;
  align-items: center;
  overflow: visible;
}

.course-top>div {
  align-self: center;
  padding-block: 24px;
  flex: 1;
  min-width: 0;
}

.course-top .motif {
  margin-bottom: 15px;
}

.course-top>img {
  object-position: center 35%;
  width: 43%;
  max-width: 185px;
  flex-shrink: 0;
  align-self: center;
}

.course-top h3 {
  color: var(--deep);
  white-space: nowrap;
  font-size: 24px;
}

.course-top h3 span {
  margin-left: 2px;
  font-size: 15px;
}

/* --- カードの本文 --- */
.course-body {
  padding: 24px 30px 10px;
}

/* --- 生まれの目安・お届けなど --- */
.course-facts {
  margin: 20px 0 15px;
}

.course-facts>div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.course-facts dd {
  margin: 0;
}

.course-facts dt {
  align-self: center;
}

.course-facts strong {
  font-size: 27px;
  line-height: 1.3;
  color: var(--deep);
  letter-spacing: .025em;
}

.course details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.course-facts,
.course-facts dt,
.course-facts dd,
.course-age,
.course-body .birth,
.course-facts small,
.course details {
  font-size: 15px;
}

.course-body .course-description {
  font-size: 16px;
  min-height: 105px;
}

main .course-top>img.photo-original {
  border-radius: 100px 100px 0 0!important;
}

#courses>.section-heading>.eyebrow {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: .03em;
}

/* --- 割引・お支払い --- */
.admission-details {
  margin-top: 48px;
  scroll-margin-top: 120px;
}

/* --- ご入会手続き（STEP） --- */
.admission-flow>h2 {
  text-align: center;
  margin-bottom: 34px;
}

.admission-flow ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.admission-flow li {
  position: relative;
  padding: 28px 26px;
  border: 1px solid #f0c3cf;
  border-radius: 16px;
  background: #fdf5f7;
  counter-increment: step;
}

.admission-flow li:before {
  content: 'STEP ' counter(step);
  display: inline-block;
  margin-bottom: 14px;
  padding: 2px 16px;
  border-radius: 20px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.admission-flow li + li:after {
  content: '';
  position: absolute;
  top: 50%;
  left: -27px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--pink);
  border-right: 3px solid var(--pink);
  transform: translateY(-50%) rotate(45deg);
}

.admission-flow h4 {
  margin-bottom: 12px;
  color: var(--deep);
  font-size: 20px;
  word-break: keep-all;
}

.admission-flow p {
  font-size: 16px;
}

.admission-flow .button {
  max-width: 100%;
  margin-top: 18px;
  padding-inline: 20px;
}

.admission-flow strong {
  background: linear-gradient(transparent 65%,#f9cfd9 65%);
  font-weight: 700;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .course-top {
    padding-left: 22px;
  }

  .course-top h3 {
    font-size: 22px;
  }

  .course-top>img {
    width: 42%;
  }

  .admission-flow ol {
    gap: 32px;
  }

  .admission-flow li {
    padding: 24px 18px;
  }

  .admission-flow li + li:after {
    left: -23px;
  }
}

/* タブレット以下（1050px以下） */
@media (max-width: 1050px) {
  .course-body {
    padding: 22px 24px 8px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .course-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .course-body {
    padding: 23px 22px 5px;
  }

  .course-facts {
    margin-top: 17px;
  }

  .course-facts>div {
    gap: 7px;
    padding: 12px 0;
    grid-template-columns: 87px 1fr;
  }

  .course-facts strong {
    font-size: 26px;
  }

  .course-body .birth,
  .course-facts dt,
  .course-facts dd,
  .course-facts small,
  .course details,
  .course .course-note {
    font-size: 15px!important;
  }

  .course-body .course-description {
    font-size: 16px;
    min-height: 0;
  }

  .course-top {
    padding-left: 22px;
    gap: 10px;
  }

  .course-top>div {
    padding-block: 24px;
  }

  .course-top>img {
    width: 43%;
    max-width: 150px;
  }

  .course-top h3 {
    font-size: 23px;
  }

  .course-top h3 span {
    font-size: 14px;
  }

  .course-age {
    font-size: 15px!important;
  }

  #courses>.section-heading>.eyebrow {
    font-size: 18px;
  }

  .admission-details {
    margin-top: 34px;
    scroll-margin-top: 100px;
  }

  .admission-flow>h2 {
    margin-bottom: 28px;
  }

  .admission-flow ol {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .admission-flow li {
    padding: 22px;
  }

  .admission-flow li + li:after {
    top: -26px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .admission-flow h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }
}

/* 小さいスマホ（374px以下） */
@media (max-width: 374px) {
  .course-body {
    padding-inline: 20px;
  }

  .course-top {
    padding-left: 20px;
  }

  .course-top h3 {
    font-size: 21px;
  }
}

/* 会費のご案内 */
#courses > .section-heading > .eyebrow {
  display: inline-block;
  padding: 3px 24px;
  border-radius: 24px;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
}

/* --- コースごとの色 --- */
#aozora { --course-bg: #d9f0f6; --course-accent: #5c9bb8; }
#ohisama { --course-bg: #f9f4cc; --course-accent: #d9bd55; }
#niji { --course-bg: #f6e3ec; --course-accent: #d48fb0; }
#ginga { --course-bg: #eae6f2; --course-accent: #a18cba; }

.course {
  overflow: hidden;
  border: 2px solid var(--course-accent);
  border-radius: 20px;
  background: #fff;
}

.course-top {
  height: 236px;
  background: var(--course-bg);
}

.course-top .cloud,
.course-top .cloud:before,
.course-top .cloud:after {
  background: #a9d5ea;
}

main .course-top > img.photo-original {
  align-self: flex-end;
  height: 216px!important;
  object-fit: cover!important;
}

/* --- 会費の金額 --- */
.course-price {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.course-price.is-two {
  grid-template-columns: 1fr 1fr;
}

.course-price > div {
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--course-bg);
  text-align: center;
}

.course-price > div + div {
  border: 2px solid var(--course-bg);
  background: #fff;
}

.price-label {
  font-weight: 700;
}

.price {
  font-size: 16px;
  font-weight: 700;
}

.price strong {
  margin-right: 2px;
  color: #205f79;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}

.price-note {
  font-size: 15px;
}

.price-note small {
  display: block;
  font-size: 14px;
}

.course-facts > div {
  grid-template-columns: 110px 1fr;
}

.course-facts > div:first-child {
  border-top: 0;
}

.course-facts dt {
  font-weight: 700;
}

.course-facts dd small {
  display: block;
}

.course details {
  margin-top: 4px;
}

/* 言葉の途中で改行しない（改行位置は <wbr>） */
.price-note,
.course-facts dd,
.fee-cards li span,
.material-list caption,
.footer p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.course-facts dt,
.course-facts dd {
  font-size: 15px;
}

.course .price-label small,
.course-facts dd small {
  font-size: 14px;
}

/* --- 割引・2回払いのカード --- */
.fee-heading {
  margin-bottom: 26px;
  color: var(--deep);
  font-size: 25px;
  text-align: center;
}

.fee-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.fee-cards article {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 18px;
  background: #fdf5f7;
  text-align: center;
}

.fee-cards h4 {
  align-self: center;
  padding: 3px 24px;
  border-radius: 24px;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
}

.fee-off {
  margin: 10px 0 6px;
  color: var(--pink);
  font-weight: 700;
}

.fee-off strong {
  margin-inline: 4px 2px;
  font-size: 32px;
}

.fee-cards article > p:not(.fee-off) {
  margin-bottom: 16px;
  font-size: 15px;
  text-align: left;
}

.fee-cards ul {
  margin: auto 0 0;
  padding: 4px 16px;
  border-radius: 12px;
  background: #fff;
  list-style: none;
}

.fee-cards li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 16px;
  text-align: left;
}

.fee-cards li + li {
  border-top: 1px solid var(--line);
}

.fee-cards li b {
  font-weight: 700;
  white-space: nowrap;
}

.fee-caution {
  margin-top: 18px;
  font-size: 15px;
  text-align: center;
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .course-price.is-two {
    grid-template-columns: 1fr;
  }

  .fee-cards {
    gap: 14px;
  }

  .fee-cards article {
    padding: 22px 14px;
  }

  .fee-cards ul {
    padding-inline: 10px;
  }

  .fee-off strong {
    font-size: 26px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  #courses > .section-heading > .eyebrow {
    font-size: 16px;
  }

  .course-top {
    height: 190px;
  }

  main .course-top > img.photo-original {
    height: 174px!important;
  }

  .course-price.is-two {
    gap: 8px;
  }

  .course-price > div {
    padding: 14px 6px;
  }

  .price strong {
    font-size: 29px;
  }

  .course-facts > div {
    grid-template-columns: 100px 1fr;
  }

  .fee-heading {
    font-size: 22px;
  }

  .fee-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fee-caution {
    text-align: left;
  }
}

/* スマホ（520px以下） */
@media (max-width: 520px) {
  .course-price.is-two {
    grid-template-columns: 1fr;
  }
}

/* お届けする教材一覧 */
.course-grid:has(.material-list[open]) {
  align-items: start;
}

.material-list table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3a5b3;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.material-list caption {
  padding: 9px 8px;
  border-radius: 8px 8px 0 0;
  background: #555;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.material-list th,
.material-list td {
  padding: 7px 10px;
  border-bottom: 1px solid #c9c6c6;
  font-weight: 500;
}

.material-list tbody:last-child tr:last-child > *,
.material-list tbody:last-child .month {
  border-bottom: 0;
}

.material-list .month {
  width: 64px;
  padding-inline: 4px;
  background: var(--month-color);
  text-align: center;
}

.material-list .month small {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}

.material-list .kind {
  width: 56px;
  padding-inline: 4px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}

.material-list .kind-expression {
  color: #2f78a8;
}

.material-list .kind-grow {
  color: #c9506d;
}

.material-list td {
  background: var(--month-tint);
}

.material-list .item {
  display: block;
}

.material-list .item + .item {
  margin-top: 4px;
}

.course-panel .material-list {
  margin-top: 44px;
  border-radius: 16px;
  background: #fff;
}

.course-panel .material-list summary {
  padding: 18px 60px 18px 28px;
  color: var(--deep);
  font-size: 17px;
}

.course-panel .material-list summary:after {
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
}

.course-panel .material-list .details-content {
  max-width: 800px;
  margin-inline: auto;
  padding: 4px 28px 28px;
}

/* --- 注記・ライトコースの印 --- */
.material-note {
  font-size: 15px;
}

.light-dot {
  margin-left: 2px;
  color: #e0202c;
}

/* --- 月ごとの色 --- */
.month-4 { --month-color: #e8d6b0; --month-tint: #f7f2e1; }
.month-5 { --month-color: #d0b7c3; --month-tint: #efe6ea; }
.month-6 { --month-color: #b7cbbd; --month-tint: #e8eeea; }
.month-7 { --month-color: #cfb5a6; --month-tint: #f0e8e2; }
.month-8 { --month-color: #e3bac1; --month-tint: #f6e7e9; }
.month-9 { --month-color: #b9b0c4; --month-tint: #e7e4ea; }
.month-10 { --month-color: #b9bfcc; --month-tint: #e9ebf0; }
.month-11 { --month-color: #f0c0b3; --month-tint: #fbeae4; }
.month-12 { --month-color: #cfbfac; --month-tint: #efebe3; }
.month-1 { --month-color: #d9b7b1; --month-tint: #f2e5e2; }
.month-2 { --month-color: #dcdcb6; --month-tint: #f4f4e4; }
.month-3 { --month-color: #eec8a6; --month-tint: #faeee0; }

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .course-panel .material-list {
    margin-top: 32px;
  }

  .course-panel .material-list summary {
    padding: 16px 48px 16px 18px;
    font-size: 16px;
  }

  .course-panel .material-list summary:after {
    right: 18px;
  }

  .course-panel .material-list .details-content {
    padding: 0 16px 20px;
  }

  .material-list .month {
    width: 50px;
  }

  .material-list .kind {
    width: 44px;
  }

  .material-list th,
  .material-list td {
    padding: 7px 8px;
  }

  .material-list .month,
  .material-list .kind {
    padding-inline: 2px;
  }
}


/* ==========================================================
   8. 保護者の声
   ========================================================== */

/* --- 全体 --- */
.voices {
  background: #e9f2ee;
}

.voices h2 {
  word-break: keep-all;
}

/* --- 声のカード --- */
.voice-grid,
.voice-columns {
  columns: 2;
  column-gap: 36px;
}

.voice-columns {
  padding-top: 32px;
}

.voice-grid article,
.voice-columns article {
  break-inside: avoid;
  padding-bottom: 30px;
}

/* ふきだし */
.voice-bubble {
  position: relative;
  padding: 32px 34px 30px;
  border-top: 7px solid var(--voice-accent);
  border-radius: 24px;
  background: #fff;
}

.voice-bubble::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 46px;
  width: 30px;
  height: 18px;
  background: #fff;
  clip-path: polygon(0 0,100% 0,12% 100%);
}

.voice-lead {
  position: relative;
  margin: 0 0 14px;
  padding-left: 46px;
  color: var(--voice-text);
  font-family: var(--heading);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 見出しの引用符 */
.voice-lead::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 32px;
  height: 23px;
  background: var(--voice-accent);
  clip-path: path('M0 23V12C0 5 4 1 12 0V5C9 6 7 8 7 11H13V23ZM18 23V12C18 5 22 1 30 0V5C27 6 25 8 25 11H31V23Z');
}

.voices blockquote {
  margin: 0;
  font-size: 16px;
}

.voices blockquote p + p {
  margin-top: 12px;
}

/* 特に伝えたい所の線 */
.voices blockquote em {
  background: linear-gradient(transparent 68%,var(--voice-color) 68%);
  font-style: normal;
  font-weight: 700;
}

/* コースの絵柄と名前 */
.voices article .caption {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 60px;
  margin: 24px 0 0 22px;
  padding-left: 74px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* 絵柄をのせる丸 */
.voices article .caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--voice-color);
}

.voices .caption .motif {
  position: absolute;
  top: 50%;
  left: 30px;
  margin: 0;
  transform: translate(-50%,-50%) scale(.8);
}

.voices .caption .cloud {
  margin-top: 5px;
}

.voices .caption .cloud,
.voices .caption .cloud::before,
.voices .caption .cloud::after {
  background: #8cc3dd;
}

/* --- コースごとの色 --- */
.voice-aozora { --voice-color: #d9f0f6; --voice-accent: #7dbbd6; --voice-text: #25698c; }
.voice-ohisama { --voice-color: #f9f4cc; --voice-accent: #ecc95a; --voice-text: #7d6110; }
.voice-niji { --voice-color: #f6e3ec; --voice-accent: #e09ab9; --voice-text: #a23d68; }
.voice-ginga { --voice-color: #eae6f2; --voice-accent: #aba5cf; --voice-text: #5f5790; }

/* --- 折りたたみ（残りの声） --- */
.voice-more {
  margin-top: 28px;
}

.voice-more summary {
  width: fit-content;
  margin-inline: auto;
  padding: 12px 52px 12px 28px;
  border: 1px solid var(--blue);
  border-radius: 40px;
  background: #fff;
  color: var(--deep);
}

.voice-more summary:after {
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .voice-grid,
  .voice-columns {
    column-gap: 24px;
  }

  .voice-bubble {
    padding: 28px 26px;
  }

  .voice-lead {
    padding-left: 42px;
    font-size: 20px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .voice-grid,
  .voice-columns {
    columns: 1;
  }

  .voice-columns {
    padding-top: 22px;
  }

  .voice-grid article,
  .voice-columns article {
    padding-bottom: 24px;
  }

  .voice-bubble {
    padding: 24px 22px;
    border-radius: 20px;
  }

  .voice-lead {
    padding-left: 40px;
    font-size: 20px;
  }

  .voices article .caption {
    margin-left: 14px;
  }

  .voices h2 {
    font-size: 25px;
  }
}

/* 小さいスマホ（350px以下） */
@media (max-width: 350px) {
  .voice-lead {
    padding-left: 38px;
    font-size: 17px;
  }
}


/* ==========================================================
   9. むすびのメッセージ
   ========================================================== */

/* --- 全体・背景 --- */
.closing-message {
  position: relative;
  overflow: hidden;
  z-index: 0;
  min-height: 1080px;
  padding: 130px 24px 520px;
}

/* --- 水彩画 --- */
.closing-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

/* --- 文章 --- */
.closing-copy {
  max-width: 780px;
  margin-inline: auto;
  padding: 44px 48px;
  border-radius: 28px;
  background: #ffffffe6;
  text-align: center;
}

.closing-copy h2 {
  margin-bottom: 20px;
  color: var(--deep);
  font-size: 36px;
}

.closing-copy p {
  margin-top: 14px;
  font-size: 16px;
  text-wrap: balance;
}

.closing-copy .trigger {
  font-size: 20px;
  word-break: keep-all;
}

.closing-copy strong {
  background: linear-gradient(transparent 65%,#fdeeb5 65%);
  font-weight: 700;
}

.closing-copy .closing-switch {
  margin-top: 26px;
  color: var(--pink);
  font-weight: 700;
  word-break: keep-all;
}

.closing-switch b {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 700;
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .closing-message {
    min-height: 0;
    padding: 72px 16px 290px;
    background: linear-gradient(#fff,#e9f4fa 70%);
  }

  .closing-art {
    top: auto;
    bottom: 0;
    height: 300px;
    -webkit-mask-image: linear-gradient(transparent,#000 22%);
    mask-image: linear-gradient(transparent,#000 22%);
  }

  .closing-copy {
    padding: 30px 20px;
  }

  .closing-copy h2 {
    font-size: 25px;
  }

  .closing-copy .trigger {
    font-size: 18px;
  }

  .closing-switch b {
    font-size: 21px;
  }
}

/* 小さいスマホ（374px以下） */
@media (max-width: 374px) {
  .closing-copy h2 {
    font-size: 22px;
  }
}


/* ==========================================================
   10. よくあるご質問
   ========================================================== */

/* --- 折りたたみの共通設定 --- */
details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding: 19px 40px 19px 0;
  line-height: 1.8;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary:after {
  content: '＋';
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--deep);
  font-weight: 400;
}

details[open]>summary:after {
  content: '−';
}

/* --- 開いたときの中身 --- */
.details-content {
  padding: 0 0 20px;
  font-weight: 400;
}

.details-content p+p {
  margin-top: 12px;
}

.details-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.details-content li {
  padding: 7px 0;
}

.details-content li b {
  color: var(--deep);
  margin-right: 7px;
}

/* --- よくあるご質問 --- */
.faq {
  background: #f1f7f5;
}

.faq .section-heading {
  margin-bottom: 40px;
}

/* 質問グループ（教材＝青・会費＝ピンク） */
.faq-material { --faq-color: #2f78a0; --faq-tint: #dff0f7; }
.faq-fee { --faq-color: #b94770; --faq-tint: #fbe3ec; }

.faq-box + .faq-box {
  margin-top: 52px;
}

.faq-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--faq-color);
  font-size: 21px;
}

/* 見出しの豆の印 */
.faq-group::before {
  content: '';
  flex: none;
  width: 18px;
  height: 25px;
  border-radius: 60% 40% 55% 45%/55% 45% 60% 40%;
  background: var(--faq-color);
  transform: rotate(18deg);
}

/* 質問のカード */
.faq details {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px #2c444c12;
}

.faq details + details {
  margin-top: 14px;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 68px 16px 20px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

/* 言葉の途中で改行しない（改行位置は <wbr>） */
.faq summary span {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.faq summary:hover {
  color: var(--faq-color);
}

.faq summary:focus-visible {
  outline: 3px solid var(--faq-color);
  outline-offset: 2px;
}

/* Q と A の丸 */
.faq summary::before,
.faq .details-content::before {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
}

.faq summary::before {
  content: 'Q';
  background: var(--faq-color);
  color: #fff;
}

.faq .details-content::before {
  content: 'A';
  background: var(--faq-tint);
  color: var(--faq-color);
}

/* 開く・閉じるの印 */
.faq summary::after {
  top: 50%;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--faq-tint);
  color: var(--faq-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  transform: translateY(-50%);
}

.faq .details-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 20px;
  padding: 18px 0 24px;
  border-top: 2px dotted var(--faq-tint);
  font-size: 16px;
  line-height: 1.9;
}

.faq .details-content p {
  margin: 0;
  padding-top: 5px;
}

/* 答えの大事な所の線 */
.faq .details-content strong {
  background: linear-gradient(transparent 68%,var(--faq-tint) 68%);
  font-weight: 700;
}

/* --- お問い合わせへの案内 --- */
.faq-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding: 26px 34px;
  border-radius: 24px;
  background: #fff3c9;
}

.faq-help p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  word-break: keep-all;
}

.faq-help .button {
  flex: none;
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .faq .section-heading {
    margin-bottom: 26px;
  }

  .faq-box + .faq-box,
  .faq-help {
    margin-top: 40px;
  }

  .faq-group {
    font-size: 19px;
  }

  .faq details + details {
    margin-top: 12px;
  }

  .faq summary {
    gap: 12px;
    min-height: 68px;
    padding: 14px 52px 14px 14px;
    font-size: 16px;
  }

  .faq summary::before,
  .faq .details-content::before {
    width: 34px;
    height: 34px;
    font-size: 17px;
    line-height: 34px;
  }

  .faq summary::after {
    top: 50%;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
  }

  .faq .details-content {
    gap: 12px;
    margin: 0 14px;
    padding: 14px 0 20px;
    font-size: 15px;
  }

  .faq .details-content p {
    padding-top: 2px;
  }

  .faq-help {
    flex-direction: column;
    padding: 24px 18px;
    text-align: center;
  }

  .faq-help p {
    font-size: 17px;
  }
}


/* ==========================================================
   11. 資料請求・お問い合わせ
   ========================================================== */

/* --- 全体 --- */
.contact {
  position: relative;
  padding-bottom: 300px;
  overflow: hidden;
  background: linear-gradient(180deg,#fff 0,#e9f5f9 30%,#e9f5f9 70%,#fff 100%);
}

.contact > .wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.contact h2,
.contact-lead {
  text-align: center;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact-lead,
.contact-request h3,
.contact-request-text p,
.contact-enrollment p {
  /* 言葉の途中で改行しない（改行位置は <wbr>） */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.contact-lead {
  margin: 0 0 36px;
}

/* --- 資料請求のカード --- */
.contact-request {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 32px #2c444c1c;
}

.contact-request > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 8%;
}

.contact-request-text {
  align-self: center;
  padding: 36px 44px;
}

.contact-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 18px;
  border-radius: 20px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.contact-request h3 {
  margin: 0 0 12px;
  color: #205f79;
  font-size: 29px;
  line-height: 1.5;
}

.contact-request-text > p:not(.contact-tag,.contact-gift) {
  margin: 0 0 24px;
}

.contact-request .button {
  width: 100%;
  max-width: 340px;
  min-height: 64px;
  font-size: 19px;
  font-weight: 700;
}

/* --- メール・電話 --- */
.contact-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-ways li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 24px 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 16px #2c444c12;
}

.contact-icon {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 50%;
  background: #dff0f7;
  fill: none;
  stroke: var(--deep);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-ways h3 {
  margin: 0;
  font-size: 19px;
}

.contact-ways .button,
.contact-phone {
  grid-column: 1/-1;
}

.contact-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  color: var(--deep);
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 700;
}

/* --- 入会ボタン --- */
.contact-enrollment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  background: #fdeef3;
}

.contact-enrollment p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact-enrollment .button {
  min-width: 260px;
}

/* --- 下の川の絵 --- */
.closing-river {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 230px;
  background: url('assets/river-cover.jpg') center 4%/cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,transparent 0,#000 14%,#000 88%,transparent 100%);
  mask-image: linear-gradient(to bottom,transparent 0,#000 14%,#000 88%,transparent 100%);
}

/* タブレット（761〜1050px） */
@media (max-width: 1050px) and (min-width: 761px) {
  .contact-request > img {
    height: 490px;
  }
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .contact {
    padding-bottom: 180px;
  }

  .contact h2 {
    font-size: 25px;
  }

  .contact-lead {
    margin-bottom: 26px;
  }

  .contact-request {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 24px;
  }

  .contact-request > img {
    height: auto;
    aspect-ratio: 1.25;
    object-position: center 6%;
  }

  .contact-request-text {
    padding: 24px 22px 28px;
    text-align: center;
  }

  .contact-request h3 {
    font-size: 24px;
  }

  .contact-request-text > p:not(.contact-tag,.contact-gift) {
    margin-bottom: 20px;
  }

  .contact-request .button {
    font-size: 18px;
  }

  .contact-ways {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 520px;
    margin: 14px auto 0;
  }

  .contact-ways li {
    padding: 20px 22px;
  }

  .contact-phone {
    font-size: 28px;
  }

  .contact-enrollment {
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
    margin: 14px auto 0;
    padding: 22px;
    text-align: center;
  }

  .contact-enrollment .button {
    width: 100%;
    min-width: 0;
    max-width: 340px;
  }

  .closing-river {
    height: 140px;
    background-position: 60% 4%;
  }
}


/* ==========================================================
   12. フッター
   ========================================================== */

/* --- 全体 --- */
.footer {
  padding-block: 30px 35px;
  font-size: 14px;
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer>div:first-child {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer img {
  width: 100px;
}

/* --- コピーライト --- */
.footer-end {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer small {
  font-size: 13px;
}

/* スマホ（760px以下） */
@media (max-width: 760px) {
  .footer {
    padding-block: 25px;
    display: block;
  }

  .footer>div:first-child {
    gap: 16px;
    align-items: center;
  }

  .footer img {
    width: 80px;
  }

  .footer p {
    font-size: 13px;
  }

  .footer-end {
    margin-top: 20px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
  }

  .footer small {
    font-size: 12px;
  }
}

/* --- 右下の資料請求ボタン --- */
.floating-request {
  display: none;
}

/* 幅の狭いタブレット・スマホ（960px以下）: メニューのボタンと同じ幅で表示 */
@media (max-width: 960px) {
  .floating-request {
    display: grid;
    position: fixed;
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 18;
    justify-items: center;
    padding: 8px 15px 9px;
    border: 2px solid #fff;
    border-radius: 34px;
    background: var(--deep);
    box-shadow: 0 6px 20px #173f5059;
    color: #fff;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity .25s,transform .25s,visibility .25s;
  }

  .floating-request:hover {
    background: #1d5a70;
    color: #fff;
  }

  .floating-request:focus-visible {
    outline: 3px solid #ffe28a;
    outline-offset: 2px;
  }

  .floating-request small {
    color: #ffe9a8;
    font-size: 12px;
    font-weight: 700;
  }

  .floating-request span:not(.sr-only) {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
  }

  /* ページ内の資料請求ボタンが見えている間・メニューを開いている間は隠す */
  .floating-request.is-hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
  }

  /* 最後までスクロールしたとき、フッターの文字に重ならないようにする */
  .footer {
    padding-bottom: 100px;
  }
}

/* 動きを減らす設定の人向け */
@media (prefers-reduced-motion: reduce) {
  .floating-request {
    transition: none;
  }
}
