/* ================================
   Flow — Figma pc_flow / 474:318 準拠
   ================================ */

.flow {
  width: 100%;
}

.flow-header {
  margin-bottom: 60px;
}

.flow__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  width: 100%;
}

.flow__intro,
.flow__outro {
  margin: 0;
  font-family: "Montserrat", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.875;
  color: #000;
  text-align: center;
}

/* Steps */
.flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  width: 100%;
  max-width: 779px;
}

.flow__steps::before {
  content: "";
  position: absolute;
  left: 61.5px;
  top: 61.5px;
  bottom: 61.5px;
  width: 3px;
  margin-left: -1.5px;
  background: #ffe4d0;
  border-radius: 1.5px;
  z-index: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.flow-step__badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 123px;
  height: 123px;
  border-radius: 50%;
  background: var(--color-accent, #ff6c00);
  color: #fff;
}

.flow-step__badge-label {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.22;
}

.flow-step__badge-num {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.22;
}

.flow-step__content {
  flex: 1;
  min-width: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-step__title {
  margin: 0;
  font-family: "Montserrat", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  color: #000;
}

.flow-step__text {
  margin: 0;
  font-family: "Montserrat", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.875;
  color: #000;
}

/* Contact CTA — 共通スタイルは sidebar.css */

/* SP */
@media (max-width: 1024px) {
  .flow-header {
    margin-bottom: 30px;
  }

  .flow-header .site-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .flow__body {
    gap: 48px;
    align-items: stretch;
  }

  .flow__intro,
  .flow__outro {
    text-align: left;
    font-size: 14px;
    line-height: 1.85;
  }

  .flow__steps {
    gap: 40px;
    max-width: none;
  }

  .flow__steps::before {
    display: none;
  }

  .flow-step {
    align-items: flex-start;
    gap: 16px;
    position: relative;
  }

  /* バッジ間をつなぐ縦線（STEP6 バッジ下端で終了） */
  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    margin-left: -1.5px;
    top: 25px;
    width: 3px;
    height: calc(100% - 25px + 40px);
    background: #ffe4d0;
    border-radius: 1.5px;
    z-index: 0;
  }

  .flow-step:nth-last-child(2)::after {
    height: calc(100% - 25px + 90px);
  }

  .flow-step__badge {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    line-height: 1;
  }

  .flow-step__badge-label {
    font-size: 8px;
    line-height: 1;
  }

  .flow-step__badge-num {
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
  }

  .flow-step__content {
    max-width: none;
  }

  .flow-step__title {
    font-size: 18px;
  }

  .flow-step__text {
    font-size: 14px;
    line-height: 1.85;
  }
}
