/*
 * ガイド（読み物）のページ共通のスタイル。
 * トップページと同じ「ペダルボード」のデザイン（土台は濃いグレー、たぶめいかぁ＝緑、ふりぃだう＝黄）。
 */
:root {
  color-scheme: dark;
  --board: #1b1f24;
  --board-deep: #15181c;
  --panel: #22272d;
  --panel-2: #2a3037;
  --line: #353c45;
  --text: #eef0f2;
  --sub: #c6ccd2;
  --muted: #98a2ad;
  --cable: #0e1013;
  --green: #45b26b;
  --green-edge: #2c7a49;
  --green-ink: #0d2416;
  --green-text: #7fcf98;
  --yellow: #f2c230;
  --yellow-edge: #b0850c;
  --yellow-ink: #2a2105;
  --yellow-text: #f8d25a;
  --led: #ff5a4a;
  --led-on: #5ee08a;
  --metal: radial-gradient(circle at 40% 35%, #f4f6f8, #a9b1ba 50%, #59616b);
  --ui: 'BIZ UDPGothic', 'BIZ UDPGothic Web', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --display: 'M PLUS Rounded 1c', 'BIZ UDPGothic', 'BIZ UDPGothic Web', 'Hiragino Maru Gothic ProN', sans-serif;
  --mono: 'BIZ UDGothic', 'Consolas', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--board);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, li, dd, figcaption { word-break: auto-phrase; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:where(a, button):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* ヘッダー（トップページと同じ） */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--board-deep); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.brand svg { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 22px; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* 記事の頭 */
.article { max-width: 760px; margin: 0 auto; padding: 28px 16px 80px; }
.crumbs { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 0.84rem; }
.crumbs li + li::before { content: '›'; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.stripe { width: 72px; height: 6px; margin: 0 0 18px; border-radius: 3px; background: linear-gradient(90deg, var(--yellow) 50%, var(--green) 50%); }
.article h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4.2vw, 2.25rem); line-height: 1.42; letter-spacing: 0.01em; }
.article h1 small { display: block; margin-top: 6px; font-size: 0.62em; color: var(--sub); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.85rem; }
.lead { margin: 24px 0 0; color: var(--sub); font-size: 1.06rem; }

/* この記事で使うアプリ */
.apps-box { margin: 32px 0 0; padding: 20px 22px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.apps-box .box-title { margin: 0 0 10px; font-size: 0.95rem; }
.apps-box .mini { margin: 0; padding: 0; list-style: none; }
.apps-box .mini li { color: var(--sub); font-size: 0.94rem; }
.apps-box .mini li + li { margin-top: 6px; }
.apps-box .note-small { margin: 14px 0 0; color: var(--muted); font-size: 0.86rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 13px 3px 11px; border-radius: 999px; background: var(--board-deep); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 0.86rem; font-weight: 700; line-height: 1.7; }
.badges li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--led-on); box-shadow: 0 0 6px var(--led-on), 0 0 0 1px rgb(0 0 0 / 0.35); }

/* 目次 */
.toc { margin: 28px 0 0; padding: 18px 22px 18px; border-radius: 12px; border: 1px solid var(--line); }
.toc .box-title { margin: 0 0 6px; font-size: 0.95rem; }
.toc-list { margin: 0; padding-left: 1.5em; color: var(--muted); }
.toc li { font-size: 0.94rem; }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* 本文 */
:where(.prose) h2 {
  margin: 72px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 5px solid;
  border-image: linear-gradient(var(--yellow) 50%, var(--green) 50%) 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.45;
  scroll-margin-top: 76px;
}
:where(.prose) h2.daw { border-image: none; border-left-color: var(--yellow); }
:where(.prose) h2.tab { border-image: none; border-left-color: var(--green); }
:where(.prose) h2 .tag { margin: 0 0 0 10px; vertical-align: 0.2em; }
:where(.prose) h3 { margin: 40px 0 0; font-size: 1.12rem; line-height: 1.6; scroll-margin-top: 76px; }
:where(.prose) p { margin: 14px 0 0; color: var(--sub); }
:where(.prose) strong { color: var(--text); }
:where(.prose) a { color: var(--yellow-text); }
:where(.prose) :is(ul, ol):not([class]) { margin: 14px 0 0; padding-left: 1.5em; color: var(--sub); }
:where(.prose) :is(ul, ol):not([class]) > li + li { margin-top: 8px; }
:where(.prose) li::marker { color: var(--muted); }

