/* =========================================================
   flow.css — 制作の流れ・料金表ページ専用スタイル
   ========================================================= */

/* ---------- 全体概観セクション ---------- */
.flow-overview {
  background: var(--bg-2);
}
.flow-overview__head {
  text-align: center;
  margin-bottom: 20px;
}
.flow-overview__lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 56px;
}

/*
  グリッド列：chip(1fr) arrow(36px) chip arrow chip arrow chip
  = 7列
  行1（上段）: chip01 → chip02 → chip03 → chip04
  行2（折返し）: turn-spacer（col1-6） + ↓（col7）
  行3（下段）: chip08 ← chip07 ← chip06 ← chip05
*/
.flow-overview__grid {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  align-items: center;
  row-gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* 折り返し行：col1-6 をスペーサーが占有し col7 に ↓ が来る */
.flow-overview__turn-spacer {
  grid-column: 1 / 7;
  height: 28px;
}
.flow-overview__arrow--turn {
  grid-column: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: 22px;
  font-family: var(--mono);
  color: var(--brand-1);
  opacity: 0.55;
}

/* 矢印（→ ← ）*/
.flow-overview__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--brand-1);
  opacity: 0.45;
  user-select: none;
}

/* チップ（ステップカード）*/
.flow-overview__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.flow-overview__chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 108, 255, 0.12);
  border-color: var(--brand-1);
}
.flow-overview__chip--support {
  background: linear-gradient(135deg, rgba(31, 108, 255, 0.06), rgba(0, 198, 255, 0.04));
  border-color: var(--brand-1);
}
.flow-overview__chip-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-1);
  background: rgba(31, 108, 255, 0.08);
  padding: 2px 10px;
  border-radius: 40px;
}
.flow-overview__chip-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}
.flow-overview__chip-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- ステップ詳細カード ---------- */
.flow-step {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.flow-step--alt {
  background: var(--bg-2);
}
.flow-step--support {
  background: linear-gradient(135deg, rgba(31, 108, 255, 0.04), rgba(0, 198, 255, 0.02));
}
.flow-step__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.flow-step--rev .flow-step__inner {
  direction: rtl;
}
.flow-step--rev .flow-step__inner > * {
  direction: ltr;
}

/* ビジュアル側 */
.flow-step__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.flow-step__num {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.15;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.flow-step__icon-wrap {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.flow-step__icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.flow-step__svg {
  width: 110px;
  height: 110px;
}
.flow-step__duration-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand-1);
  background: rgba(31, 108, 255, 0.08);
  border: 1px solid rgba(31, 108, 255, 0.2);
  padding: 6px 18px;
  border-radius: 40px;
  position: relative;
  z-index: 1;
}
.flow-step__duration-badge--support {
  background: rgba(0, 198, 255, 0.1);
  border-color: rgba(0, 198, 255, 0.3);
  color: var(--brand-2);
}

/* テキスト側 */
.flow-step__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.flow-step__lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.flow-step__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.flow-step__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}
.flow-step__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--grad-soft);
  border: 1px solid rgba(31, 108, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--brand-1);
  margin-top: 2px;
}
.flow-step__prepare {
  background: var(--bg-2);
  border-left: 3px solid var(--brand-1);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
}
.flow-step__prepare-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--brand-1);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.flow-step__prepare p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}
.flow-step__prepare a {
  color: var(--brand-1);
  text-decoration: underline;
  text-decoration-color: rgba(31, 108, 255, 0.3);
  text-underline-offset: 3px;
}

