/*
 * ============================================================
 *  ??????? � OFFICIAL WEBSITE STYLESHEET
 *  style.css
 *
 *  Table of Contents:
 *   1. CSS RESET & CUSTOM PROPERTIES
 *   2. BASE TYPOGRAPHY
 *   3. UTILITY CLASSES
 *   4. SITE HEADER
 *   5. HERO SECTION
 *   6. NEWS SECTION
 *   7. MEMBER SECTION
 *   8. DISCOGRAPHY SECTION
 *   9. GOODS SECTION
 *  10. SITE FOOTER
 *  11. BACK TO TOP BUTTON
 *  12. ANIMATIONS
 *  13. MEDIA QUERIES
 * ============================================================
 */

/* ============================================================
   1. CSS RESET & CUSTOM PROPERTIES
   ============================================================ */

/* --- Box-sizing reset: all elements include padding/border in their width --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Remove default list styles where semantic lists are used decoratively --- */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* --- Smooth scrolling for the whole page --- */
html {
  scroll-behavior: smooth;
  /* Note: overflow-x removed from html — it breaks position:sticky on the header.
     Horizontal overflow is handled by body instead. */
}

body {
  overflow-x: clip; /* clip (not hidden) prevents horizontal scroll without breaking sticky */
}

/* --- CSS Custom Properties (design tokens) --- */
:root {
  /* -- New brand palette -- */
  --color-pink:       #F87590;   /* coral pink � accents, badges, petals */
  --color-rose:       #4883E0;   /* brand blue � CTAs, highlights, links */
  --color-cream:      #f0f4fc;   /* light blue-tinted cream � section backgrounds */
  --color-charcoal:   #0a0a0a;   /* near-black � body text, footer bg */
  --color-white:      #ffffff;   /* pure white */
  --color-pink-light: #fde8ec;   /* very light pink � hover tints */
  --color-rose-dark:  #2d5fb8;   /* darker blue � hover states */
  --color-muted:      #6b7280;   /* muted grey � secondary text */
  --color-border:     #d0ddf7;   /* soft blue-grey � borders */

  /* Category badge colors */
  --color-cat-live:   #4883E0;   /* blue */
  --color-cat-event:  #F87590;   /* pink */
  --color-cat-goods:  #2d5fb8;   /* dark blue */
  --color-cat-info:   #6b7280;   /* grey */

  /* Typography */
  --font-body:        'Noto Sans JP', sans-serif;
  --font-display:     'Playfair Display', serif;

  /* Font sizes (mobile-first base) */
  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.5rem;    /* 24px */
  --fs-2xl:  2rem;      /* 32px */
  --fs-3xl:  2.5rem;    /* 40px */
  --fs-4xl:  3.5rem;    /* 56px */

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:        1200px;
  --header-height:    64px;
  --border-radius-sm: 4px;
  --border-radius:    8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-pink: 0 4px 16px rgba(72,131,224,0.30);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}

/* ============================================================
   2. BASE TYPOGRAPHY
   ============================================================ */

/* --- Body: default font, color, and line-height for readability --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.7;           /* generous line-height for Japanese text readability */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Headings: use display font for decorative headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal);
}

/* --- Paragraph spacing --- */
p {
  line-height: 1.8;           /* extra leading for Japanese mixed-script paragraphs */
}

/* --- Links: inherit color, remove underline by default --- */
a {
  color: var(--color-rose);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-rose-dark);
  text-decoration: underline;
}

/* --- Focus ring: visible for keyboard navigation --- */
:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 3px;
  border-radius: var(--border-radius-sm);
}

/* --- Images: responsive by default --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Japanese text: ensure proper line-break behavior --- */
:lang(ja) {
  word-break: normal;           /* respect word boundaries */
  overflow-wrap: break-word;    /* only break long strings if needed */
  line-break: strict;           /* stricter CJK line-break rules */
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

/* --- .btn: base button styles shared by all variants --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);   /* subtle lift on hover */
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);      /* press-down feedback */
}

