:root {
  --orange: #ef7a00;
  --ink: #302b27;
  --yellow: #ffd84d;
  --deep-orange: #b84f00;
  --sky: #ecf6f7;
  --paper: #fbfcf7;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-12: 96px;
  --space-14: 112px;
  --space-16: 128px;
  --space-18: 144px;
  --content-width: 1050px;
  --body-size: 16px;
  --body-leading: 2;
  --section-edge-pad: var(--space-18);
  --section-header-top: var(--space-18);
  --section-header-bottom: var(--space-18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 画面外に伸びる装飾画像で横スクロールを作らない */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--sky);
  font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  font-feature-settings: "palt";
}

img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sp-only { display: none; }

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: var(--sky);
}

.hero::before,
.intro::before,
.about-detail::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--paper-noise);
  background-size: 150px 150px;
  mix-blend-mode: multiply;
  opacity: .38;
  pointer-events: none;
  content: "";
}

.brand {
  position: absolute;
  z-index: 3;
  top: 42px;
  left: clamp(28px, 4vw, 56px);
  width: 166px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand span {
  display: block;
  width: 100%;
  margin-top: var(--space-1);
  font-size: clamp(7.2px, .68vw, 8.6px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.catchcopy {
  position: absolute;
  z-index: 3;
  top: 12.89%;
  left: 25.04%;
  display: flex;
  align-items: flex-start;
  gap: 1.02cqw;
  --catchcopy-pad-y: 1.35cqw;
  --catchcopy-zigzag: polygon(
    8% 0, 92% 0,
    100% 2%, 98% 4%, 100% 6%, 98% 8%, 100% 10%, 98% 12%,
    100% 14%, 98% 16%, 100% 18%, 98% 20%, 100% 22%, 98% 24%,
    100% 26%, 98% 28%, 100% 30%, 98% 32%, 100% 34%, 98% 36%,
    100% 38%, 98% 40%, 100% 42%, 98% 44%, 100% 46%, 98% 48%,
    100% 50%, 98% 52%, 100% 54%, 98% 56%, 100% 58%, 98% 60%,
    100% 62%, 98% 64%, 100% 66%, 98% 68%, 100% 70%, 98% 72%,
    100% 74%, 98% 76%, 100% 78%, 98% 80%, 100% 82%, 98% 84%,
    100% 86%, 98% 88%, 100% 90%, 98% 92%, 100% 94%, 98% 96%,
    100% 98%, 92% 100%, 8% 100%,
    0 98%, 2% 96%, 0 94%, 2% 92%, 0 90%, 2% 88%,
    0 86%, 2% 84%, 0 82%, 2% 80%, 0 78%, 2% 76%,
    0 74%, 2% 72%, 0 70%, 2% 68%, 0 66%, 2% 64%,
    0 62%, 2% 60%, 0 58%, 2% 56%, 0 54%, 2% 52%,
    0 50%, 2% 48%, 0 46%, 2% 44%, 0 42%, 2% 40%,
    0 38%, 2% 36%, 0 34%, 2% 32%, 0 30%, 2% 28%,
    0 26%, 2% 24%, 0 22%, 2% 20%, 0 18%, 2% 16%,
    0 14%, 2% 12%, 0 10%, 2% 8%, 0 6%, 2% 4%, 0 2%
  );
}

.catchcopy p {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  width: 3.37cqw;
  height: auto;
  padding: var(--catchcopy-pad-y) .44cqw;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 1.83cqw;
  font-weight: 600;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  line-height: 1;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  -webkit-text-orientation: mixed;
  text-orientation: mixed;
  white-space: nowrap;
}

.catchcopy-smile,
.catchcopy-children { clip-path: var(--catchcopy-zigzag); }

.catchcopy-smile {
  padding-bottom: calc(var(--catchcopy-pad-y) - .4cqw);
}

.hero-artwork {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  /* PCのアートワークは高さではなく幅を基準にする。
     svhはSafariとChromiumでビューポートの扱いが異なるため、
     キャッチコピーの親ボックスがブラウザごとに変わってしまう。 */
  width: min(100%, 1530px);
  aspect-ratio: 1366 / 900;
  transform: translate(-50%, -50%);
  pointer-events: none;
  container-type: inline-size;
}

.hero-cloud {
  display: none;
}

.hero-swallow {
  display: none;
}

.hero-scroll { display: none; }

@media (min-width: 621px) {
  /* デスクトップではブラウザUIの影響を受けるsvhを使わず、
     同じ表示領域を同じ基準で計算する。 */
  .hero { min-height: max(720px, 100vh); }

  /* SP版Heroの雲とツバメをPCにも配置 */
  .hero-cloud {
    position: absolute;
    z-index: 0;
    top: calc(clamp(56px, 9vh, 112px) + 150px);
    left: clamp(-20px, calc(50% - 680px), 124px);
    right: auto;
    display: block;
    width: clamp(400px, 34vw, 560px);
    max-width: none;
    height: auto;
    pointer-events: none;
    animation: ryogakuhou-hero-cloud-float 8s ease-in-out 1s infinite;
  }
  .hero-swallow {
    position: absolute;
    z-index: 2;
    top: calc(clamp(24px, 4vh, 56px) + 100px);
    left: clamp(4px, calc(50% - 570px), calc(25% - 20px));
    display: block;
    width: clamp(88px, 9vw, 136px);
    max-width: none;
    height: auto;
    pointer-events: none;
    transform: scaleX(-1) rotate(-6deg);
    animation: ryogakuhou-hero-swallow-float 6s ease-in-out 1.2s infinite;
  }
}

.hero-book {
  position: absolute;
  z-index: 0;
  top: 27.78%;
  bottom: auto;
  left: -6.59%;
  width: 69.99%;
  transform: rotate(-2deg) scale(1.1);
  transform-origin: center;
}

.hero-media {
  position: absolute;
  z-index: 1;
  top: 5.16%;
  right: auto;
  bottom: auto;
  left: 41.36%;
  width: 52.49%;
  aspect-ratio: 710.69 / 551.42;
  min-width: 0;
  transform: scale(1.1);
  transform-origin: center;
  /* フェード中に下地のhero-1が見えないよう、画像はimg要素だけで表示する */
  background: transparent;
  /* 外部SVG参照ではなく埋め込みマスクにして、ローカル表示でも画像を隠さない */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 710.69 551.42'%3E%3Cpath fill='white' d='M325.88 551.42s172.62-84.89 336.13-13.63l48.68-461.3C547.18 5.23 374.56 90.12 374.56 90.12S223.46-28.93 48.68 6.63L0 467.94c174.78-35.57 325.88 83.48 325.88 83.48'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 710.69 551.42'%3E%3Cpath fill='white' d='M325.88 551.42s172.62-84.89 336.13-13.63l48.68-461.3C547.18 5.23 374.56 90.12 374.56 90.12S223.46-28.93 48.68 6.63L0 467.94c174.78-35.57 325.88 83.48 325.88 83.48'/%3E%3C/svg%3E");
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.hero-media__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-media__image.is-active { opacity: 1; }

.global-menu {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: 25px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(78vw, 1060px);
  min-width: 920px;
  transform: translateX(50%);
  overflow: hidden;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 5px 7px rgb(48 43 39 / 18%);
}

.global-menu a {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: var(--space-1);
  padding: 16px 8px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: var(--body-size);
  font-weight: 500;
}

.global-menu a + a::before {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 0;
  width: 1px;
  background: #dedbd8;
  content: "";
}

.global-menu a:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.global-menu img { object-fit: contain; }
/* XDの横幅を基準にし、縦横比はSVG本来の比率を保つ */
.global-menu a:nth-child(1) img { width: 52.3px; height: auto; }
.global-menu a:nth-child(2) img { width: 46.81px; height: auto; }
.global-menu a:nth-child(3) img { width: 40.62px; height: auto; }
.global-menu a:nth-child(4) img { width: 37.5px; height: auto; }
.global-menu a:nth-child(5) img { width: 45.05px; height: auto; }

/* SP展開メニュー専用の装飾。通常のヒーローGNでは表示しない */
.global-menu__cloud,
.global-menu__swallow,
.global-menu__brand { display: none; }
.global-menu > img.global-menu__cloud,
.global-menu > img.global-menu__swallow,
.global-menu > a.global-menu__brand { display: none; }

.sticky-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 clamp(24px, 4vw, 64px);
  background-color: #ecf6f7;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform .32s ease, opacity .25s ease, visibility .25s ease;
  visibility: hidden;
}

.sticky-header::before {
  position: absolute;
  inset: 0;
  background-image: var(--paper-noise);
  background-size: 150px 150px;
  mix-blend-mode: multiply;
  opacity: .38;
  pointer-events: none;
  content: "";
}

.sticky-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.sticky-header__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: auto;
  margin-right: clamp(24px, 4vw, 64px);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.sticky-header__brand img { width: 104px; }
.sticky-header__brand span { font-size: 10px; font-weight: 700; letter-spacing: .04em; }

.sticky-header__nav {
  position: relative;
  z-index: 1;
  flex: 0 0 min(60vw, 760px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.sticky-header__nav a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-1);
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.sticky-header__nav a + a::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: #cbd6d6;
  content: "";
}
.sticky-header__nav a:hover,
.sticky-header__nav a:focus-visible { color: var(--ink); background: transparent; }
.sticky-header__nav a:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.sticky-header__nav img { max-width: none; object-fit: contain; }
/* ヒーロー内GNと同じ比率で、固定表示用に60%へ縮小 */
.sticky-header__nav a:nth-child(1) img { width: 31.38px; height: auto; }
.sticky-header__nav a:nth-child(2) img { width: 28.08px; height: auto; }
.sticky-header__nav a:nth-child(3) img { width: 24.37px; height: auto; }
.sticky-header__nav a:nth-child(4) img { width: 22.5px; height: auto; }
.sticky-header__nav a:nth-child(5) img { width: 27.03px; height: auto; }

@media (min-width: 621px) {
  .sticky-header__nav a:nth-child(5) span { white-space: nowrap; }
}

.menu-toggle { display: none; }

.intro {
  position: relative;
  min-height: 1135px;
  overflow: visible;
  padding: 192px 32px var(--section-edge-pad);
  background: var(--sky);
}

.intro-heading,
.intro-content {
  position: relative;
  z-index: 1;
  width: min(100%, 825px);
  margin: 0 auto;
}

.intro-heading { width: min(100%, 1000px); padding-left: 456px; }

.intro h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
}

.intro-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  width: min(100%, 805px);
  margin-top: 32px;
}

.profile-photos { position: relative; min-height: 440px; }

.profile-main {
  width: 300px;
  height: 382px;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 40%;
}

.profile-sub {
  position: absolute;
  z-index: 1;
  bottom: 46px;
  left: -82px;
  width: 225px;
  height: 166px;
  border-radius: 16px;
  object-fit: cover;
}

.profile-link {
  position: absolute;
  right: 12px;
  bottom: 131px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--deep-orange);
  background: var(--yellow);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease;
}

