/* QEX Guide — detail pages contrast repair v25. Load after qex-brand.css. */
:root { color-scheme: light; }
body { color:#16141d; }
/* keep shared official navigation independent */
:is(main,.wrap) :is(h1,h2,h3,h4,strong,b) { color:#16141d; }
:is(main,.wrap) :is(p,li,small) { color:#45414d; }
:is(main,.wrap) a { color:#4c3f86; }
/* Neutral readable buttons / links on light backgrounds */
:is(main,.wrap) a.link, :is(main,.wrap) .detail-links a, :is(main,.wrap) a.back, :is(main,.wrap) a.action:not(.primary) {
  color:#28345e !important; background:#f6f6f4 !important;
  border-color:#bfc4d1 !important; opacity:1 !important;
}
:is(main,.wrap) a.link:hover, :is(main,.wrap) .detail-links a:hover, :is(main,.wrap) a.back:hover {background:#edf5df !important;border-color:#6fa82f !important;}
/* Consistent light content surfaces */
:is(main,.wrap) :is(.card,.panel,.mini,.branch,.service,.accordion,.reasonbox,.alternate,.check,details) {
  background:#fff !important; color:#16141d !important; border-color:#d8d7dc !important;
}
:is(main,.wrap) :is(.lead,.intro,.note,.tip,.fine,.mini,.disclaimer,.foot,.footer,.compareline) { color:#45414d !important; opacity:1 !important; }
/* Background of clearly instructional diagrams is light; foreground must also be dark */
:is(main,.wrap) :is(.track,.flow-branch) .node,
:is(main,.wrap) .node, :is(main,.wrap) .node.primary,
:is(main,.wrap) .step {
  color:#16141d !important; background:#f1f4f9 !important;
  border:1px solid #aeb9cb !important;
}
:is(main,.wrap) .node small, :is(main,.wrap) .node strong, :is(main,.wrap) .node b,
:is(main,.wrap) .step strong, :is(main,.wrap) .step span { color:#303846 !important; opacity:1 !important; }
:is(main,.wrap) .node.primary {background:#edf5df !important;border-color:#6fa82f !important;}
/* Avoid dark text on previously dark colored graphic cards */
:is(main,.wrap) .flow .step {background:#f1f4f9 !important; color:#16141d !important;}
:is(main,.wrap) .flow .step svg {stroke:#1b75a5 !important;}
:is(main,.wrap) .flow .step span {color:#45414d !important;}
/* Self-check alert and pre-application checklist */
:is(main,.wrap) .alert {background:#fff7ec !important;border-color:#d7ae79 !important;color:#56351a !important;}
:is(main,.wrap) .alert :is(h2,h3,strong,b,p,li,small) {color:#56351a !important;opacity:1 !important;}
:is(main,.wrap) .reasonbox {background:#f2f7e9 !important;border-left:3px solid #6fa82f !important;}
:is(main,.wrap) .reasonbox :is(h2,h3,strong,b,p,li,small) {color:#24371b !important;opacity:1 !important;}
:is(main,.wrap) .checks .check {background:#f6f6f4 !important;border-color:#d8d7dc !important;}
:is(main,.wrap) .checks .check :is(label,span,b,strong,p,li) {color:#16141d !important;opacity:1 !important;}
:is(main,.wrap) .summary, :is(main,.wrap) .plan ul, :is(main,.wrap) .plan li {color:#45414d !important;opacity:1 !important;}
:is(main,.wrap) .btn:not(:disabled):not(.secondary) {background:#16141d !important;color:#fff !important;border-color:#16141d !important;}
:is(main,.wrap) .btn.secondary {background:#fff !important;color:#16141d !important;border-color:#b6b3bd !important;}
:is(main,.wrap) .btn:disabled {background:#a5aab4 !important;color:#fff !important;opacity:1 !important;cursor:not-allowed;}
:is(main,.wrap) .meter span {background:linear-gradient(90deg,#a8d048,#6fa82f) !important;}
/* MAP-E, IPIP and fixed-IP graphical nodes */
:is(main,.wrap) .track .node, :is(main,.wrap) .track .node.primary {color:#16141d !important;}
:is(main,.wrap) .track .node small {color:#45414d !important;}
:is(main,.wrap) .tag, :is(main,.wrap) .pill {color:#2d4620 !important;background:#edf5df !important;border-color:#bdd79e !important;}
:is(main,.wrap) .note {background:#f6f6f4 !important;border-left:3px solid #6fa82f !important;}
/* mobile flow and service descriptions */
:is(main,.wrap) .flow .step :is(strong,span,small) {color:#16141d !important;opacity:1 !important;}
:is(main,.wrap) .service .status, :is(main,.wrap) .service .status.upcoming {color:#4c3f86 !important;}
/* Other explanatory paragraphs and disclaimer links */
:is(main,.wrap) .card p, :is(main,.wrap) .mini p, :is(main,.wrap) .service p, :is(main,.wrap) .accordion .body,
:is(main,.wrap) .accordion .body p, :is(main,.wrap) .branch p, :is(main,.wrap) .panel p {color:#45414d !important;}
:is(main,.wrap) a.action.primary {color:#fff !important;background:#16141d !important;border-color:#16141d !important;}
:is(main,.wrap) a.action.primary:hover {background:#6fa82f !important;border-color:#6fa82f !important;}
/* retain visible focus indicator */
:is(main,.wrap) :is(a,button,input,summary):focus-visible {outline:3px solid #6fa82f;outline-offset:2px;}

/* QEX 詳細ページ視認性修正 v26 */

/* Wi-Fiの通信経路図：紺背景には白文字 */
.signal-demo .wifi-node {
    color: #ffffff !important;
}

.signal-demo .barrier {
    color: #ffffff !important;
}

.signal-demo .wifi-node *,
.signal-demo .barrier * {
    color: #ffffff !important;
}

/* PPPoEの補足説明：明るい背景に統一 */
.card .tip,
.tip {
    background: #f1f7e5 !important;
    border: 1px solid #a8c98a !important;
    border-left: 4px solid #6fa82f !important;
    color: #16141d !important;
}

.tip strong,
.tip h3 {
    color: #16141d !important;
}

.tip p,
.tip li,
.tip small {
    color: #45414d !important;
    opacity: 1 !important;
}

/* 料金表示 */
.choice-panel .cost,
.card .cost {
    color: #4c3f86 !important;
    opacity: 1 !important;
}

/* 関連リンク：白背景でも読める濃い紫 */
a.link,
.card a.link {
    color: #4c3f86 !important;
    opacity: 1 !important;
}

a.link:hover,
.card a.link:hover {
    color: #2d2459 !important;
}