/* --- .btn--primary: filled pink/rose button --- */
.btn--primary {
  background-color: var(--color-rose);
  color: var(--color-white);
  border-color: var(--color-rose);
  box-shadow: var(--shadow-pink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-rose-dark);
  border-color: var(--color-rose-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(72,131,224,0.40);
}

/* --- .btn--outline: transparent with rose border --- */
.btn--outline {
  background-color: transparent;
  color: var(--color-rose);
  border-color: var(--color-rose);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-rose);
  color: var(--color-white);
}

/* --- .btn--white: white-filled button (used on dark/colored backgrounds) --- */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-rose);
  border-color: var(--color-white);
}

.btn--white:hover,
.btn--white:focus-visible {
  background-color: var(--color-pink-light);
  color: var(--color-rose-dark);
}

/* --- .section: standard vertical padding wrapper for all page sections --- */
.section {
  padding: var(--space-16) var(--space-4);
  opacity: 0;                    /* initial state for fade-in-up animation */
  transform: translateY(24px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

/* When JS adds .is-visible, the section fades in */
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- .section-header: centered heading block above section content --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

/* --- .section-title: large section heading with decorative underline --- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-3);
}

/* Decorative underline: a centered pink bar below the title */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  border-radius: var(--border-radius-pill);
}

/* --- .section-subtitle: small Japanese subtitle below the title --- */
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  letter-spacing: 0.12em;
  margin-top: var(--space-3);
}

/* --- Max-width container used inside sections --- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ============================================================
   4. SITE HEADER
   Sticky navigation bar with logo and main nav links.
   ============================================================ */

/* --- Outer header: sticky, white background --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

/* When JS adds .site-header--scrolled (after hero passes), show shadow */
.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

/* --- Header inner: flex row, max-width centered --- */
.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* --- Logo: image mark --- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Logo image: constrained height to fit the header */
.logo-img {
  height: 80px;       /* fits neatly inside the 64px header */
  width: auto;        /* preserve aspect ratio */
  display: block;
  object-fit: contain;
}

/* --- Hamburger button: 3-line icon, mobile only --- */
.hamburger {
  display: flex;               /* shown on mobile, hidden on desktop via media query */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.hamburger:hover {
  background-color: var(--color-pink-light);
}

/* Each span is one horizontal line of the hamburger icon */
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-charcoal);
  border-radius: var(--border-radius-pill);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}

/* Animate hamburger ? X when .is-open is added by JS */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Main nav: hidden on mobile by default, shown when open --- */
.main-nav {
  /* Mobile: collapsed dropdown below header */
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-slow);
  opacity: 0;
}

/* When hamburger is open, expand the nav */
.main-nav.is-open {
  max-height: 400px;
  opacity: 1;
}

/* --- Nav list: vertical stack on mobile --- */
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  gap: var(--space-1);
}

/* --- Nav link: individual navigation item --- */
.nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-rose);
  background-color: var(--color-pink-light);
  text-decoration: none;
}

/* Animated underline effect on hover (desktop) � hidden on mobile */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background-color: var(--color-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: var(--border-radius-pill);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   6. HERO SECTION
   Full-viewport splash with group name, tagline, and petals.
   ============================================================ */

/* --- Hero outer: full viewport height, relative for child positioning --- */
.hero {
  position: relative;
  min-height: 100svh;           /* svh = small viewport height, avoids mobile browser chrome */
  min-height: 100vh;            /* fallback for browsers without svh */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* [BG LAYER 1] Dimming overlay � increased opacity for better text legibility */
  background:
    linear-gradient(
      160deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.55) 30%,
      rgba(0, 0, 0, 0.52) 70%,
      rgba(0, 0, 0, 0.58) 100%
    ),
    /* [BG LAYER 2] The actual photo � covers the full hero area */
    url('img/homepage.jpeg') center center / cover no-repeat;
}