.profile-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .24s ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  background: #ffe47a;
  transform: translateY(-3px);
}

.profile-link:hover svg,
.profile-link:focus-visible svg { transform: rotate(10deg) scale(1.12); }

.about-detail {
  position: relative;
  margin-top: -120px;
  overflow-x: clip;
  overflow-y: visible;
  padding: 256px 32px var(--section-edge-pad);
  background: #f9faf2;
}

.about-detail::after,
.contact-section::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-repeat: no-repeat;
}

.about-detail::after {
  inset: 0;
  background-image: url("../images/01_warm_round_ghost.png");
  background-position: right -300px top 40px;
  background-size: 760px auto;
  opacity: .66;
}

.about-detail__header,
.about-detail__inner {
  position: relative;
  z-index: 1;
}

.about-detail__header {
  display: grid;
  justify-items: center;
  margin: 0 auto 24px;
  text-align: center;
  transform: translateY(-90px);
}

.about-detail__bird-line {
  position: relative;
  width: 126px;
  height: 90px;
  margin-bottom: 8px;
}

.about-detail__bird-line::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--ink);
  content: "";
}

.about-detail__bird-line img {
  position: absolute;
  z-index: 1;
  bottom: -17px;
  left: 50%;
  width: 96px;
  transform: translateX(-51%) rotate(-4deg);
}

.about-detail__header h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 700;
  letter-spacing: .1em;
}

.about-detail__header p {
  margin: var(--space-1) 0 0;
  font-size: var(--body-size);
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.5;
}

.about-detail__inner { width: min(100%, var(--content-width)); margin: 0 auto; }

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.7vw, 34px);
  font-weight: 500;
  letter-spacing: .1em;
}

.section-title::before {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: radial-gradient(circle, var(--orange) 2px, transparent 2.6px) 2px 2px / 11px 11px;
  transform: translateY(-3px);
  content: "";
}

/* カード内の本文左端に、見出し文字を揃える共通modifier */
.section-title--card {
  --section-card-inset: 24px;
}

.about-strengths > .section-title {
  justify-content: flex-start;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  font-size: clamp(24px, 2.45vw, 32px);
  white-space: nowrap;
}

.about-strengths {
  position: relative;
  left: 50%;
  width: min(1260px, calc(100vw - 96px));
  transform: translateX(-50%);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
}

.strength-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
}

.strength-card h4 {
  margin: 24px 0 16px;
  color: var(--orange);
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.55;
  text-align: center;
}

.strength-card p {
  margin: 0;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-leading);
}

.mentor-card {
  position: relative;
  width: min(100%, 960px);
  min-height: 566px;
  margin: 128px auto 0;
  padding: 0;
  overflow: visible;
  border-radius: 28px;
  background: #ecefdb;
}

.mentor-card__copy {
  position: relative;
  z-index: 1;
  max-width: 450px;
  margin-left: 128px;
  padding-top: 192px;
}

.mentor-card__title {
  position: absolute;
  z-index: 1;
  top: 80px;
  right: 0;
  left: 0;
  margin: 0;
  padding-bottom: 16px;
  color: #4f9a75;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: .08em;
  text-align: center;
}

.mentor-card__title::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 136px;
  height: 1px;
  transform: translateX(50%);
  background: #86b995;
  content: "";
}

.mentor-card__copy p {
  margin: 0;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-leading);
}

.mentor-card__copy a {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-1);
  margin: 24px auto 0;
  padding: 12px 24px;
  border-radius: 999px;
  color: #fff;
  background: #008a4a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mentor-card__cta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mentor-card__house {
  position: absolute;
  right: 0;
  bottom: -62px;
  width: min(46%, 440px);
  pointer-events: none;
}

.mentor-card__cloud,
.mentor-card__swallow {
  position: absolute;
  pointer-events: none;
}

.mentor-card__cloud--left { top: -54px; left: -148px; width: 420px; opacity: .9; }
.mentor-card__cloud--right { right: -118px; bottom: 110px; width: 390px; opacity: .88; }
.mentor-card__swallow { top: 48px; right: -104px; width: 88px; }

.company { margin-top: 144px; }

.company-table {
  width: min(100%, 960px);
  margin: 48px auto 0;
  overflow: hidden;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 400;
}

.company-table div {
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 52px;
  border-bottom: 1px solid #908983;
}

.company-table div:last-child { border-bottom: 0; }

.company-table div:nth-child(odd) { background: #ecefdb; }
.company-table dt,
.company-table dd { display: flex; align-items: center; margin: 0; padding: 16px 24px; }
.company-table dt { justify-content: center; border-right: 1px solid #908983; font-weight: 700; }
.company-table dd { letter-spacing: .08em; }

.children-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-edge-pad) 32px;
  background: var(--sky);
}

.children-section::before {
  position: absolute;
  inset: 0;
  background-image: var(--paper-noise);
  background-size: 150px 150px;
  mix-blend-mode: multiply;
  opacity: .38;
  pointer-events: none;
  content: "";
}

.children-section__header,
.children-section__inner {
  position: relative;
  z-index: 1;
}

.children-section__header {
  display: grid;
  justify-items: center;
  margin-bottom: var(--section-header-bottom);
  text-align: center;
}

.children-section__bird-line {
  position: relative;
  width: 110px;
  height: 102px;
  margin-bottom: 8px;
}

.children-section__bird-line::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--ink);
  content: "";
}

.children-section__bird-line img {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 96px;
  transform: translateX(-50%) rotate(-8deg);
}

.children-section__header h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .1em;
}

.children-section__header p {
  margin: var(--space-1) 0 0;
  font-size: var(--body-size);
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.5;
}

.children-section__inner { width: min(100%, var(--content-width)); margin: 0 auto; }

.children-block + .children-block { margin-top: 176px; }

.children-block__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 80px;
  color: var(--ink);
  font-size: clamp(26px, 2.7vw, 34px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.55;
}

.children-block__title::before {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: radial-gradient(circle, var(--orange) 2px, transparent 2.6px) 2px 2px / 11px 11px;
  transform: translateY(-3px);
  content: "";
}

.children-block--school .children-block__title {
  align-items: flex-start;
}

.children-block--school .children-block__title::before {
  margin-top: .22em;
  transform: none;
}

.children-block__grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 192px;
  align-items: center;
}

.children-block--school {
  position: relative;
}

.children-block--school .children-block__grid {
  align-items: start;
  grid-template-columns: 436px minmax(0, 1fr);
  column-gap: 80px;
}

.children-block__photos {
  position: relative;
  min-height: 500px;
}

/* 写真の左端を、見出し文字（ドット飾りを除く）の左端に揃える */
.children-block--school .children-block__photos {
  margin-left: 48px;
}

.children-block__tree {
  position: absolute;
  z-index: 0;
  bottom: -26px;
  /* 写真コンテナから画面左端までを埋め、幅は画面に合わせて可変 */
  left: min(-32px, calc((var(--content-width) - 100vw) / 2 - 32px));
  width: clamp(400px, 46.4vw, 720px);
  transform: scaleX(-1);
  pointer-events: none;
}

.children-block__photo-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 27px;
  object-fit: cover;
}

.children-block__photos .children-block__photo-main {
  width: 390px;
  aspect-ratio: 1;
}

.children-block__photo-sub {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: -118px;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
}

.children-block__copy { font-size: var(--body-size); font-weight: 400; line-height: var(--body-leading); }
.section-lead {
  margin: 0 0 24px;
  color: #4f9a75;
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: .08em;
}
.children-block__copy p { margin: 0; }

.children-block--attendance .children-block__grid {
  grid-template-columns: minmax(0, 1fr) 436px;
  column-gap: var(--space-4);
  align-items: start;
}

/* 本文ブロックは、見出しの文字部分（ドット飾りを除く）と左端を揃える */
.children-block--attendance .children-block__copy {
  margin-left: 48px;
}

.children-block__attendance-visual {
  position: relative;
  min-height: 430px;
}

.children-block__attendance-visual > .children-block__photo-main {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: auto;
  width: 390px;
  aspect-ratio: 1;
}

.children-block__cloud {
  position: absolute;
  z-index: 0;
  top: -150px;
  right: -170px;
  width: 430px;
  pointer-events: none;
}

.children-block__book {
  position: absolute;
  z-index: 2;
  right: -192px;
  bottom: -104px;
  width: 378px;
  transform: rotate(-10deg);
  transform-origin: center center;
  pointer-events: none;
}

.section-cta svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* セクション共通CTA */
.section-cta {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-1);
  margin: 32px auto 0;
  padding: 12px 24px;
  border-radius: 999px;
  color: #fff;
  background: #008a4a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.mentor-card__copy a.section-cta {
  font-weight: 500;
}

.section-cta svg {
  transition: transform .2s ease;
}

.section-cta:hover,
.section-cta:focus-visible {
  background: #0a9a58;
}

.section-cta:hover svg,
.section-cta:focus-visible svg {
  transform: translateX(4px);
}

.children-voices {
  position: relative;
  margin-top: 224px;
}

.children-voices > .section-title { width: min(100%, var(--content-width)); margin-inline: auto; }

.children-voices__cloud {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: -240px;
  width: 443px;
  pointer-events: none;
}

.children-voices__card {
  position: relative;
  z-index: 1;
  width: calc(100vw - max(30px, (100vw - var(--content-width)) / 2) - 56px);
  margin: 72px 0 0 48px;
  padding: 72px max(32px, (100vw - var(--content-width)) / 2) 72px 96px;
  border-radius: 28px 0 0 28px;
  background: #fff;
  font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-leading);
}

.children-voices__swallow {
  position: absolute;
  z-index: 2;
  top: 60%;
  left: -116px;
  width: 152px;
  transform: translateY(-50%);
  pointer-events: none;
}

