/* =========================================================================
 * JB ENTERTAINMENT — common.css
 * Design system: see /docs/DESIGN_RULES.md
 * ========================================================================= */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --text: #ffffff;
  --text-paper: #111111;
  --text-mute: rgba(255, 255, 255, 0.55);
  --text-mute-paper: rgba(0, 0, 0, 0.55);
  --accent: #ffe600;
  --error:  #ff6b6b;
  --line: rgba(255, 255, 255, 0.15);
  --line-paper: rgba(0, 0, 0, 0.12);
  /* Slightly lifted black for image-card placeholders (waiting for the real
   * image to load). Kept distinct from --ink (pure black) so card frames
   * remain visible against the page background. */
  --card-bg: #1a1a1a;

  --bp-sp-narrow: 480px;
  --bp-sp: 768px;
  --bp-tablet: 960px;
  --bp-pc-wide: 1240px;

  --header-h: 80px;
  --pad-x-pc: 60px;
  --pad-x-sp: 24px;

  --font-display: 'Oswald', 'Helvetica Neue Condensed', 'Helvetica Neue', 'Impact', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-mono: 'Inter', 'SF Mono', monospace;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-jp);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-size: 13px;
  line-height: 1.8;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

body.theme-paper {
  background: var(--paper);
  color: var(--text-paper);
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--accent);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* Display helpers */
.sp-only { display: none; }
@media (max-width: 768px) { /* --bp-sp */
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* =========================================================================
 * Site header
 * ========================================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x-pc);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.theme-paper .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.site-logo {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text);
  white-space: nowrap;
}

.site-logo-text {
  white-space: nowrap;
}

body.theme-paper .site-logo { color: var(--text-paper); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text);
}

body.theme-paper .menu-toggle { color: var(--text-paper); }

.menu-toggle-icon {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 14px;
  /* Nudge the icon up 1px (= -3px previous + 2px down) while keeping the MENU label aligned */
  transform: translateY(-1px);
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.menu-toggle-icon span:nth-child(1) { top: 4px; }
.menu-toggle-icon span:nth-child(2) { top: 10px; }

.menu-is-open .menu-toggle-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.menu-is-open .menu-toggle-icon span:nth-child(2) {
  top: 7px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) { /* --bp-sp */
  .site-header {
    padding: 0 var(--pad-x-sp);
    height: 64px;
  }
  .site-logo { font-size: 12px; }
  /* On SP the icon alone communicates state (☰ ↔ ✕); hide the MENU/CLOSE text. */
  .menu-toggle-label { display: none; }
}

/* =========================================================================
 * Site menu (full-screen overlay)
 * ========================================================================= */

/* Drawer that slides in from the right edge.
 * Width: 480px on PC, full-width on SP. The page behind dims via backdrop. */
.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.menu-is-open .site-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  z-index: 90;
  background: var(--ink);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) 56px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}

.menu-is-open .site-menu {
  transform: translateX(0);
  pointer-events: auto;
}

.site-menu-inner {
  width: 100%;
}

.site-menu-list {
  display: flex;
  flex-direction: column;
}

.site-menu-item {
  border-bottom: 1px solid var(--line);
}

.site-menu-item:first-child {
  border-top: 1px solid var(--line);
}

.site-menu-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 28px 0;
  color: var(--text);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s ease;
  transition-delay: calc(var(--i, 0) * 70ms + 250ms);
}

.menu-is-open .site-menu-item a {
  opacity: 1;
  transform: none;
}

.site-menu-en {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.04em;
  line-height: 1;
  grid-column: 1;
  grid-row: 1;
}

.site-menu-jp {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  grid-column: 1;
  grid-row: 2;
  margin-top: 6px;
}

.site-menu-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--text-mute);
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.site-menu-item a:hover .site-menu-en,
.site-menu-item a:focus-visible .site-menu-en,
.site-menu-item.is-active .site-menu-en {
  color: var(--accent);
}

.site-menu-item a:hover .site-menu-arrow,
.site-menu-item a:focus-visible .site-menu-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

@media (max-width: 768px) { /* --bp-sp */
  .site-menu {
    width: 100vw;
    border-left: 0;
    padding: calc(64px + 32px) var(--pad-x-sp) 32px;
  }
  .site-menu-en {
    font-size: 32px;
  }
  .site-menu-item a {
    padding: 22px 0;
  }
}

