/* ===== 当日の流れセクション（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: 24px !important;
  line-height: 1.5 !important;
  color: #3d3d3d;
  margin: 0 0 8px 0;
}

.lp-flow__title-decoration {
  position: relative;
  width: 27.18px;
  height: 1.36px;
  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;
  min-height: 200px;
  height: auto;
  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: -1px;
  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;
  transform: translateX(-4px);
}

.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%;
  min-height: 160px;
  height: auto;
  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: 20px;
  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 - 15px);
  height: 0;
}

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

/* ステップ説明文 */
.lp-flow__step-text {
  position: absolute;
  left: 75px;
  top: 52px;
  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: normal;
  overflow-wrap: normal;
}

/* SP版のみ改行を表示 */
.sp-br {
  display: inline;
}

/* PC版のみ改行を表示 */
.pc-br {
  display: none;
}

/* 390px以下: 小型スマホ（iPhone 12 Pro等） */
@media (max-width: 390px) {
  .lp-flow__text-line {
    font-size: 11px;
  }
}

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

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

  .lp-flow__title {
    font-size: 30px !important;
    line-height: 1.5 !important;
  }

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

  .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: 222px;
  }

  .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以上）: 2カラムグリッド */
@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: 42px !important;
    line-height: 1.5 !important;
  }

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

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

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

  .lp-flow__badge-shadow {
    left: 100px;
    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: 233px;
  }

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

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

  .lp-flow__step-text {
    left: 130px;
    top: 70px;
    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-br {
    display: none;
  }

  /* PC版のみ改行を表示 */
  .pc-br {
    display: inline;
  }
}
