/* =========================
   Price / Services 共通で使っているスタイル（整理版）
   ※重複・上書きを排除して1本化
   ========================= */

/* ---------------------------------
   Hero（基本 + price用 hero--services）
---------------------------------- */
.hero{
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  border-bottom: 1px solid var(--line);
}

/* 価格ページのHTMLが .hero-inner を使っている前提 */
.hero-inner{
  display:grid;
  gap:20px;
  grid-template-columns:1.2fr .8fr;
  align-items:center;
}
@media (max-width:900px){
  .hero-inner{ grid-template-columns:1fr; }
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eef2ff;
  color:#1e40af;
  border-radius:999px;
  padding:6px 12px;
  font-weight:700;
  font-size:12px;
  border:1px solid #dbeafe;
}

/* 飾り枠（使っている場合のみ） */
.hero-visual{
  aspect-ratio:4/3;
  border-radius:20px;
  border:1px solid var(--line);
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(96,165,250,.2), transparent 60%),
    radial-gradient(800px 400px at 120% 120%, rgba(37,99,235,.15), transparent 55%),
    linear-gradient(135deg,#ffffff,#f8fcff);
}
.hero-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:repeating-linear-gradient(45deg, transparent 0 10px, rgba(37,99,235,.04) 10px 20px);
}

/* price用 hero */
.hero--services{
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(96,165,250,.20), transparent 60%),
    radial-gradient(1200px 600px at 110% 0%, rgba(59,130,246,.18), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.hero--services::after{
  content:"";
  position:absolute;
  inset:auto -40%;
  height:120px;
  top:0;
  background:linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  pointer-events:none;
}

/* Heroリード */
.hero--services .hero-lead{
  margin-top:10px;
  font-size:15px;
  color:var(--muted);
  line-height:1.8;
}

/* Hero内タブ */
.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tab{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  display:inline-block;
}
.tab.active{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}
.price-tabs .tab{
  padding:6px 10px;
  font-size:12px;
}

/* Hero：SP調整 */
.hero.section.hero--services{
  padding-top:24px;
  padding-bottom:24px;
}
@media (max-width:768px){
  .hero.section.hero--services{
    padding-top:16px;
    padding-bottom:16px;
  }
  .hero--services .hero-lead{ display:none; }
  .hero--services .badge{ display:none; }
  .hero--services::after{ content:none !important; display:none !important; }
}

/* ---------------------------------
   汎用：pill
---------------------------------- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#1e40af;
  border:1px solid #dbeafe;
  font-weight:700;
  font-size:12px;
}
.pill--soft{
  background:rgba(239,246,255,.7);
}

/* ---------------------------------
   メインメニュー（カード）
---------------------------------- */
.main-course-grid{ margin-top:14px; }
@media (max-width:900px){
  .main-course-grid{ grid-template-columns:1fr; }
}

.main-course-card{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.main-course-title{
  margin:0 0 8px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  font-size:18px;
  font-weight:800;
  line-height:1.5;
}

/* 画像1枚表示（4:3でフィット） */
#main-menu .main-course-media{
  aspect-ratio:4/3;
  position:relative;
  display:block;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#e5edf8;
}
#main-menu .main-course-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.main-course-desc{
  margin:8px 0 0;
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
}

.main-course-card .course-price-table{
  margin-top:10px;
}

.main-course-cta{
  margin-top:14px;
}
.main-course-cta .btn.btn--brand{
  width:100%;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(135deg,#2563eb,#38bdf8);
  border:none;
  box-shadow:0 12px 26px rgba(37,99,235,.35);
  transform:translateY(0);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.main-course-cta .btn.btn--brand:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(37,99,235,.42);
  opacity:0.96;
}

@media (max-width:768px){
  .main-course-card{ padding:14px; }
  .main-course-title{ font-size:20px; }
}

/* ---------------------------------
   料金テーブル
---------------------------------- */
.course-price-table{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  margin-top:16px;
  font-size:14px;
}
.course-price-table__head,
.course-price-table__row{
  display:grid;
  grid-template-columns:1.6fr .8fr;
  padding:10px 14px;
}
.course-price-table__head{
  background:#f3f4f6;
  font-weight:700;
}
.course-price-table__row:nth-child(even){
  background:#fafafa;
}
.course-price-table .price{
  font-weight:800;
  text-align:right;
}
.course-price-table--inline{ max-width:420px; }
.course-price-table--options{ max-width:520px; margin-top:22px; }

/* ---------------------------------
   オプションメニュー
---------------------------------- */
.opt-grid{ margin-top:14px; }

/* タイトル（下線） */
.opt-card h3{
  margin:0 0 8px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  font-size:18px;
  font-weight:800;
  line-height:1.5;
}
@media (max-width:768px){
  .opt-card h3{ font-size:20px; }
}

/* グリッド間隔 & 割引枠との距離（重なり防止） */
#options .opt-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px !important;
  margin-top:14px;
  margin-bottom:28px;
}
@media (max-width:900px){
  #options .opt-grid{
    grid-template-columns:1fr !important;
    gap:14px !important;
    margin-bottom:20px;
  }
}

