/*
 * 読み物として作る。色は docs/design-guidelines.md と同じ（生成り・黒・橙）。
 * 飾りの見出し・カード・段組みの型は使わず、実物の画面（SSE のスクリーンショット）と文章で見せる。
 */

:root {
    --panel: #E7E3DA;
    --sunk: #D8D3C7;
    --ink: #161614;
    --sub: #5C5950;
    --signal: #FF5A1F;
    --alert: #D4261C;
    --mono: "SF Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
    --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
    --measure: 640px;
    --pad: clamp(18px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { background: var(--panel); color: var(--ink); }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }

h1, h2 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: .5em; }

.bar {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px var(--pad);
}
.mark { font-family: var(--mono); font-size: 14px; font-weight: 700; text-decoration: none; }
.stamp { font-size: 12px; color: var(--sub); }
.foot { font-size: 13px; color: var(--sub); margin-top: 24px; gap: 20px; }
.foot .print { margin-left: auto; font-family: var(--mono); font-size: 12px; }

/* ページの幅：中央に 1 本 */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.bar { max-width: 1120px; margin: 0 auto; width: 100%; }

/* 最初の言葉 */
.intro { padding: 64px 0 36px; }
.intro h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.35; margin-bottom: 20px; letter-spacing: -.005em; }
.intro p { max-width: var(--measure); }

