/* Macラボ。基調色は青系（iPhoneラボ＝緑、ドメイン・サーバラボ＝オレンジと区別する） */
.macx{--m-accent:var(--lab-ink,#fa5ba5);--m-line:var(--lab-edge,#f3d3e2);--m-ink:#16202b;--m-muted:#6b7a8a;
 color:var(--m-ink);display:flex;flex-direction:column;gap:20px;margin:0 0 40px}
.macx *{box-sizing:border-box}
.macx-hero{padding:38px;border:1px solid var(--lab-edge,#f3d3e2);border-radius:16px;
 background:linear-gradient(135deg,#f3f7fd,#fff)}
.macx-kicker{margin:0 0 7px;color:var(--m-accent);font-size:11px;font-weight:800;letter-spacing:.14em}
.macx-hero h1{margin:0 0 12px;font-size:38px;line-height:1;font-weight:400;color:var(--m-ink)}
.macx-hero h1 span{color:var(--m-accent)}
.macx-lead{margin:0;font-size:13px;color:#3b4a58}
.macx-search{display:flex;flex-direction:column;gap:16px;padding:18px;
 background:#fff;border:1px solid var(--m-line);border-radius:10px}
/* ① 製品ライン（ラジオ）。ボタン状にして押しやすくする */
.macx-lines{margin:0;padding:0;border:0}
.macx-lines legend{padding:0;margin-bottom:8px;font-size:12px;font-weight:700}
.macx-line-options{display:flex;flex-wrap:wrap;gap:8px}
.macx-line-options label{position:relative;cursor:pointer}
.macx-line-options input{position:absolute;opacity:0;width:0;height:0}
.macx-line-options span{display:block;padding:9px 15px;border:1px solid #cbd4df;border-radius:99px;
 font-size:12.5px;background:#fff;transition:background .12s,border-color .12s}
.macx-line-options label:hover span{border-color:var(--m-accent)}
.macx-line-options input:checked+span{background:var(--m-accent);border-color:var(--m-accent);
 color:#fff;font-weight:700}
.macx-line-options input:focus-visible+span{outline:2px solid var(--m-accent);outline-offset:2px}
/* ②③ プルダウン */
.macx-selects{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.macx-search select:disabled{background:#f4f6f9;color:#9aa7b4;cursor:not-allowed}
.macx-search label{display:block;font-size:12px;font-weight:700}
.macx-search span{display:block;margin-bottom:6px}
.macx-search select{width:100%;padding:11px;border:1px solid #cbd4df;border-radius:6px;background:#fff}
.macx-empty{padding:24px;border:1px dashed var(--m-line);border-radius:10px;color:var(--m-muted);font-size:13px}
.macx-panel{padding:24px;border:1px solid var(--m-line);border-radius:12px;background:#fff}
.macx-panel h2{margin:0 0 14px;font-size:20px}
.macx-panel h2 small{margin-left:10px;font-size:12px;font-weight:400;color:var(--m-muted)}
.macx-scroll{overflow-x:auto}
.macx-table{width:100%;border-collapse:collapse}
.macx-table th,.macx-table td{padding:11px;border-bottom:1px solid #eef2f6;text-align:left;font-size:13px}
.macx-table th{font-size:10.5px;color:var(--m-muted);white-space:nowrap}
.macx-price{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:700;color:var(--m-accent);font-size:15px}
.macx-cond{font-size:11.5px;color:#55636f;min-width:16em}
.macx-thin{background:#fffdf5}
.macx-thin em{margin-left:5px;font-style:normal;font-size:.8em;color:#8a6d1f}
.macx-note{margin:12px 0 0;font-size:11.5px;line-height:1.75;color:var(--m-muted)}
.macx-foot{margin:0;font-size:11px;color:#94a2b0}
@media(max-width:760px){
 .macx-hero{padding:24px 18px}.macx-hero h1{font-size:27px}
 .macx-selects{grid-template-columns:1fr}.macx-panel{padding:17px}
}

/* 買取ページの要約（iPhoneラボの .slab-live-summary に準じる） */
.macx-summary{padding:0 4px}
.macx-summary h2{margin:0 0 10px;font-size:22px}
.macx-summary h2 small{margin-left:10px;font-size:12px;font-weight:400;color:var(--m-muted)}
.macx-range{margin:0;font-size:13px;color:#3b4a58}
.macx-range strong{color:var(--m-accent);font-size:26px;
 font-family:"IBM Plex Mono",ui-monospace,monospace}
.macx-range em{display:inline-block;margin-left:10px;font-style:normal;font-size:12px;
 padding:3px 9px;border-radius:99px;background:var(--lab-band,rgba(250,91,165,.16));color:var(--m-accent)}
.macx-meta{margin:6px 0 0;font-size:11px;color:var(--m-muted)}
.macx-rank{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;
 border-radius:50%;background:var(--m-accent);color:#fff;font-size:10px;font-weight:700}
.macx-table a{color:var(--m-accent)}
.macx-hint{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--m-line);font-size:11.5px;line-height:1.8}

/* 取得元から各社の一覧ページへ */
.macx-src-link{display:inline-block;margin-top:4px;font-size:11.5px;text-decoration:none;
 border-bottom:1px solid currentColor;line-height:1.4}
.macx-src-link:hover{opacity:.75}

/* 「公式価格表」へのリンク。表の中で押せる場所だと分かるようにボタン風にする */
.slab-src-btn{
 display:inline-flex;align-items:center;gap:4px;
 padding:5px 11px;border:1px solid #c5d3d0;border-radius:5px;
 background:#f7faf9;font-size:11.5px;font-weight:700;line-height:1.3;
 text-decoration:none;white-space:nowrap;
 transition:background .12s,border-color .12s,color .12s;
}
.slab-src-btn span{font-size:10px;opacity:.7}
.slab-src-btn:hover{background:#fff;border-color:currentColor}
.slab-src-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* 週次の推移（サマリーとグラフ）。iPhone側 slab-index.css と同じ見せ方に揃える */
.macx-trend{margin:22px 0 6px}
.macx-trend h3{margin:0 0 12px;font-size:14px;font-weight:700}
.macx-readout{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.macx-cell{padding:12px 14px;border:1px solid #e1e8e7;border-radius:8px;background:#fff}
.macx-cell.hi{background:#f4f8fd;border-color:#c9d9ef}
.macx-cell .k{font-size:11px;color:#6b7b78;margin-bottom:5px}
.macx-cell .v{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.3}
.macx-cell.hi .v{font-size:23px;color:var(--lab-ink,#fa5ba5)}
.macx-cell .v small{font-size:13px;font-weight:500}
.macx-cell .n{margin-top:5px;font-size:10.5px;color:#8b9795;line-height:1.5}
.macx-up{color:#c0392b}
.macx-down{color:#2f80c0}
.macx-thin-note{color:#c0392b}
.macx-chart{width:100%;overflow:hidden}
.macx-chart svg{width:100%;height:auto;display:block}
.macx-grid line{stroke:#eef2f1;stroke-width:1}
.macx-grid .macx-axis{stroke:#d9e2e0}
.macx-glab text{fill:#8b9795;font-size:10.5px;text-anchor:end;font-variant-numeric:tabular-nums}
.macx-xlab text{fill:#8b9795;font-size:10.5px;text-anchor:middle}
.macx-band{fill:var(--lab-band,rgba(250,91,165,.16))}
.macx-minmax{stroke:#9aa7a4;stroke-width:1;stroke-dasharray:2 3;opacity:.85}
.macx-line{stroke:var(--lab-ink,#fa5ba5);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.macx-dot circle{fill:var(--lab-ink,#fa5ba5)}
.macx-bar rect{fill:#c9d9ef}
.macx-bar .macx-thin-bar{fill:#e6b3ab}
@media(max-width:900px){.macx-readout{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.macx-readout{grid-template-columns:1fr}}