/* カード内 */
#options .opt-card{
  display:flex;
  flex-direction:column;
  gap:8px !important;
  height:auto !important;
  position:relative;
  overflow:hidden;
}

/* リード（ピル） */
#options .opt-lead{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:6px 10px;
  border-radius:999px;
  background:#e0f2fe;
  border:1px solid #bae6fd;
  color:#0369a1;
  font-weight:800;
  font-size:14px;
  line-height:1.1;
  margin:2px 0 2px !important;
}

/* 説明文 */
#options .opt-text{
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
  margin-top:4px !important;
  margin-bottom:0 !important;
}

/* 料金（点線との隙間を詰める／auto押し下げを禁止） */
#options .opt-price{
  margin-top:10px !important;
  padding-top:8px;
  border-top:1px dashed var(--line);
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
}
.opt-price-label{ color:var(--muted); }
.opt-price-value{ font-weight:800; font-size:16px; }

/* 割引枠 */
#options .opt-note-card{
  margin-top:18px !important;
  padding:16px;
  background:#ecfdf5;
  border-radius:16px;
  border:1px solid #bbf7d0;
  position:relative;
  z-index:0;
}

/* ---------------------------------
   カード：hoverで動かさない（クリック感を消す）
---------------------------------- */
#main-menu .card,
#options .card,
.pay-grid .pay-card{
  border-color: rgba(148,163,184,.48);
  box-shadow: 0 16px 35px rgba(15,23,42,.12);
  transform:none;
}
#main-menu .card:hover,
#options .card:hover,
.pay-grid .pay-card:hover{
  transform:none;
  box-shadow: 0 16px 35px rgba(15,23,42,.12);
  border-color: rgba(148,163,184,.8);
}

/* JSで高さ揃えする場合：余計なmarginでブレないように */
#main-menu .main-course-desc,
#options .opt-text{
  margin-bottom:0;
}
#main-menu .main-course-pricewrap{ display:block; }

/* ---------------------------------
   当日の流れ（PC：左右交互 / SP：重なり）
---------------------------------- */
.flow{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top:12px;
  position:relative;
}
.flow::before{
  content:"";
  position:absolute;
  left:12px;
  top:4px;
  bottom:4px;
  width:2px;
  background:linear-gradient(to bottom, rgba(148,163,184,.45), transparent 20%, transparent 80%, rgba(148,163,184,.25));
  pointer-events:none;
}
@media (max-width:900px){
  .flow::before{ left:10px; }
}

.flow-step{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:20px;
  align-items:center;
  position:relative;
  padding-left:26px;
}
.flow-step--reverse{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
}
@media (max-width:900px){
  .flow-step,
  .flow-step--reverse{
    grid-template-columns:1fr;
  }
}

/* タイポ（PC） */
.flow .flow-step__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  background:#0f172a;
  color:#e5e7eb;
  font-size:13px;
  font-weight:700;
  letter-spacing:.10em;
  margin-bottom:6px;
}
.flow .flow-step__content h3{
  margin:6px 0 8px;
  font-size:22px;
}
.flow .flow-step__content p{
  margin:0;
  font-size:15px;
  color:var(--muted);
  line-height:1.85;
}

