/* HANEWheel：初期ツール（PDF・CSV・スマホ表示）と同じ作り。白い面・細い線・角丸なし */
:root{--brand:#dc2626;--brand-ink:#b91c1c;--brand-dark:#b91c1c;--tint:#fdeeee;--line:#e3e9ef;--border:#dde3ee;--muted:#6b7585;--ok:#3f7d2e;--new:#dc2626}
.page-title{margin:0;padding:13px 22px 12px;background:rgba(255,255,255,.72);border-bottom:1px solid var(--border);font-size:18px;font-weight:800;line-height:1.55;color:#1e2837;letter-spacing:.01em;position:relative;z-index:1}
.page-title .pt-sep{color:var(--new)}
.wh-main{max-width:1080px;margin:0 auto;padding:26px 22px 44px;position:relative;z-index:1}

/* ===== 入れる所 ===== */
.calc{background:#fff;border:1px solid var(--border);padding:20px 22px 16px}
.pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:start}
.tf{border:0;margin:0;padding:0;min-width:0}
.tf legend{font-size:15px;font-weight:800;padding:0 0 8px;color:#1e2837}
.tf-a legend::before{content:"";display:inline-block;width:12px;height:12px;background:#9aa3b2;margin-right:7px;vertical-align:-1px}
.tf-b legend::before{content:"";display:inline-block;width:12px;height:12px;background:var(--new);margin-right:7px;vertical-align:-1px}
.tf label{display:block;font-size:12px;color:var(--muted)}
.tf label span{display:block;margin-bottom:3px}
.tf input{font:inherit;font-size:16px;width:100%;box-sizing:border-box;border:1px solid #c7cee0;border-radius:0;padding:8px 9px;background:#fff;color:#1e2837}
.tf input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 2px rgba(31,41,55,.15)}
.tf .paste input{font-size:14px}
.pmsg{font-size:12px;color:var(--ok);margin:4px 0 8px;min-height:1.2em}
.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.grid label{position:relative}
.grid em{position:absolute;right:8px;bottom:9px;font-style:normal;font-size:11px;color:var(--muted);pointer-events:none}
.grid input{padding-right:30px}
.swap{align-self:center;margin-top:30px;font:inherit;font-size:20px;width:40px;height:40px;border:1px solid #c7cee0;background:#fff;cursor:pointer;color:#46566a}
.swap:hover{background:var(--tint)}
.msg{font-size:13px;color:#b42318;font-weight:700;margin:10px 0 0}
.msg:empty{display:none}
.privacy{color:var(--ok);font-size:12.5px;margin:10px 0 0;font-weight:600}

/* ===== 結果 ===== */
.out{margin-top:18px;background:#fff;border:1px solid var(--border);padding:18px 22px 22px}
.sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));border:1px solid var(--border);margin-bottom:16px}
.kp{padding:12px 16px;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:1px}
.kp:last-child{border-right:0}
.kp span{font-size:12.5px;color:var(--muted);font-weight:700}
.kp b{font-size:26px;font-weight:800;color:#1e2837;font-variant-numeric:tabular-nums;line-height:1.3}
.kp b small{font-size:13px;margin-left:3px;font-weight:700}
.kp i{font-style:normal;font-size:12px;color:var(--muted)}
.figs{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.figs figure{margin:0;border:1px solid var(--border);padding:8px}
.fig svg{display:block;width:100%;height:auto}
.figs figcaption{font-size:12.5px;color:#46566a;margin-top:6px;line-height:1.6}
.lg{font-size:13px;margin-right:3px}.lg.old{color:#9aa3b2}.lg.new{color:var(--new)}
/* タイヤの図 */
.hero{display:flex;align-items:center;gap:16px;margin:0 0 16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.hero-tire{flex:0 0 auto;width:84px;height:84px}.hero-tire svg{width:100%;height:100%;display:block}
.hero-t{margin:0;font-size:13.5px;line-height:1.75;color:#46566a}.hero-t b{font-size:15.5px;color:#1e2837}
.fig-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}
.fig-ttl{font-size:13.5px;font-weight:800;color:#1e2837}
.seg{display:inline-flex;border:1px solid #c7cee0}
.seg button{font:inherit;font-size:12.5px;font-weight:700;border:0;background:#fff;color:#46566a;padding:5px 12px;cursor:pointer}
.seg button+button{border-left:1px solid #c7cee0}
.seg button.on{background:var(--new);color:#fff}
svg .tl{fill:#9097a0;font-weight:700;letter-spacing:.08em}
svg .halo{fill:none;stroke:#fff;stroke-width:5;opacity:.9}svg .ghost{fill:none;stroke:#5b6474;stroke-width:2.2;stroke-dasharray:7 5}
.pairfig{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-width:820px;margin:0 auto}.pairfig svg{display:block;width:100%;height:auto}
svg .dl.big{font-size:22px}
svg .dimg line{stroke:#46566a;stroke-width:1.2}svg .dimg text{font-size:11.5px;fill:#33405a;font-weight:700}
svg .dimg.new line{stroke:var(--new)}svg .dimg.new text{fill:var(--new)}
svg .cap{font-size:13px;font-weight:800}svg .cap.old{fill:#6b7585}svg .cap.new{fill:var(--new)}
svg .rub{fill:#2a2d31}svg .air{fill:#f6f7f9}svg .grv{fill:#f6f7f9}
svg .new .edge{fill:none;stroke:var(--new);stroke-width:2.2}
svg .old .edge{fill:none;stroke:#7b8494;stroke-width:1.8;stroke-dasharray:6 4}
svg .new .rim{fill:none;stroke:#8a9097;stroke-width:5;stroke-linejoin:round}svg .new .disc{fill:#b9bfc6;stroke:#8a9097}
svg .old .rim{fill:none;stroke:#7b8494;stroke-width:1.6;stroke-dasharray:6 4}svg .old .disc{fill:none;stroke:#7b8494;stroke-dasharray:6 4}
svg .fender{fill:none;stroke:#46566a;stroke-width:3;stroke-linecap:round}
svg .dm{stroke:var(--new);stroke-width:2.5}
svg .dmt{stroke:#46566a;stroke-width:1.2}
svg .ax{stroke:#1e2837;stroke-width:1.2;stroke-dasharray:3 3}
svg .gr{stroke:#c7cee0;stroke-width:1}
svg text{font-family:inherit;font-size:12px;fill:#46566a}
svg .axl{font-size:11px}
svg .dl{font-size:13px;font-weight:700;fill:#1e2837}
svg .side{font-size:11px;fill:var(--muted)}
.oh{font-size:16px;font-weight:800;margin:22px 0 8px;padding-bottom:6px;border-bottom:2px solid var(--brand)}
.note{font-size:12.5px;color:var(--muted);line-height:1.8;margin:0 0 8px}
.note b{color:#1e2837}.note .bad,.bad{color:#b42318}
table.lvt{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 10px;background:#fff}
table.lvt th,table.lvt td{border:1px solid #dfe5eb;padding:8px 10px;text-align:left;vertical-align:top;font-variant-numeric:tabular-nums}
table.lvt thead th{background:var(--tint);color:var(--brand-dark);font-weight:800;white-space:nowrap}
table.lvt tbody th{font-weight:700;color:#33405a;background:#fafbfc}
.tw{overflow-x:auto;max-width:100%}
.tw table.lvt{min-width:0}
table.lvt thead th small{font-weight:400;color:var(--muted);font-size:11px}
.pick{font:inherit;font-weight:800;border:0;background:none;padding:0;color:var(--new);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* ===== 解説 ===== */
.article{max-width:920px;box-sizing:border-box;margin:36px auto 0;background:rgba(255,255,255,.90);border:1px solid var(--border);padding:30px 34px 34px;line-height:1.95;color:#26303f}
.article h2{font-size:20px;font-weight:800;color:#1e2837;margin:38px 0 14px;padding-bottom:9px;border-bottom:2px solid var(--brand);letter-spacing:.01em}
.article h2:first-child{margin-top:0}.article p{margin:0 0 14px;font-size:14.5px}
[hidden]{display:none!important}
button,input,summary{touch-action:manipulation}:focus-visible{outline:3px solid var(--brand);outline-offset:3px}

@media(max-width:860px){
  .pair{grid-template-columns:1fr}
  .swap{margin:0 auto;transform:rotate(90deg)}
  .figs{grid-template-columns:1fr}
  .pairfig{grid-template-columns:1fr}
  .hero-tire{width:64px;height:64px}.hero-t{font-size:12.5px}.hero-t b{font-size:14px}
}
@media(max-width:640px){
  .page-title{font-size:14.5px;padding:10px 12px 9px}
  .wh-main{padding:14px 12px 32px}
  .calc,.out{padding:14px 12px}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kp b{font-size:22px}
  table.lvt{font-size:12.5px}
  table.lvt th,table.lvt td{padding:6px 7px}
  table.lvt thead th{white-space:normal}
  .article{padding:20px 16px 24px;margin-top:24px}.article h2{font-size:17px}.article p{font-size:14px}
  .toolguide .feat-head{gap:12px}.toolguide .feat-usagi{width:68px}
}
