/* =====================================================
   TOP ページ固有スタイル
   読み込み条件: is_front_page() (functions.php)
===================================================== */

/* -----------------------------------------------------
   HERO
----------------------------------------------------- */
.home-hero {
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.home-hero-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.home-hero-copy {
  min-width: 0;
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
  padding-right: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  color: #000;
  margin-bottom: 24px;
}

.home-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 32px;
}

.home-hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  margin-bottom: 40px;
}

.home-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.home-hero-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.home-hero-link {
  font-size: 14px;
  font-weight: 400;
  color: #777;
  text-decoration: none;
}

.home-hero-link:hover {
  opacity: 0.7;
}

.home-hero-visual {
  align-self: stretch;
  overflow: hidden;
  min-height: 560px;
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* -----------------------------------------------------
   ABOUT (左: コピー / 右: 2x2 カード)
----------------------------------------------------- */
.home-about {
  padding: 96px 0;
  background: #fff;
}

.home-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-about-text {
  padding-left: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
  padding-right: 56px;
}

.home-about-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  color: #000;
  margin-bottom: 20px;
}

.home-about-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  margin: 0 0 28px;
}

.home-about-lead {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #000;
  margin: 0;
}

.home-about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-right: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
}

.home-about-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 32px 24px;
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.home-about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 18px solid var(--color-primary);
  border-right: 18px solid transparent;
}

.home-about-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
}

.home-about-card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
}

/* -----------------------------------------------------
   PROBLEM (入試種別別の2カラム悩み + ビジュアル）
----------------------------------------------------- */
.home-problem {
  background: #fff;
}

.home-problem-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1320px;
  margin: 0 auto;
}

.home-problem-col {
  padding: 0;
}

.home-problem-col-title {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  color: #000;
  margin: 0 0 24px;
  padding: 0 0 12px;
  text-align: left;
  position: relative;
}

.home-problem-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  background: #000;
}

.home-problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-problem-card {
  background: #F7F7F7;
  border-radius: 2px;
  padding: 32px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 205px;
}

.home-problem-card-icon {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}

.home-problem-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-problem-card-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  text-align: center;
  margin: 0;
}

/* -----------------------------------------------------
   FEATURES (4 cards on teal tint)
----------------------------------------------------- */
.home-features {
  background: #E6F3F5;
  padding: 80px 0;
}

.home-features .section-label,
.home-features .section-title,
.home-features .section-lead {
  color: var(--color-primary);
}

.home-features-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1320px;
  margin: 48px auto 0;
}

.home-feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 0 2px 2px 2px;
  padding: 44px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 22px solid var(--color-primary);
  border-right: 22px solid transparent;
}

.home-feature-num {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
}

.home-feature-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0;
}

.home-feature-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

/* -----------------------------------------------------
   3 STEP (学び方の3ステップ)
----------------------------------------------------- */
.home-threestep {
  background: #fff;
  --step-gap: clamp(32px, 6vw, 120px);
  --step-inline: clamp(24px, 8%, 120px);
}

.home-threestep-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-gap);
  margin: 48px 0 32px;
  padding: 0 var(--step-inline);
  align-items: start;
}

.home-threestep-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 72px;
}

.home-threestep-col:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 90px;
  width: calc(100% + var(--step-gap));
  height: 2px;
  background: var(--color-primary);
  z-index: 0;
}

.home-threestep-node {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  background: var(--color-primary-light);
  box-sizing: border-box;
  z-index: 1;
}

.home-threestep-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
}

.home-threestep-stem {
  position: relative;
  width: 1px;
  height: 48px;
  background: var(--color-primary);
  margin-top: 4px;
  margin-left: 17.5px;
}

.home-threestep-stem::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 1px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.home-threestep-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-gap);
  margin: 0;
  padding: 0 var(--step-inline);
}

.home-step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-step-illust {
  margin-bottom: 16px;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
}

.home-step-illust img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}

.home-step-card .step-num {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  margin: 0;
}

.home-step-card .step-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  margin: 0 0 4px;
}

.home-step-card .step-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

.step-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.step-detail-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.step-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-detail-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  padding-left: 1em;
  text-indent: -1em;
}

.step-detail-list li::before {
  content: '・';
  color: #333;
}

.step-detail-list--ordered li::before { content: '①'; }
.step-detail-list--ordered li:nth-child(2)::before { content: '②'; }
.step-detail-list--ordered li:nth-child(3)::before { content: '③'; }
.step-detail-list--ordered li:nth-child(4)::before { content: '④'; }
.step-detail-list--ordered li:nth-child(5)::before { content: '⑤'; }