.children-voices__branch {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: -80px;
  right: -8px;
  width: clamp(420px, 45vw, 1100px);
  transform: scaleX(-1);
  transform-origin: center center;
  pointer-events: none;
}

/* 1,620px以下では、枝が本文側へ入り込みすぎないように可変幅を抑える */
@media (max-width: 1620px) and (min-width: 901px) {
  .children-voices__branch { width: clamp(420px, 38vw, 620px); }
}

@media (max-width: 1400px) and (min-width: 901px) {
  .children-voices__branch { bottom: -192px; }
  .children-section { padding-bottom: 192px; }
}

/* 右下の枝が、幅の変化で最後のコメントに重ならないようにする */
.children-voices__card > .children-voice:last-child {
  position: relative;
  z-index: 3;
}

.children-voices__intro {
  margin-bottom: 48px;
  font-weight: 700;
}
.children-voices__intro p,
.children-voice p { margin: 0; }

.children-voice { font-weight: 400; }

.children-voice__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  width: min(100%, 680px);
  margin: 0 0 var(--space-4);
}

.children-voice__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.children-voice__photo--full {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f9faf2;
}

.children-voice--nakahira {
  display: grid;
  /* 2枚目の写真の右端から48px空けた位置を本文の左端にする */
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  column-gap: var(--space-4);
  margin-left: -120px;
}

.children-voice--nakahira > h4,
.children-voice--nakahira > p { grid-column: 2; }

.children-voice--nakahira > .children-voice__photos {
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: start;
  width: 420px;
  height: 370px;
  margin: 0;
  display: block;
  position: relative;
}

/* 中平さまの写真はそのままに、講師とお子さまの写真だけを
   冒頭テキストの左端へ寄せ、下へ重ねて配置する */
.children-voice--nakahira > .children-voice__photos > .children-voice__photo:not(.children-voice__photo--full) {
  position: absolute;
  z-index: 3;
  top: 106px;
  left: 120px;
  width: 224px;
  aspect-ratio: 4 / 3;
}

.children-voice--nakahira > .children-voice__photos > .children-voice__photo--full {
  width: 200px;
}

.children-voice--siblings {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  column-gap: var(--space-4);
  margin: var(--space-5) 0 0 -120px;
  padding-top: var(--space-5);
}

.children-voice--siblings__photo {
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 320px;
  margin-top: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.children-voice--siblings__copy {
  position: relative;
  grid-column: 2;
}

.children-voice--siblings__copy::before {
  content: "";
  position: absolute;
  top: -40px;
  right: 0;
  left: -272px;
  border-top: 1px solid #d8d8cf;
}

.children-voice--siblings + .children-voice {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid #d8d8cf;
}

.children-voice + .children-voice {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid #d8d8cf;
}

.children-voice h4 {
  margin: 0 0 var(--space-1);
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
}

.teachers-section {
  position: relative;
  --teachers-overlap: 320px;
  z-index: 0;
  overflow: hidden;
  margin-top: calc(var(--teachers-overlap) * -1);
  padding: calc(var(--section-header-top) + var(--teachers-overlap) - 120px) 32px 192px;
  background: #f9faf2;
}

/* 各セクションのタイトル帯は共通クラスで管理 */
.section-header {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin-bottom: var(--section-header-bottom);
  text-align: center;
}

.section-header > h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}

.section-header > p {
  margin: var(--space-1) 0 0;
  font-size: var(--body-size);
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.5;
}

.section-header__bird-line {
  margin-bottom: var(--space-1);
}

/* 良学朋についてだけ、見出しが上の要素へ食い込む既存レイアウトを維持 */
.about-detail__header { margin: 0 auto 24px; }

.teachers-section::before {
  position: absolute;
  inset: 0;
  background-image: var(--paper-noise);
  background-size: 150px 150px;
  mix-blend-mode: multiply;
  opacity: .38;
  pointer-events: none;
  content: "";
}

.teachers-section__header {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin-bottom: var(--section-header-bottom);
  scroll-margin-top: 144px;
  text-align: center;
}

.teachers-section__bird-line {
  position: relative;
  width: 160px;
  height: 112px;
  margin-bottom: 8px;
}

.teachers-section__bird-line::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--ink);
  content: "";
}

.teachers-section__bird-line img {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 128px;
  transform: translateX(-50%);
}

.teachers-section__header h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .1em;
}

.teachers-section__header p {
  margin: var(--space-1) 0 0;
  font-size: var(--body-size);
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.5;
}

.teachers-section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.teachers-section__content {
  position: relative;
}

.teachers-section__title {
  position: relative;
  z-index: 1;
  margin: 0 0 72px;
}

.section-title.section-title--card {
  margin-left: calc(var(--section-card-inset) - 48px);
}

.teachers-section__photos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  width: min(100%, 960px);
  margin-top: 48px;
  margin-left: 24px;
}

.teachers-section__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 24px;
}

.teachers-section__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin-left: 24px;
  color: var(--ink);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-leading);
}

.teachers-section__copy p {
  margin: 0;
}

.teachers-section__copy p + p {
  margin-top: 0;
}

.teachers-section__cloud {
  position: absolute;
  z-index: 0;
  top: -56px;
  right: -130px;
  width: 450px;
  pointer-events: none;
}

.teachers-section__branch,
.teachers-section__book {
  position: absolute;
  pointer-events: none;
}

.teachers-section__branch {
  z-index: 1;
  bottom: -144px;
  /* セクション内側ではなく、ブラウザの左端を基準に配置 */
  left: calc((var(--content-width) - 100vw) / 2 - 80px);
  width: clamp(420px, 40vw, 720px);
}

.teachers-section__book {
  z-index: 1;
  right: -232px;
  bottom: -32px;
  width: 420px;
  transform: rotate(-1deg);
}

