/* 首屏：桌面左侧静物，窄屏先读文案。 */
.hero {
  position: relative; isolation: isolate; overflow: hidden; overflow-x: clip;
  min-height: clamp(760px, 100vh, 980px);
  display: flex; flex-direction: column; padding-top: 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(540px 430px at 27% 54%, var(--aurora-1), var(--c-clear) 70%),
    radial-gradient(620px 470px at 94% 6%, var(--aurora-2), var(--c-clear) 70%),
    radial-gradient(500px 380px at 80% 94%, var(--aurora-3), var(--c-clear) 70%);
}
.arc { position: absolute; border-radius: var(--r-round); background: linear-gradient(205deg, var(--c-white-veil), var(--c-clear) 62%); box-shadow: var(--sh-arc); }
.arc-1 { width: 1240px; height: 780px; top: -540px; right: -420px; }
.arc-2 { width: 920px; height: 640px; top: -470px; right: -140px; opacity: .85; }
.dots {
  position: absolute; left: 0; top: 70px; width: 64%; height: 82%;
  background-image: radial-gradient(var(--c-dot) 1px, var(--c-clear) 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 48% 46% at 50% 56%, var(--c-text) 0%, var(--c-clear) 72%);
  mask-image: radial-gradient(ellipse 48% 46% at 50% 56%, var(--c-text) 0%, var(--c-clear) 72%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-clear) 70%, var(--c-bg)); }
.hero-grid {
  max-width: calc(1312px + var(--gutter) * 2); flex: 1; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  position: relative; z-index: 2;
}
.hero-grid > * { min-width: 0; }
.hero-scene { order: -1; margin-inline-start: -16px; }
.hero-scene img, .scene-svg { display: block; width: 100%; height: auto; }
.scene-svg { overflow: visible; }
.hero-copy { max-width: 560px; padding-bottom: 6px; }
.badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 34px; max-width: 100%; padding: 4px 15px 4px 12px;
  border-radius: var(--r-pill); background: var(--c-panel); color: var(--c-muted); border: 1px solid var(--c-border);
  box-shadow: var(--sh-soft); font-size: var(--fs-badge);
}
.badge-dot, .status-dot { width: 8px; height: 8px; border-radius: var(--r-round); background: var(--c-accent); }
.badge-dot { box-shadow: var(--sh-dot); }
.badge b { color: var(--c-text); font-weight: var(--weight-semi); }
.badge-sep { color: var(--alu-3); }
.badge code { font-size: var(--fs-badge-code); color: var(--c-muted); }
.hero h1 { line-height: var(--lh-hero); letter-spacing: var(--ls-hero); margin: 24px 0 20px; color: var(--c-text); }
.h1-line { display: block; }
.h1-grad { color: var(--c-accent-dark); padding-bottom: .06em; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .h1-grad {
    background: linear-gradient(100deg, var(--c-accent), var(--c-accent-dark)); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: var(--c-clear); color: var(--c-clear);
  }
}
@media (forced-colors: active) {
  .h1-grad { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
}
.lead { font-size: var(--fs-lead); line-height: var(--lh-prose); color: var(--c-muted); max-width: 30em; }
.lead strong {
  color: var(--c-text); font-weight: var(--weight-semi); padding-inline: 2px;
  background: linear-gradient(180deg, var(--c-clear) 62%, var(--c-accent-mark) 62%);
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.plat { margin-top: 34px; }
.plat-label { font-size: var(--fs-platform-label); letter-spacing: var(--ls-label); color: var(--c-muted); margin-bottom: 12px; }
.plat-list, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.plat-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 14px 3px 5px;
  border-radius: var(--r-pill); background: var(--c-white-a); color: var(--c-text); border: 1px solid var(--c-border);
  font-size: var(--fs-chip); font-weight: var(--weight-semi); text-decoration: none;
}
.plat-chip:hover { color: var(--c-accent-dark); text-decoration: underline; }
.plat-ico { width: 26px; height: 26px; border-radius: var(--r-round); background: var(--c-panel-2); color: var(--c-text); display: grid; place-items: center; }
.plat-ico svg { width: 13px; height: 13px; display: block; }
.fact-wrap { position: relative; z-index: 2; display: flex; justify-content: center; padding-top: 8px; padding-bottom: 40px; }
.facts {
  display: flex; align-items: center; padding: 14px 10px; list-style: none;
  background: var(--c-panel); color: var(--c-text); border: 1px solid var(--c-border);
  border-radius: var(--r-pill); box-shadow: var(--sh-strip);
}
.facts li { display: flex; align-items: center; gap: 14px; padding: 4px 30px; min-width: 0; }
.facts li + li { border-left: 1px solid var(--c-border); }
.fact-num { flex: none; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--fs-fact); line-height: 1; letter-spacing: var(--ls-fact); }
.fact-txt { display: flex; flex-direction: column; line-height: var(--lh-fact); }
.fact-txt b { font-size: var(--fs-small); font-weight: var(--weight-bold); }
.fact-txt small { font-family: var(--font-mono); font-size: var(--fs-fact-note); color: var(--c-muted); }

