/* 充電器のW早見 ― 世界観は「机の上の白い充電器と通電」：白い樹脂の充電器・黒いケーブル・充電ランプの緑。
   共通の base.css は読まない（site.json look: own）
   字体：Space Grotesk（W の数字・英字）＋ Murecho（和文）
   動きの型：「通す・灯る」― ケーブルに電気の粒が流れ、機種をつなぐと緑のランプが灯る */
:root {
  --bg: #eceef1; --bg-2: #e2e5ea; --white: #fbfcfd; --ink: #14171b; --ink-2: #555c66; --ink-3: #5f6670;
  --cable: #23282e; --lime: #7be03a; --lime-2: #3d9a0c; --lime-soft: rgba(123, 224, 58, .16); --rule: #d5d9df; --warn: #e2502b;
  --num: "Space Grotesk", "Murecho", sans-serif;
  --jp: "Murecho", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.85; letter-spacing: .01em;
  background: radial-gradient(70% 40% at 80% 0%, #fff, transparent 70%), radial-gradient(circle, rgba(20, 23, 27, .07) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--bg);
}
a { color: var(--ink); text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--lime-2); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
strong { font-weight: 800; }
p { margin: 0 0 1em; }
input, select, button { font: inherit; }
[hidden] { display: none !important; }

/* ── 頭 ── */
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; padding: 14px 20px; }
.site-name { font-family: var(--jp); font-weight: 800; color: var(--ink); text-decoration: none; font-size: .95rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.site-name::before { content: ""; width: 14px; height: 18px; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1.5px var(--ink); }
.pr-notice { margin: 0; font-size: 0.8rem; color: var(--ink-3); }

.site-main { max-width: 720px; margin: 0 auto; padding: 0 18px 24px; }
h1, h2, h3 { line-height: 1.45; }
h2 { font-size: 1.25rem; font-weight: 800; margin: 60px 0 14px; letter-spacing: .01em; }
h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--cable); margin-bottom: 12px; box-shadow: 40px 0 0 -0px var(--lime); }
h3 { font-size: 1rem; font-weight: 800; margin: 24px 0 6px; }
.lead { color: var(--ink-2); font-size: .94rem; }
.lead strong { color: var(--ink); }
.note, .hint, .pnote { color: var(--ink-2); font-size: 0.94rem; }
caption { text-align: left; font-size: 0.8rem; color: var(--ink-2); padding: 0 0 8px; }

/* ── 冒頭 ── */
.hero { padding: 30px 0 4px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-family: var(--num); font-weight: 500; font-size: .82rem; letter-spacing: .08em; color: var(--ink-2); background: var(--white); padding: 4px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--rule); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.hero h1 { margin: 0 0 16px; font-weight: 800; }
.h1-a { font-size: clamp(1.5rem, 7vw, 2.2rem); }
.h1-b { display: inline-block; font-family: var(--num); font-weight: 700; font-size: clamp(3.4rem, 18vw, 6rem); line-height: .9; letter-spacing: -.04em; margin: 0 .06em; vertical-align: -.08em; color: var(--ink); }
.h1-b::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-left: .06em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 .2em var(--lime); vertical-align: .9em; }
.h1-b + .h1-a { display: block; }
.h1-sub { display: block; font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-top: 12px; letter-spacing: .06em; }

/* ── 配線の板 ── */
.board { position: relative; margin: 24px 0 24px; padding: 22px 18px 20px; background: var(--white); border-radius: 26px; box-shadow: 0 0 0 1px var(--rule), 0 30px 50px -34px rgba(20, 30, 40, .55); }
.board-title { margin: 0 0 14px; font-family: var(--num); font-size: 0.8rem; font-weight: 700; letter-spacing: .3em; color: var(--ink-3); }
.board-title::before { display: none; }

