/* ==========================================================================
   coaching.css — コーチング事業ページ固有スタイル
   株式会社Session Webサイト
   ========================================================================== */

/* ==========================================================================
   ページヒーロー（コーチングページ固有）
   ========================================================================== */

/* ヒーロー背景画像・全画面表示 */
.coaching-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url('../images/coaching-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-height-sp) 0 var(--header-height-sp);
}

@media (min-width: 1024px) {
  .coaching-hero {
    padding: var(--header-height) 0 var(--header-height);
  }
}

.coaching-hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ==========================================================================
   セクション共通パーツ（コーチングページ内）
   ========================================================================== */

.co-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.co-section-title {
  font-family: var(--font-accent);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* イントロタイトル：前半（大）・後半（小）の2段サイズ */
.co-title-main {
  display: block;
  font-size: var(--fs-xl); /* 24px：SP 13文字が1行に収まるサイズ */
}

.co-title-sub {
  display: block;
  font-size: var(--fs-md); /* 18px：本文(16px)より大きく・前半(24px)より小さく */
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.co-section-lead {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.co-section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ==========================================================================
   コーチングイントロセクション
   ========================================================================== */

.coaching-intro {
  padding: var(--section-padding-sp);
  background-color: var(--color-bg);
}

.coaching-intro-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.coaching-intro-text {
  max-width: 560px;
}

.co-lead-text {
  font-family: var(--font-accent);
  font-size: var(--fs-base); /* カードテキストより少し大きく */
  line-height: 2.1;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-top: 20px;
}

/* デコレーション（右側装飾 - PC用）：グラデーションリング */
.coaching-intro-deco {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  flex-shrink: 0;
  display: none; /* PC で表示 */
  /* グラデーションリング（塗りつぶしなし・線のみ） */
  border: 22px solid transparent;
  background:
    linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
  /* 回転（10秒で1周）＋ふわっとopacity変化（4秒） */
  animation:
    co-deco-rotate 10s linear infinite,
    co-deco-pulse  4s  ease-in-out infinite;
}

/* 低速回転 */
@keyframes co-deco-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 控えめなふわっと感（opacity変化） */
@keyframes co-deco-pulse {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0.5; }
}

/* ==========================================================================
   コーチング3種カード
   ========================================================================== */

.coaching-services {
  padding: var(--section-padding-sp);
  background-color: var(--color-bg-dark);
}

.coaching-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.coaching-card {
  background-color: var(--color-white);
  border-left: 3px solid transparent;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.coaching-card:hover {
  border-left-color: var(--color-accent);
  box-shadow: 0 6px 32px rgba(26, 39, 68, 0.08);
  transform: translateY(-2px);
}

.coaching-card-inner {
  padding: 40px 32px;
}

/* カード番号 */
.coaching-card-num {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.coaching-card-title {
  font-family: var(--font-accent);
  font-size: var(--fs-lg); /* SP: 20px（--fs-xl 24pxから縮小・長いタイトルを1行に収める） */
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* 対象者タグ */
.coaching-card-target {
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(192, 80, 45, 0.15);
}

.coaching-card-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   越境体験「Revive」
   ========================================================================== */

.coaching-revive {
  background-color: var(--color-secondary);
}

/* SP: 縦積み（ビジュアル上・テキスト下） */
.coaching-revive-inner {
  display: flex;
  flex-direction: column;
}

/* ビジュアル側（Reviveイメージ画像） */
.coaching-revive-visual {
  width: 100%;
  min-height: 280px;
  flex-shrink: 0;
  background-image: url('../images/revive.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* テキスト側 */
.coaching-revive-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.coaching-revive-content {
  width: 100%;
  max-width: 480px;
}

.coaching-revive-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.coaching-revive-title {
  font-family: var(--font-accent);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 12px;
}

.coaching-revive-tagline {
  font-family: var(--font-accent);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.coaching-revive-text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* 注記 */
.coaching-revive-note {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ネイビー背景用アウトラインボタン */
.btn-outline-light-co {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base);
  text-align: center;
}

.btn-outline-light-co:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
}

/* ==========================================================================
   FIRST COACHセクション
   ========================================================================== */

.coaching-firstcoach {
  padding: var(--section-padding-sp);
  background-color: var(--color-bg);
}

.firstcoach-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.firstcoach-text {
  flex: 1;
}

/* FIRST COACHブランド名強調 */
.firstcoach-brand {
  display: block;
  font-size: var(--fs-xl);
  color: var(--color-primary);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

.firstcoach-btn {
  margin-top: 32px;
}

/* 3つの特徴リスト */
.firstcoach-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}

.firstcoach-feature-item {
  display: block;
  padding: 28px 24px;
  background-color: var(--color-bg-dark);
  border-left: 2px solid var(--color-accent);
}

/* ◎ とタイトルを同行に（inline表示） */
.firstcoach-feature-icon {
  display: inline;
  font-size: var(--fs-md);
  color: var(--color-accent);
  margin-right: 6px;
}

.firstcoach-feature-title {
  display: inline;
  font-family: var(--font-accent);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.06em;
}

.firstcoach-feature-text {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-top: 10px;
}

/* ==========================================================================
   フェードインアニメーション（IntersectionObserver制御）
   ========================================================================== */

.js-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* コーチングカード：staggered delay */
.coaching-card:nth-child(1) { transition-delay: 0s; }
.coaching-card:nth-child(2) { transition-delay: 0.15s; }
.coaching-card:nth-child(3) { transition-delay: 0.3s; }

/* Revive：ビジュアルとテキストの staggered delay */
.coaching-revive-visual { transition-delay: 0s; }
.coaching-revive-body   { transition-delay: 0.2s; }

/* ==========================================================================
   メディアクエリ（モバイルファースト）
   ========================================================================== */

/* Tablet: 768px以上 */
@media (min-width: 768px) {
  .co-section-title {
    font-size: var(--fs-3xl);
  }

  .coaching-intro-inner {
    flex-direction: row;
    gap: 64px;
    align-items: center;
    justify-content: space-between; /* テキスト左・デコ右に配置 */
  }

  /* テキスト列を広げてh2が「用いて、」で折り返せる幅を確保 */
  .coaching-intro-text {
    flex: 1;
    max-width: none; /* 基本スタイルの560px制限を解除 */
  }

  /* イントロh2：タブレット以上でも32pxに抑えて1行に収める */
  .coaching-intro .co-section-title {
    font-size: var(--fs-2xl);
  }

  .coaching-intro-deco {
    display: block;
    width: 280px;
    height: 280px;
    flex-shrink: 0; /* デコ円はサイズ固定のまま右端へ */
  }

  .coaching-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* タブレット以上: カードタイトルを小さくして1行に収める */
  .coaching-card-title {
    font-size: var(--fs-md);
  }

  .coaching-revive-visual {
    min-height: 380px;
  }

  .firstcoach-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  .firstcoach-features {
    gap: 20px;
  }
}

/* PC: 1024px以上 */
@media (min-width: 1024px) {
  .coaching-intro {
    padding: var(--section-padding);
  }

  .coaching-services {
    padding: var(--section-padding);
  }

  .co-section-header {
    margin-bottom: 72px;
  }

  /* Revive：PC横並び（ビジュアル左・テキスト右） */
  .coaching-revive-inner {
    flex-direction: row;
    min-height: 520px;
  }

  .coaching-revive-visual,
  .coaching-revive-body {
    flex: 1 1 50%;
    width: 50%;
    min-height: inherit;
  }

  .coaching-revive-body {
    padding: 80px 64px;
    justify-content: flex-start;
  }

  .coaching-revive-title {
    font-size: var(--fs-3xl);
  }

  .coaching-firstcoach {
    padding: var(--section-padding);
  }
}