.scene-svg text { font-family: var(--font-body); }
.st-panel { stop-color: var(--c-panel); }
.st-panel2 { stop-color: var(--c-panel-2); }
.st-alu-hi { stop-color: var(--alu-hi); }
.st-alu1 { stop-color: var(--alu-1); }
.st-alu2 { stop-color: var(--alu-2); }
.st-alu3 { stop-color: var(--alu-3); }
.st-alu4 { stop-color: var(--alu-4); }
.st-edge { stop-color: var(--desk-edge); }
.st-edge2 { stop-color: var(--desk-edge-2); }
.st-ink { stop-color: var(--c-text); }
.st-ink2 { stop-color: var(--c-ink-2); }
.st-shade { stop-color: var(--c-shade); }
.st-accent { stop-color: var(--c-accent); }
.st-accent-dark { stop-color: var(--c-accent-dark); }
.f-panel { fill: var(--c-panel); }
.f-panel2 { fill: var(--c-panel-2); }
.f-alu1 { fill: var(--alu-1); }
.f-alu3 { fill: var(--alu-3); }
.f-alu5 { fill: var(--alu-5); }
.f-bar { fill: var(--scr-bar); }
.f-line { fill: var(--scr-line); }
.f-text { fill: var(--c-text); }
.f-accent { fill: var(--c-accent); }
.f-accent-soft { fill: var(--c-accent-soft); }
.f-warn { fill: var(--c-warn); }
.shd { fill: var(--c-shade); }
.o-07 { opacity: .07; }
.o-12 { opacity: .12; }
.o-18 { opacity: .18; }
.s-border { fill: none; stroke: var(--c-border); }
.s-hl { fill: none; stroke: var(--c-panel); stroke-width: 1.2; stroke-linecap: round; }
.desk-rim { fill: none; stroke: var(--c-panel); stroke-width: 1.6; opacity: .9; }
.ant-edge { fill: none; stroke: var(--alu-2); stroke-width: .8; }
.cable { fill: none; stroke: var(--alu-2); stroke-width: 3.4; stroke-linecap: round; }
.cable-hl { fill: none; stroke: var(--c-panel); stroke-width: 1; stroke-linecap: round; opacity: .85; }
.cable-shd { fill: none; stroke: var(--c-shade); stroke-width: 4; stroke-linecap: round; opacity: .08; }
.power { fill: none; stroke: var(--c-panel); stroke-width: 2.6; stroke-linecap: round; }
.cup-handle { fill: none; stroke: var(--c-panel); stroke-width: 7; stroke-linecap: round; }
.cup-handle-shd { fill: none; stroke: var(--alu-1); stroke-width: 7; stroke-linecap: round; }
.cup-rim { fill: none; stroke: var(--c-panel); stroke-width: 2; }
.t-ui { font-size: var(--fs-scene-ui); font-weight: var(--weight-semi); fill: var(--c-muted); }
.t-ui-on { fill: var(--c-accent-dark); }
.t-cap, .t-phone { font-weight: var(--weight-bold); text-anchor: middle; }
.t-cap { font-size: var(--fs-scene-cap); fill: var(--c-panel); }
.t-phone { font-size: var(--fs-scene-ui); fill: var(--c-muted); }
.led { animation: led-breathe 4s ease-in-out infinite; }
.led-b { animation-delay: -2s; }
@keyframes led-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

