@charset "UTF-8";
/* =========================================================
   教室詳細（/school/{教室名}/）
   PCの数値はFigma「教室詳細（例：unico 北九州）」（1440px幅）の座標を 1/10 にした rem 値。
   各セクションは背景色が切り替わる位置を上端とし、上の波形はセクションの外（上）にはみ出させている
   ========================================================= */

/* 最後のセクション（取り組み）が白なので、フッターの波形の上も白にする */
:root { --footer-bg: var(--c-white); }

/*
 * 900〜1023pxも1440pxのFigmaレイアウトを画面幅に合わせて縮小する。
 * ここをSP配置にすると、横長画面で波形・カード・本文の基準位置が離れてしまう。
 */
@media (min-width: 900px) and (max-width: 1439px) {
  html { font-size: calc(100vw / 144); }
}

:where(.p-schoolDetail) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; }

.p-schoolDetailHero,
.p-schoolDetailMessage,
.p-schoolDetailGallery,
.p-schoolDetailInfo,
.p-schoolDetailService,
.p-schoolDetailFeature { position: relative; }

.p-schoolDetail [class$="__inner"] {
  position: relative;
  z-index: 1;
}

.p-schoolDetailHero { z-index: 2; background: var(--c-ivory); }
.p-schoolDetailHero--noPhoto { background: var(--c-cream); }
.p-schoolDetailMessage { background: var(--c-cream); }
.p-schoolDetailGallery { background: var(--c-ivory); }
.p-schoolDetailInfo { background: var(--c-white); }
.p-schoolDetailService { background: var(--c-cream); }
.p-schoolDetailFeature { background: var(--c-white); }

.p-schoolDetailHero__wave,
.p-schoolDetailSection__wave,
.p-schoolDetailChara {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.p-schoolDetailSection__wave { z-index: 0; }

/* 白い不定形のカード（中身の量に合わせて伸ばす） */
.p-schoolDetailHero__cardBg,
.p-schoolDetailService__cardBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

/* 点線（Figmaの破線 4px / 4px） */
.p-schoolDetailHero__tags,
.p-schoolDetailService__detail,
.p-schoolDetailGallery__item + .p-schoolDetailGallery__item::before {
  background: linear-gradient(to right, #e7e1d8 50%, transparent 0) repeat-x;
}

/* ---------- ヒーロー ---------- */
.p-schoolDetailHero__photo {
  overflow: hidden;
  background: var(--c-cream);
}

.p-schoolDetailHero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カードの中身は、文字量に関わらず上下中央に置く */
.p-schoolDetailHero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--c-black);
}

.p-schoolDetailHero__card > :not(.p-schoolDetailHero__cardBg) { position: relative; }

.p-schoolDetailHero__label {
  display: flex;
  align-items: center;
  font-size: max(1.3rem, 11px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .2em;
  color: var(--c-red);
}

.p-schoolDetailHero__label img {
  position: relative;
  flex-shrink: 0;
  height: auto;
}

.p-schoolDetailHero__title {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-red);
}

.p-schoolDetailHero__open {
  font-weight: 700;
  line-height: 1.7;
}

.p-schoolDetailHero__tags {
  display: flex;
  flex-wrap: wrap;
  background-size: .8rem 1px;
  background-position: 0 0;
}

