/* あめのみっくす フリー音源 — 色は :root の変数で管理する */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #171a24;
  --ink-2: #4a4f5e;
  --muted: #8a8f9c;
  --line: #e3e1da;
  --night-1: #0f1324;
  --night-2: #1b2340;
  --night-3: #2c3a63;
  --accent: #6a5acd;
  --accent-2: #3b6fb6;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 19 36 / 0.04), 0 8px 28px rgb(15 19 36 / 0.06);
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "Jost", "Zen Kaku Gothic New", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11131b; --surface: #1a1d28; --ink: #eceef4; --ink-2: #b7bccb; --muted: #7d8394; --line: #2a2e3c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ja); font-size: 16px; line-height: 1.8; letter-spacing: .02em; -webkit-font-smoothing: antialiased; padding-bottom: 96px; }
a { color: var(--accent-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 8px; font-family: var(--font-en); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }

/* ---- ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; }
.logo__mark { color: var(--accent); font-size: 18px; }
.logo__text { font-family: var(--font-en); font-size: 20px; letter-spacing: .06em; }
.logo__text b { font-weight: 500; color: var(--accent); }
.logo__sub { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current] { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .logo__sub { display: none; }
  .nav-toggle { display: block; width: 40px; height: 40px; border: 0; background: none; position: relative; cursor: pointer; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); content: ""; }
  .nav-toggle span:first-child { top: 19px; } .nav-toggle span:first-child::before { left: 0; top: -6px; } .nav-toggle span:first-child::after { left: 0; top: 6px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
}

/* ---- ボタン */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn[data-bulk-dl]:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--small { padding: 6px 14px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- ヒーロー（夜空） */
.hero { color: #fff; background:
  radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
  radial-gradient(50% 70% at 10% 100%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 60%),
  linear-gradient(160deg, var(--night-1), var(--night-2) 60%, var(--night-3)); }
.hero__inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 110px) var(--gutter); }
.hero .eyebrow { color: #c9c2ff; }
.hero h1 { max-width: 20em; margin: 0; font-size: clamp(24px, 3.6vw, 38px); }
.hero .btn { background: #fff; color: var(--night-1); }
.hero .btn--ghost { background: transparent; color: #fff; }
.hero__stats { display: flex; gap: 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero__stats li { display: flex; align-items: baseline; gap: 6px; }
.hero__stats b { font-family: var(--font-en); font-weight: 300; font-size: 48px; line-height: 1; }
.hero__stats span { font-size: 13px; letter-spacing: .1em; opacity: .8; }
.hero__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 720px; }
.hero__points li { padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.hero__points b { display: block; font-size: 15px; }
.hero__points span { font-size: 12.5px; opacity: .85; }
@media (max-width: 640px) { .hero__points { grid-template-columns: 1fr; } }

/* ---- セクション */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--soft { background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.section__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section__inner--narrow { max-width: 820px; }
.lead { font-size: 16.5px; }
.note { font-size: 14px; color: var(--ink-2); }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* ---- 絞り込み */
.filters { display: grid; gap: 10px; margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.search input { width: 100%; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters__label { width: 4.5em; font-size: 13px; color: var(--muted); }
.filters button { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.filters button.is-active, .filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters__count { margin: 0; font-size: 13px; color: var(--muted); text-align: right; }

/* ---- 曲の一覧 */
.rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.row[hidden] { display: none; }
.row.is-playing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.row__play, .player__btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer; flex: none; }
.i-play { width: 0; height: 0; margin-left: 3px; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.is-playing .i-play, .player.is-playing .player__btn .i-play { width: 12px; height: 14px; margin: 0; border: 0;
  border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.row__title { color: var(--ink); font-weight: 700; text-decoration: none; }
.row__title:hover { text-decoration: underline; }
.row__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.row__dur { font-family: var(--font-en); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row__dl { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.row__dl:hover { border-color: var(--accent); color: var(--accent); }
.row__pick { display: none; }
.rows.is-picking .row { grid-template-columns: auto auto 1fr auto auto; }
.rows.is-picking .row__pick { display: grid; place-items: center; width: 28px; height: 42px; cursor: pointer; }
.row__pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.rows.is-picking .row.is-picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.bulk { display: grid; gap: 10px; margin: 0 0 16px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bulk[hidden] { display: none; }
.bulk.is-on { position: sticky; top: var(--bulk-top, 64px); z-index: 10; box-shadow: var(--shadow); border-color: var(--accent); }
.bulk__toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; width: fit-content; }
.bulk__toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.bulk__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk__tools[hidden] { display: none; }
.bulk__count { font-size: 13px; color: var(--ink-2); }
.bulk__count b { font-family: var(--font-en); color: var(--ink); }
.bulk__msg { margin: 0; }
.bulk__msg:empty { display: none; }
@media (max-width: 560px) {
  .row { grid-template-columns: auto 1fr auto; gap: 10px 12px; }
  .rows.is-picking .row { grid-template-columns: auto auto 1fr auto; }
  .row__dur { display: none; }
}
.kind, .badge, .chip, .tag { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: 12px; line-height: 1.9; text-decoration: none; }
.kind { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.kind--jingle { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.badge { border: 1px solid var(--line); color: var(--ink-2); }
.chip { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); }
.chip:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.tag { color: var(--muted); padding: 0 4px; }

/* ---- 曲ページ */
.track-hero { padding: clamp(36px, 6vw, 64px) 0 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg)); }
.track-hero--soft { padding-bottom: 8px; }
.track-hero h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); }
.track-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.track-hero__play { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.bigplay { display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px 10px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bigplay .i-play { margin-left: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 16px; }
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { width: 8em; font-weight: 500; color: var(--muted); }
.credit-box { padding: 18px 20px; border-radius: 14px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.credit-box__h { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.credit-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.credit-box code { padding: 6px 10px; border-radius: 8px; background: var(--surface); font-size: 14px; word-break: break-all; }
.credit-box__note { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.breadcrumbs, .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* ---- 手順 */
.steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 14px 18px 14px 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--font-en); font-size: 14px; }
.steps b { display: block; }

/* ---- 本文 */
.prose { padding-top: 16px; padding-bottom: 48px; }
.prose h2 { margin-top: 2em; font-size: 22px; }
.prose h3 { margin-top: 1.6em; font-size: 18px; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 8px; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* ---- 広告 */
.ad { margin: 32px 0; min-height: 100px; }
.ad--preview { display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }

/* ---- フッター */
.site-footer { margin-top: 48px; padding: 48px var(--gutter) 24px; background: var(--night-1); color: #cfd3e0; font-size: 14px; }
.site-footer__inner { display: grid; grid-template-columns: 2fr; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 32px; max-width: var(--max); margin: 0 auto; }
.site-footer a { color: #cfd3e0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.site-footer__name { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.site-footer__h { margin: 0 0 8px; color: #fff; font-weight: 700; }
.site-footer__copy { max-width: var(--max); margin: 32px auto 0; font-size: 12px; opacity: .7; }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; grid-auto-flow: row; } }

/* ---- 画面下のプレーヤー */
.player { position: fixed; left: 50%; bottom: 14px; z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  width: min(720px, calc(100% - 24px)); padding: 10px 14px; border-radius: 18px; color: #fff;
  background: color-mix(in srgb, var(--night-2) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgb(0 0 0 / .3); }
.player[hidden] { display: none; }
.player__info { flex: 1; min-width: 0; }
.player__title { display: block; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { display: flex; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.player__bar input { flex: 1; accent-color: var(--accent); }
.player__dl { padding: 6px 12px; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.player__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 520px) { .player__dl { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.track-hero + .section { padding-top: 20px; }

/* シリーズ・アルバム */
.chip--series { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.row__album { font-size: 12px; line-height: 1.9; color: var(--muted); text-decoration: none; }
.row__album:hover { color: var(--ink-2); text-decoration: underline; }
.albums { list-style: none; margin: 16px 0 32px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.album-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: var(--radius); text-decoration: none;
  color: #fff; background: linear-gradient(145deg, var(--night-2), var(--night-3)); box-shadow: var(--shadow); transition: transform .2s; }
.album-card a:hover { transform: translateY(-2px); }
.album-card__series { font-size: 12px; opacity: .75; }
.album-card__title { font-size: 17px; font-weight: 700; line-height: 1.5; }
.album-card__meta { margin-top: auto; font-size: 12px; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .album-card a { transition: none; } .album-card a:hover { transform: none; } }

[hidden] { display: none !important; }