[role="tablist"].tab-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: fit-content; max-width: 100%;
  margin: 0 auto 22px; padding: 5px; border: 1px solid var(--c-border);
  border-radius: var(--r-pill); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-soft);
}
.tab-strip [role="tab"] {
  min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill); font-weight: var(--weight-semi); color: var(--c-muted);
}
.tab-strip [role="tab"]:hover { background: var(--c-tint); color: var(--c-accent-dark); }
.tab-strip [role="tab"][aria-selected="true"] { background: var(--c-accent); color: var(--c-panel); box-shadow: var(--sh-tab); }
.tab-panel { min-width: 0; }
.tab-panel.is-entering { animation: panel-appear var(--ease-reveal) both; }
@keyframes panel-appear { from { opacity: 0; } to { opacity: 1; } }
.feature-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--gap); align-items: center;
  box-shadow: var(--sh-strip);
}
.feature-panel > * { min-width: 0; margin-block-start: 0; }
.feature-copy p { margin: 14px 0 20px; line-height: var(--lh-prose); }
.feature-prop, .feature-prop pre {
  background: var(--c-panel-2); color: var(--c-text); font-family: var(--font-mono); border-radius: var(--r-lg);
}
.feature-prop { padding: clamp(16px, 3vw, 28px); }
.feature-prop pre { padding: 0; margin-top: 10px; }
.feature-prop figcaption { font-size: var(--fs-small); color: var(--c-muted); }
.feature-prop ul { list-style: none; padding: 0; }
.feature-prop li { padding-block: 9px; border-bottom: 1px solid var(--c-border); }

.toc {
  width: fit-content; max-width: 100%; margin-bottom: 20px; padding: 6px;
  background: var(--c-panel); color: var(--c-text); border: 1px solid var(--c-border);
  border-radius: var(--r-note); box-shadow: var(--sh-soft);
}
.toc ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 9px 12px; min-height: 44px; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc--sticky { position: sticky; top: 12px; z-index: 3; }
.chapter-layout { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 64px); }
.chapter-layout > * { min-width: 0; }
.chapter-rail { position: sticky; top: 24px; }
.chapter-rail .toc { margin: 16px 0 0; }
.chapter-rail .toc ul { display: block; }
.chapter + .chapter { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.chapter > .step-label { margin-bottom: 12px; }
.step-label {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--color-primary); color: var(--c-panel); font: var(--fs-badge)/var(--lh-body) var(--font-mono);
}
.sec--ink .step-label { background: var(--c-inverse-link); color: var(--c-inverse); }

.faq { border-bottom: 1px solid var(--c-border); }
.faq:first-of-type { border-top: 1px solid var(--c-border); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 15px 36px 15px 4px;
  list-style: none; cursor: pointer; font-weight: var(--weight-bold);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent);
  transform: translateY(-65%) rotate(45deg);
}
.faq[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq-answer { padding: 0 36px 18px 4px; color: var(--c-muted); }
.term-card { box-shadow: none; border-top: 3px solid var(--c-accent-soft); }
.term-card dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 5px 12px; }
.term-card dt { font-weight: var(--weight-bold); }
.term-card dd { color: var(--c-muted); }
.download-card, .article-card { display: flex; flex-direction: column; justify-content: flex-start; align-content: start; }
.app-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.app-head > * { min-width: 0; }
.app-icon { width: 54px; height: 54px; }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; order: 2; }
.article-card .article-more { margin-top: auto; padding-top: 16px; }
.article-card h3 a, .card-title a { color: var(--c-text); text-decoration: none; }
.article-card h3 a:hover, .card-title a:hover { text-decoration: underline; color: var(--c-accent-dark); }
.article-card time, .card-meta { color: var(--c-muted); font-size: var(--fs-small); }
.chip, .flag {
  display: inline-flex; align-items: center; max-width: 100%; gap: 8px;
  border-radius: var(--r-pill); padding: 4px 11px; background: var(--c-panel-2); color: var(--c-text);
  font-size: var(--fs-badge); font-weight: var(--weight-semi);
}
.flag { border-radius: var(--r-note); }
.flag--first { background: var(--c-accent); color: var(--c-panel); }
.flag--recommended { background: var(--c-tint); color: var(--c-accent-dark); }
.flag--retired { background: var(--c-panel-2); color: var(--c-muted); }
.flag--retired .status-dot { background: var(--c-warn); }
.get-note { padding: 8px 12px; border-radius: var(--r-note); background: var(--c-panel-2); color: var(--c-muted); }
.callout {
  border-inline-start: 3px solid var(--c-accent); border-radius: var(--r-note); padding: 16px 20px;
  background: var(--c-tint); color: var(--c-text);
}
.callout > * + * { margin-top: 6px; }