/* =========================================================================
 * Main / sections
 * ========================================================================= */

.site-main {
  position: relative;
}

/* Section spacing: padding-top/bottom 200px so two adjacent sections have a 400px gap. */
.section {
  padding: 200px var(--pad-x-pc);
  max-width: 1480px;
  margin: 0 auto;
}

@media (max-width: 768px) { /* --bp-sp */
  .section {
    padding: 100px var(--pad-x-sp);
  }
}

/* Page main visual (sub-page header) */
.page-mv {
  position: relative;
  padding: calc(var(--header-h) + 80px) var(--pad-x-pc) 60px;
  border-bottom: 1px solid var(--line);
}

.page-mv-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.page-mv-eyebrow {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 24px;
}

.page-mv-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 10.8vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.page-mv-sub {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 16px;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) { /* --bp-sp */
  .page-mv {
    padding: calc(64px + 48px) var(--pad-x-sp) 40px;
  }
}

/* Section heads */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-en {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.85vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-jp {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: 12px;
}

/* "提携アーティスト" — enlarged + brighter so it reads clearly as partner
 * (not 所属) artists. Applied only to the ARTISTS heading instances. */
.section-jp.is-partner-emphasis,
.page-mv-sub.is-partner-emphasis {
  font-size: 17px;
  color: var(--text);
}

.section-link {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) { /* --bp-sp */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =========================================================================
 * Breadcrumb
 * ========================================================================= */

.breadcrumb {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-on-image {
  position: absolute;
  bottom: 24px;
  left: var(--pad-x-pc);
  margin-top: 0;
  z-index: 2;
}

@media (max-width: 768px) { /* --bp-sp */
  .breadcrumb-on-image {
    left: var(--pad-x-sp);
    bottom: 16px;
  }
}

/* =========================================================================
 * Animated link arrow
 * Used in inline CTAs ("VIEW ALL →", "MORE ABOUT US →" etc.).
 * The arrow shaft expands on parent <a> hover/focus.
 * ========================================================================= */

.link-arrow {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 1em;
  margin-left: 12px;
  vertical-align: middle;
  transition: width 0.45s var(--ease-out);
}

.link-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 4px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: translateY(-0.5px);
}

.link-arrow::after {
  content: '';
  position: absolute;
  right: 1px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

a:hover > .link-arrow,
a:focus-visible > .link-arrow {
  width: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .link-arrow {
    transition: none;
  }
}

/* =========================================================================
 * Marker Reveal — マーカーリビール
 *
 * 重要なステートメント文を強調する2段アニメーション。
 *   Phase 1 — 白文字が左から1文字ずつフェードイン
 *   Phase 2 — 黄色マーカーが左から右へスイープしながら、文字色が
 *             白 → 黒 にスイープ位置と同期して切り替わる。
 *
 * トリガ: IntersectionObserver により `.is-visible` が付与されたとき。
 * マークアップ: PHP ヘルパー `marker_reveal($text)` を使用 (helpers.php)。
 *
 * 1ページ1箇所のみを推奨 (キーメッセージ専用)。本文・ナビ・装飾には不可。
 * ========================================================================= */

:root {
  --mr-stagger: 0.045s;   /* per-char reveal delay */
  --mr-reveal:  0.5s;     /* per-char reveal duration */
  --mr-pause:   0.25s;    /* pause between phase 1 and phase 2 */
  --mr-sweep:   0.9s;     /* total time for yellow sweep + color shift */
}

.marker-reveal {
  /* --char-count is set inline per instance from PHP */
  position: relative;
  display: inline-block;
  padding: 0.1em 0.18em;
  margin: -0.1em -0.18em;
  max-width: 100%;
}

/* Logo marker-reveal: extend the yellow background 5px past the text on each side.
 *
 * The base rule applies negative horizontal margins to compensate for inline
 * padding inside body text. For the logo, the marker-reveal is the sole content
 * of a fixed-size flex item, so the negative margins (combined with
 * `max-width: 100%`) shrink the flex parent and cause the right padding to be
 * clipped. We zero the margins and unset max-width here. */
.marker-reveal.site-logo-text {
  /* top 0.1em · right 5px · bottom (0.1em - 1px) · left 7px (5+2 extra for J) */
  padding: 0.1em 5px calc(0.1em - 1px) 7px;
  margin: 0;
  max-width: none;
}

.marker-reveal-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--mr-sweep) var(--ease-out);
  transition-delay: calc(var(--char-count, 12) * var(--mr-stagger) + var(--mr-pause));
}

.marker-reveal-text {
  position: relative;
  z-index: 1;
  display: inline;
}

.marker-reveal-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  color: inherit;
  /* Two animations: char fade-in (phase 1) + color shift to ink (phase 2). */
  animation:
    marker-reveal-in var(--mr-reveal) var(--ease-out) forwards,
    marker-reveal-color 0.12s linear forwards;
  animation-delay:
    calc(var(--i, 0) * var(--mr-stagger)),
    calc(
      var(--char-count, 12) * var(--mr-stagger)
      + var(--mr-pause)
      + var(--i, 0) * (var(--mr-sweep) / var(--char-count, 12))
    );
  animation-play-state: paused;
}

