/* ===== 色やフォント（ここを変えると全体の雰囲気が変わります） ===== */
:root {
  --bg: #fbf7f5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #2b2327;
  --muted: #8a7d83;
  --line: rgba(43, 35, 39, 0.08);
  --pink: #ef7fa0;
  --pink-deep: #d9537b;
  --pink-soft: #fde8ee;
  --mint: #9ed9b8;
  --mint-deep: #3f9467;
  --mint-soft: #e7f6ed;
  --grad: linear-gradient(120deg, #ef7fa0 0%, #f7a582 50%, #8fd1ab 100%);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(43, 35, 39, 0.04), 0 8px 32px rgba(217, 83, 123, 0.08);
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-en: "Outfit", "Zen Maru Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.75;
  padding-bottom: 120px;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 背景 ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: #ffc2d4; top: -160px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: #ffe0c7; top: 80px; right: -160px; animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; background: #c8efd8; top: 520px; left: 30%; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.12); } }

/* ===== ボタン類 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 35, 39, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 35, 39, 0.28); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-solid); }
.btn-mint {
  background: var(--mint-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(63, 148, 103, 0.25);
}
.btn-mint:hover { transform: translateY(-2px); }
.btn-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
}
.btn-icon svg { width: 13px; height: 13px; }
.btn .pi { position: static; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(43, 35, 39, 0.06); }
.icon-btn svg { width: 22px; height: 22px; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pink-deep);
  text-decoration: none;
  white-space: nowrap;
}
.more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.more:hover svg { transform: translateX(3px); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(43, 35, 39, 0.06);
  color: var(--muted);
}
.badge-vocal { background: var(--pink-soft); color: var(--pink-deep); }
.badge-inst { background: var(--mint-soft); color: var(--mint-deep); }
.badge-voice { background: #fff1e6; color: #c26a2e; }
.badge-listen { background: #eef0fb; color: #5a63a8; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--pink); color: var(--pink-deep); }
.chips-lg { gap: 10px; }
.chips-lg .chip {
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
}
.chip small {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== ヘッダー ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(251, 247, 245, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--pink); }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); background: rgba(43, 35, 39, 0.06); }
.nav-icons { display: flex; gap: 4px; margin-left: auto; }

/* ===== メニュー ===== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(43, 35, 39, 0.3);
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(340px, 88vw);
  padding: 16px 24px 40px;
  overflow-y: auto;
  background: var(--bg);
  box-shadow: -16px 0 40px rgba(43, 35, 39, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.drawer-label {
  margin: 24px 0 6px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.drawer-list a:hover { background: rgba(43, 35, 39, 0.05); }
.drawer-list small {
  font-family: var(--font-en);
  color: var(--muted);
}

/* ===== 検索 ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 96px 16px 0;
  background: rgba(43, 35, 39, 0.3);
  backdrop-filter: blur(4px);
}
.search-overlay[hidden] { display: none; }
.search-panel {
  display: flex;
  gap: 8px;
  width: min(600px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: 0 20px 60px rgba(43, 35, 39, 0.25);
}
.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1.05rem;
  background: none;
  color: var(--text);
}

/* ===== レコード ===== */
.record {
  --size: 100%;
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px),
    radial-gradient(circle, #3a3035 0%, #1f191c 70%);
  box-shadow: 0 12px 28px rgba(43, 35, 39, 0.22), inset 0 0 0 4px #2b2327;
  display: grid;
  place-items: center;
  animation: spin 7s linear infinite;
  animation-play-state: paused;
}
.record::after {
  /* 光の反射 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 15%, rgba(255, 255, 255, 0.12) 20%, transparent 25% 65%, rgba(255, 255, 255, 0.08) 70%, transparent 75%);
  pointer-events: none;
}
.record.is-spinning { animation-play-state: running; }
.record-label {
  --h: 340;
  position: relative;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 78% 76%), hsl(calc(var(--h) + 50) 72% 80%));
  display: grid;
  place-items: center;
}
.record-label::after {
  /* 中心の穴 */
  content: "";
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
}
.record-site .record-label { background: var(--grad); }
.record-label span {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  color: #fff;
  transform: translateY(-160%);
}
.record--hero { width: min(400px, 80vw); box-shadow: 0 30px 60px rgba(43, 35, 39, 0.25), inset 0 0 0 8px #2b2327; }
.record--lg { width: min(420px, 100%); box-shadow: 0 30px 60px rgba(43, 35, 39, 0.25), inset 0 0 0 8px #2b2327; }
.record--md { width: 180px; }
.record--sm { width: 52px; box-shadow: 0 4px 10px rgba(43, 35, 39, 0.2), inset 0 0 0 2px #2b2327; }
.record--xs { width: 48px; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* レコードの上に重なる再生ボタン */
.pi {
  position: absolute;
  display: grid;
  place-items: center;
}
.card-play, .pick-play, .row-play {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.card-play .pi, .pick-play .pi, .row-play .pi {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(43, 35, 39, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.card-play .pi svg, .pick-play .pi svg { width: 42%; }
.row-play .pi { width: 60%; }
.row-play .pi svg { width: 55%; }
.card-play:hover .pi, .pick-play:hover .pi, .row-play:hover .pi,
.card-play:focus-visible .pi, .pick-play:focus-visible .pi, .row-play:focus-visible .pi,
.is-current .pi { opacity: 1; transform: none; }
.is-on .pi { color: var(--pink-deep); }

/* ===== トップ：ヒーロー ===== */
.hero { padding: 64px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(63, 148, 103, 0.18);
}
.hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--text) 0%, var(--text) 45%, var(--pink-deep) 75%, #e98a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 20px 0 32px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  display: flex;
  gap: 40px;
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 0;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
}
.stats small {
  margin-left: 2px;
  font-family: var(--font-jp);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.now-card {
  position: absolute;
  left: 0;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.now-text { min-width: 0; }
.now-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.now-title {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* イコライザー */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 20px;
  height: 18px;
  flex-shrink: 0;
}
.eq i {
  flex: 1;
  height: 30%;
  border-radius: 2px;
  background: var(--pink);
}
.eq.is-on i { animation: bounce 0.9s ease-in-out infinite; }
.eq.is-on i:nth-child(2) { animation-delay: -0.3s; }
.eq.is-on i:nth-child(3) { animation-delay: -0.6s; }
.eq.is-on i:nth-child(4) { animation-delay: -0.15s; }
@keyframes bounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

/* ===== セクション共通 ===== */
.section { padding: 36px 0; }
.eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 900; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sub-head {
  margin: 28px 0 12px;
  font-size: 1rem;
  color: var(--muted);
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* ===== 新着（横スクロール） ===== */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.card {
  scroll-snap-align: start;
  min-width: 0;
}
.card-play { width: 100%; margin-bottom: 12px; }
.card-title {
  display: block;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title:hover { color: var(--pink-deep); }
.card-meta {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== おすすめ ===== */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.pick {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.pick:hover { transform: translateY(-3px); }
.pick.is-current { border-color: var(--pink); }
.pick-play { width: 120px; flex-shrink: 0; }
.pick-body { min-width: 0; }
.pick-title {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}
.pick-image {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== ランキング ===== */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.rank-card {
  padding: 20px 20px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}
.rank-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.rank-head svg { width: 20px; height: 20px; color: var(--pink-deep); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item {
  display: grid;
  grid-template-columns: 28px 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 12px;
  transition: background 0.2s;
}
.rank-item + .rank-item { border-top: 1px solid var(--line); }
.rank-item.is-current { background: #fff0f4; }
.rank-no {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  color: var(--muted);
}
.rank-1 .rank-no { color: #d4a017; }
.rank-2 .rank-no { color: #9aa3ad; }
.rank-3 .rank-no { color: #c07a45; }
.crown {
  position: absolute;
  top: -8px;
  left: -6px;
  width: 22px;
  height: 22px;
  transform: rotate(-18deg);
  filter: drop-shadow(0 2px 3px rgba(43, 35, 39, 0.25));
}
.crown svg { width: 100%; height: 100%; }
.rank-1 .crown { color: #f2c230; }
.rank-2 .crown { color: #c3cad2; }
.rank-3 .crown { color: #d99562; }
.rank-body { min-width: 0; }
.rank-count {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank-empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ===== 曲リスト ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(43, 35, 39, 0.05);
}
.tab {
  padding: 6px 18px;
  border: none;
  border-radius: 999px;
  background: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab.is-active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(43, 35, 39, 0.08);
}
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 320px;
  justify-content: flex-end;
}
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 260px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field svg { width: 17px; height: 17px; flex-shrink: 0; }
.field:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 127, 160, 0.15);
}
.field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
}
.select {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}
.count {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}
.row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background 0.2s;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: rgba(255, 255, 255, 0.9); }
.row.is-current { background: #fff0f4; }
.row-play { width: 52px; }
.row-body { min-width: 0; }
.row-title {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-title:hover { color: var(--pink-deep); }
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.row-time {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-dl svg { width: 16px; height: 16px; }
.btn-dl:hover { background: var(--mint-deep); border-color: var(--mint-deep); color: #fff; }
.btn-dl.is-locked,
.btn-dl.is-locked:hover {
  background: #eef0fb;
  border-color: transparent;
  color: #5a63a8;
  font-family: var(--font-jp);
  cursor: default;
}

/* 曲名の下の一文（提供先など） */
.track-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  color: #c0392b;
}
.track-note svg { width: 16px; height: 12px; flex-shrink: 0; }
.detail-info .track-note { margin: -4px 0 14px; font-size: 0.9rem; }
.pick-body .track-note { margin: 0 0 6px; }

/* 試聴のみの曲 */
.btn-locked {
  background: #eef0fb;
  color: #5a63a8;
  cursor: default;
}
.listen-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #5a63a8;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.pager button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-en);
  font-weight: 600;
  cursor: pointer;
}
.pager button svg { width: 16px; height: 16px; }
.pager button.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.pager button:disabled { opacity: 0.35; cursor: default; }

/* ===== 利用案内 ===== */
.usage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px 40px;
  padding: 36px 40px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 199, 168, 0.5), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(158, 217, 184, 0.45), transparent 50%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}
.usage p { margin: 10px 0 0; }
.usage-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-weight: 700;
}
.usage-points li { display: flex; align-items: center; gap: 10px; }
.ok, .ng {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  font-weight: 900;
}
.ok { background: var(--mint-soft); color: var(--mint-deep); }
.ng { background: var(--pink-soft); color: var(--pink-deep); }
.usage .btn { grid-column: 1 / -1; justify-self: start; }

/* ===== 下層ページ共通 ===== */
.page { padding-top: 24px; }
.page-narrow { max-width: 820px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pink-deep); }
.crumbs span:last-child {
  max-width: 50vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.3; }
.page-head p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }

/* ===== 曲の詳細 ===== */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 40px 0 32px;
}
.detail-visual { display: grid; place-items: center; }
.detail-title {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
}
.detail-image {
  margin: 0 0 14px;
  color: var(--muted);
}
.detail-image span {
  display: inline-block;
  margin-right: 10px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(43, 35, 39, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 2px;
}
.spec {
  display: flex;
  gap: 32px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec dt { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.spec dd {
  margin: 0;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.share-btn:hover { background: var(--surface-solid); }
.share-btn svg { width: 14px; height: 14px; }

.lyrics p {
  margin: 0;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  line-height: 2.1;
}

.credit-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed rgba(217, 83, 123, 0.35);
}
.credit-box p { margin: 0; }
.credit-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.credit-line code {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--surface-solid);
  font-family: var(--font-jp);
  font-weight: 700;
}

.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 8px;
}
.pn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
  transition: background 0.2s;
}
.pn:hover { background: var(--surface-solid); }
.pn svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--pink-deep); }
.pn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn small { display: block; font-size: 0.72rem; color: var(--muted); }
.pn-next { justify-content: flex-end; text-align: right; }

/* ===== 文章ページ ===== */
.doc {
  margin-top: 16px;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.doc h2 {
  margin: 32px 0 8px;
  font-size: 1.2rem;
  padding-left: 12px;
  border-left: 4px solid var(--pink);
}
.doc h2:first-of-type { margin-top: 8px; }
.doc p { margin: 8px 0; }
.doc ul { margin: 8px 0; padding-left: 0; list-style: none; }
.doc li { position: relative; padding-left: 28px; margin: 6px 0; }
.doc li::before {
  position: absolute;
  left: 0;
  top: 0.35em;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 900;
}
.doc-ok li::before { content: "✓"; background: var(--mint-soft); color: var(--mint-deep); }
.doc-ng li::before { content: "×"; background: var(--pink-soft); color: var(--pink-deep); }
.doc-credit {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--surface-solid);
  font-weight: 700;
}
.doc-note {
  font-size: 0.82rem;
  color: var(--muted);
}
.contact-box { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

.notfound {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 80px 0;
  text-align: center;
}

/* ===== フッター ===== */
.footer {
  margin-top: 48px;
  padding: 40px 0 16px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== 再生バー ===== */
.player {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  animation: rise 0.35s ease-out;
}
.player[hidden] { display: none; }
.player-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(43, 35, 39, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 16px 40px rgba(43, 35, 39, 0.3);
}
.player-rec { flex-shrink: 0; display: block; }
.player .record { background: radial-gradient(circle, #4a3f44 0%, #1f191c 70%); }
.player .record-label::after { background: #2b2327; }
.player-info { flex: 1; min-width: 0; }
.player-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-title:hover { text-decoration: underline; }
.player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
#player-seek {
  flex: 1;
  min-width: 0;
  accent-color: var(--pink);
}
.player-ctrl { display: flex; align-items: center; gap: 4px; }
.ctrl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.ctrl svg { width: 18px; height: 18px; }
.ctrl:hover { background: rgba(255, 255, 255, 0.1); }
.ctrl:disabled { opacity: 0.3; cursor: default; background: none; }
.ctrl-main {
  width: 46px;
  height: 46px;
  background: var(--grad);
}
.ctrl-main:hover { background: var(--grad); filter: brightness(1.05); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ===== タブレット ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .record--hero { width: min(280px, 70vw); }
  .now-card { left: 50%; transform: translateX(-50%); bottom: -16px; }
  .detail { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .record--lg { width: min(300px, 76vw); }
  .usage { grid-template-columns: 1fr; padding: 28px; }
}

/* ===== スマホ ===== */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .stats { gap: 28px; }
  .stats dd { font-size: 1.6rem; }
  .hero-actions .btn { flex: 1; }
  .shelf { grid-auto-columns: 140px; gap: 16px; }
  .pick { padding: 16px; gap: 16px; }
  .pick-play { width: 96px; }
  .toolbar-right { flex-basis: 100%; }
  .field { flex: 1 1 100%; }
  .select { flex: 1; min-width: 0; }
  .row { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 10px 6px; }
  .row-play, .record--sm { width: 48px; }
  .row-time { display: none; }
  .btn-dl { padding: 10px; }
  .btn-dl span { display: none; }
  .detail-actions .btn { flex: 1; }
  .spec { gap: 20px; }
  .prevnext { grid-template-columns: 1fr; }
  .doc { padding: 24px 20px; }
  .player { left: 8px; right: 8px; bottom: 8px; }
  .player-inner { border-radius: 28px; gap: 10px; }
  .record--xs { width: 42px; }
  .ctrl { width: 32px; height: 32px; }
  .ctrl-main { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .eq.is-on i, .player { animation: none; }
  .record.is-spinning { animation-duration: 30s; }
  html { scroll-behavior: auto; }
}