.table-scroll, :is(.prose, .article-body, .doc-body) table {
  max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.table-scroll { border: 1px solid var(--c-border); border-radius: var(--r-note); }
:is(.prose, .article-body, .doc-body) table, .data-table:not(.table-scroll > .data-table) { display: block; }
.data-table { max-width: 100%; min-width: 0; overflow-x: auto; }
.table-scroll > .data-table { display: table; }
:is(.prose, .article-body, .doc-body) .table-scroll > table { display: table; }
:is(.data-table, .prose table, .article-body table, .doc-body table) { width: 100%; border-collapse: collapse; }
:is(.data-table, .prose table, .article-body table, .doc-body table) :is(th, td) {
  min-width: 7em; padding: 11px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--c-border);
  overflow-wrap: normal; word-break: normal;
}
:is(.data-table, .prose table, .article-body table, .doc-body table) th { background: var(--c-panel-2); color: var(--c-text); }
:is(.data-table, .prose table, .article-body table, .doc-body table) th[scope="row"] { width: 1%; white-space: nowrap; }
:is(.data-table, .prose table, .article-body table, .doc-body table) td { background: var(--c-panel); color: var(--c-text); }
.table-scroll tr:last-child td, .table-scroll tbody tr:last-child th { border-bottom: 0; }