/* 控えめなページアニメーション */
@keyframes ryogakuhou-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ryogakuhou-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ryogakuhou-artwork-in {
  from { opacity: 0; transform: translate(-50%, -48%) scale(.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes ryogakuhou-mobile-artwork-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pricing-table-hint-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
  14%, 76% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pricing-table-hint-slide {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

@keyframes ryogakuhou-scroll-flow {
  0% { opacity: 0; transform: translateY(-8px); }
  22% { opacity: .85; }
  78% { opacity: .85; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes ryogakuhou-menu-in {
  from { opacity: 0; transform: translate(50%, 14px); }
  to { opacity: 1; transform: translate(50%, 0); }
}

@keyframes ryogakuhou-mobile-menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ryogakuhou-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ryogakuhou-swallow-float {
  0%, 100% { transform: rotate(-11deg) translateY(0); }
  50% { transform: rotate(-10.4deg) translateY(-5px); }
}

@keyframes ryogakuhou-hero-cloud-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ryogakuhou-hero-swallow-float {
  0%, 100% { transform: scaleX(-1) rotate(-6deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(-6deg) translateY(-8px); }
}

@keyframes ryogakuhou-branch-sway {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(20.6deg) translateY(-2px); }
}

@keyframes ryogakuhou-map-cloud-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-6px); }
}

@keyframes ryogakuhou-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero .brand { animation: ryogakuhou-fade-up .7s cubic-bezier(.22, .61, .36, 1) both; }
.hero-artwork { animation: ryogakuhou-artwork-in .85s cubic-bezier(.22, .61, .36, 1) .08s both; }
.catchcopy { animation: ryogakuhou-fade-up .65s cubic-bezier(.22, .61, .36, 1) .2s both; }

@media (min-width: 621px) {
  .hero > .global-menu { animation: ryogakuhou-menu-in .65s cubic-bezier(.22, .61, .36, 1) .35s both; }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .62s ease var(--reveal-delay, 0ms), transform .62s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.cloud-left,
.children-block__cloud,
.children-voices__cloud,
.teachers-section__cloud,
.pricing-mini-card__cloud,
.pricing-section__cloud,
.contact-section__cloud {
  animation: ryogakuhou-float 8s ease-in-out infinite;
}

.contact-map__cloud { animation: ryogakuhou-map-cloud-float 8s ease-in-out infinite; }
.swallow-left { animation: ryogakuhou-swallow-float 7s ease-in-out infinite; }
.branch-right { animation: ryogakuhou-branch-sway 9s ease-in-out infinite; }

@media (hover: hover) {
  .mentor-card,
  .course-card,
  .pricing-mini-card {
    transition: transform .28s cubic-bezier(.22, .61, .36, 1), background-color .28s ease;
  }

  .mentor-card:hover,
  .course-card:hover,
  .pricing-mini-card:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .brand,
  .hero-artwork,
  .catchcopy,
  .hero-scroll span,
  .hero > .global-menu,
  .hero-cloud,
  .hero-swallow,
  .cloud-left,
  .children-block__cloud,
  .children-voices__cloud,
  .teachers-section__cloud,
  .pricing-mini-card__cloud,
  .pricing-section__cloud,
  .contact-section__cloud,
  .contact-map__cloud,
  .swallow-left,
  .branch-right { animation: none; }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mentor-card,
  .course-card,
  .pricing-mini-card,
  .profile-link,
  .profile-link svg { transition: none; }
}

.profile-modal {
  width: min(680px, calc(100% - 40px));
  max-height: min(700px, calc(100vh - 48px));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.profile-modal::backdrop { background: rgb(48 43 39 / 55%); }

.profile-modal__content {
  position: relative;
  min-height: 540px;
  padding: 56px;
  overflow: visible;
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 0 20px 60px rgb(48 43 39 / 30%);
}

@media (prefers-reduced-motion: no-preference) {
  .profile-modal[open] .profile-modal__content,
  .privacy-modal[open] .privacy-modal__content {
    animation: ryogakuhou-modal-in .32s cubic-bezier(.22, .61, .36, 1) both;
  }

  .profile-modal[open]::backdrop,
  .privacy-modal[open]::backdrop { animation: ryogakuhou-backdrop-in .24s ease both; }
}

.profile-modal__cloud,
.profile-modal__swallow {
  position: absolute;
  pointer-events: none;
}

.profile-modal__cloud {
  z-index: 2;
  top: auto;
  right: -144px;
  bottom: -96px;
  width: 330px;
  opacity: 1;
}

.profile-modal__swallow {
  z-index: 2;
  top: 16px;
  left: -80px;
  width: 120px;
  transform: rotate(-11deg);
}

.profile-modal__close {
  position: absolute;
  z-index: 4;
  top: -16px;
  right: -16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.profile-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--deep-orange);
  font-family: "Montserrat", sans-serif;
  font-size: var(--body-size);
  font-weight: 600;
  letter-spacing: .08em;
}

.profile-modal__title-block {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  margin: 0 auto 32px;
  padding: 16px 0 0;
  text-align: center;
}

.profile-modal h2 {
  margin: 0 0 24px;
  color: var(--orange);
  font-size: 28px;
  line-height: 1.45;
}

.profile-modal__title-block h2 { margin: 0; }
.profile-modal h2 span { margin-left: .35em; font-size: .66em; font-weight: 500; }

.profile-modal__body {
  position: relative;
  z-index: 1;
  padding: 0;
}

.profile-modal p { margin: 0 0 16px; font-size: var(--body-size); font-weight: 400; line-height: var(--body-leading); }

.profile-modal ul {
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #e6e2dc;
  list-style: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}

.profile-modal li::before { margin-right: .45em; color: var(--orange); content: "・"; }

.privacy-modal {
  width: min(720px, calc(100% - 40px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.privacy-modal::backdrop { background: rgb(48 43 39 / 55%); }

.privacy-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 48px));
  padding: 48px 56px;
  overflow: hidden;
  border: 2px solid #eadb9d;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: 0 20px 60px rgb(48 43 39 / 30%);
}

.privacy-modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--deep-orange);
  font-family: "Montserrat", sans-serif;
  font-size: var(--body-size);
  font-weight: 600;
  letter-spacing: .08em;
}

.privacy-modal h2 {
  margin: 0 0 32px;
  color: var(--orange);
  font-size: 28px;
  line-height: 1.45;
}

.privacy-modal__body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-gutter: stable;
}

.privacy-modal__body p {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
}

.privacy-modal__body h3 {
  margin: 24px 0 8px;
  color: var(--deep-orange);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.privacy-modal__body h3 + p { margin-bottom: 0; }
.privacy-modal__date { margin-top: 32px !important; color: #6a7775; font-size: 12px !important; text-align: right; }

.intro-copy { padding-top: 0; font-size: var(--body-size); font-weight: 400; line-height: var(--body-leading); }
.intro-copy p { margin: 0; }

/* 16px本文の共通組版 */
:where(
  .intro-copy,
  .strength-card p,
  .mentor-card__copy p,
  .children-block__copy p,
  .children-voices__card p,
  .teachers-section__copy p,
  .profile-modal__body p
) {
  text-align: justify;
}

.cloud, .swallow, .branch { position: absolute; pointer-events: none; }
.cloud-left {
  top: 0;
  left: clamp(-82px, calc(6.2vw - 121px), -20px);
  width: clamp(310px, 31.85vw, 520px);
  opacity: .82;
}
.swallow-left { top: 128px; left: max(8%, calc(50% - 540px)); width: 136px; transform: rotate(-11deg); }
.branch-right {
  /* 上下に余白のある、右下から伸びる枝 */
  right: 0;
  z-index: 2;
  bottom: clamp(-80px, calc(2.5px - 6.05vw), -35px);
  width: clamp(350px, 49.78vw, 760px);
  transform: rotate(20deg);
  transform-origin: right bottom;
}

@media (max-width: 900px) {
  .hero { min-height: max(720px, 100svh); }
  .brand { top: 28px; left: 23px; width: 135px; }
  .global-menu { right: 50%; bottom: 35px; width: calc(100% - 40px); min-width: 0; }
  .global-menu a { min-height: 125px; font-size: 13px; }
  .global-menu img { width: 37px; height: 35px; }
  .sticky-header { min-height: 78px; padding: 0 24px; }
  .sticky-header__brand { gap: 9px; margin-right: 24px; }
  .sticky-header__brand img { width: 84px; }
  .sticky-header__brand span { font-size: 8px; }
  .sticky-header__nav { flex: 1 1 auto; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sticky-header__nav a { padding-inline: 6px; font-size: 10px; }
  .intro { padding-top: 150px; }
  .intro-heading { padding-left: 0; width: min(100%, 700px); }
  .intro-content { grid-template-columns: 270px 1fr; gap: 34px; width: min(100%, 700px); }
  .profile-main { width: 250px; height: 330px; }
  .profile-sub { bottom: 30px; left: -42px; width: 190px; }
  .about-detail { padding-inline: 40px; }
  .about-detail::after { background-position: right -220px top 64px; background-size: 620px auto; opacity: .52; }
  .children-section { padding-inline: 40px; }
  .children-section__inner { width: min(100%, 760px); }
  .children-block__grid { grid-template-columns: 320px minmax(0, 1fr); gap: 44px; }
  .children-block--school .children-block__grid {
    grid-template-columns: 366px minmax(0, 1fr);
    column-gap: 80px;
  }
  .children-block__photos { min-height: 420px; }
  .children-block__photos .children-block__photo-main { width: 320px; }
  .children-block__photo-sub { bottom: 0; left: -55px; width: 176px; }
  .children-block__tree {
    bottom: -48px;
    left: calc(-40px - max(0px, (100vw - 840px) / 2));
    width: clamp(336px, 56vw, 480px);
  }
  .children-block--attendance .children-block__grid {
    grid-template-columns: minmax(0, 1fr) 366px;
    column-gap: 14px;
  }
  .children-block__attendance-visual { min-height: 400px; }
  .children-block__attendance-visual > .children-block__photo-main { width: 300px; }
  .children-block__cloud { right: -140px; width: 370px; }
  .children-block__book { right: -105px; bottom: -82px; width: 280px; }
  .children-voices__card {
    width: calc(100vw - 40px - 45px);
    margin-left: 45px;
    padding-right: 40px;
    padding-left: 76px;
    border-radius: 28px 0 0 28px;
  }
  .children-voice--nakahira { display: block; margin-left: 0; }
  .children-voice--nakahira > h4,
  .children-voice--nakahira > p { grid-column: auto; }
  .children-voice--nakahira > .children-voice__photos {
    display: grid;
    position: static;
    width: 100%;
    height: auto;
    margin: 0 0 var(--space-4);
  }
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo:not(.children-voice__photo--full) {
    position: static;
    width: 100%;
  }
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo {
    aspect-ratio: 1 / 1;
  }
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo--full { width: 100%; }
  .children-voice--siblings {
    display: block;
    margin: var(--space-5) 0 0;
    padding-top: var(--space-5);
  }
  .children-voice--siblings__photo {
    width: min(100%, 420px);
    margin: 0 0 var(--space-4);
  }
  .children-voice--siblings__copy::before { top: -32px; left: 0; }
  .children-voice--siblings__copy { width: 100%; }
  .children-voices__cloud { top: 0; right: -150px; width: 360px; }
  .teachers-section {
    --teachers-overlap: 280px;
    padding-top: calc(var(--section-header-top) + var(--teachers-overlap) - 90px);
    padding-inline: 40px;
  }
  .teachers-section__header { margin-bottom: var(--section-header-bottom); scroll-margin-top: 136px; }
  .teachers-section__bird-line { width: 135px; height: 96px; }
  .teachers-section__bird-line img { width: 125px; }
  .teachers-section__inner { width: min(100%, 760px); }
  .teachers-section__title { margin-bottom: 50px; }
  .section-title--card { --section-card-inset: 0px; }
  .teachers-section__photos { gap: 34px; width: 100%; margin-top: 40px; margin-left: 0; }
  .teachers-section__photo { border-radius: 20px; }
  .teachers-section__copy { width: 100%; margin-left: 0; font-size: 14px; line-height: 2; }
  .teachers-section__cloud { top: -30px; right: -150px; width: 320px; }
  .teachers-section__branch { bottom: -100px; left: min(-40px, calc(380px - 50vw - 60px)); width: clamp(340px, 50vw, 560px); }
  .teachers-section__book { right: -196px; bottom: -25px; width: 315px; }
  .mentor-card { padding-inline: 0; }
  .mentor-card__house { right: 0; }
}

@media (max-width: 620px) {
  :root {
    --section-edge-pad: 118px;
    --section-header-bottom: 80px;
  }
  /* XDのiPhoneアートボードいっぱいをファーストビューにする */
  .hero { min-height: 100svh; }
  /* SPはスクロール前後で同じヘッダーデザインを使う */
  .hero > .brand { display: none; }
  .brand {
    top: 27px;
    left: 29px;
    width: 115px;
  }
  .brand span { display: none; }

  .hero-cloud {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: -140px;
    display: block;
    width: 460px;
    max-width: none;
    height: auto;
    pointer-events: none;
  }

  .hero-swallow {
    position: absolute;
    z-index: 2;
    top: 132px;
    right: clamp(138px, 44vw, 175px);
    display: block;
    width: clamp(78px, 24vw, 100px);
    max-width: none;
    height: auto;
    pointer-events: none;
    transform: scaleX(-1) rotate(-6deg);
  }

  /* SPのヒーローはXD「iPhone 14 Pro – 1.png」の構図へ */
  .hero-artwork {
    top: 247px;
    left: 0;
    width: 100%;
    height: max(420px, calc(100svh - 247px));
    --hero-media-top: clamp(8px, 2.5svh, 22px);
    --hero-book-bottom: clamp(18px, 3svh, 26px);
    aspect-ratio: auto;
    transform: none;
    animation: ryogakuhou-mobile-artwork-in .85s cubic-bezier(.22, .61, .36, 1) .08s both;
  }
  .hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 21px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    color: #908983;
    transform: translateX(-50%);
  }
  .hero-scroll span {
    position: relative;
    top: -8px;
    display: block;
    width: 1px;
    height: 34px;
    background: #908983;
    animation: ryogakuhou-scroll-flow 1.8s ease-in-out infinite;
  }
  .hero-scroll span::after {
    position: absolute;
    right: auto;
    left: 0;
    bottom: 0;
    width: 14px;
    height: 1px;
    background: #908983;
    content: "";
    transform: rotate(-62deg);
    transform-origin: left center;
  }
  .hero-scroll small {
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
  }
  .hero-media {
    top: var(--hero-media-top);
    left: -20px;
    width: 100%;
    aspect-ratio: 710.69 / 551.42;
    transform: none;
  }
  .hero-book {
    z-index: 0;
    top: auto;
    bottom: var(--hero-book-bottom);
    left: -110px;
    width: 190%;
    height: 400px;
    max-width: none;
    object-fit: fill;
    transform: rotate(-2deg);
  }
  .catchcopy {
    top: -125px;
    left: 243px;
    gap: 12px;
    --catchcopy-pad-y: 14px;
  }
  .catchcopy-smile { padding-bottom: 12px; }
  .catchcopy p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 36px;
    height: auto;
    padding: var(--catchcopy-pad-y) 4px;
    border-radius: 18px;
    font-size: 20px;
    letter-spacing: 0;
    text-align: center;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -webkit-text-orientation: mixed;
    text-orientation: mixed;
    white-space: nowrap;
  }
  .sticky-header { min-height: 68px; padding: 0 12px; }
  /* SPの固定ヘッダーは、ロゴとメニューボタンだけを重ねて表示 */
  .sticky-header {
    min-height: 0;
    height: 80px;
    align-items: center;
    padding: 0 29px;
    overflow: visible;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .sticky-header::before { display: none; }
  .sticky-header__brand {
    width: 105px;
    margin-right: 0;
  }
  .sticky-header__brand img { width: 105px; }
  .sticky-header__brand span { display: none; }
  .sticky-header__nav { display: none; }
  .menu-toggle {
    position: absolute;
    z-index: 5;
    top: 16.5px;
    right: 25px;
    display: grid;
    width: 47px;
    height: 47px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
    transition: background-color .25s ease;
  }
  .menu-toggle span:not(.visually-hidden) {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 1px;
    margin: -.5px 0 0 -11px;
    background: #fff;
    transform-origin: center;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
  }
  .menu-toggle span:nth-of-type(1) { transform: translateY(-7px); }
  .menu-toggle span:nth-of-type(2) { transform: translateY(0); }
  .menu-toggle span:nth-of-type(3) { transform: translateY(7px); }
  .menu-toggle.is-open {
    position: fixed;
    top: 16.5px;
    right: 25px;
    z-index: 40;
    background: var(--orange);
  }
  /* 展開中は固定ヘッダーごとメニューより前面に出し、×を隠さない */
  .sticky-header.menu-open { z-index: 40; }
  .menu-toggle.is-open span:nth-of-type(1) { transform: rotate(45deg); }
  .menu-toggle.is-open span:nth-of-type(2) { opacity: 0; transform: scaleX(.4); }
  .menu-toggle.is-open span:nth-of-type(3) { transform: rotate(-45deg); }
  .menu-toggle.is-open:focus-visible { outline: 0; }
  .global-menu {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: none;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    align-content: start;
    justify-items: center;
    gap: clamp(14px, 2.4vh, 20px);
    width: auto;
    transform: none;
    min-width: 0;
    padding: clamp(88px, 12.7vh, 108px) 24px 180px;
    overflow: hidden;
    border-radius: 0;
    background-color: var(--sky);
    background-image: linear-gradient(rgb(236 246 247 / 88%), rgb(236 246 247 / 88%)), var(--paper-noise);
    background-size: auto, 150px 150px;
    box-shadow: none;
  }
  .global-menu.is-open { display: grid; }
  .global-menu a {
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: 100%;
    min-height: 0;
    place-items: center;
    gap: 8px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
  }
  .global-menu > a:not(.global-menu__brand) {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: 1fr;
    justify-content: stretch;
    justify-items: start;
    width: 100%;
    min-height: 68px;
    gap: 14px;
    padding: 12px 20px;
    border-radius: 16px;
    background: #fff;
    text-align: left;
  }
  .global-menu a + a::before { display: none; }
  .global-menu a:not(.global-menu__brand) img { width: auto; height: auto; max-height: 43px; }
  .global-menu a:nth-child(1) img { width: 38px; }
  .global-menu a:nth-child(2) img { width: 35px; }
  .global-menu a:nth-child(3) img { width: 34px; }
  .global-menu a:nth-child(4) img { width: 31px; }
  .global-menu a:nth-child(5) img { width: 36px; }
  .global-menu > a.global-menu__brand {
    position: absolute;
    z-index: 1;
    right: 50%;
    bottom: clamp(60px, 9.8vh, 84px);
    display: flex;
    width: 145px;
    flex-direction: column;
    gap: 5px;
    color: var(--ink);
    transform: translateX(50%);
    text-decoration: none;
  }
  /* SP展開メニュー下部のロゴ・キャッチコピーは表示しない */
  .global-menu > a.global-menu__brand { display: none; }
  .global-menu__brand img { width: 100%; height: auto; }
  .global-menu__brand span {
    width: 100%;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
  }
  .global-menu > img.global-menu__cloud,
  .global-menu > img.global-menu__swallow {
    position: absolute;
    z-index: 0;
    display: block;
    max-width: none;
    pointer-events: none;
  }
  .global-menu > img.global-menu__cloud {
    bottom: -22px;
    left: -36px;
    width: clamp(180px, 47vw, 240px);
    height: auto;
    opacity: .88;
  }
  .global-menu > img.global-menu__swallow {
    right: -10px;
    bottom: 20px;
    width: clamp(74px, 20vw, 96px);
    height: auto;
  }
  .global-menu.is-open { animation: ryogakuhou-mobile-menu-in .34s ease both; }
  /* 装飾枝が画面外へ伸びても、SPで横スクロールを発生させない */
  .intro { min-height: 0; overflow-x: clip; padding: 115px 24px var(--section-edge-pad); }
  .cloud-left { top: 18px; left: -82px; width: 310px; }
  .swallow-left { top: 290px; left: -16px; width: 100px; }
  .branch-right { right: 0; bottom: -100px; width: 280px; }
  .sp-only { display: block; }
  .intro h1 { max-width: 315px; margin-right: auto; margin-left: 0; font-size: 25px; text-align: left; white-space: normal; }
  .intro-content { display: block; margin-top: 38px; }
  .profile-photos { width: 100%; min-height: 380px; margin: 0 0 35px; }
  .profile-main { width: 235px; height: 300px; margin-left: auto; }
  .profile-sub { bottom: 20px; left: 0; width: 160px; height: 118px; }
  .profile-link { right: 16px; bottom: 60px; min-height: 46px; padding: 0 16px; font-size: 14px; }
  .intro-copy { font-size: 14px; line-height: 2; }
  .about-detail { margin-top: -60px; padding: 148px 24px var(--section-edge-pad); }
  .about-detail::after { background-position: right -170px top 48px; background-size: 500px auto; opacity: .38; }
  .about-detail__header { margin-bottom: 12px; transform: translateY(-60px); }
  .about-detail__bird-line { width: 102px; height: 72px; margin-bottom: 7px; }
  .about-detail__bird-line::after { width: 40px; }
  .about-detail__bird-line img { bottom: -15px; width: 80px; }
  .about-detail__header p { font-size: 12px; }
  .section-title { gap: 10px; font-size: 17px; text-wrap: balance; }
  .section-title::before { width: 27px; height: 27px; background-position: 2px 2px; background-size: 9px 9px; }
  .about-strengths { left: auto; width: 100%; transform: none; }
  .strengths-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 35px; }
  .strength-card { width: min(100%, 340px); margin: 0 auto; }
  .strength-card h4 { margin: 17px 0 10px; font-size: 16px; }
  .strength-card p { font-size: 14px; line-height: 1.9; }
  .mentor-card { min-height: 0; margin-top: 88px; padding: 42px 25px 255px; border-radius: 22px; }
  .mentor-card__copy { max-width: none; margin-left: 0; padding-top: 0; }
  .mentor-card__title { position: relative; top: auto; right: auto; left: auto; margin: 0 0 24px; padding-bottom: 14px; font-size: 22px; }
  .mentor-card__title::after { width: 112px; }
  .mentor-card__copy p { font-size: 14px; line-height: 1.9; }
  .mentor-card__copy a,
  .section-cta { padding: 11px 16px 11px 19px; font-size: 12px; }
  .mentor-card__house { right: 50%; bottom: -30px; width: 210px; transform: translateX(50%); }
  .mentor-card__cloud--left { top: -33px; left: -65px; width: 180px; }
  .mentor-card__cloud--right { right: -64px; bottom: 178px; width: 165px; }
  .mentor-card__swallow { top: auto; right: -16px; bottom: 192px; width: 56px; }
  .company { margin-top: 92px; }
  .company-table { margin-top: 30px; font-size: 12px; }
  .company-table div { grid-template-columns: 34% 1fr; min-height: 47px; }
  .company-table dt, .company-table dd { padding: 8px 10px; }
  .company-table dd { letter-spacing: .025em; }
  .children-section { padding: var(--section-edge-pad) 24px; }
  .children-section__header { margin-bottom: var(--section-header-bottom); }
  .children-section__bird-line { width: 105px; height: 95px; margin-bottom: 8px; }
  .children-section__bird-line::after { width: 64px; }
  .children-section__bird-line img { bottom: 5px; width: 82px; }
  .children-section__header p { font-size: 12px; }
  .children-section__inner { width: 100%; }
  .children-block + .children-block { margin-top: 108px; }
  .children-block__title { gap: 10px; margin-bottom: 42px; font-size: 17px; line-height: 1.55; letter-spacing: 0; }
  .children-block__title::before { width: 27px; height: 27px; background-position: 2px 2px; background-size: 9px 9px; }
  .children-block__grid,
  .children-block--attendance .children-block__grid { grid-template-columns: 1fr; gap: 35px; }
  /* schoolブロックだけPC用の高い詳細度指定が残るため、SPでは明示的に1カラムへ戻す */
  .children-block--school .children-block__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 35px;
  }
  .children-block__photos { width: 280px; min-height: 365px; margin: 0 auto; }
  .children-block--school .children-block__photos { margin-right: 0; margin-left: auto; }
  .children-block__photos .children-block__photo-main { width: 280px; }
  .children-block__photo-sub { left: -50px; width: 150px; border-radius: 18px; }
  .children-block__tree { bottom: -58px; left: -145px; width: 284px; }
  .children-block__copy { font-size: 14px; line-height: 2; }
  .children-block--attendance .children-block__copy { margin-left: 37px; }
  .section-lead { margin-bottom: 18px; font-size: 17px; text-wrap: balance; }
  .children-block__attendance-visual { width: 280px; min-height: 365px; margin: 0 auto; }
  .children-block__attendance-visual > .children-block__photo-main { top: 0; width: 280px; border-radius: 20px; }
  .children-block__cloud { top: -98px; right: -125px; width: 350px; }
  .children-block__book { right: -84px; bottom: -68px; width: 252px; }
  .section-cta { margin-top: 28px; padding: 11px 17px 11px 20px; font-size: 13px; }
  .children-voices { margin-top: 128px; }
  .children-voices__cloud { top: -45px; right: -95px; width: 250px; }
  .children-voices__card {
    width: calc(100vw - 24px);
    margin-top: 42px;
    margin-left: 0;
    padding: 40px 24px 40px 24px;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    line-height: 2;
  }
  /* SPではツバメを反転し、本文約4行分（112px）下へ */
  .children-voices__swallow {
    top: calc(60% + 112px);
    left: -72px;
    width: 128px;
    transform: translateY(-50%) scaleX(-1);
  }
  /* SPでは枝をセクション下部の余白内に収め、下端を切らない */
  .children-voices__branch { right: -6px; bottom: -120px; width: 280px; }
  .children-voices { padding-bottom: 88px; }
  .children-voices__intro { margin-bottom: 32px; }
  .children-voice--nakahira { display: block; margin-left: 0; }
  .children-voice--nakahira > h4,
  .children-voice--nakahira > p { grid-column: auto; }
  .children-voice--nakahira > .children-voice__photos {
    display: grid;
    position: static;
    width: 100%;
    height: auto;
    margin: 0 0 var(--space-3);
  }
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo:not(.children-voice__photo--full) {
    position: static;
    width: 100%;
  }
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo--full { width: 100%; }
  .children-voice--siblings { margin-top: var(--space-3); padding-top: var(--space-3); }
  .children-voice--siblings__photo { width: 100%; margin-bottom: 24px; }
  .children-voice--siblings__copy::before { display: none; }
  .children-voice__photos { gap: var(--space-2); }
  .children-voice + .children-voice { margin-top: var(--space-3); padding-top: var(--space-3); }
  .children-voice h4 { margin-bottom: 8px; font-size: 16px; }
  .teachers-section {
    /* 枝用に増やした下部余白分も、白枠へ背景を食い込ませる */
    --teachers-overlap: 268px;
    --section-header-top: 120px;
    /* 背景の食い込み量と、見出し上の余白を分離して共通位置に揃える */
    padding: calc(var(--section-header-top) + 180px - 60px) 24px 145px;
  }
  .teachers-section__header { margin-bottom: var(--section-header-bottom); scroll-margin-top: 128px; }
  .teachers-section__bird-line { width: 115px; height: 84px; margin-bottom: 8px; }
  .teachers-section__bird-line img { width: 108px; }
  .teachers-section__header h2 { font-size: 25px; }
  .teachers-section__header p { font-size: 12px; }
  .teachers-section__inner { width: 100%; }
  .teachers-section__title { margin-bottom: 42px; font-size: 18px; }
  .section-title.section-title--card { margin-left: 0; }
  .teachers-section__photos { grid-template-columns: 1fr; gap: 20px; width: 100%; margin-top: 36px; margin-left: 0; }
  .teachers-section__photo { border-radius: 20px; }
  .teachers-section__copy { width: 100%; margin-left: 0; font-size: 14px; line-height: 2; }
  .teachers-section__cloud { top: -20px; right: -120px; width: 280px; }
  .teachers-section__branch { bottom: -72px; left: -50px; width: clamp(280px, 58vw, 430px); }
  .teachers-section__book { right: -145px; bottom: -30px; width: 250px; }
  .profile-modal__content { min-height: 0; padding: 52px 20px 30px; }
  .profile-modal__cloud { top: auto; right: -72px; bottom: -60px; width: 220px; }
  .profile-modal__swallow { top: 20px; left: -22px; width: 90px; }
  .profile-modal__title-block { margin-bottom: 22px; padding: 18px 0 0; }
  .profile-modal__body { padding: 0; }
  .profile-modal h2 { font-size: 23px; }
  .profile-modal p, .profile-modal ul { font-size: 14px; }
  .privacy-modal { width: min(100% - 32px, 620px); max-height: calc(100vh - 32px); }
  .privacy-modal__content { max-height: calc(100vh - 32px); padding: 38px 22px 32px; border-radius: 24px; }
  .privacy-modal__close { top: 14px; right: 14px; width: 34px; height: 34px; font-size: 25px; }
  .privacy-modal h2 { margin-bottom: 24px; font-size: 23px; }
  .privacy-modal__body p { font-size: 14px; line-height: 1.9; }
  .privacy-modal__body h3 { margin-top: 22px; font-size: 16px; }
}

/* 料金・コース */
.pricing-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

.pricing-section {
  padding: var(--section-edge-pad) 32px;
  background: var(--sky);
}

.pricing-section::before,
.contact-section::before,
.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--paper-noise);
  background-size: 150px 150px;
  mix-blend-mode: multiply;
  opacity: .28;
  pointer-events: none;
  content: "";
}

