/* Battery Note — 計器盤。白地に墨、残量計の黄。数字は等幅でそろえる */
:root {
  --paper: #f4f3ee;
  --paper-2: #ebe9e1;
  --panel: #fffefb;
  --ink: #12151c;
  --ink-2: #3d4250;
  --ink-3: #5d616c;
  --rule: #dcd9cf;
  --rule-2: #c9c5b8;
  --volt: #f5c518;
  --volt-2: #8a6a00;      /* 白地で読める濃さの黄（文字用） */
  --volt-bg: #fff6d1;
  --night: #0d1017;
  --night-2: #1b2030;
  --ok: #267752;
  --charge: #34b46a;     /* ロゴの電池（満タン） */
  --warn: #a33c22;
  --white: #ffffff;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif; /* 本文は端末の字 */
  --head: "ZKG Head", var(--sans);                 /* 見出しだけ和文フォント（使う文字だけに絞った自前の woff2） */
  --disp: "Space Grotesk", "ZKG Head", var(--sans);
  --r: 16px;
  --shadow-1: 0 1px 2px rgba(18, 21, 28, .05), 0 2px 10px rgba(18, 21, 28, .05);
  --shadow-2: 0 2px 6px rgba(18, 21, 28, .06), 0 18px 40px -12px rgba(18, 21, 28, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75; font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); }
h1, h2, h3, .lead, .sec-head p, .scene-txt small, .explain p { word-break: auto-phrase; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--rule-2); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--ink); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.num, .m-num b, .kpi b, .r-spec b, .r-ypw b, .price b, .stats b, .fc-num b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.i { width: 12px; height: 12px; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--volt); color: var(--ink); }

/* スクロールで出す */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.app-grid .reveal:nth-child(3n+2), .explain-grid .reveal:nth-child(2) { transition-delay: .06s; }
.app-grid .reveal:nth-child(3n), .explain-grid .reveal:nth-child(3) { transition-delay: .12s; }

/* ---------- ヘッダー ---------- */
.pr-bar { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 6px 16px; background: var(--paper-2); border-bottom: 1px solid var(--rule); line-height: 1.5; }
.pr-short { display: none; }
@media (max-width: 560px) { .pr-long { display: none; } .pr-short { display: inline; } .pr-bar { font-size: 11px; padding: 5px 12px; } }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo { width: 30px; height: 30px; color: var(--ink); }
.brand-word { font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -.015em; }
.brand-word b { font-weight: 700; background: var(--volt); padding: 0 5px; margin-left: 3px; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 7px 12px; border-radius: 9px; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a.is-cta { background: var(--ink); color: var(--volt); font-weight: 700; display: inline-flex; gap: 5px; align-items: center; margin-left: 6px; }
.site-nav a.is-cta:hover { background: #262b38; }
.site-nav a.is-cta .i { width: 14px; height: 14px; }
@media (max-width: 760px) { .site-nav a:not(.is-cta) { display: none; } }
.sub-nav { display: none; }
@media (max-width: 760px) {
  .site-header .wrap { height: 56px; }
  .sub-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 8px; -webkit-overflow-scrolling: touch; }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav a { flex: none; font-size: 13px; text-decoration: none; color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); padding: 5px 13px; border-radius: 999px; }
  .sub-nav a[aria-current="page"] { background: var(--ink); color: var(--volt); border-color: var(--ink); font-weight: 700; }
}