/* 充電器の本体 */
.charger {
  position: relative; display: block; text-align: center; margin: 22px auto 0; max-width: 300px; padding: 22px 16px 26px; border-radius: 28px;
  background: linear-gradient(155deg, #fff 0%, #f3f5f7 55%, #e4e8ec 100%);
  box-shadow: 0 1px 0 #fff inset, 0 -6px 14px rgba(20, 30, 40, .06) inset, 0 0 0 1px #d3d8de, 0 22px 30px -18px rgba(20, 30, 40, .5);
}
/* 差込みの刃 */
.charger::before { content: ""; position: absolute; top: -20px; left: 50%; width: 46px; height: 22px; translate: -50% 0; background: linear-gradient(90deg, #c9ced4 0 9px, transparent 9px 37px, #c9ced4 37px); border-radius: 2px 2px 0 0; }
/* USB-C の口 */
.charger::after { content: ""; position: absolute; bottom: 10px; left: 50%; width: 30px; height: 8px; translate: -50% 0; border-radius: 4px; background: var(--cable); box-shadow: 0 0 0 2px #e4e8ec; }
.charger-label { display: block; font-size: 0.8rem; color: var(--ink-3); letter-spacing: .2em; }
.charger-w { display: block; font-family: var(--num); font-weight: 700; font-size: 4.2rem; line-height: 1; letter-spacing: -.04em; color: var(--ink); margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.charger-sub { display: block; font-size: .8rem; line-height: 1.55; color: var(--ink-2); }
.board:has(.wire) .charger-w { color: #2a7005; }
.board:has(.wire) .charger { box-shadow: 0 1px 0 #fff inset, 0 0 0 1px #d3d8de, 0 0 0 6px var(--lime-soft), 0 22px 30px -18px rgba(20, 30, 40, .5); }

/* ケーブルと機種 */
.wires { list-style: none; position: relative; margin: 0 0 0 22px; padding: 20px 0 2px; }
.wires::before { content: ""; position: absolute; left: 0; top: 0; bottom: 30px; width: 4px; border-radius: 2px; background: var(--cable); }
.wires:empty { display: none; }
.wire { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 12px 24px; padding: 12px 8px 12px 14px; background: #f5f7f9; border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); }
.wire::before { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; height: 4px; translate: 0 -50%; background: var(--cable); border-radius: 0 2px 2px 0; }
.wire::after { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 14px; translate: 0 -50%; border-radius: 3px; background: var(--cable); }
.wire.peak { background: #fff; box-shadow: 0 0 0 2px var(--lime-2), 0 10px 20px -14px rgba(61, 154, 12, .7); }
.dev { flex: 1; min-width: 0; }
.dev-name { display: block; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.dev-meta { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }
.dev-w { font-family: var(--num); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; white-space: nowrap; }
.wire.peak .dev-w { color: var(--lime-2); }
.remove { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink-2); font-size: 1.1rem; cursor: pointer; }
.remove:hover { background: var(--ink); color: #fff; }
.wires-empty { margin: 16px 0 0; text-align: center; color: var(--ink-3); font-size: .86rem; }
.sum { font-size: 0.94rem; margin: 10px 0 0; }

/* 選ぶ所 */
.pick { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
label { display: block; font-weight: 800; font-size: .86rem; margin: 10px 0 6px; }
.pick-row { display: flex; gap: 8px; }
.pick-row select, .pick-row input { flex: 1; min-width: 0; }
select, input[type="text"] { min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 0; background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--rule) inset; font-size: 0.94rem; }
input[type="text"] { font-family: var(--num); font-size: 1.15rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--warn) inset; }
button { min-height: 52px; padding: 8px 20px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .06em; cursor: pointer; transition: transform .1s, background .2s; }
button:active { transform: scale(.97); }
button.secondary { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--rule) inset; }
.pick-row > button { flex: none; }
.pick-row > button:not(.secondary) { background: var(--cable); color: #fff; box-shadow: inset 0 0 0 2px var(--cable); }
.pick-row > button:not(.secondary)::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); vertical-align: 1px; }
.err { color: #9a2a0e; font-size: 0.94rem; min-height: 1.1em; margin: 2px 0 0; font-weight: 700; }
.msg { font-size: 0.94rem; min-height: 1.2em; margin: 6px 0 0; color: var(--lime-2); overflow-wrap: anywhere; }
.custom { margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions button { flex: 1; min-height: 44px; font-size: .8rem; }

/* 表：仕様表 */
.table-wrap { overflow-x: auto; }
.combo-wrap { margin-top: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; letter-spacing: .04em; border-bottom: 2px solid var(--ink); line-height: 1.4; }
tbody th { font-family: var(--num); font-weight: 700; }
.combo td, .combo tbody th { white-space: nowrap; }
.combo tr.fit th, .combo tr.fit td { background: var(--lime-soft); font-weight: 800; }
.combo tr.fit th { box-shadow: 4px 0 0 var(--lime-2) inset; }
.tag { display: inline-block; margin-left: 6px; font-size: 0.8rem; padding: 0 8px; border-radius: 999px; background: var(--lime); color: var(--ink); font-family: var(--jp); font-weight: 800; vertical-align: 1px; }

/* 分布 */
.dist th, .dist td { padding: 8px 6px; vertical-align: middle; }
.dist thead th { text-align: center; }
.dist .n { font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
.dist tbody th { white-space: nowrap; font-size: 1.05rem; }
.bar { display: block; position: relative; height: 22px; min-width: 3.4em; background: var(--bg); border-radius: 11px; overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, var(--lime-2), var(--lime)); border-radius: 11px; }
.bar-v { position: relative; display: block; padding: 0 8px; font-family: var(--num); font-size: 0.8rem; line-height: 22px; font-weight: 700; color: var(--ink); }
.bar-n { display: block; font-family: var(--num); font-size: 0.8rem; color: var(--ink-3); text-align: right; }
.dist-summary, .checks { padding-left: 1.2em; }
.dist-summary li, .checks li { margin-bottom: 8px; }
.dist-summary li::marker, .checks li::marker { color: var(--lime-2); }
.facts dt { font-weight: 800; margin-top: 10px; }
.facts dd { margin: 0; font-size: 0.94rem; color: var(--ink-2); }

/* 機種の一覧 */
.models td { vertical-align: top; }
.models td:nth-child(n+2) { white-space: nowrap; }
.dname { display: block; font-weight: 800; line-height: 1.4; }
.dmeta { display: block; font-size: 0.8rem; color: var(--ink-2); line-height: 1.45; white-space: normal; }
.models .w { font-family: var(--num); font-weight: 700; font-size: 1.2rem; }
.basis { display: block; font-family: var(--jp); font-size: 0.94rem; font-weight: 400; color: var(--ink-3); }
.models .src { font-size: 0.8rem; }
.date { font-size: 0.8rem; color: var(--ink-3); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; }
.sources { padding-left: 1.1em; font-size: 0.94rem; }
.sources li { margin-bottom: 12px; overflow-wrap: anywhere; }
.sources q { quotes: "「" "」"; }

/* このサイトのページへの入口 */
.site-pages { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.site-pages a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--rule); text-decoration: none; font-size: 0.94rem; }
.site-pages a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.ad-slot { margin: 24px 0; padding: 12px; border: 1px dashed var(--rule); border-radius: 12px; }
.site-main > h1 { font-size: clamp(1.6rem, 7vw, 2.3rem); font-weight: 800; margin: 40px 0 14px; }

/* ── 足 ── */
.site-footer { margin-top: 72px; background: var(--ink); color: #9aa1ab; text-align: center; padding: 30px 20px 26px; font-size: 0.94rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
.site-footer a { color: #eef1f4; text-decoration: none; display: inline-block; padding: 8px 0; }
.copyright { margin: 10px 0 0; font-family: var(--num); }

.hero-meta { margin: 0; font-family: var(--num); font-size: 0.8rem; letter-spacing: .06em; color: var(--ink-3); }
.sample-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--lime-soft); font-size: 0.94rem; color: var(--ink); }
.after-board { color: var(--ink-2); font-size: .94rem; }
.after-board strong { color: var(--ink); }

/* ── PC：1 画面目を 2 列（左＝見出し、右＝配線の板）。左右を空けない（12/1 採点） ── */
@media (min-width: 1100px) {
  .site-main { max-width: 1200px; padding: 0 40px 24px; }
  .fv { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0 56px; align-items: start; }
  .fv .hero { position: sticky; top: 40px; padding-top: 72px; }
  .fv .h1-a { font-size: 2.4rem; }
  .fv .h1-b { font-size: 7.5rem; }
  .fv .lead { font-size: 1.05rem; }
  .fv .board { margin-top: 40px; }
}
/* ── PC：充電器を中央に大きく ── */
@media (min-width: 960px) and (max-width: 1099.98px) {
  .site-main { max-width: 1040px; }
  .hero { padding-top: 64px; }
  .hero .lead { max-width: 40em; }
  .h1-a { font-size: 2.6rem; }
  .board { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 36px; padding: 32px; }
  .board > * { grid-column: 2; }
  .board > .board-title, .board > .charger { grid-column: 1; }
  .board > .charger { grid-row: 2 / span 4; align-self: start; position: sticky; top: 24px; margin-top: 30px; }
  .site-main > h2, .site-main > p, .site-main > ul, .site-main > dl, .site-main > .table-wrap, .site-main > h3, .site-main > nav { max-width: 760px; }
}

/* ── 動き：通す・灯る ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .hero > *, .hero h1 > span { animation: up .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero h1 > span:nth-child(2) { animation-delay: .1s; } .hero h1 > span:nth-child(3) { animation-delay: .18s; } .hero h1 > span:nth-child(4), .hero .lead { animation-delay: .28s; }
  @keyframes up { from { opacity: 0; transform: translateY(16px); } }
  .board { animation: up .8s .2s cubic-bezier(.2, .8, .2, 1) both; }
  .led { animation: blink 1.2s ease-in-out 3; }
  @keyframes blink { 50% { opacity: .25; box-shadow: none; } }
  /* ケーブルを流れる電気の粒 */
  .wires::after { content: ""; position: absolute; left: -1px; top: 0; width: 6px; height: 18px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: flow 1.4s cubic-bezier(.5, 0, .5, 1) 4; opacity: 0; }
  @keyframes flow { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 50px); opacity: 0; } }
  .wire { animation: plug .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes plug { from { opacity: 0; transform: translateX(-18px); } }
  .wire.peak .dev-w { animation: glow 1s ease-out; }
  @keyframes glow { from { text-shadow: 0 0 14px var(--lime); } }
  .board:has(.wire) .charger { transition: box-shadow .5s; }
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in .4s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ── サイトの中の入口（リコール照合へ。hq #492） ── */
.door { margin: 40px 0 0; padding: 20px 18px 6px; background: var(--white); border-radius: 22px; box-shadow: 0 0 0 1px var(--rule); }
.door h2 { margin: 6px 0 10px; font-size: 1.15rem; }
.door h2::before { display: none; }
.door-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); }
.door-go { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; }
.door-go:hover { color: var(--lime); }
.led-warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

/* ── 家の充電の 2 つの入口（スマホ・PC／車。hq #492） ── */
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
.entries a { display: block; min-height: 48px; padding: 10px 12px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--rule); text-decoration: none; font-weight: 800; font-size: 0.94rem; line-height: 1.45; }
.entries a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.en-k { display: block; font-family: var(--num); font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
.entries a[aria-current="page"] .en-k { color: var(--lime); }
