/* =====================================================================
   魔王魂 — 新しいテーマ（案B「魔王の赤」のライトとダーク・2026-12-01）
   正（姿）= axivrs/docs/design/maou-theme-handoff（値は canvas/README.md・画面は canvas/*.dc.html）
   段取り = axivrs/docs/design/maoudamashii-theme-plan.md
   ★見た目はこのファイルだけ（段4 — 2026-12-02）。古い style.css と Font Awesome を読むのは魔王魂STREAM だけ（parts/head.php の決め打ちの枝）
   ★明暗 = <html data-theme="light|dark">（サーバーは light・<head> のいちばん上の1行が dark を選んだ人だけ切り替える）
   ★OS の外観・「動きを減らす」には合わせない（canvas/README.md §5）
   ===================================================================== */

/* ---------- 色（canvas/README.md §2）---------- */
:root,
:root .ground{
  --paper:#FBFAF8; --ink:#171312; --on-ink:#FFFFFF;
  --red:#D73028; --red-text:#D73028; --on-red:#FFFFFF; --red-shade:#C2291F;
  --muted:#5B5450; --surface:#EFEBE7; --art:#E6E1DC; --row-on:#F3EFEB;
  --field:#FFFFFF; --placeholder:#6A625D; --dash:#8A817C; --scrim:rgba(23,19,18,.55);
  --nowave:#B9AFA9;
}
:root[data-theme="dark"],
:root[data-theme="dark"] .ground{
  --paper:#111111; --ink:#F2F2F2; --on-ink:#111111;
  --red-text:#F2554A;
  --muted:#A6A6A6; --surface:#1C1C1C; --art:#2B2B2B; --row-on:#1C1C1C;
  --field:#1C1C1C; --placeholder:#A6A6A6; --dash:#8C8C8C; --scrim:rgba(0,0,0,.7);
  --nowave:#4A4A4A;
}
/* 地の墨（赤い面の中でも地の色のまま — ヘッダーの下の線） */
:root{ --line:var(--ink); color-scheme:light; }
:root[data-theme="dark"]{ color-scheme:dark; }
/* 赤い面の中は、テーマに関係なく同じ（§2 の決まり 1）。中に地の色の物を置く時は .ground で戻す */
.onred{ --ink:#171312; --on-ink:#FFFFFF; --red-text:#D73028; --field:#FFFFFF; --placeholder:#6A625D; background-color:var(--red); color:#FFFFFF; }
.ground{ background-color:var(--paper); color:var(--ink); }

/* ---------- 土台 ---------- */
*,*::before,*::after{ box-sizing:border-box; }
:where(img){ max-width:100%; display:block; }   /* 絵は枠からはみ出さない（ニュースの本文の絵など）*/
html{ background-color:var(--paper); }
body{
  margin:0; background-color:var(--paper); color:var(--ink);
  font-family:'Murecho','Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;
  font-weight:500; font-size:16px; line-height:1.7;
  font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}
:where(a){ color:var(--ink); text-decoration:none; }
:where(a:hover){ color:var(--red-text); }
:where(.onred a){ color:#FFFFFF; }
:where(.onred a:hover){ color:var(--ink); }
:where(button){ font:inherit; color:inherit; cursor:pointer; }
:where(input,textarea,select){ font:inherit; }
:where(input,textarea)::placeholder{ color:var(--placeholder); opacity:1; }
:where(h1,h2,h3,h4,p,ol,ul,figure){ margin:0; }
:where(:focus-visible){ outline:3px solid var(--red-text); outline-offset:3px; }   /* キーボードで選んだ ＝ 赤い枠（部品の表 B2-Kit-Ctrl の「状態」— ダークは #F2554A）*/
:where(.onred :focus-visible){ outline-color:#FFFFFF; }
.vh{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ph{ display:inline-block; }
.nw{ white-space:nowrap; }
@media (min-width:721px){ .sp-only{ display:none !important; } }
@media (max-width:720px){ .pc-only{ display:none !important; } }
.mi-svg{ display:block; flex:none; }

/* 明暗を切り替えた瞬間だけ色をふわっと（app.js が html に .theme-anim を 480ms 付ける） */
:root.theme-anim,
:root.theme-anim *,
:root.theme-anim *::before,
:root.theme-anim *::after{
  transition:background-color .45s ease, border-color .45s ease, color .4s ease, fill .4s ease, box-shadow .45s ease !important;
}

/* ---------- 器（古い .page / .shell / .main を新しい組みに）---------- */
.page{ min-width:0; min-height:100vh; display:flex; flex-direction:column; overflow-x:clip; background:none; }   /* clip = はみ出した絵（押す前の大きい判子・OMA）で画面ごと横にずれない。hidden と違いスクロールの箱を作らない＝再生バーの sticky は生きる（段3）*/
.shell{ display:block; flex:1 0 auto; }   /* 中身が短い画面（送った後・見つからない時）でも、再生バーを画面の下に置く（段3）*/
.main{ display:block; min-width:0; padding-bottom:0; }
.wrap{ max-width:1440px; margin-left:auto; margin-right:auto; padding-left:56px; padding-right:56px; box-sizing:border-box; }
@media (max-width:720px){ .wrap{ padding-left:16px; padding-right:16px; } }

/* ---------- ボタン（canvas/README.md §6）---------- */
.bt{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 16px; border:0; box-sizing:border-box; font-weight:900; font-size:15px; line-height:1.2; white-space:nowrap; text-decoration:none; }
.bt-red{ background-color:var(--red); color:#FFFFFF; }
.bt-red:hover{ background-color:var(--red-shade); color:#FFFFFF; }
.bt-ink{ background-color:var(--ink); color:var(--on-ink); }
.bt-ink:hover{ color:var(--on-ink); opacity:.86; }
.onred .bt-ink:hover{ color:#FFFFFF; background-color:#2B2523; opacity:1; }
.bt-line{ background:transparent; border:2px solid var(--ink); color:var(--ink); }
.bt-line:hover{ border-color:var(--red-text); color:var(--ink); }
.ibtn{ width:44px; height:44px; flex:none; display:inline-flex; align-items:center; justify-content:center; padding:0; border:2px solid var(--ink); background:transparent; box-sizing:border-box; color:var(--ink); text-decoration:none; }
.ibtn:hover{ border-color:var(--red-text); color:var(--ink); }
.ibtn--bare{ border:0; }
.arrow-red{ color:var(--red); }

/* ---------- OMA（板の動き — 値は Hype の書き出しのまま）---------- */
.oma{ display:block; width:100%; height:auto; overflow:visible; color:var(--ink); }
.oma .obc{ transition:transform .14s ease-out; }
.omab{ display:block; width:100%; padding:0; border:0; background:transparent; cursor:pointer; color:inherit; }
.omab:hover .oma .obc,.omab:focus-visible .oma .obc{ transform:translateY(14px); }
.omab:active .oma .obc{ transform:translateY(24px); }
.omab:focus-visible{ outline:3px solid #FFFFFF; outline-offset:4px; }
.oma .ob,.oma .l1x,.oma .l2x,.oma .l2y{ animation-duration:1.19s; animation-fill-mode:none; }
.oma.enter .ob{ animation-name:omaBodyA; animation-iteration-count:2; animation-delay:.5s; }
.oma.enter .l1x{ animation-name:omaL1xA; animation-iteration-count:2; animation-delay:.5s; }
.oma.enter .l2x{ animation-name:omaL2xA; animation-iteration-count:2; animation-delay:.5s; }
.oma.enter .l2y{ animation-name:omaL2yA; animation-iteration-count:2; animation-delay:.5s; }
.oma.enter .stage{ animation:omaEnter 2.38s .5s both; }
.oma.hop-b .ob{ animation-name:omaBodyB; } .oma.hop-b .l1x{ animation-name:omaL1xB; } .oma.hop-b .l2x{ animation-name:omaL2xB; } .oma.hop-b .l2y{ animation-name:omaL2yB; }
.oma.hop-c .ob{ animation-name:omaBodyC; } .oma.hop-c .l1x{ animation-name:omaL1xC; } .oma.hop-c .l2x{ animation-name:omaL2xC; } .oma.hop-c .l2y{ animation-name:omaL2yC; }
.oma.walk .ob{ animation-name:omaBodyA; animation-iteration-count:infinite; }
.oma.walk .l1x{ animation-name:omaL1xA; animation-iteration-count:infinite; }
.oma.walk .l2x{ animation-name:omaL2xA; animation-iteration-count:infinite; }
.oma.walk .l2y{ animation-name:omaL2yA; animation-iteration-count:infinite; }
@keyframes omaEnter{0%{transform:translateX(890px);animation-timing-function:cubic-bezier(0,0,.58,1)}8.403%{transform:translateX(669px);animation-timing-function:cubic-bezier(0,0,.58,1)}13.866%{transform:translateX(445px)}50%{transform:translateX(445px);animation-timing-function:cubic-bezier(0,0,.58,1)}58.403%{transform:translateX(224px);animation-timing-function:cubic-bezier(0,0,.58,1)}63.866%,100%{transform:translateX(0)}}
@keyframes omaBodyA{0%{transform:translateY(0);animation-timing-function:linear}16.807%{transform:translateY(-64px);animation-timing-function:cubic-bezier(.542,0,.933,.894)}22.918%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.434,1)}25.975%{transform:translateY(-16px);animation-timing-function:cubic-bezier(.585,0,1,1)}29.03%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.49,1)}30.558%{transform:translateY(-4px);animation-timing-function:cubic-bezier(.51,0,1,1)}32.086%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.45,1)}32.85%{transform:translateY(-1px);animation-timing-function:cubic-bezier(.555,0,1,1)}33.613%,100%{transform:translateY(0)}}
@keyframes omaBodyB{0%{transform:translateY(0);animation-timing-function:linear}16.807%{transform:translateY(-64px);animation-timing-function:cubic-bezier(.542,0,.933,.894)}22.918%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.434,1)}25.975%{transform:translateY(-16px);animation-timing-function:cubic-bezier(.585,0,1,1)}29.03%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.49,1)}30.558%{transform:translateY(-4px);animation-timing-function:cubic-bezier(.51,0,1,1)}32.086%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.45,1)}32.85%{transform:translateY(-1px);animation-timing-function:cubic-bezier(.555,0,1,1)}33.613%,100%{transform:translateY(0)}}
@keyframes omaBodyC{0%{transform:translateY(0);animation-timing-function:linear}16.807%{transform:translateY(-64px);animation-timing-function:cubic-bezier(.542,0,.933,.894)}22.918%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.434,1)}25.975%{transform:translateY(-16px);animation-timing-function:cubic-bezier(.585,0,1,1)}29.03%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.49,1)}30.558%{transform:translateY(-4px);animation-timing-function:cubic-bezier(.51,0,1,1)}32.086%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.45,1)}32.85%{transform:translateY(-1px);animation-timing-function:cubic-bezier(.555,0,1,1)}33.613%,100%{transform:translateY(0)}}
@keyframes omaL1xA{0%{transform:translateX(0);animation-timing-function:cubic-bezier(0,0,.58,1)}16.807%{transform:translateX(221px);animation-timing-function:cubic-bezier(0,0,.58,1)}27.731%,100%{transform:translateX(445px)}}
@keyframes omaL1xB{0%{transform:translateX(0);animation-timing-function:cubic-bezier(0,0,.58,1)}16.807%{transform:translateX(221px);animation-timing-function:cubic-bezier(0,0,.58,1)}27.731%,100%{transform:translateX(445px)}}
@keyframes omaL1xC{0%{transform:translateX(0);animation-timing-function:cubic-bezier(0,0,.58,1)}16.807%{transform:translateX(221px);animation-timing-function:cubic-bezier(0,0,.58,1)}27.731%,100%{transform:translateX(445px)}}
@keyframes omaL2xA{0%{transform:translateX(0);animation-timing-function:cubic-bezier(.42,0,.58,1)}16.807%{transform:translateX(-262px);animation-timing-function:cubic-bezier(0,0,.58,1)}27.731%,100%{transform:translateX(-445px)}}
@keyframes omaL2xB{0%{transform:translateX(0);animation-timing-function:cubic-bezier(.42,0,.58,1)}16.807%{transform:translateX(-262px);animation-timing-function:cubic-bezier(0,0,.58,1)}27.731%,100%{transform:translateX(-445px)}}
@keyframes omaL2xC{0%{transform:translateX(0);animation-timing-function:cubic-bezier(.42,0,.58,1)}16.807%{transform:translateX(-262px);animation-timing-function:cubic-bezier(0,0,.58,1)}27.731%,100%{transform:translateX(-445px)}}
@keyframes omaL2yA{0%{transform:translateY(0);animation-timing-function:cubic-bezier(.42,0,.58,1)}16.807%{transform:translateY(-126px);animation-timing-function:cubic-bezier(.542,0,.933,.894)}20.779%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.44,1)}22.794%{transform:translateY(-11.3px);animation-timing-function:cubic-bezier(.594,0,1,1)}24.752%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.46,1)}25.697%{transform:translateY(-4.7px);animation-timing-function:cubic-bezier(.49,0,1,1)}26.738%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.45,1)}27.235%{transform:translateY(-2px);animation-timing-function:cubic-bezier(.555,0,1,1)}27.731%,100%{transform:translateY(0)}}
@keyframes omaL2yB{0%{transform:translateY(0);animation-timing-function:cubic-bezier(.42,0,.58,1)}16.807%{transform:translateY(-126px);animation-timing-function:cubic-bezier(.542,0,.933,.894)}20.779%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.44,1)}22.794%{transform:translateY(-11.3px);animation-timing-function:cubic-bezier(.594,0,1,1)}24.752%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.46,1)}25.697%{transform:translateY(-4.7px);animation-timing-function:cubic-bezier(.49,0,1,1)}26.738%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.45,1)}27.235%{transform:translateY(-2px);animation-timing-function:cubic-bezier(.555,0,1,1)}27.731%,100%{transform:translateY(0)}}
@keyframes omaL2yC{0%{transform:translateY(0);animation-timing-function:cubic-bezier(.42,0,.58,1)}16.807%{transform:translateY(-126px);animation-timing-function:cubic-bezier(.542,0,.933,.894)}20.779%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.44,1)}22.794%{transform:translateY(-11.3px);animation-timing-function:cubic-bezier(.594,0,1,1)}24.752%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.46,1)}25.697%{transform:translateY(-4.7px);animation-timing-function:cubic-bezier(.49,0,1,1)}26.738%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.45,1)}27.235%{transform:translateY(-2px);animation-timing-function:cubic-bezier(.555,0,1,1)}27.731%,100%{transform:translateY(0)}}