@keyframes marker-reveal-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marker-reveal-color {
  to {
    color: var(--ink);
  }
}

.marker-reveal.is-visible .marker-reveal-char {
  animation-play-state: running;
}

.marker-reveal.is-visible .marker-reveal-bg {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .marker-reveal-char {
    opacity: 1;
    transform: none;
    animation: none;
    color: var(--ink);
  }
  .marker-reveal-bg {
    transform: scaleX(1);
    transition: none;
  }
}

/* =========================================================================
 * Reveal animations
 * ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================================
 * Back to top button — appears bottom-right after scrolling. Smooth-scrolls
 * the viewport to y=0 on click. JS toggles `.is-visible` based on scrollY.
 * ========================================================================= */

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 62px;
  z-index: 80;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  width: 56px;
  height: 56px;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 50%;

  color: var(--text);
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.15em;

  cursor: pointer;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.back-to-top-arrow {
  font-size: 14px;
  line-height: 1;
}

.back-to-top-label {
  font-size: 8px;
  letter-spacing: 0.18em;
}

@media (max-width: 768px) { /* --bp-sp */
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .back-to-top-arrow {
    font-size: 12px;
  }
  .back-to-top-label {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.2s linear, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    transform: none;
  }
}

/* =========================================================================
 * Footer
 * ========================================================================= */

.site-footer {
  background: var(--ink);
  color: var(--text);
  padding: 80px var(--pad-x-pc) 32px;
  border-top: 1px solid var(--line);
}

body.theme-paper .site-footer {
  background: var(--ink);
  color: var(--text);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-areas:
    "brand site info follow"
    "contact site info follow";
  column-gap: 48px;
  row-gap: 0;
  max-width: 1480px;
  margin: 0 auto 48px;
}

/* Push brand to the bottom of its row and contact to the top of its row, so
 * the logo sits directly above the address with no gap between them. */
.site-footer-col-brand {
  grid-area: brand;
  align-self: end;
}
.site-footer-col-site    { grid-area: site; }
.site-footer-col-info    { grid-area: info; }
.site-footer-col-follow  { grid-area: follow; }
.site-footer-col-contact {
  grid-area: contact;
  align-self: start;
  padding-top: 10px;
}

.site-footer-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
}

