.flow-page {
  --f-ink: #1a1a1a;
  --f-body: #444;
  --f-muted: #6e6e6e;
  --f-line: rgba(0, 0, 0, 0.08);
  --f-beige: #faf8f3;
  --f-beige-deep: #f3efe6;
  --f-accent: var(--color-accent, #d3c6a6);
  --f-radius: var(--radius-m, 12px);
  --f-ease: cubic-bezier(.2, .8, .2, 1);
}

.flow-hero {
  background: var(--f-beige);
  border-bottom: 1px solid var(--f-line);
}
.flow-hero__inner {
  width: 90%;
  max-width: 720px;
  margin: 0 auto;
  padding-block: clamp(56px, 11vh, 112px);
  color: var(--f-ink);
  text-align: center;
}
.flow-hero__eyebrow {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--f-muted);
  margin: 0 0 clamp(15px, 3vw, 20px);
  padding-left: .4em;
}
.flow-hero__title {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.25;
  letter-spacing: .16em;
  color: var(--f-ink);
  margin: 0;
  padding-left: .16em;
}
.flow-hero__title::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--f-accent);
  margin: clamp(20px, 3.5vw, 28px) auto;
}
.flow-hero__lead {
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 2;
  color: var(--f-muted);
  max-width: 100%;
  margin: 0 auto;
  font-weight: 300;
  text-wrap: pretty;
}
@media (min-width: 601px) {
  .flow-hero__lead { max-width: 36em; }
}
@media (max-width: 600px) {
  .flow-hero__br { display: none; }
}

.flow-steps-section {
  padding-block: clamp(56px, 11vw, 120px);
  background: #fff;
}
.flow-steps-section__inner {
  width: 90%;
  max-width: var(--container-width, 1280px);
  margin: 0 auto;
}

.flow-head {
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 72px);
}
.flow-head__eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--f-muted);
  margin-bottom: 14px;
}
.flow-head__title {
  font-size: clamp(22px, 4.5vw, 32px);
  line-height: 1.5;
  color: var(--f-ink);
  margin: 0;
}
.flow-head__title::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--f-accent);
  margin: clamp(16px, 3vw, 22px) auto 0;
}
.flow-head__lead {
  font-size: clamp(13px, 1.6vw, 14px);
  line-height: 1.9;
  color: var(--f-body);
  max-width: 36em;
  margin: 16px auto 0;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
  margin-inline: auto;
}
.flow-step {
  margin-bottom: clamp(32px, 6vw, 48px);
}
.flow-step:last-child { margin-bottom: 0; }

.flow-step__card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  padding: 200px 28px 32px;
}
.flow-step__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background-image: var(--bg-image-sp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.flow-step__number {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  color: var(--f-accent);
  margin: 0 0 1.25em;
}
.flow-step__title {
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  line-height: 1.45;
  color: var(--f-ink);
  margin: 0 0 .85em;
}
.flow-step__summary {
  font-size: 14px;
  line-height: 1.95;
  color: var(--f-body);
  margin: 0;
  width: auto;
  max-width: none;
}

.flow-step__details {
  margin-top: 1.75em;
  padding-top: 1.5em;
  border-top: 1px solid var(--f-line);
}
.flow-step__summary-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--f-ink);
  cursor: pointer;
  list-style: none;
}
.flow-step__summary-btn::-webkit-details-marker { display: none; }
.flow-step__summary-icon {
  flex-shrink: 0;
  width: .65em;
  height: .65em;
  border-right: 2px solid var(--f-muted);
  border-bottom: 2px solid var(--f-muted);
  transform: rotate(45deg);
  transition: transform .2s var(--f-ease);
  margin-top: -.2em;
}
.flow-step__details[open] .flow-step__summary-icon {
  transform: rotate(-135deg);
  margin-top: .15em;
}
.flow-step__details-body {
  padding-top: 1.25em;
}
.flow-step__details-body p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--f-body);
  margin: 0 0 1em;
  width: auto;
  max-width: none;
}
.flow-step__details-body p:last-child { margin-bottom: 0; }

.flow-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-details__list li {
  position: relative;
  padding-left: 1.35em;
  font-size: 13px;
  line-height: 1.9;
  color: var(--f-body);
  margin-bottom: .65em;
}
.flow-details__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--f-accent);
}
.flow-details__note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--f-muted);
  margin-top: 1em;
}

@media (min-width: 768px) {
  .flow-list {
    max-width: 980px;
  }
  .flow-step {
    margin-bottom: clamp(64px, 10vw, 100px);
  }
  .flow-step__card {
    padding: 56px 56px 48px 58%;
  }
  .flow-step__card::before {
    width: 52%;
    height: 100%;
    background-image: var(--bg-image-pc);
    mask-image: linear-gradient(to right, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%);
  }
  .flow-step:nth-child(even) .flow-step__card {
    padding: 56px 58% 48px 56px;
  }
  .flow-step:nth-child(even) .flow-step__card::before {
    left: auto;
    right: 0;
    mask-image: linear-gradient(to left, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, #000 78%, transparent 100%);
  }
}

.flow-page .cta-final {
  background: #fff;
  padding-block: clamp(72px, 14vw, 140px);
  border-top: 1px solid rgba(0, 0, 0, .07);
}
.flow-page .cta-final-inner {
  width: min(92%, 600px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-page .cta-final-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--f-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.flow-page .cta-final-title {
  font-size: clamp(22px, 5vw, 36px);
  line-height: 1.6;
  color: var(--f-ink);
  margin: 0 0 36px;
  font-weight: 400;
}
.flow-page .cta-final-lead {
  font-size: 13px;
  line-height: 2;
  color: var(--f-muted);
  margin: -20px 0 32px;
}
.flow-page .cta-btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.flow-page .cta-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 18px;
  min-height: 52px;
  font-size: clamp(14px, 1.7vw, 15px);
  letter-spacing: .06em;
  line-height: 1;
}
.flow-page .cta-final .cta-btn.main {
  background: transparent;
  color: var(--f-ink);
  border: 1px solid rgba(0, 0, 0, .3);
  min-width: 240px;
  letter-spacing: .1em;
  font-size: 13px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.flow-page .cta-final .cta-btn.main:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.flow-page .cta-final-tel {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--f-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.flow-page .cta-final-tel:hover { color: var(--f-ink); }
.flow-page .cta-final-note {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--f-muted);
  line-height: 1.8;
}
@media (min-width: 768px) {
  .flow-page .cta-final-title { font-size: 34px; }
  .flow-page .cta-final .cta-btn.main { min-width: 280px; }
}

.f-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--f-ease), transform .7s var(--f-ease);
}
.f-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .f-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