/* ---------- ヘッダー（赤・上に残る — 高さ PC 74・スマホ 64。上限の帯が出ると 130・141）---------- */
.hd{ position:sticky; top:0; z-index:20; border-bottom:4px solid var(--line); }
.hd__in{ max-width:1440px; margin:0 auto; padding:12px 56px; box-sizing:border-box; display:flex; align-items:center; gap:32px; }
.hd__burger{ display:none; }
.hd__logo{ display:flex; align-items:center; gap:12px; flex:none; }
.hd__logo .mlogo{ display:block; width:40px; height:42px; }
.hd__name{ font-weight:900; font-size:30px; line-height:1; letter-spacing:.02em; }
.hnav{ display:flex; align-items:center; gap:24px; font-weight:700; font-size:15px; white-space:nowrap; }
.hnav a{ padding:10px 0 6px; border-bottom:4px solid transparent; }
.hnav a[aria-current="page"]{ border-bottom-color:#FFFFFF; }
.hd__right{ margin-left:auto; display:flex; align-items:center; gap:12px; flex:none; }
.hd__search{ width:44px; height:44px; flex:none; display:flex; align-items:center; justify-content:center; }
.hd__login{ height:44px; padding:0 18px; gap:9px; }
.hd__login .axmark{ width:24.8px; height:14px; }
.hd__menu{ display:grid; align-items:center; height:44px; margin-left:6px; padding:0 2px; border:0; background:transparent; color:#FFFFFF; font-weight:900; font-size:15px; white-space:nowrap; }
.hd__menu:hover{ color:var(--ink); }
/* 「メニュー」⇄「閉じる」（≡ ⇄ ×）は同じ升に重ねて、見せる方だけ切り替える（visibility）＝ ボタンの幅は広い方のまま変わらない（印は同じ場所で入れ替わる）。
   display で出し入れすると、開いた時にボタンが 15px 縮み、左の「ログイン」・残りの札・検索が右へずれていた（2026-12-02 Koichi「レイアウトシフト」）*/
.m-open,.m-close{ grid-area:1/1; display:inline-flex; align-items:center; gap:8px; }
.m-close,[aria-expanded="true"] > .m-open{ visibility:hidden; }
[aria-expanded="true"] > .m-close{ visibility:visible; }
@media (max-width:1280px){ .hnav{ display:none; } }

/* 残り曲数（数字だけがめくれる — app.js が flip-a / flip-b を交互に付ける）*/
.dlbox{ display:flex; align-items:center; gap:6px; height:44px; padding:0 14px 0 12px; border:2px solid #FFFFFF; box-sizing:border-box; font-weight:700; font-size:14px; line-height:1; white-space:nowrap; color:#FFFFFF; }
a.dlbox:hover{ color:#FFFFFF; background-color:var(--red-shade); }
.dlbox .mi-download{ width:16px; height:16px; }
.flip{ --n:1; position:relative; display:inline-block; flex:none; width:calc(4px + var(--n) * 13px); height:28px; perspective:110px; font-weight:900; font-size:24px; color:#FFFFFF; }
.flip .fh{ position:absolute; left:0; display:block; width:100%; height:14px; overflow:hidden; background-color:var(--red); }
.flip .fh > span{ display:block; height:28px; line-height:28px; text-align:center; }
.flip .f-top,.flip .f-ftop{ top:0; transform-origin:50% 100%; }
.flip .f-bot,.flip .f-fbot{ top:14px; transform-origin:50% 0; }
.flip .f-bot > span,.flip .f-fbot > span{ margin-top:-14px; }
.flip .f-ftop,.flip .f-fbot{ z-index:2; backface-visibility:hidden; }
.flip .f-fbot{ transform:rotateX(90deg); }
.flip.flip-a .f-ftop{ animation:flTopA .16s ease-in forwards; }
.flip.flip-a .f-fbot{ animation:flBotA .16s .16s ease-out forwards; }
.flip.flip-b .f-ftop{ animation:flTopB .16s ease-in forwards; }
.flip.flip-b .f-fbot{ animation:flBotB .16s .16s ease-out forwards; }
@keyframes flTopA{from{transform:rotateX(0)}to{transform:rotateX(-90deg)}}
@keyframes flBotA{from{transform:rotateX(90deg)}to{transform:rotateX(0)}}
@keyframes flTopB{from{transform:rotateX(0)}to{transform:rotateX(-90deg)}}
@keyframes flBotB{from{transform:rotateX(90deg)}to{transform:rotateX(0)}}

/* 上限の帯（ヘッダーの中だが地の色 — .ground）*/
.zband{ border-top:4px solid var(--ink); }
.zband[hidden]{ display:none; }
.zband__in{ max-width:1440px; margin:0 auto; padding:8px 56px; box-sizing:border-box; display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-height:52px; }
.zband__t{ font-weight:900; font-size:16px; margin-right:auto; }
.zband .bt{ height:36px; padding:0 14px; font-size:14px; }
.zband .bt-red{ padding:0 16px; }
.zband .axmark{ width:19.5px; height:11px; }

@media (max-width:720px){
  .hd__in{ padding:8px 16px; gap:6px; }
  .hd__burger{ display:grid; place-items:center; width:44px; height:44px; margin-left:-10px; padding:0; flex:none; border:0; background:transparent; color:#FFFFFF; }
  .hd__logo{ gap:6px; }
  .hd__logo .mlogo{ width:28px; height:29px; }
  .hd__name{ font-size:20px; letter-spacing:0; }
  .hd__right{ gap:6px; }
  .hd__search,.hd__menu{ display:none; }
  .hd__login{ height:40px; padding:0 10px; gap:6px; font-size:13px; }
  .hd__login .axmark{ width:19.5px; height:11px; }
  .dlbox{ height:40px; gap:4px; padding:0 9px 0 8px; font-size:12px; }
  .dlbox .mi-download{ width:12px; height:12px; }
  .flip{ width:calc(3px + var(--n) * 10px); height:22px; font-size:19px; }
  .flip .fh{ height:11px; }
  .flip .fh > span{ height:22px; line-height:22px; }
  .flip .f-bot,.flip .f-fbot{ top:11px; }
  .flip .f-bot > span,.flip .f-fbot > span{ margin-top:-11px; }
  .zband{ border-top-width:3px; }
  .zband__in{ display:block; padding:6px 16px 8px; min-height:0; }
  .zband__t{ font-size:13px; line-height:20px; }
  .zband__btns{ margin-top:4px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .zband .bt{ height:36px; padding:0 6px; gap:6px; font-size:12.5px; }
  .zband .axmark{ width:16px; height:9px; }
}
@media (min-width:721px){ .zband__btns{ display:contents; } }

/* ---------- メニュー（上から引き下ろす — 開く 0.42 秒・閉じる 0.22 秒）---------- */
.mnu{ position:fixed; inset:0; z-index:15; display:none; }
.mnu.open,.mnu.closing{ display:block; }
.mback{ position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background-color:var(--scrim); cursor:pointer; }
.mpanel{ position:absolute; top:0; right:0; bottom:0; width:520px; max-width:100%; box-sizing:border-box; padding:var(--mh,74px) 0 88px; background-color:var(--paper); color:var(--ink); border-left:6px solid var(--ink); overflow-y:auto; overscroll-behavior:contain; }
.mroller{ position:absolute; left:0; right:0; top:-6px; height:6px; background-color:var(--ink); pointer-events:none; z-index:3; }
.mnu.open .mback{ animation:mnuBackIn .24s ease-out both; }
.mnu.open .mpanel{ animation:mnuDrop .42s cubic-bezier(.16,1,.3,1) both; }
.mnu.open .mroller{ animation:mnuRollDown .42s cubic-bezier(.16,1,.3,1) both; }
.mnu.open .mi{ animation:mnuItem .28s cubic-bezier(.2,.7,.2,1) var(--d,0ms) both; }
.mnu.open .mrule{ transform-origin:0 50%; animation:mnuRule .36s cubic-bezier(.2,.7,.2,1) var(--d,0ms) both; }
.mnu.closing{ pointer-events:none; }
.mnu.closing .mback{ animation:mnuBackOut .2s ease-in forwards; }
.mnu.closing .mpanel{ animation:mnuLift .22s cubic-bezier(.7,0,.84,0) forwards; }
.mnu.closing .mroller{ animation:mnuRollUp .22s cubic-bezier(.7,0,.84,0) forwards; }
@keyframes mnuBackIn{from{opacity:0}to{opacity:1}}
@keyframes mnuBackOut{from{opacity:1}to{opacity:0}}
@keyframes mnuDrop{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes mnuLift{from{clip-path:inset(0 0 0 0)}to{clip-path:inset(0 0 100% 0)}}
@keyframes mnuRollDown{from{top:-6px}to{top:calc(100% - 6px)}}
@keyframes mnuRollUp{from{top:calc(100% - 6px)}to{top:-6px}}
@keyframes mnuItem{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes mnuRule{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* 開いている間は後ろを動かさない — 止めるのは html だけ（画面そのものに伝わる）。
   🔴 body にも overflow:hidden を付けると body が別の「スクロールする箱」になり、下に貼り付く再生バーと下のタブ（sticky）が外れてページの最後へ落ちる（スマホでメニューの下に見えなくなる）
   ★スクロールバーの場所は止めても空けておく（scrollbar-gutter・2 つで 1 組）— Mac で「スクロールバーを常に表示」（マウスをつないだ時も）だと
     バーが 15px の幅を取るので、overflow:hidden でバーが消えると画面が 15px 広がり、右に寄せた物（ヘッダーの「メニュー」・再生バー）が右へずれていた（2026-12-02 Koichi）。
     バーが幅を取らない端末（スマホ・Mac の既定）では何も変わらない */
html{ scrollbar-gutter:stable; }
html.menu-open{ overflow:hidden; }

.mpanel__in{ padding:24px 40px 28px; }
.maxb{ padding:18px 22px 20px; }
.maxb__t{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:26px; line-height:1; }
.maxb__t .axmark{ width:31.9px; height:18px; }
.maxb__p{ margin-top:9px; font-weight:700; font-size:13.5px; line-height:1.5; }
.maxb__a{ margin-top:12px; display:flex; align-items:center; justify-content:space-between; height:48px; padding:0 16px; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:16px; box-sizing:border-box; }
.maxb .maxb__a:hover{ color:#FFFFFF; background-color:#2B2523; }
.mmain{ display:none; margin-top:24px; }
@media (max-width:1280px){ .mmain{ display:block; } }
.mrule{ height:6px; background-color:var(--ink); }
.mrule--3{ height:3px; }
.mmain__grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; }
.mmain__grid a{ display:flex; align-items:center; min-height:52px; border-bottom:1.5px solid var(--ink); font-weight:900; font-size:19px; line-height:1.25; }
.mmain__grid a[aria-current="page"]{ color:var(--red-text); }
.mgrp{ margin-top:24px; }
.mlist{ display:flex; flex-direction:column; }
.mrow{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:58px; border-bottom:1.5px solid var(--ink); font-weight:900; font-size:24px; line-height:1.25; }
.mrow .mi-svg{ width:24px; height:24px; color:var(--red); }
.mrow--red{ color:var(--red-text); }
.msub{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; border-bottom:1.5px solid var(--ink); font-weight:700; font-size:18px; line-height:1.3; }
.msub .mi-svg{ width:20px; height:20px; }
.msns{ margin-top:22px; display:flex; align-items:center; gap:10px; }
.msns a{ width:48px; height:48px; display:flex; align-items:center; justify-content:center; border:2px solid var(--ink); box-sizing:border-box; color:var(--ink); }
.msns a:hover{ border-color:var(--red-text); color:var(--ink); }
.msns .mi-svg{ width:22px; height:22px; }
.mtheme{ display:flex; border:2px solid var(--ink); box-sizing:border-box; height:48px; margin-left:auto; }
.mtheme button{ width:66px; height:100%; padding:0; border:0; background:transparent; color:var(--ink); font-weight:700; font-size:14px; white-space:nowrap; }
.mtheme button + button{ border-left:2px solid var(--ink); }
.mtheme button[aria-checked="true"]{ background-color:var(--ink); color:var(--on-ink); font-weight:900; }
.mlegal{ margin-top:8px; display:flex; flex-wrap:wrap; column-gap:20px; font-weight:700; font-size:14px; }
.mlegal a{ display:inline-flex; align-items:center; min-height:44px; }

@media (max-width:720px){
  .mback{ display:none; }
  .mpanel{ inset:0; width:auto; border-left:0; padding:var(--mh,64px) 0 136px; }
  .mpanel__in{ padding:12px 16px 16px; }
  .maxb{ padding:14px 16px 16px; }
  .maxb__t{ font-size:22px; }
  .maxb__t .axmark{ width:26.6px; height:15px; }
  .maxb__p{ font-size:12.5px; }
  .maxb__a{ height:44px; }
  .mmain{ display:none; }
  .mgrp{ margin-top:18px; }
  .mgrp--main .mlist{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px; }
  .mrow{ min-height:54px; font-size:18px; }
  .mrow .mi-svg{ width:18px; height:18px; }
  .mrow--wide{ order:1; grid-column:1 / -1; }
  .mgrp--sub{ margin-top:16px; }
  .msub{ min-height:44px; font-size:15px; }
  .msub .mi-svg{ width:17px; height:17px; }
  .msns{ margin-top:16px; }
  .msns a{ width:44px; height:44px; }
  .mtheme{ height:44px; }
  .mtheme button{ width:64px; }
  .mlegal{ margin-top:4px; font-size:13px; }
}

/* ---------- フッター ---------- */
.ft{ max-width:1440px; margin:0 auto; padding:36px 56px 40px; box-sizing:border-box; display:flex; flex-wrap:wrap; align-items:center; gap:18px 48px; justify-content:space-between; }
.ft__copy{ display:flex; align-items:center; gap:12px; font-size:14px; font-weight:700; }
.ft__copy .mlogo{ width:30px; height:31px; flex:none; color:var(--red); }
.ft__links{ display:flex; flex-wrap:wrap; gap:8px 26px; font-size:14px; font-weight:700; }
@media (max-width:720px){
  .ft{ display:flex; flex-direction:column; align-items:stretch; gap:0; padding:28px 16px 24px; }
  .ft__links{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 16px; font-size:13px; }
  .ft__links a{ padding:7px 0; }
  .ft__copy{ order:2; margin-top:16px; gap:8px; font-size:12px; }
  .ft__copy .mlogo{ width:22px; height:23px; }
}

/* ---------- 再生バー（下に残る・ページを移っても音を止めない）---------- */
.pbar{ position:sticky; bottom:0; z-index:16; background-color:var(--paper); color:var(--ink); border-top:4px solid var(--ink); }
.pbar__in{ max-width:1440px; margin:0 auto; box-sizing:border-box; display:grid; grid-template-columns:minmax(260px,1fr) minmax(0,620px) minmax(260px,1fr); align-items:center; gap:24px; padding:12px 56px; }
.pbar__now{ display:flex; align-items:center; gap:14px; min-width:0; }
.pbar__art{ width:48px; height:48px; flex:none; background:var(--art) center / cover no-repeat; }
.pbar__oma{ display:block; width:36px; flex:none; }
.pbar__txt{ min-width:0; }
.pbar__t{ font-weight:900; font-size:17px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pbar__s{ font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pbar__ctl{ display:flex; align-items:center; gap:14px; }
.pbar__skip{ width:44px; height:44px; flex:none; padding:0; border:0; background:transparent; color:var(--ink); display:flex; align-items:center; justify-content:center; }
.pbar__skip:hover{ color:var(--red-text); }
.pbar__play{ width:56px; height:56px; flex:none; padding:0; border:0; background-color:var(--red); color:#FFFFFF; display:flex; align-items:center; justify-content:center; }
.pbar__play:hover{ background-color:var(--red-shade); }
.pbar__time{ font-weight:700; font-size:13px; }
.pbar__seek{ --p:0; position:relative; flex:1; min-width:120px; height:20px; display:flex; align-items:center; cursor:pointer; touch-action:none; }
.pbar__track{ width:100%; height:4px; background-color:var(--ink); }
.pbar__fill{ position:absolute; left:0; top:8px; width:calc(var(--p) * 100%); height:4px; background-color:var(--red); }
.pbar__knob{ position:absolute; left:calc(var(--p) * 100% - 4px); top:0; width:8px; height:20px; background-color:var(--red); }
.pbar__acts{ display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.pbar__share{ width:48px; height:48px; }
.pbar__dl{ height:48px; padding:0 20px; gap:8px; }
.pbar__dl:not([href]){ opacity:.4; pointer-events:none; }
/* 鳴らす／止める（is-playing・is-loading は app.js）*/
.i-pause{ display:none; }
.is-playing > .i-play,.is-loading > .i-play{ display:none; }
.is-playing > .i-pause{ display:block; }
.is-loading{ animation:maouPulse 1s ease-in-out infinite; }
@keyframes maouPulse{50%{opacity:.6}}

/* スマホの下のタブ（再生バーの下に続く — 再生バーは --tabs-h だけ上に残る）*/
.sptabs{ display:none; }
@media (max-width:1100px){ .pbar__in{ grid-template-columns:minmax(200px,1fr) minmax(0,520px) auto; gap:20px; padding:12px 32px; } }
@media (max-width:980px){ .pbar__share{ display:none; } }
@media (max-width:720px){
  :root{ --tabs-h:60px; }
  .pbar{ bottom:var(--tabs-h); }
  .pbar__in{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:8px 16px 0; }
  .pbar__now{ order:1; flex:1; gap:10px; }
  .pbar__art{ width:40px; height:40px; }
  .pbar__oma{ width:30px; }
  .pbar__t{ font-size:15px; }
  .pbar__s{ font-size:11.5px; }
  .pbar__ctl,.pbar__acts{ display:contents; }
  .pbar__skip,.pbar__time,.pbar__share{ display:none; }
  .pbar__play{ order:2; width:46px; height:46px; }
  .pbar__play .mi-svg{ width:18px; height:18px; }
  .pbar__dl{ order:3; width:46px; height:46px; padding:0; }
  .pbar__dl .mi-download{ width:17px; height:17px; }
  .pbar__seek{ order:4; flex:0 0 100%; height:4px; min-width:0; }
  .pbar__fill{ top:0; }
  .pbar__knob{ left:calc(var(--p) * 100% - 3px); top:-3px; width:6px; height:10px; }
  .sptabs{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); position:sticky; bottom:0; z-index:16; height:var(--tabs-h); box-sizing:border-box; padding-top:6px; background-color:var(--paper); }
  .page:not(:has(.pbar)) ~ .sptabs{ height:calc(var(--tabs-h) + 4px); border-top:4px solid var(--ink); }
  .sptabs a{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:5px 0 7px; font-size:11px; font-weight:700; line-height:1.3; color:var(--ink); }
  .sptabs a[aria-current="page"]{ background-color:var(--ink); color:var(--on-ink); font-weight:900; }
  .sptabs .mi-svg{ width:20px; height:20px; }
}

/* ---------- YouTube の小窓（PC は右下・再生バーの上、幅 364・動画 356×200／スマホは再生バーのすぐ上に幅いっぱい）----------
   🔴 YouTube は音だけ鳴らせない ＝ 動画を隠さない・200×200 より小さくしない */
.ytm{ position:fixed; right:24px; bottom:100px; z-index:14; width:364px; border:4px solid var(--ink); background-color:var(--paper); color:var(--ink); box-sizing:border-box; }
.ytm[hidden]{ display:none; }
.ytm__head{ display:flex; align-items:center; gap:4px; padding:0 0 0 12px; border-bottom:2px solid var(--ink); }
.ytm__title{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:900; font-size:14px; }
.ytm__title small{ margin-left:8px; font-weight:700; font-size:12px; color:var(--muted); }
.ytm__one{ flex:none; font-weight:900; font-size:12px; color:var(--red-text); padding:0 4px; }
.ytm__frame{ position:relative; height:200px; background-color:#000000; }
.ytm__frame iframe,.ytm__frame > div{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.ytm__foot{ display:flex; flex-direction:column; gap:2px; padding:8px 12px 10px; border-top:2px solid var(--ink); font-weight:700; font-size:12.5px; line-height:1.5; }
.ytm__foot a{ text-decoration:underline; text-underline-offset:3px; }
@media (max-width:720px){
  .ytm{ left:16px; right:16px; bottom:calc(var(--tabs-h) + 76px); width:auto; }
  .ytm__frame{ height:auto; aspect-ratio:16 / 9; }
  html:has(.ytm:not([hidden])) .main{ padding-bottom:calc((100vw - 32px) * .5625 + 56px); }
}
@media (min-width:721px){
  html:has(.ytm:not([hidden])) .main{ padding-bottom:300px; }
}

/* ---------- 一時の知らせ（トースト）・移る間の印（ページの上の線）— どちらも app.js が作る（段4）----------
   板に形が無い部品 ＝ 部品の決まり（角は 0・墨の面に太字）に合わせた形
   トースト = 文だけ（中のアイコンの <i> は Font Awesome — 出すのは STREAM だけ）。置き場所 = 再生バーの上（PC のバー 84・スマホはバー 68 ＋ 下のタブ）
   再生バーの無い画面は .toast--low（app.js が出すたびに付け外しする）*/
.toast{ position:fixed; left:50%; bottom:100px; z-index:50; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); display:flex; align-items:center; gap:14px; padding:12px 18px; background-color:var(--ink); color:var(--on-ink); box-shadow:0 0 0 2px var(--paper); font-weight:700; font-size:14px; line-height:1.5; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; opacity:0; pointer-events:none; transition:opacity .2s; }   /* 地の色の縁 = 墨の物（OMA・黒いボタン）の上でも形が溶けない */
.toast.is-show{ opacity:1; }
.toast--low{ bottom:24px; }
.toast > i{ display:none; }
.toast--act.is-show{ pointer-events:auto; }
.toast__act{ flex:none; margin:0; padding:4px 2px; border:0; background:transparent; color:inherit; font:inherit; font-weight:900; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.5px; cursor:pointer; }
.toast__act[hidden]{ display:none; }
@media (max-width:720px){
  .toast{ bottom:calc(var(--tabs-h) + 80px); }
  .toast--low{ bottom:16px; }
  body:has(.sptabs) .toast--low{ bottom:calc(var(--tabs-h) + 16px); }
}
/* 移る間の印 — すぐ届いた時は出さない（120ms 待ってから・app.js の navLoading）。上は赤いヘッダー ＝ 線は墨（赤だと溶ける）*/
.navload{ position:fixed; top:0; left:0; right:0; z-index:60; height:4px; background-color:var(--ink); transform-origin:0 50%; transform:scaleX(0); opacity:0; pointer-events:none; }
.navload.is-on{ opacity:1; animation:maouNavload 6s cubic-bezier(.1,.75,.25,1) forwards; }
@keyframes maouNavload{ from{ transform:scaleX(.04); } to{ transform:scaleX(.92); } }

/* ---------- 波形（行・効果音 — 鳴ったところまで赤。--p は app.js）----------
   棒 ＝ 1本ぶんの幅の真ん中 6 割（板の波形 ＝ 棒 6：間 4 — 棒の数と幅が変わっても同じ割合）。色は --bar
   スマホは 48 本（板）＝ 64 本の波形は 4 本目ごと・96 本は 1 本おきに隠す（.wv--n64・.wv--n96 は parts/ui.php の maou_wave）*/
.wv{ --p:0; position:relative; height:44px; cursor:pointer; }
.wv__bars{ position:absolute; inset:0; display:flex; align-items:center; }
.wv__bars i{ --bar:var(--ink); flex:1 1 0; min-width:0; height:calc(var(--h) * 100%); background:linear-gradient(to right, transparent 20%, var(--bar) 20% 80%, transparent 80%); }
.wv__on{ clip-path:inset(0 calc(100% - var(--p) * 100%) 0 0); }
.wv__on i{ --bar:var(--red); }
.wv__line{ position:absolute; left:0; right:0; top:50%; height:3px; margin-top:-1.5px; background:linear-gradient(to right, var(--red) calc(var(--p) * 100%), var(--nowave) 0); }
@media (max-width:720px){
  .wv--n64 .wv__bars i:nth-child(4n),
  .wv--n96 .wv__bars i:nth-child(2n){ display:none; }
}

/* =====================================================================
   トップ（板 B2-PC・B2-SP）
   ===================================================================== */
/* 節の頭（6 の線・見出し 64／スマホ 40）*/
.sect{ padding-top:96px; }
.sect__head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:8px 24px; border-top:6px solid var(--ink); padding-top:18px; }
.sect__head--col{ display:block; }
.sect__h{ font-weight:900; font-size:64px; line-height:1; }
.ulink{ font-weight:700; font-size:16px; text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:2px; }

/* 赤い扉 */
.door{ position:relative; overflow:hidden; }
.door__in{ max-width:1440px; margin:0 auto; padding:48px 56px 0; box-sizing:border-box; display:flex; flex-wrap:wrap; align-items:flex-end; gap:24px 40px; }
.door__txt{ flex:1 1 600px; min-width:0; max-width:690px; padding-bottom:64px; }
.door__h{ font-weight:900; font-size:clamp(56px, 6.7vw, 96px); line-height:1.08; letter-spacing:-.02em; }
.door__lead{ margin-top:28px; max-width:600px; font-size:18px; line-height:1.85; }
.door__q{ margin-top:36px; display:flex; max-width:660px; }
.door__q input{ flex:1; min-width:0; height:68px; margin:0; border:0; border-radius:0; background-color:var(--field); color:var(--ink); font-weight:500; font-size:17px; padding:0 22px; outline:none; -webkit-appearance:none; appearance:none; }
.door__q input:focus-visible{ outline:3px solid var(--ink); outline-offset:-3px; }
.door__q button{ height:68px; margin:0; border:0; border-radius:0; background-color:var(--ink); color:var(--on-ink); padding:0 30px; font-weight:900; font-size:20px; display:flex; align-items:center; gap:10px; flex:none; }
.door__q button:hover{ background-color:#2B2523; color:#FFFFFF; }
.door__rule{ margin-top:18px; display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:16px; text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:2px; }
.stats{ margin-top:56px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:6px solid var(--ink); max-width:680px; }
.stats > div{ padding:16px 16px 0; border-left:2px solid var(--ink); }
.stats > div:first-child{ padding-left:0; border-left:0; }
.stats > div:last-child{ padding-right:0; }
.stats__v{ font-weight:900; font-size:clamp(40px, 4.2vw, 60px); line-height:1; color:var(--ink); }
.stats__v small{ font-size:.43em; }
.stats__l{ margin-top:8px; font-size:13.5px; font-weight:700; line-height:1.5; }
.door__note{ margin-top:14px; font-size:13px; }
.door__oma{ flex:1 1 420px; min-width:0; max-width:620px; margin-left:auto; }

/* 人気曲の行（曲の行の大きい形）*/
.prows{ list-style:none; margin:28px 0 0; padding:0; border-top:1.5px solid var(--ink); }
.prow{ display:grid; grid-template-columns:76px 56px 64px minmax(200px,1fr) 320px 150px 52px 188px; align-items:center; column-gap:20px; padding:16px 0; border-bottom:1.5px solid var(--ink); }
.prow.is-now{ background-color:var(--row-on); }
.prow__meta{ display:contents; }
.prow__rank{ font-weight:900; font-size:64px; line-height:1; color:var(--red-text); }
.prow__play{ width:56px; height:56px; padding:0; border:0; background-color:var(--ink); color:var(--on-ink); display:flex; align-items:center; justify-content:center; }
.prow__play.is-playing{ background-color:var(--red); color:#FFFFFF; }
.prow__art{ width:64px; height:64px; background-color:var(--art); overflow:hidden; }
.prow__art img{ display:block; width:100%; height:100%; object-fit:cover; }
.prow__title{ display:block; min-width:0; }
.prow__t{ display:block; font-weight:900; font-size:26px; line-height:1.25; }
.prow__s{ display:block; font-size:14px; color:var(--muted); }
.prow .pw{ height:44px; }
.pp{ white-space:nowrap; font-size:13px; font-weight:700; }
.pp b{ font-weight:900; font-size:24px; }
.pl{ font-weight:700; font-size:15px; }
.prow__acts{ display:flex; gap:8px; justify-content:flex-end; }
.prow__dl{ padding:0 16px; gap:6px; }

/* AX One（プランの段）*/
.ax-head{ gap:16px 40px; }
.ax-head__txt{ min-width:0; }
.ax-h{ display:flex; align-items:center; gap:18px; }
.ax-h .axmark{ width:63.8px; height:36px; flex:none; }
.ax-lead{ margin-top:14px; font-weight:900; font-size:22px; line-height:1.5; }
.ax-desc{ margin-top:8px; font-weight:700; font-size:15px; line-height:1.7; color:var(--muted); }
.ax-cta{ height:64px; padding:0 30px; gap:12px; font-size:20px; }
.axt-wrap{ position:relative; margin-top:28px; overflow-x:auto; }   /* relative = 表の中の .vh（absolute）を枠の中に留める — 無いと枠を素通りして画面ごと横にずれる（幅 730 前後・段3 で発見）*/
.axt{ width:100%; min-width:880px; border-collapse:collapse; table-layout:fixed; border-bottom:3px solid var(--ink); }
.axt__c1{ width:24%; }
.axt thead th{ padding:18px 12px 14px; border-bottom:3px solid var(--ink); text-align:center; vertical-align:bottom; font-weight:900; line-height:1.2; }
.axt thead th:first-child{ text-align:left; }
.axt__now{ display:inline-flex; align-items:center; gap:5px; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:12px; line-height:1; padding:4px 7px; }
.axt__now .oma{ width:14px; color:var(--on-ink); }
.axt__name{ font-size:24px; }
.axt__now + .axt__name{ margin-top:8px; }
.axt thead .is-plus .axt__name{ font-size:28px; }
.axt__sub{ margin-top:3px; font-weight:700; font-size:13px; }
.axt tbody th{ padding:16px 16px 16px 0; border-bottom:1.5px solid var(--ink); text-align:left; vertical-align:middle; font-weight:700; font-size:16px; line-height:1.4; }
.axt td{ padding:16px 12px; border-bottom:1.5px solid var(--ink); text-align:center; vertical-align:middle; font-weight:900; font-size:17px; line-height:1.3; }
.axt .is-plus{ border-bottom-color:var(--line); }
.axt .mi-maru{ display:block; width:26px; height:26px; margin:0 auto; color:var(--red); }
.axt .is-plus .mi-maru{ color:#FFFFFF; }
.ax-no{ display:block; width:18px; height:3px; margin:0 auto; background-color:var(--ink); }
.axt .is-plus .ax-no{ background-color:#FFFFFF; }
.ax-login{ margin-top:16px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; font-weight:700; font-size:15px; }
.ax-login .bt{ font-size:14px; }
.ax-login .axmark{ width:21.3px; height:12px; }

/* ムード（タグクラウド）と今日のタグ（日めくり）*/
.mood{ margin-top:32px; display:flex; flex-wrap:wrap; gap:32px 48px; align-items:stretch; }
.mcloud{ flex:2 1 620px; min-width:0; display:flex; flex-wrap:wrap; align-items:center; align-content:center; justify-content:center; gap:6px 26px; list-style:none; margin:0; padding:12px 0; }
.mcloud li{ display:block; }
.mcloud a{ display:block; font-size:var(--fs); font-weight:900; line-height:1.08; letter-spacing:-.01em; transition:transform .15s ease-out, color .15s; }
.mcloud a:hover{ transform:translateY(-4px); }
.mcloud a.r{ color:var(--red-text); }
.mcloud a.r:hover{ color:var(--ink); }
.mcloud a.v{ writing-mode:vertical-rl; letter-spacing:.08em; }
.hmk-box{ flex:1 1 340px; min-width:0; padding:28px 28px 36px; box-sizing:border-box; }
/* 日めくりは赤の上に置いた紙 ＝ ダークでも紙のまま（canvas/README.md §2 の決まり 1）*/
.hmk{ --paper:#FBFAF8; --ink:#171312; --on-ink:#FFFFFF; --row-on:#F3EFEB; --art:#E6E1DC; --dash:#8A817C; --red-text:#D73028; position:relative; color:var(--ink); }
.hmk__p2{ position:absolute; left:8px; right:-8px; top:30px; bottom:-10px; background-color:#E9E4DF; border:2px solid var(--ink); }
.hmk__p1{ position:absolute; left:4px; right:-4px; top:26px; bottom:-5px; background-color:var(--row-on); border:2px solid var(--ink); }
.hmk__bind{ position:relative; z-index:4; height:22px; background-color:var(--ink); display:flex; align-items:center; justify-content:center; gap:120px; }
.hmk__bind span{ display:block; width:10px; height:10px; border-radius:50%; background-color:var(--red); }
.hmk__page{ background-color:var(--paper); color:var(--ink); border:2px solid var(--ink); border-top:0; padding:0 22px 22px; box-sizing:border-box; }
.hmk__next{ position:absolute; left:0; right:0; top:22px; bottom:0; z-index:1; display:flex; flex-direction:column; }
.hmk-top{ position:relative; z-index:2; transform-origin:50% 0; }
.hmk-top.torn{ animation:hmkTear .75s cubic-bezier(.45,0,.8,.2) forwards; pointer-events:none; }
.hmk-top.back{ animation:hmkBack .38s cubic-bezier(.2,.8,.3,1) both; }
@keyframes hmkTear{0%{transform:none;opacity:1}22%{transform:rotate(-2.5deg) translateY(6px);opacity:1}100%{transform:translate(-46px,135%) rotate(-16deg);opacity:0}}
@keyframes hmkBack{from{transform:translateY(-28px);opacity:0}to{transform:none;opacity:1}}
.hmk__perf{ height:10px; border-bottom:2px dashed var(--dash); margin:0 -22px; }
.hmk__ym{ margin-top:12px; display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-weight:900; font-size:15px; }
.hmk__day{ margin-top:2px; text-align:center; font-weight:900; font-size:150px; line-height:1; letter-spacing:-.04em; }
.hmk__wk{ margin-top:4px; text-align:center; font-weight:900; font-size:20px; }
.hmk .is-sun{ color:var(--red); }
.hmk__tag{ margin-top:14px; border-top:2px solid var(--ink); padding-top:12px; }
.hmk__t{ font-weight:900; font-size:34px; line-height:1.2; overflow-wrap:anywhere; }
.hmk__hash{ color:var(--red); }
.hmk__n{ margin-top:4px; font-size:14px; font-weight:700; }
.hmk__row{ margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hmk__go{ height:52px; padding:0 18px; gap:10px; font-size:16px; }
.hmk__go:hover{ color:#FFFFFF; background-color:#2B2523; opacity:1; }
.hmk-curl{ display:inline-flex; align-items:center; gap:8px; height:44px; padding:0; border:0; background:transparent; color:var(--ink); font-weight:900; font-size:14px; white-space:nowrap; }
.hmk-curl svg{ transition:transform .15s ease-out; transform-origin:100% 100%; }
.hmk-curl:hover svg{ transform:scale(1.25); }
.hmk__foot{ margin-top:auto; padding-top:16px; }
.hmk__back{ height:44px; padding:0 16px; gap:8px; font-size:14px; }

/* マス（4 列・3 列 — 間の線は地の墨）*/
.grid4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.5px; background-color:var(--ink); }
.grid4 > *{ background-color:var(--paper); padding:24px 28px 28px; min-width:0; }
.grid4 > *:nth-child(4n+1){ padding-left:0; }
.grid4 > *:nth-child(4n){ padding-right:0; }
.grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5px; background-color:var(--ink); }
.grid3 > *{ background-color:var(--paper); padding:28px 32px 32px; min-width:0; }
.grid3 > *:nth-child(3n+1){ padding-left:0; }
.grid3 > *:nth-child(3n){ padding-right:0; }

/* ○× の赤い帯 */
.rules{ margin-top:96px; }
.rules__in{ padding-top:64px; padding-bottom:68px; }
/* 区切りは白い 2 の線（板は間の地の白で描くが、端数の位置で外側に白がにじむ ＝ 線で描く）*/
.grid4.g4-rules{ gap:0; background:none; }
.grid4.g4-rules > *{ background:none; padding-top:0; padding-bottom:4px; }
.grid4.g4-rules > * + *{ border-left:2px solid #FFFFFF; }
.g4-rules .mi-maru,.g4-rules .mi-batsu{ display:block; width:88px; height:88px; }
.g4-rules .mi-batsu{ color:var(--ink); }
.g4-rules h3{ margin-top:18px; font-weight:900; font-size:30px; line-height:1.25; }
.g4-rules p{ margin-top:8px; font-size:15px; font-weight:700; }

/* 使っていいの？（○の判子 — 開いた時に 0.25〜0.7 秒ずつずらして押す・乗せるともう一度）*/
.use-h{ font-size:48px; line-height:1.2; }
.use-sub{ margin-top:12px; font-size:17px; font-weight:700; }
.grid4.use{ margin-top:32px; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.use-col{ position:relative; }
.use-col h3{ padding-right:76px; font-weight:900; font-size:32px; line-height:1.2; }
.use-col p{ margin-top:22px; font-size:15px; line-height:1.85; }
.stamp{ position:absolute; right:6px; top:14px; width:64px; height:64px; pointer-events:none; transform:rotate(var(--r)); animation:stampA .42s cubic-bezier(.2,.8,.3,1) var(--d) both; }
.use-col:hover .stamp{ animation:stampB .42s cubic-bezier(.2,.8,.3,1) 0s both; }
@keyframes stampA{0%{opacity:0;transform:scale(1.8) rotate(calc(var(--r) - 14deg))}55%{opacity:1;transform:scale(.9) rotate(var(--r))}100%{opacity:1;transform:scale(1) rotate(var(--r))}}
@keyframes stampB{0%{opacity:0;transform:scale(1.8) rotate(calc(var(--r) - 14deg))}55%{opacity:1;transform:scale(.9) rotate(var(--r))}100%{opacity:1;transform:scale(1) rotate(var(--r))}}

/* 作曲依頼 */
.req{ display:flex; flex-wrap:wrap; border:6px solid var(--ink); }
.req__main{ flex:1 1 620px; min-width:0; padding:40px 48px 44px; box-sizing:border-box; }
.req__tag{ display:inline-block; align-self:flex-start; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:16px; line-height:1.5; padding:6px 14px; }
.req__h{ margin-top:20px; font-weight:900; font-size:clamp(44px, 4.4vw, 64px); line-height:1.15; letter-spacing:-.01em; }
.req__p{ margin-top:20px; max-width:640px; font-size:18px; line-height:1.85; }
.req__act{ margin-top:32px; display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; }
.req__go{ height:64px; padding:0 30px; gap:12px; font-size:20px; }
.req__note{ font-weight:700; font-size:15px; line-height:1.6; max-width:360px; }
.req__by{ margin-top:12px; font-size:13px; font-weight:700; color:var(--muted); }
.reqnum{ flex:0 1 400px; min-width:0; display:grid; grid-template-rows:repeat(4,minmax(0,1fr)); border-left:6px solid var(--ink); }
.reqnum > div{ padding:18px 32px; display:flex; flex-direction:column; justify-content:center; border-bottom:1.5px solid var(--ink); }
.reqnum > div:last-child{ border-bottom:0; }
.reqnum__v{ font-weight:900; font-size:56px; line-height:1; color:var(--red-text); }
.reqnum__v small{ font-size:.38em; color:var(--ink); }
.reqnum__l{ margin-top:8px; font-size:14px; font-weight:700; }

/* カテゴリ */
.grid3.cats{ margin-top:32px; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.cat{ display:flex; flex-direction:column; }
.cat__n{ display:flex; align-items:baseline; gap:6px; }
.cat__num{ font-weight:900; font-size:clamp(120px, 11.5vw, 168px); line-height:.9; letter-spacing:-.04em; }
.cat__u{ font-weight:900; font-size:28px; }
.cat__name{ margin-top:14px; font-weight:900; font-size:40px; line-height:1.1; color:var(--red-text); }
.cat__d{ margin-top:14px; font-size:15px; line-height:1.85; flex:1; }
.cat__arrow{ margin-top:16px; }

/* 魔王魂とは */
.ab{ display:flex; flex-wrap:wrap; align-items:stretch; border-top:6px solid var(--ink); }
.ab__main{ flex:2 1 600px; min-width:0; padding:24px 48px 32px 0; }
.ab__h{ font-weight:900; font-size:44px; line-height:1.2; }
.ab__p{ margin-top:18px; font-size:17px; line-height:2; max-width:780px; }
.ab__links{ margin-top:22px; display:flex; flex-wrap:wrap; gap:12px 36px; }
.ab__links a{ font-weight:900; font-size:17px; text-decoration:underline; text-underline-offset:7px; text-decoration-thickness:3px; text-decoration-color:var(--red); }
.ab__links .ab__req{ color:var(--red-text); }
.ab__side{ flex:1 1 340px; min-width:0; display:flex; flex-direction:column; border-left:1.5px solid var(--ink); }
.ab__side > div{ flex:1; padding:24px 0 22px 32px; }
.ab__side > div + div{ padding-top:22px; border-top:1.5px solid var(--ink); }
.ab__side h3{ font-weight:900; font-size:22px; }
.ab__side p{ margin-top:8px; font-size:15px; line-height:1.8; }

/* 魔王様のひとこと（ライブのポスター — 点の刷り）*/
.poster{ margin-top:96px; background-image:radial-gradient(#C4291F 1.2px, transparent 1.5px); background-size:7px 7px; }
.poster__in{ padding-top:40px; padding-bottom:40px; }
.poster__frame{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:0 32px; border:6px solid var(--ink); overflow:hidden; }
.poster__txt{ flex:1 1 560px; min-width:0; padding:56px 0 56px 56px; box-sizing:border-box; }
.poster__tag{ display:inline-block; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:16px; line-height:1.5; padding:6px 14px; }
.poster__q{ margin-top:22px; font-weight:900; font-size:clamp(32px, 3.4vw, 48px); line-height:1.4; text-indent:-.5em; }
.poster__link{ margin-top:26px; display:inline-flex; align-items:center; gap:8px; }
.poster__img{ flex:0 1 540px; min-width:0; margin-left:auto; padding:24px 24px 0 0; margin-bottom:-8px; box-sizing:border-box; }
.poster__img img{ display:block; width:100%; height:auto; }
:root[data-theme="dark"] .poster__img .is-light,
:root:not([data-theme="dark"]) .poster__img .is-dark{ display:none; }

/* ---------- 幅で変わる所（canvas/README.md §4）---------- */
@media (max-width:1360px){
  .grid4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid4 > *:nth-child(n){ padding-left:28px; padding-right:28px; }
  .grid4 > *:nth-child(2n+1){ padding-left:0; }
  .grid4 > *:nth-child(2n){ padding-right:0; }
  .grid4.g4-rules > *:nth-child(n){ padding-top:28px; padding-bottom:28px; }
  .grid4.g4-rules > *:nth-child(-n+2){ padding-top:0; }
  .grid4.g4-rules > *:nth-last-child(-n+2){ padding-bottom:0; }
  .grid4.g4-rules > *:nth-child(2n+1){ border-left:0; }
  .grid4.g4-rules > *:nth-child(n+3){ border-top:2px solid #FFFFFF; }
  .prow{ grid-template-columns:76px 56px 64px minmax(160px,1fr) 150px 52px 188px; }
  .prow .pw{ display:none; }
}
@media (max-width:1100px){
  .reqnum{ flex-basis:100%; border-left:0; border-top:6px solid var(--ink); grid-template-rows:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reqnum > div{ border-bottom:0; }
  .reqnum > div:nth-child(2n){ border-left:1.5px solid var(--ink); }
  .reqnum > div:nth-child(n+3){ border-top:1.5px solid var(--ink); }
}
@media (max-width:1080px){
  .grid3{ grid-template-columns:minmax(0,1fr); }
  .grid3 > *:nth-child(n){ padding-left:0; padding-right:0; }
}
@media (max-width:980px){
  .prow{ grid-template-columns:56px 56px minmax(0,1fr) 188px; column-gap:14px; }
  .prow .pa,.prow .pp,.prow .pl{ display:none; }
}
@media (max-width:720px){
  .sect{ padding-top:48px; }
  .sect__head{ padding-top:12px; }
  .sect__h{ font-size:40px; }
  .ulink{ font-size:13px; text-underline-offset:5px; }

  .door__in{ display:block; padding:18px 16px 0; }
  .door__txt{ max-width:none; padding-bottom:0; }
  .door__h{ font-size:48px; line-height:1.1; }
  .door__lead{ margin-top:18px; font-size:15px; }
  .door__q{ margin-top:22px; }
  .door__q input{ height:54px; font-size:15px; padding:0 12px; }
  .door__q button{ height:54px; padding:0 14px; font-size:15px; }
  .door__rule{ margin-top:12px; display:inline-block; padding:6px 0; font-size:15px; text-underline-offset:5px; }
  .stats{ margin-top:26px; border-top-width:5px; }
  .stats > div{ padding:10px 6px 0 10px; }
  .stats > div:first-child{ padding:10px 6px 0 0; }
  .stats > div:last-child{ padding:10px 0 0 10px; }
  .stats__v{ font-size:30px; }
  .stats__v small{ font-size:15px; }
  .stats__l{ margin-top:6px; font-size:11.5px; }
  .door__note{ margin-top:12px; font-size:12px; }
  .door__oma{ width:330px; max-width:none; margin:14px -20px 0 auto; }

  .prows{ margin-top:16px; }
  .prow{ grid-template-columns:26px 44px minmax(0,1fr) 44px; column-gap:10px; row-gap:8px; padding:12px 0 14px; }
  .prow__rank{ grid-column:1; grid-row:1; font-size:36px; }
  .prow__play{ grid-column:2; grid-row:1; width:44px; height:44px; }
  .prow__play .mi-svg{ width:16px; height:16px; }
  .prow .pa{ display:none; }
  .prow__title{ grid-column:3; grid-row:1; }
  .prow__t{ font-size:18px; line-height:1.3; }
  .prow__s{ font-size:12px; }
  .prow__acts{ grid-column:4; grid-row:1; }
  .prow__dl{ width:44px; padding:0; }
  .prow__dl .mi-download{ width:18px; height:18px; }
  .prow__meta{ grid-column:2 / -1; grid-row:2; display:flex; align-items:center; gap:10px; }
  .prow .pw{ display:block; flex:1; min-width:0; height:30px; }
  .prow .pp,.prow .pl{ display:block; }
  .pp{ font-size:12px; }
  .pp b{ font-size:16px; }
  .pl{ font-size:12px; }

  .ax-h{ gap:12px; }
  .ax-h .axmark{ width:42.5px; height:24px; }
  .ax-lead{ margin-top:10px; font-size:17px; }
  .ax-desc{ margin-top:6px; font-size:12.5px; }
  .axt-wrap{ margin-top:14px; overflow:visible; }
  .axt{ min-width:0; }
  .axt__c1{ width:30%; }
  .axt thead th{ padding:12px 4px 10px; }
  .axt__now{ font-size:10px; }
  .axt__name{ font-size:15px; }
  .axt thead .is-plus .axt__name{ font-size:17px; }
  .axt__sub{ font-size:10px; }
  .axt tbody th{ padding:12px 6px 12px 0; font-size:12px; }
  .axt td{ padding:10px 4px; font-size:13px; }
  .axt .mi-maru{ width:20px; height:20px; }
  .ax-no{ width:14px; }
  .ax-cta-sp{ margin-top:16px; display:flex; justify-content:space-between; width:100%; height:56px; padding:0 18px; font-size:17px; }
  .ax-login{ margin-top:10px; flex-wrap:nowrap; gap:10px; font-size:12.5px; line-height:1.5; }
  .ax-login span{ flex:1; min-width:0; }
  .ax-login .bt{ flex:none; padding:0 12px; gap:6px; font-size:13px; }
  .ax-login .axmark{ width:17.7px; height:10px; }

  .mood{ display:block; margin-top:0; }
  .mcloud{ gap:2px 14px; margin-top:14px; }
  .mcloud a{ font-size:var(--fs-sp); }
  .hmk-box{ margin-top:22px; padding:22px 18px 30px; }
  .hmk__bind{ gap:90px; }
  .hmk__page{ padding:0 16px 18px; }
  .hmk__perf{ margin:0 -16px; }
  .hmk__ym{ font-size:13px; }
  .hmk__day{ font-size:118px; }
  .hmk__wk{ font-size:17px; }
  .hmk__t{ font-size:28px; }
  .hmk__n{ font-size:13px; }
  .hmk__go{ height:48px; padding:0 14px; font-size:15px; }

  .rules{ margin-top:48px; }
  .rules__in{ padding-top:36px; padding-bottom:40px; }
  .grid4.g4-rules{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid4.g4-rules > *:nth-child(1){ padding:0 12px 24px 0; }
  .grid4.g4-rules > *:nth-child(2){ padding:0 0 24px 14px; }
  .grid4.g4-rules > *:nth-child(3){ padding:22px 12px 0 0; }
  .grid4.g4-rules > *:nth-child(4){ padding:22px 0 0 14px; }
  .g4-rules .mi-maru,.g4-rules .mi-batsu{ width:56px; height:56px; }
  .g4-rules h3{ margin-top:10px; font-size:20px; }
  .g4-rules p{ margin-top:4px; font-size:13px; }

  .use-h{ font-size:28px; line-height:1.3; }
  .use-sub{ margin-top:8px; font-size:14px; }
  .grid4.use{ display:block; margin-top:16px; background:none; border-bottom:0; }
  .grid4.use > .use-col{ padding:14px 72px 16px 0; border-bottom:1.5px solid var(--ink); }
  .stamp{ right:2px; top:10px; width:60px; height:60px; }
  .use-col h3{ padding-right:0; font-size:24px; }
  .use-col p{ margin-top:6px; font-size:14px; line-height:1.8; }

  .req{ flex-direction:column; flex-wrap:nowrap; border-width:5px; }
  .req__main{ display:contents; }
  .req__tag{ order:1; margin:20px 16px 0; font-size:13px; padding:4px 10px; }
  .req__h{ order:2; margin:14px 16px 0; font-size:36px; line-height:1.2; letter-spacing:0; }
  .req__p{ order:3; margin:12px 16px 22px; font-size:15px; }
  .reqnum{ order:4; flex-basis:auto; border-top-width:5px; border-bottom:1.5px solid var(--ink); }
  .reqnum > div{ padding:14px 12px 16px; }
  .reqnum__v{ font-size:32px; }
  .reqnum__v small{ font-size:14px; }
  .reqnum__l{ margin-top:6px; font-size:11.5px; line-height:1.45; }
  .req__act{ order:5; margin:18px 16px 0; display:block; }
  .req__go{ display:flex; justify-content:space-between; height:56px; padding:0 18px; font-size:18px; }
  .req__go .mi-svg{ width:18px; height:18px; }
  .req__note{ display:block; margin-top:10px; max-width:none; font-size:13.5px; }
  .req__by{ order:6; margin:6px 16px 18px; font-size:12px; }

  .grid3.cats{ display:block; margin-top:16px; background:none; border-bottom:0; }
  .grid3.cats > .cat{ display:grid; grid-template-columns:120px minmax(0,1fr); gap:4px 14px; padding:16px 0; border-bottom:1.5px solid var(--ink); }
  .cat__n{ grid-column:1; grid-row:1 / span 2; display:block; }
  .cat__num{ font-size:64px; line-height:.95; }
  .cat__u{ font-size:16px; }
  .cat__name{ grid-column:2; grid-row:1; margin-top:0; font-size:24px; line-height:1.2; }
  .cat__d{ grid-column:2; grid-row:2; margin-top:0; font-size:13px; line-height:1.75; }
  .cat__arrow{ display:none; }

  .ab{ display:block; border-top:6px solid var(--ink); padding-top:14px; }
  .ab__main{ padding:0; }
  .ab__h{ font-size:28px; line-height:1.25; }
  .ab__p{ margin-top:12px; font-size:15px; line-height:1.95; }
  .ab__links{ margin-top:10px; flex-direction:column; gap:0; }
  .ab__links a{ font-size:15px; text-underline-offset:6px; padding:8px 0; }
  .ab__side{ margin-top:14px; border-left:0; border-top:1.5px solid var(--ink); }
  .ab__side > div,.ab__side > div + div{ padding:14px 0; border-top:0; border-bottom:1.5px solid var(--ink); }
  .ab__side h3{ font-size:18px; }
  .ab__side p{ margin-top:4px; font-size:13.5px; }

  .poster{ margin-top:48px; background-image:radial-gradient(#C4291F 1px, transparent 1.3px); background-size:6px 6px; }
  .poster__in{ padding:20px 16px; }
  .poster__frame{ display:block; position:relative; border-width:5px; }
  .poster__txt{ padding:22px 18px 0; }
  .poster__tag{ font-size:13px; padding:4px 10px; }
  .poster__q{ margin-top:12px; font-size:28px; }
  .poster__link{ margin-top:10px; display:inline-block; padding:6px 0; font-size:14px; }
  .poster__img{ width:300px; padding:0; margin:14px -8px -6px auto; }
}

/* =====================================================================
   一覧（段2 — 板 B2-BGM-PC・B2-BGM-SP／部品の表 B2-Kit-Song・B2-Kit-Ctrl）
   部品の組み立て = parts/list.php。曲の行 .brow は BGM・歌もの・効果音・タグ・検索・ランキングで使い回す
   ===================================================================== */
/* 赤い地の頭（パンくず・見出し・曲数）— 右下に薄いロゴ */
.pghd{ position:relative; overflow:hidden; }
.pghd__logo{ position:absolute; right:-40px; bottom:-210px; width:560px; height:583px; color:var(--red-shade); }
.pghd__in{ position:relative; max-width:1440px; margin:0 auto; padding:26px 56px 44px; box-sizing:border-box; }
.crumb{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-weight:700; font-size:14px; line-height:1.6; }
.crumb a{ text-decoration:underline; text-underline-offset:4px; }
.pghd__row{ margin-top:18px; display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 40px; }
.pghd__h{ min-width:0; font-weight:900; font-size:148px; line-height:.9; letter-spacing:-.03em; overflow-wrap:anywhere; }
.pghd__n{ padding-bottom:12px; }
.pghd__v{ font-weight:900; font-size:60px; line-height:1; white-space:nowrap; }
.pghd__v small{ font-size:24px; }
.pghd__s{ margin-top:8px; font-weight:700; font-size:15px; }

/* 絞り込み（ジャンル・ゲームのシーン・タグ）*/
.flt{ padding-top:36px; }
.flt__grid{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px 24px; align-items:start; }
.flt__l{ padding-top:9px; font-weight:900; font-size:15px; line-height:1.5; }
.fchips{ display:flex; flex-wrap:wrap; gap:8px; }
.fchip{ display:inline-flex; align-items:center; gap:6px; flex:none; height:40px; margin:0; padding:0 14px; border:2px solid var(--ink); border-radius:0; background:transparent; color:var(--ink); font-weight:700; font-size:14px; line-height:1; box-sizing:border-box; white-space:nowrap; cursor:pointer; text-decoration:none; }
.fchip:hover{ border-color:var(--red-text); color:var(--ink); }
.fchip[aria-current="true"]{ background-color:var(--ink); color:var(--on-ink); font-weight:900; }
.fchip[aria-current="true"]:hover{ border-color:var(--ink); color:var(--on-ink); opacity:.86; }
.fchip--add{ border-style:dashed; }
.fchip__n{ font-weight:700; font-size:12px; color:var(--muted); }
.ftag{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ftag__f{ display:flex; margin:0; }
/* 入力欄（ふつう・選んでいる時は赤い線 3px・まちがいは赤い線と下に赤い文字）*/
.field{ height:40px; width:280px; margin:0; border:2px solid var(--ink); border-radius:0; background-color:var(--field); color:var(--ink); padding:0 12px; font-weight:500; font-size:14px; box-sizing:border-box; outline:none; -webkit-appearance:none; appearance:none; }
.field:focus{ outline:3px solid var(--red-text); outline-offset:2px; }
.field[aria-invalid="true"]{ border-color:var(--red-text); }
.field::-webkit-search-cancel-button{ -webkit-appearance:none; }
.field__err{ flex-basis:100%; font-weight:700; font-size:13px; color:var(--red-text); }
/* 選んだジャンル・シーンの説明（AXC のカテゴリの説明）*/
.cnote{ margin:18px 0 0 174px; max-width:860px; border-top:3px solid var(--ink); padding-top:10px; }
.cnote__h{ font-weight:900; font-size:15px; }
.cnote__t{ margin-top:4px; font-size:15px; line-height:1.8; }

/* 曲数と並べ替え */
.cbar{ margin-top:28px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; border-top:6px solid var(--ink); padding-top:14px; }
.cbar__n{ font-weight:900; font-size:20px; line-height:1.4; }
.cbar__r{ margin-left:12px; font-weight:700; font-size:14px; color:var(--muted); }
.cbar__f{ flex-basis:100%; font-weight:700; font-size:14px; }
.cbar__f b{ font-weight:900; }
.cbar__f a{ margin-left:12px; text-decoration:underline; text-underline-offset:4px; }
/* 並べ替え・版（1 つだけ選ぶ）*/
.seg{ display:inline-flex; border:2px solid var(--ink); }
.seg > *{ display:inline-flex; align-items:center; justify-content:center; height:40px; margin:0; padding:0 16px; border:0; background:transparent; color:var(--ink); font-weight:700; font-size:14px; line-height:1; white-space:nowrap; text-decoration:none; box-sizing:border-box; }
.seg > * + *{ border-left:2px solid var(--ink); }
.seg > a:hover{ color:var(--red-text); }
.seg > [aria-current="true"]{ background-color:var(--ink); color:var(--on-ink); font-weight:900; }
.seg > a[aria-current="true"]:hover{ color:var(--on-ink); }
.seg > [aria-disabled="true"]{ color:var(--muted); opacity:.5; cursor:not-allowed; }

/* 曲の行（板 B2-Kit-Song）*/
.blist{ margin-top:12px; }
.brows{ list-style:none; margin:0; padding:0; }
.brow{ display:grid; grid-template-columns:56px 64px minmax(200px,1.2fr) minmax(150px,.8fr) minmax(160px,1fr) 64px 52px 100px 156px; align-items:center; column-gap:18px; padding:14px 0; border-bottom:1.5px solid var(--ink); }
.bhead{ padding:10px 0; border-bottom:3px solid var(--ink); font-weight:700; font-size:13px; line-height:1.5; color:var(--muted); }
.bhead .bc-dn{ text-align:right; }
.brow.is-now{ background-color:var(--row-on); }
.brow__play{ width:56px; height:56px; margin:0; padding:0; border:0; border-radius:0; background-color:var(--ink); color:var(--on-ink); display:flex; align-items:center; justify-content:center; }
.brow__play.is-playing{ background-color:var(--red); color:#FFFFFF; }
.brow__art{ width:64px; height:64px; background-color:var(--art); overflow:hidden; }
.brow__art img{ display:block; width:100%; height:100%; object-fit:cover; }
.brow__name{ min-width:0; }
.brow__num{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; font-weight:700; font-size:13px; line-height:1.5; color:var(--muted); }
.brow__t{ display:block; margin-top:3px; font-weight:900; font-size:22px; line-height:1.3; overflow-wrap:anywhere; }
.brow__num + .brow__t{ margin-top:3px; }
.brow__name > .brow__t:first-child{ margin-top:0; }
.brow__sub{ margin-top:2px; font-weight:700; font-size:14px; color:var(--muted); }
.brow .brow__wv{ height:44px; }
.brow__dn{ text-align:right; font-weight:900; font-size:18px; line-height:1.2; white-space:nowrap; }
.brow__dl-l{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.brow__len{ font-weight:700; font-size:15px; white-space:nowrap; }
.brow__acts{ display:flex; gap:8px; }
.brow__dl{ gap:6px; }
/* 印（人気＝赤・新着＝墨・AIを使った曲＝線だけ）*/
.badge{ display:inline-flex; align-items:center; height:22px; padding:0 7px; font-weight:900; font-size:11.5px; line-height:1; box-sizing:border-box; white-space:nowrap; text-decoration:none; }
.badge--pop{ background-color:var(--red); color:#FFFFFF; }
.badge--new{ background-color:var(--ink); color:var(--on-ink); }
.badge--ai,.badge--rb,.badge--dam{ border:1.5px solid var(--ink); color:var(--ink); }
a.badge--rb:hover{ border-color:var(--red-text); color:var(--ink); }
/* タグ（# つき＝タグ・赤い線＝ジャンル・墨＝分類）と ＋N のタグの箱 */
.btg{ position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.tagc{ display:inline-flex; align-items:center; gap:6px; height:26px; margin:0; padding:0 8px; border:1.5px solid var(--ink); border-radius:0; background:transparent; color:var(--ink); box-sizing:border-box; font-weight:700; font-size:12.5px; line-height:1; text-decoration:none; white-space:nowrap; }
.tagc:hover{ border-color:var(--red-text); color:var(--ink); }
.tagc--g,.tagc--g:hover{ border-color:var(--red-text); color:var(--red-text); }
.tagc--k{ background-color:var(--ink); border-color:var(--ink); color:var(--on-ink); }
span.tagc--k:hover{ border-color:var(--ink); }   /* 分類の墨のチップは押せない ＝ 変わらない */
.tagc--more{ font-family:inherit; font-weight:900; font-size:12.5px; cursor:pointer; }
.tagc--more[aria-expanded="true"],.tagc[aria-current="true"]{ background-color:var(--ink); border-color:var(--ink); color:var(--on-ink); }
.tagpop{ position:absolute; top:calc(100% + 10px); left:0; z-index:30; width:340px; max-width:calc(100vw - 40px); box-sizing:border-box; background-color:var(--paper); color:var(--ink); border:2px solid var(--ink); box-shadow:6px 6px 0 var(--ink); padding:12px 16px 16px; text-align:left; animation:tpIn .16s ease-out both; }
.tagpop[hidden]{ display:none; }
.tagpop.is-up{ top:auto; bottom:calc(100% + 10px); animation-name:tpUp; }
.tagpop__h{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tagpop__t{ min-width:0; font-weight:900; font-size:14px; line-height:1.5; }
.tagpop__t small{ margin-left:8px; font-weight:700; font-size:12.5px; color:var(--muted); }
.tclose{ width:44px; height:44px; flex:none; margin:-8px -12px -8px 0; padding:0; border:0; background:transparent; display:flex; align-items:center; justify-content:center; color:var(--ink); }
.tclose:hover{ color:var(--red-text); }
.tagpop__list{ margin-top:6px; display:flex; flex-wrap:wrap; gap:8px; }
.tagpop .tagc{ height:32px; padding:0 10px; font-size:14px; }
@keyframes tpIn{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
@keyframes tpUp{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* 見つからない時 */
.bempty{ padding:48px 0 28px; border-bottom:1.5px solid var(--ink); }
.bempty__t{ font-weight:900; font-size:24px; line-height:1.4; }
.bempty__d{ margin-top:8px; font-size:15px; }
.bempty__d a{ font-weight:700; text-decoration:underline; text-underline-offset:4px; }

/* ページ送り */
.pgs{ margin-top:32px; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; }
.pg{ display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:44px; padding:0 10px; border:2px solid var(--ink); box-sizing:border-box; font-weight:900; font-size:16px; line-height:1; text-decoration:none; color:var(--ink); }
a.pg:hover{ border-color:var(--red-text); color:var(--ink); }
.pg--cur,a.pg--cur:hover{ background-color:var(--ink); border-color:var(--ink); color:var(--on-ink); }
.pg--dis{ opacity:.3; }
.pg--dots{ border:0; min-width:20px; padding:0; }

/* 作曲依頼の帯（一覧・検索結果の下）*/
.rband{ padding-top:80px; }
.rband__in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px 40px; border:6px solid var(--ink); padding:26px 32px; }
.rband__txt{ min-width:0; flex:1 1 520px; }
.rband__tag{ display:inline-block; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:14px; line-height:1.5; padding:4px 12px; }
.rband__p{ margin-top:12px; font-weight:900; font-size:30px; line-height:1.35; word-break:auto-phrase; }   /* 文節で折る（対応しないブラウザはふつうに折る）*/
.rband__by{ margin-top:8px; font-weight:700; font-size:15px; }
.rband__go{ height:60px; padding:0 28px; gap:12px; font-size:19px; }

/* すべてのタグの窓（ダイアログ = 枠 6px＋ずれた影 10px）*/
.tdlg{ width:min(720px, calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 48px); margin:auto; padding:0; border:6px solid var(--ink); border-radius:0; background-color:var(--paper); color:var(--ink); box-shadow:10px 10px 0 var(--ink); box-sizing:border-box; overflow:hidden; }
.tdlg::backdrop{ background-color:var(--scrim); }
.tdlg__in{ position:relative; display:flex; flex-direction:column; max-height:calc(100dvh - 60px); padding:24px 28px 28px; box-sizing:border-box; }
.tdlg__x{ position:absolute; right:10px; top:10px; }
.tdlg__tag{ align-self:flex-start; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:13px; line-height:1.5; padding:4px 10px; }
.tdlg__h{ margin-top:14px; font-weight:900; font-size:28px; line-height:1.35; }
.tdlg__h small{ margin-left:10px; font-weight:700; font-size:16px; color:var(--muted); }
.tdlg__q{ margin-top:14px; width:100%; height:44px; font-size:15px; flex:none; }
.tdlg__body{ margin-top:16px; min-height:0; overflow:auto; overscroll-behavior:contain; padding:4px 4px 4px 0; }
.tdlg__list{ display:flex; flex-wrap:wrap; gap:8px; }
.tdlg .tagc{ height:36px; padding:0 12px; font-size:14px; }
.tdlg__n{ font-weight:700; font-size:12px; color:var(--muted); }
.tagc[aria-current="true"] .tdlg__n{ color:inherit; }
.tdlg__once{ margin-top:18px; border-top:1.5px solid var(--ink); padding-top:12px; }
.tdlg__once summary{ cursor:pointer; font-weight:900; font-size:15px; }
.tdlg__once summary .tdlg__n{ margin-left:8px; }
.tdlg__once .tdlg__list{ margin-top:12px; }
.tdlg__none{ padding:12px 0; font-weight:700; color:var(--muted); }
.tdlg__foot{ margin-top:18px; flex:none; }
.tdlg [hidden]{ display:none !important; }

/* 一覧の幅で変わる所（1280 以下で行の波形・980 以下でアート・タグ・DL 数・長さ・共有をしまう・720 以下はスマホの組み）*/
@media (max-width:1280px){
  .brow{ grid-template-columns:56px 64px minmax(180px,1fr) minmax(140px,.7fr) 64px 52px 100px 156px; }
  .brow .bc-wave{ display:none; }
}
@media (max-width:980px){
  .brow{ grid-template-columns:56px minmax(0,1fr) 156px; }
  .brow .bc-art,.brow .bc-tags,.brow .bc-dn,.brow .bc-len,.brow .bc-acts{ display:none; }
  .flt__grid{ grid-template-columns:120px minmax(0,1fr); }
  .cnote{ margin-left:144px; }
}
@media (max-width:720px){
  .pghd__logo{ right:-70px; bottom:-120px; width:260px; height:271px; }
  .pghd__in{ padding:16px 16px 26px; }
  .crumb{ font-size:12.5px; }
  .pghd__row{ margin-top:12px; justify-content:space-between; gap:4px 12px; }   /* 見出しと数が1行に入らない時は数を下の行へ（見出しを字の途中で折らない・歌もの）*/
  .pghd__h{ font-size:84px; }
  .pghd__n{ flex:none; margin-left:auto; text-align:right; padding-bottom:4px; }
  .pghd__v{ font-size:36px; }
  .pghd__v small{ font-size:16px; }
  .pghd__s{ margin-top:4px; font-size:12px; }

  .flt{ padding-top:20px; }
  .flt__grid{ display:block; }
  .flt__l{ margin-top:12px; padding-top:0; font-size:13px; }
  .flt__l:first-child{ margin-top:0; }
  .fchips{ margin-top:8px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; margin-right:-16px; padding-right:16px; scrollbar-width:none; }
  .fchips::-webkit-scrollbar{ display:none; }
  .ftag{ margin-top:8px; }
  .ftag__f{ flex:1 1 100%; }
  .field{ width:100%; height:44px; font-size:15px; }
  .cnote{ margin:14px 0 0; }
  .cnote__t{ font-size:14px; }

  .cbar{ display:block; margin-top:20px; padding-top:12px; }
  .cbar__n{ display:flex; align-items:baseline; justify-content:space-between; font-size:18px; }
  .cbar__r{ margin-left:0; font-size:12px; }
  .cbar__f{ margin-top:6px; font-size:12.5px; }
  .cbar .seg{ margin-top:10px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); width:100%; box-sizing:border-box; }   /* 並べ替えの数（2〜3）で等分 */
  .cbar .seg > *{ padding:0 4px; }

  .blist{ margin-top:10px; }
  .bhead{ display:none; }
  .brows{ border-top:1.5px solid var(--ink); }
  .brow{ grid-template-columns:44px minmax(0,1fr) auto auto 44px; grid-template-areas:"play name name name dl" ". wave len dn dn" ". tags tags tags tags"; column-gap:10px; padding:12px 0 14px; }
  .brow__play{ grid-area:play; width:44px; height:44px; }
  .brow__play .mi-svg{ width:16px; height:16px; }
  .brow__name{ grid-area:name; }
  .brow__num{ gap:4px 6px; font-size:11.5px; }
  .brow__t{ margin-top:0; font-size:17px; }
  .brow__sub{ font-size:12px; }
  .brow__dl{ grid-area:dl; width:44px; padding:0; }
  .brow__dl .mi-download{ width:18px; height:18px; }
  .brow .bc-wave{ grid-area:wave; display:block; height:28px; margin-top:8px; }
  .brow .bc-len{ grid-area:len; display:block; margin-top:8px; font-size:12px; }
  .brow .bc-dn{ grid-area:dn; display:block; margin-top:8px; text-align:left; font-size:15px; }
  .brow__dl-l{ position:static; width:auto; height:auto; overflow:visible; clip:auto; font-weight:700; font-size:11px; }
  .brow .bc-tags{ grid-area:tags; display:flex; margin-top:10px; }
  .btg > .tagc{ position:relative; height:24px; font-size:11.5px; }
  .btg > .tagc::after{ content:''; position:absolute; inset:-9px -4px; }
  .tagpop .tagc{ height:36px; }

  .pgs{ margin-top:24px; }

  .rband{ padding-top:40px; }
  .rband__in{ display:block; border-width:5px; padding:18px 16px; }
  .rband__tag{ font-size:12px; padding:3px 9px; }
  .rband__p{ margin-top:10px; font-size:20px; line-height:1.45; }
  .rband__by{ margin-top:6px; font-size:13px; line-height:1.7; }
  .rband__go{ margin-top:14px; display:flex; justify-content:space-between; height:52px; padding:0 16px; font-size:16px; }
  .rband__go .mi-svg{ width:17px; height:17px; }

  .tdlg{ width:calc(100vw - 24px); max-height:calc(100dvh - 32px); border-width:5px; box-shadow:6px 6px 0 var(--ink); }
  .tdlg__in{ max-height:calc(100dvh - 42px); padding:18px 16px 20px; }
  .tdlg__x{ right:4px; top:4px; }
  .tdlg__h{ margin-top:10px; font-size:22px; }
}
/* 窓が開いている間は後ろを動かさない（止めるのは html だけ — body に付けると下の再生バーとタブが外れる）*/
html:has(.tdlg[open]){ overflow:hidden; }

/* =====================================================================
   曲のページ（段2 — 板 B2-SongBGM-PC・SP／B2-SongVo-PC・SP）
   頭 = 赤い地（.pghd を使い回す）。本文 = 2 列（左 試聴・歌詞・この曲について・作曲依頼／右 ダウンロード・共有・タグ・クレジット・ストア）
   スマホ = 1 列で 試聴 → ダウンロード → 共有 → タグ → クレジット → ストア → 歌詞 → この曲について → 作曲依頼（列の箱を display:contents にして order で並べる）
   ===================================================================== */
.pvbar{ background-color:var(--ink); color:var(--on-ink); font-weight:700; font-size:14px; padding:10px 56px; }
.shd__row{ margin-top:22px; display:flex; flex-wrap:wrap; align-items:flex-start; gap:24px 40px; }
.shd__art{ width:280px; height:280px; flex:none; background-color:var(--art); border:6px solid var(--ink); box-sizing:border-box; overflow:hidden; }
.shd__art img{ display:block; width:100%; height:100%; object-fit:cover; }
.shd__txt{ min-width:0; flex:1 1 560px; }
.shd__num{ font-weight:700; font-size:16px; line-height:1.5; }
.shd__h{ margin-top:4px; font-weight:900; font-size:clamp(64px, 6.6vw, 96px); line-height:1.05; letter-spacing:-.02em; overflow-wrap:anywhere; }
.shd__stats{ margin-top:22px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:6px solid var(--ink); max-width:620px; }
.shd__stats > div{ padding:8px 10px 0 12px; border-left:2px solid var(--ink); }
.shd__stats > div:first-child{ padding-left:0; border-left:0; }
.shd__v{ font-weight:900; font-size:34px; line-height:1; color:var(--ink); white-space:nowrap; }
.shd__v small{ font-size:.45em; }
.shd__l{ margin-top:4px; font-weight:700; font-size:13px; }
.shd__btns{ margin-top:22px; display:flex; flex-wrap:wrap; gap:8px; }
/* 赤い地の上の線のボタン（白い線・押すと白地に赤）*/
.obtn{ display:inline-flex; align-items:center; gap:8px; height:44px; margin:0; padding:0 16px; border:2px solid #FFFFFF; border-radius:0; background:transparent; color:#FFFFFF; font-weight:900; font-size:14px; line-height:1; box-sizing:border-box; text-decoration:none; white-space:nowrap; cursor:pointer; }
.obtn:hover,:where(.onred) a.obtn:hover{ background-color:#FFFFFF; color:var(--red); }
.obtn--w,:where(.onred) a.obtn--w{ background-color:#FFFFFF; color:var(--red); }
.obtn.is-on .mi-bookmark{ fill:currentColor; }

/* 本文の 2 列 */
.sbody{ max-width:1440px; margin:0 auto; padding:48px 56px 0; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) clamp(320px, 31vw, 420px); gap:40px 48px; align-items:start; }
.sbody__l{ min-width:0; }
.sbody__r{ min-width:0; display:flex; flex-direction:column; gap:32px; }
.ssec + .ssec{ margin-top:48px; }
.ssec__head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:10px; border-top:6px solid var(--ink); padding-top:12px; }
.ssec--listen .ssec__head{ padding-top:14px; }
.ssec__h{ font-weight:900; font-size:32px; line-height:1.3; }
.ssec__note{ font-weight:700; font-size:13px; color:var(--muted); }
.ssec__p{ margin-top:14px; font-size:17px; line-height:1.9; color:var(--muted); }
.ssec__ch{ margin-top:14px; height:48px; padding:0 18px; gap:10px; font-size:15px; }
/* 試聴（動画・波形・快適視聴の案内）*/
.lsn{ margin-top:14px; }
.lsn__video{ position:relative; aspect-ratio:16 / 9; background-color:var(--ink); }
.lsn__video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.lsn__wave{ display:flex; align-items:center; gap:16px; border:2px solid var(--ink); padding:16px 18px; }
.lsn__video + .lsn__wave{ margin-top:12px; }
.lsn__play{ width:72px; height:72px; flex:none; margin:0; padding:0; border:0; border-radius:0; background-color:var(--red); color:#FFFFFF; display:flex; align-items:center; justify-content:center; }
.lsn__play:hover{ background-color:var(--red-shade); }
.lsn .lsn__wv{ flex:1; min-width:0; height:64px; }
.lsn__time{ flex:none; font-weight:700; font-size:15px; white-space:nowrap; }
.lsn__plus{ margin-top:12px; border:2px solid var(--ink); padding:16px 18px 18px; }
.lsn__plusrow{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.lsn__plustxt{ flex:1 1 240px; min-width:0; }
.lsn__plust{ font-weight:900; font-size:16px; }
.lsn__plusd{ margin-top:2px; font-weight:700; font-size:13.5px; line-height:1.6; color:var(--muted); }
.lsn__plusgo{ height:40px; padding:0 14px; gap:8px; font-size:14px; }
.lsn .lsn__still{ margin-top:12px; height:36px; cursor:default; }
.lsn__still .wv__bars i{ --bar:var(--nowave); }
/* 歌詞（曲名 → 作詞・作曲 → 本文は連ごと）*/
.slyr{ margin-top:14px; }
.slyr__t{ font-weight:900; font-size:20px; line-height:1.5; }
.slyr__by{ margin-top:2px; display:flex; flex-wrap:wrap; gap:4px 16px; font-weight:700; font-size:14px; color:var(--muted); }
.slyr__by b{ font-weight:900; color:var(--ink); }
.slyr__body{ margin-top:18px; font-weight:500; font-size:17px; line-height:2.1; color:var(--muted); }
.slyr__body p + p{ margin-top:1.4em; }
.slyr__body p.is-part{ margin-top:2.8em; }
/* 作曲依頼（左の列の下）*/
.rband--in{ padding-top:48px; }
/* ダウンロードの枠（枠 6px）*/
.sdl{ scroll-margin-top:96px; border:6px solid var(--ink); padding:20px 22px 22px; background-color:var(--paper); }
.sdl__head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.sdl__h{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:28px; line-height:1.2; }
.sdl__left{ font-weight:700; font-size:13px; white-space:nowrap; }
.sdl__left b{ font-weight:900; font-size:18px; }
.sdl__list{ margin-top:12px; border-top:3px solid var(--ink); }
.sdl__v{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1.5px solid var(--ink); }
.sdl__vt{ min-width:0; }
.sdl__vl{ font-weight:900; font-size:17px; line-height:1.35; }
.sdl__vs{ margin-top:2px; font-weight:700; font-size:12.5px; color:var(--muted); }
.sdl__fs{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; flex:none; max-width:62%; }
.fbtn{ display:inline-flex; align-items:center; justify-content:center; min-width:62px; height:44px; padding:0 10px; border:2px solid var(--red-text); background-color:var(--paper); color:var(--red-text); font-weight:900; font-size:15px; line-height:1; text-decoration:none; box-sizing:border-box; }
.fbtn:hover{ background-color:var(--red); border-color:var(--red); color:#FFFFFF; }
/* 形式が 4 つ（効果音の WAV・MIDI のある曲）— 板は 3 つ。ボタンを少し細くして 1 行に収める */
.sdl__fs:has(> :nth-child(4)){ max-width:none; }
.sdl__fs:has(> :nth-child(4)) .fbtn{ min-width:50px; padding:0 4px; }
.sdl__none{ padding:14px 0; font-weight:700; font-size:14px; color:var(--muted); }
.sdl__credit{ margin-top:14px; background-color:var(--surface); padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sdl__ck{ font-weight:700; font-size:12.5px; }
.sdl__cv{ font-weight:900; font-size:18px; }
.sdl__copy{ height:40px; margin:0; padding:0 14px; border:2px solid var(--ink); border-radius:0; background:transparent; color:var(--ink); font-weight:900; font-size:14px; flex:none; }
.sdl__copy:hover{ border-color:var(--red-text); }
.sdl__note{ margin-top:12px; font-weight:700; font-size:13.5px; line-height:1.7; }
.sdl__links{ margin-top:6px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; font-weight:700; font-size:14px; }
.sdl__links a{ display:inline-flex; align-items:center; min-height:40px; text-decoration:underline; text-underline-offset:4px; }
.sdl__links a.sdl__plus{ color:var(--red-text); }
/* 右の列の小さい節（線 3px）*/
.spn__h{ display:flex; align-items:center; gap:10px; border-top:3px solid var(--ink); padding-top:12px; font-weight:900; font-size:20px; line-height:1.3; }
.spn__hash{ color:var(--red-text); font-size:24px; line-height:1; }
.spn__share{ margin-top:12px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.sbtn{ display:flex; align-items:center; justify-content:center; gap:8px; height:48px; margin:0; padding:0 8px; border:2px solid var(--ink); border-radius:0; background:transparent; color:var(--ink); font-weight:900; font-size:14px; line-height:1; white-space:nowrap; text-decoration:none; box-sizing:border-box; cursor:pointer; }
.sbtn:hover{ border-color:var(--red-text); color:var(--ink); }
.spn__tags{ margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.spn__tags .tagc{ height:36px; padding:0 12px; font-size:14px; }
.scr{ margin:8px 0 0; }
.scr > div{ display:grid; grid-template-columns:96px minmax(0,1fr); gap:12px; padding:11px 0; border-bottom:1.5px solid var(--ink); }
.scr dt{ font-weight:700; font-size:14px; color:var(--muted); }
.scr dd{ margin:0; font-weight:900; font-size:16px; overflow-wrap:anywhere; }
.sst{ margin-top:4px; }
.srow{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; border-bottom:1.5px solid var(--ink); text-decoration:none; color:var(--ink); }
a.srow:hover{ color:var(--red-text); }
.srow__t{ display:block; font-weight:900; font-size:17px; line-height:1.3; }
.srow__s{ display:block; font-weight:700; font-size:12.5px; color:var(--muted); }
.srow > .mi-svg{ flex:none; color:var(--red); }   /* 板の矢印は赤 */
/* 元の曲／リビルド・この曲が好きなら（曲の行）*/
.srel{ margin-top:72px; }
/* 板の「無料ダウンロード」「この曲を共有」の印は赤（明暗とも #D73028 = --red）*/
.sdl__h .mi-svg, .spn__h .mi-svg{ color:var(--red); }
/* 板は最後の段の下に広告（72px あけて 120px）— 広告は Google の自動広告で置き場所が決まらないので、あけるだけ残す */
.spage{ padding-bottom:72px; }
.srel .blist{ margin-top:4px; }

/* 中間の幅（右の列 = 31vw で、長い版の名前「ショートカラオケ版」とボタン 3 つが 1 行に入らない）— 名前の下にボタン 3 つ（スマホと同じ並び） */
@media (max-width:1360px){
  .sdl__v{ display:block; padding:12px 0 14px; }
  .sdl__vt{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
  .sdl__vs{ margin-top:0; white-space:nowrap; }
  .sdl__fs{ margin-top:8px; max-width:none; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; }   /* 形式の数（3〜4）で等分 */
  .fbtn{ min-width:0; }
}
@media (max-width:980px){
  .sbody{ gap:32px; }
  .shd__art{ width:200px; height:200px; }
}
@media (max-width:720px){
  .pvbar{ padding:10px 16px; font-size:12.5px; }
  .shd__row{ margin-top:14px; display:block; }
  .shd__art{ width:120px; height:120px; border-width:4px; }
  .shd__txt{ margin-top:12px; }
  .shd__num{ font-size:13px; }
  /* 曲名 = 1 行に入る大きさ（30〜48px）。--n = 曲名の幅（全角 1・半角 0.5 — song.php が mb_strwidth から）
     板は「font-size: 48」と単位が抜けていて実際は 30px で出ていた — 意図の 48 を上限に、長い曲名は 1 行に収まるまで小さく */
  .shd__h{ font-size:clamp(30px, calc((100vw - 32px) / (var(--n, 6) + .5)), 48px); }
  .shd__stats{ margin-top:14px; border-top-width:5px; }
  .shd__v{ font-size:24px; }
  .shd__l{ font-size:11px; }
  .shd__btns{ margin-top:14px; }

  .sbody{ display:flex; flex-direction:column; align-items:stretch; gap:28px; padding:24px 16px 0; }   /* PC の align-items:start を戻す（縦に積むと幅が中身に縮む）*/
  .sbody__l,.sbody__r{ display:contents; }
  .ssec + .ssec{ margin-top:0; }
  .ssec--listen{ order:1; }
  .sdl{ order:2; }
  .spn--share{ order:3; }
  .spn--tags{ order:4; }
  .spn--credit{ order:5; }
  .spn--store{ order:6; }
  .ssec--lyr{ order:7; }
  .ssec--about{ order:8; }
  .rband--in{ order:9; padding-top:8px; }
  .ssec--listen .ssec__head,.ssec__head{ padding-top:12px; }
  .ssec__h{ font-size:26px; }
  .ssec__p{ font-size:15px; }
  .lsn__wave{ gap:10px; padding:12px; }
  .lsn__play{ width:56px; height:56px; }
  .lsn__play .mi-svg{ width:22px; height:22px; }
  .lsn .lsn__wv{ height:48px; }
  .lsn__time{ font-size:12px; }
  .lsn__plus{ padding:14px 14px 16px; }
  .lsn .lsn__still{ height:28px; }
  .slyr__body{ font-size:15px; line-height:2; }
  .sdl{ padding:16px 16px 18px; }
  .sdl__h{ font-size:24px; }
  .sdl__vl{ font-size:16px; }
  .sdl__vs{ font-size:12px; }
  .spn__h{ font-size:19px; }
  .srel{ margin-top:48px; }
  .spage{ padding-bottom:40px; }
}

/* ---------- 検索結果（段2 — 2026-12-02・板 B2-Search-PC・SP）----------
   頭 = 赤い地（.pghd）＋ トップの検索欄（.door__q）を使い回す。見出しは 72px（スマホ 36px）＝ .pghd__h の大きさ（段3 の 1 行に入れる大きさ）より強く
   一致 = ジャンル・分類・ムードの枠（3 列・スマホ 1 列）／分類のタブ（下に 3px の墨）／曲数と並べ替え（.cbar）／曲の行（.brow ＋ 分類の墨のチップ）／人気のタグ */
.qhd__q{ margin-top:20px; max-width:760px; }
.qhd__q input{ font-weight:900; font-size:22px; }
.qhd__q input::placeholder{ font-weight:700; font-size:17px; }
.pghd__h.qhd__h{ margin-top:26px; font-size:72px; line-height:1.1; letter-spacing:0; }
.qhd__h .ph{ max-width:100%; }
.qmatch{ margin-top:36px; }
.qmatch__h{ font-weight:900; font-size:18px; line-height:1.4; }
.qmatch__grid{ margin-top:10px; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.qm{ display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:64px; padding:0 20px; border:2px solid var(--ink); box-sizing:border-box; text-decoration:none; color:var(--ink); }
.qm:hover{ border-color:var(--red-text); color:var(--ink); }
.qm > span{ min-width:0; }
.qm__l{ display:block; font-weight:700; font-size:12px; line-height:1.5; color:var(--muted); }
.qm__n{ display:block; font-weight:900; font-size:20px; line-height:1.3; overflow-wrap:anywhere; }
.qm > .mi-svg{ flex:none; color:var(--red); }   /* 板の矢印は赤 */
.qtabs{ margin-top:40px; display:flex; border-bottom:3px solid var(--ink); }
.qtab{ display:flex; align-items:center; justify-content:center; gap:6px; height:56px; padding:0 22px; box-sizing:border-box; font-weight:700; font-size:17px; line-height:1; white-space:nowrap; text-decoration:none; color:var(--ink); }
a.qtab:hover{ color:var(--red-text); }
.qtab[aria-current="true"],a.qtab[aria-current="true"]:hover{ background-color:var(--ink); color:var(--on-ink); font-weight:900; }
.qtab[aria-disabled="true"]{ color:var(--muted); }
.qtab__n{ font-weight:700; font-size:13px; opacity:.8; }
.cbar--q{ margin-top:16px; border-top:0; padding-top:0; }
.qnone{ margin-top:36px; border-top:6px solid var(--ink); }
.bempty__btns{ margin-top:20px; display:flex; flex-wrap:wrap; gap:12px; }
.qtags{ margin-top:56px; }
.qtags__head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; border-top:3px solid var(--ink); padding-top:12px; }
.qtags__h{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:20px; line-height:1.3; }
.qtags__list{ margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.qtags__list .tagc{ height:36px; padding:0 12px; font-size:14px; }
@media (max-width:980px){
  .qmatch__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:720px){
  .qhd__q{ margin-top:12px; }
  .qhd__q input{ height:52px; font-size:18px; }
  .qhd__q input::placeholder{ font-size:15px; }
  .qhd__q button{ height:52px; }
  .qhd__q button .mi-svg{ width:20px; height:20px; }
  .pghd__h.qhd__h{ margin-top:16px; font-size:36px; }
  .qmatch{ margin-top:20px; }
  .qmatch__h{ font-size:16px; }
  .qmatch__grid{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .qm{ min-height:52px; padding:0 14px; }
  .qm__n{ font-size:17px; }
  .qtabs{ margin-top:24px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
  .qtab{ height:48px; padding:0 4px; font-size:14px; }
  .qtab__n{ font-size:11px; }
  .cbar--q{ margin-top:12px; padding-top:0; }
  .qnone{ margin-top:24px; }
  .qtags{ margin-top:40px; }
  .qtags__h{ font-size:19px; }
}

/* ---------- 歌もの・効果音の一覧（段3 — 2026-12-02・canvas/README.md §7 ＝ BGM の一覧と同じ組み）----------
   歌もの = アーティストの窓（すべてのタグの窓と同じ形で役ごとの段）／効果音 = 絵が無い ＝ アートの列を置かない・音が短い ＝ 波形を小さく */
.tdlg__grp + .tdlg__grp{ margin-top:18px; border-top:1.5px solid var(--ink); padding-top:12px; }
.tdlg__gh{ margin:0 0 10px; font-weight:900; font-size:15px; line-height:1.5; }
.blist--se .brow{ grid-template-columns:56px minmax(200px,1.3fr) minmax(150px,.9fr) 120px 64px 52px 100px 156px; }
.blist--se .bc-art{ display:none; }
.blist--se .brow .brow__wv{ height:32px; }
@media (max-width:1280px){
  .blist--se .brow{ grid-template-columns:56px minmax(180px,1fr) minmax(140px,.7fr) 104px 64px 52px 100px 156px; }
  .blist--se .brow .bc-wave{ display:block; }   /* 小さい波形は中間の幅でも置ける（BGM の行は 1280 以下でしまう）*/
}
@media (max-width:980px){
  .blist--se .brow{ grid-template-columns:56px minmax(0,1fr) 156px; }
  .blist--se .brow .bc-wave{ display:none; }
}
@media (max-width:720px){
  .blist--se .brow{ grid-template-columns:44px minmax(0,1fr) auto auto 44px; }
  .blist--se .brow .bc-wave{ display:block; width:min(100%, 160px); height:24px; }
}

/* ---------- タグ・すべてのタグ・ランキング（段3 — 2026-12-02・canvas/README.md §7 — 板は描いていない）----------
   赤い地の頭の見出し = ページの見出しの大きさ（PC 148・スマホ 84）が上限・1行に入らない時だけ入る大きさまで小さく（下限 PC 56・スマホ 32 — それより長いと折り返す）
   --n = 見出しの幅（parts/list.php の maou_list_head）。コンテナの単位を知らないブラウザは上の 148／84 のまま */
.pghd__row{ container-type:inline-size; }
.pghd__h{ font-size:clamp(56px, calc(100cqw / (var(--n, 1) + .4)), 148px); }
/* タグのページ — 頭のすぐ下が曲数と並べ替え（絞り込みが無い）*/
.cbar--tag{ margin-top:40px; }
/* タグクラウド（近いタグ・よく付いているタグ — トップのムードと同じ字の組み）*/
.tcloud{ flex:none; margin-top:28px; }
.tall{ padding-top:56px; }
.tkind{ padding-top:72px; }
.tkind__n{ margin-left:16px; font-weight:700; font-size:24px; color:var(--muted); }
.tkind__list{ margin-top:24px; display:flex; flex-wrap:wrap; gap:8px; }
.tkind__list .tagc{ height:36px; padding:0 12px; font-size:14px; }
.tkind__c{ font-weight:700; font-size:12px; color:var(--muted); }
/* ランキング — 行はトップの人気曲の行。1〜3 位の数字だけ赤・2 桁の順位が入る幅 */
.prows--rank{ margin-top:12px; }
.prows--rank .prow__rank{ color:var(--ink); }
.prows--rank .prow:nth-child(-n+3) .prow__rank{ color:var(--red-text); }
.prows--rank .prow{ grid-template-columns:96px 56px 64px minmax(200px,1fr) 320px 150px 52px 188px; }
.prows--noart .prow{ grid-template-columns:96px 56px minmax(200px,1fr) 320px 150px 52px 188px; }
.prows--noart .pa{ display:none; }
@media (max-width:1360px){
  .prows--rank .prow{ grid-template-columns:96px 56px 64px minmax(160px,1fr) 150px 52px 188px; }
  .prows--noart .prow{ grid-template-columns:96px 56px minmax(160px,1fr) 150px 52px 188px; }
}
@media (max-width:980px){
  .prows--rank .prow,.prows--noart .prow{ grid-template-columns:80px 56px minmax(0,1fr) 188px; }
}
@media (max-width:720px){
  .pghd__h{ font-size:clamp(32px, calc(100cqw / (var(--n, 1) + .4)), 84px); }
  .cbar--tag{ margin-top:24px; }
  .tcloud{ margin-top:14px; }
  .tall{ padding-top:28px; }
  .tall .sect__h{ font-size:36px; }   /* 「よく付いているタグ」を字の途中で折らない（40 だと 1 字はみ出す）*/
  .tkind{ padding-top:44px; }
  .tkind__n{ margin-left:10px; font-size:16px; }
  .tkind__list{ margin-top:14px; gap:6px; }
  .prows--rank{ margin-top:10px; }
  .prows--rank .prow,.prows--noart .prow{ grid-template-columns:40px 44px minmax(0,1fr) 44px; }
  .prows--rank .prow__rank{ font-size:30px; letter-spacing:-.03em; }
}

/* =====================================================================
   ルール・森田交一・問い合わせ・NEWS（段3 — 2026-12-02）
   正（姿）= canvas/README.md §6・§7（この 4 つの画面は板が無い）／開け閉めする質問・入力欄・ダイアログ = B2-Kit-Ctrl
   ===================================================================== */
/* 赤い地の頭の見出しの下（リード・○× の約束・線のボタン — parts/list.php の maou_list_head の $after）*/
.pghd__lead{ margin-top:24px; max-width:880px; font-size:18px; line-height:1.85; }
.pghd__lead b{ font-weight:900; }
.pghd__rules{ margin-top:56px; padding-bottom:20px; }

/* 開け閉めする質問（B2-Kit-Ctrl — 一度に 1 つ開く・− と ＋。動き = app.js の「FAQ」）*/
.fq{ margin-top:32px; max-width:900px; border-top:3px solid var(--ink); }
.fq__i{ border-bottom:1.5px solid var(--ink); }
.fq__q{ width:100%; min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0; padding:12px 0; border:0; background:transparent; color:var(--ink); text-align:left; font-weight:900; font-size:20px; line-height:1.4; }
.fq__q:hover{ color:var(--red-text); }
.fq__m{ margin-right:12px; color:var(--red-text); }
.fq__pm{ display:flex; flex:none; color:var(--ink); }
.fq__i.is-open .fq__plus,.fq__i:not(.is-open) .fq__minus{ display:none; }
.fq__a{ padding:0 0 18px 36px; font-size:17px; line-height:1.85; }
.fq__i:not(.is-open) .fq__a{ display:none; }
.fq__more{ margin-top:28px; display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; font-weight:700; font-size:15px; }

/* ぜんぶOK（3 列のマス・○ の判子 = トップの「使っていいの？」と同じ）*/
.grid3.use{ margin-top:32px; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
/* ダメなのは 3 つ（× の印 — 墨。赤い地の頭の × と同じ）*/
.grid3.rng{ margin-top:32px; padding-left:0; list-style:none; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.rng .mi-batsu{ display:block; width:56px; height:56px; color:var(--ink); }
.rng__t{ margin-top:18px; font-weight:900; font-size:28px; line-height:1.3; word-break:keep-all; }
.rng__d{ margin-top:12px; font-size:15px; line-height:1.85; }
/* 表記「音楽：魔王魂」とコピー */
.rcr__d{ margin-top:24px; font-size:17px; line-height:1.85; }
.rcr{ margin-top:16px; max-width:900px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; padding:20px 24px; background-color:var(--surface); box-sizing:border-box; }
.rcr__v{ font-weight:900; font-size:40px; line-height:1.2; }
.rcr__copy{ height:56px; padding:0 22px; font-size:17px; }
.rcr__note{ margin-top:12px; font-weight:700; font-size:14px; line-height:1.5; color:var(--muted); }

@media (max-width:720px){
  .pghd__lead{ margin-top:16px; font-size:15px; }
  .pghd__rules{ margin-top:32px; padding-bottom:8px; }
  .fq{ margin-top:20px; }
  .fq__q{ min-height:56px; font-size:17px; gap:12px; }
  .fq__m{ margin-right:10px; }
  .fq__a{ padding:0 0 16px 28px; font-size:15px; }
  .fq__more{ margin-top:20px; font-size:14px; }
  .grid3.use{ display:block; margin-top:16px; background:none; border-bottom:0; }
  .grid3.use > .use-col{ padding:14px 72px 16px 0; border-bottom:1.5px solid var(--ink); }
  .grid3.rng{ display:block; margin-top:16px; background:none; border-bottom:0; }
  .grid3.rng > li{ display:grid; grid-template-columns:40px minmax(0,1fr); gap:4px 14px; padding:16px 0; border-bottom:1.5px solid var(--ink); }
  .rng .mi-batsu{ grid-row:1 / span 2; width:40px; height:40px; }
  .rng__t{ margin-top:0; font-size:22px; }
  .rng__d{ margin-top:0; font-size:14px; line-height:1.8; }
  .rcr__d{ margin-top:16px; font-size:15px; }
  .rcr{ padding:16px; }
  .rcr__v{ font-size:28px; }
  .rcr__copy{ width:100%; height:52px; }
  .rcr__note{ font-size:13px; }
}

/* ---------- 森田交一とは ---------- */
.ja-keep{ white-space:nowrap; }   /* parts/functions.php の maou_ja_wrap — 短い「」は折らない */
/* 語の途中で折らない — Chrome は文節で折る（auto-phrase）。auto-phrase の無いブラウザ（Safari）は keep-all のまま＝折れるのは maou_ja_wrap が入れた <wbr>（読点・句点の後）だけ
   ★auto-phrase は keep-all の後に書く（知らないブラウザは後ろの宣言を捨てて keep-all が残る）。それでも入らない長い塊だけ anywhere で折る（その時は「、」が行頭に来うる — 長い塊には文に <wbr> を足す）*/
.pghd__lead{ word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }
.pghd__sub{ margin-top:20px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 20px; font-weight:700; font-size:16px; line-height:1.5; }
.pghd__ro{ font-weight:900; letter-spacing:.12em; }
.pghd__btns{ margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; }
.pghd__btns .obtn{ height:52px; padding:0 20px; font-size:16px; }
/* プロフィール（トップの .ab を広げる）— 右の列にポートレート（押すと大きく）*/
.kab .ab__p + .ab__p{ margin-top:14px; }
.kab__photo{ position:relative; display:block; width:100%; margin:0; padding:0; border:0; border-radius:0; background-color:var(--art); aspect-ratio:2/3; overflow:hidden; cursor:zoom-in; }
.kab__photo img{ display:block; width:100%; height:100%; object-fit:cover; }
.kab__zoom{ position:absolute; right:0; bottom:0; width:44px; height:44px; display:flex; align-items:center; justify-content:center; background-color:var(--ink); color:var(--on-ink); }
.kab__photo:hover .kab__zoom{ background-color:var(--red); color:#FFFFFF; }
/* 数字（作曲依頼の段の数字と同じ字の組み）*/
.grid4.kst{ margin-top:48px; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.kst__v{ font-weight:900; font-size:60px; line-height:1; color:var(--red-text); }
.kst__v small{ margin-left:2px; font-size:.4em; color:var(--ink); }
.kst__l{ margin-top:10px; font-weight:700; font-size:14px; line-height:1.5; }
.kst__as{ margin-top:10px; text-align:right; font-weight:700; font-size:13px; color:var(--muted); }
/* 手がけているもの（2 列のマス）*/
.kwork{ margin-top:32px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5px; background-color:var(--ink); border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.kwork > *{ background-color:var(--paper); padding:28px 32px 32px; min-width:0; }
.kwork > *:nth-child(2n+1){ padding-left:0; }
.kwork > *:nth-child(2n){ padding-right:0; }
.kwork__t{ font-weight:900; font-size:32px; line-height:1.2; }
.kwork__d{ margin-top:14px; font-size:17px; line-height:1.85; }
.kwork__l{ margin-top:16px; display:flex; flex-wrap:wrap; gap:8px 28px; }
.kwork__l .ulink{ display:inline-flex; align-items:center; gap:6px; }
/* あゆみ（年 ＋ 出来事・行は 1.5 で区切る）*/
.khist{ margin-top:32px; padding-left:0; list-style:none; border-top:3px solid var(--ink); }
.khist > li{ display:grid; grid-template-columns:160px minmax(0,1fr); gap:24px; padding:18px 0; border-bottom:1.5px solid var(--ink); }
.khist__y{ font-weight:900; font-size:32px; line-height:1.15; color:var(--red-text); }
.khist__t{ padding-left:0; list-style:none; font-size:17px; line-height:1.7; }
.khist__t li + li{ margin-top:6px; }
/* フリー音楽に対する考え方（本人の文そのまま）*/
.kthought{ margin-top:32px; max-width:900px; }
.kthought p{ font-size:17px; line-height:2; }
.kthought p + p{ margin-top:20px; }
.kthought strong{ font-weight:900; }
/* ポートレートの拡大（<dialog>）— 角 0・ぼかした影は使わない（README §4）*/
.klb{ width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:hidden; }
.klb[open]{ display:flex; align-items:center; justify-content:center; }
.klb::backdrop{ background-color:rgba(0,0,0,.86); }
.klb__img{ display:block; max-width:min(92vw,780px); max-height:92vh; width:auto; height:auto; }
.klb__x{ position:fixed; top:16px; right:16px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; margin:0; padding:0; border:2px solid #FFFFFF; border-radius:0; background:transparent; color:#FFFFFF; }
.klb__x:hover{ background-color:#FFFFFF; color:#111111; }
html:has(.klb[open]){ overflow:hidden; }

@media (max-width:720px){
  .pghd__sub{ margin-top:12px; gap:2px 12px; font-size:13px; }
  .pghd__btns{ margin-top:20px; gap:8px; }
  .pghd__btns .obtn{ height:44px; padding:0 14px; font-size:14px; }
  .kab__photo{ max-width:320px; }
  .grid4.kst{ margin-top:28px; }
  .grid4.kst > *:nth-child(n){ padding-top:16px; padding-bottom:16px; }
  .kst__v{ font-size:34px; }
  .kst__l{ margin-top:6px; font-size:12px; }
  .kst__as{ font-size:12px; }
  .kwork{ display:block; margin-top:16px; background:none; border-bottom:0; }
  .kwork > *:nth-child(n){ padding:16px 0; border-bottom:1.5px solid var(--ink); }
  .kwork__t{ font-size:24px; }
  .kwork__d{ margin-top:8px; font-size:15px; }
  .kwork__l{ margin-top:10px; }
  .khist{ margin-top:16px; }
  .khist > li{ grid-template-columns:60px minmax(0,1fr); gap:12px; padding:14px 0; }
  .khist__y{ font-size:20px; line-height:1.4; }
  .khist__t{ font-size:15px; }
  .kthought{ margin-top:16px; }
  .kthought p{ font-size:15px; line-height:1.95; }
  .kthought p + p{ margin-top:14px; }
  .klb__x{ top:12px; right:12px; }
}

/* ---------- お問い合わせ ----------
   入力欄 = B2-Kit-Ctrl「ふつうの入力欄」（2px の線・地は --field・選んでいる時は赤い線 3px・まちがいは赤い線とすぐ下に赤い文字）
   送った後 = .tdlg（板の「ダイアログ」— 幅 560・本文 16／1.85・ボタン 52） */
.shelp__d{ margin-top:24px; max-width:900px; font-size:17px; line-height:1.85; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }
.shelp__d b{ font-weight:900; }
.shelp{ margin:24px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5px; background-color:var(--ink); border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.shelp__i{ min-width:0; padding:22px 28px 24px; background-color:var(--paper); }
.shelp__i:nth-child(2n+1){ padding-left:0; }
.shelp__i:nth-child(2n){ padding-right:0; }
.shelp__q{ display:flex; gap:12px; font-weight:900; font-size:19px; line-height:1.5; }
.shelp__m{ flex:none; color:var(--red-text); }
.shelp__a{ margin:8px 0 0; padding-left:27px; font-size:16px; line-height:1.8; }
.shelp__more{ margin-top:24px; display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; font-weight:700; font-size:14px; color:var(--muted); }

.calrt{ margin-top:24px; max-width:900px; border:3px solid var(--red-text); padding:14px 18px; box-sizing:border-box; font-weight:900; font-size:15px; line-height:1.7; }
.cform{ margin-top:8px; max-width:900px; }
.fld{ min-width:0; margin:28px 0 0; padding:0; border:0; }
.fld--first{ margin-top:24px; }
.fld__l{ display:flex; align-items:center; gap:10px; padding:0; font-weight:900; font-size:15px; line-height:1.5; }
.fld__req{ font-size:12px; color:var(--red-text); }
.fld__opt{ font-size:12px; color:var(--muted); }
.fld__in{ display:block; width:100%; height:48px; margin-top:8px; padding:0 14px; border:2px solid var(--ink); border-radius:0; background-color:var(--field); color:var(--ink); font:inherit; font-weight:500; font-size:16px; box-sizing:border-box; outline:none; -webkit-appearance:none; appearance:none; }
.fld__ta{ height:auto; min-height:180px; padding:12px 14px; line-height:1.85; resize:vertical; }
.fld__in::placeholder{ color:var(--placeholder); opacity:1; }
.fld__in:focus-visible{ outline:3px solid var(--red-text); outline-offset:2px; }
.fld__in[aria-invalid="true"]{ border-color:var(--red-text); }
.fld__err{ margin-top:6px; font-weight:700; font-size:13px; line-height:1.6; color:var(--red-text); }
.fld__help{ margin-top:6px; font-weight:700; font-size:13px; line-height:1.6; color:var(--muted); }
.cform__row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.cform__hp{ position:absolute; left:-9999px; top:0; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

/* 種別 — 選ぶと墨の地（絞り込みのチップと同じ「墨＝選んでいる」）。丸は自前で描く（本体の radio は .vh で隠す） */
.ctop{ margin-top:10px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ctop__i{ position:relative; display:block; min-width:0; cursor:pointer; }
.ctop__b{ position:relative; display:block; height:100%; padding:14px 16px 16px 48px; border:2px solid var(--ink); background-color:var(--paper); box-sizing:border-box; }
.ctop__b::before{ content:""; position:absolute; left:16px; top:16px; width:20px; height:20px; border:2px solid currentColor; border-radius:50%; box-sizing:border-box; }
.ctop__i:hover .ctop__b{ border-color:var(--red-text); }
.ctop__i input:checked + .ctop__b{ border-color:var(--ink); background-color:var(--ink); color:var(--on-ink); }
.ctop__i input:checked + .ctop__b::before{ background:radial-gradient(circle, currentColor 0 4px, transparent 4.5px); }
.ctop__i input:focus-visible + .ctop__b{ outline:3px solid var(--red-text); outline-offset:2px; }
.ctop__t{ display:block; font-weight:900; font-size:16px; line-height:1.5; }
.ctop__d{ display:block; margin-top:2px; font-weight:500; font-size:13px; line-height:1.6; color:var(--muted); }
.ctop__i input:checked + .ctop__b .ctop__d{ color:inherit; }

.ctx{ margin-top:32px; border-top:3px solid var(--ink); padding:14px 20px 16px; background-color:var(--surface); }
.ctx__t{ font-weight:900; font-size:16px; line-height:1.5; }
.ctx__d{ margin-top:6px; font-size:15px; line-height:1.8; }

.cact{ margin-top:36px; padding-top:24px; border-top:1.5px solid var(--ink); display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; }
.cact--cf{ justify-content:space-between; border-top:0; padding-top:0; }   /* 上の表の最後の線で足りる（線を 2 本にしない）*/
.cact__note{ flex:1 1 320px; min-width:0; font-weight:700; font-size:13px; line-height:1.7; color:var(--muted); }
.cact__note a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.cact__go{ height:56px; padding:0 28px; font-size:17px; }
.cact__back{ height:56px; padding:0 22px; font-size:16px; }

/* 確認 */
.ccf{ margin:28px 0 0; border-top:3px solid var(--ink); }
.ccf__r{ display:grid; grid-template-columns:220px minmax(0,1fr); gap:4px 24px; padding:16px 0; border-bottom:1.5px solid var(--ink); }
.ccf__r dt{ font-weight:900; font-size:14px; line-height:1.85; color:var(--muted); }
.ccf__r dd{ margin:0; font-size:16px; line-height:1.85; white-space:pre-wrap; overflow-wrap:anywhere; }
.ccf__none{ color:var(--muted); }

/* 送った後 */
.cqt{ padding-top:64px; max-width:900px; }
.cqt__tag{ display:inline-block; background-color:var(--ink); color:var(--on-ink); font-weight:900; font-size:14px; line-height:1.5; padding:4px 12px; }
.cqt__q{ margin-top:16px; font-weight:900; font-size:28px; line-height:1.7; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }   /* ひらがなの台詞は空白と句点の所で折る */
.tdlg.cdlg{ width:min(560px, calc(100vw - 32px)); }
.cdlg__p{ margin-top:10px; font-size:16px; line-height:1.85; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }
.cdlg__p b{ font-weight:900; }
.cdlg__btns{ margin-top:22px; display:flex; flex-wrap:wrap; gap:10px; }
.cdlg__btns .bt{ height:52px; padding:0 18px; font-size:16px; }

@media (max-width:720px){
  .shelp__h{ font-size:36px; }   /* 「だいたいの疑問は、」を字の途中で折らない（40 だと はみ出す）*/
  .shelp__d{ margin-top:16px; font-size:15px; }
  .shelp{ display:block; margin-top:16px; background:none; border-bottom:0; }
  .shelp__i:nth-child(n){ padding:14px 0 16px; border-bottom:1.5px solid var(--ink); }
  .shelp__q{ gap:10px; font-size:16px; }
  .shelp__a{ margin-top:6px; padding-left:22px; font-size:14px; line-height:1.75; }
  .shelp__more{ margin-top:16px; font-size:13px; }
  .calrt{ margin-top:16px; padding:12px 14px; font-size:14px; }
  .fld{ margin-top:22px; }
  .fld--first{ margin-top:16px; }
  .fld__l{ font-size:14px; }
  .cform__row{ display:block; }
  .ctop{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .ctop__b{ padding:12px 14px 13px 44px; }
  .ctop__b::before{ left:14px; top:14px; }
  .ctop__t{ font-size:15px; }
  .ctop__d{ font-size:12px; }
  .ctx{ margin-top:24px; padding:12px 14px 14px; }
  .ctx__t{ font-size:15px; }
  .ctx__d{ font-size:14px; line-height:1.75; }
  .cact{ margin-top:28px; padding-top:20px; }
  .cact__go,.cact__back{ width:100%; height:52px; }
  .cact--cf{ flex-direction:column-reverse; align-items:stretch; }
  .ccf{ margin-top:16px; }
  .ccf__r{ grid-template-columns:minmax(0,1fr); padding:12px 0; }
  .ccf__r dt{ font-size:13px; }
  .ccf__r dd{ font-size:15px; }
  .cqt{ padding-top:40px; }
  .cqt__q{ margin-top:12px; font-size:20px; }
  .cdlg__btns .bt{ flex:1 1 auto; }
}
#ct-form{ scroll-margin-top:96px; }   /* 上に残るヘッダー（72）の下に見出しを出す */
@media (max-width:720px){ #ct-form{ scroll-margin-top:76px; } }

/* ---------- 新着情報（一覧・記事）----------
   一覧 = 日付（数字をそろえる）＋見出しの行・1.5px で区切る（README §7）。記事の「ほかの新着情報」も同じ行（parts/blocks.php の maou_news_rows）
   記事 = 本文 18（スマホ 17）・行間 1.85・幅 720 まで。頭は赤い地（.pghd）に日付と分類・見出し 48（スマホ 26） */
.nwrap{ margin-top:16px; }
.nlist{ margin:0; padding-left:0; list-style:none; border-top:3px solid var(--ink); }
.nlist > li{ border-bottom:1.5px solid var(--ink); }
.nrow{ display:grid; grid-template-columns:128px minmax(0,1fr); gap:24px; align-items:baseline; padding:18px 0; color:var(--ink); text-decoration:none; }
.nrow__d{ font-weight:700; font-size:15px; font-variant-numeric:tabular-nums; letter-spacing:.02em; color:var(--muted); white-space:nowrap; }
.nrow__t{ font-weight:900; font-size:18px; line-height:1.6; }
.nrow:hover{ color:var(--ink); }
.nrow:hover .nrow__t{ color:var(--red-text); }
.nrow__x{ display:inline-block; margin-left:6px; vertical-align:-2px; }

.arth__meta{ margin-top:20px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; font-weight:900; font-size:16px; line-height:1.4; }
.arth__d{ font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.arth__c{ display:inline-flex; align-items:center; height:26px; padding:0 10px; border:2px solid #FFFFFF; box-sizing:border-box; font-size:13px; }
.arth__h{ margin-top:14px; max-width:1100px; font-weight:900; font-size:48px; line-height:1.35; word-break:auto-phrase; overflow-wrap:anywhere; }
.art{ margin-top:48px; max-width:720px; }
.art__thumb{ margin:0 0 32px; }
.art__thumb img{ display:block; width:100%; height:auto; }
.artb{ font-size:18px; line-height:1.85; overflow-wrap:anywhere; }
.artb > * + *{ margin-top:1.1em; }
.artb h2,.artb h3,.artb h4{ margin-top:1.8em; font-weight:900; line-height:1.45; }
.artb h2{ padding-top:12px; border-top:3px solid var(--ink); font-size:28px; }
.artb h3{ font-size:22px; }
.artb h4{ font-size:19px; }
.artb a{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.5px; }
.artb a:hover{ color:var(--red-text); }
.artb ul,.artb ol{ padding-left:1.4em; }
.artb ul{ list-style:disc; }
.artb ol{ list-style:decimal; }
.artb li + li{ margin-top:.3em; }
.artb figure{ margin-left:0; margin-right:0; }
.artb img{ display:block; max-width:100%; height:auto; margin:0 auto; }
.artb figcaption{ margin-top:8px; font-size:14px; line-height:1.6; color:var(--muted); text-align:center; }
.artb .embed{ position:relative; aspect-ratio:16 / 9; background-color:#000000; }
.artb .embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

@media (max-width:720px){
  .nwrap{ margin-top:12px; }
  .nrow{ grid-template-columns:minmax(0,1fr); gap:2px; padding:14px 0; }
  .nrow__d{ font-size:13px; }
  .nrow__t{ font-size:16px; }
  .arth__meta{ margin-top:12px; gap:6px 10px; font-size:14px; }
  .arth__c{ height:24px; font-size:12px; }
  .arth__h{ margin-top:10px; font-size:26px; }
  .art{ margin-top:28px; }
  .art__thumb{ margin-bottom:24px; }
  .artb{ font-size:17px; }
  .artb h2{ font-size:22px; }
  .artb h3{ font-size:19px; }
  .artb h4{ font-size:17px; }
}

/* ---------- 魔王魂REBUILD（段3）— 一覧の組みは効果音・BGM と同じ。曲名の下の「元の曲」だけ押せる（元の曲のページで聴き比べ）---------- */
.brow__orig{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.brow__orig:hover{ color:var(--red-text); }

/* ---------- AX One のプラン（/axone/・段3）— トップの AX One の表（.axt）を大きく。Plus の列は赤い面。下に主のボタン ---------- */
.axp__tbl{ margin-top:48px; }
.axp__fail{ margin-top:48px; }
.axt--big{ min-width:960px; }
.axt--big .axt__c1{ width:26%; }
.axt--big thead th{ padding:24px 14px 20px; }
.axt--big .axt__name{ font-size:30px; }
.axt--big thead .is-plus .axt__name{ font-size:36px; }
.axt__rec{ display:inline-flex; align-items:center; border:2px solid currentColor; font-weight:900; font-size:12px; line-height:1; padding:3px 6px; }
.axt__rec + .axt__name{ margin-top:8px; }
.axt__price{ margin-top:8px; font-weight:900; font-size:17px; line-height:1.3; }
.axt--big .axt__sub{ margin-top:4px; font-size:13px; }
.axt--big tbody th{ padding:20px 16px 20px 0; font-size:18px; }
.axt__note{ display:block; margin-top:4px; font-weight:700; font-size:13px; line-height:1.5; color:var(--muted); }
.axt--big td{ padding:20px 14px; font-size:19px; }
.axt--big .mi-maru{ width:30px; height:30px; }
.axp__cta{ margin-top:36px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 32px; border:6px solid var(--ink); padding:24px 28px; }
.axp__trial{ font-weight:900; font-size:28px; line-height:1.3; }
.axp__note{ margin-top:4px; font-weight:700; font-size:14px; color:var(--muted); }
.axp__trial + .axp__note{ margin-top:6px; }
.axp__btns{ display:flex; flex-wrap:wrap; gap:12px; }
.axp__go{ height:60px; padding:0 28px; gap:12px; font-size:19px; }
.axp__login{ height:60px; padding:0 22px; gap:10px; font-size:17px; }
.axp__login .axmark{ width:21.3px; height:12px; }
.axp__more{ display:inline-flex; align-items:center; gap:6px; margin-top:20px; }

@media (max-width:720px){
  .axp__tbl,.axp__fail{ margin-top:24px; }
  .axt--big{ min-width:0; }
  .axt--big .axt__c1{ width:30%; }
  .axt--big thead th{ padding:12px 4px 10px; }
  .axt--big .axt__name{ font-size:15px; }
  .axt--big thead .is-plus .axt__name{ font-size:17px; }
  .axt__rec{ font-size:10px; padding:2px 4px; }
  .axt__price{ margin-top:4px; font-size:11px; }
  .axt--big .axt__sub{ font-size:10px; }
  .axt--big tbody th{ padding:12px 6px 12px 0; font-size:12.5px; }
  .axt__note{ font-size:10.5px; }
  .axt--big td{ padding:10px 4px; font-size:13px; }
  .axt--big .mi-maru{ width:20px; height:20px; }
  .axp__cta{ margin-top:24px; padding:16px; border-width:5px; }
  .axp__trial{ font-size:20px; }
  .axp__note{ font-size:12px; }
  .axp__btns{ width:100%; }
  .axp__go,.axp__login{ flex:1 1 auto; height:52px; font-size:16px; }
}

/* ---------- 一括ダウンロード（/all/・段3）— ジャンルのチップ → 曲数と大きさ → 形式 → 主のボタン。枠は「大事な枠」6px ---------- */
.bnote{ margin-top:48px; max-width:1100px; display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; border:3px solid var(--red-text); padding:16px 20px; box-sizing:border-box; }
.bnote__d{ flex:1 1 420px; min-width:0; font-weight:700; font-size:15px; line-height:1.75; }
.bnote__go{ height:48px; padding:0 20px; gap:8px; }
.bnote__go .axmark{ width:21.3px; height:12px; }
.bnote--ok{ border-color:var(--ink); gap:10px; font-weight:900; font-size:15px; }
.bnote--ok .mi-maru{ width:22px; height:22px; flex:none; color:var(--red); }
.bulk{ margin-top:48px; max-width:1100px; border:6px solid var(--ink); padding:8px 32px 28px; box-sizing:border-box; }
.bnote + .bulk{ margin-top:24px; }
.bulk__r{ display:grid; grid-template-columns:160px minmax(0,1fr); gap:8px 24px; align-items:baseline; padding:20px 0; border-bottom:1.5px solid var(--ink); }
.bulk__l{ font-weight:900; font-size:16px; line-height:1.5; }
.bulk__g + .bulk__g{ margin-top:14px; }
.bulk__gl{ display:block; margin-bottom:8px; font-weight:700; font-size:13px; color:var(--muted); }
.bulk__sum{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 18px; font-weight:900; font-size:22px; line-height:1.4; }
.bulk__sum span{ font-variant-numeric:tabular-nums; }
.bulk__fmt{ font-weight:900; font-size:18px; }
.bulk__act{ margin-top:24px; display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; }
.bulk__go{ height:64px; padding:0 30px; gap:12px; font-size:20px; }

@media (max-width:720px){
  .bnote{ margin-top:24px; padding:12px 14px; }
  .bnote__d{ flex-basis:100%; font-size:14px; }
  .bnote__go{ width:100%; }
  .bulk{ margin-top:24px; border-width:5px; padding:4px 16px 18px; }
  .bnote + .bulk{ margin-top:16px; }
  .bulk__r{ grid-template-columns:minmax(0,1fr); gap:8px; padding:14px 0; }
  .bulk__l{ font-size:14px; }
  .bulk .fchips{ margin-top:0; flex-wrap:wrap; overflow:visible; margin-right:0; padding:0; }   /* 枠の中では横に流さず折り返す（選ぶ物が見切れない）*/
  .bulk .fchip{ height:36px; padding:0 12px; font-size:13px; }
  .bulk__sum{ font-size:18px; gap:2px 14px; }
  .bulk__fmt{ font-size:16px; }
  .bulk__act{ margin-top:18px; }
  .bulk__go{ width:100%; height:56px; font-size:17px; }
}

/* ---------- マイメニュー（/my/・/my/heard/・段3）----------
   頭 = 赤い地に名前（一覧の見出しと同じ大きさの決め方）・今日の残り（めくれる数字 — 上バーの .flip を大きく）・アバターと @・今のプランの印
   節 = AX One（プランと変更）→ AXiVRS（マークつきの墨のボタン）→ 試聴した曲 → 魔王魂STREAM（赤い帯の入口）→ お気に入り（栞で外せる）*/
.myhd__dl{ text-align:right; }
.myhd__dll{ font-weight:700; font-size:15px; }
.myhd__left{ display:flex; align-items:baseline; justify-content:flex-end; gap:6px; }
.flip--big{ width:calc(8px + var(--n) * 34px); height:64px; perspective:240px; font-size:60px; align-self:center; }
.flip--big .fh{ height:32px; }
.flip--big .fh > span{ height:64px; line-height:64px; }
.flip--big .f-bot,.flip--big .f-fbot{ top:32px; }
.flip--big .f-bot > span,.flip--big .f-fbot > span{ margin-top:-32px; }
.myhd__meta{ margin-top:20px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-weight:900; font-size:16px; }
.myhd__av{ width:48px; height:48px; flex:none; display:flex; align-items:center; justify-content:center; overflow:hidden; border:2px solid #FFFFFF; box-sizing:border-box; background-color:var(--red-shade); font-size:20px; }
.myhd__av img{ display:block; width:100%; height:100%; object-fit:cover; }
.myhd__plan{ display:inline-flex; align-items:center; height:28px; padding:0 10px; background-color:#FFFFFF; color:var(--red); font-size:13px; letter-spacing:.04em; }
.myhd__btns{ margin-top:24px; display:flex; flex-wrap:wrap; gap:10px; }
.myhd__btns .obtn{ gap:8px; }
.myhd__out{ margin:0; }
.my__fail{ margin-top:48px; }
.my__all{ margin-top:48px; }

.myax__tier{ display:inline-flex; align-items:center; height:32px; margin-left:4px; padding:0 12px; background-color:var(--ink); color:var(--on-ink); font-size:16px; letter-spacing:.06em; align-self:center; }
.myax{ margin-top:24px; display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px 40px; }
.myax__today{ flex:1 1 420px; min-width:0; max-width:620px; }
.myax__row{ display:flex; align-items:baseline; gap:12px; }
.myax__l{ font-weight:900; font-size:17px; }
.myax__v{ font-weight:900; font-size:40px; line-height:1; font-variant-numeric:tabular-nums; }
.myax__of{ font-size:20px; color:var(--muted); }
.myax__u{ font-weight:700; font-size:15px; }
.myax__bar{ margin-top:12px; height:10px; border:2px solid var(--ink); box-sizing:border-box; }
.myax__fill{ height:100%; background-color:var(--red); }
.myax__note{ margin-top:10px; font-weight:700; font-size:13px; line-height:1.6; color:var(--muted); }
.myax__btns{ display:flex; flex-wrap:wrap; gap:10px; }
.myax__btns .bt{ height:52px; padding:0 20px; gap:8px; font-size:16px; }

.myaxv__lead{ margin-top:16px; font-weight:700; font-size:16px; }
.myapps{ margin:16px 0 0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5px; background-color:var(--ink); border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.myapps > li{ min-width:0; background-color:var(--paper); }
.myapp{ display:flex; align-items:center; gap:14px; padding:16px 20px 16px 0; color:var(--ink); text-decoration:none; }
.myapps > li:nth-child(3n+2) .myapp,.myapps > li:nth-child(3n) .myapp{ padding-left:20px; }
.myapp:hover{ color:var(--ink); }
.myapp:hover .myapp__name{ color:var(--red-text); }
.myapp__icon{ position:relative; width:48px; height:48px; flex:none; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:12px; background-color:var(--app, var(--ink)); color:#FFFFFF; font-weight:900; font-size:20px; }
.myapp__icon img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.myapp__txt{ min-width:0; display:flex; flex-direction:column; }
.myapp__name{ font-weight:900; font-size:17px; line-height:1.4; }
.myapp__sub{ margin-top:2px; font-weight:700; font-size:13px; line-height:1.5; color:var(--muted); }
.myid{ margin-top:16px; display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; align-items:center; gap:6px 16px; padding:16px 20px; background-color:var(--surface); color:var(--ink); text-decoration:none; }
.myid__l{ font-weight:900; font-size:16px; }
.myid__v{ font-weight:700; font-size:15px; color:var(--muted); }
.myid__go{ grid-column:4; display:inline-flex; align-items:center; gap:6px; font-weight:900; font-size:15px; }
.myid__d{ grid-column:1 / -1; font-weight:700; font-size:13px; color:var(--muted); }
.myid:hover .myid__go{ color:var(--red-text); }
.myaxv__go{ margin-top:20px; height:52px; padding:0 20px; gap:10px; font-size:16px; }
.myaxv__go .axmark{ width:21.3px; height:12px; }

.mystr{ padding:28px 32px 32px; }
.mystr__h{ font-weight:900; font-size:48px; line-height:1.1; }
.mystr__rows{ margin-top:20px; border-top:3px solid #FFFFFF; }
.mystr__row{ display:flex; align-items:center; gap:16px; min-height:64px; border-bottom:1.5px solid #FFFFFF; color:#FFFFFF; text-decoration:none; }
.mystr__row:hover{ color:#FFFFFF; background-color:var(--red-shade); }
.mystr__t{ flex:1; min-width:0; font-weight:900; font-size:20px; }
.mystr__n{ display:inline-flex; align-items:center; gap:4px; font-weight:900; font-size:16px; }
.mystr__gate{ margin-top:20px; }
.mystr__gt{ font-weight:900; font-size:20px; line-height:1.5; }
.mystr__gd{ margin-top:6px; font-size:15px; line-height:1.8; }
.mystr__gd b{ font-weight:900; }
.mystr__btn{ margin-top:14px; gap:8px; }
.myfav__n{ margin-left:16px; font-size:24px; font-weight:900; }

/* お気に入りの行 — ダウンロードの前に栞の列が1つ増える（列の幅は一覧の .brow と同じ決め＋44px）*/
.brow__fav.is-on .mi-bookmark{ fill:currentColor; }
.blist--fav .brow{ grid-template-columns:56px 64px minmax(200px,1.2fr) minmax(150px,.8fr) minmax(160px,1fr) 64px 52px 100px 44px 156px; }
@media (max-width:1280px){ .blist--fav .brow{ grid-template-columns:56px 64px minmax(180px,1fr) minmax(140px,.7fr) 64px 52px 100px 44px 156px; } }
@media (max-width:980px){ .blist--fav .brow{ grid-template-columns:56px minmax(0,1fr) 44px 156px; } }

@media (max-width:720px){
  .myhd__dll{ font-size:12px; }
  .flip--big{ width:calc(4px + var(--n) * 20px); height:40px; font-size:36px; }
  .flip--big .fh{ height:20px; }
  .flip--big .fh > span{ height:40px; line-height:40px; }
  .flip--big .f-bot,.flip--big .f-fbot{ top:20px; }
  .flip--big .f-bot > span,.flip--big .f-fbot > span{ margin-top:-20px; }
  .myhd__meta{ margin-top:12px; gap:6px 12px; font-size:14px; }
  .myhd__av{ width:40px; height:40px; font-size:17px; }
  .myhd__plan{ height:24px; font-size:12px; }
  .myhd__btns{ margin-top:16px; gap:8px; }
  .myhd__btns .obtn{ height:40px; padding:0 12px; font-size:13px; }
  .my__fail,.my__all{ margin-top:24px; }
  .myax__tier{ height:24px; padding:0 8px; font-size:12px; }
  .myax{ margin-top:16px; gap:16px; }
  .myax__today{ flex-basis:100%; }
  .myax__l{ font-size:14px; }
  .myax__v{ font-size:30px; }
  .myax__of{ font-size:16px; }
  .myax__note{ font-size:12px; }
  .myax__btns{ width:100%; }
  .myax__btns .bt{ flex:1 1 auto; height:48px; font-size:14px; }
  .myaxv__lead{ margin-top:12px; font-size:14px; }
  .myapps{ grid-template-columns:minmax(0,1fr); background:none; border-bottom:0; }
  .myapps > li{ border-bottom:1.5px solid var(--ink); }
  .myapp,.myapps > li:nth-child(3n+2) .myapp,.myapps > li:nth-child(3n) .myapp{ padding:12px 0; }
  .myapp__icon{ width:40px; height:40px; border-radius:10px; font-size:17px; }
  .myapp__name{ font-size:15px; }
  .myapp__sub{ font-size:12px; }
  .myid{ padding:12px 14px; gap:4px 12px; }
  .myaxv__go{ width:100%; height:48px; }
  .mystr{ padding:18px 16px 20px; }
  .mystr__h{ font-size:30px; }
  .mystr__rows{ margin-top:12px; }
  .mystr__row{ min-height:52px; gap:10px; }
  .mystr__t{ font-size:16px; }
  .mystr__n{ font-size:14px; }
  .mystr__gt{ font-size:16px; }
  .mystr__gd{ font-size:13px; }
  .myfav__n{ margin-left:10px; font-size:18px; }
  .blist--fav .brow{ grid-template-columns:44px minmax(0,1fr) auto auto 44px 44px; grid-template-areas:"play name name name fav dl" ". wave len dn dn dn" ". tags tags tags tags tags"; }
  .blist--fav .brow__fav{ grid-area:fav; }
}

/* ---------- 小さい窓の続き（上限・ログインが要る時 — 段3）----------
   窓（<dialog class="tdlg cdlg">）の中身は parts/ui.php の maou_notice_html・maou_login_html。題・本文・ボタンはお問い合わせの「送った後」と同じ .cdlg
   ・補足 = 小さい字（前の文の事実 — 同じ曲は何度でも・0時に数え直す）・ログインの下の2つの文字のリンク・やり直しの一言
   ・.tdlg--static = 同じ箱をページの上に置く形（JS が無い時の /dl/・/auth/login/）— 窓の決まり（幕・× ・高さの上限）を外すだけ */
.cdlg .tdlg__h{ word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; text-wrap:balance; }   /* 題は句読点で折る（「上限に達しま／した」にしない）・行の長さを揃える ＝「、」で折れる（「上限に／達しました。」の泣き別れにしない）*/
.cdlg__note{ margin-top:12px; font-weight:700; font-size:13px; line-height:1.7; color:var(--muted); word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }
.cdlg__links{ margin-top:18px; display:flex; flex-wrap:wrap; gap:8px 28px; }
.cdlg__links .ulink{ font-size:15px; }
.cdlg__err{ margin-top:14px; padding:10px 14px; border:2px solid var(--red); color:var(--red-text); font-weight:700; font-size:14px; line-height:1.7; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }   /* 「お試／しください」にしない */
.cdlg__btns .bt-ink .axmark{ width:23px; height:13px; flex:none; }
.tdlg--static{ position:relative; display:block; width:min(560px, 100%); max-height:none; margin:0; overflow:visible; }
.tdlg--static .tdlg__in{ max-height:none; }
/* 赤い面の上に置いた箱は紙のまま（canvas/README.md §2 の決まり 1 — 日めくりと同じ）*/
.onred .tdlg--static{ --paper:#FBFAF8; --ink:#171312; --on-ink:#FFFFFF; --muted:#5B5450; --red-text:#D73028; --field:#FFFFFF; color:var(--ink); }
.onred .tdlg--static a:not(.bt){ color:var(--ink); }
.onred .tdlg--static a:not(.bt):hover{ color:var(--red-text); }
.onred .tdlg--static :focus-visible{ outline-color:var(--ink); }

/* ---------- 入れない時・見つからない時（404・会員の画面に入れない・ログインが要る — 段3）----------
   正 = canvas/README.md §7「赤い面いっぱい＋大きい見出し＋OMA（押すと跳ねる。勝手には動かさない）＋検索欄＋ホームへ。ログインが要る時はダイアログ」（板は描いていない）
   ・トップの扉（.door）を使い回す — 見出し（.door__h）・検索欄（.door__q 68px）・OMA（.omab — 押した時だけ app.js の data-oma-tap が跳ねさせる）
   ・高さ = ヘッダーと再生バーの間いっぱい（中身が多い時は伸びる）
   ・ログインが要る時（/auth/login/）= 見出しの代わりにログインの箱（.tdlg--static）を赤い面に置く */
.door--gate{ display:flex; align-items:stretch; min-height:calc(100svh - 74px - 88px); }
.door--gate .door__in{ flex:1; width:100%; padding-top:56px; }
.door--gate .door__txt{ align-self:center; padding-bottom:64px; }
.door--gate .door__oma{ align-self:flex-end; max-width:540px; }
.door--gate .door__lead{ word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }   /* 「フ／ァイル」のように語の中で折らない */
.gate__code{ font-weight:900; font-size:15px; line-height:1.5; letter-spacing:.3em; }
.gate__code + .door__h{ margin-top:12px; }
.gate__h--s{ font-size:clamp(34px, 3.3vw, 50px); line-height:1.32; letter-spacing:0; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }
.gate__btns{ margin-top:24px; display:flex; flex-wrap:wrap; gap:10px; }
.gate__btns .bt,.gate__btns .obtn{ height:52px; padding:0 20px; font-size:16px; }
.gate__btns form{ margin:0; display:flex; }
.gate__box{ align-self:center; flex:1 1 520px; min-width:0; max-width:560px; padding-bottom:64px; }
@media (max-width:720px){
  .door--gate{ min-height:calc(100svh - 64px - var(--tabs-h, 64px) - 72px); }
  .door--gate .door__in{ padding-top:28px; }
  .door--gate .door__txt{ padding-bottom:0; }
  .gate__code{ font-size:12px; letter-spacing:.24em; }
  .gate__h--s{ font-size:28px; line-height:1.36; }
  .gate__btns{ margin-top:18px; gap:6px; }
  .gate__btns .bt,.gate__btns .obtn{ height:48px; padding:0 12px; font-size:14px; }   /* 404 の4つ（ホームへ・歌もの・BGM・効果音）が 1 行に入る */
  .door--gate .door__oma{ width:220px; margin:10px -8px 0 auto; }
  .gate__box{ padding-bottom:0; }
  .cdlg__links{ gap:6px 20px; }
  .cdlg__links .ulink{ font-size:14px; }
  .cdlg__note{ font-size:12px; }
}

/* ---------- プライバシーポリシー（/privacy/・段3）— 骨組み（README §7）のとおり：赤い地の頭 → 節（6px の線＋見出し）----------
   ざっくり = 3 列を 1.5px の線で区切る（.grid3）。くわしく = 条文（読む幅 720 まで — 新着情報の記事と同じ）。
   条の頭 = 3px の線＋番号の墨の札（記事の h2 の線と、窓の札 .tdlg__tag の形）・利用目的 = 面（--surface）・事業者情報と窓口 = 行（.ccf） */
.pp3{ margin-top:32px; border-top:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); }
.pp3__t{ font-weight:900; font-size:22px; line-height:1.45; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; text-wrap:balance; }
.pp3__d{ margin-top:12px; font-size:15px; line-height:1.85; }
.ppd{ margin-top:32px; max-width:720px; }
.ppd__intro{ font-size:16px; line-height:1.85; }
.ppd__i{ margin-top:48px; }
.ppd__h{ display:flex; align-items:center; gap:14px; padding-top:14px; border-top:3px solid var(--ink); font-weight:900; font-size:24px; line-height:1.4; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; }
.ppd__n{ flex:none; display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 6px; box-sizing:border-box; background-color:var(--ink); color:var(--on-ink); font-size:18px; line-height:1; font-variant-numeric:tabular-nums; }
.ppd__b{ margin-top:16px; font-size:16px; line-height:1.85; overflow-wrap:anywhere; }
.ppd__b > * + *{ margin-top:12px; }
.ppd__b > .ppd__sub{ margin-top:32px; }
.ppd__sub{ font-weight:900; font-size:17px; line-height:1.6; }
.ppd__list{ padding-left:1.4em; list-style:disc; }
.ppd__list li + li{ margin-top:4px; }
.ppd__purpose{ padding:14px 18px; background-color:var(--surface); font-size:15px; line-height:1.85; }
.ppd__purpose b{ font-weight:900; }
.ppd a{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.5px; }
.ppd .ccf{ margin-top:0; border-top-width:1.5px; }
.ppd .ccf__r{ grid-template-columns:120px minmax(0,1fr); }
.ppd__date{ margin-top:48px; padding-top:16px; border-top:1.5px solid var(--ink); font-size:14px; line-height:1.85; color:var(--muted); }
@media (max-width:720px){
  .pp3{ margin-top:16px; }
  .pp3 > *{ padding-top:20px; padding-bottom:22px; }
  .pp3__t{ font-size:19px; }
  .pp3__d{ margin-top:8px; font-size:14px; }
  .ppd{ margin-top:20px; }
  .ppd__intro{ font-size:15px; }
  .ppd__i{ margin-top:36px; }
  .ppd__h{ gap:10px; padding-top:12px; font-size:19px; }
  .ppd__n{ min-width:30px; height:30px; font-size:15px; }
  .ppd__b{ margin-top:12px; font-size:15px; }
  .ppd__b > .ppd__sub{ margin-top:24px; }
  .ppd__sub{ font-size:16px; }
  .ppd__purpose{ padding:12px 14px; font-size:14px; }
  .ppd .ccf__r{ grid-template-columns:minmax(0,1fr); }
  .ppd__date{ margin-top:36px; font-size:13px; }
}
