/* コード構成音 — ツール固有のスタイル（共通は /_shared/otohakari.css） */
.cb-form { margin: 0; }
.cb-input { font-family: var(--oh-mono); font-size: 1.15rem; }
.cb-examples { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.5rem; }
.cb-examples .oh-button { padding: 0.25rem 0.6rem; font-family: var(--oh-mono); font-weight: 400; font-size: 0.85rem; }
.cb-detail { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; margin: 0.7rem 0 0.9rem; font-size: 0.86rem; }
.cb-detail dt { color: var(--oh-dim); }
.cb-detail dd { margin: 0; font-family: var(--oh-mono); overflow-wrap: anywhere; }
.cb-errors { margin: 0.6rem 0; padding-left: 1.2em; }
/* 鍵盤：地の色に関係なく、白鍵と黒鍵の色は固定 */
.cb-kb { margin: 0.4rem 0 0.2rem; }
.cb-kb svg { display: block; width: 100%; height: auto; }
.cb-w { fill: #f4f5f7; stroke: #6b7280; stroke-width: 1; }
.cb-b { fill: #1a1d24; stroke: #0b0d11; stroke-width: 1; }
.cb-w.is-on, .cb-b.is-on { fill: #f0a020; }
.cb-w.is-bass, .cb-b.is-bass { fill: #9a5a00; }
.cb-c { font: 8px var(--oh-mono); fill: #6b7280; text-anchor: middle; }
.cb-label { font: 700 8.5px var(--oh-mono); fill: #17120a; text-anchor: middle; }
.cb-label.on-black { font-size: 7px; }
.cb-kbnote { margin: 0 0 0.8rem; }
.cb-tones td { font-family: var(--oh-mono); white-space: nowrap; }
.cb-invhead { margin: 0.4rem 0 0.2rem; }
.cb-inv { margin: 0 0 0.6rem; padding-left: 1.2em; font-family: var(--oh-mono); font-size: 0.86rem; }
.cb-play { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.cb-play .oh-button:disabled { opacity: 0.45; cursor: default; filter: none; }
.cb-volume { display: grid; grid-template-columns: auto minmax(0, 1fr) 3.2rem; align-items: center; gap: 0.3rem 0.8rem; margin: 0 0 1.5rem; }
.cb-volume input[type="range"] { accent-color: var(--oh-amber); }
.cb-volume .oh-hint { grid-column: 1 / -1; margin: 0; }
.cb-volume output { text-align: right; font-size: 0.9rem; }
.cb-table td { font-family: var(--oh-mono); white-space: nowrap; }
.cb-table th a { font-family: var(--oh-mono); white-space: nowrap; }
.cb-faq { margin-top: 1.5rem; }
@media (max-width: 480px) {
  .cb-detail { grid-template-columns: 1fr; gap: 0; }
  .cb-detail dd { margin-bottom: 0.35rem; }
}
.cb-label.on-bass { fill: #ffffff; }
