/* ==========================================================================
   08  相談から作業までの流れ   (参考画像 8)
   ========================================================================== */

.flow {
  background: var(--paper);
}
.flow__title {
  text-align: center;
  font-size: clamp(1.625rem, 0.7rem + 2.9vw, 4rem);
  line-height: 1.36;
  letter-spacing: 0.02em;
}
.flow .sec-head {
  margin-top: clamp(18px, 2.2vw, 30px);
}
.flow .sec-head__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.5rem);
  letter-spacing: 0.16em;
  color: var(--g-900);
}

.flow__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 40px);
  margin-top: clamp(28px, 3.4vw, 48px);
}
/* 番号をつなぐ線。ライズに合わせて左から右へ描かれる */
.flow__list::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}
.js .flow__list::before {
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.35s;
}
.js .flow__list.is-in::before {
  transform: scaleX(1);
}

.flow-step {
  position: relative;
}
.flow-step__no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--g-900);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 8px var(--paper);
}
.flow-step__photo {
  margin-top: clamp(14px, 1.8vw, 22px);
  aspect-ratio: 1.32 / 1;
}
.flow-step__photo .ph__body .ic {
  width: clamp(36px, 4vw, 52px);
  height: clamp(36px, 4vw, 52px);
}
.flow-step__title {
  margin-top: clamp(14px, 1.6vw, 22px);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.125rem, 0.9rem + 0.85vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--g-950);
}
.flow-step__desc {
  margin-top: 8px;
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.flow .sec-head--note {
  margin-top: clamp(28px, 3.6vw, 52px);
}
.flow .sec-head--note .sec-head__title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
}

/* タブレット : 2列 */
@media (max-width: 899px) {
  .flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
  .flow__list::before {
    display: none;
  }
  .flow-step__no {
    margin-inline: 0;
  }
  .flow-step__title {
    text-align: left;
  }
}
/* スマホ : 縦の流れ */
@media (max-width: 599px) {
  .flow__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .flow-step {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 16px;
  }
  .flow-step__no {
    grid-row: 1 / span 3;
    align-self: start;
    box-shadow: none;
  }
  .flow-step__photo {
    margin-top: 0;
    aspect-ratio: 16 / 9;
  }
  .flow__list::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 60px;
    left: 26px;
    width: 1px;
    background: var(--line-soft);
  }
}