/* 番号つきの手順（フットスイッチの形の番号） */
:where(.prose) ol.steps { margin: 14px 0 0; padding: 0; list-style: none; color: var(--sub); counter-reset: step; }
:where(.prose) ol.steps > li { position: relative; padding-left: 44px; counter-increment: step; }
:where(.prose) ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--metal);
  color: var(--board);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}
:where(.prose) ol.steps > li + li { margin-top: 12px; }

/* 項目と説明 */
:where(.prose) dl.items { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 16px 0 0; }
:where(.prose) dl.items dt { color: var(--text); font-weight: 700; white-space: nowrap; }
:where(.prose) dl.items dd { margin: 0; color: var(--sub); }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border: 1px solid #4a525c;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82em;
  line-height: 1.6;
  text-align: center;
}
.tag { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 5px; font-size: 0.78rem; font-weight: 700; line-height: 1.75; white-space: nowrap; vertical-align: 0.12em; }
.tag.tab { background: var(--green); color: var(--green-ink); }
.tag.daw { background: var(--yellow); color: var(--yellow-ink); }
.tag.etc { background: var(--panel-2); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }

/* 画面写真 */
:where(.prose) figure { margin: 24px 0 0; }
:where(.prose) figure .shot { display: block; overflow: hidden; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px rgb(0 0 0 / 0.3); }
:where(.prose) figure .shot img { width: 100%; }
:where(.prose) figure.narrow .shot { max-width: 520px; }
:where(.prose) figcaption { margin-top: 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

/* 補足（コツ・注意） */
.note { margin: 24px 0 0; padding: 14px 18px 15px; border-radius: 10px; background: var(--panel); box-shadow: inset 4px 0 0 var(--green); }
.note.warn { box-shadow: inset 4px 0 0 var(--led); }
.note .label { display: block; margin-bottom: 2px; color: var(--text); font-size: 0.92rem; font-weight: 700; }
.note p { margin: 0; font-size: 0.94rem; }
.note p + p { margin-top: 6px; }

/* 全体の流れ（ケーブルでつないだ順番） */
:where(.prose) ol.chain { position: relative; margin: 24px 0 0; padding: 0 0 0 58px; list-style: none; counter-reset: step; }
:where(.prose) ol.chain::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 18px; width: 5px; border-radius: 3px; background: var(--cable); box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.08); }
:where(.prose) ol.chain > li { position: relative; counter-increment: step; }
:where(.prose) ol.chain > li + li { margin-top: 22px; }
:where(.prose) ol.chain > li::before { content: counter(step); position: absolute; left: -58px; top: -2px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--metal); color: var(--board); font-weight: 700; box-shadow: 0 0 0 5px var(--board); }
:where(.prose) ol.chain h3 { margin: 0; font-size: 1.02rem; }
:where(.prose) ol.chain p { margin: 2px 0 0; font-size: 0.94rem; }

