/* K-POP COLOR PALETTES（2026-11-26）
   見た目はキャンバスの D-Top・D-Detail・D-Chapter・D-Signup（11/26 の Version 64）と Design System「K-POP COLOR PALETTES」のとおり。
   キャンバスの device="pc" はこのままの値、device="phone" は画面の幅 759px 以下（下の @media）の値。地はうすいベージュ（標準） */

:root {
  --bg: #FAF7F1; --band: #F3EEE5; --card: #FFFFFF; --chip: #FFFFFF; --input-bg: #FFFFFF; --input-bd: #FFFFFF;
  --ink: #1F1C1A; --muted: #5F5A55; --line: #E9E2D6; --on-ink: #FAF7F1;
  --accent: #CE122B; --accent-rgb: 206,18,43;   /* PDF への導線だけに使う赤。11/26 Faye「もっとシックな赤に」で #C53D2F から A #A8293A に（くらべは web_design/pdf_red_compare_2026-11-26.png）。続けて「もうちょっと鮮やかな、彩度高めの赤」で E #CE122B に（くらべは pdf_red_compare2_2026-11-26.png）。11/26 Faye「E にしましょう」で決定 */
  --display: 'Bricolage Grotesque', 'Zen Maru Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Zen Maru Gothic', 'Yu Gothic', sans-serif; font-size: 15px; line-height: 1.7; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.disp { font-family: var(--display); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.ph { display: none !important; }   /* スマホだけに出すもの（下の @media で出す） */
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ヘッダー */
.hd { position: relative; z-index: 25; }
.hd-in { padding: 10px 40px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.logo { color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; background: var(--chip); border-radius: 999px; padding: 4px; }
.menu a { color: var(--ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.menu a[aria-current="page"] { color: var(--on-ink); background: var(--ink); }
.menu .lang { font-size: 13px; min-width: 42px; min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; }
.menu .lang.on { background: var(--ink); color: var(--bg); }
.menu .langs { display: contents; }
.menu-btn { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink); display: none; align-items: center; justify-content: center; cursor: pointer; }

/* 現在地 */
.crumb { padding: 6px 40px 0; }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumb [aria-current="page"] { font-weight: 700; color: var(--ink); }

/* フッター */
.ft-in { padding: 24px 40px 40px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; color: var(--muted); }
.ft.lined .ft-in { border-top: 1px solid var(--line); }
.ft-row { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 13px; }
.ft-nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.ft-nav a { color: var(--muted); text-decoration: none; }
.ft p { margin: 0; line-height: 1.7; }

/* PDF の告知（帯の地。ページ下） */
.pdfband { background: var(--band); }
.pdfband-in { padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.pdfband-txt { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pdfband h2 { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 700; }
.pdfband p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.pdf-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(var(--accent-rgb),0.28); }

/* 右下に浮かぶ赤い丸 */
.badge { position: fixed; right: 32px; bottom: 88px; z-index: 20; width: 144px; height: 144px; }
.badge a { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; background: var(--accent); color: #FFFFFF; text-decoration: none; text-align: center; line-height: 1.2; box-shadow: 0 10px 28px rgba(var(--accent-rgb),0.34); transform: rotate(-8deg); }
.badge a::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,0.55); }
.badge .b1 { font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: 0.02em; }
.badge .b2 { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 13px; }
.badge-x { position: absolute; top: -4px; right: -4px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.badge-x span { width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.16); display: flex; align-items: center; justify-content: center; }

/* 知らせ（コピーしたとき） */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast span { display: block; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; line-height: 1.5; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* 章のボタン（代表色の丸3つ） */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip[aria-current="true"] { background: var(--ink); color: var(--bg); }
.dots3 { display: flex; }
.dots3 i { width: 13px; height: 13px; border-radius: 50%; margin-right: -4px; box-shadow: 0 0 0 1.5px var(--chip); }
.chip[aria-pressed="true"] .dots3 i, .chip[aria-current="page"] .dots3 i, .chip[aria-current="true"] .dots3 i { box-shadow: 0 0 0 1.5px var(--ink); }
.chip .lab { padding-left: 4px; }
.rep { display: flex; gap: 4px; }
.rep i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }

/* スマホで上に固定する章のボタン */
.jump { display: none; position: sticky; top: 0; z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump-in { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
.jump-in::-webkit-scrollbar { display: none; }
.jump .chip { flex: 0 0 auto; min-height: 44px; font-size: 12px; white-space: nowrap; }
.jump .dots3 i { width: 12px; height: 12px; }

/* パレットのカード */
.card { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0; background: var(--band); }
.sw { display: flex; height: 18px; border-radius: 0 0 14px 14px; overflow: hidden; }
.sw i { flex: 1; }
.card .song { margin-top: 10px; font-family: var(--display); font-size: 14px; font-weight: 800; line-height: 1.35; }
.card .art { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* 横スクロール（パソコン） */
.row { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: max(200px, calc((100% - 64px) / 5)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.track .card { scroll-snap-align: start; }
.rbtn { position: absolute; top: 46px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,0.16); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rbtn.prev { left: -20px; }
.rbtn.next { right: -20px; }
.see-all { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.ulink { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }

/* 前と次（パレット、章） */
.pn { display: flex; gap: 12px; }
.pn a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 20px 10px 14px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 2px 10px rgba(60,45,30,0.06); }
.pn a.nx { justify-content: flex-end; padding: 10px 14px 10px 20px; text-align: right; }
.pn .pn-sw { flex: none; display: flex; width: 56px; height: 12px; border-radius: 999px; overflow: hidden; }
.pn .pn-sw i { flex: 1; }
.pn .pn-t { min-width: 0; display: flex; flex-direction: column; }
.pn a.nx .pn-t { align-items: flex-end; }
.pn .pn-k { font-size: 11px; font-weight: 700; color: var(--muted); }
.pn .pn-n { font-family: var(--display); font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pn .pn-n small { margin-left: 8px; font-family: 'Zen Maru Gothic', sans-serif; font-size: 12px; font-weight: 500; color: var(--muted); }
.pn .pn-dots { flex: none; display: flex; }
.pn .pn-dots i { width: 16px; height: 16px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px var(--card); }
.pn .pn-ch { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pn .spacer { flex: 1 1 0; }

/* ---------------- トップ ---------------- */
.hero { padding: 48px 40px 56px; display: flex; flex-direction: row; align-items: center; gap: 40px; }
.hero-txt { flex: 1 1 0; min-width: 0; order: 1; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: min(128px, 10vw); line-height: 0.92; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.hero h1 span { display: block; }
.cap { display: flex; align-items: center; gap: 14px; }
.cap-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cap-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.cap-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cap-song { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.35; }
.cap-art { font-size: 13px; color: var(--muted); }
.play { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #FFFFFF; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.drops { position: relative; flex: none; width: 520px; height: 460px; order: 2; }
.drop { position: absolute; left: var(--x); top: var(--y); width: var(--d); height: var(--d); border-radius: 50%; background: var(--c); border: 4px solid var(--bg); box-shadow: inset 0 0 0 1px rgba(31,28,26,0.07); transform: translate(-50%, -50%) translate(var(--jx), var(--jy)); transition: width 1.1s cubic-bezier(.2,.8,.2,1), height 1.1s cubic-bezier(.2,.8,.2,1), background-color 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), left 1.1s cubic-bezier(.2,.8,.2,1), top 1.1s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .drop { transition: none; } }
.lead { padding: 8px 40px 44px; display: flex; flex-direction: column; gap: 12px; }
.lead .l1 { margin: 0; font-size: 22px; line-height: 1.7; font-weight: 700; }
.lead .l2 { margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); max-width: 48em; }
.note { padding: 0 40px 32px; }
.note-in { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; padding: 24px 32px; background: var(--card); box-shadow: 0 6px 20px rgba(60,45,30,0.07); }
.note-txt { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.note h2 { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 700; }
.note p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.search { background: var(--band); }
.search-in { padding: 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.s-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.s-lab { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 56px; }
.cdots { display: flex; flex: 0 1 auto; flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 6px 14px; padding: 4px 2px; }
.cdot { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; padding: 2px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.cdot .c { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 0 var(--ink), inset 0 0 0 1px rgba(0,0,0,0.08); border: 2px solid var(--band); }
.cdot .t { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.cdot[aria-pressed="true"] .c { box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 1px rgba(0,0,0,0.08); }
.cdot[aria-pressed="true"] .t { font-weight: 700; }
.mini { font-size: 12px; font-weight: 700; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); cursor: pointer; }
.ftoggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.filters label { font-size: 13px; font-weight: 700; color: var(--muted); }
.filters label.s-lab { min-width: 56px; }
.filters input, .filters select { font: inherit; font-size: 14px; min-height: 44px; border: 1px solid var(--input-bd); border-radius: 999px; background: var(--input-bg); color: var(--ink); }
.filters input { flex: 1 1 auto; padding: 0 18px; min-width: 0; }
.fgrp { display: flex; align-items: center; gap: 10px; }   /* 名前と欄の組（11/26） */
.fgrp.kw { flex: 1 1 320px; min-width: 0; }
.filters select { padding: 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.result { margin: 0; font-size: 13px; color: var(--muted); }
.result b { color: var(--ink); }
.list { padding: 4px 40px 40px; }
.chsec { padding: 30px 0 4px; }
.ch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.ch-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.ch-t { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ch-t h2 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; }
.ch-d { margin: 0; font-size: 13px; color: var(--muted); }
.ch-head-ph { display: none; }
.grid6 { display: none; }
.empty { margin: 40px 0; color: var(--muted); }
.results { padding: 30px 0 4px; }   /* 色・トーン・ことば・公開年で絞り込んだとき：章に分けず、一覧で（11/26 Faye） */

/* ---------------- 詳細ページ ---------------- */
.sec { max-width: 1200px; margin: 0 auto; padding: 44px 40px; }
.sec.lined { border-top: 1px solid var(--line); }
.sec h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; }
.sec .sub { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.dhero { padding: 28px 40px 48px; display: flex; flex-direction: row; align-items: center; gap: 48px; }
.dthumb { margin: 0; flex: none; width: 400px; max-width: 100%; display: flex; flex-direction: column; }
.dthumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px 14px 0 0; background: #000000; }
.dthumb .sw { height: 18px; }
.dthumb figcaption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.dinfo { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tagchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; }
.tagchip span { font-family: var(--display); color: var(--muted); }
.dyear { font-size: 13px; color: var(--muted); }
.dtitle { display: flex; flex-direction: column; gap: 4px; }
.dinfo h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1.02; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dinfo h1.long { font-size: 56px; }   /* 曲名が長いとき（13〜20字） */
.dinfo h1.xlong { font-size: 40px; line-height: 1.15; }   /* 21字より長いとき（韓国語と英語を並べた曲名など） */
.dartist { margin: 0; font-size: 18px; font-weight: 700; }
.dtone { display: flex; flex-direction: column; }
.dtone .a { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.4; }
.dtone .b { font-size: 13px; color: var(--muted); }
.chbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--chip); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.cols-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.cols-head > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.copyall { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; cursor: pointer; }
.colors { display: flex; flex-direction: column; gap: 16px; }
.c6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.c6 > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.c6 .nm { display: flex; align-items: baseline; gap: 6px; min-height: 22px; }
.c6 .nm b { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--muted); }
.c6 .nm span { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.c6 .chipc { height: 104px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.codes { display: flex; flex-direction: column; align-items: flex-start; }
.code { font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1.3; min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline dotted; text-decoration-color: rgba(31,28,26,0.32); text-underline-offset: 4px; white-space: nowrap; cursor: pointer; text-align: left; }
.code.hex { font-size: 16px; font-weight: 800; color: var(--ink); }
.code.done { font-weight: 800; color: var(--ink); }
.c6 .share { margin-top: 2px; font-size: 12px; color: var(--muted); }
.area { display: flex; height: 30px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.area span { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 12px; }
.strip6, .clist { display: none; }
.cmyk-note { margin: 0; font-size: 12px; color: var(--muted); }
.type { display: flex; flex-direction: row; align-items: flex-start; gap: 56px; }
.type-l { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.type-h { margin: 0; font-size: 20px; line-height: 1.55; font-weight: 700; }
.type-p { margin: 0; font-size: 15px; line-height: 1.95; max-width: 40em; }
.tm { flex: none; width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.tm h3 { margin: 0; font-size: 14px; font-weight: 700; }
.tm h3 span { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.tm-g { display: grid; grid-template-columns: 60px repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 11px; line-height: 1.3; }
.tm-ax { text-align: center; font-weight: 700; color: var(--muted); }
.tm-rl { align-self: center; text-align: right; padding-right: 8px; font-weight: 700; color: var(--muted); }
.tm-c { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--band); text-align: center; padding: 0 2px; }
.tm-c .ds { display: flex; }
.tm-c .ds i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: normal; font-weight: 800; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,0.14); }
.tm-c .ds i + i { margin-left: -6px; }
.tm-c .n { font-weight: 500; color: var(--muted); }
.tm-c.on .n { font-weight: 700; color: var(--ink); }
.cmb { display: flex; flex-direction: row; align-items: flex-start; gap: 56px; }
.cmb-l { flex: 1 1 0; min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.cmb-l h3 { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.cmb-l h3.t3 { margin-top: 8px; }
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cset { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.cbar { display: flex; width: 100%; height: 44px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.cbar span { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 13px; }
.clab { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; font-size: 12px; font-weight: 700; line-height: 1.45; }
.aa { flex: none; padding: 1px 7px; border-radius: 6px; font-family: var(--display); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.chex { font-family: var(--display); font-size: 11px; font-weight: 700; color: var(--muted); word-spacing: 4px; }
.chex.done { font-weight: 800; color: var(--ink); }
.aa-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.aa-note b { padding: 0 6px; border-radius: 5px; font-family: var(--display); }
.artfig { margin: 0; flex: none; width: 340px; max-width: 340px; align-self: flex-start; }
.artfig p { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.artfig img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; }
.artfig figcaption { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.mv { display: flex; flex-direction: column; gap: 16px; }
.mv-in { display: flex; flex-direction: row; align-items: flex-start; gap: 40px; }
.yt { position: relative; flex: none; width: 640px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000000; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000000; cursor: pointer; }
.yt button img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.yt button::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.22); }
.yt .pl { position: absolute; left: 50%; top: 50%; z-index: 1; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255,255,255,0.94); color: #1F1C1A; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv-r { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mv-r .vt { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; }
.mv-r .vm { margin: 0; font-size: 13px; color: var(--muted); }
.ytlink { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.mv-r .vr { margin: 8px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.same { display: flex; flex-direction: column; gap: 16px; }
.same .pn { margin-top: 8px; }
.same-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; flex-wrap: wrap; }
.same-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.same-head .rep i { width: 16px; height: 16px; }

/* ---------------- 章のページ ---------------- */
.chhead { padding: 24px 40px 32px; display: flex; flex-direction: column; gap: 12px; }
.chhead .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.chhead h1 { margin: 0; font-size: 44px; line-height: 1.3; font-weight: 700; }
.chhead .rep { gap: 5px; }
.chhead .rep i { width: 22px; height: 22px; }
.chhead .desc { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 700; }
.chhead .leadp { margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); max-width: 46em; }
.chnav { background: var(--band); }
.chnav-in { padding: 16px 40px; display: flex; flex-wrap: wrap; gap: 6px; }
.chlist { padding: 36px 40px 56px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.grid4 .card .song { font-size: 15px; }
.pnch { padding: 36px 40px 48px; }

/* ---------------- 登録ページ ---------------- */
.su { padding: 28px 40px 56px; display: flex; flex-direction: row; align-items: flex-start; gap: 64px; }
.su-l { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
.su .kick { margin: 0; font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1.4; letter-spacing: 0.16em; }
.su h1 { margin: 0; font-size: 40px; line-height: 1.4; font-weight: 700; }
.su .p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--muted); }
.su form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; margin-top: 8px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-size: 13px; font-weight: 700; }
.fld input, .fld select { font: inherit; font-size: 16px; min-height: 52px; width: 100%; padding: 0 20px; border: 1px solid var(--input-bd); border-radius: 999px; background: var(--card); color: var(--ink); }
.fld select { padding: 0 18px; }
.su-btn { font-size: 16px; font-weight: 700; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; box-shadow: 0 4px 12px rgba(var(--accent-rgb),0.28); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.su .sent { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--accent); }
.su .sent p { margin: 0; }
.su .sent .sent2 { margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--ink); }   /* 12/2 Faye 案A：登録済みのときの一言。少し小さく、色はつけない */   /* 12/2 Faye：分かりやすく、ボタンと同じ赤で少し大きく */
.su .fail { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--accent); }
.su-btn:disabled { opacity: 0.6; cursor: wait; }
/* ダウンロードのページ（12/2） */
.thanks .kick { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; }
.thanks .dls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 28px 0 20px; }
.thanks a.su-btn { display: inline-flex; text-decoration: none; }
.thanks .dl-sub { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.thanks .note { color: var(--muted); font-size: 14px; }
.su .notice { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
.su .spam { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.su-r { flex: none; align-self: flex-start; width: 360px; display: flex; flex-direction: column; gap: 14px; }   /* 12/2 Faye：「中身」の見出しを表紙の上に */
.su-r h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; }
.cover { width: 100%; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 794 / 1123; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(60,45,30,0.07); }
.cover figcaption, .pages figcaption { font-size: 12px; line-height: 1.6; color: var(--muted); }
.inside { padding: 8px 40px 56px; display: flex; flex-direction: column; gap: 16px; }
.inside h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; }
.inside-in { display: flex; flex-direction: column; gap: 32px; }
.pages { width: 100%; max-width: 1000px; display: flex; gap: 16px; overflow-x: visible; padding-bottom: 6px; }
.pages figure { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pages img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; border: 1px solid var(--line); background: #FFFFFF; }
.rows { margin: 0; display: flex; flex-direction: column; }
.rows > div { display: flex; flex-direction: row; gap: 2px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { flex: 0 0 210px; margin: 0; font-weight: 700; }
.rows dd { flex: 1 1 0; min-width: 0; margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------- プライバシーポリシー、見つからないとき ---------------- */
.doc { padding: 28px 40px 56px; max-width: 840px; }
.doc h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.4; font-weight: 700; }
.doc h2 { margin: 32px 0 8px; font-size: 18px; line-height: 1.5; font-weight: 700; }
.doc p { margin: 0; line-height: 1.9; }
.doc .draft { padding: 12px 16px; background: var(--band); font-size: 14px; }
.doc .todo { color: var(--muted); }
.ft-credit { color: inherit; text-decoration: none; }
.about p + p { margin-top: 18px; }
.about .about-who { display: flex; align-items: center; gap: 20px; margin: 28px 0 0; }   /* 12/2 Faye「文字だけで少しさびしい」：brandkit の F のアイコンを名前の左に */
.about .about-who img { flex: none; width: 96px; height: 96px; border-radius: 50%; }
.about .about-who + p { margin-top: 24px; }
.about .about-name { margin: 0 0 4px; font-size: 28px; font-weight: 700; line-height: 1.3; }   /* 12/2 Faye「もうちょっとシンプルに」：Bricolage 800 40px → 本文と同じ Zen Maru Gothic 700 28px */
.about .about-like { color: var(--muted); }
.about .about-links { margin: 24px 0 0; padding: 0; list-style: none; line-height: 2; }
.about .about-links a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.about .about-op { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.op { border-collapse: collapse; width: 100%; font-size: 14px; }
.op th, .op td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.op th { width: 11em; padding-right: 16px; font-weight: 700; }
.op a, .privacy a, .su .notice a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy ul { margin: 0 0 8px; padding-left: 1.3em; line-height: 1.9; }
.privacy p + p { margin-top: 8px; }
.nf { padding: 64px 40px 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nf h1 { margin: 0; font-size: 32px; line-height: 1.4; }
.nf p { margin: 0; color: var(--muted); }

/* ================= スマホ（キャンバスの device="phone"） ================= */
@media (max-width: 759px) {
  .pc-only { display: none !important; }
  .see-all.ph, .copyall.ph, .area.ph { display: flex !important; }
  .ftoggle.ph { display: inline-flex !important; }
  .see-all.ph[hidden], .copyall.ph[hidden], .area.ph[hidden], .ftoggle.ph[hidden] { display: none !important; }
  .hd-in { padding: 10px 20px; }
  .menu-btn { display: flex; }
  .menu { display: none; position: absolute; top: 60px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border-radius: 24px; box-shadow: 0 10px 30px rgba(60,45,30,0.16); min-width: 200px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 18px; }
  .menu .langs { display: flex; gap: 4px; padding: 4px 6px 2px; }
  .menu .lang { flex: 1 1 0; min-height: 40px; }
  .crumb { padding: 2px 20px 0; }
  .ft-in { padding: 20px 20px 132px; }
  .pdfband-in { padding: 28px 20px; }
  .pdfband h2 { font-size: 18px; }
  .pdfband p { font-size: 13px; }
  .pdf-btn { flex: 1 1 100%; }
  .badge { right: 16px; bottom: 96px; width: 116px; height: 116px; }
  .badge .b1 { font-size: 21px; }
  .badge .b2 { font-size: 11px; }
  .toast { bottom: 20px; }
  .jump { display: block; }
  .card img { border-radius: 12px 12px 0 0; }
  .card .sw { height: 14px; border-radius: 0 0 12px 12px; }
  .card .song { margin-top: 8px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card .art { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pn { flex-direction: column; }

  /* トップ */
  .hero { padding: 12px 20px 36px; flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-txt { flex: none; order: 2; }
  .hero h1 { font-size: min(76px, 19.5vw); }
  .drops { width: 100%; height: 250px; order: 1; }
  .drop { left: var(--xp); top: var(--yp); width: var(--dp); height: var(--dp); border-width: 3px; transform: translate(-50%, -50%) translate(var(--jxp), var(--jyp)); }
  .lead { padding: 4px 20px 32px; }
  .lead .l1 { font-size: 18px; }
  .lead .l2 { font-size: 14px; }
  .note { padding: 0 16px 24px; }
  .note-in { padding: 20px; }
  .note h2 { font-size: 17px; }
  .note p { font-size: 13px; }
  .search-in { padding: 16px 20px; }
  .cdots { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; }
  .filters { display: none; }
  .filters.open { display: flex; }
  .fgrp, .fgrp.kw { flex: 1 1 100%; }
  .fgrp select { flex: 1 1 auto; min-width: 0; }
  .fgrp label { min-width: 56px; }
  .list { padding: 0 16px 32px; }
  .chsec { padding: 22px 0 6px; scroll-margin-top: 68px; }
  .ch-head { display: none; }
  .ch-head-ph { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
  .ch-head-ph .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .ch-head-ph h2 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 700; min-width: 0; }
  .ch-head-ph .rep { flex: 0 0 auto; gap: 3px; }
  .ch-head-ph .rep i { width: 14px; height: 14px; }
  .ch-head-ph p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
  .row .rbtn { display: none; }
  .track { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 16px 12px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .track .card.x6 { display: none; }
  .chsec .see-all { margin-top: 12px; }
  .results { padding: 22px 0 6px; }

  /* 詳細 */
  .sec { padding: 28px 20px; }
  .sec h2 { font-size: 19px; }
  .dhero { padding: 14px 20px 32px; flex-direction: column; align-items: stretch; gap: 18px; }
  .dthumb { width: 100%; }
  .dthumb .sw { height: 14px; }
  .dinfo { flex: none; }
  .dinfo h1 { font-size: min(56px, 14vw); }
  .dinfo h1.long { font-size: min(44px, 11vw); }
  .dinfo h1.xlong { font-size: min(30px, 8vw); }
  .dartist { font-size: 16px; }
  .strip6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .strip6 span { aspect-ratio: 5 / 6; padding: 5px 7px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 1; }
  .clist { display: flex; flex-direction: column; margin-top: 4px; border-bottom: 1px solid var(--line); }
  .clist > div { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
  .clist .sq { flex: none; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 13px; }
  .clist .bd { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  .clist .l1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .clist .l1 span { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.35; }
  .clist .l1 small { font-size: 11px; color: var(--muted); }
  .clist .l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
  .clist .code { font-size: 12px; min-height: 32px; }
  .clist .code.hex { font-size: 13px; }
  .area.ph { height: 24px; }
  .type, .cmb { flex-direction: column; gap: 24px; }
  .type-l, .cmb-l { flex: none; }
  .type-h { font-size: 17px; }
  .tm { width: 100%; }
  .cbar { height: 40px; }
  .artfig { width: 100%; max-width: 320px; align-self: center; }
  .mv-in { flex-direction: column; gap: 16px; }
  .yt { width: 100%; }
  .mv-r { flex: none; }

  /* 章 */
  .chhead { padding: 14px 20px 24px; }
  .chhead h1 { font-size: 28px; }
  .chhead .rep i { width: 16px; height: 16px; }
  .chhead .desc { font-size: 15px; }
  .chhead .leadp { font-size: 14px; }
  .chlist { padding: 18px 16px 36px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .grid4 .card .song { font-size: 13px; }
  .pnch { padding: 28px 20px 32px; }

  /* 登録 */
  .su { padding: 16px 20px 36px; flex-direction: column; gap: 28px; }
  .su h1 { font-size: 26px; }
  .su .p { font-size: 14px; }
  .su-r { align-self: stretch; width: auto; }
  .su-r h2 { font-size: 19px; }
  .cover { align-self: center; width: 240px; }
  .inside { padding: 4px 20px 36px; }
  .inside h2 { font-size: 19px; }
  .inside-in { gap: 24px; }
  .pages { overflow-x: auto; }
  .pages figure { flex: 0 0 170px; }
  .rows > div { flex-direction: column; }
  .rows dt { flex: none; }

  .doc { padding: 16px 20px 40px; }
  .doc h1 { font-size: 26px; }
  .nf { padding: 40px 20px 64px; }
}
