/* ========================================
   page-flow.css — 相談の流れページ
   ======================================== */

/* ========================================
   FV背景写真
   ======================================== */
.page-fv--flow::after {
  background-image: url('/images/fv-flow.png');
  opacity: 0.10;
}

/* ========================================
   セクション1：ステップフロー
   ======================================== */
.flow-steps {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.flow-steps__wm {
  position: absolute;
  top: 40px;
  right: -20px;
  font-family: var(--font-english);
  font-size: 120px;
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.04;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
.flow-steps__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* --- カード共通 --- */
.flow-steps__card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(30,61,107,0.06);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(30,61,107,0.10);
  padding: 36px 40px 32px;
}
/* カード間の下向き三角矢印（最後のカード以外） */
.flow-steps__inner > .flow-steps__card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--color-primary);
  opacity: 0.35;
  z-index: 3;
}
/* STEP1→STEP2間（フィーチャー前）の矢印は余白が広いので位置調整 */
.flow-steps__inner > .flow-steps__card:first-child::after {
  bottom: -30px;
}

/* --- カードヘッド（番号 + タイトル） --- */
.flow-steps__card-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.flow-steps__num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1E3D6B 0%, #2B6CA8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,61,107,0.2);
  flex-shrink: 0;
}
.flow-steps__card-titles {
  padding-top: 4px;
}
.flow-steps__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: var(--line-height-heading);
  margin-bottom: 6px;
}
.flow-steps__title-note {
  font-size: 15px;
  font-weight: 500;
  color: #555;
}
.flow-steps__subtitle {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* --- カードイラスト --- */
.flow-steps__illust {
  margin-left: auto;
  flex-shrink: 0;
}
.flow-steps__illust img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.flow-steps__illust--featured img {
  width: 84px;
  height: 84px;
}

/* --- カードボディ --- */
.flow-steps__card-body {
  padding-left: 76px;
}
.flow-steps__text {
  margin-bottom: 20px;
}
.flow-steps__text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}
.flow-steps__text p + p {
  margin-top: 14px;
}

/* --- Pill バッジ --- */
.flow-steps__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flow-steps__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  background: rgba(30,61,107,0.06);
  white-space: nowrap;
}
.flow-steps__pill--accent {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

/* --- オンライン補足（STEP1内） --- */
.flow-steps__online-note {
  position: relative;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  padding: 12px 16px;
  background: rgba(30,61,107,0.03);
  border-radius: var(--radius);
}

/* ========================================
   STEP 2 フィーチャーカード
   ======================================== */
.flow-steps__card--featured {
  background: var(--color-secondary);
  box-shadow: 0 8px 32px rgba(30,61,107,0.14);
  padding-top: 52px;
}
.flow-steps__featured-badge {
  position: absolute;
  top: -14px;
  left: 40px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 24px;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(184,150,62,0.3);
}
.flow-steps__num--featured {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

/* --- 初回面談のお渡しもの --- */
.flow-steps__deliverables {
  position: relative;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 20px 24px 20px 32px;
  margin-bottom: 20px;
}
.flow-steps__deliverables::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius) 0 0 0;
  pointer-events: none;
}
.flow-steps__deliverables-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.flow-steps__deliverables-list {
  padding-left: 1.2em;
}
.flow-steps__deliverables-list li {
  list-style: disc;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}
.flow-steps__deliverables-list li + li {
  margin-top: 4px;
}

/* ========================================
   STEP 3 安心ボックス
   ======================================== */
.flow-steps__reassure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(30,61,107,0.03);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.flow-steps__reassure-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.flow-steps__reassure-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-primary);
}

/* ========================================
   STEP 4 クロージングメッセージ
   ======================================== */