/* デモ：曲の区間と、実物の SSE の画面 */
.demo { margin: 0 0 72px; }
.song { position: relative; display: flex; border: 1px solid var(--ink); background: #F2EFE8; }
.seg {
    font: inherit;
    padding-left: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-right: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    min-width: 0;
}
.seg:last-of-type { border-right: 0; }
.seg[aria-pressed="true"] { background: var(--signal); }
.seg:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.head { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.now { margin: 12px 0 16px; font-size: 15px; min-height: 1.9em; }
.now b { font-family: var(--mono); margin-right: .6em; }
/* SSE の画面はどれも同じ縮尺。幅をそろえ、2 列で上から積む（左：フィルター・ディレイ、右：リバーブ・テープストップ） */
.rack { columns: 2; column-gap: 6px; max-width: 760px; }
.rack img { display: block; width: 100%; height: auto; margin-bottom: 6px; break-inside: avoid; }
.caption { font-size: 13px; color: var(--sub); margin-top: 10px; max-width: var(--measure); }

/* 文章 */
.text { max-width: var(--measure); }
.text h2 { font-size: 22px; margin: 44px 0 10px; }
.text h2:first-child { margin-top: 0; }

/* ミックス師さんの段：罫線で囲った 1 枚 */
.mixers { margin: 72px 0 0; padding: 40px 0 44px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.apply { margin-top: 8px; max-width: var(--measure); }
.apply summary { list-style: none; }
.apply summary::-webkit-details-marker { display: none; }
.apply[open] summary { background: var(--ink); color: var(--panel); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status { font-size: 14px; color: var(--sub); margin: 28px 0 0; }

/* 押せるもの */
.key {
    display: inline-block;
    font: inherit;
    font-weight: 700;
    padding: 8px 28px;
    border: 1px solid var(--ink);
    background: var(--signal);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.key:hover { background: var(--ink); color: var(--panel); }
.key:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* フォーム */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; font-size: 14px; font-weight: 700; }
.field legend { padding: 0; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="url"], textarea {
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #F2EFE8;
    color: var(--ink);
    width: 100%;
}
textarea { resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-weight: 400; }
.choice { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.choice input { accent-color: var(--signal); width: 16px; height: 16px; margin: 0; }
.form .key { align-self: flex-start; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.errors { border-left: 3px solid var(--alert); padding: 4px 0 4px 14px; color: var(--alert); font-size: 14px; }
.errors ul { margin: 0; padding-left: 18px; }

/* 読み物のページ */
.doc { padding: 40px var(--pad) 0; max-width: calc(var(--measure) + 2 * var(--pad)); margin: 0 auto; }
.doc h1 { font-size: 28px; margin-bottom: 24px; }
.doc h3 { margin: 28px 0 6px; font-size: 17px; }
.doc ul { padding-left: 20px; }
.note { font-size: 13px; color: var(--sub); }

@media (max-width: 600px) {
    .choices, .pair { grid-template-columns: 1fr; }
    .intro h1 br { display: none; }
    .seg { font-size: 12px; padding: 8px 6px; }
}

/* 書き方・決まっていること */
.howto { margin: 0 0 1em; padding-left: 1.6em; }
.howto li { padding: 2px 0; }
.howto li::marker { font-family: var(--mono); font-weight: 700; }
.facts { margin: 0 0 1em; padding-left: 1.2em; }
.facts li { padding: 2px 0; }
.fx { font-family: var(--mono); font-size: 14px; line-height: 1.9; }

.more { margin-top: 32px; max-width: var(--measure); }
.more summary { cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.more summary:hover { color: var(--signal); }
.more .text { margin-top: 8px; }
.more h2 { font-size: 17px; margin: 28px 0 6px; }
.intro p + p { margin-top: -.2em; }

/* 一言と、その下の段（困りごと → やること → 仕組み → いまの状態） */
.claim { font-size: clamp(36px, 7vw, 76px); line-height: 1.25; letter-spacing: -.01em; padding: 80px 0 72px; }
.because { padding: 40px 0 48px; border-top: 1px solid var(--ink); }
.because h2 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; }
.because > p { margin: 12px 0 0; max-width: var(--measure); }
.because > .shelf { margin: 28px 0 16px; }
.because > .facts { margin: 14px 0 0; max-width: var(--measure); }
.because .shot, .because .demo { margin: 28px 0 0; padding: 0; }
.because .shot img { max-width: 100%; border: 0; }

/* CGM：上の並び、お知らせ */
.nav { margin-left: auto; display: flex; align-items: baseline; gap: 18px; font-size: 14px; }
.nav form { margin: 0; }
.link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--signal); }
.notice { max-width: 1120px; margin: 0 auto; padding: 8px var(--pad); font-size: 14px; font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* CGM：一覧 */
/* 上の並び（ロゴ）と左をそろえる。中身は読みやすい幅まで */
.doc.wide { max-width: 1120px; }
.doc.wide > * { max-width: 880px; }
.doc.wide.narrow > * { max-width: var(--measure); }
.search { display: flex; gap: 8px; margin: 0 0 28px; }
.search input { flex: 1; min-width: 0; }
.search .key { padding: 8px 20px; white-space: nowrap; }
.doc .rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { padding: 12px 0 10px; border-bottom: 1px solid var(--ink); line-height: 1.6; }
.row-title { font-size: 18px; font-weight: 700; text-decoration: none; margin-right: .6em; }
.row-artist { font-size: 14px; }
.row-meta { display: block; font-size: 13px; color: var(--sub); font-family: var(--mono); }
.row-meta a { font-family: var(--sans); }
.flag { font-size: 12px; font-weight: 700; color: var(--alert); border: 1px solid var(--alert); padding: 0 6px; margin-left: .6em; }
.pager { display: flex; gap: 20px; margin-top: 20px; font-size: 14px; }

/* CGM：MIX譜面のページ */
.doc .song-title { margin-bottom: 4px; }
.song-title small { font-size: 16px; }
.by { font-size: 14px; }
.figure-scroll { margin: 20px 0 8px; overflow-x: auto; }
.figure { display: block; width: 100%; min-width: 600px; height: auto; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 2px 20px; margin: 20px 0; font-size: 14px; }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.note-body { max-width: var(--measure); }
.actions { display: flex; align-items: baseline; gap: 20px; margin: 24px 0 10px; }
.note { max-width: var(--measure); }
.choices.one { grid-template-columns: 1fr; }
input[type="file"] { font: inherit; font-weight: 400; font-size: 14px; }
input[type="file"]::file-selector-button {
    font: inherit; font-weight: 700; padding: 6px 16px; margin-right: 12px;
    border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--panel); }
.lab small { margin-left: .8em; }
.doc.wide .pair { align-items: end; }
.key.plain { background: transparent; }
.danger { margin-top: 40px; }
code { font-family: var(--mono); font-size: .9em; }

@media (max-width: 600px) {
    .bar { flex-wrap: wrap; }
    .nav { margin-left: 0; width: 100%; gap: 14px; }
}

/* ---- プラグインの一覧：画面をマスに合わせて積む ---- */
.shelf-group { margin: 0 0 56px; }
.shelf-group h2 { font-size: 20px; margin-bottom: 14px; }
.shelf {
    /* 1 マス。広い画面では実物と同じ 100 px、狭い画面では 4 マスが横に入る大きさ（下の @media） */
    --u: 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--u));
    grid-auto-rows: var(--u);
    grid-auto-flow: dense;
}
.shelf .unit { grid-column: span var(--w); grid-row: span var(--h); display: block; }
.shelf .unit img { display: block; width: 100%; height: 100%; }
.shelf .unit:hover, .shelf .unit:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; position: relative; }

/* エフェクターボード（プラグイン図鑑の一覧）：すのこ状のレールの板に、ペダルを段ごとに下ぞろえで並べ、パッチケーブル（飾り）でつなぐ。
   板は平らな帯だけで描く（影・角丸・ぼかしは使わない）。ペダルの大きさは実物と同じ（1 マス 100 px。.shelf の --u）。狭い画面では、4 マスが板の内側に入る大きさ */
.board {
    --gx: 44px; --gy: 64px; --rail: 54px;
    position: relative; padding: 56px 60px 64px; border: 8px solid #4A4841;
    background: repeating-linear-gradient(to bottom, #2B2A26 0, #2B2A26 calc(var(--rail) - 12px), #0E0E0C calc(var(--rail) - 12px), #0E0E0C var(--rail));
}
.board .cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board .wire { fill: none; stroke: #0A0A09; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.board .wire.core { stroke: #A7A294; stroke-width: 4; }
.board .plug { fill: #D8D3C7; stroke: #0A0A09; stroke-width: 1.5; }
.board .corner { fill: #8B877B; }
/* 電源の線は、音の線より細く暗い */
.board .power { fill: none; stroke: #0A0A09; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.board .power.core { stroke: #6A665C; stroke-width: 2; }
.board .dc { fill: #6A665C; stroke: #0A0A09; stroke-width: 1; }
/* 通電のランプ。画面（SSE の絵）の上には置かず、上の縁に載せる。光って見えるように、薄い輪を重ねる（利用者の判断。ぼかしは使わない） */
.board .lamp { fill: #FF4B2E; }
.board .glow { fill: #FF4B2E; opacity: .32; }
.board .glow.far { opacity: .16; }
.board .glint { fill: #FFD9CF; }
/* ランプは、たまに一瞬だけ暗くなる（利用者の判断。飾りの動きはここだけ） */
.board .led { animation: led-flicker 12s steps(1, end) infinite; }
@keyframes led-flicker { 0%, 100% { opacity: 1; } 41% { opacity: .35; } 41.12% { opacity: 1; } 41.3% { opacity: .2; } 41.42% { opacity: 1; } 78% { opacity: .5; } 78.1% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .board .led { animation: none; } }
.board .psu { fill: #1A1A17; stroke: #8B877B; stroke-width: 2; }
.board .tag { font: 700 10px/1 var(--mono); letter-spacing: .1em; fill: #A7A294; }
.board .shelf { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: var(--gy) var(--gx); }
.board .unit { flex: none; width: calc(var(--w) * var(--u)); max-width: 100%; aspect-ratio: var(--w) / var(--h); outline: 0 !important; }
.board .unit img { display: block; width: 100%; height: 100%; }
.board .unit:hover img, .board .unit:focus-visible img { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---- プラグインのページ：図解 ---- */
.plugin-head { padding: 40px 0 36px; }
.plugin-head h1 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; margin-bottom: 8px; }
.plugin-head p { max-width: var(--measure); margin: 0; }
.crumb { font-family: var(--mono); font-size: 13px; color: var(--sub); margin-bottom: 14px !important; }
.crumb a { font-family: var(--sans); }
.crumb span { color: var(--ink); font-weight: 700; }
/* 試聴（ON / OFF）。再生機の形：再生キー、再生位置の線、音量のキー、ON / OFF のキー。キーは全部同じ大きさの正方形（--key）。橙は再生位置だけ。選ばれているキーは黒地に白 */
.demo { margin: 0 0 48px; max-width: 760px; }
.deck { --key: 64px; display: flex; align-items: stretch; height: calc(var(--key) + 2px); border: 1px solid var(--ink); background: var(--sunk); }
.deck button { font: 700 13px/1 var(--mono); letter-spacing: .06em; color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 0; cursor: pointer; }
.deck button:hover { background: var(--panel); }
.deck button:focus-visible, .deck-seek:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.deck-play { flex: none; width: var(--key); display: grid; place-items: center; border-right: 1px solid var(--ink) !important; }
.deck-play svg { fill: currentColor; }
.deck-play .i-pause, .deck-play[aria-pressed="true"] .i-play { display: none; }
.deck-play[aria-pressed="true"] .i-pause { display: inline; }
.deck-play[aria-pressed="true"], .deck-play[aria-pressed="true"]:hover { background: var(--ink); color: var(--panel); }
.demo[aria-busy="true"] .deck-play { opacity: .4; }
.deck-track { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 16px; }
.deck-seek { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.deck-seek::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--signal) var(--p), var(--ink) var(--p)); }
.deck-seek::-moz-range-track { height: 4px; background: linear-gradient(to right, var(--signal) var(--p), var(--ink) var(--p)); }
.deck-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 4px; height: 18px; margin-top: -7px; background: var(--ink); border: 0; border-radius: 0; }
.deck-seek::-moz-range-thumb { width: 4px; height: 18px; background: var(--ink); border: 0; border-radius: 0; }
.deck-meta { display: flex; justify-content: space-between; gap: 12px; font: 12px/1 var(--mono); letter-spacing: .04em; color: var(--sub); white-space: nowrap; }
.deck-state { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.deck-title { margin-right: auto; font-family: var(--sans); overflow: hidden; text-overflow: ellipsis; }
.deck-vol { position: relative; flex: none; display: flex; border-left: 1px solid var(--ink); }
.deck-volkey { width: var(--key); display: grid; place-items: center; }
.deck-volkey svg { fill: currentColor; }
.deck-volkey .i-wave, .deck-volkey .i-mute { fill: none; stroke: currentColor; stroke-width: 1.5; }
.deck-volkey .i-mute, .deck-volkey[data-muted] .i-wave { display: none; }
.deck-volkey[data-muted] .i-mute { display: inline; }
.deck-volkey[aria-expanded="true"], .deck-volkey[aria-expanded="true"]:hover { background: var(--ink); color: var(--panel); }
.deck-volpop { position: absolute; top: 100%; right: -1px; z-index: 5; width: 168px; padding: 8px 14px; background: var(--sunk); border: 1px solid var(--ink); }
.deck-volpop[hidden] { display: none; }
.deck-switch { flex: none; display: flex; border-left: 1px solid var(--ink); }
.deck-switch button { width: var(--key); }
.deck-switch button + button { border-left: 1px solid var(--ink); }
.deck-switch button[aria-pressed="true"], .deck-switch button[aria-pressed="true"]:hover { background: var(--ink); color: var(--panel); }
.deck-kinds { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); border-top: 0; background: var(--sunk); }
.deck-kinds button { flex: 1 0 auto; height: 36px; padding: 0 14px; font: 700 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink); background: transparent; border: 0; border-radius: 0; box-shadow: 1px 0 0 var(--ink), 0 1px 0 var(--ink); cursor: pointer; }
.deck-kinds button:hover { background: var(--panel); }
.deck-kinds button:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.deck-kinds button[aria-pressed="true"], .deck-kinds button[aria-pressed="true"]:hover { background: var(--ink); color: var(--panel); }
.deck-kinds { overflow: hidden; }
.demo-note { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--sub); }
@media (max-width: 520px) {
    .deck { --key: 48px; }
    .deck-track { padding: 6px 10px; gap: 2px; }
    .deck-state { display: none; }
    /* 狭い画面では、時間の数字をやめて曲名を出す（位置は線で分かる） */
    .deck-time { display: none; }
    .deck-title { font-size: 10px; letter-spacing: 0; }
}
/* 図鑑の本文（どんなエフェクトか・使いどころ・近いプラグイン）。読み物の幅で、罫線だけで区切る */
.entry { max-width: var(--measure); margin: 0 0 56px; }
.entry h2 { font-size: 18px; margin: 32px 0 10px; }
.entry h2:first-child { margin-top: 0; }
.entry ul { margin: 0 0 1em; padding: 0; list-style: none; }
.entry li { padding: 8px 0; border-top: 1px solid var(--sunk); line-height: 1.7; }
.entry li:last-child { border-bottom: 1px solid var(--sunk); }
.entry .aka { font-size: 13px; color: var(--sub); margin-top: 18px; }
.kin li a, .index li a { font-weight: 700; margin-right: 1em; }
.kin li span, .index li span { font-size: 14px; color: var(--sub); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 64px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 14px; }
.pager span { flex: 1; }
.pager a { flex: 1; }
.pager a:nth-child(2) { text-align: center; }
.pager a:last-child { text-align: right; }
.index { margin: 0 0 64px; }
.index h2 { font-size: 20px; margin-bottom: 14px; }
.index ul { margin: 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 40px; }
.index li { padding: 7px 0; border-top: 1px solid var(--sunk); line-height: 1.6; break-inside: avoid; }
.screen { margin: 0 0 64px; }
.screen h2 { font-size: 18px; margin-bottom: 18px; }
.panel-shot { display: block; max-width: 100%; height: auto; }
.diagram { display: block; width: min(100%, calc(var(--vbw) * 1.3px)); height: auto; overflow: visible; }
.diagram .lead { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.diagram .dot { fill: var(--signal); stroke: var(--panel); stroke-width: 1; }
.diagram .name { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; fill: var(--ink); }
.diagram .memo { font-family: var(--sans); font-size: 11px; fill: var(--ink); }
.diagram rect.num { fill: var(--ink); }
.diagram text.num { font-family: var(--mono); font-size: 9.5px; font-weight: 700; fill: var(--panel); }
/* おすすめのいじる順の番号（黒地に白。SSE の画面の「選ばれているキー」と同じ見た目） */
b.num { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; background: var(--ink); color: var(--panel); font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1; }
.parts b.num { margin-right: 8px; vertical-align: 2px; }
/* 「おすすめのいじる順」の行：見出しの字・番号・名前の上下のまん中をそろえる */
.order { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; line-height: 18px; }
.order span { display: inline-flex; align-items: center; gap: 6px; height: 18px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.diagram-narrow { display: none; }
.parts { margin: 18px 0 0; }
.parts dt { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-top: 12px; }
.parts dd { margin: 0; }
@media (max-width: 520px) {
    .shelf { --u: calc((100vw - 2 * var(--pad)) / 4); }
    .board { --gx: 22px; --gy: 40px; --rail: 40px; padding: 36px 28px 42px; border-width: 5px; }
    /* 1 マスは、4 マスの画面が板の内側にちょうど入る大きさ（上の .shelf の --u より後ろに書いて勝たせる） */
    .board .shelf { --u: calc((100vw - 2 * var(--pad) - 2 * 28px - 2 * 5px) / 4); }
    .board .wire { stroke-width: 5; }
    .board .wire.core { stroke-width: 2.5; }
}
@media (max-width: 760px) {
    .diagram { display: none; }
    .diagram-narrow { display: block; }
}