.site-footer-meta {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.site-footer-mail a {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.site-footer-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.site-footer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.site-footer-list .is-disabled {
  color: var(--text-mute);
  opacity: 0.4;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  max-width: 1480px;
  margin: 0 auto;
}

.site-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-footer-credit-label {
  color: var(--text-mute);
}

.site-footer-credit-jbg {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-footer-credit-jbg:hover,
.site-footer-credit-jbg:focus-visible {
  opacity: 1;
}

.site-footer-credit-jbg img {
  height: 14px;
  width: auto;
  display: block;
}

@media (max-width: 768px) { /* --bp-sp */
  .site-footer {
    padding: 56px var(--pad-x-sp) 24px;
  }
  /* Stack columns vertically. Source order intentionally matches the desired
   * SP order: logo → SITE → INFO → FOLLOW → contact (address + email). */
  .site-footer-inner {
    display: flex;
    flex-direction: column;
    grid-template-areas: none;
    gap: 32px;
  }
  /* Reset PC's grid align-self so they don't right-align in flex column */
  .site-footer-col-brand,
  .site-footer-col-contact {
    align-self: stretch;
  }
  /* SP order: SITE → INFO → FOLLOW → logo → address (just above copyright) */
  .site-footer-col-site    { order: 1; }
  .site-footer-col-info    { order: 2; }
  .site-footer-col-follow  { order: 3; }
  .site-footer-col-brand   {
    order: 4;
    /* Extra breathing room above the title */
    margin-top: 35px;
  }
  .site-footer-col-contact {
    order: 5;
    padding-top: 0;
    /* Tighten the gap between title (logo) and address by 25px */
    margin-top: -25px;
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px; /* reduced 20px below copyright */
  }
  .site-footer-credit-jbg img {
    height: 12px;
  }
}

/* =========================================================================
 * Artist card (used on HOME and /artists/)
 * ========================================================================= */

/* Grid — used on /artists/ list page only */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 20px;
}

.artists-grid-large {
  gap: 48px 20px;
}

@media (max-width: 1240px) { /* --bp-pc-wide */
  .artists-grid { gap: 28px 16px; }
}

@media (max-width: 960px) { /* --bp-tablet — switch to 3 cols (3 + 2 layout) */
  .artists-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 16px;
  }
}

@media (max-width: 768px) { /* --bp-sp — 2 cols (2 + 2 + 1 layout) */
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

/* Marquee — JS-driven horizontal carousel for HOME ARTISTS section.
 * Cards are rendered twice (server-side) so the second set seamlessly takes
 * over when scrollLeft passes the boundary. Auto-scroll is driven by
 * requestAnimationFrame in app.js, with manual prev/next arrow controls in
 * the section header. The scrollbar is hidden but native scroll/touch/swipe
 * still work. */
.artists-marquee {
  position: relative;
  /* Break out of section padding to span the full viewport width */
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.artists-marquee::-webkit-scrollbar {
  display: none;
}

.artists-marquee-track {
  --marquee-card-w: 320px;
  --marquee-gap: 24px;
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
  padding: 8px 24px;
}

.artists-marquee .artist-card {
  flex: 0 0 var(--marquee-card-w);
}

@media (max-width: 768px) { /* --bp-sp */
  .artists-marquee-track {
    --marquee-card-w: 216px; /* 240 × 0.9 */
    --marquee-gap: 16px;
    padding: 8px 16px;
  }
}

/* Marquee prev/next buttons — replace VIEW ALL link in section-head */
.marquee-controls {
  display: inline-flex;
  gap: 8px;
}

.marquee-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.marquee-btn:hover,
.marquee-btn:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

.marquee-btn:active {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .marquee-btn {
    /* WCAG 2.5.5 — keep tap target at 44×44 minimum on touch devices. */
    width: 44px;
    height: 44px;
    font-size: 12px;
  }
}

.artist-card a {
  display: block;
  color: var(--text);
}

.artist-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}

.artist-card-image-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Default: monochrome + dimmed */
  filter: grayscale(1) brightness(0.55);
  transition: transform 0.6s var(--ease-out), filter 0.5s ease;
}

.artist-card a:hover .artist-card-image-inner,
.artist-card a:focus-visible .artist-card-image-inner {
  /* Hover: full color + scale up */
  transform: scale(1.04);
  filter: grayscale(0) brightness(1);
}

.artist-card-meta {
  display: block;
  padding-top: 16px;
}

.artist-card-num {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 8px;
}

.artist-card-name {
  display: block;
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(25px, 2.7vw, 36px);
  letter-spacing: 0.02em;
  line-height: 1;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

/* Underline: scales 0 → 1 on hover IN (origin: left) so the line draws
 * left → right. On hover OUT the origin flips to right, so the line retracts
 * toward the right (avoiding the unsightly "shrink-to-left" reverse). */
.artist-card-name::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}

.artist-card a:hover .artist-card-name,
.artist-card a:focus-visible .artist-card-name {
  color: var(--accent);
}

.artist-card a:hover .artist-card-name::after,
.artist-card a:focus-visible .artist-card-name::after {
  transform: scaleX(1);
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .artist-card-name::after {
    transition: none;
  }
}

.artist-card-type,
.artist-card-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-top: 8px;
}

.artist-card-label {
  margin-top: 4px;
}