.flow-steps__closing {
  position: relative;
  margin-top: 24px;
  padding-top: 24px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.flow-steps__closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

/* ========================================
   RESPONSIVE — Tablet (1024px)
   ======================================== */
@media (max-width: 1280px) {
  .flow-steps { padding: 64px 0 80px; }
  .flow-steps__inner { gap: 40px; }
  .flow-steps__card {
    padding: 32px 32px 28px;
    box-shadow: 0 4px 20px rgba(30,61,107,0.08);
  }
  .flow-steps__card--featured {
    padding-top: 48px;
    box-shadow: 0 6px 28px rgba(30,61,107,0.12);
  }
  .flow-steps__title { font-size: 22px; }
  .flow-steps__card-body { padding-left: 76px; }
  .flow-steps__wm { font-size: 80px; }
  .flow-steps__illust img { width: 60px; height: 60px; }
  .flow-steps__illust--featured img { width: 72px; height: 72px; }

  /* 三角矢印 Tablet — gap:40pxに合わせ位置調整 */
  .flow-steps__inner > .flow-steps__card:not(:last-child)::after {
    bottom: -25px;
  }
  .flow-steps__inner > .flow-steps__card:first-child::after {
    bottom: -25px;
  }
}

/* ========================================
   RESPONSIVE — SP (768px)
   ======================================== */
@media (max-width: 768px) {
  .flow-steps { padding: 40px 0 56px; }
  .flow-steps__inner { gap: 32px; }
  .flow-steps__wm { font-size: 56px; top: 16px; right: -10px; }

  /* カード SP */
  .flow-steps__card {
    padding: 24px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 16px rgba(30,61,107,0.07);
  }
  .flow-steps__card--featured {
    padding-top: 44px;
    box-shadow: 0 4px 20px rgba(30,61,107,0.10);
  }
  .flow-steps__featured-badge {
    top: -12px;
    left: 20px;
    font-size: 13px;
    padding: 6px 18px;
  }

  /* カード間三角矢印 SP — gap:32pxの中央に配置 */
  .flow-steps__inner > .flow-steps__card:not(:last-child)::after {
    bottom: -20px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-top-width: 7px;
  }
  .flow-steps__inner > .flow-steps__card:first-child::after {
    bottom: -20px;
  }

  /* イラスト SP — 透かしとして右側に大きく表示 */
  .flow-steps__illust {
    position: absolute;
    top: 12px;
    right: 4px;
    opacity: 0.08;
    pointer-events: none;
  }
  .flow-steps__illust img { width: 160px; height: 160px; }
  .flow-steps__illust--featured { top: 40px; }
  .flow-steps__illust--featured img { width: 180px; height: 180px; }

  /* カードヘッド SP */
  .flow-steps__card-head {
    gap: 14px;
    margin-bottom: 16px;
  }
  .flow-steps__num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .flow-steps__num--featured {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .flow-steps__card-titles {
    padding-top: 2px;
  }
  .flow-steps__title {
    font-size: 20px;
  }
  .flow-steps__title-note {
    font-size: 13px;
  }
  .flow-steps__subtitle {
    font-size: 14px;
  }

  /* カードボディ SP — インデントなし */
  .flow-steps__card-body {
    padding-left: 0;
  }
  .flow-steps__text {
    margin-bottom: 16px;
  }
  .flow-steps__text p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* Pill SP — 折り返し許可 */
  .flow-steps__pills {
    gap: 6px;
  }
  .flow-steps__pill {
    font-size: 13px;
    padding: 5px 12px;
    white-space: normal;
  }

  /* オンライン補足 SP */
  .flow-steps__online-note {
    font-size: 13px;
    margin-top: 14px;
    padding: 10px 14px;
  }

  /* お渡しもの SP */
  .flow-steps__deliverables {
    padding: 16px 18px 16px 26px;
    margin-bottom: 16px;
  }
  .flow-steps__deliverables::before {
    width: 16px;
    height: 16px;
  }
  .flow-steps__deliverables-heading {
    font-size: 13px;
  }
  .flow-steps__deliverables-list li {
    font-size: 13px;
  }

  /* 安心ボックス SP */
  .flow-steps__reassure {
    padding: 14px 16px;
    margin-bottom: 16px;
    gap: 10px;
  }
  .flow-steps__reassure-text {
    font-size: 14px;
  }

  /* クロージング SP */
  .flow-steps__closing {
    margin-top: 20px;
    padding-top: 16px;
    font-size: 15px;
  }
  .flow-steps__closing::before {
    width: 24px;
  }

  /* アニメーション SP — style.css共通定義で対応済み（page-flow固有の追加なし） */
}

/* REDUCED MOTION — style.css共通定義で全anim-*クラスが対応済み */
