/* =====================================================================
   延長・再受講ライセンス（2026-11 追加）
   読み込み：inc/func_extension_rules.php（wp_enqueue_style・更新日時をverに付ける）
   出典：モック v12（事業/MONO塾/プロジェクト/延長プラン_アカウント使い回し調査/成果物/延長制限_モックアップ_v12.html）
   ・本文の部品はテーマの .entry-content h2 等の装飾に負けないよう「.rx 〜」で始める
   ===================================================================== */

/* ---------- 1. マイページ「期限切れ講座」：2回到達・お手続き中 ---------- */
.my-courses .no-extend-box.erx-capped { color: #2c3646; font-size: 13.5px; font-weight: 600; border-style: solid; border-color: #aeb6c2; background: #f6f7f9; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.5; }
.my-courses .erx-capped b { font-weight: 700; }
.my-courses .erx-capped small { display: block; font-size: 12px; font-weight: 600; color: #5b6575; }
.my-courses .erx-capped svg { width: 16px; height: 16px; color: #8a919c; margin-bottom: 2px; }
.my-courses .erx-pending { font-size: 13.5px; text-align: center; padding: 8px 6px; border-radius: 6px; background: #eef3f8; color: #264c73; border: 1px solid #d5e1ec; line-height: 1.5; }
.my-courses .erx-pending b { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; }
.my-courses .erx-pending svg { width: 14px; height: 14px; }
.my-courses .erx-pending small { display: block; font-size: 12.5px; color: #2f4a66; }

/* ---------- 2. カートで断ったときのエラー文（プラグインの .shopping_cart_error の中に出る） ---------- */
.shopping_cart_error .erx-alert { margin: 0 0 22px; }
.erx-alert { text-align: left; display: flex; gap: 14px; align-items: flex-start; background: #fdf1f1; border: 1px solid #f1c7c7; border-radius: 12px; padding: 16px 18px; color: #16243b; font-size: 16px; line-height: 1.8; }
.erx-alert > svg { flex: 0 0 auto; width: 22px; height: 22px; color: #c42b2b; margin-top: 2px; }
.erx-alert b { display: block; font-size: 17px; margin-bottom: 2px; }
.erx-alert a { display: inline-block; margin-top: 8px; color: #264c73; font-weight: 700; text-underline-offset: 3px; }
.erx-alert a svg { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }

/* ---------- 3. 延長購入ページ [ext_buy_page] ---------- */
/* 青い帯・グレーの帯を画面幅いっぱいに広げたときに横スクロールが出ないように */
html:has(.rx-fv), body:has(.rx-fv) { overflow-x: clip; }
/* 送信エラー（JSが無い環境・判定で戻されたとき）の箱 */
.rx .rx-err-box { margin: 0 0 18px; }
.rx .rx-err-box .erx-alert b { display: block; }
.rx .rx-err-box .erx-alert a { display: inline-flex; align-items: center; }
/* =====================================================================
   v12：延長購入ページ（作り込み版）。本番は style_ext_rules.css
   ・サイト標準（/el/）の青い帯／中央見出し＋オレンジ下線／一覧部分の薄いグレー帯を踏襲
   ・白いカード＝極細の線＋ごく薄い影で浮かせる。角丸は大きめ（カード20px・内側12px・ボタン類は丸）
   ・色は紺とオレンジ、申込みボタンだけLPと同じ赤。強調は見出しにつき1か所
   ・本文16px以上・補足14px以上、文字は濃い色（v8の「薄い・小さい」を繰り返さない）
   ===================================================================== */
/* 本番：タイトル帯を消す（ブロックエディタ側にクラスが無い場合の保険として :has を使用） */
article:has(.rx) .entry-header { display: none; }

.rx {
  --rx-navy: #264c73; --rx-navy-ink: #173b5e; --rx-navy-wash: #eef3f8;
  --rx-orange: #ed5901; --rx-orange-ink: #c84b00; --rx-orange-wash: #fff1e8;
  --rx-ink: #1c2430; --rx-ink-2: #3a4554; --rx-muted: #586373;
  --rx-line: #e2e7ed; --rx-line-2: #cfd7e1; --rx-canvas: #f9f9f9;
  --rx-red: #cc0000; --rx-red-dark: #990000; --rx-danger: #c42b2b;
  --rx-r-card: 20px; --rx-r-in: 12px;
  --rx-shadow: 0 0 0 1px rgba(16,32,52,.04), 0 1px 3px rgba(16,32,52,.07), 0 6px 16px -6px rgba(16,32,52,.10);
  --rx-shadow-up: 0 0 0 1px rgba(16,32,52,.05), 0 4px 10px rgba(16,32,52,.08), 0 16px 32px -12px rgba(16,32,52,.18);
  --rx-focus: 0 0 0 3px #fff, 0 0 0 5px #2468ac;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--rx-ink); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
  /* 日本語を文節で折り返す（「プ／ラン」のような泣き別れを防ぐ。未対応ブラウザは通常の折り返し） */
  word-break: auto-phrase; text-wrap: pretty;
}
.rx *, .rx *::before, .rx *::after { box-sizing: border-box; }
/* テーマの見出し・段落・リストの装飾を打ち消す */
body .rx :is(h1, h2, h3, p, ul, li, dl, dt, dd, figure) { margin: 0; padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; color: inherit; }
body .rx :is(h1, h2, h3)::before, body .rx :is(h1, h2, h3)::after { content: none; }
body .rx :is(ul, li) { list-style: none; }
.rx svg { width: 1em; height: 1em; flex: 0 0 auto; }
.rx a:focus-visible, .rx button:focus-visible, .rx input:focus-visible + .rx-check-box { outline: none; box-shadow: var(--rx-focus); }
.rx [hidden] { display: none !important; }
.rx .rx-in { max-width: 880px; margin: 0 auto; }
.rx .rx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rx .rx-pc { display: inline; }

/* ---------- ファーストビュー ---------- */
.rx .rx-fv { position: relative; width: 100vw; margin: 0 calc(50% - 50vw); padding: 40px 24px 44px; color: #fff; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Ccircle cx='300' cy='120' r='78'/%3E%3Ccircle cx='300' cy='120' r='44'/%3E%3Cpath d='M300 20v200M200 120h200' stroke-dasharray='14 4 3 4'/%3E%3Cpath d='M222 120a78 78 0 0 1 78-78' stroke-width='2'/%3E%3Cpath d='M222 250h156M222 238v24M378 238v24'/%3E%3C/g%3E%3C/svg%3E") no-repeat right max(-60px, calc(50vw - 760px)) top -20px / 420px 300px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M40 60h180v120H40z'/%3E%3Ccircle cx='130' cy='120' r='32'/%3E%3Cpath d='M130 70v100M80 120h100' stroke-dasharray='14 4 3 4'/%3E%3Cpath d='M40 215h180M40 200v30M220 200v30'/%3E%3C/g%3E%3C/svg%3E") no-repeat left max(-60px, calc(50vw - 760px)) bottom 10px / 360px 260px,
    radial-gradient(900px 420px at 30% 62%, rgba(120,190,245,.22), rgba(120,190,245,0) 70%),
    linear-gradient(180deg, #2468ac 0%, #2a74b8 45%, #3a88cc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.rx .rx-fv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 24px; }
.rx .rx-fv-for { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); border-radius: 999px; padding: 4px 14px; }
.rx .rx-fv-for::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffe24d; }
.rx .rx-fv-h1 { margin-top: 14px !important; font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; color: #fff; }
.rx .rx-fv-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px !important; font-size: 20px; font-weight: 700; }
/* 見出しの強調は1か所だけ：黄色の札 */
.rx .rx-hl { display: inline-block; font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: .02em; color: var(--rx-navy-ink); background: #ffe24d; border-radius: 8px; padding: 2px 12px 3px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.rx .rx-fv-lead { margin-top: 16px !important; font-size: 17px; font-weight: 600; color: #e8f2fb; }
.rx .rx-fv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.rx .rx-jump { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 8px; background: var(--rx-orange-ink); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.rx .rx-jump:hover { background: #a63e00; color: #fff; transform: translateY(-1px); }
.rx .rx-jump svg { font-size: 18px; }
.rx .rx-jump { justify-content: center; }
.rx .rx-jump-tx { display: flex; flex-direction: column; align-items: center; }
.rx .rx-jump-main { display: block; }
.rx .rx-jump-sub { font-size: 13.5px; font-weight: 700; color: #ffe0cc; letter-spacing: .06em; }
.rx .rx-from { font-size: 14px; font-weight: 700; color: #e8f2fb; }
.rx .rx-from b { font-size: 19px; color: #fff; letter-spacing: .01em; margin-right: 1px; font-feature-settings: "tnum"; }
/* ハグミー（ステッカー風）＋吹き出し */
.rx .rx-fv-hagumi { position: relative; display: flex; flex-direction: column; align-items: center; align-self: end; margin-bottom: -20px; } /* 画像の下の透明部分（150px表示で20px）を差し引き、足元をボタンの下端にそろえる */
.rx .rx-say { position: relative; width: 100%; background: #fff; color: var(--rx-ink); font-size: 15.5px; font-weight: 700; line-height: 1.65; text-align: center; border-radius: 16px; padding: 14px 16px; filter: drop-shadow(0 6px 14px rgba(0,30,70,.22)); }
/* 吹き出しの「どんな人向けか」：リンクと見分けがつくよう、下線ではなく下半分の薄いマーカー（「ご本人のみ」と同じ色） */
.rx .rx-say-key { background: linear-gradient(transparent 62%, #ffdcc2 62%); padding: 0 1px; }
/* 吹き出し：見出し＋チェック付きの2項目 */
.rx .rx-say { text-align: left; padding: 14px 18px 15px; }
.rx .rx-say-h { display: block; font-size: 14px; font-weight: 700; color: var(--rx-navy); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--rx-line-2); }
.rx .rx-say-list { display: grid; gap: 4px; }
.rx .rx-say-li { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--rx-ink); line-height: 1.5; }
.rx .rx-say-li svg { flex: 0 0 auto; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--rx-navy); color: #fff; stroke-width: 3; }
.rx .rx-say::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: #fff; }
.rx .rx-fv-hagumi img { width: 150px; height: 150px; margin-top: 10px; filter: drop-shadow(0 0 0 #fff) drop-shadow(0 6px 10px rgba(0,30,70,.28)); }

/* ---------- セクション共通 ---------- */
.rx .rx-sec { padding: 56px 0 8px; }
.rx .rx-h2 { text-align: center; color: var(--rx-navy); font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; margin-bottom: 30px !important; }
.rx .rx-h2::after { content: "" !important; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--rx-orange); margin: 14px auto 0; }

/* 3つの特長（白いカード×3） */
.rx .rx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rx .rx-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic k" "ic v"; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); box-shadow: var(--rx-shadow); padding: 18px 20px; }
.rx .rx-fact-ic { grid-area: ic; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--rx-navy-wash); color: var(--rx-navy); font-size: 24px; }
.rx .rx-fact-k { grid-area: k; font-size: 14px; font-weight: 700; color: var(--rx-muted); letter-spacing: .06em; }
.rx .rx-fact-v { grid-area: v; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--rx-ink); }
.rx .rx-fact-off .rx-fact-ic { background: var(--rx-orange-wash); color: var(--rx-orange-ink); }
.rx .rx-fact-off b { font-size: 22px; color: var(--rx-orange-ink); letter-spacing: .01em; }

/* テキスト・特典講座（罫線の表） */
.rx .rx-notes { margin-top: 24px !important; border-top: 1px solid #aeb9c6; }
.rx .rx-note-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid #c3ccd7; }
.rx .rx-notes dt { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--rx-ink-2); }
.rx .rx-notes dt svg { color: var(--rx-navy); font-size: 17px; }
.rx .rx-notes dd { font-size: 16px; color: var(--rx-ink); }
.rx .rx-tag { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 700; line-height: 1; color: var(--rx-ink-2); border: 1px solid var(--rx-line-2); border-radius: 999px; padding: 3px 9px 4px; vertical-align: middle; position: relative; top: -1px; }

/* ---------- お申込み ---------- */
.rx .rx-apply { width: 100vw; margin: 56px calc(50% - 50vw) 0; padding: 52px 24px 64px; background: var(--rx-canvas); border-top: 1px solid #e6e6e6; scroll-margin-top: 0; }

/* 確認カード */
.rx .rx-confirm { background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); box-shadow: var(--rx-shadow); padding: 24px 28px; transition: border-color .2s, box-shadow .2s; }
.rx .rx-confirm-head { display: flex; align-items: center; gap: 12px; }
.rx .rx-confirm-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--rx-navy-wash); color: var(--rx-navy); font-size: 20px; }
.rx .rx-confirm-h { font-size: 19px; font-weight: 700; color: var(--rx-ink); }
.rx .rx-rules { display: grid; gap: 6px; margin-top: 14px !important; }
.rx .rx-rules li { position: relative; padding-left: 18px; font-size: 16.5px; line-height: 1.7; color: var(--rx-ink); }
.rx .rx-rules li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--rx-navy); }
.rx .rx-rule-sub { color: var(--rx-ink-2); }
.rx .rx-rule-ex { display: block; margin-top: 2px; padding-left: 1em; font-size: 14.5px; line-height: 1.6; color: var(--rx-ink-2); }
.rx .rx-key { font-weight: 700; background: linear-gradient(transparent 62%, #ffdcc2 62%); padding: 0 2px; }
.rx .rx-rules-note { margin-top: 8px !important; font-size: 14.5px; color: var(--rx-ink-2); }
.rx .rx-rules-note a, .rx .rx-rule-ex a { color: var(--rx-navy); font-weight: 700; text-underline-offset: 3px; }
/* チェック欄：行全体が押せる大きなボタン */
.rx .rx-check { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 18px; border: 1.5px solid var(--rx-line-2); border-radius: var(--rx-r-in); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.rx .rx-check:hover { border-color: var(--rx-navy); }
.rx .rx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rx .rx-check-box { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #5b6575; border-radius: 7px; background: #fff; transition: background .15s, border-color .15s; }
.rx .rx-check-box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.rx .rx-check-text { font-size: 17px; font-weight: 700; color: var(--rx-ink); }
.rx .rx-req { margin-left: -2px; flex: 0 0 auto; font-size: 12.5px; font-weight: 700; line-height: 1; color: #fff; background: var(--rx-red); border-radius: 999px; padding: 5px 10px; letter-spacing: .04em; }
.rx .rx-check input:checked + .rx-check-box { background: var(--rx-navy); border-color: var(--rx-navy); }
.rx .rx-check input:checked + .rx-check-box::after { opacity: 1; }
.rx .rx-check:has(input:checked) { border-color: var(--rx-navy); background: var(--rx-navy-wash); }
.rx .rx-check:has(input:checked) .rx-req { background: var(--rx-navy); }
.rx .rx-req-on { display: none; }
.rx .rx-check:has(input:checked) .rx-req-off { display: none; }
.rx .rx-check:has(input:checked) .rx-req-on { display: inline; }
.rx .rx-nw { white-space: nowrap; }
.rx .rx-error { display: none; align-items: center; gap: 8px; margin-top: 10px !important; font-size: 15px; font-weight: 700; color: var(--rx-danger); }
.rx .rx-confirm.is-error { border-color: var(--rx-danger); box-shadow: 0 0 0 4px rgba(196,43,43,.12); }
.rx .rx-confirm.is-error .rx-check { border-color: var(--rx-danger); background: #fdf1f1; }
.rx .rx-confirm.is-error .rx-error { display: flex; }
.rx .rx-confirm.is-ok { border-color: #b9cbe0; }

/* プランカード */
.rx .rx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px !important; }
.rx .rx-plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); box-shadow: var(--rx-shadow); padding: 22px 22px 22px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.rx .rx-plan:hover { box-shadow: var(--rx-shadow-up); transform: translateY(-2px); border-color: var(--rx-line-2); }
.rx .rx-plan-term { font-size: 16px; font-weight: 700; color: var(--rx-ink-2); padding-bottom: 14px !important; border-bottom: 1px dashed var(--rx-line-2) !important; }
.rx .rx-plan-term b { font-size: 34px; line-height: 1; color: var(--rx-navy); margin-right: 3px; font-feature-settings: "tnum"; }
.rx .rx-plan-price { margin-top: 16px !important; font-size: 17px; font-weight: 700; color: var(--rx-ink); }
.rx .rx-plan-price b { font-size: 34px; line-height: 1.1; letter-spacing: -.01em; font-feature-settings: "tnum"; }
.rx .rx-plan-price small { font-size: 14px; font-weight: 700; color: var(--rx-ink-2); margin-left: 2px; }
.rx .rx-plan-per { align-self: flex-start; margin-top: 8px !important; font-size: 14px; font-weight: 700; color: var(--rx-ink-2); background: var(--rx-canvas); border: 1px solid var(--rx-line); border-radius: 999px; padding: 2px 12px; }
/* 料金：通常のLPと同じく税別を大きく、税込を1段小さく濃い色で添える（総額表示のため税込は小さくしすぎない） */
.rx .rx-plan-tax { margin-top: 4px !important; font-size: 15px; font-weight: 700; color: var(--rx-ink-2); font-feature-settings: "tnum"; }
/* 申込みボタン：LPの申込ボタン（.lp-cta / .pv2-primary）と同じ指定 */
.rx .rx-cta { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 20px; border: 0; border-radius: 7px; background: var(--rx-red); color: #fff; font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 3px 0 var(--rx-red-dark); cursor: pointer; transition: background .15s; }
.rx .rx-cta:hover { background: #b80000; }
.rx .rx-cta:active { transform: translateY(3px); box-shadow: none; }
.rx .rx-cta svg { font-size: 16px; transition: transform .15s; }
.rx .rx-cta:hover svg { transform: translateX(2px); }

/* 補足（再開時期・支払い方法） */
.rx .rx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #cdd3da; }
.rx .rx-foot-note { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--rx-ink); }
.rx .rx-foot-note svg { color: var(--rx-navy); font-size: 18px; }
.rx .rx-foot-note { align-items: flex-start; }
.rx .rx-foot-note svg { margin-top: .25em; } /* 2行になったので、時計のアイコンは1行目の高さにそろえる */
.rx .rx-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--rx-ink-2); }
.rx .rx-pay-k { font-weight: 700; margin-right: 2px; }
.rx .rx-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--rx-line-2); border-radius: 999px; padding: 3px 11px; font-weight: 600; }
.rx .rx-chip svg { color: var(--rx-navy); }
.rx .rx-pay-once { font-weight: 600; color: var(--rx-ink-2); }

/* 上限到達（予備表示） */
.rx .rx-limit { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); box-shadow: var(--rx-shadow); padding: 24px 28px; }
.rx .rx-limit-ic { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--rx-canvas); border: 1px solid var(--rx-line); color: var(--rx-ink-2); font-size: 20px; }
.rx .rx-limit-h { font-size: 19px; font-weight: 700; margin-bottom: 4px !important; }
.rx .rx-limit p { color: var(--rx-ink-2); }
.rx .rx-outline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--rx-navy); border-radius: 999px; color: var(--rx-navy); font-weight: 700; text-decoration: none; }
.rx .rx-outline:hover { background: var(--rx-navy-wash); }


@media (prefers-reduced-motion: reduce) { .rx *, .rx *::before, .rx *::after { transition: none !important; } .rx .rx-plan:hover, .rx .rx-jump:hover { transform: none; } }

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  .rx { font-size: 16px; }
  .rx .rx-pc { display: none; }
  .rx .rx-fv { padding: 22px 16px 26px; }
  .rx .rx-fv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rx .rx-fv-for { font-size: 12.5px; letter-spacing: .06em; padding: 3px 12px; }
  .rx .rx-fv-h1 { margin-top: 10px !important; font-size: 26px; }
  .rx .rx-fv-kind { font-size: 16px; margin-top: 8px !important; }
  .rx .rx-hl { font-size: 21px; padding: 1px 10px 2px; }
  .rx .rx-fv-lead { margin-top: 12px !important; font-size: 15px; }
  .rx .rx-fv-cta { margin-top: 16px; gap: 8px; }
  .rx .rx-jump { width: 100%; justify-content: center; min-height: 52px; font-size: 17px; }
  .rx .rx-from { width: 100%; text-align: center; }
  .rx .rx-fv-hagumi { flex-direction: row; align-items: center; gap: 4px; align-self: auto; margin-bottom: 0; }
  .rx .rx-say { flex: 1 1 auto; text-align: left; font-size: 14.5px; padding: 11px 14px; border-radius: 14px; }
  .rx .rx-say-h { font-size: 13px; margin-bottom: 5px; padding-bottom: 5px; }
  .rx .rx-say-li { font-size: 14.5px; gap: 7px; }
  .rx .rx-say-li svg { width: 16px; height: 16px; }
  .rx .rx-say::after { left: auto; right: -8px; top: 50%; bottom: auto; margin: -8px 0 0; border: 8px solid transparent; border-right: 0; border-left-color: #fff; }
  .rx .rx-fv-hagumi img { width: 76px; height: 76px; margin: 0 0 0 8px; }
  .rx .rx-sec { padding-top: 36px; }
  .rx .rx-h2 { font-size: 21px; margin-bottom: 20px !important; }
  .rx .rx-h2::after { margin-top: 10px; }
  .rx .rx-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rx .rx-fact { padding: 14px 16px; border-radius: 16px; }
  .rx .rx-fact-ic { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
  .rx .rx-fact-v br { display: none; }
  .rx .rx-fact-v { font-size: 16px; }
  .rx .rx-fact-off b { font-size: 19px; }
  .rx .rx-note-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 2px; }
  .rx .rx-apply { margin-top: 40px; padding: 30px 16px 44px; scroll-margin-top: 0; }
  .rx .rx-confirm { padding: 16px; border-radius: 16px; }
  .rx .rx-confirm-ic { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .rx .rx-confirm-h { font-size: 17px; }
  .rx .rx-rules { margin-top: 10px !important; gap: 4px; }
  .rx .rx-rules li { font-size: 15.5px; }
  .rx .rx-rules-note { font-size: 13.5px; }
  .rx .rx-check { margin-top: 12px; padding: 13px 14px; gap: 10px; }
  .rx .rx-check-text { font-size: 16px; }
  .rx .rx-plans { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px !important; }
  .rx .rx-plan { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "term price" "term tax" "term per" "btn btn"; column-gap: 10px; align-items: center; padding: 14px 16px; border-radius: 16px; }
  .rx .rx-plan-tax { grid-area: tax; justify-self: end; margin-top: 2px !important; font-size: 13.5px; white-space: nowrap; }
  .rx .rx-plan:hover { transform: none; }
  .rx .rx-plan-term { grid-area: term; padding: 0 !important; border: 0 !important; font-size: 14px; white-space: nowrap; }
  .rx .rx-plan-term b { font-size: 26px; }
  .rx .rx-plan-price { grid-area: price; margin: 0 !important; text-align: right; font-size: 15px; white-space: nowrap; }
  .rx .rx-plan-price b { font-size: 25px; }
  .rx .rx-plan-price small { font-size: 12.5px; }
  .rx .rx-plan-per { grid-area: per; justify-self: end; margin-top: 4px !important; font-size: 12.5px; padding: 1px 10px; white-space: nowrap; }
  .rx .rx-cta { grid-area: btn; margin-top: 12px; min-height: 48px; font-size: 16px; }
  .rx .rx-foot { margin-top: 18px; padding-top: 16px; }
  .rx .rx-foot-note { font-size: 14.5px; }
  .rx .rx-limit { padding: 18px; }
}


/* ---------- テストサイトでの調整（2026-11-14） ---------- */
/* ナビの下の余白（テーマの .site-content の上マージン24px）をなくし、青い帯をナビに付ける */
body:has(.rx-fv) .site-content { margin-top: 0; }
/* テーマの header 要素の中央寄せを打ち消す（帯の中は左寄せ） */
.rx .rx-fv { text-align: left; }