.flow-step__media-inner{
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  overflow:hidden;
  background:#f9fafb;
}
.flow-step__media-inner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* SP：重なりOK（カード/画像とも約6割） */
@media (max-width:768px){

  .flow::before{ display:none; }

  .flow-step,
  .flow-step--reverse{
    position:relative;
    display:block;
    padding-left:0;
    min-height:160px;
  }

  .flow-step__content{
    position:relative;
    z-index:2;
    background:#fff;
    border-radius:14px;
    border:1px solid var(--line);
    box-shadow:0 10px 25px rgba(15,23,42,.10);
    padding:10px 10px 12px;
    width:60%;
  }

  .flow-step__badge{
    padding:5px 10px;
    font-size:12px;
    letter-spacing:.08em;
  }

  .flow-step__content h3{
    font-size:18px;
    margin-top:2px;
  }

  .flow-step__content p{
    font-size:12px;
    line-height:1.55;
  }
  .flow-step__content p br{ display:none !important; }

  .flow-step__media{
    position:absolute;
    width:60%;
    max-width:none;
    z-index:1;
    top:50%;
    transform:translateY(-50%);
  }
  .flow-step__media-inner img{
    height:auto;
    max-height:150px;
    object-fit:cover;
  }

  /* 左カード / 右画像 */
  .flow-step:not(.flow-step--reverse) .flow-step__media{
    right:0; left:auto;
  }
  /* 右カード / 左画像 */
  .flow-step.flow-step--reverse .flow-step__content{
    margin-left:auto;
  }
  .flow-step.flow-step--reverse .flow-step__media{
    left:0; right:auto;
  }
}

/* ---------------------------------
   見出し（料金ページ専用）
---------------------------------- */
.flow-heading{
  position:relative;
  text-align:center;
  font-size:clamp(22px, 2.4vw, 26px);
  margin:0 0 24px;
  font-weight:800;
}
.flow-heading::after{
  content:"";
  display:block;
  width:120px;
  max-width:60%;
  height:2px;
  background:#0f172a;
  margin:10px auto 0;
  opacity:.18;
}
@media (max-width:900px){
  .flow-heading--main{ font-size:26px; }
}

/* ---------------------------------
   お支払い方法
---------------------------------- */
.pay-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:12px;
}
.pay-card{
  padding:18px 12px 20px;
  text-align:center;
  border-radius:20px;
}
.pay-label{
  font-weight:800;
  font-size:16px;
  letter-spacing:.04em;
  margin-bottom:8px;
}
.pay-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:4px;
}
.pay-icon img{
  max-width:80px;
  max-height:80px;
  object-fit:contain;
  display:block;
}

/* タブレットは2列 */
@media (max-width:900px){
  .pay-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
/* スマホは3つ横並びで収める */
@media (max-width:640px){
  .pay-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
  }
  .pay-grid .pay-card{
    padding:10px 6px 12px;
    border-radius:14px;
    box-shadow:none;
  }
  .pay-grid .pay-label{
    font-size:12px;
    margin-bottom:4px;
  }
  .pay-grid .pay-icon img{
    max-width:40px;
    max-height:40px;
  }
}

/* ---------------------------------
   FAQ（開閉UIを強化）
---------------------------------- */
.faq-acc{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.faq-acc details{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
  transition:box-shadow .2s ease, transform .2s ease;
}
.faq-acc details[open]{
  box-shadow:0 10px 30px rgba(15,23,42,.10);
  transform:translateY(-1px);
}
.faq-acc summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.faq-acc summary::-webkit-details-marker{ display:none; }
.faq-acc summary::after{
  content:"+";
  float:right;
  font-weight:700;
  color:var(--muted);
}
.faq-acc details[open] summary::after{ content:"−"; }
.faq-acc p{
  color:var(--muted);
  margin:8px 0 0;
  font-size:14px;
}

/* 料金ページ内の FAQ セクションはSPで非表示 */
@media (max-width:768px){
  .price-faq-section{ display:none; }
}

/* ---------------------------------
   参考：compare/steps/dl（残してOK）
---------------------------------- */
.dl{ display:grid; grid-template-columns:140px 1fr; gap:6px; margin-top:10px; }
.dl div{ padding:4px 0; border-bottom:1px dashed var(--line); }
.dl .k{ color:var(--muted); }

.steps{ display:grid; gap:14px; grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:900px){ .steps{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.step{ padding:14px; border-radius:14px; border:1px solid var(--line); background:#fff; }

.compare{ display:grid; gap:16px; grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (max-width:900px){ .compare{ grid-template-columns:1fr; } }
.comp{ padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.comp h3{ display:flex; align-items:center; gap:8px; }
/* =========================
   FIX: オプションUI崩れ + フロー交互 + STEPピル色
   （整理版の抜け漏れ補完）
   ========================= */

/* --- オプション：カード内余白が抜けていたので復活 --- */
#options .opt-card{
  padding:16px !important;
  border-radius:18px; /* 角丸が崩れてる場合の保険 */
}

/* 以前の「うっすら装飾」が欲しければ復活（不要なら削除OK） */
#options .opt-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at top left, rgba(59,130,246,.06), transparent 60%);
  pointer-events:none;
}

/* 説明文～点線の間が広すぎ/詰めすぎ両対応：自然に */
#options .opt-text{
  margin-top:4px !important;
  margin-bottom:0 !important;
}
#options .opt-price{
  margin-top:10px !important;
  padding-top:8px !important;
}

/* 割引枠とカードの影が重なるのを確実に防ぐ */
#options .opt-grid{
  margin-bottom:28px !important;
}
#options .opt-note-card{
  margin-top:18px !important;
}

