/* ============================================
   FLOW.CSS - flow.html専用BEMスタイル
   Block prefix: fl- (Flow)
   ============================================ */

/* ---------- Description Modifier ---------- */
.hp-desc--flow {
  padding-bottom: 40px;
}

/* ---------- Section ---------- */
.fl-section {
  padding: 120px 0 64px 0;
  background: var(--color-bg-white);
  border-radius: clamp(80px, calc(80px + (100vw - 320px) / 10), 400px) 0 0 0;
}

/* ---------- Timeline ---------- */
.fl__timeline {
  max-width: 100%;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Step ---------- */
.fl__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.fl__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 30px;
  border-left: 2px dotted var(--color-primary);
  transform: translateX(-50%);
}

/* ---------- Step Label ---------- */
.fl__label {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 32px;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  background: var(--color-bg-white);
  z-index: 2;
  position: relative;
}

/* ---------- Step Card ---------- */
.fl__card {
  width: 100%;
  background: var(--color-bg-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 48px;
  margin-top: -14px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.fl__card:hover {
  box-shadow: 0 12px 40px rgba(25, 192, 215, 0.2);
  transform: translateY(-4px);
}

/* Card Title */
.fl__card h4 {
  font-size: clamp(1.20rem, calc(0.45vw + 1.09rem), 1.50rem);
  letter-spacing: 0.1rem;
  font-weight: 800;
  background: var(--gradient-45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.fl__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* Card Text */
.fl__card p {
  font-size: clamp(0.85rem, calc(0.23vw + 0.80rem), 1.00rem);
  font-weight: 500;
  letter-spacing: 0.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 8px;
}

/* Custom note text within fl__card p */
.fl__card p .note {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Step Buttons ---------- */
.fl__buttons {
  display: flex;
  flex-direction: row;
  gap: clamp(16px, -55.077px + 9.231vw, 40px);
  margin: 32px 0 32px;
  width: 100%;
}

/* ---------- Button ---------- */
.fl__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  background: var(--color-primary);
  color: var(--color-bg-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
}

.fl__btn:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 12px 32px rgba(25, 192, 215, 0.5);
}

/* ---------- Button Icon ---------- */
.fl__btn-icon {
  font-size: 1rem;
  filter: brightness(0) invert(1);
}

/* ---------- Step Note ---------- */
.fl__note {
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
}

.fl__note--line {
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .fl-section {
    padding: 120px 0;
  }

  .fl__card {
    padding: 56px 40px 40px 40px;
    margin-bottom: 24px;
  }

  .fl__card h4 {
    margin-bottom: 16px;
  }

  .fl__btn {
    width: 100%;
    padding: 24px 16px;
    border-radius: 50px;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE: 768px以下でボタン縦積み
   ============================================ */
@media (max-width: 768px) {
  .fl__buttons {
    flex-direction: column;
    gap: 24px;
  }
}