/* -----------------------------------------------------
   DIFFERENCE (比較表)
----------------------------------------------------- */
.home-difference {
  background: #fff;
}

.home-compare-wrap {
  max-width: 1320px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.home-compare th,
.home-compare td {
  padding: 20px 16px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #EAEAEA;
}

.home-compare thead th {
  border-bottom: none;
  padding-bottom: 16px;
}

/* 列間の縦線（大手 / 中堅 / 汎用 の3列にのみ。bridge+ 列と左上空セルは除外） */
.home-compare th:nth-child(n+3):not(:last-child),
.home-compare td:nth-child(n+3):not(:last-child) {
  border-right: 1px solid #EAEAEA;
}

/* ヘッダー直下の横線（bridge+ と左上空セルは除外） */
.home-compare thead th:not(.row-label):not(.col-ours) {
  border-bottom: 1px solid #EAEAEA;
}

/* 外枠 上（bridge+ と左上空セルは除外） */
.home-compare thead th:not(.row-label):not(.col-ours) {
  border-top: 1px solid #EAEAEA;
}

/* 外枠 右（最終列） */
.home-compare th:last-child,
.home-compare td:last-child {
  border-right: 1px solid #EAEAEA;
}

/* 外枠 左（row-label 列の body セル。左上の空セルは除外） */
.home-compare tbody th.row-label {
  border-left: 1px solid #EAEAEA;
}

/* 外枠 下（最終行。bridge+ は独自のティール枠のため除外） */
.home-compare tbody tr:last-child th,
.home-compare tbody tr:last-child td:not(.col-ours) {
  border-bottom: 1px solid #EAEAEA;
}

/* 左端の行ラベル列 */
.home-compare th.row-label {
  text-align: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  width: 180px;
}

.home-compare thead th.row-label {
  background: #fff;
  border-bottom: none;
}

/* ヘッダー行（1行目） — 水色背景 × 黒文字 */
.home-compare thead th {
  color: #333;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  background: var(--color-primary-light);
}

.home-compare thead th.row-label {
  background: #fff;
}

/* bridge+ 列 — 3px 枠線（背景はヘッダのみ水色、body は白） */
.home-compare .col-ours {
  border-left: 3px solid var(--color-primary);
  border-right: 3px solid var(--color-primary);
}

.home-compare tbody td.col-ours {
  background: #fff;
}

.home-compare thead th.col-ours {
  background: var(--color-primary);
  border-top: 3px solid var(--color-primary);
  border-bottom: none;
  padding-top: 28px;
  padding-bottom: 20px;
}

.home-compare tbody tr:last-child td.col-ours {
  border-bottom: 3px solid var(--color-primary);
}

/* bridge+ ロゴ (PNG を mask-image で単色化) */
.brand-logo {
  display: inline-block;
  width: 140px;
  height: 51px;
  background-color: #fff;
  -webkit-mask-image: url('../../images/common/logo-bridgeplus.png');
  mask-image: url('../../images/common/logo-bridgeplus.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ◎ (bridge+) — 大きく、プライマリカラー */
.home-compare .mark-circle-double {
  display: block;
  color: var(--color-primary);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

/* ○/△/× (他社) — 小さめグレー */
.home-compare .mark-circle,
.home-compare .mark-triangle,
.home-compare .mark-cross {
  display: block;
  color: #999;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

/* bridge+ のノート文 — プライマリカラー */
.home-compare .col-ours .note {
  display: block;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* 他社のノート文 — 薄いグレー */
.home-compare .note {
  display: block;
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

/* 月額料金 — bridge+ 強調、他社はグレー */
.home-compare .price-highlight {
  display: block;
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-en);
  line-height: 1;
}

.home-compare .price-normal {
  display: block;
  color: #999;
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-en);
  line-height: 1;
}

.home-compare-scroll-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* -----------------------------------------------------
   LESSON
----------------------------------------------------- */
.home-lesson-block {
  margin-bottom: 64px;
}

.home-lesson-block:last-child {
  margin-bottom: 0;
}

.home-lesson-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.home-lesson-heading .lesson-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  color: #000;
  letter-spacing: 0.05em;
}

.home-lesson-heading h3 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  margin: 0;
}

.home-lesson-block .lesson-grid {
  display: flex;
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto 32px;
  padding: 12px 4px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #555 #D9D9D9;
}

.home-lesson-block .lesson-grid > .lesson-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.home-lesson-block .lesson-grid::-webkit-scrollbar {
  height: 6px;
}

.home-lesson-block .lesson-grid::-webkit-scrollbar-track {
  background: #D9D9D9;
  border-radius: 3px;
}

.home-lesson-block .lesson-grid::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.home-lesson-more {
  text-align: center;
  margin-top: 32px;
}

/* -----------------------------------------------------
   PRICE (5プラン比較テーブル)
----------------------------------------------------- */
.home-price {
  background: #fff;
}

.home-price-table-wrap {
  max-width: 1320px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-price-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #EAEAEA;
}

.home-price-table th,
.home-price-table td {
  padding: 20px 12px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #EAEAEA;
  font-size: 14px;
  color: #333;
}

.home-price-table tbody tr:last-child th,
.home-price-table tbody tr:last-child td {
  border-bottom: none;
}

/* ヘッダー行（列名） — 水色背景 × 黒文字 */
.home-price-table thead th {
  background: var(--color-primary-light);
  font-weight: 400;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
  padding: 24px 10px;
  border-bottom: none;
}

.home-price-table thead th:first-child {
  position: relative;
  background: #fff;
}

/* 左上角の外枠を白で隠す */
.home-price-table thead th:first-child::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: 0;
  bottom: 0;
  background: #fff;
  pointer-events: none;
}

/* 行ラベル列 — 水色背景 × プライマリ文字 */
.home-price-table tbody th.row-label {
  text-align: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 400;
  font-size: 16px;
  width: 200px;
  line-height: 1.5;
}

/* 強調列（is-featured） — プライマリ3pxボーダーで囲い */
.home-price-table .is-featured {
  border-left: 3px solid var(--color-primary);
  border-right: 3px solid var(--color-primary);
  background: #fff;
}

/* 隣接する強調列の境界は1本分だけに（重なり分をキャンセル） */
.home-price-table .is-featured + .is-featured {
  border-left: none;
}

.home-price-table thead th.is-featured {
  background: var(--color-primary);
  color: #fff;
  border-top: 3px solid var(--color-primary);
}

.home-price-table tbody tr:last-child td.is-featured {
  border-bottom: 3px solid var(--color-primary);
}

/* ✓ マーク（チェック） */
.home-price-table .price-check {
  color: #333;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

/* 月額料金 行 */
.home-price-table .price-row-amount th,
.home-price-table .price-row-amount td {
  padding: 28px 12px;
}

.home-price-table .price-main {
  display: inline-block;
  font-size: 30px;
  font-weight: 900;
  color: #999;
  font-family: var(--font-en);
  line-height: 1;
}

.home-price-table .price-row-amount .is-featured .price-main {
  color: var(--color-primary);
}

.home-price-table .price-main--sm {
  font-size: 24px;
  color: #333;
}

.home-price-table .price-unit {
  font-size: 12px;
  color: #999;
  margin-left: 2px;
}

.home-price-table .price-row-amount .is-featured .price-unit {
  color: var(--color-primary);
}

.home-price-table .price-annual {
  display: block;
  font-size: 14px;
  color: #999;
  margin-top: 8px;
  font-weight: 400;
}

.home-price-table .price-row-amount .is-featured .price-annual {
  color: var(--color-primary);
}

/* FINAL CTA は style.css の共通エリアに移動済み（全ページ共通の parts/final-cta.php で利用） */

/* =====================================================
   TABLET (769px ～ 1024px) - TOP
===================================================== */
@media (max-width: 1024px) {
  .home-hero-title {
    font-size: 34px;
  }

  .home-about-inner {
    grid-template-columns: 1fr;
  }

  .home-about-text {
    padding-right: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
    padding-bottom: 40px;
  }

  .home-about-cards {
    padding-left: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
  }

  .home-about-title {
    font-size: 26px;
  }

  .home-features-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .home-threestep {
    --step-gap: clamp(24px, 4vw, 48px);
    --step-inline: 4%;
  }

  .home-final-cta-title {
    font-size: 24px;
  }
}

/* =====================================================
   SP (≤ 768px) - TOP
===================================================== */
@media (max-width: 768px) {
  .home-hero {
    padding: 0;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    order: 2;
    padding: 32px 16px 40px;
  }

  .home-hero-visual {
    order: 1;
    min-height: 0;
    aspect-ratio: 440 / 297;
    width: 100%;
  }

  .home-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-hero-title {
    font-size: 26px;
  }

  .home-hero-lead {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .home-hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .home-hero-actions .btn {
    width: auto;
    max-width: 260px;
    padding: 14px 24px;
  }

  /* About */
  .home-about {
    padding: 56px 0;
  }

  .home-about-inner {
    grid-template-columns: 1fr;
  }

  .home-about-text {
    padding: 0 16px 28px;
  }

  .home-about-cards {
    padding: 0 16px;
    gap: 12px;
  }

  .home-about-title {
    font-size: 22px;
  }

  .home-about-card {
    padding: 20px 16px;
    min-height: 110px;
  }

  .home-about-card-title {
    font-size: 18px;
  }

  .home-about-card-desc {
    font-size: 13px;
  }

  /* Hero */
  .home-hero-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .home-hero-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 16px;
  }

  .home-hero-link {
    font-size: 12px;
    white-space: nowrap;
  }

  /* Problem */
  .home-problem-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-problem-col {
    padding: 0;
  }

  .home-problem-col-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .home-problem-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .home-problem-card {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 20px 8px 16px;
    min-height: 140px;
  }

  .home-problem-card-icon {
    width: 40px;
    height: 40px;
  }

  .home-problem-card-text {
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
  }

  /* Difference: 横スクロール維持 */
  .home-compare th,
  .home-compare td {
    padding: 12px 8px;
  }

  .home-compare th.row-label {
    width: 110px;
    font-size: 12px;
  }

  .home-compare thead th {
    font-size: 12px;
  }

  .brand-logo {
    font-size: 24px;
  }

  .home-compare .mark-circle-double {
    font-size: 28px;
  }

  .home-compare .mark-circle,
  .home-compare .mark-triangle,
  .home-compare .mark-cross {
    font-size: 22px;
  }

  .home-compare .col-ours .note {
    font-size: 12px;
  }

  .home-compare .note {
    font-size: 10px;
  }

  .home-compare .price-highlight {
    font-size: 20px;
  }

  .home-compare .price-normal {
    font-size: 14px;
  }

  .home-compare-scroll-hint {
    display: block;
  }

  /* Features */
  .home-features {
    padding: 56px 0;
  }

  .home-features-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .home-feature-card {
    padding: 24px 12px 16px;
  }

  /* 3 STEP */
  .home-threestep {
    padding: 56px 0;
  }

  .home-threestep-timeline {
    display: none;
  }

  .home-threestep-list {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    position: relative;
  }

  .home-threestep-list::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 13px;
    bottom: 13px;
    width: 1px;
    background: var(--color-primary);
  }

  .home-step-card {
    position: relative;
    padding: 0 0 48px 72px;
  }

  .home-step-card:last-child {
    padding-bottom: 0;
  }

  .home-step-card::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: var(--color-primary-light);
    box-sizing: border-box;
    z-index: 1;
  }

  .home-step-card::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    z-index: 2;
  }

  .home-step-illust {
    min-height: auto;
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .home-step-illust img {
    max-width: 100px;
    max-height: 90px;
    width: auto;
    height: auto;
  }

  .home-feature-card {
    gap: 8px;
    padding: 36px 14px 16px;
  }

  .home-feature-card::before {
    border-top-width: 18px;
    border-right-width: 18px;
  }

  .home-feature-num {
    font-size: 12px;
  }

  .home-feature-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .home-feature-desc {
    font-size: 11px;
    line-height: 1.6;
  }

  /* Lesson */
  .home-lesson-heading {
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .home-lesson-heading h3 {
    font-size: 20px;
  }

  .home-lesson-block .lesson-grid {
    padding: 12px 16px 20px;
    gap: 16px;
  }

  .home-lesson-block .lesson-grid > .lesson-card {
    flex: 0 0 260px;
  }

  /* Price: 横スクロール維持 */
  .home-price-table th,
  .home-price-table td {
    padding: 10px 6px;
    font-size: 11px;
  }

  .home-price-table tbody th.row-label {
    width: 140px;
    font-size: 13px;
  }

  .home-price-table thead th {
    font-size: 13px;
    padding: 16px 8px;
  }

  .home-price-table .price-main {
    font-size: 22px;
  }

  .home-price-table .price-main--sm {
    font-size: 18px;
  }

  .home-price-table .price-check {
    font-size: 24px;
  }

  .home-price-table .price-annual {
    font-size: 12px;
  }

  /* Final CTA */
  .home-final-cta {
    padding: 56px 0;
  }

  .home-final-cta-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .home-final-cta-note {
    font-size: 12px;
    margin-bottom: 20px;
  }
}

/* =====================================================
   SMALL SP (≤ 375px) - TOP
===================================================== */
@media (max-width: 375px) {
  .home-hero-title {
    font-size: 22px;
  }

  .home-problem-card {
    padding: 16px 6px 12px;
    min-height: 130px;
  }

  .home-problem-card-icon {
    width: 36px;
    height: 36px;
  }

  .home-problem-card-text {
    font-size: 11px;
  }

  .home-features-cards {
    gap: 10px;
  }

  .home-feature-card {
    padding: 20px 10px 14px;
  }
}