.article-download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--c-tint); color: var(--c-text);
}
.article-download > div { flex: 1 1 260px; min-width: 0; }
.article-download .btn { margin: 0; }
.dl-fab {
  position: fixed; z-index: 8; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding-inline: 20px;
  background-color: var(--c-ink-2); color: var(--c-panel); border: 1px solid var(--c-text); border-radius: var(--r-pill);
  box-shadow: var(--sh-ink); font-weight: var(--weight-bold); text-decoration: none;
}
.dl-fab:hover { background-color: var(--c-text); color: var(--c-panel); box-shadow: var(--sh-ink-hover); }
.dl-fab svg { width: 20px; height: 20px; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); gap: 12px; list-style: none; padding: 0; }
.swatch-grid li {
  min-width: 0; padding: 8px; background: var(--c-panel); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--r-note);
}
.swatch-grid li::before { content: ""; display: block; height: 36px; margin-bottom: 6px; background: var(--sample); border: 1px solid var(--c-border); border-radius: var(--r-snapshot); }
.sw-bg { --sample: var(--c-bg); }.sw-panel { --sample: var(--c-panel); }.sw-panel2 { --sample: var(--c-panel-2); }.sw-border { --sample: var(--c-border); }
.sw-accent { --sample: var(--c-accent); }.sw-accent-hi { --sample: var(--c-accent-hi); }.sw-accent-dark { --sample: var(--c-accent-dark); }
.sw-text { --sample: var(--c-text); }.sw-muted { --sample: var(--c-muted); }.sw-ink2 { --sample: var(--c-ink-2); }
.sw-success { --sample: var(--c-success); }.sw-warn { --sample: var(--c-warn); }.sw-error { --sample: var(--c-error); }
.sw-clear { --sample: var(--c-clear); }.sw-tint { --sample: var(--c-tint); }.sw-inverse { --sample: var(--c-inverse); }
.sw-inverse-text { --sample: var(--c-inverse-text); }.sw-inverse-muted { --sample: var(--c-inverse-muted); }.sw-inverse-link { --sample: var(--c-inverse-link); }
.sw-veil { --sample: var(--c-veil); }.sw-accent-soft { --sample: var(--c-accent-soft); }.sw-accent-mark { --sample: var(--c-accent-mark); }.sw-accent-glow { --sample: var(--c-accent-glow); }
.sw-ink-inset { --sample: var(--c-ink-inset); }.sw-ink-shadow-s { --sample: var(--c-ink-shadow-s); }.sw-ink-glow { --sample: var(--c-ink-glow); }
.sw-white-a { --sample: var(--c-white-a); }.sw-white-veil { --sample: var(--c-white-veil); }.sw-arc-shadow { --sample: var(--c-arc-shadow); }
.sw-soft1 { --sample: var(--c-soft-1); }.sw-soft2 { --sample: var(--c-soft-2); }.sw-soft3 { --sample: var(--c-soft-3); }.sw-dot { --sample: var(--c-dot); }.sw-shade { --sample: var(--c-shade); }
.sw-aurora1 { --sample: var(--aurora-1); }.sw-aurora2 { --sample: var(--aurora-2); }.sw-aurora3 { --sample: var(--aurora-3); }
.sw-alu-hi { --sample: var(--alu-hi); }.sw-alu1 { --sample: var(--alu-1); }.sw-alu2 { --sample: var(--alu-2); }.sw-alu3 { --sample: var(--alu-3); }
.sw-alu4 { --sample: var(--alu-4); }.sw-alu5 { --sample: var(--alu-5); }.sw-edge { --sample: var(--desk-edge); }.sw-edge2 { --sample: var(--desk-edge-2); }
.sw-bar { --sample: var(--scr-bar); }.sw-line { --sample: var(--scr-line); }
.sw-primary { --sample: var(--color-primary); }.sw-color-accent { --sample: var(--color-accent); }.sw-color-text { --sample: var(--color-text); }.sw-color-bg { --sample: var(--color-bg); }
.type-display { font: var(--weight-display) var(--fs-h1)/var(--lh-hero) var(--font-display); letter-spacing: var(--ls-title); }

@media (max-width: 1100px) {
  .facts li { padding-inline: 18px; }
  .fact-txt small { display: none; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-scene { order: 0; margin: 0; }
  .facts { flex-wrap: wrap; border-radius: var(--r-xl); justify-content: center; }
  .facts li { padding: 10px 16px; }
  .facts li + li { border-left: 0; }
}
@media (max-width: 768px) {
  .feature-panel, .chapter-layout { grid-template-columns: minmax(0, 1fr); }
  .chapter-rail { position: static; }
  .chapter-rail .toc ul { display: flex; }
  .hero h1 { letter-spacing: var(--ls-title); }
}
@media (max-width: 640px) {
  .hero { padding-top: 88px; }
  .hero h1 { margin-block: 18px 14px; }
  .cta, .plat { margin-top: 22px; }
  .plat-list, .chip-row { justify-content: center; }
  .fact-wrap { padding-bottom: 24px; }
  .facts li { gap: 8px; padding: 6px 10px; }
  .fact-num { font-size: var(--fs-h3); }
  .tab-strip[role="tablist"] { border-radius: var(--r-lg); }
  .tab-strip [role="tab"] { flex: 1 1 42%; padding-inline: 9px; }
  .toc--sticky { position: static; }
  :lang(ja) .term-card dl, :lang(ko) .term-card dl { grid-template-columns: minmax(0, 1fr); }
  .dl-fab { width: 52px; height: 52px; padding: 0; }
  .dl-fab-text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .led { animation: none; opacity: 1; }
  .tab-panel.is-entering { animation: none; }
}