/* --- Hero background: subtle dot pattern overlay --- */
.hero-bg {
  position: absolute;
  inset: 0;
  /* Radial dot pattern using CSS gradients */
  background-image:
    radial-gradient(circle, rgba(72,131,224,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* --- Hero petals container: JS injects .petal divs here --- */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Individual petal: small pink circle or ? character */
.petal {
  position: absolute;
  top: -20px;                   /* start above viewport */
  color: var(--color-rose);
  opacity: 0.6;
  font-size: 12px;              /* overridden per-petal by JS inline style */
  animation: petalFall linear infinite;
  will-change: transform, opacity;
  user-select: none;
  pointer-events: none;
}

/* --- Hero content: centered flex column --- */
.hero-content {
  position: relative;           /* above .hero-bg and .hero-petals */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  gap: var(--space-4);
  max-width: 800px;
}

/* --- Hero eyebrow: small label above the main title --- */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 20px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
  /* Animate in from above */
  animation: heroSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

/* --- Hero title: the main h1 --- */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* Japanese group name: large Playfair Display */
.hero-title-jp {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, var(--fs-4xl));
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 4px 16px rgba(0,0,0,0.45),
    0 0 40px rgba(72,131,224,0.40);
  /* Animate in from left */
  animation: heroSlideRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

/* Romanized subtitle: small caps with wide tracking */
.hero-title-en {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 2vw, var(--fs-sm));
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  /* Animate in from right */
  animation: heroSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.5s;
}

/* --- Hero tagline: short descriptive phrase --- */
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--fs-base), 2.5vw, var(--fs-lg));
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55), 0 0 24px rgba(0,0,0,0.3);
  /* Animate in from below */
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.65s;
}

/* --- Hero CTA button: extra padding for prominence --- */
.hero-cta {
  margin-top: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-base);
  /* Fade in last */
  animation: heroFadeIn 0.9s ease both;
  animation-delay: 0.9s;
}

/* ============================================================
   7. NEWS SECTION
   Filterable list of announcements.
   ============================================================ */
/* Animated vertical line */
.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-rose), transparent);
  animation: scrollLinePulse 1.8s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* SCROLL label */
.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--color-rose);
  font-weight: 500;
  text-transform: uppercase;
}

/* ============================================================
   7. NEWS SECTION
   Filterable list of announcements.
   ============================================================ */

/* --- News section background: alternate cream for visual rhythm --- */
.news-section {
  background-color: var(--color-cream);
}

/* --- News filter: row of pill-shaped category tabs --- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* --- Filter tab: individual pill button --- */
.filter-tab {
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-pill);
  background-color: var(--color-white);
  color: var(--color-muted);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--color-rose);
  color: var(--color-rose);
}

/* Active state: filled rose pill */
.filter-tab--active,
.filter-tab[aria-selected="true"] {
  background-color: var(--color-rose);
  border-color: var(--color-rose);
  color: var(--color-white);
}

/* --- News list: clean unstyled list --- */
.news-list {
  list-style: none;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- News item: flex row with date | badge | title --- */
.news-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  transition:
    background-color var(--transition-fast),
    border-left-color var(--transition-fast);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
}

/* Hover: subtle left border highlight + light background */
.news-item:hover {
  background-color: var(--color-white);
  border-left-color: var(--color-rose);
}

/* --- News date: fixed-width column --- */
.news-date {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;             /* optical alignment with badge */
  min-width: 80px;
}

/* --- News category badge: colored pill label --- */
.news-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--border-radius-pill);
  color: var(--color-white);
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 1px;
}

/* Category-specific badge colors via data attribute */
.news-category[data-category="live"]  { background-color: var(--color-cat-live);  }
.news-category[data-category="event"] { background-color: var(--color-cat-event); }
.news-category[data-category="goods"] { background-color: var(--color-cat-goods); }
.news-category[data-category="info"]  { background-color: var(--color-cat-info);  }

/* --- News title: the main link text --- */
.news-title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.6;
  flex: 1;
}

.news-item:hover .news-title {
  color: var(--color-rose);
}