.contact-section::after {
  inset: 0;
  background-image: url("../images/03_clustered_pearl_ghost.png");
  background-position: right 150px top -180px;
  background-size: 900px auto;
  opacity: .5;
}

.pricing-section__header,
.contact-section__header {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin-bottom: var(--section-header-bottom);
  text-align: center;
}

.pricing-section__bird-line,
.contact-section__bird-line {
  position: relative;
  width: 150px;
  height: 108px;
  margin-bottom: 8px;
}

.pricing-section__bird-line::after,
.contact-section__bird-line::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--ink);
  content: "";
}

.pricing-section__bird-line img,
.contact-section__bird-line img {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 120px;
  transform: translateX(-50%) rotate(-7deg);
}

.pricing-section__bird-line img { bottom: 24px; }
.contact-section__bird-line img { bottom: 24px; }

.pricing-section__header h2,
.contact-section__header h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .1em;
}

.pricing-section__header p,
.contact-section__header p {
  margin: var(--space-1) 0 0;
  font-size: var(--body-size);
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.5;
}

.pricing-section__inner,
.contact-section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin: 0 auto;
}

.pricing-schedule > .section-title {
  position: relative;
  width: 100%;
  gap: 0;
  font-size: clamp(25px, 2.5vw, 32px);
}

.pricing-schedule > .section-title::before {
  position: absolute;
  top: 50%;
  left: -48px;
  transform: translateY(-50%);
}

