/* ============================================================
   見た目の設定。土台は Pico CSS v2.1.1（MIT）＝ pico.min.css。このファイルは、その上に重ねる調整です。
   ・レイアウト：画面の端から端まで使う。左右の余白は --gutter だけ（中央に細く寄せない）
   ・書体：日本語はWebフォントを使わず、端末に入っている游ゴシック／ヒラギノで表示する。
           英字の見出し・日付・数字だけ Barlow Condensed、サイト名だけ筆記体の Pinyon Script（どちらもOFL。fonts フォルダ）
   ・色：白い紙に黒い文字。ホームの上部とフッターだけピアノの黒（ebony）。赤（felt）は鍵盤の上と小さな印だけ
   ============================================================ */
html:root[data-theme="light"] {
  --css-version: "8"; /* common.js が古いstyle.cssを見つけるために読む値。変えないでください */
  --gutter: clamp(1rem, 3.2vw, 2.75rem);
  --ebony: #141518;
  --ivory: #ece6d8;
  --ivory-dim: #a3a09a;
  --on-dark-line: rgba(236, 230, 216, 0.22);
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --ink: #111111;
  --muted: #6e6e6e;
  --line: #dddddd;
  --felt: #6e1d2b;
  --felt-2: #8c2a3b;
  --lamp: #e8707b;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "Meiryo", sans-serif;
  --en: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive; /* サイト名（筆記体）だけに使う */

  --pico-font-size: 93.75%; /* Pico は画面が広いほど文字を大きくするので、どの幅でも15pxに固定 */
  --pico-font-family: var(--sans);
  --pico-font-weight: 400;
  --pico-line-height: 1.7;
  --pico-background-color: var(--paper);
  --pico-color: var(--ink);
  --pico-muted-color: var(--muted);
  --pico-muted-border-color: var(--line);
  --pico-primary: var(--ink);
  --pico-primary-background: var(--ink);
  --pico-primary-border: var(--ink);
  --pico-primary-underline: rgba(17, 17, 17, 0.35);
  --pico-primary-hover: var(--felt-2);
  --pico-primary-hover-background: var(--felt);
  --pico-primary-hover-border: var(--felt);
  --pico-primary-hover-underline: var(--felt-2);
  --pico-primary-focus: rgba(140, 42, 59, 0.25);
  --pico-primary-inverse: #fff;
  --pico-form-element-focus-color: var(--ink);
  --pico-form-element-active-border-color: var(--ink);
  --pico-text-selection-color: rgba(140, 42, 59, 0.2);
  --pico-h1-color: var(--ink);
  --pico-h2-color: var(--ink);
  --pico-h3-color: var(--ink);
  --pico-border-radius: 0;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; background: var(--paper); }