/* ---------- 制作期間タイムライン ---------- */
.flow-timeline-section {
  background: var(--deep);
}
.flow-timeline-section__head {
  text-align: center;
  margin-bottom: 20px;
}
.flow-timeline-section__head .section-eyebrow {
  color: var(--brand-2);
}
.flow-timeline-section__head .section-eyebrow::before {
  background: var(--brand-2);
}
.flow-timeline-section__head .section-title {
  color: #fff;
}
.flow-timeline-section__lead {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 56px;
}
.flow-timeline {
  max-width: 860px;
  margin: 0 auto;
}
.flow-timeline__bar {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  height: 80px;
  gap: 2px;
}
.flow-timeline__phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  color: #fff;
  text-align: center;
  min-width: 0;
}
.flow-timeline__phase--1 {
  flex: 2;
  background: rgba(31, 108, 255, 0.4);
}
.flow-timeline__phase--2 {
  flex: 3;
  background: rgba(31, 108, 255, 0.6);
}
.flow-timeline__phase--3 {
  flex: 4;
  background: rgba(31, 108, 255, 0.8);
}
.flow-timeline__phase--4 {
  flex: 1;
  background: var(--brand-1);
}
.flow-timeline__phase-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.flow-timeline__phase-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.flow-timeline__phase-period {
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.8;
}
.flow-timeline__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}
.flow-timeline__notes {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.flow-timeline__note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
}
.flow-timeline__note-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.flow-timeline__note strong {
  display: block;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}
.flow-timeline__note span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
}

/* ---------- ご準備チェックリスト ---------- */
.flow-checklist-section {
  background: var(--bg-2);
}
.flow-checklist-section__head {
  text-align: center;
  margin-bottom: 20px;
}
.flow-checklist-section__lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 56px;
}
.flow-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.flow-checklist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.flow-checklist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(31, 108, 255, 0.1);
}
.flow-checklist-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flow-checklist-card__head svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.flow-checklist-card__head h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.flow-checklist-card .hp-check-list {
  margin: 0;
  flex: 1;
}
.flow-checklist-card__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* ---------- FAQ下部リンク ---------- */
.flow-faq-more {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}
.flow-faq-more a {
  color: var(--brand-1);
  text-decoration: underline;
  text-decoration-color: rgba(31, 108, 255, 0.3);
  text-underline-offset: 3px;
}
.flow-faq-more a:hover {
  text-decoration-color: var(--brand-1);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  /* 中画面：上段4列 → 上段2列・下段2列の2段スネークに縮小 */
  .flow-overview__grid {
    grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  }
  .flow-overview__chip-label {
    font-size: 11px;
  }
  .flow-overview__chip-sub {
    display: none;
  }
  .flow-overview__chip {
    padding: 14px 8px;
  }
}
@media (max-width: 860px) {
  .flow-step__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-step--rev .flow-step__inner {
    direction: ltr;
  }
  .flow-step__visual {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .flow-step__num {
    position: static;
    transform: none;
    font-size: 60px;
    opacity: 0.12;
    margin-right: -20px;
  }
  .flow-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-timeline__phase-label,
  .flow-timeline__phase-period {
    display: none;
  }
}
@media (max-width: 640px) {
  .flow-step__visual {
    flex-direction: column;
  }
  .flow-step__num {
    display: none;
  }
  .flow-checklist-grid {
    grid-template-columns: 1fr;
  }
  .flow-timeline__notes {
    flex-direction: column;
    align-items: stretch;
  }
  /* 小画面：スネーク → シンプルな縦並び番号リスト */
  .flow-overview__grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .flow-overview__arrow,
  .flow-overview__arrow--turn,
  .flow-overview__turn-spacer {
    display: none;
  }
  /* DOM順は 01→02→03→04→08←07←06←05 のため order で正順に並べ直す */
  .flow-overview__grid > :nth-child(16) {
    order: 5;
  } /* 05 */
  .flow-overview__grid > :nth-child(14) {
    order: 6;
  } /* 06 */
  .flow-overview__grid > :nth-child(12) {
    order: 7;
  } /* 07 */
  .flow-overview__grid > :nth-child(10) {
    order: 8;
  } /* 08 */
  .flow-overview__chip {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
    padding: 14px 16px;
  }
  .flow-overview__chip-num {
    flex-shrink: 0;
  }
  .flow-overview__chip-label {
    font-size: 13px;
  }
  .flow-overview__chip-sub {
    display: block;
    font-size: 10px;
  }
}