/* --- News more: centered load-more button wrapper --- */
.news-more {
  text-align: center;
  margin-top: var(--space-8);
}

/* ============================================================
   8. MEMBER SECTION
   Reference-style cards: colored photo area, left social rail,
   name footer with accent border.
   ============================================================ */

/* --- Member section background: white --- */
.member-section {
  background-color: var(--color-white);
}

/* --- Member grid: fixed 3�3 layout --- */
/* --- Member grid: 2 cols mobile, 3 cols desktop --- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* --- Member card: fully proportional dark card --- */
.member-card {
  background-color: #1a1a2e;
  border-radius: clamp(12px, 2vw, 20px);
  overflow: hidden;             /* clip everything inside — no overflow collisions */
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.55);
}

/* --- Card body: wraps color block + photo + social rail --- */
.member-card-body {
  position: relative;
  flex: 1;
}

/* --- Color block: hidden — photo fills full card body --- */
.member-color-block {
  display: none;
}

/* --- Photo: fills the card body --- */
.member-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  z-index: 1;
  background-color: #1a1a2e;
}

/* Shimmer — only on placeholder */
.member-photo:has(.member-photo-img)::after {
  display: none;
}

.member-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  pointer-events: none;
}

/* Placeholder icon */
.member-photo-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255,255,255,0.45);
  z-index: 1;
  pointer-events: none;
}

/* Real photo — full image, no crop */
.member-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  z-index: 1;
}

/* --- Card footer: flex row — name left, social icons right --- */
.member-card-footer {
  background-color: #1a1a2e;
  padding: clamp(8px, 1.5vw, 14px) clamp(10px, 2vw, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-radius: 0 0 clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);
}

/* Name block: left side of footer */
.member-footer-names {
  flex: 1;
  min-width: 0;                 /* allow text to truncate if needed */
}

/* Japanese name */
.member-name-jp {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2.5vw, var(--fs-xl));
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Romanized name */
.member-name-en {
  font-family: var(--font-body);
  font-size: clamp(0.45rem, 1.1vw, var(--fs-xs));
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: clamp(2px, 0.3vw, 4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Social rail: right side of footer — horizontal row of icons */
.member-social-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  flex-shrink: 0;
}

/* Social icon button */
.member-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(20px, 2.8vw, 32px);
  height: clamp(20px, 2.8vw, 32px);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.member-social-btn svg {
  width: clamp(16px, 2.2vw, 24px);
  height: clamp(16px, 2.2vw, 24px);
}

.member-social-btn:hover {
  color: var(--color-white);
  transform: scale(1.2);
  text-decoration: none;
}

/* --- Member color bar: kept for compatibility --- */
.member-color-bar {
  height: 4px;
  width: 100%;
  background-color: var(--color-pink);
}
/* ============================================================
   9. DISCOGRAPHY SECTION
   Grid of release cards � mirrors the member section layout.
   ============================================================ */

/* --- Discography section background: white (same as member section) --- */
.disco-section {
  background-color: var(--color-white);
}

/* --- Disco grid: 2 cols mobile, 3 cols desktop --- */
.disco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .disco-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Pagination: numbered page buttons --- */
.disco-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

/* Individual page button */
.disco-page-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.disco-page-btn:hover {
  border-color: var(--color-rose);
  color: var(--color-rose);
  transform: scale(1.08);
}

/* Active page: filled circle */
.disco-page-btn--active {
  background-color: var(--color-rose);
  border-color: var(--color-rose);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(72,131,224,0.35);
}

/* --- Disco card: same rounded card + hover lift as .member-card --- */
.disco-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;  /* stack cover + info vertically */
  height: 100%;            /* fill the grid cell so all cards match height */
}

.disco-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* --- Disco cover: square aspect ratio placeholder --- */
.disco-cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--color-pink) 0%,
    var(--color-rose) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Real cover image — fills the square, cropped to fit */
.disco-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

/* Shimmer overlay � same as .member-photo::after */
.disco-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* Decorative ? centered on the cover placeholder */
.disco-cover-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.45);
  z-index: 1;
  pointer-events: none;
}