.pricing-intro {
  margin: 40px 0 32px;
  font-size: var(--body-size);
  font-weight: 400;
  letter-spacing: .04em;
}

.pricing-table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: 2px;
}

.pricing-table-hint { display: none; }

.pricing-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink);
  background: #e5f0f2;
  font-size: 14.5px;
  font-weight: 400;
  text-align: center;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 8px;
  border: 1px solid #908983;
  line-height: 1.45;
}

.pricing-table thead th {
  color: #fff;
  background: #6099aa;
  border-color: #fff;
  font-weight: 500;
}

.pricing-table th { text-align: center; }

.pricing-table thead tr:first-child th:first-child {
  width: 25%;
  vertical-align: middle;
  border-bottom: 0;
}

.pricing-table thead tr:first-child th:last-child {
  border-bottom: 0;
  vertical-align: middle;
}

/* 表の外周線は付けず、内部の区切り線だけを残す */
.pricing-table tr:first-child > *,
.course-fee table tr:first-child > *,
.pricing-mini-card table tr:first-child > * { border-top: 0; }

.pricing-table tr:last-child > *,
.course-fee table tr:last-child > *,
.pricing-mini-card table tr:last-child > * { border-bottom: 0; }

.pricing-table tr > :first-child,
.course-fee table tr > :first-child,
.pricing-mini-card table tr > :first-child { border-left: 0; }

.pricing-table tr > :last-child,
.course-fee table tr > :last-child,
.pricing-mini-card table tr > :last-child { border-right: 0; }

.pricing-table thead tr:nth-child(2) th {
  padding-block: 8px;
  font-size: 14.5px;
}

.pricing-table tbody tr:nth-child(odd) { background: #d4e6ea; }
.pricing-table tbody th {
  font-weight: 500;
  letter-spacing: .15em;
}
.pricing-table tbody td { height: 39px; color: #527f8a; font-size: 14.5px; }

.pricing-notes {
  margin: 16px 0 0;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-leading);
}

.pricing-notes p { margin: 0; }
.pricing-notes p + p { margin-top: 16px; }

.course-card {
  position: relative;
  margin-top: 112px;
  padding: 64px;
  border-radius: 25px;
  background: #d9ebef;
}

#about-detail,
#children,
#teachers,
#pricing,
#contact,
#mentor-course { scroll-margin-top: 110px; }

.course-card__books {
  position: absolute;
  z-index: 3;
  top: -300px;
  left: -420px;
  width: 660px;
  pointer-events: none;
}

.course-card h3 {
  margin: 0;
  color: #4b93a7;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: .13em;
  text-align: center;
}

.course-card__rule,
.pricing-mini-card__rule {
  width: 136px;
  height: 1px;
  margin: 16px auto 32px;
  background: #83acb7;
}

.course-card__body { width: min(100%, 760px); margin: 0 auto; }

.course-card__lead {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
}

.course-card__lead span { font-size: var(--body-size); letter-spacing: .1em; }

.course-card__body > p {
  margin: 0;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 2;
  text-align: justify;
}

.course-card__body > p + p { margin-top: 0; }

.course-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 6em;
  margin: 0;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 2;
  text-align: justify;
}

.course-card__excerpt p { margin: 0; }

