/* ==============================================
   flow.css – FLOWページ専用スタイル
============================================== */

/* ---- Flow Page Section ---- */
.fpage {
  padding: 160px 0 112px;
  background: linear-gradient(180deg,
    #DEA4CE 0%,
    #E2CAF0 35%,
    #F0D9FD 65%,
    var(--clr-sub, #f9f4fc) 100%
  );
}

.fpage__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* ---- Heading ---- */
.fpage__heading {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  white-space: nowrap;
}

.fpage__heading-en {
  font-family: var(--ff-en);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.fpage__heading-ja {
  font-family: var(--ff-ja);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---- Steps container ---- */
.fpage__steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 882px;
}

/* ---- Single Step Card ---- */
.fpage__step {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--clr-main);
  border-radius: 20px;
  padding: 0 32px;
  min-height: 184px;
}

/* Step number */
.fpage__step-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  color: var(--clr-main);
  line-height: 1;
  font-family: var(--ff-en);
  font-weight: 500;
  text-align: center;
}

.fpage__step-label {
  font-size: 20px;
  display: block;
}

.fpage__step-no {
  font-size: 48px;
  display: block;
  line-height: 1;
  margin-top: 4px;
}

/* Vertical divider line */
.fpage__step-divider {
  flex-shrink: 0;
  width: 1px;
  height: 143px;
  background: var(--clr-main);
  opacity: 0.4;
}

/* Step body (icon + text) */
.fpage__step-body {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

/* Icon */
.fpage__step-icon {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
}

.fpage__step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Apply main color tint via CSS filter */
  filter: invert(40%) sepia(20%) saturate(500%) hue-rotate(240deg) brightness(80%);
}

/* Text */
.fpage__step-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fpage__step-title {
  font-family: var(--ff-ja);
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-main);
  line-height: 1.4;
}

.fpage__step-desc {
  font-family: var(--ff-ja);
  font-size: 18px;
  font-weight: 500;
  color: var(--clr-text);
  line-height: 1.8;
}

/* ---- Arrow between steps ---- */
.fpage__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.fpage__arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 22px solid #fff;
  opacity: 0.9;
}

/* ---- Step sequential delays ---- */
[data-delay="150"]  { transition-delay: 150ms; }
[data-delay="200"]  { transition-delay: 200ms; }
[data-delay="350"]  { transition-delay: 350ms; }
[data-delay="450"]  { transition-delay: 450ms; }
[data-delay="600"]  { transition-delay: 600ms; }
[data-delay="650"]  { transition-delay: 650ms; }
[data-delay="800"]  { transition-delay: 800ms; }
[data-delay="850"]  { transition-delay: 850ms; }
[data-delay="1000"] { transition-delay: 1000ms; }
[data-delay="1050"] { transition-delay: 1050ms; }
[data-delay="1200"] { transition-delay: 1200ms; }

/* ---- Current nav link ---- */
.header__nav .is-current {
  color: var(--clr-main);
  font-weight: 600;
}


/* ==============================================
   Responsive
============================================== */

/* Tablet (≤960px) */
@media (max-width: 960px) {
  .fpage {
    padding: 80px 0;
  }

  .fpage__heading-en { font-size: 40px; }
  .fpage__heading-ja { font-size: 18px; }

  .fpage__step {
    gap: 24px;
    padding: 24px;
    min-height: auto;
    flex-wrap: wrap;
  }

  .fpage__step-no { font-size: 52px; }
  .fpage__step-label { font-size: 22px; }

  .fpage__step-divider { height: 100px; }

  .fpage__step-icon {
    width: 80px;
    height: 80px;
  }

  .fpage__step-title { font-size: 20px; }
  .fpage__step-desc { font-size: 16px; }
}

/* Mobile (≤600px) */
@media (max-width: 430px) {
  .fpage {
    padding: 100px 0 48px;
  }

  .fpage__inner { gap: 40px; }

  .fpage__heading {
    flex-direction: row;
    gap: 14px;
    text-align: center;
    white-space: nowrap;
  }
  .fpage__heading-en { font-size: 36px; }
  .fpage__heading-ja { font-size: 16px; }

  .fpage__steps { gap: 12px; }

  .fpage__step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding: 20px 16px;
    min-height: auto;
  }

  .fpage__step-num {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    align-self: center;
  }

  .fpage__step-label { font-size: 16px; }
  .fpage__step-no { font-size: 32px; margin-top: 0; }

  .fpage__step-divider { display: none; }

  .fpage__step-body {
    display: contents;
  }

  .fpage__step-icon {
    grid-column: 2;
    grid-row: 1;
    width: 60px;
    height: 60px;
    align-self: center;
  }

  .fpage__step-text {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 8px;
  }
  .fpage__step-title { font-size: 18px; }
  .fpage__step-desc { font-size: 14px; }

  .fpage__arrow::after {
    border-left-width: 14px;
    border-right-width: 14px;
    border-top-width: 16px;
  }
}