/* --- Disco info: text block below the cover � mirrors .member-info --- */
.disco-info {
  padding: var(--space-3) var(--space-3) var(--space-2);
  text-align: center;
  flex: 1;
}

/* Release title � mirrors .member-name-jp */
.disco-title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.3;
}

/* Type � year � mirrors .member-name-en */
.disco-meta {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* --- Disco color bar: thin strip at card bottom � mirrors .member-color-bar --- */
.disco-color-bar {
  height: 4px;
  width: 100%;
  background-color: var(--color-pink); /* overridden per-card via inline style */
}

/* ============================================================
   10. GOODS SECTION
   Full-width promotional banner.
   ============================================================ */

/* --- Goods section background: cream --- */
.goods-section {
  background-color: var(--color-cream);
}

/* --- Goods banner: full-width gradient card --- */
.goods-banner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
  background: linear-gradient(
    120deg,
    var(--color-rose) 0%,
    #2d5fb8 40%,
    var(--color-pink) 100%
  );
  border-radius: var(--border-radius-xl);
  padding: var(--space-10) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  overflow: hidden;
  position: relative;
}

/* Decorative circle for depth */
.goods-banner::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

/* --- Goods banner text: left-aligned copy block --- */
.goods-banner-text {
  color: var(--color-white);
  flex: 1;
}

.goods-banner-text h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.goods-banner-text p {
  font-size: var(--fs-sm);
  opacity: 0.9;
  margin-bottom: var(--space-6);
}

/* --- Goods banner deco: large decorative ? character --- */
.goods-banner-deco {
  font-size: clamp(4rem, 10vw, 8rem);
  color: rgba(255,255,255,0.2);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
  /* Slow rotation animation */
  animation: slowSpin 20s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   11. SITE FOOTER
   Dark charcoal background with centered content.
   ============================================================ */

/* --- Footer outer: dark background --- */
.site-footer {
  background-color: var(--color-charcoal);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) var(--space-4) var(--space-8);
}

/* --- Footer inner: flex column, centered --- */
.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

/* --- Footer logo: image version, brightened for dark background --- */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 70px;       /* slightly larger than header logo for visual weight */
  width: auto;
  display: block;
  object-fit: contain;
  /* Invert to white so the logo reads on the dark charcoal footer */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* --- Footer nav: horizontal list of small links --- */
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
}

.footer-nav a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-pink);
  text-decoration: none;
}

/* --- Social links: flex row of icon buttons --- */
.social-links {
  display: flex;
  gap: var(--space-3);
}

/* --- Social link: circular icon button --- */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-rose);
  border-color: var(--color-rose);
  color: var(--color-white);
  transform: translateY(-3px);
  text-decoration: none;
}

/* --- Copyright: small muted text at the very bottom --- */
.copyright {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

/* ============================================================
   12. BACK TO TOP BUTTON
   Fixed bottom-right pink circle, fades in after scrolling.
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-rose);
  color: var(--color-white);
  border: none;
  font-size: var(--fs-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pink);
  /* Fade in/out controlled by JS toggling the hidden attribute + opacity */
  opacity: 0;
  transition:
    opacity var(--transition-base),
    transform var(--transition-fast),
    background-color var(--transition-fast);
  pointer-events: none;         /* non-interactive when hidden */
}

/* When JS removes [hidden] and adds .is-visible */
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--color-rose-dark);
  transform: translateY(-3px);
}

/* ============================================================
   13. ANIMATIONS
   Keyframe definitions used throughout the stylesheet.
   ============================================================ */

/* --- tickerScroll: removed (announcement bar deleted) --- */

/* --- petalFall: falling petal from top to bottom with gentle sway --- */
@keyframes petalFall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0.8;
  }
  25% {
    transform: translateY(25vh) rotate(90deg) translateX(15px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(-10px);
    opacity: 0.6;
  }
  75% {
    transform: translateY(75vh) rotate(270deg) translateX(12px);
    opacity: 0.4;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(-5px);
    opacity: 0;
  }
}