.course-more {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 0 40px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.course-more:not([open]) { margin-top: 24px; }

.course-more summary {
  display: flex;
  order: 2;
  width: fit-content;
  align-items: center;
  gap: var(--space-1);
  margin-inline: auto;
  padding: 8px 16px;
  border: 1px solid #6d8f95;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.course-more summary::-webkit-details-marker { display: none; }
.course-more summary::after { display: none; }
.course-more__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.course-more[open] .course-more__icon { transform: rotate(180deg); }
.course-more[open] summary { margin-top: 24px; }
.course-more__content { order: 1; margin-top: 0; font-weight: 400; }
.course-more__content p { margin: 0; font-size: var(--body-size); font-weight: 400; line-height: var(--body-leading); text-align: justify; }

.course-fee {
  width: min(100%, 470px);
  margin: 0 auto;
}

.course-fee h4,
.pricing-mini-card h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.course-fee table,
.pricing-mini-card table {
  width: fit-content;
  min-width: min(100%, 330px);
  max-width: 100%;
  margin-inline: auto;
  border-collapse: collapse;
  background: rgb(255 255 255 / 48%);
  font-size: 14.5px;
}

.course-fee th,
.course-fee td,
.pricing-mini-card th,
.pricing-mini-card td {
  padding: 12px;
  border: 1px solid #908983;
  font-weight: 400;
  line-height: 1.45;
}

.course-fee th,
.pricing-mini-card th {
  width: 55%;
  background: #a9ced7;
  text-align: left;
}

.course-fee td,
.pricing-mini-card td { white-space: nowrap; }

.course-fee th,
.pricing-mini-card th { text-align: center; }
.course-fee td,
.pricing-mini-card td { text-align: right; }

.course-fee table {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
}

.course-fee th,
.course-fee td { padding-block: 16px; }

.course-fee > p {
  margin: 16px 0 0;
  font-size: 11px;
  font-weight: 400;
}

.pricing-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 48px;
}

.pricing-mini-card {
  min-height: 270px;
  padding: 40px;
  border-radius: 24px;
  background: #d9ebef;
}

.pricing-mini-card--mentoring { position: relative; }
.pricing-mini-card--assessment { position: relative; }
.pricing-mini-card--name { position: relative; }

.pricing-mini-card__cloud {
  position: absolute;
  z-index: 2;
  top: -192px;
  right: -190px;
  width: 540px;
  pointer-events: none;
}

.pricing-mini-card__swallow {
  position: absolute;
  z-index: 2;
  top: -116px;
  left: -128px;
  width: 120px;
  pointer-events: none;
}

.pricing-mini-card__branch {
  position: absolute;
  z-index: 2;
  right: calc(clamp(540px, 52vw, 1080px) - 50vw - 24px);
  bottom: -120px;
  width: clamp(540px, 52vw, 1080px);
  max-width: none;
  transform: scaleX(-1);
  transform-origin: right bottom;
  pointer-events: none;
}

/* 1,080px以上では、1,040px前後の見え方を基準に大きさを止める */
@media (min-width: 1080px) {
  .pricing-mini-card__branch {
    right: calc(540px - 50vw - 24px);
    width: 540px;
  }
}

.pricing-mini-card h3 {
  margin: 0;
  color: #4b93a7;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .12em;
  text-align: center;
}

.pricing-mini-card__fee {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.pricing-mini-card__fee h4 { width: 100%; }
.pricing-mini-card__fee table { width: 100%; min-width: 0; margin-inline: 0; }

.pricing-mini-card__rule { width: 96px; margin: 16px auto 32px; }
.pricing-mini-card table { font-size: 14.5px; }
.pricing-mini-card th, .pricing-mini-card td { padding: 8px; }
.pricing-mini-card h4 { margin-bottom: 16px; }

.pricing-section__books,
.pricing-section__swallow,
.pricing-section__cloud,
.pricing-section__tree {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.pricing-section__books { bottom: 260px; left: -72px; width: 330px; }
.pricing-section__swallow { bottom: 120px; left: -32px; width: 128px; }
.pricing-section__cloud { right: -122px; bottom: 700px; width: 390px; }
.pricing-section__tree {
  right: 0;
  left: auto;
  bottom: 0;
  width: clamp(480px, 52vw, 900px);
  transform: scaleX(-1);
  transform-origin: right bottom;
}

/* アクセス・お問い合わせ */
.contact-section {
  padding: var(--section-edge-pad) 32px;
  background: #f9faf2;
}

.contact-section__header { margin-bottom: 112px; }
.contact-section__inner { width: min(100%, 960px); }

.contact-map {
  position: relative;
  margin: 0;
}

.contact-map iframe {
  width: 100%;
  aspect-ratio: 960 / 575;
  display: block;
  border: 0;
  border-radius: 24px;
}

.contact-map__cloud {
  position: absolute;
  z-index: 2;
  left: -118px;
  bottom: -86px;
  width: 420px;
  max-width: none;
  transform: rotate(-2deg);
  pointer-events: none;
}

.contact-form-area { margin-top: 88px; }
.contact-form-area > .section-title {
  margin-left: -48px;
  font-size: clamp(25px, 2.5vw, 32px);
}

.contact-form-area__lead {
  margin: 40px 0 40px;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}

.contact-form {
  width: 100%;
  letter-spacing: .15em;
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-block: 20px;
}

.contact-form__row label {
  font-size: 16px;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: #ecefdb;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: #73ad86; outline: 2px solid rgb(115 173 134 / 20%); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form__row--message { align-items: start; }
.contact-form__row--message label { padding-top: 16px; }

.contact-form__privacy {
  margin-top: 48px;
  text-align: center;
}

.contact-form__privacy p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 400;
}

.privacy-policy__open {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--deep-orange);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.privacy-policy__open:hover { color: var(--orange); }

.contact-form__privacy label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 400;
}

.contact-form__privacy input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 1.5px solid #908983;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.contact-form__privacy input:checked {
  border-color: #008a4a;
  background-color: #008a4a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px;
}

.contact-form__privacy input:focus-visible {
  outline: 2px solid rgb(0 138 74 / 30%);
  outline-offset: 2px;
}
.contact-form__submit { margin-top: 32px; border: 0; cursor: pointer; font: inherit; }
.contact-form__status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: #008a4a;
  font-size: 16px;
  text-align: center;
  visibility: hidden;
}

.contact-form__status.is-visible {
  visibility: visible;
  padding: 16px 20px;
  border: 1px solid #86b995;
  border-radius: 12px;
  background: #f1fbf4;
  font-weight: 500;
}

.contact-form__status.is-error,
.contact-form__status.is-validation {
  color: #b84f00;
  border-color: #e4b68e;
  background: #fff8f1;
}

.contact-section__cloud { position: absolute; z-index: 0; width: 330px; pointer-events: none; }
.contact-section__cloud--left { top: 510px; left: -112px; }
.contact-section__cloud--right { right: 60px; bottom: 170px; }

.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  padding: 32px max(32px, calc((100vw - var(--content-width)) / 2));
  overflow: hidden;
  background: var(--sky);
}