/* ---------- 共通 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); padding: 4px 12px 4px 10px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 rgba(245, 197, 24, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .55); } 70% { box-shadow: 0 0 0 9px rgba(245, 197, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); } }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-1); }
.panel h2 { font-size: 20px; margin: 0 0 6px; }
.panel .sub, .sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 14px; }
.note { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.label { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); line-height: 1.6; white-space: nowrap; }
.tag.warn { background: #fbe6df; color: var(--warn); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn.solid { background: var(--ink); color: var(--volt); }
.btn.solid:hover { background: #262b38; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.ghost { border-color: var(--rule-2); background: var(--panel); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { font-size: 15.5px; padding: 14px 22px; border-radius: 13px; }
.btn .i { width: 15px; height: 15px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); }
.page-head { padding: 28px 0 24px; }
.page-head h1 { font-size: clamp(26px, 4.4vw, 42px); line-height: 1.3; margin: 12px 0 8px; font-weight: 900; letter-spacing: -.01em; }
.page-head .lead { color: var(--ink-2); max-width: 44em; margin: 0; }
.prose > * { max-width: 760px; }
.prose > .tbl-wrap, .prose > .formula { max-width: 960px; }
.formula { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 28px; }
@media (max-width: 760px) { .formula { grid-template-columns: minmax(0, 1fr); } }
.formula > div { background: var(--night); color: #d8d5cb; border-radius: 14px; padding: 16px 18px; }
.formula b { display: block; color: var(--volt); font-size: 13px; margin-bottom: 4px; }
.formula code { font-family: var(--mono); font-size: 14px; color: #fff; line-height: 1.7; }
.prose h2 { font-size: 21px; margin: 2em 0 .5em; padding-left: 12px; border-left: 4px solid var(--volt); }
.prose > h2:first-child { margin-top: .4em; }
.prose li { margin: .3em 0; }
.sec-title { font-size: 19px; margin: 28px 0 12px; }

.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin: 0 0 20px; }
.sec-head .kicker { grid-row: span 2; align-self: start; font-family: var(--mono); font-size: 12px; font-weight: 700; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--volt); display: grid; place-items: center; margin-top: 2px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 0; letter-spacing: -.01em; line-height: 1.35; }
.sec-head p { grid-column: 2; margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.sec-head:not(:has(.kicker)) h2, .sec-head:not(:has(.kicker)) p { grid-column: 1 / -1; }
.sec-head.tight { margin: 0; }

/* ---------- ヒーロー ---------- */
.hero { padding: 44px 0 36px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 36px 36px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.hero h1 { font-family: var(--sans); font-weight: 900; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -.03em; margin: 20px 0 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; isolation: isolate; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; background: var(--volt); z-index: -1; border-radius: 3px; transform-origin: left; animation: swipe .9s .3s var(--ease) both; }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lead { font-size: clamp(15.5px, 1.7vw, 18px); color: var(--ink-2); max-width: 30em; margin: 0; line-height: 1.85; }
.hero .lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stats { display: flex; gap: 0; margin: 30px 0 0; padding: 0; }
.stats > div { padding: 0 22px; border-left: 1px solid var(--rule-2); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.stats dd { margin: 0; font-size: 13px; color: var(--ink-2); }
.stats b { font-size: 28px; color: var(--ink); margin-right: 2px; letter-spacing: -.02em; }
.hero-art { position: relative; }
.art-frame { margin: 0; border-radius: 26px; overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -20px rgba(13, 16, 23, .45), 0 0 0 1px rgba(13, 16, 23, .08); aspect-ratio: 4 / 3; }
.art-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: slowzoom 18s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.08); } }
.float-card { position: absolute; left: -22px; bottom: -22px; background: rgba(13, 16, 23, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #d8d5cb; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 14px 18px 16px; display: grid; gap: 4px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.fc-label { font-size: 11.5px; color: #a7a49a; }
.fc-num { font-size: 13px; }
.fc-num b { font-size: 30px; color: var(--volt); font-weight: 700; letter-spacing: -.02em; margin-right: 3px; }
.fc-cells { display: flex; gap: 4px; margin-top: 4px; }
.fc-cells i { width: 22px; height: 8px; border-radius: 2px; background: #2c3242; }
.fc-cells i.on { background: var(--volt); }
@media (max-width: 920px) { .float-card { left: 12px; bottom: 12px; } }

/* ---------- 場面 ---------- */
.scenes-sec { padding: 40px 0 10px; }
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scene { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; border: 1px solid var(--rule); background: var(--panel); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; position: relative; }
.scene:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.scene-img { display: block; aspect-ratio: 4 / 3; background: var(--night); overflow: hidden; }
.scene-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scene:hover .scene-img img { transform: scale(1.05); }
.scene-txt { padding: 12px 14px 14px; display: grid; gap: 2px; }
.scene-txt b { font-size: 15.5px; }
.scene-txt small { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.scene.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--volt), var(--shadow-2); }
.scene.is-on::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--volt); color: var(--ink); font-weight: 900; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }

