/* ===========================================
   Flow Section - サービス導入までの流れ
   Figma: y=8023-9190
   =========================================== */

.flow {
  background-color: var(--color-white);
  padding: 40px 16px 48px;
}

.flow__inner {
  max-width: 343px;
  margin: 0 auto;
}

/* Section Title */
.flow__title {
  text-align: center;
  margin-bottom: 8px;
}

.flow__title h2 {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1.45;
  color: var(--color-black);
}

.flow__title-marker { display: none; }

.flow__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 24px;
}

.flow__subtitle::before,
.flow__subtitle::after {
  content: '';
  flex: 1;
  max-width: 36px;
  height: 2px;
  background: var(--color-primary);
}

.flow__subtitle-inner {
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  border-radius: 4px;
}

/* Step List */
.flow__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

/* Step Item */
.flow__step {
  position: relative;
}

/* Step card */
.flow__card {
  background-color: #FFEEEC;
  border: 1px solid #D82E2E;
  border-radius: 6px;
  padding: 16px 16px;
  box-shadow: none;
}

.flow__card-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #FFFFFF;
}

.flow__number { display: none; }

.flow__step-label {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: #D82E2E;
  letter-spacing: -0.05em;
}

.flow__card-title {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  line-height: 23px;
  letter-spacing: -0.05em;
  margin: 0;
}

.flow__card-text {
  font-size: 14px;
  color: var(--color-black);
  line-height: 22px;
  letter-spacing: -0.05em;
  font-weight: var(--font-weight-medium);
  margin-top: 10px;
}

/* Arrow connector between steps */
.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: -14px 20px -14px 0;
  position: relative;
  z-index: 2;
  height: 44px;
}

.flow__arrow img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* SP: show down arrow, hide horizontal arrow */
.flow__arrow-pc { display: none; }
.flow__arrow-sp { display: block; }

/* Bottom note text */
.flow__note {
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  line-height: 1.7;
  color: var(--color-black);
  padding: 24px 8px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.flow__note p {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.flow__note-red {
  color: var(--color-primary);
}

/* SP-only line break (visible by default, hidden on PC) */
.flow__note-br-sp { display: inline; }

/* ============================================================
   PC (>=768px) — Flow: 5 steps horizontal with arrows
   ============================================================ */
@media (min-width: 768px) {
  .flow {
    padding: 80px 0 100px;
  }
  .flow__inner {
    max-width: 1300px;
    padding: 0 40px;
  }
  .flow__title h2 {
    font-size: 40px;
  }
  .flow__subtitle {
    margin: 20px 0 50px;
    gap: 20px;
  }
  .flow__subtitle::before,
  .flow__subtitle::after {
    max-width: 120px;
    height: 2px;
    background: transparent;
    border-top: 2px dashed var(--color-primary);
  }
  .flow__subtitle-inner {
    background: transparent;
    color: var(--color-primary);
    font-size: 30px;
    padding: 0;
  }
  /* Horizontal 5-step list */
  .flow__list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-bottom: 60px;
  }
  .flow__step {
    flex: 1 1 0;
    display: flex;
  }
  .flow__card {
    flex: 1;
    padding: 20px 18px;
    border-width: 1px;
    border-radius: 6px;
  }
  .flow__card-header {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    padding-bottom: 12px;
  }
  .flow__step-label {
    font-size: 14px;
  }
  .flow__card-title {
    font-size: 20px;
  }
  .flow__card-text {
    font-size: 14px;
    line-height: 22px;
  }
  .flow__arrow {
    flex: 0 0 44px;
    margin: 0 -12px;
    align-items: center;
    justify-content: center;
    height: auto;
  }
  /* PC: show horizontal arrow, hide down arrow */
  .flow__arrow-pc { display: block; }
  .flow__arrow-sp { display: none; }
  .flow__note {
    max-width: 959px;
    margin-left: auto;
    margin-right: auto;
    font-size: 40px;
    line-height: 58px;
    padding: 40px 0 0;
  }
  .flow__note-br-sp { display: none; }
}
