/* =====================================================================
   リハの文京 LP 個別 CSS（v1）
   対象       : /featured/bgu-rehab（テンプレート: テーマ内 page/featured/bgu-rehab/index.php）
   読み込み   : テンプレート冒頭の $pageCss（本ページのみ）→ header.php:22 printCss()
   規約       : クラスは lp-rehab- プレフィックス／変数は --rehab- プレフィックス
                テーマ共通クラス（btn, tag, on, two 等）・共通変数（--sub 等）を上書きしない
   ブレーク   : 〜767px = SP カンプ（390 基準）／768px〜 = PC カンプ（1920 基準・コンテナ 1600）
                文字サイズは各ブレークとも固定値（画面幅で可変にしない）
                1500px〜 は、2 カラム幅に収まらない文字だけを個別に戻すブレーク
   ビルド     : 不要（静的配信）。保存してリロードすれば反映される
   ===================================================================== */

/* アンカー遷移はプロトタイプに合わせて JS 側で 0.3s / EASE_OUT に制御する
   （page-bgu-rehab.js）。ここでは JS が無効な場合のフォールバックのみ置く */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.lp-rehab {
  --rehab-navy: #012C89;        /* 見出し・CTA 背景 */
  --rehab-text: #2B3C4F;        /* 本文 */
  --rehab-cyan: #01BAEF;
  --rehab-pink: #FF6AAE;        /* 作業療法学科 枠線 */
  --rehab-pink-text: #DA3299;   /* 作業療法学科 文字 */
  --rehab-teal: #1EAA97;        /* 理学療法学科 枠線 */
  --rehab-teal-text: #007161;   /* 理学療法学科 文字 */
  --rehab-cream: #FFF9E1;       /* S1-2 背景 */
  --rehab-lavender: #E0E4FF;    /* S2-1 背景 */
  --rehab-peach: #FFF8F5;       /* S3-1 背景 */
  --rehab-ring: #E0E4FF;        /* KV 円リング */
  --rehab-container: 1600px;
  --rehab-header-h: 60px;       /* 固定ヘッダー実高（SP）。PC は @media で上書き */
  --rehab-header-offset: var(--rehab-header-h);
  color: var(--rehab-text);
  overflow-x: clip;
}

/* 日本語の禁則処理。既定（auto）だと行頭に「ー」等が来てカンプと折り返しがずれる */
.lp-rehab {
  line-break: strict;
}

.lp-rehab-inner {
  width: 100%;
  max-width: calc(var(--rehab-container) + 20px);
  margin-inline: auto;
  padding-inline: 10px;
}

/* ---- スクロール連動リビール（ふわっと表示）----
   参考: /featured/hds-curiosity の .hds-reveal（18px・0.7s・fade-up）。
   page-bgu-rehab.js がブロックに .lp-rehab-reveal を付け、画面内に入ったら .is-inview を付ける。
   JS が無効なら .lp-rehab-reveal は付かず、静的表示のまま。
   表示後は opacity / transform を一切指定しない（CSS アニメーションは backwards のみ）。
   transition ベースにすると、カードや OC バナーのホバー（opacity / transition）と競合するため */
.lp-rehab-reveal:not(.is-inview) {
  opacity: 0;
  transform: translateY(18px);
}

.lp-rehab-reveal.is-inview {
  animation:
    lp-rehab-reveal-fade .7s ease backwards,
    lp-rehab-reveal-rise .7s cubic-bezier(.22, .61, .36, 1) backwards;
  animation-delay: var(--lp-rehab-reveal-delay, 0ms);
}

@keyframes lp-rehab-reveal-fade {
  from { opacity: 0; }
}

@keyframes lp-rehab-reveal-rise {
  from { transform: translateY(18px); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-rehab-reveal:not(.is-inview) {
    opacity: 1;
    transform: none;
  }

  .lp-rehab-reveal.is-inview {
    animation: none;
  }
}

/* アンカー着地の固定ヘッダー補正 */
.lp-rehab [id] {
  scroll-margin-top: var(--rehab-header-offset);
}

.lp-rehab img {
  max-width: 100%;
}

.lp-rehab [hidden] {
  display: none !important;
}

/* Figma の矢印アイコン（受け皿は横長ピル。色は親の color を継承） */
.lp-rehab-arrow {
  display: block;
  width: auto;
}

/* リスト既定値のリセット。:where() で詳細度 0 にして、
   個別クラスの margin-bottom を打ち消さないようにする */
.lp-rehab :where(ul) {
  padding: 0;
  list-style: none;
}

/* デバイス別の改行制御 */
.lp-rehab-br-sp { display: inline; }
.lp-rehab-br-pc { display: none; }
/* PC レイアウトのまま幅が足りない帯域だけで効かせる改行
   （左右で文字数が違うペアを同じタイミングで折り返すため） */
.lp-rehab-br-narrow { display: none; }

/* 画面幅が足りずに折り返すとき、句の途中で切れないようにする。
   .lp-rehab-phrase の直下 span を inline-block にすると、
   折り返せる位置が span の境目だけに限定される */
/* vertical-align を既定の baseline のままにすると、inline-block の下に
   親ストラットのディセント分の余白が付いて行が高くなるため top で揃える */
.lp-rehab-phrase > span { display: inline-block; vertical-align: top; }

/* アンカーリンクのアイコン（KV・SP 固定メニュー共通。Figma 32x22 の枠線ピル） */
.lp-rehab-anchor-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 22px;
  border: 2px solid var(--rehab-navy);
  border-radius: 9999px;
  color: var(--rehab-navy);
}

.lp-rehab-anchor-icon .lp-rehab-arrow {
  height: 10px;
}

/* 視覚的に隠す（スクリーンリーダー用） */
.lp-rehab-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =====================================================================
   SP 固定アンカーメニュー
   ===================================================================== */

.lp-rehab-spmenu {
  /* カンプは 16px。実機の追従バナー・チャットを避けるため退避している。
     カンプ通りに戻す場合はこの 1 行を 16px にする */
  --rehab-fab-bottom: 150px;
  position: fixed;
  z-index: 99;
  right: 10px;
  bottom: var(--rehab-fab-bottom);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.lp-rehab-spmenu__panel {
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 4px 8px 20px rgba(125, 136, 137, .2);
}

.lp-rehab-spmenu__panel ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-rehab-spmenu__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rehab-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.lp-rehab-spmenu__fab {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rehab-navy);
  box-shadow: 4px 8px 20px rgba(125, 136, 137, .5);
  color: #fff;
  cursor: pointer;
}

.lp-rehab-spmenu__fab-icon svg {
  display: block;
  width: 30px;
  height: 24px;
}

/* =====================================================================
   S1: KV「リハの文京」
   ===================================================================== */

.lp-rehab-kv {
  position: relative;
  z-index: 1;
  margin-bottom: -30px;
}

.lp-rehab-kv__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--rehab-container) + 32px);
  margin-inline: auto;
  padding-top: calc(var(--rehab-header-h) + 40px);
  padding-inline: 16px;
}

/* ---- 見出しまわり ---- */
.lp-rehab-kv__sub {
  font-style: italic;
  color: var(--rehab-navy);
  font-size: 16px;
  font-weight: 600;
  /* カンプは 1 行（lh=1）。折り返したとき行が詰まらないよう lh を広げ、
     増えたハーフリーディング（0.15em）を上下マージンで相殺して
     1 行時の見た目位置はカンプどおりに保つ */
  line-height: 1.3;
  letter-spacing: 0.1em;
  margin-top: -0.15em;
  margin-bottom: calc(15px - 0.15em);
}

.lp-rehab-kv__title {
  margin-bottom: 10px;
  line-height: 0;
  margin-bottom: 10px;
}

.lp-rehab-kv__title img {
  width: auto;
  height: 54px;
}