body.menu-open { overflow: hidden; }
body > header, body > main, body > footer { padding-block: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; font-feature-settings: "palt"; }
strong, b { font-weight: 700; }
a { text-underline-offset: 0.25em; }
ul, ol { padding-inline-start: 0; }
ul li, ol li, nav li, li { list-style: none; }
/* Pico は nav を横並びの部品として作っているので、ここで打ち消す */
nav, nav ul, nav ol { display: block; margin: 0; padding: 0; }
nav ul:first-of-type, nav ul:last-of-type { margin-inline: 0; }
nav li { display: block; margin: 0; padding: 0; }
nav li > a { margin: 0; }
/* Pico は p に本文色を直接付けるので、黒地の部分では親の色を使わせる */
:where(.site-footer, .hero, .live-band, .menu) p { color: inherit; }
:focus-visible { outline: 2px solid var(--felt-2); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible, .live-band :focus-visible, .menu :focus-visible, .to-top:focus-visible { outline-color: var(--ivory); }
[hidden] { display: none !important; }

/* 英字の見出し（Barlow Condensed）。読み上げでは日本語だけを読む（HTML側で aria-hidden） */
.en { font-family: var(--en); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-feature-settings: normal; }
.num { font-family: var(--en); font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* 左右の余白だけを取って、画面いっぱいに広げる（とても広い画面では1760pxで止める） */
.wrap { width: min(100% - var(--gutter) * 2, 1760px); margin-inline: auto; }
.noscript { padding: 2rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.empty { padding: 2rem 0; color: var(--muted); }

/* 日本語の改行：JavaScript（BudouX）が文節ごとに区切る。使えない環境では、ブラウザの文節改行にまかせる */
.jp { word-break: auto-phrase; line-break: strict; text-wrap: pretty; }
.jp.jp-done { word-break: keep-all; overflow-wrap: anywhere; }

/* Pico の button の見た目を使わない、自前のボタン類の初期化 */
.chip, .mode, .text-btn, .link-btn, .live-thumb, .card, .to-top, .tag button {
  --pico-background-color: transparent; --pico-color: inherit; --pico-border-color: transparent; --pico-box-shadow: none;
  width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left;
}

/* ---------- ボタン・リンク ---------- */
.btn, .btn-ivory {
  display: inline-block; width: auto; margin: 0; padding: 0.7rem 1.6rem;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; font-feature-settings: "palt";
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover, .btn:focus { background: var(--felt); border-color: var(--felt); color: #fff; }
.btn-ivory, .live-band .btn { background: #fff; color: var(--ebony); border-color: #fff; }
.btn-ivory:hover, .btn-ivory:focus, .live-band .btn:hover, .live-band .btn:focus { background: var(--ivory); border-color: var(--ivory); color: var(--ebony); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover, .btn-quiet:focus { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.text-btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: 0.9rem; cursor: pointer; }
.link-btn { padding: 0.4rem 0.2rem; color: var(--muted); font-size: 0.9rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--felt-2); }
/* 「すべて見る」：小さな灰色の文字と ＞ */
.more { color: var(--muted); font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.more::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.45em; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-0.1em) rotate(45deg); }
.more:hover { color: var(--ink); }

/* ---------- ヘッダー（白・端から端まで）・メニュー ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-family: var(--script); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.brand span { padding-top: 0.15em; } /* 筆記体は字面が下に寄るので、マークと高さをそろえる */
.brand-mark { display: block; width: 26px; height: 26px; }
.bar-right { display: flex; align-items: center; gap: 2rem; }
/* ナビ：英字（大）＋日本語（小）の2段 */
.nav-inline ul { display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.nav-inline li { margin: 0; padding: 0; }
.nav-inline a { display: flex; flex-direction: column; align-items: center; padding: 0.4rem 0; color: var(--ink); text-decoration: none; line-height: 1.2; }
.nav-inline .en { font-size: 1rem; letter-spacing: 0.08em; }
.nav-inline .ja { margin-top: 0.15rem; color: var(--muted); font-size: 0.68rem; }
.nav-inline a:hover .en, .nav-inline a[aria-current="page"] .en { color: var(--felt-2); }
.menu-btn { display: none; color: var(--ink); }
.menu-btn .en { font-size: 1rem; letter-spacing: 0.1em; }
.menu-icon { position: relative; width: 24px; height: 12px; border-block: 2px solid var(--ink); }
.menu-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); }
/* 曲を探す：メニューの4項目から線で区切り、右端に虫眼鏡で置く */
.nav-search { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding-left: 1.8rem; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nav-search .en { font-size: 1rem; letter-spacing: 0.08em; }
.nav-search:hover, .nav-search[aria-current="page"] { color: var(--felt-2); }
.search-icon { position: relative; flex: none; width: 15px; height: 15px; margin: -3px 3px 0 0; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -6px; bottom: -5px; width: 2px; height: 7px; background: currentColor; transform: rotate(-45deg); }

/* 配信中だけヘッダーに出るバッジ */
.nav-live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.15rem 0.7rem; background: var(--felt); color: #fff; font-family: var(--en); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap; }
.nav-live:hover { background: var(--felt-2); color: #fff; }
.nav-live[hidden] { display: none; }
.live-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ivory-dim); }
.nav-live .live-dot, .live-band .live-dot { background: #fff; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.menu-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(8, 9, 11, 0.55); }
.menu { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(360px, 100%); overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-start; padding: 0.6rem 1.4rem 2rem; background: var(--ebony); color: var(--ivory); }
.menu[hidden], .menu-scrim[hidden] { display: none; }
.menu .text-btn, .menu .text-btn:focus { color: var(--ivory); box-shadow: none; }
.menu-top { display: flex; justify-content: flex-end; }
.menu ul { display: block; margin: 0.8rem 0 2rem !important; padding: 0; }
.menu li { margin: 0; padding: 0; }
.menu li a { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.85rem 0.1rem; border-bottom: 1px solid var(--on-dark-line); color: var(--ivory); text-decoration: none; }
.menu li .en { font-size: 1.45rem; letter-spacing: 0.1em; }
.menu li .ja { color: var(--ivory-dim); font-size: 0.8rem; }
.menu li a[aria-current="page"] .en { color: var(--lamp); }
.menu-foot { margin-top: auto; font-size: 0.9rem; color: var(--ivory-dim); }
.menu-foot a { display: inline-block; padding: 0.4rem 0; color: var(--ivory); }

/* ---------- ホーム：黒い帯（題字・検索・ライブ）と鍵盤 ---------- */
.hero {
  background: var(--ebony); color: var(--ivory);
  --pico-form-element-focus-color: rgba(236, 230, 216, 0.5);
  --pico-form-element-active-border-color: var(--ivory);
}
/* 左に大きな題字、右に「一行の説明＋検索」。題字を読み終えた目線の先に、最初の操作（検索）が来る */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 1fr); gap: 2rem clamp(2.5rem, 6vw, 7rem); align-items: end; padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(2.2rem, 4.5vw, 3.6rem); }
.hero .hero-title { margin: 0; color: var(--ivory); font-family: var(--script); font-size: clamp(3.4rem, 8.2vw, 8.6rem); font-weight: 400; line-height: 1.02; letter-spacing: 0; font-feature-settings: normal; }
.hero-find { padding-bottom: 0.3rem; }
.hero-text p { margin: 0; color: var(--ivory); font-size: 1.05rem; font-weight: 700; }
.hero-search { display: flex; max-width: 40rem; margin: 1rem 0 0; }
.hero-search, .hero-search > * { border-radius: 0 !important; box-shadow: none !important; } /* Pico の role="search" の丸い形を打ち消す */
.hero-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 3.1rem; margin: 0; padding: 0 1rem; background: rgba(236, 230, 216, 0.08); background-image: none;
  color: var(--ivory); border: 1px solid rgba(236, 230, 216, 0.4); border-right: 0; border-radius: 0 !important; font-size: 1rem;
}
.hero-search input[type="search"]::placeholder { color: var(--ivory-dim); opacity: 1; }
.hero-search button {
  --pico-background-color: var(--ivory); --pico-border-color: var(--ivory); --pico-color: var(--ebony);
  flex: none; width: auto; height: 3.1rem; margin: 0; padding: 0 1.6rem; border-radius: 0; font-size: 1rem; font-weight: 700; font-feature-settings: "palt";
}
.hero-search button:hover, .hero-search button:focus { --pico-background-color: #fff; --pico-border-color: #fff; --pico-color: var(--ebony); }
.hero-links { max-width: 40rem; margin: 0.9rem 0 0; color: var(--ivory-dim); font-size: 0.85rem; line-height: 1.9; }
.hero-links + .hero-links { margin-top: 0.1rem; }
.hero-links a { margin-right: 0.7rem; white-space: nowrap; color: var(--ivory); text-decoration-color: rgba(236, 230, 216, 0.4); }
.hero-links a:hover { color: #fff; }

/* ---------- ホーム：ライブ配信中の帯（配信中だけ、ページの一番上に出る） ---------- */
.live-band { margin: 0; background: var(--felt); color: #fff; }
.live-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem clamp(1.2rem, 3vw, 2.5rem); padding: 1rem 0; }
.live-thumb { position: relative; display: block; width: clamp(9rem, 15vw, 13rem); aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.live-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s; }
.live-thumb:hover img { opacity: 0.8; }
.live-play { position: absolute; inset: 0; width: 0; height: 0; margin: auto; border-left: 20px solid #fff; border-block: 12px solid transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.live-label { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.live-label .en { font-size: 1.35rem; letter-spacing: 0.14em; line-height: 1.2; }
.live-label .ja { font-size: 0.8rem; opacity: 0.85; }
.live-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.55; }

/* 頭文字の鍵盤（画面いっぱいの幅） */
.kb { padding-bottom: 1.6rem; background: var(--ebony); }
.kb-caption { display: flex; align-items: baseline; gap: 0.8rem; margin: 0 0 0.6rem; color: var(--ivory-dim); font-size: 0.8rem; }
.kb-caption .en { color: var(--ivory); font-size: 1.05rem; letter-spacing: 0.2em; }
.kb-felt { height: 6px; background: var(--felt); }
.kb-board { padding-top: 0; }
/* 鍵盤のすき間は、背景の黒より少し明るい色にして、黒鍵の輪郭が背景に溶けないようにする */
.kb-keys { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; height: clamp(6.5rem, 12.5vw, 13rem); padding-bottom: 3px; background: #4a4640; }
.key {
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.8rem;
  background: var(--ivory); color: var(--ink); border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -6px 0 rgba(20, 22, 26, 0.12); font-size: clamp(1rem, 2.1vw, 2.3rem); font-weight: 700; line-height: 1; text-decoration: none;
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, background-color 0.07s;
}
.key:active, .key:focus-visible { background: #ddd5c2; box-shadow: inset 0 -2px 0 rgba(20, 22, 26, 0.14); transform: translateY(3px); color: var(--ink); }
@media (hover: hover) { /* タッチ端末では、押したあとに鍵盤が沈んだままにならないように */
  .key:hover { background: #ddd5c2; box-shadow: inset 0 -2px 0 rgba(20, 22, 26, 0.14); transform: translateY(3px); color: var(--ink); }
}
.key:focus-visible { outline: 2px solid var(--ebony); outline-offset: -6px; }
.blk {
  position: absolute; top: 0; left: calc(var(--b) * 10% - 2.9%); width: 5.8%; height: 60%; pointer-events: none;
  /* 黒鍵：上から光が当たったような明るさと、左右・手前のふちの光で、背景の黒と見分けられるようにする */
  background: linear-gradient(180deg, #474c57 0%, #2a2e36 18%, #1b1d22 78%, #3b3f48 92%, #23262c 100%);
  border-radius: 0 0 3px 3px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.16), inset -1px 0 0 rgba(255, 255, 255, 0.16), 0 4px 6px rgba(0, 0, 0, 0.45);
}

/* ---------- 見出し：大きな英字＋小さな日本語 ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.sec-head h2, .page-head h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin: 0; line-height: 1; }
.sec-head h2 .en, .page-head h1 .en { color: var(--ink); font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: 0.18em; }
.sec-head h2 .ja, .page-head h1 .ja { font-size: 0.95rem; font-weight: 700; }
.sec-head p { flex-basis: 100%; order: 3; margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- ホーム：オリジナル曲（横一列に並べる） ---------- */
.orig { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem 1rem; margin: 0; padding: 0; }
.cards li { margin: 0; padding: 0; }
.card { display: block; width: 100%; cursor: pointer; }
.card-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s; }
.card:hover .card-img img { opacity: 0.85; }
.card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 0.55rem; font-size: 0.95rem; font-weight: 700; line-height: 1.5; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 0.25em; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.7rem; margin: 0.3rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.card-meta time { font-family: var(--en); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; }
.card-artist { color: var(--ink); overflow-wrap: anywhere; text-decoration-color: rgba(17, 17, 17, 0.3); }
.card-artist:hover { color: var(--felt-2); }
/* 新着・人気：黒地に白の小さな札 */
.card-meta b { padding: 0.05rem 0.4rem; background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.6; }

/* ---------- ページ見出し・本文 ---------- */
/* ページの見出し：左に大きな見出し、右に一言（左に寄りすぎないよう、横幅いっぱいを使う） */
.page-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 1rem clamp(2rem, 6vw, 6rem); padding: clamp(2rem, 5vw, 3.6rem) 0 clamp(1.2rem, 2.5vw, 2rem); border-bottom: 2px solid var(--ink); }
.page-lead { justify-self: end; max-width: 34rem; margin: 0; color: var(--muted); font-size: 0.92rem; }
.page-lead:empty { display: none; }
.prose p { margin: 0 0 1.1rem; line-height: 1.95; }
/* プロフィール本文：行の両端をそろえる。文節で改行すると行末がでこぼこになるので、ここだけ1文字ずつ改行してよいことにする */
.prose p, .prose p.jp.jp-done { text-align: justify; text-justify: inter-character; word-break: normal; line-break: strict; }
.keep-lines { white-space: pre-line; overflow-wrap: anywhere; }
.note a, .rules a { color: var(--ink); }
/* 小見出し：英字＋日本語、下に太い線 */
.sub-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 0 0 1.4rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 1rem; line-height: 1.1; }
.sub-head .en { font-size: 1.7rem; letter-spacing: 0.16em; }
.sub-head .ja { font-size: 0.88rem; }

/* リクエスト：お約束を横3列、その下に幅いっぱいの「送る」帯 */
.req-rules { padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(2.5rem, 5vw, 4rem); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); margin: 0; padding: 0; counter-reset: r; }
.rules li { margin: 0; padding: 0; line-height: 1.9; counter-increment: r; }
.rules li::before { content: counter(r, decimal-leading-zero); display: block; margin-bottom: 0.6rem; color: var(--felt-2); font-family: var(--en); font-weight: 500; font-size: 3.2rem; line-height: 1; }
.reqband { padding: clamp(2rem, 4.5vw, 3.6rem) 0; background: var(--paper-2); }
.reqband-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr); align-items: end; gap: 1.6rem clamp(2rem, 6vw, 6rem); }
.reqband .note { max-width: 42rem; margin: 0; }
.reqband-action .btn { display: block; padding-block: 1rem; font-size: 1.05rem; }
.pending { margin: 0; padding: 1rem 1.2rem; background: #fff; border-left: 3px solid var(--ink); }
.pending-sub { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.85rem; }
body[data-page="request"] .site-footer { margin-top: 0; }

/* プロフィール：写真と名前｜文章｜リンク の3列 */
.about-grid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 4.5vw, 5rem); padding: clamp(2rem, 4vw, 3rem) 0 2rem; align-items: start; }
.about-photo { margin: 0 0 1.2rem; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.name-big { margin: 0; font-family: var(--en); font-size: 2.2rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.12em; }
.name-sub { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.85rem; }
.link-list { margin: 0; padding: 0; }
.link-list li { margin: 0; padding: 0; }
.link-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 50px; padding: 0.75rem 0.1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.link-list a:hover { color: var(--felt-2); }
.link-host { color: var(--muted); font-family: var(--en); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; }

/* ---------- 目録（検索・絞り込み） ---------- */
input, select, textarea, input[type="search"] { background-color: #fff; border: 1px solid #c8c8c8; border-radius: 0 !important; }
.modes[role="group"], .chips[role="group"] { display: flex; width: auto; margin-bottom: 0; border-radius: 0; box-shadow: none; }
.modes[role="group"] > *, .chips[role="group"] > * { flex: 0 0 auto; width: auto; }
.chips[role="group"] > :not(:first-child) { margin-left: 0; }
.modes { gap: 1.8rem; margin: 1.2rem 0 0; border-bottom: 1px solid var(--line); }
.mode { margin-bottom: -1px; padding: 0.7rem 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; cursor: pointer; font-feature-settings: "palt"; }
.mode:hover { color: var(--ink); }
.mode[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
/* 検索窓｜公開年｜並び順 を横一列に。検索窓が残りの幅を全部使う */
.tools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 0.8rem 1rem; margin-top: 1.4rem; }
.tool { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.tool > .en { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.18em; }
.tools .field, .tools input, .tools select { width: 100%; margin: 0; }
.tools input { height: 3rem; font-size: 1rem; }
.tools select { min-width: 12rem; height: 3rem; }
/* 頭文字：たたまずに、いつも見える列 */
.initials { display: flex; align-items: center; gap: 0.6rem 1.4rem; margin-top: 1rem; padding: 0.9rem 0; border-block: 1px solid var(--line); }
.filter-label { display: flex; flex-direction: column; flex: none; color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
.filter-label .en { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.18em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { min-width: 44px; min-height: 40px; padding: 0 0.8rem; border: 1px solid var(--line); text-align: center; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 結果の見出し：件数（大きく）＋いまの条件の札 */
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin: 1.6rem 0 0.8rem; scroll-margin-top: 80px; }
.active { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.active:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.2rem 0.1rem 0.8rem; font-size: 0.88rem; border: 1px solid var(--ink); background: #fff; }
.tag button { min-width: 32px; min-height: 32px; text-align: center; cursor: pointer; }
.summary { margin: 0; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.summary strong { margin-right: 0.15rem; font-size: 2.1rem; font-weight: 600; line-height: 1; }
.summary-sub { margin-left: 0.4rem; color: var(--muted); font-size: 0.82rem; font-weight: 400; }

/* 目録の一覧：図書館の検索結果のように、曲名とアーティストを主役にした文字の表 */
mark { padding: 0; background: #f7e08f; color: inherit; }
.song-list { margin: 0; padding: 0; }
.song-head, .song { display: grid; align-items: center; column-gap: 1.4rem; grid-template-columns: 3.2rem minmax(0, 1fr) 6.5rem 2.6rem; }
.has-artist .song-head, .has-artist .song { grid-template-columns: 3.2rem minmax(0, 1.5fr) minmax(0, 1fr) 6.5rem 2.6rem; }
.has-artist.has-cat .song-head, .has-artist.has-cat .song { grid-template-columns: 3.2rem minmax(0, 1.5fr) minmax(0, 1fr) 6rem 6.5rem 2.6rem; }
.song-head { padding: 0.5rem 0; border-bottom: 2px solid var(--ink); color: var(--muted); font-size: 0.78rem; }
.song-head .s-no { text-align: right; }
.song { margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.song:hover { background: var(--paper-2); }
.s-no { color: var(--muted); font-size: 0.95rem; text-align: right; }
.s-title { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; --pico-background-color: transparent; --pico-border-color: transparent; --pico-box-shadow: none; width: auto; }
.s-main { display: block; overflow-wrap: anywhere; font-size: 1.08rem; font-weight: 700; line-height: 1.5; }
.s-title:hover .s-main { color: var(--felt-2); text-decoration: underline; text-underline-offset: 0.25em; }
.s-tag { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.s-artist { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 0.95rem; }
a.s-artist { text-decoration-color: rgba(17, 17, 17, 0.3); }
a.s-artist:hover { color: var(--felt-2); }
.s-cat { justify-self: start; padding: 0.05rem 0.45rem; border: 1px solid var(--ink); font-size: 0.72rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.s-cat.is-original { background: var(--ink); color: #fff; }
.s-date { color: var(--muted); font-size: 1rem; white-space: nowrap; }
.s-play { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; --pico-box-shadow: none; }
.s-play:hover { border-color: var(--ink); background: var(--ink); }
.play-icon { width: 0; height: 0; margin-left: 3px; border-left: 10px solid var(--ink); border-block: 6px solid transparent; }
.s-play:hover .play-icon { border-left-color: #fff; }
.empty-head { margin: 0 0 0.6rem; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.empty-tips { margin: 0 0 1.4rem; padding: 0; }
.empty-tips li { margin: 0.2rem 0; color: var(--muted); }
.empty-tips li::before { content: "・"; }
.empty-tips a, .empty-tips .link-btn { color: var(--ink); font-size: 1rem; font-weight: 700; }
/* アーティストから探すとき：公開年・並び順を隠すので、検索窓を幅いっぱいに */
.is-artists .tools { grid-template-columns: minmax(0, 1fr); }

/* まとめて探すページの種類の札：サムネイルの左上（オリジナル＝黒地、弾いてみた＝白地） */
.t-cat { position: absolute; top: 0; left: 0; padding: 0.1rem 0.5rem; background: #fff; color: var(--ink); font-size: 0.7rem; font-weight: 700; line-height: 1.5; }
.t-cat.is-original { background: var(--ink); color: #fff; }
.mode-count { margin-left: 0.45rem; color: var(--muted); font-size: 0.95rem; }
.after-note { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.after-note a { color: var(--ink); font-weight: 700; }
.empty .btn { margin: 0 0.5rem 0.5rem 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.6rem; }
.pager-now { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.pager-now select { width: auto; min-width: 5rem; margin: 0; }

.artist-jump { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.4rem; margin: 0 0 1.6rem; }
.artist-jump .chip { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
/* 段組みの中で、行ごとの塊も途中で次の列へ流す（右側に大きな空きが出ないように） */
.artist-groups { columns: 15rem; column-gap: 2.5rem; margin-top: 0.4rem; }
.artist-group { margin-bottom: 1.6rem; scroll-margin-top: 80px; }
.artist-group li { break-inside: avoid; }
.artist-group h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 0.3rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--ink); font-size: 1rem; break-after: avoid; break-inside: avoid; }
.artist-group ul { margin: 0; padding: 0; }
.artist-group li { margin: 0; padding: 0; }
.artist-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.artist-link:hover { color: var(--felt-2); }
.artist-name { overflow-wrap: anywhere; }
.artist-count { flex: none; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

/* ---------- 再生ダイアログ（Pico のモーダルを土台に、黒い額縁にする） ---------- */
.player > article {
  --pico-card-background-color: var(--ebony); --pico-card-sectioning-background-color: var(--ebony);
  --pico-color: var(--ivory); --pico-h3-color: var(--ivory);
  width: min(1040px, 100% - 1.5rem); max-width: none; margin: 0; padding: 0; overflow: hidden; background: var(--ebony); color: var(--ivory); border-radius: 0;
}
.player > article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.9rem 1.1rem; background: var(--ebony); border: 0; }
.player-title { margin: 0; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.player > article > header button { flex: none; margin: 0.2rem 0 0; }
.player-frame { background: #000; }
.player-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.player > article > footer { margin: 0; padding: 0.7rem 1.1rem; background: var(--ebony); border: 0; font-size: 0.9rem; }
.player > article > footer a { color: var(--ivory); }

/* ---------- フッター・お知らせ ---------- */
.site-footer { margin-top: 5rem; background: var(--ebony); color: var(--ivory); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.5rem clamp(2.5rem, 6vw, 6rem); padding: 2.6rem 0 2rem; }
.foot-brand img { display: block; width: 26px; height: 26px; margin-bottom: 0.7rem; }
.foot-name { margin: 0; font-family: var(--script); font-size: 2.2rem; font-weight: 400; line-height: 1.2; }
.foot-sub { margin: 0.1rem 0 0; color: var(--ivory-dim); font-size: 0.82rem; }
.foot-nav, .foot-links { margin: 0; padding: 0; }
.foot-nav li, .foot-links li { margin: 0; padding: 0; }
.foot-nav a, .foot-links a { display: inline-block; padding: 0.25rem 0; color: var(--ivory); font-size: 0.88rem; text-decoration: none; }
.foot-nav a:hover, .foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.foot-copy { padding: 1rem 0 1.8rem; border-top: 1px solid var(--on-dark-line); color: var(--ivory-dim); font-family: var(--en); font-size: 0.85rem; letter-spacing: 0.06em; }
.foot-copy p { margin: 0; }
.sample-notice { margin: 0; padding: 0.5rem 1rem; background: #efd98e; color: #3a2e06; font-size: 0.85rem; text-align: center; }

/* ---------- ページの一番上へ戻るボタン ---------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 15; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--ink); cursor: pointer; transition: background-color 0.15s; }
.to-top:hover { background: var(--felt); }
.to-top[hidden] { display: none; }
.to-top-arrow { display: block; width: 11px; height: 11px; margin-top: 4px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }

/* ---------- 画面幅に合わせた調整 ---------- */
@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .about-links { grid-column: 2; }
}
/* タブレット（720〜959px） */
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero .hero-title { font-size: clamp(3.2rem, 12vw, 6.8rem); }
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .page-lead { justify-self: start; }
  .reqband-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .reqband-action { max-width: 28rem; }
  .s-no, .song-head .s-no { display: none; }
  .song-head, .song { grid-template-columns: minmax(0, 1fr) 6rem 2.6rem; column-gap: 1rem; }
  .has-artist .song-head, .has-artist .song { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 6rem 2.6rem; }
  .has-artist.has-cat .song-head, .has-artist.has-cat .song { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 5.5rem 6rem 2.6rem; }
}
@media (max-width: 899px) {
  .nav-inline { display: none; }
  .menu-btn { display: inline-flex; }
  .bar-right { gap: 1.2rem; }
  .nav-search { padding-left: 0; border-left: 0; }
  .site-header .bar { min-height: 56px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2rem; }
  .foot-brand { grid-column: 1 / -1; }
}
/* スマホ（〜719px） */
@media (max-width: 719px) {
  .hero-search button { padding: 0 1.2rem; }
  .site-header .bar { gap: 0.8rem; }
  .brand { gap: 0.45rem; font-size: 1.45rem; }
  .brand-mark { width: 22px; height: 22px; }
  .nav-search .en { display: none; }
  /* 配信中のバッジ：スマホでは小さく。ホームでは上の帯に出ているので、ヘッダーには出さない */
  .nav-live { padding: 0.55rem; }
  .nav-live span:last-child { display: none; } /* 読み上げは aria-label の「ライブ配信中」 */
  .bar-right { gap: 1rem; }
  body[data-page="home"] .nav-live { display: none; }
  .menu-btn { gap: 0; }
  .menu-btn .en { display: none; }
  .live-inner { grid-template-columns: 8rem minmax(0, 1fr); padding: 0.9rem 0 1rem; }
  .live-thumb { width: 8rem; }
  .live-label .en { font-size: 1.15rem; }
  .live-title { font-size: 0.95rem; }
  .live-btn { grid-column: 1 / -1; display: block; }

  .sec-head h2 .en, .page-head h1 .en { font-size: 2.3rem; letter-spacing: 0.14em; }

  /* 検索欄を上に、公開年と並び順を下に2つ並べる */
  .tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; margin-top: 1rem; }
  .tool-q { grid-column: 1 / -1; }
  .tools select { min-width: 0; }
  .initials { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .filter-label { flex-direction: row; gap: 0.6rem; align-items: baseline; }
  .chip { min-width: 0; padding: 0 0.65rem; }
  .modes { gap: 1.4rem; }
  .pager .btn { padding: 0.6rem 0.9rem; font-size: 0.88rem; }

  /* 曲のカードは2列 */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.7rem; }
  /* 目録の一覧：曲名を1行目に大きく、2行目に「アーティスト・種類・公開日」。再生の印は右端 */
  .song-head { display: none; }
  .song, .has-artist .song, .has-artist.has-cat .song { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; padding: 0.8rem 3.2rem 0.8rem 0; }
  .s-title { flex: 0 0 100%; }
  .s-main { font-size: 1.02rem; }
  .s-artist { font-size: 0.88rem; }
  .s-artist.is-none { display: none; }
  .s-date { font-size: 0.92rem; }
  .s-play { position: absolute; right: 0; top: 50%; margin-top: -1.2rem; }
  .summary strong { font-size: 1.8rem; }
  .card-title { font-size: 0.88rem; }
  .card-meta { font-size: 0.78rem; }

  .rules { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .rules li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); }
  .rules li::before { margin: 0; font-size: 2.2rem; }

  .kb-keys { gap: 2px; height: 6rem; }
  .key { padding-bottom: 0.55rem; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .about-links { grid-column: auto; }
  .about-side { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 0 1rem; }
  .about-photo { grid-row: span 2; margin: 0; }
  .about-side:has(.about-photo[hidden]) { display: block; }
  .about-side .name-big { align-self: end; }
  .about-side .name-sub { align-self: start; }
  .site-footer { margin-top: 3.5rem; }
}
@media (max-width: 480px) {
  .brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
