/* ============================================
   11 - FLOW (支援の流れ)
   Mobile-first: SP = 390px canvas / PC = 1440px canvas
   ============================================ */

.flow {
  background: #f7f4ec;
  padding: 64px 22px;
  font-family: var(--font-base);
  color: var(--color-text);
}

.flow__container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- Head (label / title / lead / photo) --- */

.flow__head {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.flow__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow__label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 20.3px;
  letter-spacing: 3.5px;
  color: var(--color-gold);
}

.flow__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 37.6px;
  letter-spacing: 1.4px;
  color: var(--color-text);
}

.flow__lead p {
  font-size: 13.5px;
  line-height: 27px;
  color: var(--color-text);
}

.flow__photo {
  width: 100%;
}

.flow__photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  /* デザイン指定の平行四辺形マスク(左右の辺が幅の6%傾く) */
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

/* --- Steps (SP: vertical timeline with left rule) --- */

.flow__steps {
  border-left: 1px solid rgba(201, 162, 75, 0.6);
}

.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 30px 24px;
}

.flow__step:last-child {
  padding-bottom: 4px;
}

/* timeline dot, centered on the left rule */
.flow__step::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -7px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: #ffffff;
}

.flow__step-label {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.flow__step-en {
  padding-bottom: 1px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  line-height: 18.8px;
  letter-spacing: 3px;
  color: var(--color-gold);
}

.flow__step-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 34px;
  color: var(--color-text);
}

.flow__step-title {
  padding: 1px 0 3px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 26.1px;
  color: var(--color-text);
}

.flow__step-text {
  font-size: 13px;
  line-height: 24px;
  color: var(--color-text);
}

/* ============================================
   PC (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
  .flow {
    /* 左右余白は可変(狭い画面では先に縮む) */
    padding: 172.8px clamp(24px, 9vw, 130px);
  }

  .flow__container {
    max-width: 1100px;
    margin: 0 auto;
    gap: 88px;
  }

  .flow__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(32px, 5vw, 72px);
  }

  .flow__header {
    flex: 0 1 565px;
    gap: 20px;
    margin-top: 12px;
  }

  .flow__label {
    font-weight: 500;
    font-size: 15px;
    line-height: 28.5px;
    letter-spacing: 5.2px;
  }

  .flow__title {
    font-size: 46px;
    line-height: 66px;
    letter-spacing: 2.6px;
  }

  .flow__lead {
    padding-top: 7px;
  }

  .flow__lead p {
    font-size: 15px;
    line-height: 28.5px;
    letter-spacing: 0.6px;
  }

  .flow__lead p + p {
    margin-top: 9px;
  }

  .flow__photo {
    flex-shrink: 0;
    /* 463px固定 → 画面幅の44%を上限に縮む */
    width: min(463px, 44%);
  }

  .flow__photo img {
    height: 289px;
  }

  /* Steps: horizontal timeline with top rule */
  .flow__steps {
    position: relative;
    display: flex;
    gap: 34.5px;
    border-left: none;
  }

  .flow__steps::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 13px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, #e3c87e 0%, #c9a24b 100%);
  }

  .flow__step {
    flex: 1 1 0;
    gap: 11px;
    padding: 24px 0 0;
  }

  .flow__step:last-child {
    padding-bottom: 0;
  }

  .flow__step::before {
    top: 6px;
    left: 0;
  }

  .flow__step-label {
    align-items: baseline;
  }

  .flow__step-en {
    padding-bottom: 0;
    font-size: 15px;
    line-height: 15px;
    letter-spacing: 3.9px;
  }

  .flow__step-num {
    font-weight: 600;
    font-size: 26px;
    line-height: 20px;
    letter-spacing: 0.6px;
    color: var(--color-gold);
  }

  .flow__step-title {
    padding: 0;
    line-height: 30.6px;
    letter-spacing: 0.6px;
  }

  .flow__step-text {
    font-size: 13.5px;
    line-height: 25.6px;
    letter-spacing: 0.6px;
  }
}