/* --- fadeInUp: used by IntersectionObserver for section reveal --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- shimmer: sweeping highlight for placeholder elements --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* --- Hero entrance animations --- */

/* WELCOME label slides down from above */
@keyframes heroSlideDown {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Japanese title slides in from the left */
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Romanized subtitle slides in from the right */
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Tagline rises up from below */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button fades in cleanly */
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   14. MEDIA QUERIES
   768px: mobile nav collapses, hamburger visible.
   1024px: full desktop layout.
   ============================================================ */

/* ----------------------------------------------------------
   768px � Tablet breakpoint
   ---------------------------------------------------------- */
@media (min-width: 768px) {

  /* --- Typography scale up --- */
  .section-title {
    font-size: var(--fs-3xl);
  }

  /* --- Header: hamburger hidden, nav shown inline --- */
  .hamburger {
    display: none;              /* hide hamburger on tablet+ */
  }

  .main-nav {
    /* Reset mobile dropdown styles — smooth transition to inline */
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background-color: transparent;
    opacity: 1;
    transition: none;           /* no transition needed on desktop */
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-1);
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
  }

  /* --- Hero: larger text --- */
  .hero-content {
    gap: var(--space-6);
  }

  /* --- News: wider layout --- */
  .news-item {
    flex-wrap: nowrap;
  }

  /* --- Member grid: 3 columns on tablet --- */
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Goods banner: side-by-side layout --- */
  .goods-banner {
    padding: var(--space-12) var(--space-10);
  }

  /* --- Section padding increase --- */
  .section {
    padding: var(--space-20) var(--space-6);
  }
}

/* ----------------------------------------------------------
   1024px � Desktop breakpoint
   ---------------------------------------------------------- */
@media (min-width: 1024px) {

  /* --- Header height increase --- */
  :root {
    --header-height: 72px;
  }

  /* --- Nav links: larger spacing --- */
  .nav-link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
  }

  /* --- Hero: full desktop sizing --- */
  .hero-content {
    gap: var(--space-8);
  }

  /* --- Member grid: 3 columns on desktop --- */
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Disco grid: fixed 3 columns on desktop --- */
  .disco-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Disco scroll: show more cards --- */
  .disco-scroll-wrapper {
    overflow-x: hidden;
  }

  /* --- Section padding: generous desktop spacing --- */
  .section {
    padding: var(--space-24) var(--space-8);
  }

  /* --- Section title: largest size --- */
  .section-title {
    font-size: var(--fs-3xl);
  }

  /* --- Footer nav: larger gaps --- */
  .footer-nav ul {
    gap: var(--space-2) var(--space-8);
  }
}

/* ----------------------------------------------------------
   Reduced motion: respect user preference
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
  }

  .petal {
    display: none;
  }

  /* Show hero elements immediately for users who prefer no motion */
  .hero-eyebrow,
  .hero-title-jp,
  .hero-title-en,
  .hero-tagline,
  .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   MULTI-PAGE ADDITIONS
   Styles for the section-card homepage grid, sub-page hero
   banner, about page layout, and active nav state.
   ============================================================ */

/* --- Active nav link: highlights the current page in the nav --- */
.nav-link--active {
  color: var(--color-rose) !important;
  font-weight: 700;
}

.nav-link--active::after {
  transform: scaleX(1) !important; /* keep underline always visible on active page */
}

/* ============================================================
   SECTION CARDS � homepage grid of clickable page links
   ============================================================ */

/* --- Outer section: cream background, generous padding --- */
.section-cards-section {
  background-color: var(--color-cream);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* --- Grid: 2 cols on mobile, 3 tablet, 5 desktop --- */
.section-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* --- Card: white rounded card, acts as a full link --- */
.section-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-4);
  background-color: var(--color-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-charcoal);
  border: 2px solid transparent;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.section-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pink);
  border-color: var(--color-pink);
  text-decoration: none;
  color: var(--color-charcoal);
}

