/* QEX Network Guide — Official brand theme v19.
   Visual overrides only. No JavaScript or simulator logic changed. */
:root {
 color-scheme:light;
 --bg:#ffffff;--panel:#ffffff;--panel2:#f6f6f4;--stroke:#e7e6ea;
 --fg:#16141d;--sub:#5c5964;--purple:#4c3f86;--blue:#2b91cc;--mint:#16876d;
 --card:#ffffff;--edge:#e7e6ea;--tx:#16141d;--dim:#5c5964;--accent:#4c3f86;--cyan:#278ec6;
 --text:#16141d;--muted:#5c5964;--surface:#ffffff;--surface2:#f6f6f4;--line:#e7e6ea;--violet:#4c3f86;--aqua:#278ec6;
}
html {color-scheme:light}
body {background:radial-gradient(ellipse at 85% 0%,#f6f6f4 0%,transparent 42%),#ffffff!important;color:#16141d!important}
a {color:#4c3f86}
:where(h1,h2,h3,h4,strong,b){color:#16141d}
:where(p,li,small){color:inherit}
:where(.intro,.lead,.muted,.muted-sm,.note,.fine,.mini,.disclaimer,.compare-explain,.compare-note,.cong-intro,.compare-intro,.value-lead,.value-disclaimer,.footer,.foot,.notice){color:#5c5964}
:where(.brand,.topnav a){color:#16141d}
.eyebrow,.tag,.stepmeta,.compare-progress {color:#4c3f86}
:where(.panel,.card,.box,.compare-card,.cong-lane,.status,.stage,.plan,.alternate,.reasonbox,.service,.accordion,.faq details,details,.step,.mini,.choice-panel,.branch,.node,.choice,.scenario-picker button,.tab,.compare-config select,.cong-grid,.value-answer,.reco-block,.value-panel,.check,.alert){
 color:#16141d;
 border-color:#e7e6ea;
 background:#fff;
 box-shadow:0 4px 18px rgba(41,33,71,.035)
}
.panel {background:#fff}
:where(.plan,.choice,.tab,.scenario-picker button,.compare-config select){background:#f6f6f4;color:#16141d}
:where(.plan:hover,.choice:hover,.tab:hover,.scenario-picker button:hover){background:#f5f8ed}
:where(.plan[aria-pressed="true"],.choice[aria-pressed="true"],.tab[aria-selected="true"],.scenario-picker button[aria-pressed="true"]){background:#f1f7e5;color:#382453;border-color:#7cb02c;box-shadow:inset 0 0 0 1px #7cb02c}
:where(.btn,.action,.link,.back){background:#f6f6f4;color:#4c3f86;border:1px solid #e7e6ea}
:where(.btn.primary,.action.primary){background:#16141d;color:white;border-color:#16141d}
:where(.btn.secondary,.action:not(.primary)){background:#fff;color:#4c3f86;border-color:#e7e6ea}
:where(.btn:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible){outline:3px solid #7cb02c;outline-offset:3px}
:where(.plan .type,.plan .tag,.chip.em,.compare-summary .box strong,.compare-verdict){color:#4c3f86}
:where(.plan .cost,.compare-card .cost,.node small,.stage p,.box p,.card p,.mini p,.step p,.choice small,.alternate p,.plan ul,.status p,.compare-actions .muted,.value-disclaimer){color:#5c5964}
:where(.note,.tip,.reasonbox){background:#f6f6f4;border-color:#c6addf;color:#555363}
:where(.alert,.warnpill){background:#fff7ed;border-color:#efd8b4;color:#8b5521}
:where(.pill,.chip,.tag){background:#f6f6f4;color:#4c3f86;border-color:#e7e6ea}
:where(.stage,.status,.alternate,.mini,.box,.choice-panel){background:#faf9fc}
:where(.stepnum){background:#f1f7e5;color:#4c3f86}
:where(.steps span,.meter){background:#e2dde9}
:where(.steps span.current){background:#7cb02c}
:where(.top){background:#ffffffeb;border-color:#e7e3ed}
:where(.back,.link){text-decoration:none}
:where(.node,.unit,.route-mini .symbol){background:#f0eef8;border-color:#cfc7de;color:#3b3449}
:where(.node.primary,.node.auth .unit){background:#f1f7e5;border-color:#ae8bd2}
:where(.node.active .unit,.route-mini .hop.on .symbol){background:#e9f6fc;border-color:#5db4da}
:where(.node.success .unit,.route-mini .hop.done .symbol){background:#e8f8f2;border-color:#6ac2a5}
:where(.node .unit svg){stroke:#6b6780}
:where(.diagram,.route-mini,.road){background:radial-gradient(ellipse at 45% 0,#f0edf8,#f9f9fc 78%);border-color:#ddd8e7}
:where(.connection){stroke:#bdc3d1}
:where(.route-mini .track){background:#bdc3d1}
:where(.cong-lane .subtitle,.compare-card .cost){color:#5c5964}
:where(.topnav a){color:#5f5771}
:where(input,select,textarea){color:#16141d;background:#fff;border-color:#d7d2df}
:where(footer,.footer,.foot){border-color:#e7e6ea;color:#5c5964}
/* Avoid dark legacy inline color declarations on ordinary explanatory text */
:where(.stage p,.compare-explain,.compare-verdict,.box p,.plan strong,.plan b,.card strong,.card b,.mini strong,.mini b,.node b,.node strong,.step strong,.flow .step strong,.choice strong,.alternate strong,.status strong){color:#16141d}
/* Main guide sections */
.value-panel,.value-answer,.reco-block{background:#fff;border-color:#e7e6ea}
.value-conclusion{background:#f3edf9;color:#4c3f86;border-color:#dbe9cc}
/* Responsive remains governed by the original CSS. */


/* QEX official brand alignment: white / ink / lime gradient / sparing purple. */
:root { --qex-white:#ffffff; --qex-alt:#f6f6f4; --qex-ink:#16141d; --qex-muted:#5c5964; --qex-line:#e7e6ea; --qex-green:#7cb02c; --qex-green-light:#a8d048; --qex-green-dark:#6fa82f; --qex-purple:#4c3f86; --qex-grad:linear-gradient(135deg,#a8d048 0%,#6fa82f 100%); }
body { background:#fff!important; color:var(--qex-ink)!important; font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif!important; line-height:1.8; }
:where(.shell,.wrap) { color:var(--qex-ink); }
:where(.panel,.card,.box,.compare-card,.cong-lane,.stage,.status,.reco-block,.value-panel,.value-answer){box-shadow:none;border-color:var(--qex-line);}
:where(.panel,.card,.box,.compare-card,.cong-lane,.stage,.status,.reco-block,.value-panel,.value-answer){border-radius:7px;}
:where(.eyebrow,.stepmeta,.compare-progress,.sec-label){color:var(--qex-purple)!important;}
:where(.plan[aria-pressed="true"],.choice[aria-pressed="true"],.tab[aria-selected="true"],.scenario-picker button[aria-pressed="true"]){background:#f3f8e8!important;color:var(--qex-ink)!important;border-color:var(--qex-green-dark)!important;box-shadow:inset 0 0 0 1px var(--qex-green-dark)!important;}
:where(.btn.primary,.action.primary,button.primary,a.primary){background:var(--qex-ink)!important;border-color:var(--qex-ink)!important;color:#fff!important;}
:where(.btn.primary:hover,.action.primary:hover,button.primary:hover,a.primary:hover){background:var(--qex-green-dark)!important;border-color:var(--qex-green-dark)!important;color:#fff!important;}
:where(.btn.secondary,.action:not(.primary)){background:#fff;color:var(--qex-ink);border-color:var(--qex-ink);}
:where(.steps span.current){background:var(--qex-green-dark)}
:where(.chip.em,.tag,.pill){background:#f4f8ea;border-color:#d6e5c3;color:#4e7424}
:where(.stepnum){background:var(--qex-grad);color:#101014}
:where(.value-conclusion,.reasonbox){background:#f5f8ef;border-color:#d9e9c5;color:#2d4620}
:where(.diagram,.route-mini,.road){background:linear-gradient(180deg,#f6f6f4,#fff)!important;border-color:var(--qex-line)}
:where(.compare-config select,select,input,textarea){background:#fff;color:var(--qex-ink);border-color:var(--qex-line)}
:where(.brand){color:var(--qex-ink);letter-spacing:-.035em}
:where(.brand small){color:var(--qex-purple)}
:where(a){text-decoration-thickness:1px;text-underline-offset:3px}
:where(.footer,.foot){color:var(--qex-muted)}
/* Status colors intentionally remain blue/green/orange in the simulations. */
@media(max-width:640px){body{font-size:15px}:where(.panel,.card){padding:14px}}

/* ===============================================
   QEX Guide - Contrast correction
   White background / dark readable text
   =============================================== */

/* すべての主要な選択カードを明るい背景に統一 */
.scenario-picker button,
.choice,
.plan,
.compare-card,
.value-panel,
.value-answer,
.reco-block,
.choice-panel {
    background: #f6f6f4 !important;
    color: #16141d !important;
    border-color: #d8d7dc !important;
}

/* カード内の見出し・説明文 */
.scenario-picker button strong,
.scenario-picker button b,
.scenario-picker button small,
.choice strong,
.choice b,
.choice small,
.plan strong,
.plan b,
.plan p,
.plan small,
.compare-card strong,
.compare-card b,
.compare-card p,
.compare-card small {
    color: #16141d !important;
}

/* サブテキスト */
.scenario-picker button small,
.choice small,
.plan small,
.compare-card small {
    color: #5c5964 !important;
}

/* 選択中のカード */
.scenario-picker button[aria-pressed="true"],
.choice[aria-pressed="true"],
.plan[aria-pressed="true"] {
    background: #f1f7e5 !important;
    color: #16141d !important;
    border: 2px solid #6fa82f !important;
}

/* 選択中でも文字を濃くする */
.scenario-picker button[aria-pressed="true"] *,
.choice[aria-pressed="true"] *,
.plan[aria-pressed="true"] * {
    color: #16141d !important;
}

/* 通常の説明文を読みやすく */
.intro,
.lead,
.compare-explain,
.compare-note,
.compare-intro,
.value-lead,
.value-disclaimer,
.disclaimer,
.detail-hint {
    color: #5c5964 !important;
}

/* 白いカード内の見出し */
.value-panel h2,
.value-panel h3,
.value-answer h2,
.value-answer h3,
.reco-block h2,
.reco-block h3 {
    color: #16141d !important;
}

/* 料金表示はブランドの紫で強調 */
.plan .cost,
.compare-card .cost {
    color: #4c3f86 !important;
}

/* =============================================== */


/* QEX Guide - Plan comparison readability fix */

/* おすすめ・その他プランのカード */
.reco-block,
.alternate,
.reco-block .plan,
.alternate .plan {
    color: #16141d !important;
    border-color: #d8d7dc !important;
}

/* おすすめカード */
.reco-block {
    background: #f1f7e5 !important;
    border-color: #6fa82f !important;
}

/* その他プラン */
.alternate,
.alternate .plan {
    background: #f6f6f4 !important;
}

/* カード内の見出し */
.reco-block h2,
.reco-block h3,
.reco-block strong,
.reco-block b,
.alternate h2,
.alternate h3,
.alternate strong,
.alternate b {
    color: #16141d !important;
}

/* 説明文・補足 */
.reco-block p,
.reco-block small,
.alternate p,
.alternate small,
.reco-block .muted,
.alternate .muted,
.reco-block .dim,
.alternate .dim {
    color: #5c5964 !important;
}

/* ラベル・バッジ */
.reco-block :is(.chip, .tag, .pill, [class*="badge"]),
.alternate :is(.chip, .tag, .pill, [class*="badge"]) {
    background: #e4efd3 !important;
    color: #2d4620 !important;
    border-color: #c6dca6 !important;
}

/* 料金表示 */
.reco-block :is(.cost, .price),
.alternate :is(.cost, .price) {
    color: #4c3f86 !important;
    font-weight: 800;
}

/* プラン比較下のリンク・タグ */
.reco-block a,
.alternate a {
    color: #4c3f86;
}

.reco-block a:hover,
.alternate a:hover {
    color: #6fa82f;
}


/* QEX Guide - Plan card text contrast fix */

/* おすすめ・その他プランのラベル */
.plan .plan-badge {
    display: inline-block;
    background: #e4efd3 !important;
    color: #2d4620 !important;
    border-color: #c6dca6 !important;
}

/* PPPoE / IPoE の接続方式 */
.plan .type {
    color: #4c3f86 !important;
    font-weight: 700;
}

/* プラン名 */
.plan strong {
    color: #16141d !important;
}

/* 料金 */
.plan .cost {
    color: #4c3f86 !important;
    font-weight: 800;
}

/* 薄く表示されていた説明文 */
.plan .plan-note {
    color: #5c5964 !important;
    opacity: 1 !important;
}

/* 選択中も文字を読みやすく */
.plan[aria-pressed="true"] .plan-note {
    color: #45414d !important;
}


/* QEX Guide - Strong contrast finishing */

/* プランカード全体 */
.plan {
    opacity: 1 !important;
}

/* タイトル・接続方式 */
.plan strong,
.plan .type {
    color: #16141d !important;
    opacity: 1 !important;
}

/* 料金 */
.plan .cost {
    color: #4c3f86 !important;
    opacity: 1 !important;
}

/* 補足説明 */
.plan .plan-note,
.plan .plan-note *,
.reco-sub {
    color: #45414d !important;
    opacity: 1 !important;
}

/* 接続方式の選択ボタン */
.plan-group + .compare-actions button,
.compare-actions button,
.compare-actions a {
    color: #4c3f86 !important;
    opacity: 1 !important;
}

/* 選択済み・非選択の状態で文字を薄くしない */
.plan[aria-pressed="false"] {
    opacity: 1 !important;
}