/* 動画編集ソフトのタイムラインの図 */
.nle { display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 12px 14px 44px; border-radius: 10px; background: var(--board-deep); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8rem; line-height: 1.4; }
.nle .labels { padding-top: 22px; }
.nle .labels span { display: flex; align-items: center; height: 40px; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.nle .tracks { position: relative; }
.nle .ruler { position: relative; height: 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.nle .ruler span { position: absolute; bottom: 3px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.72rem; }
.nle .lane { position: relative; height: 40px; border-bottom: 1px solid rgb(255 255 255 / 0.05); }
.nle .clip { position: absolute; top: 6px; bottom: 6px; display: flex; align-items: center; overflow: hidden; padding: 0 10px; border-radius: 5px; white-space: nowrap; font-weight: 700; }
.nle .clip.tab { background: var(--green); color: var(--green-ink); }
.nle .clip.cam { background: #4a5463; color: var(--text); }
.nle .clip.wav { background: var(--yellow); color: var(--yellow-ink); }
.nle .clip i { margin-left: 6px; font-style: normal; font-weight: 400; opacity: 0.8; }
.nle .sync { position: absolute; top: 22px; bottom: 0; width: 0; border-left: 2px dashed var(--led); }
.nle .sync span { position: absolute; top: 100%; left: -2px; margin-top: 8px; color: var(--led); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

/* 仕上がりのイメージ（映像の上に TAB 譜を重ねた図） */
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); background:
  radial-gradient(ellipse 38% 46% at 50% 44%, rgb(242 194 48 / 0.22), transparent 70%),
  radial-gradient(ellipse 60% 70% at 72% 20%, rgb(69 178 107 / 0.16), transparent 70%),
  linear-gradient(170deg, #3a3129, #1c2027 60%, #12151a);
  isolation: isolate;
}
.frame .scene { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 13%; color: rgb(255 255 255 / 0.42); font-size: clamp(0.8rem, 2.4vw, 1rem); font-weight: 700; letter-spacing: 0.1em; }
.frame .scene svg { width: clamp(64px, 18%, 132px); height: auto; margin: 0 auto 6px; opacity: 0.55; }
.frame .strip { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; mix-blend-mode: screen; }

/* アプリを開くボタン */
.cta { margin: 72px 0 0; padding: 26px 24px 28px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.cta h2 { margin: 0; padding: 0; border: 0; font-size: 1.3rem; }
.cta .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.btn { display: inline-block; color: var(--ink); padding: 10px 22px; border-radius: 8px; background: var(--paint); font-weight: 700; text-decoration: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 2px 0 var(--edge); }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 1px 0 var(--edge); }
.btn.tab { --paint: var(--green); --edge: var(--green-edge); --ink: var(--green-ink); }
.btn.daw { --paint: var(--yellow); --edge: var(--yellow-edge); --ink: var(--yellow-ink); }

/* 書いた人 */
.author { display: flex; align-items: center; gap: 14px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.author svg { flex: none; width: 44px; height: 44px; }
.author p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.author strong { font-size: 0.98rem; }

/* ガイドの一覧 */
.guide-list { display: grid; gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.card { display: block; color: inherit; overflow: hidden; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow 0.15s; }
.card:hover { box-shadow: inset 0 0 0 1px #59616b; }
.card .stripe { width: 100%; height: 5px; margin: 0; border-radius: 0; }
.card .body { padding: 20px 22px 22px; }
.card h2 { margin: 0; padding: 0; border: 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.45; }
.card p { margin: 8px 0 0; color: var(--sub); font-size: 0.94rem; }
.card .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 14px; color: var(--muted); font-size: 0.84rem; }
.card .foot .more { margin-left: auto; color: var(--text); font-weight: 700; }

/* フッター（トップページと同じ） */
.site-footer { padding: 32px 0 48px; background: var(--board-deep); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav .wide { display: none; }
  .article { padding-top: 20px; }
  :where(.prose) h2 { margin-top: 56px; font-size: 1.3rem; }
  :where(.prose) h2 .tag { display: table; margin: 6px 0 0; }
  :where(.prose) dl.items { grid-template-columns: 1fr; gap: 0; }
  :where(.prose) dl.items dd + dt { margin-top: 10px; }
  .apps-box, .toc { padding-left: 16px; padding-right: 16px; }
  .cta { padding: 22px 18px 24px; }
  .nle { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 8px 42px; font-size: 0.72rem; }
  .nle .clip { padding: 0 6px; }
  .nle .clip i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* たぶめいかぁの画面写真は、下の空いている部分を切って見せる */
.crop-tab { aspect-ratio: 1440 / 708; object-fit: cover; object-position: top; }
.frame .scene svg { display: block; }

/* ---- 宅録の始め方 ---- */
:where(.prose) figure.mid .shot { max-width: 640px; }
.ib { display: inline-block; }
.wiring :is(b, span) { word-break: auto-phrase; }

/* 機材の段階（LED の数で段階を表す） */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.plans > li { padding: 16px 16px 14px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.plans .plan-head { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text); font-weight: 700; }
.plans .leds { display: inline-flex; gap: 4px; }
.plans .leds i { width: 8px; height: 8px; border-radius: 50%; background: #3a424b; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35); }
.plans .leds i.on { background: var(--led-on); box-shadow: 0 0 6px var(--led-on), 0 0 0 1px rgb(0 0 0 / 0.35); }
.plans ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--sub); font-size: 0.92rem; line-height: 1.7; }
.plans ul li::marker { color: var(--muted); }
.plans ul > li + li { margin-top: 2px; }
.plans .fit { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; line-height: 1.65; }

/* つなぎ方の図 */
.wiring {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 44px minmax(0, 1.3fr) 56px minmax(0, 1fr);
  grid-template-areas: 'src a1 iface a2 pc' '. . a3 . .' '. . hp . .';
  align-items: center;
  padding: 18px 16px;
  border-radius: 10px;
  background: var(--board-deep);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.86rem;
  line-height: 1.5;
}
.w-box { padding: 10px 12px; border-radius: 8px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.w-box b { display: block; color: var(--text); font-size: 0.92rem; }
.w-box > span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; }
.w-src { grid-area: src; display: grid; gap: 10px; }
.w-iface { grid-area: iface; }
.w-iface ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--sub); font-size: 0.8rem; }
.w-iface ul > li + li { margin-top: 4px; }
.w-iface i { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--board-deep); color: var(--text); font-family: var(--mono); font-size: 0.74rem; font-style: normal; }
.w-pc { grid-area: pc; box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--yellow); }
.w-hp { grid-area: hp; }
.w-arrow { position: relative; align-self: stretch; min-height: 40px; }
.w-arrow::before { content: ''; position: absolute; left: 6px; right: 12px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--muted); }
.w-arrow::after { content: ''; position: absolute; right: 4px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 9px solid var(--muted); border-right: 0; }
.w-arrow em { position: absolute; left: 50%; bottom: 50%; margin-bottom: 6px; transform: translateX(-50%); color: var(--muted); font-size: 0.72rem; font-style: normal; white-space: nowrap; }
.w-arrow.a1 { grid-area: a1; }
.w-arrow.a2 { grid-area: a2; }
.w-arrow.a3 { grid-area: a3; min-height: 44px; }
/* 縦向きの矢印 */
.w-arrow.a3::before { left: 50%; right: auto; top: 4px; bottom: 12px; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
.w-arrow.a3::after { left: 50%; right: auto; top: auto; bottom: 4px; margin: 0 0 0 -6px; border: 6px solid transparent; border-top: 9px solid var(--muted); border-bottom: 0; }
.w-arrow.a3 em { left: 50%; bottom: auto; top: 50%; margin: 0 0 0 10px; transform: translateY(-50%); }

/* メーターの見方 */
.meters { display: grid; gap: 14px; padding: 18px 18px 16px; border-radius: 10px; background: var(--board-deep); box-shadow: inset 0 0 0 1px var(--line); }
.m-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: center; gap: 16px; }
.m-bar { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #2f353d; }
.m-bar i { display: block; height: 100%; background: #10b981; }
.m-bar i.amber { background: #f59e0b; }
.m-bar i.red { background: #ef4444; }
.m-row p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.m-row p b { display: block; color: var(--text); font-size: 0.92rem; }
.m-row.good p b::after { content: '目安'; margin-left: 8px; padding: 0 6px; border-radius: 4px; background: var(--led-on); color: var(--green-ink); font-size: 0.72rem; vertical-align: 0.1em; }

/* パンの図 */
.stage { padding: 18px 16px 14px; border-radius: 10px; background: var(--board-deep); box-shadow: inset 0 0 0 1px var(--line); }
.s-lane { position: relative; height: 54px; }
.s-chip { position: absolute; top: 0; transform: translateX(-50%); padding: 4px 12px; border-radius: 8px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 0.86rem; font-weight: 700; line-height: 1.4; text-align: center; white-space: nowrap; }
.s-chip.center { box-shadow: inset 0 0 0 1px var(--line), inset 0 3px 0 var(--yellow); }
.s-chip small { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 400; }
.s-axis { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 3px solid #3a424b; color: var(--muted); font-family: var(--mono); font-size: 0.76rem; }

@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; gap: 10px; }
  .wiring { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'src src' 'a1 a1' 'iface iface' 'a2 a3' 'pc hp'; gap: 0 12px; }
  .w-src { grid-template-columns: 1fr 1fr; }
  .w-arrow.a1, .w-arrow.a2 { min-height: 44px; }
  .w-arrow.a1::before, .w-arrow.a2::before { left: 50%; right: auto; top: 4px; bottom: 12px; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
  .w-arrow.a1::after, .w-arrow.a2::after { left: 50%; right: auto; top: auto; bottom: 4px; margin: 0 0 0 -6px; border: 6px solid transparent; border-top: 9px solid var(--muted); border-bottom: 0; }
  .w-arrow.a2 em { left: 50%; bottom: auto; top: 50%; margin: 0 0 0 10px; transform: translateY(-50%); }
  .m-row { grid-template-columns: 1fr; gap: 6px; }
  .s-chip { padding: 4px 8px; font-size: 0.78rem; }
  .s-chip:first-child { left: 0 !important; transform: none; }
  .s-chip:last-child { left: auto !important; right: 0; transform: none; }
}

/* ---- 記事の共通部品（使い方と HTML は templates/article-parts.html） ---- */

/* 広告表記：アフィリエイトリンクを含むページの冒頭に置く */
.ad-note { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--sub); font-size: 0.9rem; line-height: 1.75; }
.ad-note .label { flex: none; padding: 0 8px; border-radius: 5px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 0.76rem; font-weight: 700; }

/* ツールへの CTA ボックス：「この記事で使うアプリ」（.apps-box）と同じ見た目に、開くボタンを足す */
.tool-cta .buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* 関連記事：記事の末尾に置く。中身は guide/related.js がガイド一覧のカードから作る（最大3件） */
.related { margin: 56px 0 0; }
.related > h2 { margin-top: 0; }
.related-list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.related .card .body { padding: 16px 18px 18px; }
.related .card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.08rem; line-height: 1.5; }

/* ---- サービスのページ（トップ・/music・/about）の部品 ---- */

/* 横に広く使うページ（/music）。見出しと文章の幅は記事と同じにそろえる */
.article.wide { max-width: 1120px; }
.article.wide > :is(.lead, .prose) { max-width: 728px; }
.more-link { margin: 18px 0 0; font-size: 0.94rem; }

/* カテゴリのカード（トップ・/about）。1枚なら横いっぱい、増えたら並ぶ */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.categories .card .body { padding: 22px 24px 22px; }
.categories .card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.45; }

/* アプリのカード（/music。中身は /data/music.json から作る）。上の帯は、各アプリの上部と同じ塗装面 */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.units > li { display: flex; }
.unit {
  /* 塗装色のないアプリ（開発中など）は、塗装前の地金の色 */
  --paint: #3d444d;
  --edge: #2b3138;
  --ink: var(--sub);
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.unit[data-color='yellow'] { --paint: var(--yellow); --edge: var(--yellow-edge); --ink: var(--yellow-ink); }
.unit[data-color='green'] { --paint: var(--green); --edge: var(--green-edge); --ink: var(--green-ink); }
.plate { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--paint); color: var(--ink); border-bottom: 3px solid var(--edge); }
.plate .icon { flex: none; width: 34px; height: 34px; }
.plate h2 { margin: 0; padding: 0; border: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.3; }
.plate .url { margin: 0; font-size: 0.8rem; font-weight: 700; line-height: 1.5; opacity: 0.72; }
.screws { display: inline-flex; gap: 4px; margin-right: 4px; }
.screws::before, .screws::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgb(0 0 0 / 0.3); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3); }
/* 近日公開：LED が消えたペダル */
.plate .soon { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.plate .soon::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #5b2621; box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.5); }
.unit .shot { display: block; background: #000; border-bottom: 1px solid var(--line); }
.unit .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.unit-body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 24px; }
.unit .tagline { margin: 0; color: var(--text); font-size: 1.02rem; }
.unit .features { margin: 14px 0 0; padding: 0; list-style: none; }
.unit .features li { position: relative; padding-left: 20px; color: var(--sub); font-size: 0.94rem; }
.unit .features li + li { margin-top: 6px; }
.unit .features li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--paint); }
.unit .open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: auto 0 0; padding-top: 22px; }
.unit .open .policy { color: var(--muted); font-size: 0.86rem; }
.unit .open .policy:hover { color: var(--text); }
.app-status { margin: 32px 0 0; color: var(--muted); font-size: 0.94rem; }

/* 約束（/about）：点灯した LED は「守っていること」 */
.promises { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.promises > li { padding: 16px 20px 17px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.promises h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; line-height: 1.6; }
.promises h3::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--led-on); box-shadow: 0 0 6px var(--led-on), 0 0 0 1px rgb(0 0 0 / 0.35); }
.promises p { margin: 4px 0 0 19px; font-size: 0.94rem; }

/* 灰色のボタン（SNS へのリンクなど、塗装色を持たないもの） */
.btn.plain { --paint: var(--panel-2); --edge: var(--cable); --ink: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--cable); }
.btn.plain:hover { filter: none; box-shadow: inset 0 0 0 1px #59616b, 0 2px 0 var(--cable); }

@media (max-width: 900px) {
  .units { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .categories .card .body { padding: 18px 18px 20px; }
  .unit-body { padding: 18px 18px 20px; }
  .plate { padding: 10px 14px; }
  .promises > li { padding: 14px 16px 15px; }
}