/* --- Card icon: SVG icon above the title --- */
.section-card-icon {
  color: var(--color-rose);
  transition: color var(--transition-base), transform var(--transition-base);
  line-height: 1;
}

.section-card:hover .section-card-icon {
  color: var(--color-rose-dark);
  transform: scale(1.12);
}

/* --- Card title: section name in display font --- */
.section-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.section-card:hover .section-card-title {
  color: var(--color-rose);
}

/* --- Card subtitle: Japanese label below the title --- */
.section-card-sub {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   PAGE HERO � compact banner used on all sub-pages
   ============================================================ */

/* --- Outer banner: shorter than the homepage hero --- */
.page-hero {
  background: linear-gradient(
    160deg,
    var(--color-pink) 0%,
    #a8c4f5 40%,
    var(--color-cream) 100%
  );
  padding: var(--space-16) var(--space-4) var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dot pattern overlay � same as hero-bg */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(72,131,224,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* --- Content: centered flex column --- */
.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* --- Eyebrow: small label above the title --- */
.page-hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-rose);
  background-color: rgba(255,255,255,0.7);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(4px);
}

/* --- Title: page name as h1 --- */
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 6vw, var(--fs-4xl));
  font-weight: 700;
  color: var(--color-rose);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

/* --- Sub: Japanese subtitle --- */
.page-hero-sub {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  opacity: 0.65;
  letter-spacing: 0.1em;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* --- About section: white background --- */
.about-section {
  background-color: var(--color-white);
}

/* --- About inner: centered max-width column --- */
.about-inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
}

/* --- About logo: large centered logo image --- */
.about-logo-wrap {
  display: flex;
  justify-content: center;
}

.about-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* --- About body: text content block --- */
.about-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

/* --- About heading --- */
.about-heading {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-charcoal);
}

/* --- About body paragraphs --- */
.about-body p {
  font-size: var(--fs-base);
  color: var(--color-charcoal);
  line-height: 1.9;
  max-width: 600px;
  word-break: normal;           /* prevent mid-word breaks in Latin text */
  overflow-wrap: break-word;    /* only break if absolutely necessary */
  hyphens: none;                /* no automatic hyphenation */
}

/* --- About reveal animation: elements start hidden, fade+rise in on scroll --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When JS adds .is-revealed, the element fades and rises into place */
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- About video/image: Indonesia map --- */
.about-video-wrap {
  width: 100%;
  max-width: 760px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: #1a1a2e;   /* dark background makes all islands visible */
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

/* Image: full natural size, no cropping */
.about-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- About stats: key numbers in a row --- */
.about-stats {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

/* --- Individual stat block --- */
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

/* Large number */
.about-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--color-rose);
  line-height: 1;
}

/* Label below the number */
.about-stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE � member grid & social rail mobile adjustments
   ============================================================ */

@media (min-width: 768px) {
  .section-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero {
    padding: var(--space-20) var(--space-6) var(--space-16);
  }
}

@media (min-width: 1024px) {
  .section-cards-grid {
    grid-template-columns: repeat(5, 1fr); /* all 5 cards in one row on desktop */
  }
}

/* ============================================================
   MEMBER PROFILE MODAL
   Full-screen overlay with profile popup matching the reference.
   ============================================================ */

/* --- Overlay: dark semi-transparent backdrop --- */
.member-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

/* When JS adds .is-open, show the modal */
.member-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modal box: white popup panel --- */
.member-modal-box {
  background-color: var(--color-white);
  border-radius: var(--border-radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6) var(--space-8);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
  position: relative;
}

.member-modal-overlay.is-open .member-modal-box {
  transform: translateY(0) scale(1);
}

/* --- Modal header: "profile" label + close button --- */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

/* "p r o f i l e" label — spaced letters like the reference */
.modal-profile-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--color-charcoal);
  text-transform: lowercase;
}

/* Close button — × in top right */
.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0 var(--space-2);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-charcoal);
}

