:root {
  --blue: #1645ff;
  --blue-deep: #0b2fbe;
  --orange: #ff5a36;
  --acid: #dfff00;
  --ink: #13232b;
  --paper: #fff;
  --fog: #edf1f5;
  --line: #aeb9c2;
  --muted: #5f6d75;
  --side: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.72; letter-spacing: .02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.reading-progress { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: 4px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--acid); }
.kicker { margin: 0 0 15px; color: var(--orange); font: 900 .73rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .16em; }
.kicker.blue { color: var(--blue); }

.site-header { position: fixed; z-index: 70; inset: 0 auto 0 0; display: flex; width: var(--side); padding: 18px 14px; color: #fff; background: var(--ink); flex-direction: column; align-items: center; }
.lab-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header .lab-brand { writing-mode: vertical-rl; gap: 15px; }
.lab-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; color: #fff; background: var(--blue); place-items: center; font: 900 .82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.lab-brand b, .lab-brand small { display: block; }
.site-header .lab-brand b { font-size: .78rem; letter-spacing: .11em; }
.site-header .lab-brand small { display: none; }
.menu-button { display: none; }
.site-menu { display: flex; min-height: 0; margin-top: 34px; flex: 1; flex-direction: column; justify-content: center; gap: 23px; }
.site-menu a { display: flex; color: #b9c3c8; font-size: .67rem; font-weight: 800; text-decoration: none; writing-mode: vertical-rl; gap: 7px; }
.site-menu a span { color: var(--orange); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.site-menu a:hover { color: var(--acid); }

main, .site-footer { margin-left: var(--side); }
.hero { min-height: 820px; display: grid; grid-template-columns: 1.08fr .92fr; color: #fff; background: var(--blue); }
.hero-copy { display: flex; padding: 72px clamp(32px, 6vw, 96px); flex-direction: column; justify-content: center; }
.hero .kicker { display: flex; justify-content: space-between; gap: 20px; color: #fff; }
.hero h1 { max-width: 800px; margin-bottom: 28px; font-size: clamp(3.2rem, 6.5vw, 7rem); line-height: 1.02; letter-spacing: -.07em; }
.hero h1 em { color: var(--acid); font-style: normal; }
.hero-lead { max-width: 720px; color: #d8e0ff; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 50px; padding: 0 23px; align-items: center; justify-content: center; font-weight: 900; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: var(--acid); }
.button.line { color: #fff; border-color: #fff; }
.button.line:hover { color: var(--blue); background: #fff; }
.hero-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 50px 0 0; border-top: 1px solid rgba(255,255,255,.5); }
.hero-specs > div { padding: 17px 14px 0 0; }
.hero-specs dt { color: var(--acid); font: 900 .67rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-specs dd { margin: 3px 0 0; font-weight: 800; }
.hero-machine { position: relative; overflow: hidden; display: grid; min-height: 650px; background-color: #f6f8fa; background-image: linear-gradient(#cfd6dc 1px, transparent 1px), linear-gradient(90deg, #cfd6dc 1px, transparent 1px); background-size: 48px 48px; place-items: center; }
.hero-machine::before, .hero-machine::after { content: ""; position: absolute; z-index: 1; background: var(--orange); }
.hero-machine::before { top: 0; right: 0; width: 42%; height: 14px; }
.hero-machine::after { right: 0; bottom: 0; width: 14px; height: 44%; }
.hero-machine img { position: relative; z-index: 2; width: min(84%, 720px); object-fit: contain; background: #fff; box-shadow: 22px 22px 0 var(--orange); }
.grid-label { position: absolute; z-index: 3; top: 32px; left: 32px; color: var(--ink); }
.grid-label span, .grid-label b { display: block; }
.grid-label span { font: 900 .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.grid-label b { color: var(--blue); font-size: 2.5rem; letter-spacing: -.06em; }
.axis { position: absolute; z-index: 3; color: #485a63; font: 800 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.axis-x { right: 30px; bottom: 25px; }
.axis-y { top: 115px; right: 22px; writing-mode: vertical-rl; }

.test-index { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--ink); }
.test-index a { display: grid; grid-template-columns: 35px 1fr; gap: 9px; min-height: 100px; padding: 18px; align-content: center; text-decoration: none; border-right: 1px solid var(--ink); }
.test-index a:last-child { border-right: 0; }
.test-index a:hover { color: #fff; background: var(--blue); }
.test-index span { grid-row: 1 / 3; color: var(--orange); font: 900 .7rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.test-index b, .test-index small { display: block; }
.test-index b { font-size: .95rem; }
.test-index small { color: var(--muted); font: 800 .62rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.test-index a:hover small { color: #dbe2ff; }

.section { position: relative; padding: clamp(75px, 9vw, 140px) clamp(28px, 7vw, 120px); }
.section-intro h2, .wide-heading h2, .system-statement h2, .maintenance-copy h2, .battery-heading h2, .documents-copy h2, .conclusion h2 { margin-bottom: 22px; font-size: clamp(2.3rem, 4.8vw, 5rem); line-height: 1.08; letter-spacing: -.055em; }
.section-intro > p:last-child, .wide-heading > p, .system-statement > p, .maintenance-copy > p, .battery-heading > p, .documents-copy > p { color: var(--muted); }
.section-intro.light > p:last-child { color: #d9e0ff; }
.section-code { position: absolute; top: 42px; right: 5vw; color: rgba(255,255,255,.12); font: 900 clamp(8rem, 20vw, 20rem)/.8 ui-monospace, SFMono-Regular, Menlo, monospace; pointer-events: none; }
.ranking { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(35px, 7vw, 110px); color: #fff; background: var(--orange); align-items: center; }
.evidence-frame { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--ink); cursor: zoom-in; text-align: left; box-shadow: 16px 16px 0 var(--ink); }
.evidence-frame img { width: 100%; height: auto; object-fit: contain; background: #fff; }
.frame-label { position: absolute; z-index: 4; top: 0; left: 0; padding: 7px 10px; color: #fff; background: var(--blue); font: 900 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.dark-label { color: #fff; background: var(--ink); }
.ranking-frame { max-width: 820px; justify-self: end; }

.system-map { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 7vw, 115px); background: var(--fog); align-items: center; }
.system-statement ul { margin: 34px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.system-statement li { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.system-statement li span { color: var(--blue); font: 900 .73rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.system-frame { max-width: 680px; justify-self: end; box-shadow: 16px 16px 0 var(--blue); }

.brush-lab { color: #fff; background: var(--ink); }
.wide-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 70px; margin-bottom: 55px; align-items: end; }
.wide-heading > p { margin-bottom: 8px; color: #b8c3c8; }
.wide-heading.dark-text > p { color: var(--muted); }
.experiment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.experiment { padding: 24px; color: var(--ink); background: #fff; border-top: 9px solid var(--blue); }
.accent-experiment { border-color: var(--orange); }
.experiment-meta { display: grid; grid-template-columns: 88px 1fr; padding-bottom: 16px; align-items: center; }
.experiment-meta span { grid-row: 1 / 3; color: var(--blue); font: 900 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.accent-experiment .experiment-meta span { color: var(--orange); }
.experiment-meta b { font-size: 1.13rem; }
.experiment-meta small { color: var(--muted); font: 800 .63rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.animation-frame { border: 1px solid var(--line); box-shadow: none; }
.experiment > p { margin: 20px 3px 0; color: var(--muted); font-size: .88rem; }
.test-note { margin: 25px 0 0; color: #9eadb4; font-size: .75rem; }

.maintenance { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(45px, 8vw, 130px); background: #fff; align-items: center; }
.maintenance-visual .evidence-frame { max-width: 720px; box-shadow: -18px 18px 0 var(--acid); }
.big-number { margin: 0 0 5px !important; color: var(--blue) !important; font: 900 clamp(5rem, 11vw, 11rem)/.85 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.09em; }
.inspection-points { display: grid; margin-top: 35px; border-top: 2px solid var(--ink); }
.inspection-points > div { display: grid; grid-template-columns: 90px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.inspection-points span { grid-row: 1 / 3; color: var(--orange); font: 900 .66rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.inspection-points b { font-size: .94rem; }
.inspection-points p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }

.charging { background: var(--acid); }
.charging-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(35px, 6vw, 90px); align-items: center; }
.charging-main { box-shadow: 16px 16px 0 var(--blue); }
.charge-options { border-top: 2px solid var(--ink); }
.charge-options article { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 19px 0; border-bottom: 1px solid rgba(19,35,43,.45); }
.charge-options span { display: grid; width: 35px; height: 35px; color: #fff; background: var(--blue); place-items: center; font: 900 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.charge-options b { font-size: 1rem; }
.charge-options p { margin: 2px 0 0; color: #46545b; font-size: .82rem; }

.battery { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(40px, 7vw, 110px); color: #fff; background: var(--blue); align-items: start; }
.battery-heading { position: sticky; top: 60px; }
.battery-heading > p:last-child { color: #d7e0ff; }
.battery-images { display: grid; gap: 30px; }
.battery-images .evidence-frame { box-shadow: 16px 16px 0 var(--orange); }

.documents { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(45px, 8vw, 135px); background: var(--fog); align-items: start; }
.documents-copy { position: sticky; top: 65px; }
.documents-copy dl { margin: 35px 0 0; border-top: 2px solid var(--ink); }
.documents-copy dl > div { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.documents-copy dt { color: var(--blue); font: 900 .7rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.documents-copy dd { margin: 0; }
.documents-copy dd b, .documents-copy dd span { display: block; }
.documents-copy dd span { color: var(--muted); font-size: .8rem; }
.document-note { margin-top: 22px !important; color: var(--blue) !important; font-size: .78rem; font-weight: 800; }
.document-stack { display: grid; gap: 30px; justify-items: center; }
.document-frame { max-width: 750px; justify-self: center; box-shadow: 18px 18px 0 var(--orange); }

.conclusion { display: grid; grid-template-columns: .28fr .72fr 1.15fr; gap: clamp(25px, 5vw, 75px); color: #fff; background: var(--orange); align-items: start; }
.conclusion-index { color: var(--acid); font: 900 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; writing-mode: vertical-rl; letter-spacing: .2em; }
.conclusion ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.6); }
.conclusion li { display: grid; grid-template-columns: 52px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.6); }
.conclusion li > span { color: var(--acid); font: 900 .72rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.conclusion li p { margin: 0; color: #fff5f0; font-size: .88rem; }
.conclusion li b { display: block; color: #fff; font-size: 1rem; }
.dark-button { grid-column: 3; width: max-content; color: #fff; background: var(--ink); }

.notice { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; padding: 46px clamp(28px, 7vw, 120px); color: #748188; background: #f5f7f8; border-top: 1px solid var(--line); font-size: .74rem; }
.notice b { display: block; margin-bottom: 4px; color: var(--ink); }
.notice p { margin-bottom: 0; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 45px clamp(28px, 7vw, 120px) 24px; color: #c3cdd1; background: var(--ink); }
.footer-brand { color: #fff; }
.footer-brand small { color: #7f929b; font: 800 .6rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
.site-footer nav a { color: #c3cdd1; font-size: .78rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--acid); }
.site-footer > p { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 18px; color: #6e818a; border-top: 1px solid #40515a; font-size: .7rem; }

.image-dialog { width: min(94vw, 1120px); max-width: none; max-height: 92vh; padding: 0; color: var(--ink); background: #fff; border: 0; box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.image-dialog::backdrop { background: rgba(7,14,18,.86); }
.dialog-head { position: sticky; z-index: 3; top: 0; display: flex; min-height: 56px; padding: 10px 13px 10px 20px; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-head p { margin: 0; font-weight: 900; }
.dialog-head button { padding: 8px 14px; color: #fff; background: var(--ink); border: 0; cursor: pointer; }
.dialog-body { overflow: auto; max-height: calc(92vh - 56px); padding: 16px; background: #e8edf0; }
.dialog-body img { width: auto; max-width: 100%; height: auto; margin: auto; background: #fff; }

@media (max-width: 1080px) {
  :root { --side: 0px; }
  .site-header { position: sticky; inset: 0; width: auto; height: 72px; padding: 0 20px; flex-direction: row; justify-content: space-between; }
  .site-header .lab-brand { writing-mode: initial; gap: 10px; }
  .site-header .lab-brand b { font-size: .85rem; }
  .site-header .lab-brand small { display: block; color: #8fa0a7; font: 800 .52rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
  .lab-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .menu-button { display: block; padding: 7px 10px; color: #fff; background: transparent; border: 1px solid #74868e; font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
  .site-menu { display: none; position: absolute; top: 72px; right: 0; left: 0; margin: 0; padding: 18px 20px; color: #fff; background: var(--ink); flex: initial; flex-direction: column; justify-content: flex-start; gap: 14px; border-top: 1px solid #43545c; }
  .site-menu.open { display: flex; }
  .site-menu a { font-size: .78rem; writing-mode: initial; }
  main, .site-footer { margin-left: 0; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-machine { min-height: 600px; }
  .ranking, .system-map, .maintenance, .battery, .documents { grid-template-columns: 1fr; }
  .section-intro { max-width: 760px; }
  .ranking-frame, .system-frame, .maintenance-visual .evidence-frame { justify-self: center; }
  .battery-heading, .documents-copy { position: static; }
  .battery-heading { max-width: 760px; }
}

@media (max-width: 760px) {
  .hero-copy { padding: 58px 22px 55px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 5rem); }
  .hero .kicker { flex-direction: column; gap: 3px; }
  .hero-machine { min-height: 440px; }
  .hero-machine img { width: 78%; box-shadow: 12px 12px 0 var(--orange); }
  .hero-specs dd { font-size: .78rem; }
  .test-index { grid-template-columns: 1fr; }
  .test-index a { min-height: 66px; grid-template-columns: 42px 1fr; padding: 10px 18px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .test-index a:last-child { border-bottom: 0; }
  .section { padding: 74px 20px; }
  .wide-heading, .experiment-grid, .charging-layout, .conclusion, .notice { grid-template-columns: 1fr; }
  .wide-heading { gap: 8px; }
  .evidence-frame { box-shadow: 10px 10px 0 var(--ink); }
  .system-frame, .charging-main { box-shadow: 10px 10px 0 var(--blue); }
  .maintenance-visual .evidence-frame { box-shadow: -10px 10px 0 var(--acid); }
  .battery-images .evidence-frame, .document-frame { box-shadow: 10px 10px 0 var(--orange); }
  .experiment { padding: 14px; }
  .experiment-meta { grid-template-columns: 64px 1fr; }
  .conclusion-index { writing-mode: initial; }
  .dark-button { grid-column: auto; }
  .notice { gap: 25px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer > p { grid-column: auto; }
}

@media (max-width: 430px) {
  .site-header { padding-inline: 13px; }
  .site-header .lab-brand small { display: none; }
  .button { width: 100%; }
  .hero-machine { min-height: 360px; }
  .grid-label { top: 20px; left: 20px; }
  .axis { display: none; }
  .hero-specs { grid-template-columns: 1fr; }
  .hero-specs > div { display: grid; grid-template-columns: 60px 1fr; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
  .experiment-meta { grid-template-columns: 1fr; }
  .experiment-meta span { grid-row: auto; }
  .inspection-points > div { grid-template-columns: 1fr; gap: 2px; }
  .inspection-points span { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