/* ---------- 計器盤 ---------- */
.calc-sec { padding: 44px 0 8px; scroll-margin-top: 72px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 920px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.app-head, .app { display: grid; grid-template-columns: 40px minmax(0, 1fr) 96px 96px 74px 32px; gap: 8px; align-items: center; }
.app-head { font-size: 11px; color: var(--ink-3); padding: 0 2px 6px; font-weight: 700; }
.app { padding: 8px 0; border-top: 1px dashed var(--rule); }
.app.is-new { animation: rowin .35s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.a-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.a-ico img { width: 34px; height: 34px; object-fit: contain; }
.app input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--rule-2); border-radius: 10px; padding: 8px 10px; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.app input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--volt-bg); }
.a-name { font-weight: 500; }
.a-num { position: relative; display: block; }
.a-num input { font-family: var(--mono); text-align: right; padding-right: 32px; appearance: textfield; -moz-appearance: textfield; }
.a-num input::-webkit-inner-spin-button, .a-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.a-num span { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--ink-3); pointer-events: none; }
.a-n input { padding-right: 24px; }
.a-del { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.a-del:hover { background: #fbe6df; color: var(--warn); }
@media (max-width: 600px) {
  .app-head { display: none; }
  .deck { padding: 16px; }
  .app { grid-template-columns: 40px repeat(4, minmax(0, 1fr)) 32px; grid-template-areas: "ico name name name name del" "w w h h n n"; row-gap: 6px; }
  .a-ico { grid-area: ico; }
  .a-num input { padding-right: 34px; }
  .a-name { grid-area: name; }
  .app > .a-num:nth-of-type(1) { grid-area: w; }
  .app > .a-num:nth-of-type(2) { grid-area: h; }
  .a-n { grid-area: n; }
  .a-del { grid-area: del; }
}
.presets-head { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 16px 0 8px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { appearance: none; font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 5px; min-height: 34px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--white); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.chip img { width: 24px; height: 24px; object-fit: contain; background: var(--paper); border-radius: 50%; padding: 1px; }
.chip small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.chip:hover { border-color: var(--ink); background: var(--volt-bg); transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip.ghost { border-style: dashed; padding-left: 11px; }
.fields { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.field { margin-top: 18px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; background: var(--paper-2); border-radius: 11px; }
.seg button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); padding: 7px 18px; border-radius: 9px; cursor: pointer; min-height: 40px; transition: background .25s var(--ease), color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--volt); font-weight: 700; }
.seg.small button { font-size: 13px; padding: 6px 13px; min-height: 36px; }

.meter { background: radial-gradient(120% 80% at 100% 0%, #1d2333 0%, var(--night) 60%); color: #e9e7df; border-color: var(--night); position: sticky; top: 80px; box-shadow: 0 24px 50px -24px rgba(13, 16, 23, .6); }
@media (max-width: 920px) { .meter { position: static; } }
.meter .label { color: #b9b6ab; }
.m-item + .m-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid #2a2f3d; }
.m-num { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.m-num b { font-size: clamp(40px, 5.6vw, 56px); line-height: 1.08; color: var(--volt); font-weight: 700; letter-spacing: -.03em; text-shadow: 0 0 28px rgba(245, 197, 24, .25); }
.m-num span { font-size: 14px; color: #d8d5cb; }
.m-sub { font-size: 12px; color: #a7a49a; margin: 6px 0 0; }
.classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.cls { display: grid; gap: 4px; }
.cls i { height: 10px; border-radius: 3px; background: #2a2f3d; transition: background .35s var(--ease), box-shadow .35s; }
.cls.on i { background: var(--volt); box-shadow: 0 0 12px rgba(245, 197, 24, .35); }
.cls small { font-family: var(--mono); font-size: 10px; color: #8f8c83; text-align: center; }
.cls.on small { color: #d8d5cb; }
.m-jump { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--volt); color: var(--ink); text-decoration: none; font-weight: 900; font-size: 15px; padding: 12px 16px; border-radius: 12px; transition: transform .2s var(--ease), box-shadow .2s; }
.m-jump:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(245, 197, 24, .6); }
.m-jump span { font-family: var(--mono); font-size: 18px; }
.m-jump .i { transform: rotate(90deg); }
.m-note { font-size: 12px; color: #a7a49a; margin: 16px 0 0; line-height: 1.7; }

/* スマホ: 下に固定の帯（計器が画面の外のとき） */
.dock { display: none; }
@media (max-width: 920px) {
  .dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; justify-content: space-between; align-items: center; gap: 10px; background: rgba(13, 16, 23, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #d8d5cb; text-decoration: none; font-size: 13px; padding: 11px 16px; border-radius: 14px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .35s var(--ease); }
  .dock.is-on { transform: none; }
  .dock b { font-family: var(--mono); color: var(--volt); font-size: 17px; margin: 0 2px; }
  .dock-n { background: var(--volt); color: var(--ink); font-weight: 900; padding: 4px 10px; border-radius: 9px; }
  .dock-n b { color: var(--ink); }
}

/* ---------- 一覧 ---------- */
.ledger-sec { padding: 44px 0 56px; scroll-margin-top: 72px; }
.ledger-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ledger-head h2 .num { font-size: 1.1em; background: var(--volt); padding: 0 8px; border-radius: 8px; }
.ledger-sub { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 34px 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 18px; transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); }
.row:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); }
.row.empty { display: block; text-align: center; color: var(--ink-3); padding: 28px; }
.r-rank { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink-3); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); }
.row:nth-child(1) .r-rank { background: var(--volt); color: var(--ink); }
.row:nth-child(2) .r-rank, .row:nth-child(3) .r-rank { background: var(--ink); color: var(--volt); }
.r-img { width: 72px; height: 72px; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); overflow: hidden; display: grid; place-items: center; }
.r-img img { width: 100%; height: 100%; object-fit: contain; }
.r-img .logo { width: 34px; height: 34px; color: var(--rule-2); --charge: var(--rule); }
.ledger.plain .r-rank { visibility: hidden; width: 0; }
.ledger.plain .row { grid-template-columns: 0 72px minmax(0, 1fr) auto; column-gap: 16px; }
@media (max-width: 640px) { .ledger.plain .row { grid-template-columns: 0 56px minmax(0, 1fr); column-gap: 10px; } }
.r-brand { font-size: 11.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.r-name { font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.4; display: block; }
.r-name:hover { text-decoration: underline; }
.r-spec { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.r-spec b { font-size: 14px; color: var(--ink); margin-right: 2px; }
.r-extra { margin-top: 6px; font-size: 13.5px; }
.hours { display: inline-flex; align-items: center; gap: 5px; background: var(--volt-bg); border: 1px solid #f0dd8f; padding: 2px 10px; border-radius: 8px; }
.hours b { font-family: var(--mono); }
.hours .i { color: var(--volt-2); }
.g-line { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.gauge { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; flex: 0 1 260px; }
.gauge i { display: block; height: 100%; width: var(--g); background: linear-gradient(90deg, var(--volt), #e3a400); border-radius: 3px; transition: width .5s var(--ease); }
.spare { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.spare b { font-family: var(--mono); color: var(--ok); }
.r-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.r-ypw { display: flex; align-items: baseline; gap: 3px; }
.r-ypw small { font-size: 11px; color: var(--ink-3); }
.r-ypw b { font-size: 22px; letter-spacing: -.02em; }
.buy { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--white); text-decoration: none; padding: 9px 13px; border-radius: 10px; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.buy:hover { background: #262b38; transform: translateY(-1px); }
.buy .i { color: var(--volt); }
.buy.is-none { background: var(--paper-2); color: var(--ink-3); font-weight: 500; }
.buy.is-official { background: var(--panel); color: var(--ink); border: 1px solid var(--ink); }
.buy.is-official:hover { background: var(--paper-2); }
.buy.is-official .i { color: var(--ink); }
.buy-note { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.buy.big { font-size: 15px; padding: 13px 20px; border-radius: 12px; }
@media (max-width: 640px) {
  .row { grid-template-columns: 28px 56px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .r-rank { width: 28px; height: 28px; font-size: 13px; }
  .r-img { width: 56px; height: 56px; }
  .r-side { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* 入口ページの切り替えタブ */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; text-decoration: none; color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); padding: 7px 14px; border-radius: 999px; transition: border-color .2s; }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--volt); border-color: var(--ink); font-weight: 700; }
.apps-tabs a { padding-left: 6px; }
.apps-tabs img { width: 22px; height: 22px; object-fit: contain; background: var(--paper); border-radius: 50%; }

/* 家電別ページ: 何時間使いたい？ */
.want { margin: 20px 0 4px; }
.want .tabs { margin: 6px 0 0; }
.hours.is-short { background: var(--paper-2); border-color: var(--rule); color: var(--ink-3); }
.short-rows { margin-top: 28px; }
.short-rows[open] > summary { display: block; margin-bottom: 10px; }

/* 一覧の続き（トップ） */
.more-btn { display: block; width: 100%; margin-top: 10px; font: inherit; font-weight: 700; font-size: 14px; padding: 13px; border: 1px dashed var(--rule-2); border-radius: var(--r); background: var(--panel); cursor: pointer; transition: border-color .2s; }
.more-btn:hover { border-color: var(--ink); }
.more-btn[hidden] { display: none; }

/* 一覧の続き（入口ページ） */
.more-rows { margin-top: 10px; }
.more-rows > summary { list-style: none; cursor: pointer; text-align: center; font-weight: 700; font-size: 14px; padding: 13px; border: 1px dashed var(--rule-2); border-radius: var(--r); background: var(--panel); transition: border-color .2s; }
.more-rows > summary::-webkit-details-marker { display: none; }
.more-rows > summary::after { content: " ↓"; }
.more-rows > summary:hover { border-color: var(--ink); }
.more-rows[open] > summary { display: none; }

/* ---------- 説明・リンク ---------- */
.explain { padding: 40px 0 40px; }
.explain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .explain-grid { grid-template-columns: minmax(0, 1fr); } }
.explain-grid > article { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.ex-img { display: block; height: 170px; margin: -6px -6px 6px; background: radial-gradient(60% 70% at 50% 60%, var(--volt-bg), transparent 70%); }
.ex-img img { display: block; height: 100%; width: auto; margin: 0 auto; object-fit: contain; }
.explain h3 { font-size: 18px; margin: 8px 0 6px; }
.explain p { font-size: 14px; color: var(--ink-2); margin: 0; }
.step { font-family: var(--mono); font-weight: 700; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--volt); }
.more { margin-top: 18px; font-size: 14px; font-weight: 700; }
.links-sec { padding: 20px 0 72px; }
.links-sec .sec-head { margin-top: 28px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ac-img { width: 72px; height: 72px; } .ac-img img { width: 66px; height: 66px; } .app-card { padding: 12px 8px; } }
.band-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
@media (max-width: 400px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }
.band-card { display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.band-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--ink); }
.band-card b { font-size: 17px; }
.band-card .bc-n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.band-card .bc-use { font-size: 13px; color: var(--ink-2); }
.band-card .bc-use img { width: 20px; height: 20px; vertical-align: -5px; margin-right: 2px; }
.app-card { display: grid; justify-items: center; text-align: center; gap: 2px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 12px 14px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--ink); }
.ac-img { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--paper-2), transparent 70%); margin-bottom: 6px; }
.ac-img img { width: 86px; height: 86px; object-fit: contain; transition: transform .4s var(--ease); }
.app-card:hover .ac-img img { transform: scale(1.08) rotate(-2deg); }
.app-card b { font-size: 14.5px; }
.app-card small { font-size: 11.5px; color: var(--ink-3); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.link-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 15px; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: border-color .2s, transform .2s var(--ease); }
.link-grid a:hover { border-color: var(--ink); transform: translateY(-1px); }
.link-grid small { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* ---------- ブランド一覧 ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } }
.brand-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--ink); }
.bc-img { width: 96px; height: 96px; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: contain; }
.bc-img .logo { width: 40px; height: 40px; color: var(--rule-2); --charge: var(--rule); }
.bc-body { display: grid; gap: 2px; }
.bc-body > b { font-family: var(--disp); font-size: 20px; letter-spacing: -.01em; }
.bc-body small { font-size: 12.5px; color: var(--ink-3); }
.bc-best { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.bc-best b { font-family: var(--mono); font-size: 15px; color: var(--ink); }

/* ---------- 家電別ページの見出し ---------- */
.use-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; }
.use-head .use-img { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--volt-bg), transparent 68%); display: grid; place-items: center; }
.use-head .use-img img { width: 190px; height: 190px; object-fit: contain; }
@media (max-width: 640px) { .use-head { grid-template-columns: minmax(0, 1fr); } .use-head .use-img { width: 150px; height: 150px; order: -1; } .use-head .use-img img { width: 130px; height: 130px; } }

/* ---------- 機種ページ ---------- */
.model-hero { padding: 14px 0 28px; }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 860px) { .mh-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .pack { order: -1; width: 100%; padding: 10px; border-radius: 18px; } .pack img { width: auto; height: 170px; margin: 0 auto; } .pack figcaption { text-align: center; } }
@media (max-width: 560px) {
  .tbl.spec, .tbl.spec tbody, .tbl.spec tr, .tbl.spec th, .tbl.spec td { display: block; width: auto; }
  .tbl.spec tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .tbl.spec th, .tbl.spec td { border: 0; padding: 0 2px; }
  .tbl.spec th { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
  .kpis { gap: 6px; } .kpi { padding: 10px 11px; } .kpi .label { font-size: 10.5px; }
}
.brand-link { font-size: 13px; font-weight: 700; color: var(--ink-3); text-decoration: none; letter-spacing: .03em; text-transform: uppercase; }
.model-hero h1 { font-size: clamp(26px, 4.2vw, 42px); line-height: 1.25; margin: 4px 0 20px; font-weight: 900; letter-spacing: -.01em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.kpi:first-child { background: var(--night); border-color: var(--night); color: #e9e7df; }
.kpi:first-child .label, .kpi:first-child small { color: #b9b6ab; }
.kpi:first-child b { color: var(--volt); }
.kpi .label { display: block; font-size: 11.5px; }
.kpi b { font-size: clamp(24px, 3.6vw, 32px); letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--ink-3); margin-left: 3px; }
.kpi .kpi-none { font-family: var(--sans); font-size: clamp(20px, 3vw, 26px); }
.kpi .kpi-none + small { display: block; margin: 0; font-size: 11px; }
.buy-box { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.buy-box .note { flex-basis: 100%; margin: 0; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .yen { font-size: 16px; color: var(--ink-2); }
.price b { font-size: 34px; letter-spacing: -.02em; }
.pack { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-2); }
.pack img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.pack figcaption { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.model-body { padding: 0 0 72px; }
.model-body .panel + .panel { margin-top: 18px; }
.near { margin-top: 36px; }
.model-body h3 { font-size: 15px; margin: 20px 0 6px; }
.runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.run { display: grid; grid-template-columns: 34px minmax(0, 210px) minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.run:last-child { border-bottom: 0; }
.run img { width: 32px; height: 32px; object-fit: contain; }
.run-name { font-size: 14px; text-decoration: none; line-height: 1.35; }
.run-name small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.run-bar { height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.run-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--volt), #e3a400); border-radius: 5px; }
.run-h { font-family: var(--mono); font-weight: 700; font-size: 14px; text-align: right; white-space: nowrap; }
.run.is-over .run-h { color: var(--warn); font-family: var(--sans); font-size: 12px; font-weight: 700; }
@media (max-width: 560px) { .run { grid-template-columns: 30px minmax(0, 1fr) 76px; } .run-bar { grid-column: 2 / -1; grid-row: 2; } }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl thead th { font-size: 12px; color: var(--ink-3); font-weight: 700; background: var(--paper); }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .num { font-family: var(--mono); }
.tbl.spec th { width: 34%; font-weight: 500; color: var(--ink-2); }
.tbl.spec td small { display: block; font-size: 12px; color: var(--ink-3); }
.src-link { display: block; font-size: 12px; margin-top: 3px; }
.src-link::before { content: "出典 "; color: var(--ink-3); }
.callout { margin-top: 14px; background: var(--volt-bg); border: 1px solid #f0dd8f; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.callout ul { margin: 6px 0 0; padding-left: 1.2em; }
.sources { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.sources li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.sources a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.sources span { color: var(--ink-3); }

/* ---------- 404 ---------- */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: center; padding: 40px 0 80px; }
.lost img { width: 100%; height: auto; }
@media (max-width: 760px) { .lost { grid-template-columns: minmax(0, 1fr); } .lost .lost-art { order: -1; max-width: 260px; } }

/* ---------- フォーム ---------- */
.form { max-width: 720px; }
.form .f { display: block; margin-bottom: 14px; }
.form .f .label { display: block; margin-bottom: 4px; }
.form .f em { font-style: normal; color: var(--warn); font-size: 11px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--white); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .f2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-err { color: var(--warn); font-weight: 700; }

/* ---------- フッター ---------- */
.site-footer { background: var(--night); color: #cfccc2; padding: 56px 0 30px; margin-top: 20px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--volt) 0 38%, #2a2f3d 38%); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand-word { color: var(--white); }
.site-footer .brand-word b { color: var(--ink); }
.site-footer .logo { color: var(--white); }
.site-footer p { font-size: 13px; line-height: 1.85; color: #b9b6ab; }
.site-footer nav { display: grid; gap: 7px; align-content: start; }
.site-footer nav a { font-size: 13.5px; color: #e9e7df; text-decoration: none; }
.site-footer nav a:hover { color: var(--volt); }
.copy { grid-column: 1 / -1; font-size: 12px; color: #8f8c83; border-top: 1px solid #2a2f3d; padding-top: 16px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } }
.cycles-tbl td, .cycles-tbl th { white-space: nowrap; font-size: 13.5px; vertical-align: middle; }
.cycles-tbl .l { white-space: normal; min-width: 9em; }
.cycles-tbl .l small { display: block; font-size: 11px; color: var(--ink-3); }
.cycles-tbl .l a { font-weight: 700; text-decoration: none; }

/* ---------- 押しやすさ（指で押す所は高さ 32px 以上。見た目の位置は変えずに押せる範囲だけ広げる） ---------- */
.site-footer nav a { display: block; padding: 6px 0; margin: -3px 0; }
.r-name, .e-name a { padding-block: 5px; margin-block: -5px; }
.e-name a { display: inline-block; }
.brand-link { display: inline-block; padding-block: 8px; margin-block: -8px; }
.sources a { padding-block: 5px; margin-block: -5px; }
/* 楽天の画像が消えていたとき（ui.js が付ける） */
.img-gone { display: none !important; }