.site-footer__brand,
.site-footer > p { position: relative; z-index: 1; }
.site-footer__brand { display: inline-flex; flex-direction: column; width: 155px; color: var(--ink); text-decoration: none; }
.site-footer__brand img { width: 100%; }
.site-footer__brand span { margin-top: 6px; font-size: 8px; font-weight: 700; letter-spacing: .02em; text-align: justify; text-align-last: justify; white-space: nowrap; }
.site-footer > p { margin: 0; color: #697879; font-size: 11px; font-weight: 400; }

@media (max-width: 900px) {
  .pricing-section { padding-inline: 40px; padding-bottom: var(--section-edge-pad); }
  .pricing-section__inner, .contact-section__inner { width: min(100%, 760px); }
  .pricing-intro, .contact-form-area__lead { margin-left: 0; }
  .pricing-mini-grid { gap: 24px; }
  .pricing-mini-card { padding-inline: 24px; }
  .pricing-mini-card__cloud { top: -165px; right: -155px; width: 480px; }
  .pricing-mini-card__swallow { top: -96px; left: -96px; width: 120px; }
  .pricing-mini-card__branch {
    right: calc(clamp(420px, 78vw, 700px) - 50vw - 12px);
    bottom: -100px;
    width: clamp(420px, 78vw, 700px);
  }
  .pricing-section__books { bottom: 210px; left: -90px; width: 280px; }
  .course-card__books { top: -230px; left: -350px; width: 560px; }
  .pricing-section__swallow { bottom: 88px; left: -40px; width: 120px; }
  .pricing-section__cloud { right: -160px; bottom: 620px; width: 330px; }
  .pricing-section__tree { right: 0; left: auto; width: 560px; }
  #about-detail,
  #children,
  #teachers,
  #pricing,
  #contact,
  #mentor-course { scroll-margin-top: 96px; }
  .contact-section { padding-inline: 40px; padding-bottom: var(--section-edge-pad); }
  .contact-section::after { background-position: right 40px top -140px; background-size: 700px auto; opacity: .5; }
  .contact-map__cloud { left: -105px; bottom: -80px; width: 370px; }
  .contact-section__cloud--left { left: -145px; }
  .contact-section__cloud--right { right: 24px; bottom: 130px; }
  .site-footer { padding-inline: 40px; }
}

@media (max-width: 620px) {
  .pricing-section { padding: var(--section-edge-pad) 24px; }
  .pricing-section__header, .contact-section__header { margin-bottom: 84px; }
  .pricing-section__bird-line, .contact-section__bird-line { width: 105px; height: 84px; margin-bottom: 8px; }
  .pricing-section__bird-line::after, .contact-section__bird-line::after { width: 64px; }
  .pricing-section__bird-line img, .contact-section__bird-line img { width: 96px; bottom: 8px; }
  .pricing-section__bird-line img { bottom: 18px; }
  .contact-section__bird-line img { bottom: 18px; }
  .pricing-section__header h2, .contact-section__header h2 { font-size: 25px; }
  .pricing-section__header p, .contact-section__header p { font-size: 12px; }
  .pricing-intro { margin: 30px 0 22px; font-size: 13px; }
  .pricing-schedule > .section-title,
  .contact-form-area > .section-title {
    margin-left: 37px;
    font-size: 17px;
  }
  .pricing-schedule > .section-title { width: calc(100% - 37px); }
  .pricing-schedule > .section-title::before { left: -37px; }
  .pricing-table { min-width: 650px; font-size: 12px; }
  .pricing-table thead tr:nth-child(2) th { font-size: 10px; }
  .pricing-table tbody td { font-size: 15px; }
  .pricing-table-hint {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgb(48 43 39 / 72%);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: pricing-table-hint-in 4.6s ease .25s both;
  }
  .pricing-table-hint svg {
    width: 30px;
    height: 19px;
    animation: pricing-table-hint-slide 1.2s ease-in-out .5s infinite;
  }
  .pricing-table-wrap.is-hint-dismissed .pricing-table-hint {
    opacity: 0;
    animation: none;
  }
  .pricing-notes { font-size: 16px; }
  .course-card { margin-top: 74px; padding: 40px 24px 38px; border-radius: 22px; }
  .course-card h3 { font-size: 21px; }
  .course-card__rule { width: 110px; margin: 12px auto 25px; }
  .course-card__lead { font-size: 16px; }
  .course-card__lead span { font-size: 15px; }
  .course-card__body > p { font-size: 13px; line-height: 1.9; }
  .course-fee table { font-size: 11px; }
  .course-fee th, .course-fee td { padding: 12px 7px; }
  .pricing-mini-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .pricing-mini-card { min-height: 0; padding: 32px 22px; }
  /* メンタリングカードの雲：SPでは半分ほどに縮小して右へ */
  .pricing-mini-card__cloud { top: -80px; right: -140px; width: 202px; }
  .pricing-mini-card__swallow { top: -80px; left: -72px; width: 104px; }
  .pricing-mini-card__branch {
    /* SPでは料金セクション下部の余白に収め、次セクション境界で切らない */
    right: 40px;
    bottom: -112px;
    width: 260px;
  }
  .pricing-mini-card h3 { font-size: 20px; }
  .pricing-mini-card table { font-size: 11px; }
  .pricing-section__books { bottom: 160px; left: -100px; width: 240px; }
  /* H2Osカード上部の本：SPでは見切れを抑え、半分ほどのサイズで少し右へ */
  .course-card__books { top: -110px; left: -120px; width: 230px; }
  .pricing-section__swallow { bottom: 72px; left: -40px; width: 96px; }
  .pricing-section__cloud { right: -150px; bottom: 480px; width: 280px; }
  .pricing-section__tree { right: 0; left: auto; bottom: 0; width: 480px; }
  #about-detail,
  #children,
  #teachers,
  #pricing,
  #contact,
  #mentor-course { scroll-margin-top: 84px; }
  .contact-section { padding: var(--section-edge-pad) 24px; }
  .contact-section::after { background-position: right -20px top -110px; background-size: 540px auto; opacity: .5; }
  .contact-section__inner { width: 100%; }
  .contact-map iframe { border-radius: 18px; }
  .contact-map__cloud { left: -60px; bottom: -100px; width: 200px; }
  .contact-form-area { margin-top: 66px; }
  .contact-form-area > .section-title {
    margin-left: 37px;
    font-size: 17px;
  }
  .contact-form-area__lead { margin: 28px 0 30px; font-size: 14px; line-height: 1.9; }
  .contact-form__row { grid-template-columns: 1fr; gap: 8px; margin-block: 14px; }
  .contact-form__row label { font-size: 14px; }
  .contact-form__row--message label { padding-top: 0; }
  .contact-form__privacy { margin-top: 34px; }
  .contact-form__privacy p, .contact-form__privacy label { font-size: 11px; }
  .contact-section__cloud { width: 240px; }
  .contact-section__cloud--left { top: 390px; left: -110px; }
  .contact-section__cloud--right { right: 10px; bottom: 95px; }
  .site-footer { display: grid; justify-items: center; justify-content: center; gap: 20px; min-height: 155px; padding: 30px 24px; text-align: center; }
  .site-footer__brand { width: 135px; margin-inline: auto; text-align: center; }
  .site-footer__brand span { text-align: center; text-align-last: center; }
  .site-footer > p { margin-inline: auto; text-align: center; }
}

/* SPの縦方向リズム。装飾の食い込み部分を除き、8px単位で統一する。 */
@media (max-width: 620px) {
  :root {
    --sp-section-gap: 80px;
    --sp-inner-gap: 40px;
    --section-edge-pad: 96px;
    --section-header-bottom: 80px;
  }

  /* section-title系のSP見出しは、指定箇所をすべて同じサイズにする。 */
  .section-title,
  .about-strengths > .section-title,
  .children-block__title,
  .teachers-section__title,
  .section-title.section-title--card,
  .pricing-schedule > .section-title,
  .contact-form-area > .section-title { font-size: 20px; }

  /* 見出し左のドットは、SPでは1行目の高さに収めて上下中央へ揃える。 */
  .section-title::before,
  .children-block__title::before {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at center, var(--orange) 0 2px, transparent 2.2px) 0 0 / 8px 8px;
    background-position: 0 0;
    background-size: 8px 8px;
    transform: none;
  }
  .children-block--school .children-block__title::before {
    margin-top: calc((1.55em - 24px) / 2);
  }

  .intro-content { margin-top: var(--sp-inner-gap); }

  /* 学校サポートの左下の枝は本文と重ならないよう、SPではさらに下へ */
  .children-block__tree { bottom: -112px; left: -120px; width: 224px; }

  /* 手元写真だけ、SPコンテンツ幅の左端に揃える */
  .children-block--school .children-block__photo-sub { left: calc(328px - 100vw); }

  /* 中平さまの写真は右側の写真と同じ比率に揃え、下側をトリミング */
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .children-voice--nakahira > .children-voice__photos > .children-voice__photo--full {
    object-position: center top;
  }

  .mentor-card,
  .company,
  .children-block + .children-block,
  .children-voices,
  .course-card,
  .contact-form-area { margin-top: var(--sp-section-gap); }

  /* SPのメンターカードは、CTAを左、家を右下に並べる。 */
  .mentor-card { padding-bottom: 80px; }
  .mentor-card__copy a.section-cta {
    width: 196px;
    justify-content: space-between;
    margin: 24px 0 0;
    padding: 11px 16px 11px 19px;
    line-height: 1.55;
    text-align: left;
  }
  .mentor-card__copy a.section-cta span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  .mentor-card__house {
    right: -80px;
    bottom: -24px;
    width: 220px;
    transform: none;
  }
  .mentor-card__cloud--right { right: -78px; bottom: 224px; width: 170px; }
  .mentor-card__swallow { right: -30px; bottom: 292px; width: 60px; }

  /* SPでは固定ヘッダー側のハンバーガーだけを表示する。 */
  .hero > .menu-toggle { display: none; }

  .children-block__grid,
  .children-block--attendance .children-block__grid { gap: var(--sp-inner-gap); }
  .children-block__title,
  .teachers-section__title { margin-bottom: var(--sp-inner-gap); }
  .children-voices__card { margin-top: var(--sp-inner-gap); }

  .pricing-section__header,
  .contact-section__header { margin-bottom: var(--sp-section-gap); }
  .pricing-intro { margin: var(--sp-inner-gap) 0 32px; }
  .pricing-mini-grid { margin-top: var(--sp-inner-gap); }
}

/* セクション見出し上の横線とタイトルの間隔をPC・SPで統一 */
.section-header__bird-line { margin-bottom: 48px; }

/* PC版Profileボタンはメイン画像の下端に少しかかる位置へ */
@media (min-width: 901px) {
  .profile-link { bottom: 80px; }
}

/* タブレット縦型はSP版に近いHero構図へ */
@media (min-width: 621px) and (max-width: 900px) {
  .hero { min-height: 100svh; }
  .profile-link { z-index: 4; }

  /* iPadの本文エリアは各セクション共通の左右40px基準に揃える */
  .intro-heading,
  .intro-content {
    width: min(100%, calc(100vw - 80px));
  }
  .about-strengths {
    width: 100%;
  }

  /* 学校サポート：画像列をコンテンツ左端に揃え、本文列を広げる */
  .children-block--school .children-block__grid {
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 48px;
  }
  .children-block--school .children-block__photos {
    margin-left: 0;
    min-height: 380px;
  }
  .children-block--school .children-block__photos .children-block__photo-main {
    width: 300px;
  }
  .children-block--school .children-block__photo-sub {
    left: 128px;
    bottom: -24px;
    width: 160px;
  }

  /* 利用者さんの声：白枠の左端を共通コンテンツ幅に揃え、右端まで広げる */
  .children-voices__card {
    width: calc(100% + 40px);
    margin-left: 0;
    padding-inline: 56px;
  }
  .children-voices__swallow {
    transform: translateY(-50%) scaleX(-1);
  }
  .children-voice--siblings__copy::before {
    display: none;
  }
  .children-voices__branch {
    bottom: -176px;
  }
  .children-section {
    padding-bottom: 192px;
  }

  .section-title.section-title--card.teachers-section__title {
    margin-left: 0;
  }
  .pricing-schedule > .section-title {
    padding-left: 48px;
  }
  .pricing-schedule > .section-title::before {
    left: 0;
  }
  .contact-form-area > .section-title {
    margin-left: 0;
  }
  .pricing-mini-card__branch {
    right: calc(clamp(320px, 52vw, 480px) - 50vw - 12px);
    width: clamp(320px, 52vw, 480px);
  }

  .mentor-card {
    min-height: 520px;
  }

  .intro .swallow-left { top: 40px; }

  .hero-cloud {
    top: 28px;
    right: -100px;
    left: auto;
    width: 520px;
  }
  .hero-swallow {
    top: 150px;
    right: calc(42vw + 200px);
    left: auto;
    width: 120px;
  }

  .hero-artwork {
    top: clamp(230px, 27svh, 300px);
    left: 0;
    width: 100%;
    height: max(520px, calc(100svh - clamp(230px, 27svh, 300px)));
    aspect-ratio: auto;
    transform: none;
    animation: ryogakuhou-mobile-artwork-in .85s cubic-bezier(.22, .61, .36, 1) .08s both;
  }
  .hero-media {
    top: clamp(12px, 2.5svh, 24px);
    left: -28px;
    width: 100%;
    aspect-ratio: 710.69 / 551.42;
    transform: none;
  }
  .hero-book {
    top: auto;
    bottom: clamp(24px, 3svh, 40px);
    left: -72px;
    width: 150%;
    height: 500px;
    max-width: none;
    object-fit: fill;
    transform: rotate(-2deg);
  }
  .catchcopy {
    top: -145px;
    left: 59%;
    gap: 16px;
    --catchcopy-pad-y: 18px;
  }
  .catchcopy p {
    width: 44px;
    padding: var(--catchcopy-pad-y) 5px;
    border-radius: 22px;
    font-size: 24px;
  }

  .mentor-card__copy {
    max-width: 420px;
    margin-left: 48px;
    padding-top: 168px;
  }
  .mentor-card__house {
    right: -120px;
    /* 画像下端の透明余白分だけ下げ、家の描画下端をカード下端に揃える */
    bottom: clamp(-64px, -7.6vw, -50px);
    width: clamp(360px, 54vw, 460px);
  }
  .mentor-card__cloud--right {
    bottom: 190px;
  }
  .mentor-card__swallow {
    z-index: 4;
    top: 48px;
    right: 24px;
    width: 88px;
  }
}
