/* ===== 胃カメラ検査費用セクション（Figma完全準拠・スマホファースト） ===== */

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

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

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

.lp-price__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 24px !important;
  line-height: 1.5 !important;
  color: #000000;
  margin: 0 0 8px 0;
}

.lp-price__title-decoration {
  position: relative;
  width: 80px;
  height: 1.88px;
  margin: 0 auto;
}
.lp-price__decoration-line {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: block;
}

/* === 費用ボックス === */
.lp-price__cost-box {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 84px;
  margin: 0 auto 10px;
  background-color: #ffffff;
  border: 1px solid #348dd7;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 0;
}

/* 費用ラベル（左側） */
.lp-price__cost-label {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 26px;
  color: #348dd7;
  margin: 0;
  text-align: center;
  width: 130px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 縦の区切り線（中央） */
.lp-price__cost-divider {
  width: 1px;
  height: 60%;
  background: #EEECEC;
  flex-shrink: 0;
}

/* 右側コンテナ（バッジ + 金額） */
.lp-price__cost-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 1;
  min-width: 0;
}

/* 3割負担バッジ */
.lp-price__cost-badge {
  position: relative;
  width: 130px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lp-price__badge-text {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  color: #ffffff;
  text-align: center;
}

/* 費用金額 */
.lp-price__cost-amount {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #348dd7;
  margin: 0;
  text-align: center;
  line-height: 20px;
  white-space: nowrap;
}

.lp-price__amount-large {
  font-size: 15px;
}

.lp-price__amount-small {
  font-size: 9px;
}

/* === 決済方法ボックス === */
.lp-price__payment-box {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 120px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #348dd7;
  border-radius: 0;
}

.lp-price__payment-divider {
  position: absolute;
  left: 120px;
  top: 0;
  width: 150px;
  height: 3px;
  background: white;
}

.lp-price__payment-title {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: 12px;
  line-height: 20px;
  color: #348dd7;
  margin: 0;
  text-align: center;
  width: auto;
  max-width: 90%;
  background-color: #ffffff;
  padding: 0 10px;
  white-space: nowrap;
}

.lp-price__payment-logos {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  margin-top: 8px;
}

.lp-price__payment-image {
  width: 100%;
  height: auto;
  display: block;
}

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

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

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

  .lp-price__cost-box,
  .lp-price__payment-box {
    max-width: 390px;
    height: 100px;
  }

  .lp-price__cost-label {
    font-size: 17px;
    line-height: 30px;
    top: 48px;
  }

  .lp-price__cost-amount {
    top: 68px;
    left: 290px;
    width: 190px;
    line-height: 35px;
  }

  .lp-price__amount-large {
    font-size: 23px;
  }

  .lp-price__amount-small {
    font-size: 12px;
  }

  .lp-price__payment-title {
    font-size: 14px;
    line-height: 24px;
  }
}

/* PC（1024px以上）: 横並びレイアウト */
@media (min-width: 1024px) {
  .lp-price {
    padding: 80px 40px;
  }

  .lp-price__inner {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .lp-price__title {
    font-size: 42px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
  }

  .lp-price__cost-box {
    max-width: 800px;
    height: 220px;
    margin-bottom: 20px;
    padding: 0 30px;
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .lp-price__payment-box {
    max-width: 800px;
    height: 260px;
    padding: 0 30px;
  }

  .lp-price__cost-label {
    font-size: 28px; /* フォント大きく */
    line-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 200px;
  }

  .lp-price__cost-divider {
    width: 120px; /* PC版は縦線を長く */
    height: 1px;
    transform: rotate(90deg);
    flex-shrink: 0;
  }

  .lp-price__cost-right {
    gap: 8px; /* 間隔を詰める */
    flex-shrink: 0;
  }

  .lp-price__cost-badge {
    width: 280px;
    height: 36px;
  }

  .lp-price__badge-text {
    font-size: 26px; /* フォント大きく */
    line-height: 36px;
  }

  .lp-price__cost-amount {
    line-height: 44px;
  }

  .lp-price__amount-large {
    font-size: 42px; /* 値段を大きく */
  }

  .lp-price__amount-small {
    font-size: 24px; /* 単位も大きく */
  }

  .lp-price__payment-title {
    font-size: 20px;
    line-height: 32px;
    white-space: nowrap;
  }

  .lp-price__payment-logos {
    margin-top: 12px;
  }
}