/* --- Modal body: photo left, info right --- */
.modal-body {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

/* --- Modal photo: left column --- */
.modal-photo-wrap {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.modal-photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.modal-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
}

/* --- Modal info: right column --- */
.modal-info {
  flex: 1;
  min-width: 0;
}

/* Japanese name — large, in member color */
.modal-name-jp {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

/* Romanized name */
.modal-name-en {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

/* --- Biodata table --- */
.modal-bio-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.modal-bio-row {
  border-bottom: 1px solid var(--color-border);
}

.modal-bio-row:last-child {
  border-bottom: none;
}

/* Label column: muted, fixed width */
.modal-bio-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  padding: var(--space-2) var(--space-4) var(--space-2) 0;
  white-space: nowrap;
  vertical-align: top;
  width: 80px;
}

/* Value column: charcoal text */
.modal-bio-value {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  padding: var(--space-2) 0;
  line-height: 1.6;
}

/* --- Modal social links --- */
.modal-social {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.modal-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-social-btn:hover {
  background-color: var(--color-rose);
  transform: scale(1.1);
  text-decoration: none;
}

/* --- Modal responsive: stack on mobile --- */
@media (max-width: 600px) {
  .member-modal-box {
    padding: var(--space-4);
  }

  .modal-body {
    flex-direction: column;
    gap: var(--space-4);
  }

  .modal-photo-wrap {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
}

/* ============================================================
   MEDIA PAGE
   Card grid with segment filter tabs.
   ============================================================ */

/* --- Media section background --- */
.media-section {
  background-color: var(--color-cream);
  padding-top: var(--space-24);  /* generous gap below the page hero */
}

/* --- Filter tabs: same style as news filter --- */
.media-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-10);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.media-tab {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-pill);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.media-tab:hover {
  border-color: var(--color-rose);
  color: var(--color-rose);
  box-shadow: 0 4px 12px rgba(72,131,224,0.2);
  transform: translateY(-2px);
}

.media-tab--active,
.media-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%);
  border-color: transparent;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(72,131,224,0.35);
  transform: translateY(-2px);
}

/* --- Media grid: 2 cols mobile, 3 cols tablet+ --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Media card: dark card matching member card style --- */
.media-card {
  background-color: #1a1a2e;
  border-radius: clamp(12px, 2vw, 20px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

/* --- Cover area: image or gradient placeholder --- */
.media-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card-placeholder-icon {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255,255,255,0.4);
}

/* --- Category badge: top-left corner of cover --- */
.media-card-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--border-radius-pill);
  color: var(--color-white);
  z-index: 1;
}

/* Badge colors per category */
.media-card-badge--news     { background-color: #4883E0; }
.media-card-badge--funfacts { background-color: #F87590; }
.media-card-badge--memories { background-color: #2d5fb8; }

/* --- Card footer: title, excerpt, date --- */
.media-card-footer {
  padding: clamp(8px, 1.5vw, 14px) clamp(10px, 2vw, 16px) clamp(10px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

/* Post title */
.media-card-title {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.8vw, var(--fs-sm));
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Short excerpt */
.media-card-excerpt {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1.2vw, var(--fs-xs));
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Date — pushed to bottom */
.media-card-date {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: var(--space-2);
}

/* --- Load more button wrapper --- */
.media-more {
  text-align: center;
  margin-top: var(--space-8);
}

/* ============================================================
   DISCOGRAPHY — SORT CONTROLS & DATE LABEL
   ============================================================ */

/* --- Sort bar: sits between section header and grid --- */
.disco-sort-bar {
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
  margin-bottom: var(--space-6);
}

/* --- Sort button: pill-shaped toggle --- */
.disco-sort-btn {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid var(--color-rose);
  border-radius: var(--border-radius-pill);
  background-color: var(--color-white);
  color: var(--color-rose);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.disco-sort-btn:hover {
  background-color: var(--color-rose);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Release date: shown below type in disco card --- */
.disco-date {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