/* --- 当日の流れ：PCで左右交互が効くように order を復活 --- */
@media (min-width: 901px){
  .flow-step--reverse .flow-step__content{ order:2; }
  .flow-step--reverse .flow-step__media{ order:1; }
}

/* --- STEPピル：色が変わってしまったので元の水色系に戻す --- */
.flow .flow-step__badge{
  background:#eff6ff !important;
  color:#1e40af !important;
  border:1px solid #dbeafe !important;
}

/* （必要なら）PCのSTEPピルのサイズ感も以前寄せ */
@media (min-width: 769px){
  .flow .flow-step__badge{
    padding:6px 14px !important;
    font-size:13px !important;
    letter-spacing:.10em !important;
  }
}
/* =========================
   当日の流れ（SPだけ）コンパクト化
   ========================= */
@media (max-width: 768px){

  /* STEPピル：起きすぎ → 少し小さく */
  .flow .flow-step__badge{
    padding: 4px 9px !important;
    font-size: 11px !important;
    letter-spacing: .06em !important;
  }

  /* 見出し：少し小さく（メニュー名と同じくらい） */
  .flow .flow-step__content h3{
    font-size: 16px !important;
    margin: 4px 0 6px !important;
    line-height: 1.35 !important;
  }

  /* 説明：少し小さく + 行間詰める（カードを縦長にしない） */
  .flow .flow-step__content p{
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  /* カード自体の余白を詰める */
  .flow .flow-step__content{
    padding: 9px 9px 10px !important;
  }

  /* 画像の見えてる範囲を増やすため、全体の最低高さを下げる */
  .flow .flow-step,
  .flow .flow-step--reverse{
    min-height: 145px !important;
  }

  /* 画像サイズは“重なりは残しつつ”少し見える量を増やす */
  .flow .flow-step__media{
    width: 60% !important;   /* 6割は維持 */
  }
  .flow .flow-step__media-inner img{
    max-height: 140px !important; /* 少しだけ抑えてバランス */
  }
}

/* =========================
   お支払い方法：ホバー強調を無効化（クリックできないため）
   ========================= */

/* pay-card の hover を殺す（影/移動/枠色など） */
.pay-grid .pay-card{
  transform: none !important;
  transition: none !important;
}
.pay-grid .pay-card:hover{
  transform: none !important;
  box-shadow: var(--shadow) !important; /* 通常状態のまま */
  border-color: var(--line) !important; /* 枠線変化させない */
}
/* =========================
   当日の流れ（SP）：説明文の下のムダな隙間を消す
   ========================= */
@media (max-width: 768px){
  /* p のデフォルト margin が残ってると、下に隙間が出ます */
  .flow .flow-step__content p{
    margin: 0 !important;
  }

  /* カード下の余白も少し詰める（必要なら） */
  .flow .flow-step__content{
    padding-bottom: 8px !important;
  }
}

/* =========================
   お支払い方法：hover/touch( active/focus )で一切変化しないように固定
   ========================= */
.pay-grid .pay-card,
.pay-grid .pay-card:hover,
.pay-grid .pay-card:active,
.pay-grid .pay-card:focus,
.pay-grid .pay-card:focus-visible{
  transform: none !important;
  transition: none !important;

  /* 色や枠が変わるのを完全に止める */
  background: #fff !important;
  color: inherit !important;
  border-color: rgba(148,163,184,.8) !important;

  /* 影も固定（ホバーで変化させない） */
  box-shadow: 0 16px 35px rgba(15,23,42,.12) !important;

  /* タップ時のハイライト（青/グレー）も消す */
  -webkit-tap-highlight-color: transparent;
}

/* 念のため、中の要素が色変化してる場合も止める */
.pay-grid .pay-card *{
  transition: none !important;
}
