/* ===========================================================
   CRJ WEB — flow.css
   制作の流れページ専用: 縦型タイムライン / 日数早見表 / FAQ
   =========================================================== */

.flow-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
  border-top: 1px solid var(--line);
}

.flow-section.first {
  border-top: none;
  padding-top: 80px;
}

/* ===========================================================
   縦型タイムライン
   =========================================================== */
.steps-wrap {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

/* 左の垂直線 */
.steps-wrap::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: var(--line);
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  position: relative;
}

.step-marker {
  width: 48px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--fg);
  position: relative;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.step:hover .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

/* 起点 (01) と終点 (09) のドットは常に強調 */
.step-dot.is-start {
  background: var(--fg);
}

.step-dot.is-end {
  background: var(--accent);
  border-color: var(--accent);
}

.step-body {
  padding-top: 0;
}

.step-num {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fg-subtle);
  font-weight: 600;
  margin-bottom: 8px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.step-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.step-duration {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(224, 74, 48, 0.3);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 600;
}

.step-duration.muted {
  color: var(--fg-subtle);
  border-color: var(--line);
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.85;
  max-width: 600px;
}

.step-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg-subtle);
  line-height: 1.75;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

/* ===========================================================
   日数早見表
   =========================================================== */
.timeline-intro {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 640px;
  margin-top: -40px;
  margin-bottom: 48px;
}

.timeline-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

.timeline-table thead th {
  text-align: center;
  padding: 20px 16px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-subtle);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 232, 0.5);
}

.timeline-table thead th:first-child {
  text-align: left;
  background: transparent;
}

.timeline-table thead th.is-featured {
  color: var(--accent);
  background: var(--accent-soft);
}

.timeline-table tbody th {
  text-align: left;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.005em;
  vertical-align: middle;
}

.timeline-table tbody td {
  text-align: center;
  padding: 16px 16px;
  font-size: 13px;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  letter-spacing: -0.005em;
}

.timeline-table tbody td.is-featured {
  background: var(--accent-soft);
  font-weight: 500;
}

.timeline-table tfoot th,
.timeline-table tfoot td {
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.timeline-table tfoot th {
  text-align: left;
  padding-left: 20px;
}

.timeline-table tfoot td {
  text-align: center;
}

.timeline-table tfoot td.is-featured {
  background: var(--accent-soft);
  color: var(--accent);
}

.timeline-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--fg-subtle);
  line-height: 1.75;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .flow-section {
    padding: 60px 24px;
  }

  .steps-wrap::before {
    left: 18px;
  }

  .step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
  }

  .step-marker {
    width: 36px;
  }

  .step-title {
    font-size: 19px;
  }

  .step-desc {
    font-size: 13px;
  }

  .timeline-intro {
    margin-top: -24px;
    margin-bottom: 32px;
  }

  .timeline-table thead th,
  .timeline-table tbody th,
  .timeline-table tbody td,
  .timeline-table tfoot th,
  .timeline-table tfoot td {
    padding: 12px 10px;
    font-size: 12px;
  }
}
