/* ============================================================
   北浜矯正サイト リッチ版テストページ専用スタイル
   page-top-richtest.php からのみ読み込まれる独立CSS。
   共有 style.css とは別ファイルで本番サイトに影響しない。
   ============================================================ */
/* ===== リッチ版テスト: 新セクション用インラインCSS（共有style.cssには未反映の差分のみ） ===== */
/* ===== 共通 ===== */
.new-plans-lead { font-size: 16px; line-height: 1.8; margin-bottom: 40px; color: #4a4a4a; }
.new-plans-disclaimer { text-align: center; font-size: 12px; color: #6b6b6b; background: #fafafa; padding: 14px; border-radius: 8px; line-height: 1.7; }

/* ===== リッチデザイン ===== */
.sec-rich-plans { padding: 70px 0 90px; background: linear-gradient(180deg, #f2fafb 0%, #ffffff 55%); }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 32px; align-items: stretch; }
.rp-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 90, 100, 0.10); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.rp-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0, 90, 100, 0.16); }
/* 白ベース + 上辺カラーライン + マーカー線で軽くポップに (01=イエロー / 02=コーラル / 03=ティール) */
.rp-card:nth-child(1) { border-top: 6px solid #f5d83f; }
.rp-card:nth-child(2) { border-top: 6px solid #ff8091; }
.rp-card:nth-child(3) { border-top: 6px solid #2f9aa3; }
.rp-head { position: relative; padding: 24px 22px 6px; background: #fff; }
.rp-num { position: absolute; top: 8px; right: 16px; font-family: Dosis, sans-serif; font-size: 60px; font-weight: 700; opacity: 0.25; line-height: 1; }
.rp-head--01 .rp-num { color: #e8c52c; }
.rp-head--02 .rp-num { color: #ff8091; }
.rp-head--03 .rp-num { color: #2f9aa3; }
.rp-head h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; line-height: 1.55; color: #21474b; letter-spacing: 0.02em; }
.rp-marker { display: table; padding: 0 4px; }
.rp-head--01 .rp-marker { background: linear-gradient(transparent 62%, rgba(245, 216, 63, 0.55) 62%); }
.rp-head--02 .rp-marker { background: linear-gradient(transparent 62%, rgba(255, 128, 145, 0.38) 62%); }
.rp-head--03 .rp-marker { background: linear-gradient(transparent 62%, rgba(110, 196, 205, 0.48) 62%); }
.rp-catch { font-size: 12.5px; margin: 0; color: #6b6b6b; line-height: 1.6; }
.rp-body { padding: 16px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rp-price { text-align: center; padding: 8px 0 14px; }
/* ヒーローと同じ黄色マーカー風ハイライト */
.rp-price-main { font-size: 33px; font-weight: 900; color: #222; line-height: 1.15; display: inline-block; padding: 0 8px; background: linear-gradient(transparent 62%, rgba(245, 245, 53, 0.55) 62%); }
.rp-price-main small { font-size: 12px; font-weight: 700; color: #8a8a8a; margin-left: 6px; }
/* 税込価格（小さく併記） */
.rp-price-tax { font-size: 13px; font-weight: 700; color: #6b6b6b; margin-top: 3px; letter-spacing: .02em; }
.rp-monthly { display: inline-block; background: #fff0f3; color: #e0566f; border-radius: 50px; padding: 5px 18px; font-size: 12.5px; margin-top: 8px; font-weight: 700; }
.rp-monthly strong { font-size: 17px; }
.rp-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.rp-spec { background: #f1f9fa; border-radius: 12px; padding: 10px 4px; text-align: center; }
/* プランごとの淡いカラーティント + アイコン色 (文字は濃色のまま可読性維持) */
.rp-card:nth-child(1) .rp-spec { background: #fffbe6; }
.rp-card:nth-child(2) .rp-spec { background: #fff1f3; }
.rp-card:nth-child(3) .rp-spec { background: #edf7f8; }
.rp-card:nth-child(1) .rp-spec svg { color: #d9a514; }
.rp-card:nth-child(2) .rp-spec svg { color: #f76c81; }
.rp-card:nth-child(3) .rp-spec svg { color: #008080; }
.rp-spec svg { width: 20px; height: 20px; color: #008080; margin-bottom: 4px; }
.rp-spec-label { font-size: 10px; color: #5f8a8e; display: block; margin-bottom: 2px; }
.rp-spec-value { font-size: 12px; font-weight: 700; color: #0e5f66; line-height: 1.3; display: block; }
.rp-details { margin-bottom: 18px; border: 1px solid #d9eef0; border-radius: 12px; overflow: hidden; }
.rp-details summary { padding: 12px 16px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: #008080; background: #f4fbfc; list-style: none; position: relative; user-select: none; }
.rp-details summary::-webkit-details-marker { display: none; }
.rp-details summary::after { content: "\25BE"; position: absolute; right: 16px; transition: transform .25s; }
.rp-details[open] summary::after { transform: rotate(180deg); }
.rp-details-inner { padding: 14px 16px 16px; }
.rp-h4 { font-size: 13px; font-weight: 700; color: #008080; margin: 14px 0 6px; padding-left: 9px; border-left: 3px solid #87D0D9; line-height: 1.4; }
.rp-h4:first-child { margin-top: 0; }
.rp-list { list-style: none; padding: 0; margin: 0; }
.rp-list li { font-size: 13px; padding: 3px 0 3px 20px; position: relative; line-height: 1.55; }
.rp-list-life li::before { content: "\2665"; position: absolute; left: 3px; color: #d97a4e; font-size: 10px; }
.rp-list-ok li::before { content: "\2713"; position: absolute; left: 1px; color: #5a8a4e; font-weight: 700; }
.rp-list-ng li::before { content: "\2212"; position: absolute; left: 1px; color: #8a8a8a; font-weight: 700; }
.rp-img-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin: 12px 0 4px; padding: 11px 12px; border: 1.5px solid #87D0D9; background: #fff; color: #008080; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s; font-family: inherit; }
.rp-img-btn:hover { background: #f4fbfc; }
.rp-img-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
/* CTAはLP既存の予約ボタンと同じコーラル系で統一 */
.rp-cta { margin-top: auto; display: block; background: linear-gradient(135deg, #f76c81, #ff9aa8); color: #fff; text-align: center; padding: 15px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 14.5px; box-shadow: 0 6px 18px rgba(247, 108, 129, 0.38); transition: transform .2s, box-shadow .2s; }
.rp-cta::after { content: " \2192"; }
.rp-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(247, 108, 129, 0.5); }
/* 3プランの最後にまとめて置く単一CTA */
.rp-cta-wrap { text-align: center; margin: 30px 0 6px; }
.rp-cta--single { margin: 0 auto; max-width: 460px; padding: 18px 24px; font-size: 16px; }
/* 詳細ボックスは常時表示（トグル廃止） */
.rp-details--static { margin-bottom: 18px; }

/* ===== モーダル ===== */
.rp-modal { position: fixed; inset: 0; display: none; z-index: 10000; }
.rp-modal.is-open { display: block; }
.rp-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 40, 45, 0.55); cursor: pointer; }
.rp-modal-box { position: relative; max-width: 860px; margin: 6vh auto; background: #fff; border-radius: 16px; padding: 30px 30px 24px; max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3); }
.rp-modal-close { position: absolute; top: 8px; right: 14px; font-size: 28px; background: none; border: none; cursor: pointer; color: #5f8a8e; line-height: 1; padding: 6px; }
.rp-modal-title { font-size: 18px; font-weight: 700; color: #008080; margin: 0 0 18px; text-align: center; line-height: 1.5; }
.rp-modal-title span { display: block; font-size: 13px; color: #6b6b6b; font-weight: 600; margin-top: 2px; }
.rp-modal-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-modal-imgs figure { margin: 0; }
.rp-modal-imgs img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid #e0eff1; }
.rp-modal-imgs figcaption { text-align: center; font-size: 12.5px; color: #4a4a4a; margin-top: 8px; font-weight: 600; }
.rp-modal-note { font-size: 11.5px; color: #8a8a8a; text-align: center; margin: 18px 0 0; line-height: 1.7; }

/* ===== デスクトップ: 3カードの頭を揃える (実測: h3最大82px / catch最大60px) ===== */
@media only screen and (min-width: 769px) {
  .rp-head h3 { min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .rp-catch { min-height: 60px; }
}

/* ===== タブレット ===== */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
  .rp-grid { gap: 16px; }
  .rp-head h3 { font-size: 17px; }
  .rp-price-main { font-size: 28px; }
}

/* ===== モバイル ===== */
@media only screen and (max-width: 768px) {
  .sec-rich-plans { padding: 50px 0 60px; }
  .rp-grid { grid-template-columns: 1fr; gap: 28px; }
  .rp-head { padding: 20px 18px 16px; }
  .rp-head h3 { font-size: 19px; }
  .rp-body { padding: 12px 18px 20px; }
  .rp-price-main { font-size: 30px; }
  .rp-modal-box { margin: 4vh 12px; padding: 24px 18px 20px; }
  .rp-modal-imgs { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== 比較表(モダン版) =====
   テーマの旧テーブル装飾(#hikaku table th { background:#4293B8; color:#fff; width:20%; font-size:120%; padding:1em 0 } /
   #hikaku table { border:2px solid #87D0D9 } / #hikaku td:nth-child(2)=黄,nth-child(4)=薄青 等)が
   被さるため、ID込みの詳細度で全プロパティを明示上書きする */
#hikaku .cmpx-wrap { max-width: 980px; margin: 0 auto 90px; }
#hikaku .cmpx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 90, 100, 0.10); background: #fff; }
#hikaku table.cmpx { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; background: #fff; border: none; margin: 0; }
#hikaku table.cmpx th, #hikaku table.cmpx td { width: auto; padding: 0; border: none; background: transparent; color: #2a2a2a; font-size: 13px; line-height: 1.5; text-align: left; vertical-align: middle; box-sizing: border-box; }
/* 見出し行: 白ベース */
#hikaku table.cmpx thead th { background: #fff; font-size: 15px; font-weight: 700; color: #21474b; line-height: 1.4; text-align: center; padding: 16px 12px 13px; border-bottom: 2px solid #E4F2F4; }
#hikaku table.cmpx thead th small { display: block; font-size: 10px; color: #8a8a8a; font-weight: 600; margin-top: 3px; letter-spacing: .06em; }
/* 条件列(行ヘッダー): 薄ティール */
#hikaku table.cmpx tbody th { background: #f4fbfc; font-weight: 700; color: #00686b; font-size: 13px; width: 136px; min-width: 136px; padding: 14px 12px; text-align: left; vertical-align: middle; position: sticky; left: 0; z-index: 1; border-bottom: 1px solid #E4F2F4; line-height: 1.45; }
#hikaku table.cmpx .cmpx-corner { background: #fff; position: sticky; left: 0; z-index: 2; border-bottom: 2px solid #E4F2F4; }
/* 条件名の頭にコーラルのドット(親しみ差し色) */
#hikaku table.cmpx tbody th::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff8091; margin-right: 8px; vertical-align: middle; }
/* データセル: チップ+左揃えテキストの横並びでコンパクトに */
#hikaku table.cmpx tbody td { padding: 10px 14px; border-bottom: 1px solid #E4F2F4; background: #fff; }
#hikaku .cmpx-c { display: flex; align-items: center; gap: 10px; }
#hikaku table.cmpx td p { margin: 0; font-size: 12px; color: #4a4a4a; line-height: 1.6; text-align: left; flex: 1; }
/* インビザライン列の強調 (テーマのnth-child黄/薄青を打ち消しつつ) */
#hikaku table.cmpx td:nth-child(2), #hikaku table.cmpx td:nth-child(3), #hikaku table.cmpx td:nth-child(4) { background: #fff; }
#hikaku table.cmpx tbody td.cmpx-invis { background: #f0fafa; border-left: 2px solid #87D0D9; border-right: 2px solid #87D0D9; }
#hikaku table.cmpx tbody td.cmpx-invis p { color: #21474b; font-weight: 600; }
#hikaku table.cmpx thead th.cmpx-invis { background: linear-gradient(180deg, #eefafa 0%, #fff 100%); border-top: 4px solid #2f9aa3; border-left: 2px solid #87D0D9; border-right: 2px solid #87D0D9; color: #0e5f66; }
#hikaku .cmpx-badge { display: block; width: fit-content; margin: 0 auto 7px; background: linear-gradient(135deg, #ff8091, #ffa3ad); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 15px; border-radius: 20px; letter-spacing: .08em; box-shadow: 0 3px 9px rgba(255,128,145,.34); }
/* 最下行 + 行ホバー */
#hikaku table.cmpx tbody tr:last-child th, #hikaku table.cmpx tbody tr:last-child td { border-bottom: none; }
#hikaku table.cmpx tbody td.cmpx-invis:last-of-type, #hikaku table.cmpx tbody tr:last-child td.cmpx-invis { border-bottom: 2px solid #87D0D9; }
#hikaku table.cmpx tbody tr:hover td { background: #fbfdfd; }
#hikaku table.cmpx tbody tr:hover td.cmpx-invis { background: #e9f7f7; }
/* 評価記号: 囲み円なし・記号そのものを大きく色付きで */
#hikaku .rate { display: inline-block; flex-shrink: 0; width: 34px; text-align: center; font-weight: 700; font-size: 26px; line-height: 1; }
#hikaku .rate-a { color: #2f9aa3; }
#hikaku .rate-b { color: #5fb9c1; }
#hikaku .rate-c { color: #f0a23a; }
#hikaku .rate-d { color: #c4bdba; }

/* ===== 目次(モダン版) ===== */
.sec-mokuji { padding: 44px 16px; }
.mk-card { max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid #E4F2F4; border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 90, 100, 0.08); padding: 26px 30px 28px; }
.mk-title { text-align: center; font-size: 18px; font-weight: 700; color: #21474b; margin: 0 0 18px; }
.mk-title .mk-en { display: block; font-family: Dosis, sans-serif; font-size: 11px; letter-spacing: .3em; color: #87D0D9; margin-bottom: 2px; }
.mk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.mk-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: #21474b; text-decoration: none; line-height: 1.45; transition: background .2s, color .2s; }
.mk-list a:hover { background: #f0fafa; color: #008080; }
.mk-list i { font-style: normal; font-family: Dosis, sans-serif; font-weight: 700; font-size: 12px; color: #fff; background: #87D0D9; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-list a::after { content: "\203A"; margin-left: auto; color: #87D0D9; font-weight: 700; }

/* ===== 追従ナビ ===== */
/* 本番テーマ用に top:0 に設定（プレビューのバナーオフセット44pxを除去）。テーマに固定ヘッダーがある場合はその高さに合わせて要調整 */
.sticky-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 12px rgba(0, 60, 70, 0.12); display: flex; align-items: center; gap: 8px; padding: 8px 12px; transform: translateY(-130%); transition: transform .3s ease; }
.sticky-nav.is-shown { transform: translateY(0); }
.sticky-nav-links { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; scrollbar-width: none; }
.sticky-nav-links::-webkit-scrollbar { display: none; }
.sticky-nav-links a { white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #21474b; text-decoration: none; padding: 7px 11px; border-radius: 18px; }
.sticky-nav-links a:hover { background: #f0fafa; color: #008080; }
.sticky-nav-cta { flex-shrink: 0; background: linear-gradient(135deg, #f76c81, #ff9aa8); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 20px; text-decoration: none; box-shadow: 0 3px 10px rgba(247, 108, 129, 0.35); }
.sticky-nav-cta:hover { color: #fff; }
html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 110px; }

@media only screen and (max-width: 768px) {
  .mk-list { grid-template-columns: 1fr; }
  .mk-card { padding: 20px 16px; }
}