.p-schoolDetailHero__tag {
  padding: .6rem 1.6rem;
  font-size: max(1.4rem, 11px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: 99.9rem;
}

.p-schoolDetailHero__tag--jihatsu { border-color: #f78885; }
.p-schoolDetailHero__tag--houdei { border-color: #8844e5; }
.p-schoolDetailHero__tag--hohou { border-color: #446fff; }
.p-schoolDetailHero__tag--alternative { border-color: #46b4eb; }

/* ---------- 写真の切り抜き（色の形の上に、マスクで切り抜いた写真を重ねる） ---------- */
.p-schoolDetailBlob { position: relative; }

.p-schoolDetailBlob__bg {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.p-schoolDetailBlob__photo {
  position: absolute;
  z-index: 1;
  top: var(--mask-y, 0%);
  left: var(--mask-x, 0%);
  width: var(--mask-w, 100%);
  height: var(--mask-h, 100%);
  background: #e7e1d8;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-position: 0 0;
  mask-size: 100% 100%;
}

.p-schoolDetailBlob__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 値はFigmaの図形から書き出したときの、マスクの位置（全体に対する%） */
.p-schoolDetailBlob--message { aspect-ratio: 516.3 / 451.3; --mask-x: 7.06%; --mask-y: 3.473%; --mask-w: 92.94%; --mask-h: 89.957%; }
.p-schoolDetailBlob--1 { aspect-ratio: 515.9 / 425.7; --mask-x: 6.998%; --mask-y: 3.597%; --mask-w: 93.002%; --mask-h: 94.459%; }
.p-schoolDetailBlob--2 { aspect-ratio: 507.2 / 434; }
.p-schoolDetailBlob--3 { aspect-ratio: 438 / 505.5; }

/* ---------- メッセージ ---------- */
.p-schoolDetailMessage__title {
  font-weight: 500;
  line-height: 1.3;
}

.p-schoolDetailMessage__text p + p { margin-top: 2em; }

.p-schoolDetailMessage__sign { font-weight: 600; }

.p-schoolDetailMessage__chara--yellow { transform: scaleX(-1); }

.p-schoolDetailMessage--noPhoto .p-schoolDetailChara { display: none; }

/* ---------- 教室の雰囲気 ---------- */
.p-schoolDetailGallery__title {
  font-weight: 500;
  line-height: 1.3;
}

.p-schoolDetailGallery__en {
  font-family: var(--f-en);
  font-weight: 700;
  line-height: 1.712;
}

.p-schoolDetailGallery__item { position: relative; }

.p-schoolDetailGallery__item + .p-schoolDetailGallery__item::before {
  content: "";
  position: absolute;
  top: 0;
  height: 2px;
  background-size: .8rem 2px;
}

.p-schoolDetailGallery__photo {
  overflow: hidden;
  background: #e7e1d8;
  border-radius: 1.5rem;
}

.p-schoolDetailGallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-schoolDetailGallery__name {
  font-weight: 700;
  line-height: 1.7;
}

.p-schoolDetailGallery__text { line-height: 1.7; }

.p-schoolDetailGallery__body > .p-schoolDetailGallery__text:first-child { margin-top: 0; }

.p-schoolDetailGallery__item--textOnly {
  justify-content: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--c-line);
}

.p-schoolDetailGallery__item--textOnly .p-schoolDetailGallery__body {
  width: 100%;
  text-align: center;
}

/* ---------- 基本情報・アクセス ---------- */
.p-schoolDetailInfo .c-subHeading__title { line-height: 1.3; }

.p-schoolDetailSection__dotted {
  position: relative;
  height: 6.99rem;
}

.p-schoolDetailInfo__name {
  font-weight: 700;
  line-height: 1.7;
}

.p-schoolDetailInfo__table > div {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--c-line);
}

.p-schoolDetailInfo__table > div:last-child { border-bottom: 1px solid var(--c-line); }

.p-schoolDetailInfo__table dt {
  flex-shrink: 0;
  font-weight: 500;
  line-height: 1.7;
}

.p-schoolDetailInfo__table dd {
  flex: 1;
  min-width: 0;
  line-height: 1.7;
  /* 住所などは空白の位置で改行する（入りきらないときだけ語の途中で折り返す） */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.p-schoolDetailInfo__table a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.p-schoolDetailInfo__table a[href^="tel:"] { text-decoration: none; }

.p-schoolDetailInfo__map {
  overflow: hidden;
  background: var(--c-cream);
}

.p-schoolDetailInfo__map iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.p-schoolDetailInfo__content--mapOnly { justify-content: center; }

.p-schoolDetailInfo__empty {
  position: relative;
  background: var(--c-cream);
  border-radius: 3.2rem;
}

.p-schoolDetailInfo__emptyChara {
  position: absolute;
  height: auto;
  max-width: none;
}

.p-schoolDetailInfo__emptyTitle {
  font-weight: 700;
  line-height: 1.7;
}

.p-schoolDetailInfo__emptyText { line-height: 1.7; }

/* ---------- 見出し（中央寄せ） ---------- */
.p-schoolDetailHeading {
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

/* ---------- 利用できるサービス ---------- */
.p-schoolDetailService__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.p-schoolDetailService__card {
  position: relative;
  text-align: center;
}

.p-schoolDetailService__card > :not(.p-schoolDetailService__cardBg) { position: relative; }

.p-schoolDetailService__name {
  font-weight: 700;
  line-height: 1.7;
}

.p-schoolDetailService__detail {
  margin-inline: auto;
  background-size: .8rem 2px;
  background-position: 0 0;
}

/* 太字はサービス名だけにして、項目名は小さく淡く、値は中くらいの太さにする */
.p-schoolDetailService__detail dt {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .06em;
  color: #7a6d55;
}

.p-schoolDetailService__detail dd {
  font-weight: 500;
  line-height: 1.6;
}

.p-schoolDetailService__hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  padding: 0;
  text-align: left;
  list-style: none;
}

.p-schoolDetailService__hours li { display: contents; }

.p-schoolDetailService__hoursLabel {
  font-weight: 400;
  color: #7a6d55;
}

.p-schoolDetailService__hoursTime {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.p-schoolDetailService__hoursTime--only {
  grid-column: 1 / -1;
  text-align: center;
}

/* ---------- この教室ならではの取り組み ---------- */
.p-schoolDetailFeature__school {
  display: block;
  font-weight: 700;
  line-height: 1.12;
}

.p-schoolDetailFeature__brand { color: var(--c-red); }

.p-schoolDetailFeature__title {
  font-weight: 500;
  line-height: 1.3;
}

.p-schoolDetailFeature__text { line-height: 1.7; }

.p-schoolDetailFeature__body > .p-schoolDetailFeature__text:first-child { margin-top: 0; }

.p-schoolDetailFeature__item--textOnly {
  display: grid;
  margin-inline: auto;
}

.p-schoolDetailFeature__item--textOnly .p-schoolDetailFeature__body {
  text-align: left;
}

.p-schoolDetailFeature__item--imageOnly { display: block; }

/* ---------- CTA ---------- */
.p-schoolDetailCta { text-align: center; }

/* =========================================================
   PC
   ========================================================= */
@media (min-width: 900px) {
  .p-schoolDetail [class$="__inner"] {
    width: 144rem;
    margin: 0 auto;
  }

  .p-schoolDetailSection__wave { left: -13.2rem; width: calc(100% + 15.25rem); height: 28.85rem; }

  /* ---------- ヒーロー ---------- */
  .p-schoolDetailHero { min-height: 101.7rem; }

  .p-schoolDetailHero__photo {
    position: absolute;
    top: 10.2rem;
    left: 0;
    width: 100%;
    height: 86rem;
  }

  .p-schoolDetailHero__wave {
    top: 80.9rem;
    left: -11.7rem;
    width: calc(100% + 15.25rem);
    height: 20.85rem;
  }

  .p-schoolDetailHero__inner { padding: 60.9rem 0 .8rem 9.5rem; }

  /* 写真がないときは、カードと波の位置関係を保ったまま全体を46rem上へ詰める */
  .p-schoolDetailHero--noPhoto { min-height: 55.7rem; }

  .p-schoolDetailHero--noPhoto .p-schoolDetailHero__wave { top: 34.9rem; }

  .p-schoolDetailHero--noPhoto .p-schoolDetailHero__inner { padding-top: 14.9rem; }


  .p-schoolDetailHero__card {
    width: 64rem;
    min-height: 40rem;
    /* 上だけ多いのは、ラベルのアイコンを .63rem 上にずらしている分 */
    padding: 5.63rem 6.9rem 5rem 7.1rem;
  }

  .p-schoolDetailHero__card--compact { min-height: 29rem; }

  .p-schoolDetailHero__label img {
    top: -.63rem;
    width: 6.57rem;
    margin: 0 2.73rem 0 .3rem;
  }

  .p-schoolDetailHero__title {
    margin: .79rem 0 0 -.4rem;
    font-size: 6.4rem;
  }

  .p-schoolDetailHero__title.is-long { font-size: 4.8rem; }

  .p-schoolDetailHero__open {
    margin: .96rem 0 0 .2rem;
    font-size: 1.6rem;
  }

  .p-schoolDetailHero__tags {
    gap: .8rem;
    width: 50rem;
    margin-top: 1.63rem;
    padding-top: 2.25rem;
  }

  /* ---------- メッセージ ---------- */
  .p-schoolDetailMessage__inner {
    min-height: 97.2rem;
    padding: 5.5rem 0 27.5rem 68.5rem;
  }

  .p-schoolDetailMessage__photo {
    position: absolute;
    top: 5.37rem;
    left: 8.95rem;
    width: 51.63rem;
  }

  .p-schoolDetailMessage__title { font-size: 2.4rem; }

  .p-schoolDetailMessage__text,
  .p-schoolDetailMessage__sign {
    width: 46.2rem;
    margin-left: .3rem;
    font-size: 1.6rem;
    line-height: 2;
  }

  .p-schoolDetailMessage__text { margin-top: 6.68rem; }

  .p-schoolDetailMessage__sign { margin-top: 3.2rem; }

  .p-schoolDetailMessage__chara--star { top: 19.4rem; left: 124.8rem; width: 26.9rem; }
  .p-schoolDetailMessage__chara--yellow { top: 44.5rem; left: 127.3rem; width: 25.186rem; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__inner {
    min-height: 0;
    padding: 7rem 0 26rem;
  }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__body {
    width: fit-content;
    max-width: 64rem;
    margin: 0 auto;
  }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__title { text-align: center; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__text,
  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__sign {
    width: auto;
    max-width: 64rem;
    margin-left: 0;
  }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__text { margin-top: 4rem; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__sign { margin-top: 2.4rem; }

  /* ---------- 教室の雰囲気 ---------- */
  .p-schoolDetailGallery__wave { top: -26.3rem; }

  .p-schoolDetailGallery__inner {
    display: grid;
    grid-template-columns: 20.4rem 1fr;
    align-items: start;
    padding: 5.5rem 0 2.7rem 15.2rem;
  }

  /* 見出しは縦書きにして、写真の一覧をスクロールする間は画面に留める */
  .p-schoolDetailGallery__head {
    position: sticky;
    top: 8rem;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: start;
    column-gap: 1.3rem;
  }

  .p-schoolDetailGallery__icon {
    grid-column: 1 / -1;
    width: 5.78rem;
    height: auto;
    margin: 0 0 2.15rem .4rem;
  }

  .p-schoolDetailGallery__title {
    font-size: 3.6rem;
    line-height: 1;
    letter-spacing: .3em;
    writing-mode: vertical-rl;
  }

  .p-schoolDetailGallery__en {
    margin-top: 1rem;
    font-size: 1.6rem;
    writing-mode: vertical-rl;
  }

  .p-schoolDetailGallery__list { margin-top: 4.5rem; }

  .p-schoolDetailGallery__item {
    display: flex;
    align-items: center;
    gap: 4rem;
  }

  .p-schoolDetailGallery__item + .p-schoolDetailGallery__item {
    margin-top: 4.3rem;
    padding-top: 4.3rem;
  }

  .p-schoolDetailGallery__item + .p-schoolDetailGallery__item::before {
    left: -.1rem;
    width: 84.75rem;
  }

  .p-schoolDetailGallery__photo {
    flex-shrink: 0;
    width: 52.6rem;
    height: 35rem;
  }

  /* Figmaでも本文は行の幅（83.4rem）をはみ出して配置されている */
  .p-schoolDetailGallery__body {
    flex-shrink: 0;
    width: 37.3rem;
  }

  .p-schoolDetailGallery__name { font-size: 2.4rem; }

  .p-schoolDetailGallery__text {
    margin-top: 1.92rem;
    font-size: 1.6rem;
  }

  .p-schoolDetailGallery__item--textOnly {
    width: 84.75rem;
    min-height: 24rem;
    padding: 5rem 6rem;
    border-radius: 2.4rem;
  }

  .p-schoolDetailGallery__item--textOnly::before { display: none; }

  .p-schoolDetailGallery__item--textOnly .p-schoolDetailGallery__body { max-width: 68rem; }

  .p-schoolDetailGallery__item--textOnly .p-schoolDetailGallery__name { font-size: 2.8rem; }

  .p-schoolDetailGallery__item--imageOnly .p-schoolDetailGallery__photo {
    width: 84.75rem;
    height: 50rem;
  }

  /* ---------- 基本情報・アクセス ---------- */
  .p-schoolDetailInfo__wave { top: 0; left: -8.1rem; }

  .p-schoolDetailInfo__waveAfterMessage {
    top: -20.8rem;
    left: -11.7rem;
    width: calc(100% + 15.25rem);
    height: 20.85rem;
  }

  .p-schoolDetailInfo__inner { padding: 27.3rem 0 26.7rem 11rem; }

  .p-schoolDetailInfo--noGallery .p-schoolDetailInfo__inner { padding-top: 12rem; }

  .p-schoolDetailInfo--afterMessage .p-schoolDetailInfo__inner { padding-top: 12rem; }

  .p-schoolDetailInfo--noService .p-schoolDetailInfo__inner { padding-bottom: 8rem; }

  .p-schoolDetailInfo .c-subHeading__icon {
    width: 6.57rem;
    height: auto;
    margin: 0 0 1.36rem .1rem;
  }

  .p-schoolDetailInfo .p-schoolDetailSection__dotted { margin: 4.02rem -11rem 0; }

  .p-schoolDetailInfo .c-dottedWave { left: calc(50% - 83.6rem); }

  .p-schoolDetailInfo__name {
    margin-top: 7.1rem;
    font-size: 2.6rem;
  }

  .p-schoolDetailInfo__brand { font-size: 3rem; }

  .p-schoolDetailInfo__content {
    display: flex;
    align-items: flex-start;
    gap: 3.3rem;
    margin: 3.1rem 0 0 .3rem;
  }

  .p-schoolDetailInfo__table {
    flex-shrink: 0;
    width: 61.7rem;
    font-size: 1.8rem;
  }

  /* 地図や情報がないときは、片方の列を右端まで広げる（左右の余白を揃える） */
  .p-schoolDetailInfo__content--noMap .p-schoolDetailInfo__table { width: 121.7rem; }

  .p-schoolDetailInfo__content--empty { display: block; }

  .p-schoolDetailInfo__content--mapOnly .p-schoolDetailInfo__map { width: 121.7rem; height: 50rem; }

  .p-schoolDetailInfo__empty {
    width: 121.7rem;
    padding: 4.4rem 4.8rem 4.4rem 20rem;
  }

  .p-schoolDetailInfo__emptyChara { top: 50%; left: 4.8rem; width: 12rem; transform: translateY(-50%); }

  .p-schoolDetailInfo__emptyTitle { font-size: 2.2rem; }

  .p-schoolDetailInfo__emptyText { margin-top: .4rem; font-size: 1.6rem; }

  .p-schoolDetailInfo--empty .p-schoolDetailInfo__inner { padding-bottom: 16rem; }

  .p-schoolDetailInfo__table > div { padding: 1.6rem 0; }

  .p-schoolDetailInfo__table dt { width: 18.7rem; }

  .p-schoolDetailInfo__map {
    width: 57rem;
    height: 59.9rem;
  }

  /* ---------- 利用できるサービス ---------- */
  .p-schoolDetailService__wave {
    top: -13.25rem;
    left: -1.6rem;
    width: calc(100% + 3.2rem);
    height: 17.44rem;
  }

  .p-schoolDetailService__inner { padding: 5.1rem 0 4.5rem; }

  .p-schoolDetailHeading { font-size: 3.2rem; }

  .p-schoolDetailService__list {
    gap: 2.4rem 4rem;
    margin-top: 4.92rem;
  }

  .p-schoolDetailService__card {
    width: 41.19rem;
    min-height: 36rem;
    padding: 5.82rem 4.8rem 6rem 3.2rem;
  }

  .p-schoolDetailService__card--compact { min-height: 30rem; }

  .p-schoolDetailService__card--nameOnly {
    min-height: 22rem;
    display: grid;
    place-items: center;
  }

  .p-schoolDetailService__name { font-size: 2rem; }

  .p-schoolDetailService__detail {
    width: 31.7rem;
    margin-top: 2.4rem;
    padding-top: 2.8rem;
  }

  .p-schoolDetailService__detail > div + div { margin-top: 2.4rem; }

  .p-schoolDetailService__detail dt { font-size: max(1.3rem, 11px); }

  .p-schoolDetailService__detail dd {
    margin-top: .6rem;
    font-size: 1.6rem;
  }

  .p-schoolDetailService__hours { gap: .4rem 1.4rem; }

  .p-schoolDetailService__hoursLabel { font-size: max(1.4rem, 11px); }

  .p-schoolDetailService .p-schoolDetailCta { margin-top: 6.34rem; }

  /* ---------- この教室ならではの取り組み ---------- */
  .p-schoolDetailFeature__wave {
    top: 0;
    left: -1.6rem;
    width: calc(100% + 3.2rem);
    height: 17.44rem;
  }

  .p-schoolDetailFeature__inner { padding: 28.3rem 0 12.2rem; }

  .p-schoolDetailFeature__school {
    margin-bottom: 1.9rem;
    font-size: 2rem;
  }

  .p-schoolDetailFeature__brand { font-size: 2.4rem; }

  .p-schoolDetailFeature__list { margin-top: 11.4rem; }

  .p-schoolDetailFeature__item {
    display: grid;
    grid-template-columns: 69.8rem 51rem;
    align-items: center;
  }

  .p-schoolDetailFeature__item:nth-child(3n+2) { margin-top: 11.56rem; }
  .p-schoolDetailFeature__item:nth-child(3n) { margin-top: 6.4rem; }
  .p-schoolDetailFeature__item:nth-child(3n+4) { margin-top: 9rem; }

  .p-schoolDetailFeature__item .p-schoolDetailBlob--1 { width: 51.59rem; margin-left: 10.29rem; }
  .p-schoolDetailFeature__item .p-schoolDetailBlob--2 { width: 50.72rem; margin-left: 11.43rem; }
  .p-schoolDetailFeature__item .p-schoolDetailBlob--3 { width: 43.8rem; margin-left: 15.66rem; }

  /* Figmaでは写真の形ごとに文章の高さがずれている */
  .p-schoolDetailBlob--1 + .p-schoolDetailFeature__body { position: relative; top: 1.7rem; }
  .p-schoolDetailBlob--3 + .p-schoolDetailFeature__body { position: relative; top: 2rem; }

  .p-schoolDetailFeature__title { font-size: 2rem; }

  .p-schoolDetailFeature__text {
    margin-top: 2.3rem;
    font-size: 1.6rem;
  }

  .p-schoolDetailFeature__item--textOnly {
    grid-template-columns: 51rem;
    justify-content: center;
    width: 100%;
  }

  .p-schoolDetailFeature__item--textOnly .p-schoolDetailFeature__body { padding: 0; }

  .p-schoolDetailFeature__item--imageOnly { display: block; }

  .p-schoolDetailFeature__item--imageOnly .p-schoolDetailBlob { margin-inline: auto; }

  .p-schoolDetailFeature__cta { margin-top: 13.06rem; }

  .p-schoolDetailFeature__inner:not(:has(.p-schoolDetailFeature__list)) { padding: 16rem 0 8rem; }

  .p-schoolDetailFeature__cta--empty { margin-top: 0; }

  .p-schoolDetailFeature--noService .p-schoolDetailFeature__inner { padding-top: 0; }
}

/* 縮小PC配置でも本文が小さくなりすぎない下限 */
@media (min-width: 900px) and (max-width: 1023px) {
  .p-schoolDetailHero__open,
  .p-schoolDetailMessage__text,
  .p-schoolDetailMessage__sign,
  .p-schoolDetailFeature__text { font-size: max(1.6rem, 13px); }

  .p-schoolDetailMessage__title { font-size: max(2.4rem, 18px); }

  .p-schoolDetailFeature__title { font-size: max(2rem, 16px); }
}

/* =========================================================
   SP
   ========================================================= */
@media (max-width: 899px) {
  .p-schoolDetail [class$="__inner"] { padding-inline: 2rem; }

  .p-schoolDetailSection__wave { left: -3rem; width: calc(100% + 6rem); height: 9rem; }

  /* ---------- ヒーロー ---------- */
  .p-schoolDetailHero {
    padding-top: var(--header-h);
    background: linear-gradient(var(--c-ivory) 0 var(--header-h), var(--c-cream) 0);
  }

  .p-schoolDetailHero--ivoryNext { --hero-next: var(--c-ivory); background: var(--c-ivory); }

  .p-schoolDetailHero--whiteNext { --hero-next: var(--c-white); background: linear-gradient(var(--c-ivory) 0 var(--header-h), var(--c-white) 0); }

  /* 写真がないときは、波の下から次のセクションの色に切り替える */
  .p-schoolDetailHero--noPhoto { background: linear-gradient(var(--c-cream) 0 calc(var(--header-h) + 10rem), var(--hero-next, var(--c-cream)) 0); }

  .p-schoolDetailHero--noPhoto .p-schoolDetailHero__wave { top: calc(var(--header-h) + 3rem); }

  .p-schoolDetailHero--noPhoto .p-schoolDetailHero__inner { margin-top: 0; padding-top: 1.2rem; }

  .p-schoolDetailHero__photo {
    position: relative;
    aspect-ratio: 375 / 280;
  }

  .p-schoolDetailHero__wave {
    top: calc(var(--header-h) + 74.6667vw - 6rem);
    left: -3rem;
    width: calc(100% + 6rem);
    height: 8rem;
  }

  .p-schoolDetailHero__inner { margin-top: -9rem; }

  .p-schoolDetailHero__card { padding: 4.4rem 3rem 4rem 3.2rem; }


  .p-schoolDetailHero__label { font-size: 1.1rem; }

  .p-schoolDetailHero__label img {
    top: -.4rem;
    width: 5rem;
    margin-right: 1.6rem;
  }

  .p-schoolDetailHero__title {
    margin-top: .6rem;
    font-size: 4rem;
  }

  .p-schoolDetailHero__title.is-long { font-size: 3rem; }

  .p-schoolDetailHero__open {
    margin-top: .6rem;
    font-size: 1.4rem;
  }

  .p-schoolDetailHero__tags {
    gap: .6rem;
    margin-top: 1.2rem;
    padding-top: 1.6rem;
  }

  .p-schoolDetailHero__tag {
    padding: .5rem 1.2rem;
    font-size: 1.2rem;
  }

  /* ---------- メッセージ ---------- */
  .p-schoolDetailMessage__inner { padding-top: 4rem; padding-bottom: 12rem; }

  .p-schoolDetailMessage__photo {
    width: 30rem;
    margin: 0 auto;
  }

  .p-schoolDetailMessage__body { margin-top: 3.2rem; }

  .p-schoolDetailMessage__title { font-size: 2rem; }

  .p-schoolDetailMessage__text {
    margin-top: 2rem;
    font-size: 1.4rem;
    line-height: 1.9;
  }

  .p-schoolDetailMessage__sign {
    margin-top: 2rem;
    font-size: 1.4rem;
    line-height: 1.9;
  }

  .p-schoolDetailMessage__chara--star { top: 2rem; right: -3.4rem; width: 10rem; }
  .p-schoolDetailMessage__chara--yellow { top: 25rem; left: -3rem; width: 8rem; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__inner { padding-top: 6rem; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__body { margin-top: 0; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailMessage__title { text-align: center; }

  .p-schoolDetailMessage--noPhoto .p-schoolDetailChara { display: none; }

  /* ---------- 教室の雰囲気 ---------- */
  .p-schoolDetailGallery__wave { top: -8rem; }

  .p-schoolDetailGallery__inner { padding-top: 3.2rem; padding-bottom: 2rem; }

  .p-schoolDetailGallery__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1.2rem;
  }

  .p-schoolDetailGallery__icon {
    width: 4.6rem;
    height: auto;
    margin-bottom: 1.2rem;
    flex-basis: 100%;
    max-width: 4.6rem;
  }

  .p-schoolDetailGallery__title { font-size: 2.4rem; }

  .p-schoolDetailGallery__en { font-size: 1.2rem; }

  .p-schoolDetailGallery__list { margin-top: 2.8rem; }

  .p-schoolDetailGallery__item + .p-schoolDetailGallery__item {
    margin-top: 3.2rem;
    padding-top: 3.2rem;
  }

  .p-schoolDetailGallery__item + .p-schoolDetailGallery__item::before {
    left: 0;
    right: 0;
  }

  .p-schoolDetailGallery__photo {
    aspect-ratio: 526 / 350;
    border-radius: 1.2rem;
  }

  .p-schoolDetailGallery__body { margin-top: 1.6rem; }

  .p-schoolDetailGallery__name { font-size: 1.8rem; }

  .p-schoolDetailGallery__text {
    margin-top: .6rem;
    font-size: 1.4rem;
  }

  .p-schoolDetailGallery__item--textOnly {
    min-height: 15rem;
    padding: 3.2rem 2.4rem;
    border-radius: 1.6rem;
  }

  .p-schoolDetailGallery__item--textOnly::before { display: none; }

  .p-schoolDetailGallery__item--textOnly .p-schoolDetailGallery__name { font-size: 2rem; }

  /* ---------- 基本情報・アクセス ---------- */
  .p-schoolDetailInfo__wave { top: 0; }

  .p-schoolDetailInfo__waveAfterMessage { top: -8rem; height: 8rem; }

  .p-schoolDetailInfo__inner { padding-top: 11rem; padding-bottom: 10rem; }

  .p-schoolDetailInfo--noGallery .p-schoolDetailInfo__inner { padding-top: 6rem; }

  .p-schoolDetailInfo--afterMessage .p-schoolDetailInfo__inner { padding-top: 6rem; }

  .p-schoolDetailInfo--noService .p-schoolDetailInfo__inner { padding-bottom: 4rem; }

  .p-schoolDetailInfo .c-subHeading__icon { height: 1.8rem; }

  .p-schoolDetailInfo .p-schoolDetailSection__dotted {
    height: 3.5rem;
    margin: 1.6rem -2rem 0;
  }

  .p-schoolDetailInfo__name {
    margin-top: 2.8rem;
    font-size: 1.8rem;
  }

  .p-schoolDetailInfo__brand { font-size: 2rem; }

  .p-schoolDetailInfo__content { margin-top: 1.6rem; }

  .p-schoolDetailInfo__table { font-size: 1.4rem; }

  .p-schoolDetailInfo__table > div { padding: 1.2rem 0; }

  .p-schoolDetailInfo__table dt { width: 10.4rem; }

  .p-schoolDetailInfo__map {
    margin-top: 2.4rem;
    aspect-ratio: 4 / 3;
  }

  .p-schoolDetailInfo__content--mapOnly .p-schoolDetailInfo__map { margin-top: 0; }

  .p-schoolDetailInfo__empty {
    padding: 8.8rem 2rem 3.2rem;
    text-align: center;
    border-radius: 2.4rem;
  }

  .p-schoolDetailInfo__emptyChara { top: 2.4rem; left: calc(50% - 4rem); width: 8rem; }

  .p-schoolDetailInfo__emptyTitle { font-size: 1.7rem; }

  .p-schoolDetailInfo__emptyText { margin-top: .4rem; font-size: 1.4rem; }

  .p-schoolDetailInfo--empty .p-schoolDetailInfo__inner { padding-bottom: 8rem; }

  /* ---------- 利用できるサービス ---------- */
  .p-schoolDetailService__wave {
    top: -5.8rem;
    left: -3rem;
    width: calc(100% + 6rem);
    height: 6rem;
  }

  .p-schoolDetailService__inner { padding-top: 1.6rem; padding-bottom: 4rem; }

  .p-schoolDetailHeading { font-size: 2.2rem; }

  .p-schoolDetailService__list {
    gap: 1.6rem;
    margin-top: 2.4rem;
  }

  .p-schoolDetailService__card {
    width: 31rem;
    min-height: 30rem;
    padding: 4.4rem 3rem 4.4rem;
  }

  .p-schoolDetailService__card--compact { min-height: 24rem; }

  .p-schoolDetailService__card--nameOnly {
    min-height: 18rem;
    display: grid;
    place-items: center;
  }

  .p-schoolDetailService__name { font-size: 1.7rem; }

  .p-schoolDetailService__detail {
    width: 24rem;
    margin-top: 1.6rem;
    padding-top: 2rem;
  }

  .p-schoolDetailService__detail > div + div { margin-top: 1.8rem; }

  .p-schoolDetailService__detail dt { font-size: 1.2rem; }

  .p-schoolDetailService__detail dd {
    margin-top: .4rem;
    font-size: 1.5rem;
  }

  .p-schoolDetailService__hours { gap: .3rem 1.2rem; }

  .p-schoolDetailService__hoursLabel { font-size: 1.3rem; }

  .p-schoolDetailService .p-schoolDetailCta { margin-top: 3.6rem; }

  /* ---------- この教室ならではの取り組み ---------- */
  .p-schoolDetailFeature__wave {
    top: 0;
    left: -3rem;
    width: calc(100% + 6rem);
    height: 6rem;
  }

  .p-schoolDetailFeature__inner { padding-top: 10rem; padding-bottom: 8rem; }

  .p-schoolDetailFeature__school {
    margin-bottom: 1rem;
    font-size: 1.6rem;
  }

  .p-schoolDetailFeature__brand { font-size: 1.9rem; }

  .p-schoolDetailFeature__list { margin-top: 3.6rem; }

  .p-schoolDetailFeature__item + .p-schoolDetailFeature__item { margin-top: 4.8rem; }

  .p-schoolDetailFeature__item .p-schoolDetailBlob {
    width: 28rem;
    margin: 0 auto;
  }

  .p-schoolDetailFeature__item .p-schoolDetailBlob--3 { width: 24rem; }

  .p-schoolDetailFeature__body { margin-top: 2rem; }

  .p-schoolDetailFeature__title { font-size: 1.8rem; }

  .p-schoolDetailFeature__text {
    margin-top: 1.2rem;
    font-size: 1.4rem;
  }

  .p-schoolDetailFeature__item--textOnly { width: 100%; }

  .p-schoolDetailFeature__item--textOnly .p-schoolDetailFeature__body { padding: 0; }

  .p-schoolDetailFeature__cta { margin-top: 4.8rem; }

  .p-schoolDetailFeature__inner:not(:has(.p-schoolDetailFeature__list)) { padding-top: 7rem; padding-bottom: 6rem; }

  .p-schoolDetailFeature__cta--empty { margin-top: 0; }

  .p-schoolDetailFeature--noService .p-schoolDetailFeature__inner { padding-top: 0; }
}
