/* ============================================================
   #fp-hero default — FV (キャッチ + サブ + CTA + バッジ + 講師写真)
   モバイル: 縦積み (テキスト → CTA → バッジ → 写真)
   PC: 2 カラム (左テキスト / 右写真)、PC は余白を狭める
   ============================================================ */

#fp-hero {
  background: #fff;
  padding: 32px 0 0;
  overflow: hidden;
}
#fp-hero .fp-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === 見出し === */
#fp-hero .fp-hero__title {
  font-size: 32px;
  line-height: 1.35;
  color: var(--fp-brand);
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}
@media (max-width: 480px) {
  #fp-hero .fp-hero__title { font-size: 28px; line-height: 1.4; margin-bottom: 20px; }
}

/* === リード文 === */
#fp-hero .fp-hero__lead {
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-text);
  line-height: 1.7;
  margin: 0 0 20px;
}
#fp-hero .fp-hero__sub {
  font-size: 13px;
  color: var(--fp-text-muted);
  line-height: 1.85;
  margin: 0 0 28px;
}

/* === CTA エリア === */
#fp-hero .fp-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
#fp-hero .fp-hero__cta-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 60px;
  background: var(--fp-line-green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
}
#fp-hero .fp-hero__cta-line:hover {
  background: var(--fp-line-green-hover);
}
#fp-hero .fp-hero__cta-line:active { transform: scale(0.985); }
#fp-hero .fp-hero__cta-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
}

#fp-hero .fp-hero__cta-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 1.5px solid var(--fp-brand);
  color: var(--fp-brand);
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}
#fp-hero .fp-hero__cta-login:hover {
  background: var(--fp-brand);
  color: #fff;
}

/* === バッジ列 === */
#fp-hero .fp-hero__badges {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 16px;
  align-items: start;
}
#fp-hero .fp-hero__badges::before {
  content: '';
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  background: var(--fp-brand-line);
  align-self: stretch;
  margin: 8px 0;
}
#fp-hero .fp-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
#fp-hero .fp-hero__badge:nth-child(1) { grid-column: 1; }
#fp-hero .fp-hero__badge:nth-child(2) { grid-column: 3; }
#fp-hero .fp-hero__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fp-brand-pale);
  color: var(--fp-brand);
}
#fp-hero .fp-hero__badge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fp-text);
  margin: 4px 0 0;
}
#fp-hero .fp-hero__badge-text {
  font-size: 12px;
  color: var(--fp-text-muted);
  line-height: 1.6;
  margin: 0;
}
#fp-hero .fp-hero__badge-text strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--fp-brand);
  letter-spacing: 0.02em;
}

/* === 講師写真 === */
#fp-hero .fp-hero__visual {
  margin: 0;
  padding: 0;
}
#fp-hero .fp-hero__visual-frame {
  position: relative;
  margin: 0 -20px;
  background: #fff;
  aspect-ratio: 935 / 853;
  overflow: hidden;
}
@media (max-width: 768px) {
  #fp-hero .fp-hero__visual-frame { margin: 0 -16px; }
}
#fp-hero .fp-hero__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* デフォルト (>=768px): PC 画像を表示、モバイル画像は隠す */
#fp-hero .fp-hero__visual-img--mobile { display: none; }

/* スマホのみ: モバイル画像に切替、フレーム比率を画像 (529/563) に合わせる */
@media (max-width: 767px) {
  #fp-hero .fp-hero__visual-frame { aspect-ratio: 529 / 563; }
  #fp-hero .fp-hero__visual-img--mobile { display: block; }
  #fp-hero .fp-hero__visual-img--pc { display: none; }
}

/* === ヘルパ === */
.fp-only-mobile { display: inline; }
@media (min-width: 768px) {
  .fp-only-mobile { display: none; }
}

/* ============================================================
   PC レイアウト (>= 1024px)
   2 カラム化、余白は狭めに、写真は右、テキストは左
   ============================================================ */
@media (min-width: 1024px) {
  #fp-hero { padding: 24px 0 0; }
  #fp-hero .fp-hero__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    max-width: 1080px;
  }
  #fp-hero .fp-hero__text {
    flex: 1;
    padding: 24px 0 32px;
  }
  #fp-hero .fp-hero__title {
    font-size: 44px;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  #fp-hero .fp-hero__lead { font-size: 15px; margin-bottom: 16px; }
  #fp-hero .fp-hero__sub { font-size: 14px; margin-bottom: 24px; }

  #fp-hero .fp-hero__cta {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 28px;
  }
  #fp-hero .fp-hero__cta-line {
    flex: 1;
    height: 56px;
    font-size: 16px;
  }
  #fp-hero .fp-hero__cta-login {
    width: 200px;
    height: 56px;
    font-size: 15px;
  }

  #fp-hero .fp-hero__badges { margin-bottom: 0; }

  #fp-hero .fp-hero__visual {
    flex: 1;
    align-self: center;
  }
  #fp-hero .fp-hero__visual-frame {
    margin: 0;
    border-radius: 0;
  }
}

/* タブレット (768〜1023) は中間サイズ */
@media (min-width: 768px) and (max-width: 1023px) {
  #fp-hero .fp-hero__title { font-size: 38px; }
  #fp-hero .fp-hero__cta { flex-direction: row; gap: 12px; }
  #fp-hero .fp-hero__cta-line { flex: 1; }
  #fp-hero .fp-hero__cta-login { width: 180px; }
}
