.consultation-flow {
  --flow-primary: #007d84;
  --flow-dark: #005a60;
  --flow-pale: #eef8f7;
  color: #354746;
  background: #f8fbfa;
  padding-bottom: 60px;
  line-height: 1.9;
}

.flow-container {
  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.flow-hero {
  margin-top: -60px;
  padding: 100px 0 50px;
  text-align: center;
  background: linear-gradient(135deg, #e6f5f3, #f7fbf5 65%, #fff5df);
}

.flow-eyebrow {
  color: var(--flow-primary);
  font-weight: 700;
  letter-spacing: .06em;
}

.flow-hero h1 {
  margin: 12px 0 24px;
  color: var(--flow-dark);
  font-size: clamp(2.7rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.5;
}

.flow-hero-note {
  margin: 20px 0;
  font-size: 1.5rem;
}

.consultation-flow .btn01 {
  margin: 24px auto 0;
}

.consultation-flow .btn01 a {
  box-sizing: border-box;
  max-width: 100%;
}

.flow-breadcrumb {
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 1.3rem;
}

.consultation-flow a:focus-visible {
  outline: 3px solid var(--flow-dark);
  outline-offset: 4px;
}

.flow-breadcrumb a,
.flow-urgent a,
.flow-contact-phone a,
.flow-related a,
.flow-sources a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.flow-urgent {
  padding: 22px 26px;
  border: 1px solid #ecd5a7;
  border-left: 5px solid #c88120;
  border-radius: 12px;
  background: #fff9ed;
}

.flow-urgent h2 {
  margin-bottom: 8px;
  color: #795018;
  font-size: 1.9rem;
  font-weight: 700;
}

.flow-overview {
  margin: 36px 0 18px;
}

.flow-overview ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flow-overview a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 8px;
  border: 1px solid #bddedb;
  border-radius: 12px;
  background: #fff;
  color: var(--flow-dark);
  font-weight: 700;
}

.flow-overview a:hover {
  background: var(--flow-pale);
}

.flow-overview span {
  font-size: 2.4rem;
}

.flow-intro-note,
.flow-step-note {
  font-size: 1.4rem;
}

.flow-steps {
  margin-top: 32px;
}

.flow-step {
  margin-bottom: 24px;
  padding: 32px;
  border: 1px solid #d8e7e4;
  border-radius: 16px;
  background: #fff;
}

.flow-step,
.flow-living {
  scroll-margin-top: 32px;
}

.flow-step h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--flow-dark);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.flow-step-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--flow-primary);
  color: #fff;
  font-size: 2.2rem;
}

.flow-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.flow-roles > div {
  padding: 20px;
  border-radius: 10px;
  background: #f5f7f7;
}

.flow-roles > div:last-child {
  background: var(--flow-pale);
}

.flow-roles dt {
  margin-bottom: 10px;
  color: var(--flow-dark);
  font-weight: 700;
}

.flow-step-note {
  margin-bottom: 0;
}

.flow-timing {
  padding: 20px;
  border-left: 4px solid var(--flow-primary);
  background: var(--flow-pale);
}

.flow-timing h3 {
  margin-bottom: 8px;
  color: var(--flow-dark);
  font-size: 1.8rem;
  font-weight: 700;
}

.consultation-flow strong {
  font-weight: 700;
}

.flow-living {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid #ecd5a7;
  border-radius: 16px;
  background: #fff9ed;
}

.flow-living h2,
.flow-next h2 {
  margin: 12px 0 20px;
  color: var(--flow-dark);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.6;
}

.flow-living li {
  margin: 20px 0;
  padding-left: 18px;
  border-left: 3px solid #c88120;
}

.flow-contact-phone {
  margin-top: 24px;
  text-align: center;
  font-weight: 700;
}

.flow-living .flow-step-note {
  margin-top: 20px;
}

.flow-next {
  margin-top: 48px;
  padding-bottom: 0;
  text-align: center;
}

.flow-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.flow-sources {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #d8e7e4;
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}

.flow-sources li {
  margin-top: 8px;
}

@media (min-width: 1500px) {
  .flow-hero {
    margin-top: 0;
    padding-top: 160px;
  }
}

@media (max-width: 767px) {
  .flow-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .flow-hero {
    padding-top: 90px;
    padding-bottom: 36px;
  }

  .flow-overview ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .flow-overview a {
    padding: 10px 6px;
    font-size: 1.4rem;
  }

  .flow-urgent,
  .flow-step,
  .flow-living {
    padding: 22px 18px;
  }

  .flow-step h2 {
    gap: 12px;
    font-size: 2rem;
  }

  .flow-step-number {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .flow-roles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-roles > div,
  .flow-timing {
    padding: 16px;
  }

  .flow-living h2,
  .flow-next h2 {
    font-size: 2.2rem;
  }
}
