/* =====================
   SP用（上書き）
   ===================== */

@media screen and (max-width: 768px) {
  /* =========================
    全体（横スクロール防止）
  ========================= */
  html,
  body,
  body#page-jrwest {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  #top {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  /* =========================
    ★ SPヘッダー高さを1箇所で管理
  ========================= */
  :root {
    --sp-header-h: 44px;
  }

  /* ヘッダー固定分だけコンテンツを下げる（80pxは不要） */
  body#page-jrwest {
    padding-top: var(--sp-header-h);
  }

  /* =========================
    固定CTA（下部）
  ========================= */
  .lp-fixed-cta {
    padding: 10px 12px;
    gap: 8px;
  }

  .lp-fixed-cta-btn {
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 固定CTAがある分、本文の下に余白を確保 */
  main {
    padding-bottom: 96px; /* 固定CTAの高さに合わせて微調整OK */
  }

  /* =========================
    ヘッダー
  ========================= */
  .lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
  }

  .lp-header-inner {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--sp-header-h);
    box-sizing: border-box;
  }

  .lp-logo img {
    height: 22px;
  }

  .lp-global-nav--pc {
    display: none;
  }

  .lp-hamburger {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    padding: 0;
    position: relative;
  }
  /* =========================
  SPナビ（display制御方式）
========================= */
  .lp-global-nav--sp {
    position: fixed;
    top: var(--sp-header-h);
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: none; /* 初期は閉じる */
    z-index: 2000;
  }

  .lp-global-nav--sp ul {
    list-style: none;
    margin: 0;
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .lp-global-nav--sp ul li a {
    display: block;
    padding: 8px 0;
    color: #005bac;
    text-decoration: none;
    font-size: 14px;
  }

  /* JSで is-open が付いたら表示 */
  .lp-global-nav--sp.is-open {
    display: block;
  }

  /* =========================
    FV（SP画像の見え方を安定させる）
  ========================= */
  .fv-img--pc {
    display: none;
  }
  .fv-img--sp {
    display: block;
    width: 100%;
    height: auto;
  }

  .lp-fv {
    width: 100%;
    overflow: hidden;
  }

  .lp-fv-visual {
    width: 100%;
  }

  /* もしFV CTAセクションがある場合 */
  .lp-fv-cta {
    background-color: #f98594;
    padding: 14px 8px;
  }

  .lp-fv-cta-btn {
    font-size: 24px;
  }

  .lp-benefit {
    padding: 32px 10px 40px;
  }

  .lp-benefit-inner {
    max-width: 100%;
  }

  .lp-benefit-label {
    margin-bottom: 12px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .lp-benefit-title {
    font-size: 25px;
  }

  .lp-benefit-title-main img {
    vertical-align: -3px;
    height: 26px;
  }

  .lp-benefit-title-strong {
    font-size: 25px;
  }

  .lp-benefit-title-strong img {
    vertical-align: -7px;
    height: 31px;
  }

  .lp-benefit-lead {
    font-size: 18px;
    margin: 32 0px;
  }
  .lp-benefit-note {
    font-size: 11px;
    color: #666;
    text-align: left;
  }
  /* 利用シーン（SP） */
  .lp-scene {
    padding: 20px 16px 48px;
  }

  .lp-scene-list {
    flex-direction: column;
    gap: 36px;
    align-items: center; /* ★ 子要素（矢印含む）を横中央寄せ */
  }

  .lp-scene-head {
    width: 90%;
    min-width: 0;
    font-size: 20px;
    padding: 10px 16px;
    margin-bottom: 1px;
  }

  .lp-scene-img {
    padding: 10px;
    min-height: 170px;
  }

  .lp-scene-caption {
    font-size: 18px;
    margin: 1px;
  }

  .lp-scene-list {
    flex-direction: column;
    gap: 20px;
  }

  .lp-scene-arrow {
    position: static;
    transform: none;
    margin: 12px auto 8px; /* ← ★ 横中央固定（auto） */
    text-align: center; /* ← 念のため中央寄せ */
  }

  .lp-scene-arrow img {
    display: block; /* 画像をブロック化 */
    margin: 0 auto; /* 完全に中央寄せ */
    width: 40px;
    height: auto;
  }

  /* PC用矢印は非表示 */
  .lp-scene-arrow--pc {
    display: none;
  }

  /* SP用矢印を表示して下に配置 */
  .lp-scene-arrow--sp {
    display: block;
    text-align: center;
    margin: 10px 0 0; /* 下に自然に見える余白 */
  }

  .lp-scene-arrow--sp img {
    width: 85px; /* 下矢印は少し小さめが見やすい */
  }
  .lp-feature {
    padding: 50px 16px;
  }

  .lp-feature-title {
    font-size: 25px;
    line-height: 1.6;
    color: #0070c8;
  }

  .lp-feature-lead {
    font-size: 18px;
    margin-bottom: 32px;
    font-weight: 700;
  }

  .lp-plan-heading {
    font-size: 20px;
    margin-bottom: 10px;
  }

  /* SPは横スクロール不要にする */
  .lp-plan-tableWrap {
    max-width: 100%;
    overflow-x: visible; /* スクロール不要 */
  }

  .lp-plan-table {
    width: 100%;
    table-layout: fixed;
    min-width: 0; /* ★最重要：SP幅ぴったりに収める */
    font-size: 12px;
  }

  /* 列幅：SP用に最適化 */
  .lp-plan-table th:nth-child(1),
  .lp-plan-table td:nth-child(1) {
    width: 45%;
  }

  .lp-plan-table th:nth-child(2),
  .lp-plan-table td:nth-child(2) {
    width: 20%;
  }

  .lp-plan-table th:nth-child(3),
  .lp-plan-table td:nth-child(3) {
    width: 35%;
  }
  .lp-plan-table th,
  .lp-plan-table td {
    font-size: 15px;
    padding: 8px 6px;
  }
  /* 料金文字少し小さめに */
  .lp-plan-price-main {
    font-size: 25px;
  }

  .lp-option {
    margin-top: 40px;
  }

  .lp-option-toggle {
    max-width: 100%;
    font-size: 20px;
  }
  .lp-flow {
    padding: 48px 12px 56px;
  }

  .lp-flow-title {
    font-size: 25px;
    line-height: 1.6;
    color: #0070c8;
  }

  .lp-flow-lead {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .lp-flow-block + .lp-flow-block {
    margin-top: 28px;
  }

  /* ステップ縦並び */
  /* 流れ全体の余白調整 */
  .lp-flow {
    padding: 40px 0 50px;
  }

  /* タイトルなどは中央でOK */
  .lp-flow-title {
    font-size: 25px;
    line-height: 1.6;
    color: #0070c8;
  }

  .lp-flow-lead {
    margin-bottom: 24px;
    font-size: 18px;
  }

  /* ステップ全体：縦並び */
  .lp-flow-steps {
    flex-direction: column;
    align-items: center; /* ←幅固定のカードを中央寄せ */
    gap: 20px;
  }

  /* カード幅は画面いっぱいにしない（中央寄せ） */
  .lp-flow-step {
    width: 60%;
    max-width: 320px; /* ←ここがポイント */
  }

  /* カード上部（ステップ表示） */
  .lp-flow-step-head {
    font-size: 13px;
    padding: 6px 0;
  }

  /* 白いカード部分 */
  .lp-flow-step-body {
    padding: 10px 12px;
    border-radius: 0 0 8px 8px;
    padding-bottom: 13px;
  }

  /* ステップのタイトル文字 */
  .lp-flow-step-title {
    font-size: 12px;
    margin-bottom: 6px;
  }

  /* アイコン画像エリアを小さめにする */
  .lp-flow-step-img {
    height: 70px; /* ←アイコンくらいの高さに */
    margin: 0 auto;
  }
  /* CTA */
  .lp-cta {
    padding: 40px 16px;
    background-position: center top;
  }

  .lp-cta-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .lp-cta-btn {
    width: 80%;
    padding: 22px 0;
    font-size: 16px;
  }

  /* footer */
  .lp-footer {
    padding: 16px 0;
    font-size: 11px;
  }

  .lp-feature-list {
    flex-direction: column;
    gap: 16px;
  }

  .lp-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 画像は普通に上に表示 */
  .lp-feature-img {
    position: static !important;
    margin: 16px auto 0 !important;
    width: 100%;
  }

  .lp-feature-img img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* テキストを「重ねない」＆下に余白をつける */
  .lp-feature-text {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 12px 12px 20px !important;
    line-height: 1.6;
    font-size: 20px;
    font-weight: 700;
  }
  .lp-feature-head {
    background-color: #0070c8;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    width: 25%;
    padding: 14px 125px;
    margin: 0 0 16px;
    border-radius: 6px;
  }
  /* ======================================
  SPグローバルナビ（アコーディオン）
  ※ display制御に統一（max-heightは使わない）
====================================== */

  /* 既存調整（影響なし） */
  .lp-acc--blue .lp-acc-btn {
    text-align: left;
  }

  /* SPナビ：まず表示制御だけ勝たせる */
  nav.lp-global-nav.lp-global-nav--sp {
    display: none;
  }

  nav.lp-global-nav.lp-global-nav--sp.is-open {
    display: block !important; /* ←これ重要 */
  }

  .lp-header {
    z-index: 3000;
  }
  .lp-hamburger {
    position: relative;
    z-index: 4000;
  }
  nav.lp-global-nav.lp-global-nav--sp {
    z-index: 3500;
  }
}

.lp-payment-card {
  border-radius: 12px;
  border: 3px solid #0070c8; /* 青枠 */
  height: 120px;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
