:root {
  color-scheme: light;
  --ink: #182018;
  --muted: #687068;
  --paper: #fffaf2;
  --card: #fff;
  --pink: #ff8e9a;
  --pink-soft: #ffd7da;
  --line: rgba(24, 32, 24, .14);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }

.site-header { position: fixed; z-index: 20; top: 0; width: 100%; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 68px); background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid rgba(24,32,24,.09); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand span { font-size: clamp(22px, 2.1vw, 34px); }
.brand small { font-size: 11px; letter-spacing: .14em; }
.global-nav { display: flex; gap: clamp(24px, 3.5vw, 58px); text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.global-nav a { position: relative; padding: 10px 0; text-decoration: none; }
.global-nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.global-nav a:hover::after, .global-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; }
.section-number, .eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }

main { max-width: 1500px; margin: auto; padding: calc(var(--header-h) + clamp(60px, 8vw, 120px)) clamp(20px, 5vw, 76px) 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: clamp(56px, 7vw, 100px); }
.page-heading .section-number { margin: 0 0 24px; }
h1 { margin: 0; font-size: clamp(58px, 9vw, 138px); line-height: .82; letter-spacing: -.075em; }
h1 span { color: var(--pink); }
.mobile-title-break { display: none; }
.page-stats { display: flex; gap: clamp(28px, 4vw, 54px); padding-bottom: 5px; }
.page-stats div { display: grid; text-align: right; }
.page-stats strong { font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.page-stats span { margin-top: 7px; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.filter-stack { min-width: 0; display: grid; flex: 1 1 auto; gap: 20px; }
.tabs { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; gap: 8px; margin-top: -46px; padding-top: 46px; overflow-x: auto; }
.tab-group { display: flex; flex: 0 0 auto; align-items: center; min-height: 42px; border: 1px solid transparent; border-radius: 999px; transition: border-color .3s ease, background .3s ease, padding .35s cubic-bezier(.22,.61,.36,1); }
.tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s ease;
}
.tab:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.tab-group.is-active .tab { color: #fff; background: var(--ink); }
.tab--with-check { display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
.tab--with-check.is-muted .tab-label-text { opacity: .42; }
.tab-check { position: relative; display: inline-block; color: currentColor; font-size: 1em; font-weight: 700; line-height: 1; opacity: .38; transform: translateY(-.03em) scale(.94); transition: color .2s, opacity .2s, transform .2s; }
.tab-check.is-checked { opacity: 1; transform: translateY(-.03em) scale(1); }
.tab-check:hover { color: #d85f70; opacity: 1; transform: translateY(-.03em) scale(1.08); }
.tab-group.is-active .tab-check:hover { color: var(--pink); }
.tab-check::before {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 260px;
  padding: 8px 11px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(25,15,23,.16);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px) scale(.98);
  transition: opacity .2s ease .5s, transform .2s ease .5s;
}
.tab-check::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% + 6px);
  border: 6px solid transparent;
  border-top-color: rgba(255,255,255,.96);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .2s ease .5s, transform .2s ease .5s;
}
.tab-check:hover::before,
.tab-check:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.tab-group--expandable { display: grid; }
.tab-group-trigger, .tab-subgroup { grid-area: 1 / 1; }
.tab-group-trigger { max-width: 220px; overflow: hidden; opacity: 1; transform: translateX(0); transition: max-width .4s cubic-bezier(.22,.61,.36,1), padding .4s cubic-bezier(.22,.61,.36,1), opacity .18s ease, transform .3s ease; }
.tab-subgroup { display: flex; align-items: center; gap: 2px; max-width: 0; overflow: hidden; opacity: 0; pointer-events: none; transform: translateX(-8px); transition: max-width .45s cubic-bezier(.22,.61,.36,1), opacity .22s ease .06s, transform .35s ease; }
.tab-group--expandable.is-expanded { padding: 4px; border-color: var(--ink); background: rgba(255,255,255,.32); }
.tab-group--expandable.is-expanded .tab-group-trigger { max-width: 0; padding-right: 0; padding-left: 0; opacity: 0; pointer-events: none; transform: translateX(8px); }
.tab-group--expandable.is-expanded .tab-subgroup { max-width: 340px; opacity: 1; pointer-events: auto; transform: translateX(0); }
.subtab { min-height: 32px; padding: 6px 14px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.subtab:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.subtab.is-active { color: #fff; background: var(--ink); }
.search { width: min(270px, 100%); flex: 0 1 270px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding: 8px 2px; }
.search[hidden] { display: none; }
.search svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: #aaa1a8; }
.tag-browser { position: relative; padding-top: 18px; border-top: 1px solid var(--line); }
.tag-browser-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.clear-tag { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.tag-filters { display: grid; gap: 16px; max-height: 132px; overflow: hidden; transition: max-height .55s cubic-bezier(.22,.61,.36,1); }
.tag-browser:not(.is-expanded)::after { content: ""; position: absolute; z-index: 1; right: 0; bottom: 38px; left: 0; height: 76px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--paper) 88%); }
.tag-browser.is-expanded .tag-filters { max-height: 1200px; }
.tag-browser-toggle { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 10px; padding: 10px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; letter-spacing: .12em; cursor: pointer; }
.tag-browser-toggle:hover { color: var(--ink); }
.tag-browser-toggle-icon { display: inline-block; font-size: 13px; transition: transform .3s ease; }
.tag-browser.is-expanded .tag-browser-toggle-icon { transform: rotate(180deg); }
.tag-filter-group { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: start; }
.tag-filter-group > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.38); font-size: 12px; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.tag-filter--artist { background: rgba(255,255,255,.7); }
.tag-filter small { color: var(--muted); font-size: 9px; }
.tag-filter:hover { border-color: var(--pink); }
.tag-filter.is-active { border-color: var(--ink); color: #fff; background: var(--ink); }
.tag-filter.is-active small { color: rgba(255,255,255,.65); }

.archive { padding: 90px 0 140px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.section-heading .eyebrow { margin: 0 0 9px; color: #d85f70; }
h2 { margin: 0; font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -.05em; }
.result-count { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.music-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 24px; }
.music-card { min-width: 0; animation: card-in .45s both; }
.artwork {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 0;
  color: white;
  background: linear-gradient(145deg, var(--tone-a), var(--tone-b));
  border-radius: 3px;
  font: inherit;
  text-decoration: none;
}
.artwork-details { position: absolute; z-index: 1; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.artwork img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.artwork:hover img { transform: scale(1.035); }
.artwork:has(.artwork-details:focus-visible) { outline: 2px solid var(--pink); outline-offset: 4px; }
.artwork-mark { position: absolute; z-index: 1; top: 20px; right: 22px; font-size: 48px; opacity: .55; }
.artwork-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1; box-shadow: 0 4px 14px rgba(25,15,23,.14); }
.play { position: absolute; z-index: 3; right: 16px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--ink); font-size: 12px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.play:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.card-body { padding: 18px 2px 0; cursor: pointer; }
.card-details {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.card-details:hover h3 { color: var(--pink); }
.card-details:focus-visible { outline: 2px solid var(--pink); outline-offset: 7px; border-radius: 2px; }
.card-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.music-card h3 { margin: 8px 0 7px; overflow: hidden; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.35; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.artists { margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tieup { margin: 12px 0 0; color: #b44a61; font-size: 11px; font-weight: 600; }
.empty { padding: 80px 20px; text-align: center; color: var(--muted); }

body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 20, 28, .62); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow-y: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(30, 15, 25, .3);
  transform: translateY(14px) scale(.985);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal-panel { transform: none; }
.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: white;
  background: rgba(25,18,24,.35);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--ink); }
.modal-visual {
  min-height: 240px;
  padding: 40px;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, var(--tone-a), var(--tone-b));
}
.modal-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,16,24,.72), rgba(27,16,24,.06)); }
.modal-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-heading { position: relative; z-index: 1; padding-right: 48px; }
.modal-heading .eyebrow { margin: 0 0 10px; opacity: .8; }
.modal-heading h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.2; }
.modal-heading p { margin: 10px 0 0; font-size: 13px; }
.modal-content { padding: 36px 40px 44px; }
.detail-section + .detail-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-section--tags { margin-top: 0; }
.detail-label { margin: 0 0 14px; color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 0;
  font-family: inherit;
}
.tag-chip--artist,
.tag-chip--tag { color: #4f484d; background: #e7e4e5; }
button.tag-chip { cursor: pointer; transition: color .2s, background .2s, transform .2s; }
button.tag-chip:hover { color: #fff; background: var(--ink); transform: translateY(-1px); }
button.tag-chip:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.credit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.credit-list div { min-width: 0; }
.credit-list dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.credit-list dd { margin: 0; font-size: 14px; line-height: 1.6; }
.detail-copy { margin: 0; font-size: 14px; line-height: 1.8; }
.original-reference { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.7; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.original-reference:hover { color: var(--pink); }
.detail-links { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-link { padding: 10px 15px; border: 1px solid var(--ink); border-radius: 99px; font-size: 12px; font-weight: 600; text-decoration: none; transition: .2s; }
.detail-link:hover { color: white; background: var(--ink); }

footer { padding: 50px clamp(24px, 4vw, 68px); display: flex; align-items: end; justify-content: space-between; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 900px) {
  .music-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  :root { --header-h: 70px; }
  .brand small { display: none; }
  .menu-button { display: flex; flex-direction: column; gap: 5px; width: 38px; padding: 10px 4px; border: 0; background: none; }
  .menu-button span:not(.sr-only) { display: block; width: 100%; height: 1px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .global-nav { position: fixed; z-index: -1; top: var(--header-h); left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: 20px 24px 30px; background: var(--paper); transform: translateY(-120%); transition: transform .3s; }
  .global-nav.is-open { transform: none; }
  .global-nav a { padding: 14px 0; border-bottom: 1px solid rgba(24,32,24,.15); }
}
@media (max-width: 620px) {
  main { padding-top: calc(var(--header-h) + 58px); }
  .page-heading { display: block; padding-bottom: 52px; }
  .page-heading .section-number { margin-bottom: 18px; }
  h1 { font-size: clamp(52px, 17vw, 76px); line-height: .9; }
  .mobile-title-break { display: block; }
  .page-stats { margin-top: 38px; }
  .page-stats div { text-align: left; }
  .toolbar { align-items: stretch; flex-direction: column; margin-inline: -20px; }
  .filter-stack { padding-inline: 20px; }
  .tag-filter-group { grid-template-columns: 1fr; gap: 7px; }
  .tag-filter-group > p { margin-top: 0; }
  .tabs {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding-bottom: 4px;
  }
  .tab-group {
    width: 100%;
    flex: 0 0 auto;
    border-color: var(--line);
    border-radius: 8px;
  }
  .tab,
  .subtab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    text-align: center;
  }
  .tab--with-check {
    position: relative;
    min-height: 42px;
    overflow: hidden;
    padding-right: 58px;
    padding-left: 58px;
  }
  .tab--with-check .tab-label-text {
    flex: 1 1 auto;
    text-align: center;
  }
  .tab-check {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52px;
    height: auto;
    display: grid;
    place-items: center;
    border-left: 1px solid var(--line);
    border-radius: 0 7px 7px 0;
    background: rgba(24, 32, 24, .035);
    font-size: 0;
    opacity: 1;
    transform: none;
  }
  .tab-check.is-checked {
    opacity: 1;
    transform: none;
  }
  .tab-check:hover {
    color: inherit;
    background: rgba(24, 32, 24, .08);
    opacity: 1;
    transform: none;
  }
  .tab-check::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 2px;
    max-width: none;
    padding: 0;
    border-radius: 999px;
    color: inherit;
    background: currentColor;
    box-shadow: none;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: none;
  }
  .tab-check::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: none;
  }
  .tab-check:hover::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .tab-check:hover::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .tab-group--expandable {
    display: block;
  }
  .tab-group-trigger,
  .tab-subgroup {
    grid-area: auto;
  }
  .tab-group-trigger {
    max-width: none;
  }
  .tab-subgroup {
    flex-direction: column;
    gap: 6px;
    max-width: none;
    max-height: 0;
    transform: translateY(-6px);
    transition: max-height .35s cubic-bezier(.22,.61,.36,1), opacity .2s ease, transform .25s ease;
  }
  .tab-group--expandable.is-expanded {
    padding: 6px;
  }
  .tab-group--expandable.is-expanded .tab-group-trigger {
    max-width: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .tab-group--expandable.is-expanded .tab-subgroup {
    max-height: 160px;
    max-width: none;
    transform: translateY(0);
  }
  .search { width: 100%; flex-basis: auto; }
  .archive { padding-top: 52px; }
  .music-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .section-heading { align-items: start; }
  footer { gap: 16px; flex-direction: column; }
  .modal {
    align-items: center;
    padding: calc(16px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  }
  .modal-panel {
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 12px 12px 5px 5px;
  }
  .modal-close {
    top: 12px;
    right: 12px;
  }
  .modal-visual { min-height: 210px; padding: 28px 24px; }
  .modal-content { padding: 28px 24px 34px; }
  .credit-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
