/* ===== 検査までの流れセクション（Figma完全準拠・スマホファースト） ===== */

.lp-flow {
  width: 100%;
  padding: 40px 15px;
  background-color: #f3faff;
}

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

/* === セクションヘッダー === */
.lp-flow__header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.lp-flow__title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 21.667px;
  line-height: 30.063px;
  color: #3d3d3d;
  margin: 0 0 8px 0;
}

.lp-flow__title-decoration {
  position: relative;
  width: 65px;
  height: 2.5px;
  margin: 0 auto;
}

.lp-flow__decoration-line {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* === ステップ一覧 === */
.lp-flow__steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* === 個別ステップ === */
.lp-flow__step {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 160px;
  margin: 0 auto;
}

/* ステップバッジ（左側の青い矢印タグ） */
.lp-flow__step-badge {
  position: absolute;
  left: 6.89px;
  top: 0;
  width: 63.221px;
  height: 114px;
  z-index: 10;
}

.lp-flow__badge-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.lp-flow__badge-shadow {
  position: absolute;
  left: 62.11px;
  top: 0;
  width: 12px;
  height: 10px;
  z-index: 2;
}

.lp-flow__shadow-img {
  width: 100%;
  height: 100%;
  display: block;
}

.lp-flow__badge-content {
  position: absolute;
  left: 0;
  top: 15px;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.lp-flow__badge-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 25px;
  color: #ffffff;
  text-align: center;
  margin: 0;
  height: 8px;
}

.lp-flow__badge-number {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 25px;
  color: #ffffff;
  text-align: center;
  margin: 26px 0 0 0;
}

/* ステップコンテンツ（白いボックス） */
.lp-flow__step-content {
  position: absolute;
  left: 0;
  top: 10px;
  width: 100%;
  height: 150px;
  background-color: #ffffff;
  border: 1px solid #0c62b2;
  border-radius: 0;
  z-index: 1;
}

/* ステップタイトル */
.lp-flow__step-title {
  position: absolute;
  left: 75px;
  top: 8px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 25px;
  color: #0c62b2;
  margin: 0;
  width: calc(100% - 75px);
  max-width: none;
  padding-right: 6px;
}

/* タイトル下の区切り線 */
.lp-flow__step-divider {
  position: absolute;
  left: 75px;
  top: 41.5px;
  width: calc(100% - 75px);
  height: 0;
}

.lp-flow__divider-line {
  width: 100%;
  height: 1px;
  display: block;
}

/* ステップ説明文 */
.lp-flow__step-text {
  position: absolute;
  left: 75px;
  top: 48px;
  width: calc(100% - 75px);
  max-width: none;
  padding-right: 6px;
}

.lp-flow__text-line {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  color: #424a51;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* STEP 03とSTEP 04の文字は改行しない */
.lp-flow__step:nth-child(4) .lp-flow__text-line,
.lp-flow__step:nth-child(5) .lp-flow__text-line {
  white-space: nowrap;
}


/* タブレット（768px〜1023px）: スマホレイアウト維持、サイズ拡大 */
@media (min-width: 768px) and (max-width: 1023px) {
  .lp-flow {
    padding: 50px 20px;
  }

  .lp-flow__inner {
    max-width: 500px;
  }

  .lp-flow__step {
    max-width: 450px;
    height: 214px;
  }

  .lp-flow__step-badge {
    left: 8px;
    width: 75px;
    height: 135px;
  }

  .lp-flow__badge-shadow {
    left: 75px;
    top: 0;
    width: 14px;
    height: 12px;
  }

  .lp-flow__badge-content {
    top: 18px;
  }

  .lp-flow__badge-label {
    font-size: 18px;
    line-height: 30px;
    height: 10px;
  }

  .lp-flow__badge-number {
    font-size: 48px;
    line-height: 30px;
    margin: 30px 0 0 0;
  }

  .lp-flow__step-content {
    top: 12px;
    height: 202px;
  }

  .lp-flow__step-title {
    left: 100px;
    top: 22px;
    font-size: 24px;
    line-height: 30px;
    width: 330px;
  }

  .lp-flow__step-divider {
    left: 100px;
    top: 62px;
    width: 330px;
  }

  .lp-flow__step-text {
    left: 100px;
    top: 70px;
    width: 340px;
  }

  .lp-flow__text-line {
    font-size: 18px;
    line-height: 30px;
  }
}

/* PC（1024px以上）: 1カラム中央寄せ */
@media (min-width: 1024px) {
  .lp-flow {
    padding: 80px 40px;
  }

  .lp-flow__inner {
    max-width: 1200px;
  }

  .lp-flow__header {
    margin-bottom: 50px;
  }

  .lp-flow__title {
    font-size: 32px;
    line-height: 44px;
  }

  .lp-flow__steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
  }

  .lp-flow__step {
    max-width: 100%;
    height: 228px;
  }

  .lp-flow__step-badge {
    left: 12px;
    width: 100px;
    height: 180px;
  }

  .lp-flow__badge-shadow {
    left: 99px;
    top: 0;
    width: 18px;
    height: 16px;
  }

  .lp-flow__badge-content {
    top: 25px;
  }

  .lp-flow__badge-label {
    font-size: 22px;
    line-height: 35px;
    height: 12px;
  }

  .lp-flow__badge-number {
    font-size: 60px;
    line-height: 35px;
    margin: 38px 0 0 0;
  }

  .lp-flow__step-content {
    top: 15px;
    height: 213px;
  }

  .lp-flow__step-title {
    left: 130px;
    top: 10px;
    font-size: 28px;
    line-height: 35px;
    width: calc(100% - 150px);
    max-width: none;
    padding-right: 0;
  }

  .lp-flow__step-divider {
    left: 130px;
    top: 55px;
    width: calc(100% - 160px);
  }

  .lp-flow__step-text {
    left: 130px;
    top: 65px;
    width: calc(100% - 160px);
    max-width: none;
    padding-right: 0;
  }

  .lp-flow__text-line {
    font-size: 20px;
    line-height: 34px;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* スマホ専用改行をPC版で非表示 */
  .sp-only {
    display: none;
  }
}