.lp-rehab-kv__depts {
  display: flex;
  gap: 10.7px;
  margin-bottom: 20px;
}

.lp-rehab-kv__dept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: 2px 10px;
  border: 1.07px solid currentColor;
  border-radius: 5.35px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background-color: #fff;
}

.lp-rehab-kv__dept--ot {
  border-color: var(--rehab-pink);
  color: var(--rehab-pink-text);
}

.lp-rehab-kv__dept--pt {
  border-color: var(--rehab-teal);
  color: var(--rehab-teal-text);
}

.lp-rehab-kv__copy {
  color: var(--rehab-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

/* ---- KV ビジュアル（円写真 + イラスト）---- */
.lp-rehab-kv__visual {
  position: relative;
  z-index: 2;
  width: calc(100% + 28px);
  margin: 0 -14px 13px;
  aspect-ratio: 384 / 345;
}

.lp-rehab-kv__ring,
.lp-rehab-kv__photo,
.lp-rehab-kv__illust {
  position: absolute;
}

.lp-rehab-kv__ring {
  left: 5.99%;
  top: 0;
  width: 88.54%;
  aspect-ratio: 1;
  border: 2.78px solid var(--rehab-ring);
  border-radius: 50%;
}

.lp-rehab-kv__photo {
  left: 14.06%;
  top: 9.28%;
  width: 72.14%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}

.lp-rehab-kv__illust--care,
.lp-rehab-kv__illust--bars {
  height: auto;
}

.lp-rehab-kv__illust--care {
  left: 2.47%;
  top: 5.65%;
  width: 27.6%;   /* カンプ SP の実描画 106 / 384 */
}

.lp-rehab-kv__illust--bars {
  left: 73.44%;
  top: 72.17%;
  width: 26.3%;
}

/* ---- CTA・アンカー ---- */
.lp-rehab-kv__actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.lp-rehab-kv__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 303px;
  max-width: 100%;
  padding: 14px 14px 14px 24px;
  border-radius: 100px;
  background: var(--rehab-navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-decoration: none;
  position: relative;
  z-index: 0;
  /* ホバー: 参考 media.kirinholdings.com の CTA ボタン。
     同色のリング（box-shadow）が外へ 8px 広がり、白いピルが 1.08 倍に微拡大、矢印（下向き）が下へ 6px 動く（0.41s・cubic-bezier(.36,.04,.23,1)） */
  box-shadow: 0 0 0 0 var(--rehab-navy);
  transition: box-shadow .41s cubic-bezier(.36, .04, .23, 1);
}

.lp-rehab-kv__cta:focus-visible {
  outline: 2px solid var(--rehab-navy);
  outline-offset: 6px;
}

@media (any-hover: hover) {
  .lp-rehab-kv__cta:hover {
    box-shadow: 0 0 0 8px var(--rehab-navy);
    color: #fff;
  }
}

.lp-rehab-kv__cta-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 26px;
  border-radius: 9999px;
  background: #fff;
  color: var(--rehab-navy);
  transition: scale .41s cubic-bezier(.36, .04, .23, 1);
}

.lp-rehab-kv__cta-icon .lp-rehab-arrow {
  height: 12px;
  transition: translate .41s cubic-bezier(.36, .04, .23, 1);
}

@media (any-hover: hover) {
  .lp-rehab-kv__cta:hover .lp-rehab-kv__cta-icon .lp-rehab-arrow {
    translate: 0 6px;
  }

  .lp-rehab-kv__cta:hover .lp-rehab-kv__cta-icon {
    scale: 1.08;
  }
}

/* アンカーリンク 3 本は PC カンプのみ（SP は固定メニューが担う） */
.lp-rehab-kv__anchors { display: none; }

/* =====================================================================
   S1-2: リハビリという仕事の 3 つの土台
   ===================================================================== */

.lp-rehab-basics {
  position: relative;
  z-index: 0;
}

.lp-rehab-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.lp-rehab-basics__curve {
  height: 74px;
  background: var(--rehab-cream);
  clip-path: url(#lp-rehab-curve);
}

.lp-rehab-basics__body {
  padding: 20px 0 60px;
  background: var(--rehab-cream);
}

.lp-rehab-basics__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.lp-rehab-basics__title {
  color: var(--rehab-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lp-rehab-basics__lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.lp-rehab-basics__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.lp-rehab-basics__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 292px;
  max-width: 100%;
  text-align: center;
}

/* SP は左→右→左の互い違い配置 */
.lp-rehab-basics__item:nth-child(2) { margin-left: auto; }

.lp-rehab-basics__photo {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
}

.lp-rehab-basics__item-title {
  font-size: 20px;
  font-weight: 600;
  /* カンプは 1 行（lh=1）。折り返したとき行が詰まらないよう lh を広げ、
     増えたハーフリーディングを上下マージンで相殺して 1 行時は見た目そのまま */
  line-height: 1.3;
  letter-spacing: 0.1em;
  margin-block: -0.15em;
}

/* CSS は最終文字の後にも字間を入れるため、Figma より 1 文字分の字間だけ幅が要る。
   カンプの折り返し位置を再現するため末尾の字間を相殺する */
.lp-rehab-basics__item-text {
  margin-right: -0.1em;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.1em;
}


/* =====================================================================
   S2: リハビリのプロは、2職種。
   ===================================================================== */

/* ---- S2-1 比較カード ---- */

.lp-rehab-pro__intro {
  padding: 60px 0;
  background: var(--rehab-lavender);
  margin-bottom: -30px;
}

.lp-rehab-pro__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.lp-rehab-pro__label {
  color: var(--rehab-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.lp-rehab-pro__title {
  color: var(--rehab-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lp-rehab-pro__lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.lp-rehab-pro__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.lp-rehab-pro__card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-rehab-pro__card--ot {
  --rehab-c: var(--rehab-pink);
  --rehab-c-text: var(--rehab-pink-text);
  --rehab-c-border: #FFCBE3;
  --rehab-c-card: #FFF4FA;
  --rehab-c-band: #FFCBE3;
}

.lp-rehab-pro__card--pt {
  --rehab-c: var(--rehab-teal);
  --rehab-c-text: var(--rehab-teal-text);
  --rehab-c-border: #55D4AF;
  --rehab-c-card: #F4FFFC;
  --rehab-c-band: #D5FFF0;
}

/* カンプではイラストがカードの背面。position を付けると静的要素より前に出るため外す */
.lp-rehab-pro__pair {
  width: 160px;
  height: auto;
  margin-bottom: -20px;
}

.lp-rehab-pro__card-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 30px 20px;
  border-radius: 30px;
  background: #fff;
}

.lp-rehab-pro__card-title {
  color: var(--rehab-c);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
}

.lp-rehab-pro__specs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lp-rehab-pro__spec {
  display: flex;
  flex-direction: column;
}

.lp-rehab-pro__chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--rehab-c-border);
  border-radius: 9999px;
  color: var(--rehab-c-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.lp-rehab-pro__value {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

/* SP は作業療法士側だけ縦積み。理学療法士側はカンプどおり同じ行に並べる */
.lp-rehab-pro__card--pt .lp-rehab-pro__value-sub {
  display: inline;
  margin-left: 10px;
}

.lp-rehab-pro__value-sub {
  display: block;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.1em;
}

.lp-rehab-pro__bridge {
  color: var(--rehab-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ---- S2-2 こんな場面で ---- */

.lp-rehab-scene {
  position: relative;
  padding: 60px 0;
  border-radius: 40px 40px 0 0;
  background: #fff;
}

/* 背景のドットパターン（Figma: PATTERN 塗り 15%） */
.lp-rehab-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  /* タイル倍率はカンプ準拠（SP 0.3 / PC 0.8 → 30px / 80px） */
  background: url(/assets/img/featured/bgu-rehab/bg-dot-tile.png) repeat left top / 30px 30px;
  border-radius: inherit;
  opacity: .15;
  pointer-events: none;
}

.lp-rehab-scene > * {
  position: relative;
}

/* セクション境界の下向き三角（Figma 120x80）。三角は CSS、矢印だけ SVG
   S2（シーン紹介）と S4（どちらを目指す？）の冒頭で共用する */
.lp-rehab-notch {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 60px;
  height: 40px;
  background: var(--rehab-lavender);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  color: var(--rehab-navy);
  transform: translateX(-50%);
}

.lp-rehab-notch svg {
  width: 25.37%;  /* カンプ 30.44 / 120 */
  height: auto;
}

.lp-rehab-scene__cols {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 36px;
}

.lp-rehab-scene__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lp-rehab-scene__col--ot {
  --rehab-c: var(--rehab-pink);
  --rehab-c-text: var(--rehab-pink-text);
  --rehab-c-card: #FFF4FA;
  --rehab-c-band: #FFCBE3;
}

.lp-rehab-scene__col--pt {
  --rehab-c: var(--rehab-teal);
  --rehab-c-text: var(--rehab-teal-text);
  --rehab-c-card: #F4FFFC;
  --rehab-c-band: #D5FFF0;
}

.lp-rehab-scene__col-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.lp-rehab-scene__icon {
  width: auto;
  height: 50px;
}

.lp-rehab-scene__col-title {
  color: var(--rehab-c);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
}

.lp-rehab-scene__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
  padding: 16px 20px 20px;
  border-radius: 20px;
  background: var(--rehab-c-card);
}

.lp-rehab-scene__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 見出し背景の帯（カード幅いっぱいに裁ち落とし） */
.lp-rehab-scene__item::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -16px;
  right: -20px;
  left: -20px;
  height: 120px;
  background: var(--rehab-c-band);
}

.lp-rehab-scene__item > * {
  position: relative;
  z-index: 1;
}

.lp-rehab-scene__situation {
  color: var(--rehab-c-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.lp-rehab-scene__figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-rehab-scene__figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: -20px;
}

.lp-rehab-scene__caption {
  padding: 6px 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.lp-rehab-scene__desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.lp-rehab-scene__team {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 20px;
  border: 4px solid var(--rehab-navy);
  border-radius: 20px;
  background: #F4F9FF;
}

.lp-rehab-scene__team-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.lp-rehab-scene__team-body {
  display: flex;
  flex-direction: column;
}

.lp-rehab-scene__team-title {
  color: #014E8F;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.lp-rehab-scene__team-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.1em;
}


/* =====================================================================
   S3-1: チェック診断
   ===================================================================== */

.lp-rehab-check {
  position: relative;
  padding-top: 60px;
  background: var(--rehab-peach);
}

/* 紙地テクスチャ（Figma: IMAGE 塗り 50%） */
.lp-rehab-check::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/assets/img/featured/bgu-rehab/s3-texture.jpg) center / cover no-repeat;
  /* Figma の塗りは乗算 50%。通常合成だと明るくなりカンプと色味がずれる */
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
}

.lp-rehab-check > * {
  position: relative;
}

.lp-rehab-check__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.lp-rehab-check__title {
  color: var(--rehab-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lp-rehab-check__title-sub {
  font-size: 20px;
}

.lp-rehab-check__lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.lp-rehab-check__panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 12px 12px 30px;
  border-radius: 20px;
  background: #fff;
}

.lp-rehab-check__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-rehab-check__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .2s, border-radius .2s;
}

.lp-rehab-check__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lp-rehab-check__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #74899E;
  border-radius: 5px;
  /* チェックは線幅込みで箱の 56.3%（カンプ: 箱 40 / 線形 17.5x12 / 線幅 5.02） */
  background: #fff no-repeat center / 56.3% auto;
}

.lp-rehab-check__item.is-checked,
.lp-rehab-check__item:has(input:checked) {
  background: #DCE9FA;
}

.lp-rehab-check__item.is-checked .lp-rehab-check__box,
.lp-rehab-check__item:has(input:checked) .lp-rehab-check__box {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2.51 -2.51 22.52 17.02' fill='none'%3E%3Cpath d='M0 2.479 5.497 12 17.497 0' stroke='%23F46643' stroke-width='5.02' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lp-rehab-check__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color .2s;
}

/* ホバー時、テキストをチェックマークと同じ色（#F46643）にする。タッチ端末では残留するので hover 可能な環境のみ */
@media (hover: hover) {
  .lp-rehab-check__item:hover .lp-rehab-check__text {
    color: #F46643;
  }
}

/* ---- 判定パネル ---- */

.lp-rehab-result {
  display: flex;
  flex-direction: column;
  gap: 11.5px;
  width: 100%;
  padding: 11.5px 17px;
  border-radius: 17px;
  background: #F4F9FF;
}

.lp-rehab-result__rail {
  position: relative;
  height: 5px;
  border-radius: 9999px;
  background: #C4D7E0;
}

.lp-rehab-result__pin {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 25px;
  height: auto;
  /* 矢印の先端は SVG 幅の中央ではなく 50.726/99 の位置にあるので、
     先端が left の座標に来るようにずらす */
  transform: translateX(-51.24%);
  transition: left .25s ease;
}

.lp-rehab-result__bars {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-rehab-result__bar-group {
  display: flex;
  flex: 1 1 0;
  gap: 6px;
  min-width: 0;
}

.lp-rehab-result__bar-group span {
  flex: 1 1 0;
  height: 51px;
  border-radius: 9999px;
  background: #D9D9D9;
  transition: background-color .2s;
}

.lp-rehab-result__bar-group--ot span.is-on { background: var(--rehab-pink); }
.lp-rehab-result__bar-group--pt span.is-on { background: var(--rehab-teal); }

.lp-rehab-result__divider {
  flex: 0 0 auto;
  width: 2px;
  height: 28px;
  border-radius: 9999px;
  background: #74899E;
}

.lp-rehab-result__counts {
  display: flex;
  gap: 17px;
  padding: 6px 11.5px;
  border-radius: 6px;
  background: #fff;
}

.lp-rehab-result__count {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}

.lp-rehab-result__num {
  color: var(--rehab-text);
  font-family: "Barlow", sans-serif;
  font-size: 36px;
  /* カンプは 600。ただし v1 の header.php が読み込む Barlow は 400/700/900 のみで、
     600 は未配信のため実際は 700 で描画される（header.php の要対応） */
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  transition: color .2s;
  margin-bottom: 6px;
}

.lp-rehab-result__num.is-lead {
  color: #F46643;
}

.lp-rehab-result__count-label {
  display: flex;
  flex-direction: column;
}

.lp-rehab-result__count-sub {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 1.5px;
}

.lp-rehab-result__count-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.lp-rehab-result__count--ot .lp-rehab-result__count-name { color: var(--rehab-pink); }
.lp-rehab-result__count--pt .lp-rehab-result__count-name { color: var(--rehab-teal); }

/* ---- 判定後の導線 ---- */

.lp-rehab-lead-to {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.lp-rehab-lead-to__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lp-rehab-lead-to__card--ot { --rehab-c: var(--rehab-pink); --rehab-c-card: #FFF4FA; }
.lp-rehab-lead-to__card--pt { --rehab-c: var(--rehab-teal); --rehab-c-card: #F4FFFC; }

/* カンプではイラストがカードの前面（人物の体がカードに重なって見える） */
.lp-rehab-lead-to__pair {
  position: relative;
  z-index: 1;
  width: 121px;
  height: auto;
  margin-bottom: -50px;
}

.lp-rehab-lead-to__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 60px 10px 10px;
  border: 6px solid var(--rehab-c);
  border-radius: 40px;
  background: var(--rehab-c-card);
  text-align: center;
}

.lp-rehab-lead-to__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.lp-rehab-lead-to__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.lp-rehab-lead-to__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 303px;
  max-width: 100%;
  padding: 14px 14px 14px 24px;
  border-radius: 100px;
  background: var(--rehab-c);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity .2s;
}

.lp-rehab-lead-to__btn:hover,
.lp-rehab-lead-to__btn:focus-visible { opacity: .8; color: #fff; }

.lp-rehab-lead-to__btn-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 26px;
  border-radius: 9999px;
  background: #fff;
  color: var(--rehab-c);
}

.lp-rehab-lead-to__btn-icon .lp-rehab-arrow { height: 12px; }

.lp-rehab-lead-to__alt a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rehab-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.lp-rehab-lead-to__alt a > span:first-child {
  padding: 0 16px 4px;
  border-bottom: 2px solid var(--rehab-navy);
}

.lp-rehab-lead-to__alt-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 33px;
  height: 22px;
  border: 2px solid var(--rehab-navy);
  border-radius: 9999px;
  color: var(--rehab-navy);
}

.lp-rehab-lead-to__alt-icon .lp-rehab-arrow { height: 10px; }

/* 同点: 両学科のカードを並べる（アンカーボタンは表示、下の補助リンクのみ非表示） */
/* 2 枚の高さを揃える（カード・本体を伸ばし、イラスト高さも統一して本体の上端も揃える） */
.lp-rehab-lead-to.is-both { align-items: stretch; }
.lp-rehab-lead-to.is-both .lp-rehab-lead-to__body { flex: 1 1 auto; justify-content: center; }
.lp-rehab-lead-to.is-both .lp-rehab-lead-to__pair { width: auto; height: 98px; }

/* ---- 学科紹介への橋渡し ---- */

.lp-rehab-bridge {
  position: relative;
  min-height: 521px;   /* カンプ SP 390x521。画像は __photos 内で px 配置 */
  padding-top: 140px;
}

/* 次セクション（学科紹介）の薄紫がせり上がる曲線。Figma も橋渡しフレーム内に置かれている */
.lp-rehab-bridge__next-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 74px;
  background: var(--rehab-lavender);
  clip-path: url(#lp-rehab-curve);
}

/* 画像の配置基準の箱。PC では最大 1920px で中央寄せにし、広い画面でも本文との位置関係を保つ */
.lp-rehab-bridge__photos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin-inline: auto;
  pointer-events: none;
}

/* 左右 2 枚の合成画像（写真 + 人物イラスト込み）。位置は left / right の px 指定 */
.lp-rehab-bridge__group {
  position: absolute;
  height: auto;
}

.lp-rehab-bridge__group img {
  display: block;
  width: 100%;
  height: auto;
}

/* SP 画像は 390 幅カンプの実寸（左 104px / 右 142px） */
.lp-rehab-bridge__group--left  { left: 0;  top: 69px; width: 104px; }
.lp-rehab-bridge__group--right { right: 0; top: 21px; width: 142px; }

.lp-rehab-bridge__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 間隔はカンプ実測（一律ではない） */
.lp-rehab-bridge__mark {
  width: 39px;
  height: auto;
  margin-bottom: 20px;
}

.lp-rehab-bridge__balloon {
  position: relative;
  margin-bottom: 15px;
  padding: 10px 20px;
  border-radius: 1000px;
  background: #fff;
  color: var(--rehab-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
}

.lp-rehab-bridge__balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-right-width: 7.5px;
  border-left-width: 7.5px;
  border-top: 10px solid #fff;
  border-bottom: 0;
  transform: translateX(-50%);
}

.lp-rehab-bridge__title {
  margin-bottom: 10px;
  color: var(--rehab-navy);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
}

.lp-rehab-bridge__text {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.lp-rehab-bridge__chevron {
  width: 63px;
  height: auto;
}


/* =====================================================================
   S3-2: 学科紹介（作業療法学科 / 理学療法学科）
   ===================================================================== */

.lp-rehab-depts {
  padding: 60px 0;
  background: var(--rehab-lavender);
  /* 片側を画面端まで裁ち落とすための基準量（コンテナ端 → 画面端の距離） */
  --rehab-bleed: calc(50vw - 50%);
}

.lp-rehab-depts__head {
  display: flex;
  flex-direction: column;
}

.lp-rehab-depts__title {
  color: var(--rehab-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lp-rehab-depts__lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.lp-rehab-dept {
  width: 100%;
  max-width: calc(var(--rehab-container) + 20px);
  margin-inline: auto;
  margin-bottom: 60px;
  padding-inline: 20px;
}

.lp-rehab-dept:last-child {
  margin-bottom: 0;
}

.lp-rehab-dept--ot {
  --rehab-c: var(--rehab-pink);
  --rehab-c-text: var(--rehab-pink-text);
  --rehab-c-tab: #FF95C5;
  --rehab-c-card: #FFF4FA;
}

.lp-rehab-dept--pt {
  --rehab-c: var(--rehab-teal);
  --rehab-c-text: var(--rehab-teal-text);
  --rehab-c-tab: #7ACEB8;
  --rehab-c-card: #F4FFFC;
}

/* ---- 学科タブ ---- */

/* inline-flex だと margin-left: auto が効かないため block レベルの flex にする */
.lp-rehab-dept__tab {
  display: flex;
  width: max-content;
  max-width: 100%;
  /* 子をタブの全高に伸ばす。文字はその中で中央寄せするので確実に中央に来る */
  align-items: stretch;
  gap: 10px;
  /* カンプのタブ位置は画面端からの距離。親の padding-inline 20px を差し引く
     （作業 = 画面端から 20px / 理学 = 60px） */
  margin-left: 0;
  padding: 0 30px 0 20px;
  border-radius: 30px 30px 0 0;
  background: var(--rehab-c-tab);
}

/* SP のタブ位置はカンプ実測（作業 20px / 理学 60px） */
.lp-rehab-dept--pt .lp-rehab-dept__tab {
  margin-left: 40px;
}

.lp-rehab-dept__tab-illust {
  width: 53px;
  height: auto;
  margin-top: 16px;
}

/* タブの全高いっぱいに伸びた箱の中で中央寄せ */
.lp-rehab-dept__tab-name {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
}

/* ---- 白パネル（片側裁ち落とし）---- */

.lp-rehab-dept__panel {
  border-radius: 40px;
  background: #fff;
  display: flex;
  justify-content: end;
}

.lp-rehab-dept--ot .lp-rehab-dept__panel {
  margin-left: calc(-1 * var(--rehab-bleed));
  padding: 30px 20px 40px var(--rehab-bleed);
  border-radius: 0 40px 40px 0;
}

.lp-rehab-dept--pt .lp-rehab-dept__panel {
  justify-content: start;
  margin-right: calc(-1 * var(--rehab-bleed));
  padding: 30px var(--rehab-bleed) 40px 20px;
  border-radius: 40px 0 0 40px;
}

.lp-rehab-dept__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1520px;
}

/* ---- 学科イントロ ---- */

.lp-rehab-dept__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-rehab-dept__intro-body {
  display: flex;
  flex-direction: column;
}

.lp-rehab-dept__intro-title {
  color: var(--rehab-navy);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.lp-rehab-dept__intro-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.lp-rehab-dept__intro-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 330 / 216;
  border-radius: 20px;
  object-fit: cover;
}

/* ---- 見出しグループ ---- */

.lp-rehab-dept__group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lp-rehab-dept__group-head {
  display: flex;
  flex-direction: column;
}

.lp-rehab-dept__group-title {
  color: var(--rehab-navy);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.lp-rehab-dept__group-lead {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

/* ---- 学びの特長 ---- */

.lp-rehab-feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-rehab-feature__item {
  display: flex;
  flex-direction: column;
}

.lp-rehab-feature__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 330 / 173;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: -40px;
}

.lp-rehab-feature__body {
  border-radius: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  margin-left: 24px;
  padding: 10px 0 0 16px;
  background: #fff;
}

.lp-rehab-feature__title {
  color: var(--rehab-c-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.lp-rehab-feature__text {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
}

/* ---- 授業内容 ---- */

.lp-rehab-class {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-rehab-class__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background: var(--rehab-c-card);
}

.lp-rehab-class__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 290 / 152;
  border-radius: 10px;
  object-fit: cover;
}

.lp-rehab-class__body {
  display: flex;
  flex-direction: column;
}

.lp-rehab-class__title {
  color: var(--rehab-c-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.lp-rehab-class__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

/* ---- 学びの環境 ---- */

.lp-rehab-env {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.lp-rehab-env__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-rehab-env__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 486 / 255;
  border-radius: 20px;
  object-fit: cover;
}

.lp-rehab-env__body {
  display: flex;
  flex-direction: column;
}

.lp-rehab-env__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.lp-rehab-env__label::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 3px;
  background: var(--rehab-text);
}

.lp-rehab-env__title {
  color: var(--rehab-c-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}

.lp-rehab-env__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}


/* =====================================================================
   S4: あなたは、どちらを目指す？／オープンキャンパス導線
   ===================================================================== */

.lp-rehab-cta {
  position: relative;
  padding-top: 60px;
  background: var(--rehab-cream);
}

.lp-rehab-cta__head {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 36px;
}

.lp-rehab-cta__title {
  color: var(--rehab-navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.lp-rehab-cta__lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.1em;
}

.lp-rehab-cta__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 40px;
  margin-bottom: 36px;
}

.lp-rehab-cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--rehab-text);
  text-decoration: none;
}

.lp-rehab-cta__card--ot { --rehab-c: var(--rehab-pink); }
.lp-rehab-cta__card--pt { --rehab-c: var(--rehab-teal); }

/* カンプではイラストがカードの前面 */
.lp-rehab-cta__pair {
  position: relative;
  z-index: 1;
  width: 120px;
  height: auto;
  margin-bottom: -40px;
}

.lp-rehab-cta__card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 50px 20px;
  border: 6px solid var(--rehab-c);
  border-radius: 30px;
  background: #fff;
  text-align: center;
}

.lp-rehab-cta__card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}

.lp-rehab-cta__card-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.lp-rehab-cta__card-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 26px;
  border-radius: 9999px;
  background: var(--rehab-c);
  color: #fff;
}

.lp-rehab-cta__card-icon .lp-rehab-arrow { height: 11px; }

/* ---- オープンキャンパス導線 ---- */

/* 背景・格子・紙吹雪・丘は 1 枚の SVG にまとめてある（カンプの座標がファイル内に入るので
   CSS での位置合わせが不要。SP と PC で装飾の構成が違うため 2 枚を出し分ける） */
.lp-rehab-oc {
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
  border-radius: 30px 30px 0 0;
  /* パネル本体（角丸＋方眼）は CSS で描き、装飾 SVG は幅いっぱい・下端に置く。
     SVG は preserveAspectRatio の既定で中にレターボックス表示されるため、
     1 枚に合体させたままだと箱の縦横比がずれた瞬間に縮んで中央に寄る */
  background-color: #FBDFDC;
  background-image:
    url(/assets/img/featured/bgu-rehab/oc-deco-sp.png),
    repeating-linear-gradient(to right,  rgba(255, 255, 255, .5) 0 0.8px, transparent 0.8px 20px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .5) 0 0.8px, transparent 0.8px 20px);
  /* SP の装飾は右上に固まっているので上端合わせ（PC 版は下端合わせ） */
  background-position: top, 0 0, 0 0;
  background-size: 100% auto, auto, auto;
  background-repeat: no-repeat, repeat, repeat;
}

.lp-rehab-oc__body {
  width: fit-content;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.lp-rehab-oc__title {
  margin-bottom: 20px;
}

.lp-rehab-oc {
  display: block;
  text-decoration: none;
}

.lp-rehab-oc__title > span {
  display: inline-flex;
  align-items: end;
  gap: 10px;
  color: #014A5A;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.lp-rehab-oc__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 30px;
  border-radius: 9999px;
  background: #006C54;
  color: #fff;
}

.lp-rehab-oc__icon .lp-rehab-arrow { height: 12px; }

.lp-rehab-oc__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.lp-rehab-depts > .lp-rehab-inner {
  margin-bottom: 36px;
}

.lp-rehab-kv__body {
  margin-bottom: 2px;
}
/* =====================================================================
   PC（768px〜。1920 でカンプ実寸）
   ===================================================================== */
@media (min-width: 768px) {

  .lp-rehab {
    --rehab-header-h: 120px;
  }

  .lp-rehab-inner {
    max-width: calc(var(--rehab-container) + 160px);
    padding-inline: 80px;
  }

  .lp-rehab-br-sp { display: none; }
  .lp-rehab-br-pc { display: inline; }

  .lp-rehab-spmenu { display: none; }

  /* ---- S1 KV ---- */
  .lp-rehab-kv__inner {
    position: relative;
    display: block;
    max-width: calc(var(--rehab-container) + 160px);
    padding-top: calc(var(--rehab-header-h) + 100px);
    padding-bottom: 200px;
    padding-inline: 80px;
  }

  .lp-rehab-kv__body {
    position: relative;
    z-index: 2;
    width: min(100%, 52%);
    margin-bottom: 40px;
  }

  .lp-rehab-kv__sub {
    font-size: 28px;
    margin-bottom: calc(24px - 0.15em);
  }

  .lp-rehab-kv__title {
    margin-bottom: 30px;
  }

  .lp-rehab-kv__title img {
    height: 90px;
  }

  .lp-rehab-kv__depts {
    gap: 20px;
    margin-bottom: 30px;
  }

  .lp-rehab-kv__dept {
    width: 180px;
    padding: 5px 20px;
    border-width: 2px;
    border-radius: 10px;
    font-size: 18px;
  }

  .lp-rehab-kv__copy {
    font-size: 24px;
  }

  .lp-rehab-kv__visual {
    position: absolute;
    z-index: 1;
    /* 絶対配置の % は親の padding ボックス基準になるため、
       コンテンツ幅（100% - 左右 padding 80px）に対する比率で指定する */
    left: calc(40px + (100% - 80px) * 0.44125);
    /* カンプ基準では 102px 相当だが、実ヘッダーが 120px でカンプ（162px）より
       低いぶん見た目が下がるため、PO 目視で 6% に調整 */
    top: 6%;
    width: calc((100% - 80px) * 0.69125);
    /* SP の裁ち落とし用マージンを打ち消す */
    margin: 0;
    aspect-ratio: 1106 / 1181;
  }

  .lp-rehab-kv__ring {
    left: 11.39%;
    width: 88.61%;
    border-width: 8px;
  }

  .lp-rehab-kv__photo {
    left: 19.53%;
    top: 7.54%;
    width: 72.33%;
  }

  .lp-rehab-kv__illust--care {
    left: 0;
    top: 49.11%;
    width: 32.55%;  /* カンプ PC の実描画 360 / 1106 */
  }

  .lp-rehab-kv__illust--bars {
    left: 58.23%;
    top: 75.44%;
    width: 27.4%;
  }

  .lp-rehab-kv__actions {
    gap: 40px;
    position: relative;
    z-index: 2;
    align-items: flex-start;
  }

  .lp-rehab-kv__cta {
    width: 372px;
    padding: 12px 20px 12px 40px;
    font-size: 18px;
  }

  .lp-rehab-kv__cta-icon {
    width: 60px;
    height: 40px;
  }

  .lp-rehab-kv__cta-icon .lp-rehab-arrow {
    height: 18px;
  }

  .lp-rehab-kv__anchors {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .lp-rehab-kv__anchors a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rehab-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
  }

  .lp-rehab-kv__anchors a:hover,
  .lp-rehab-kv__anchors a:focus-visible {
    color: var(--rehab-navy);
    text-decoration: underline;
  }

  /* ---- S1-2 3 つの土台 ---- */
  .lp-rehab-basics__curve {
    /* カンプ 1920 で 364px。上限を付けると広い画面で曲線が平たくなるため
       画面幅に比例させてカンプと同じ曲率を保つ */
    height: 180px;
  }

  .lp-rehab-basics__body {
    padding: 20px 0 120px;
  }

  .lp-rehab-basics__head {

    margin-bottom: 80px;
  }

  .lp-rehab-basics__title {
    font-size: 56px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }

  .lp-rehab-basics__lead {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.1em;
  }

  .lp-rehab-basics__list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8.75%;
  }

  .lp-rehab-basics__item {
    gap: 30px;
    flex: 0 1 27.5%;
    width: auto;
  }

  .lp-rehab-basics__item:nth-child(2) {
    margin-left: 0;
    padding-top: 60px;
  }

  .lp-rehab-basics__item:nth-child(3) {
    padding-top: 120px;
  }

  .lp-rehab-basics__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .lp-rehab-basics__item-title {
    font-size: 28px;
  }

  .lp-rehab-basics__item-text {
    font-size: 18px;
  }



  /* ---- S2-1 比較カード ---- */
  .lp-rehab-pro__intro {
    padding: 120px 0 220px;
    margin-bottom: -160px;
  }

  .lp-rehab-pro__head {

    margin-bottom: 80px;
  }

  .lp-rehab-pro__label {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .lp-rehab-pro__title {
    font-size: 56px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }

  .lp-rehab-pro__lead {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.1em;
  }

  .lp-rehab-pro__cards {
    flex-direction: row;
    align-items: stretch;
    gap: 5%;
    margin-bottom: 80px;
  }

  .lp-rehab-pro__card {
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-pro__pair {
    width: 240px;
    margin-bottom: -32px;
  }

  .lp-rehab-pro__card-body {
    gap: 60px;
    flex: 1 1 auto;
    padding: 50px 40px;
    border-radius: 60px;
  }

  .lp-rehab-pro__card-title {
    font-size: 36px;
  }

  .lp-rehab-pro__specs {
    gap: 30px;
  }

  .lp-rehab-pro__chip {
    padding: 10px 20px;
    font-size: 18px;
    margin-bottom: 16px;
  }

  .lp-rehab-pro__value {
    font-size: 20px;
    line-height: 1.7;
  }

  .lp-rehab-pro__value-sub {
    display: inline;
    margin-left: 20px;
    font-size: 16px;
  }

  .lp-rehab-pro__bridge {
    font-size: 32px;
  }

  /* ---- S2-2 こんな場面で ---- */
  .lp-rehab-scene {
    padding: 120px 0;
    border-radius: 140px 140px 0 0;
  }

  .lp-rehab-scene::before {
    background-size: 80px 80px;
  }

  .lp-rehab-notch {
    width: 120px;
    height: 80px;
  }

  .lp-rehab-scene__cols {
    flex-direction: row;
    /* カンプは左右のカードが同じ高さ（1600 幅に 740 + 120 + 740）。列を伸ばして揃える */
    align-items: stretch;
    margin-bottom: 50px;
  }

  .lp-rehab-scene__card {
    flex: 1 1 auto;
  }

  .lp-rehab-scene__col {
    gap: 50px;
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-scene__icon {
    height: 80px;
  }

  .lp-rehab-scene__col-title {
    font-size: 36px;
  }

  .lp-rehab-scene__card {
    /* 2 枚を必ず同じ高さの行に割り付ける。本文の行数が左右で違っても
       2 枚目の見出しが同じ位置に来る（画面幅に依存しない） */
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 100px;
    padding: 24px 30px 40px;
    border-radius: 40px;
  }

  .lp-rehab-scene__item::before {
    top: -24px;
    right: -30px;
    left: -30px;
    height: 240px;
  }

  .lp-rehab-scene__situation {
    /* カンプは 1 行の見出しでも 2 行ぶんを確保して左右のカードを揃えている */
    min-height: 3.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
  }

  .lp-rehab-scene__caption {
    padding: 10px 20px;
    /* カンプ値は 32px だが 1500px 未満では 2 カラム幅に収まらないため、
       下の @media (min-width: 1500px) で切り替える */
    font-size: 24px;
    letter-spacing: 0.1em;
  }

  .lp-rehab-scene__desc {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
  }

  .lp-rehab-scene__team {
    flex-direction: row;
    align-items: center;
    gap: 3.75%;
    padding: 24px 30px 40px;
    border-width: 8px;
    border-radius: 40px;
  }

  .lp-rehab-scene__team-photo {
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-scene__team-body {
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-scene__team-title {
    font-size: 28px;
    color: var(--rehab-navy);
    margin-bottom: 20px;
  }

  .lp-rehab-scene__team-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
  }

  /* ---- S3-1 チェック診断 ---- */
  .lp-rehab-check {
    padding-top: 120px;
  }

  .lp-rehab-check__head {

    margin-bottom: 80px;
  }

  .lp-rehab-check__title {
    font-size: 56px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }

  .lp-rehab-check__title-sub {
    font-size: 0.722em;  /* カンプ 52 / 72 */
  }

  .lp-rehab-check__lead {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.1em;
  }

  .lp-rehab-check__panel {
    /* カンプは 80px だが、ピン（高さ 139px）がバロメーター枠の外へ
       89px はみ出してチェックリストに掛かるため広げる */
    gap: 110px;
    padding: 40px;
    border-radius: 60px;
  }

  .lp-rehab-check__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
  }

  .lp-rehab-check__item {
    gap: 16px;
    padding: 14px 24px 14px 16px;
    border-radius: 20px;
  }

  .lp-rehab-check__item.is-checked,
  .lp-rehab-check__item:has(input:checked) {
    border-radius: 16px;
  }

  .lp-rehab-check__box {
    width: 36px;
    height: 36px;
    border-width: 2px;
    border-radius: 10px;
  }

  .lp-rehab-check__text {
    font-size: 18px;
  }

  .lp-rehab-result {
    gap: 20px;
    margin-inline: auto;
    padding: 40px 60px;
    border-radius: 40px;
    max-width: 1200px;
    width: 80%;
  }

  .lp-rehab-result__rail {
    height: 20px;
  }

  .lp-rehab-result__pin {
    width: 60px;
  }

  .lp-rehab-result__bars {
    gap: 36px;
  }

  .lp-rehab-result__bar-group {
    gap: 20px;
  }

  .lp-rehab-result__bar-group span {
    height: 110px;
  }

  .lp-rehab-result__divider {
    width: 4px;
    height: 100px;
  }

  .lp-rehab-result__counts {
    gap: 60px;
    padding: 20px 40px;
    border-radius: 20px;
  }

  .lp-rehab-result__num {
    font-size: 90px;
    margin-bottom: 20px;
  }

  .lp-rehab-result__count-sub {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .lp-rehab-result__count-name {
    font-size: 28px;
  }

  .lp-rehab-lead-to {
    gap: 30px;
  }

  .lp-rehab-lead-to__card {
    max-width: 905px;
    width: 60%;
  }

  .lp-rehab-lead-to.is-both {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    width: 100%;
  }

  .lp-rehab-lead-to.is-both .lp-rehab-lead-to__card {
    flex: 0 1 560px;
    width: auto;
    min-width: 0;
  }

  .lp-rehab-lead-to.is-both .lp-rehab-lead-to__body {
    padding: 100px 24px 50px;
  }

  .lp-rehab-lead-to.is-both .lp-rehab-lead-to__pair {
    width: auto;
    height: 146px;
  }

  .lp-rehab-lead-to__pair {
    width: 180px;
    margin-bottom: -80px;
  }

  .lp-rehab-lead-to__body {
    gap: 40px;
    /* カンプは左右 200px だが、中間幅で内容が入らなくなるため 40px 固定にする
       （内容は中央寄せのため 1920px での見た目は変わらない） */
    padding: 100px 40px 40px;
    border-width: 10px;
  }

  .lp-rehab-lead-to__title {
    font-size: 32px;
  }

  .lp-rehab-lead-to__text {
    font-size: 18px;
  }

  .lp-rehab-lead-to__btn {
    width: 420px;
    padding: 16px 20px 16px 40px;
    font-size: 18px;
  }

  .lp-rehab-lead-to__btn-icon {
    width: 60px;
    height: 40px;
  }

  .lp-rehab-lead-to__btn-icon .lp-rehab-arrow { height: 18px; }

  .lp-rehab-lead-to__alt a {
    font-size: 18px;
  }

  .lp-rehab-lead-to__alt a > span:first-child {
    border-bottom-width: 3px;
  }

  .lp-rehab-lead-to__alt-icon {
    width: 50px;
    height: 33px;
  }

  .lp-rehab-lead-to__alt-icon .lp-rehab-arrow { height: 15px; }

  /* ---- 学科紹介への橋渡し ---- */
  .lp-rehab-bridge {
    min-height: 600px;   /* カンプ PC 1920x794 */
    padding-top: 0;
  }

  .lp-rehab-bridge__next-curve {
    height: 120px;
  }

  .lp-rehab-bridge__body {
    /* 要素ごとに間隔が違うので gap ではなく margin で取る（カンプ実測） */
    width: min(100%, 605px);
    margin-inline: auto;
  }

  .lp-rehab-bridge__photos {
    max-width: 1920px;
    top: 100px;
  }

  /* 実寸はカンプ PC 1920 幅の 613 / 615px。狭い幅では vw で比例縮小 */
  .lp-rehab-bridge__group--left  { left: min(140px, 7.29vw); top: 51px;  width: min(613px, 31.93vw); }
  .lp-rehab-bridge__group--right { right: min(72px, 3.75vw); top: -99px; width: min(615px, 32.03vw); }

  .lp-rehab-bridge__mark {
    width: 60px;
    margin-bottom: 40px;
  }

  .lp-rehab-bridge__balloon {
    /* 三角 24px + 三角下 10px */
    margin-bottom: 34px;
    padding: 20px 30px;
    font-size: 20px;
  }

  .lp-rehab-bridge__balloon::after {
    border-right-width: 18px;
    border-left-width: 18px;
    border-top-width: 24px;
  }

  .lp-rehab-bridge__title {
    margin-bottom: 20px;
    font-size: 36px;
    letter-spacing: 0.1em;
  }

  .lp-rehab-bridge__text {
    /* 行末にも字間が乗って 1 行目が 2.4px 溢れるぶんを相殺 */
    margin-right: -0.1em;
    margin-bottom: 80px;
    font-size: 18px;
    line-height: 2;
  }

  .lp-rehab-bridge__chevron {
    width: 136px;
  }

  /* ---- S3-2 学科紹介 ---- */
  .lp-rehab-depts {
    padding: 120px 0;
  }

  .lp-rehab-depts__title {
    font-size: 56px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }

  .lp-rehab-depts__lead {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.1em;
  }

  .lp-rehab-dept {
    max-width: calc(var(--rehab-container) + 80px);
    margin-bottom: 100px;
    padding-inline: 40px;
  }

  .lp-rehab-dept__tab {
    gap: 30px;
    margin-left: 70px;
    /* カンプは上 30px だけパディングがあり、文字はその内側（140px）の中央 */
    padding: 30px 50px 0 40px;
    border-radius: 50px 50px 0 0;
  }

  .lp-rehab-dept--ot .lp-rehab-dept__tab {
    margin-left: auto;
    margin-right: 70px;
  }

  .lp-rehab-dept--pt .lp-rehab-dept__tab {
    margin-left: 70px;
  }

  .lp-rehab-dept__tab-illust {
    width: 74px;
    margin-top: 0;
  }

  .lp-rehab-dept__tab-name {
    /* 行末にも字間が乗るぶんを相殺 */
    margin-right: -0.1em;
    font-size: 36px;
  }

  .lp-rehab-dept--ot .lp-rehab-dept__panel {
    padding: 60px 80px 60px 80px;
    border-radius: 0 80px 80px 0;
  }

  .lp-rehab-dept--pt .lp-rehab-dept__panel {
    padding: 60px 80px 60px 80px;
    border-radius: 80px 0 0 80px;
  }

  .lp-rehab-dept__inner {
    gap: 100px;
  }

  /* イントロ */
  .lp-rehab-dept__intro {
    flex-direction: row;
    align-items: center;
    gap: 5.2%;
  }

  .lp-rehab-dept__intro-body {
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-dept__intro-title {
    font-size: 40px;
  }

  .lp-rehab-dept__intro-text {
    font-size: 18px;
  }

  .lp-rehab-dept__intro-photo {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 730 / 480;
    border-radius: 40px;
  }

  /* 見出しグループ */
  .lp-rehab-dept__group-title {
    font-size: 32px;
  }

  .lp-rehab-dept__group-lead {
    font-size: 20px;
    line-height: 1.5;
  }

  /* 学びの特長 */
  .lp-rehab-feature {
    gap: 40px;
  }

  .lp-rehab-feature__item {
    width: 71.43%;
  }

  .lp-rehab-feature__item:nth-child(2) {
    margin-left: auto;
  }

  .lp-rehab-feature__photo {
    width: 54.55%;
    aspect-ratio: 600 / 315;
    margin-bottom: -60px;
  }

  .lp-rehab-feature__body {
    border-radius: 50px 0 0 0;
    margin-left: 21.82%;
    padding: 30px 40px;
  }

  .lp-rehab-feature__title {
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }

  .lp-rehab-feature__text {
    font-size: 18px;
    line-height: 1.7;
  }

  /* 授業内容 */
  .lp-rehab-class__item {
    flex-direction: row;
    align-items: center;
    gap: 2.34%;
    padding: 20px 40px 20px 20px;
    border-radius: 30px;
  }

  .lp-rehab-class__figure {
    flex: 0 0 400px;
    width: 400px;
  }

  .lp-rehab-class__photo {
    width: 100%;
    aspect-ratio: 400 / 210;
    border-radius: 20px;
  }

  .lp-rehab-class__body {
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-class__title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .lp-rehab-class__text {
    font-size: 18px;
    line-height: 1.7;
  }

  /* 学びの環境 */
  .lp-rehab-env {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.6%;
  }

  .lp-rehab-env__item {
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-rehab-env__title {
    font-size: 24px;
    line-height: 1.7;
  }

  .lp-rehab-env__text {
    font-size: 18px;
    line-height: 1.7;
  }

  /* ---- S4 どちらを目指す？ ---- */
  .lp-rehab-cta {
    padding-top: 120px;
  }

  .lp-rehab-cta__title {
    font-size: 56px;
    margin-bottom: 6px;
  }

  .lp-rehab-cta__lead {
    font-size: 20px;
  }

  .lp-rehab-cta__cards {
    flex-direction: row;
    gap: 5%;
    margin-bottom: 80px;
    padding-inline: 0;
  }

  .lp-rehab-cta__card {
    flex: 1 1 0;
    min-width: 0;
    /* ホバーは追従バナー（.fixed-bannar__item）と同じ: 0.3s で opacity .5（PC のみ）。
       対象は <a> 全体（イラスト・カード本体・矢印を含むクリック可能範囲すべて） */
    transition: .3s all;
  }

  .lp-rehab-cta__card:hover,
  .lp-rehab-cta__card:focus-visible {
    opacity: .5;
  }

  .lp-rehab-cta__pair {
    width: 180px;
    margin-bottom: -80px;
  }

  .lp-rehab-cta__card-body {
    /* 2 枚のカードの高さを揃える（カード自体は stretch で同高） */
    flex: 1 1 auto;
    padding: 100px 40px 40px;
    border-width: 10px;
    border-radius: 40px;
  }

  .lp-rehab-cta__card-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .lp-rehab-cta__card-text {
    font-size: 20px;
  }

  .lp-rehab-cta__card-icon {
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 40px;
  }

  .lp-rehab-cta__card-icon .lp-rehab-arrow { height: 16px; }

  .lp-rehab-oc {
    overflow: hidden;
    width: 75%;
    margin-inline: auto;
    padding: 60px 80px;
    border-radius: 60px 60px 0 0;
    /* ホバーは追従バナー（.fixed-bannar__item）と同じ: 0.3s で opacity .5（PC のみ） */
    transition: .3s all;
    /* パネル本体（角丸＋方眼）は CSS で描き、装飾 SVG は幅だけ追従させて
       下端に置く。1 枚に合体させたままだと縦に伸びて人物が歪むため */
    background-color: #FBDFDC;
    background-image:
      url(/assets/img/featured/bgu-rehab/oc-deco-pc.png),
      repeating-linear-gradient(to right,  rgba(255, 255, 255, .8) 0 1.2px, transparent 1.2px 30px),
      repeating-linear-gradient(to bottom, rgba(255, 255, 255, .8) 0 1.2px, transparent 1.2px 30px);
    background-position: bottom, 0 0, 0 0;
    background-size: 100% auto, auto, auto;
    background-repeat: no-repeat, repeat, repeat;
  }

  .lp-rehab-oc:hover,
  .lp-rehab-oc:focus-visible {
    opacity: .5;
  }

  .lp-rehab-oc__title > span {
    gap: 24px;
    font-size: 28px;
    line-height: 1.7;
      align-items: center;
  }

  .lp-rehab-oc__icon {
    width: 70px;
    height: 46px;
  }

  .lp-rehab-oc__icon .lp-rehab-arrow { height: 18px; }

  .lp-rehab-oc__text {
    font-size: 18px;
    line-height: 2;
  }

  .lp-rehab-kv {
    margin-bottom: -280px;
  }

  .lp-rehab-scene__figure img {
    margin-bottom: -30px;
  }

  .lp-rehab-check > .lp-rehab-inner {
    margin-bottom: 120px;
  }

  .lp-rehab-depts > .lp-rehab-inner {
    margin-bottom: 60px;
  }

  .lp-rehab-cta__head {
    margin-bottom: 80px;
  }

  .lp-rehab-scene__col-head {
    gap: 20px;
  }

  .lp-rehab-scene__item {
    gap: 20px;
  }

  .lp-rehab-dept__group {
    gap: 24px;
  }

  .lp-rehab-class {
    gap: 20px;
  }

  .lp-rehab-dept__group:last-child {
    gap: 40px;
  }

  .lp-rehab-env__label {
    font-size: 16px;
  }
}

/* =====================================================================
   左右ペアの折り返しタイミング合わせ
   文字数が 1 文字違うため自然折り返しだと片側だけ先に 2 行になる。
   長い方が折り返す幅で両方とも強制改行する
   ===================================================================== */
@media (min-width: 768px) and (max-width: 989.98px) {

  .lp-rehab-cta__card-text .lp-rehab-br-narrow {
    display: inline;
  }
}

@media (min-width: 768px) and (max-width: 799.98px) {

  .lp-rehab-result__count-sub .lp-rehab-br-narrow {
    display: inline;
  }
}

/* =====================================================================
   768〜1199px：カンプ幅より狭く、PC 値のままでは収まらない箇所
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1199.98px) {

  /* 本文が折り返して矢印ボタンに重なるため、ボタン分の余白を確保する
     （ボタンは bottom 30px・高さ 40px なので 70px + 余白 10px） */
  .lp-rehab-cta__card-body {
    padding-bottom: 80px;
  }
}

/* =====================================================================
   768〜899px：PC レイアウトのまま幅だけ足りないときの詰め
   ===================================================================== */
@media (min-width: 768px) and (max-width: 899.98px) {

  .lp-rehab-pro__card-body {
    padding-inline: 20px;
  }

  .lp-rehab-scene__cols {
    gap: 30px;
  }

  .lp-rehab-scene__card {
    gap: 0;
  }

  .lp-rehab-check__panel {
    padding-inline: 30px;
  }

  /* 2 カラムでは 1 行が収まらないので SP と同じ縦 1 列にする */
  .lp-rehab-check__list {
    grid-template-columns: 1fr;
  }

  /* 学科ブロックの横並びは幅が足りないので SP と同じ縦積みに戻す */
  .lp-rehab-dept__intro {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .lp-rehab-dept__intro-body,
  .lp-rehab-dept__intro-photo {
    flex: 0 0 auto;
  }

  .lp-rehab-class__item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .lp-rehab-class__figure {
    flex: 0 0 auto;
    width: 100%;
  }

  .lp-rehab-class__photo {
    width: 100%;
  }

  .lp-rehab-class__body {
    flex: 0 0 auto;
  }

  .lp-rehab-env {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .lp-rehab-env__item {
    flex: 0 0 auto;
  }

  /* 学びの特長も SP と同じ「全幅・左右交互なし」に戻す */
  .lp-rehab-feature__item {
    width: 100%;
  }

  .lp-rehab-feature__item:nth-child(2) {
    margin-left: 0;
  }

  .lp-rehab-feature__photo {
    width: 100%;
  }

  .lp-rehab-feature__body {
    margin-left: 24px;
  }

  .lp-rehab-cta__card-body {
    padding-inline: 20px;
  }

  /* gap だけ縮めても flex-basis 27.5% + space-between で端に寄るため、
     item を均等配分に変えてから gap を詰める */
  .lp-rehab-basics__list {
    justify-content: flex-start;
    gap: 20px;
  }

  .lp-rehab-basics__item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  /* OC バナーは全幅・左寄せ */
  .lp-rehab-oc {
    width: 100%;
    margin-inline: 0;
  }
}

/* =====================================================================
   1520px〜：
   ===================================================================== */
@media (min-width: 1520px) {

  .lp-rehab-kv__body {
    margin-bottom: 60px;
  }

  .lp-rehab-kv__sub {
    font-size: 40px;
  }

  .lp-rehab-kv__title img {
    height: 125px;
  }

  .lp-rehab-kv__depts {
    gap: 20px;
    margin-bottom: 60px;
  }

  .lp-rehab-kv__dept {
    width: 200px;
    padding: 5px 20px;
    border-radius: 10px;
    font-size: 24px;
  }

  .lp-rehab-kv__copy {
    font-size: 32px;
  }

    .lp-rehab-kv__cta {
    width: 432px;
    padding: 22px 20px 22px 40px;
    font-size: 24px;
  }


    .lp-rehab-check__panel {
    padding: 60px 80px;
  }


    .lp-rehab-result {
    border-radius: 60px;
    gap: 40px;
    width: 100%;
  }

  .lp-rehab-result__bar-group span {
    height: 180px;
  }

  .lp-rehab-result__pin {
    width: 98px;
  }


  .lp-rehab-lead-to__card {
    max-width: 905px;
    width: 100%;
  }

  .lp-rehab-oc__title > span {
    font-size: 40px;
  }
    .lp-rehab-oc__body {
    text-align: center;
  }

  .lp-rehab-bridge__photos {
    top: 30px;
  }

  .lp-rehab-bridge__next-curve {
    height: 318px;
  }

  .lp-rehab-bridge {
    min-height: 738px;  
  }

    .lp-rehab-scene__caption {
    font-size: 32px;
  }
}
