@font-face {
  font-family: "Terminator Two";
  src: url("./assets/fonts/TerminatorTwo.woff") format("woff"),
    url("./assets/fonts/TerminatorTwo.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050b12;
  --bg-deep: #02050a;
  --surface: rgba(10, 18, 30, 0.76);
  --surface-strong: rgba(7, 14, 24, 0.92);
  --line: rgba(173, 242, 255, 0.18);
  --line-strong: rgba(173, 242, 255, 0.35);
  --text: #ebf9ff;
  --muted: rgba(235, 249, 255, 0.7);
  --accent: #7ee8ff;
  --accent-2: #62ffc8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 255, 220, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(126, 232, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 25%, rgba(106, 140, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #08101a 0%, #03070d 55%, #02050a 100%);
  font-family: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
  pointer-events: none;
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid,
.scanlines {
  position: absolute;
  inset: 0;
}

.grid {
  background-image:
    linear-gradient(rgba(126, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 232, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
}

.scanlines {
  opacity: 0.08;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

.orb {
  position: absolute;
  width: 36vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.28;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  top: -8vw;
  left: -4vw;
  background: rgba(126, 232, 255, 0.9);
}

.orb-b {
  top: 10vw;
  right: -10vw;
  background: rgba(98, 255, 200, 0.7);
  animation-duration: 26s;
}

.orb-c {
  bottom: -8vw;
  left: 28vw;
  background: rgba(96, 121, 255, 0.5);
  animation-duration: 32s;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 232, 255, 0.4), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(126, 232, 255, 0.22));
}

.nav {
  display: flex;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(126, 232, 255, 0.12);
  background: rgba(7, 14, 24, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(126, 232, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 14, 24, 0.7);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 232, 255, 0.45);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 232, 255, 0.12);
  background: rgba(7, 14, 24, 0.5);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-button:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(126, 232, 255, 0.45);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 44px 0 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
.frame-label strong,
.nav-button,
.link-card strong,
.mini-label,
.ticker span {
  font-family: "Terminator Two", Inter, sans-serif;
  letter-spacing: 0.06em;
}

.section-head h2,
.member-row h3,
.lyrics-card h1,
.lyrics-notfound h1,
.lyrics-back .nav-button {
  font-family: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-title-mark {
  width: clamp(240px, 48vw, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(126, 232, 255, 0.25));
}

.lede {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-art {
  justify-self: end;
  width: min(100%, 460px);
}

.hero-frame {
  position: relative;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(5, 12, 20, 0.82);
  border: 1px solid rgba(126, 232, 255, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(126, 232, 255, 0.08);
}

.frame-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(126, 232, 255, 0.18), transparent 40%),
    radial-gradient(circle at 72% 68%, rgba(98, 255, 200, 0.12), transparent 36%);
  animation: pulse 10s ease-in-out infinite;
}

.hero-cover {
  position: absolute;
  inset: 50%;
  width: calc(100% - 72px);
  height: calc(100% - 72px);
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  border-radius: 24px;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 450ms ease;
}

.hero-frame-button {
  display: block;
  width: 100%;
  margin: 0;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.hero-frame-button:hover .hero-cover,
.hero-frame-button:focus-visible .hero-cover {
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-frame-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.frame-label {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(2, 5, 10, 0.02), rgba(2, 5, 10, 0.82));
  backdrop-filter: blur(14px);
}

.frame-label span {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.frame-label strong {
  max-width: 14ch;
  font-size: 1.25rem;
  line-height: 1.1;
  text-align: right;
}

.ticker {
  margin-top: 0;
  overflow: hidden;
  border-top: 1px solid rgba(126, 232, 255, 0.12);
  border-bottom: 1px solid rgba(126, 232, 255, 0.12);
  background: rgba(7, 14, 24, 0.45);
}

.ticker-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 28s linear infinite;
}

.ticker span {
  color: rgba(235, 249, 255, 0.9);
  font-size: 0.8rem;
  white-space: nowrap;
}

.section {
  padding: 48px 0 0;
}

#members,
#releases,
#events {
  scroll-margin-top: 120px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
}

.section-subtitle {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.member-list {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid rgba(126, 232, 255, 0.14);
  border-bottom: 1px solid rgba(126, 232, 255, 0.14);
}

.link-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 232, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 23, 37, 0.92), rgba(7, 14, 24, 0.82));
  box-shadow: var(--shadow);
}

.mini-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.74rem;
}

.member-row {
  display: grid;
  grid-template-columns: clamp(132px, 18vw, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid rgba(126, 232, 255, 0.12);
}

.member-row:first-child {
  border-top: 0;
}

.member-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.member-row:nth-child(2) .member-image {
  object-position: center 30%;
}

.member-body {
  min-width: 0;
}

.member-row h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.member-row p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(126, 232, 255, 0.18);
  color: var(--text);
  background: rgba(7, 14, 24, 0.55);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease;
}

.social-link img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  transform: translateY(1px);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 232, 255, 0.5);
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.release-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 232, 255, 0.12);
  background: rgba(7, 14, 24, 0.7);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.release-card:hover {
  transform: translateY(-8px);
  border-color: rgba(126, 232, 255, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.release-art {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  background: transparent;
  overflow: hidden;
}

.release-art-button {
  cursor: pointer;
}

.release-art-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.release-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 5, 10, 0.12) 55%, rgba(2, 5, 10, 0.82) 100%);
}

.release-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.release-card:hover .release-art img {
  transform: scale(1.05);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.event-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 232, 255, 0.12);
  background: rgba(7, 14, 24, 0.7);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(126, 232, 255, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.event-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.event-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
}

.event-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 5, 10, 0.12) 55%, rgba(2, 5, 10, 0.82) 100%);
}

.event-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.event-card:hover .event-art img {
  transform: scale(1.05);
}

.event-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.event-date {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.event-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.release-modal {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.release-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.release-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.76);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.release-modal[aria-hidden="false"] .release-modal-backdrop {
  opacity: 1;
}

.release-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(840px, calc(100vh - 48px));
  max-height: min(840px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid rgba(126, 232, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 28, 44, 0.96), rgba(5, 12, 20, 0.98)),
    var(--surface-strong);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68);
  opacity: 0;
  transform: translateY(24px);
  transform-origin: 50% 30%;
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.release-modal.is-opening .release-dialog {
  opacity: 1;
  transform: none;
}

.release-modal.is-opening.modal-lyrics-open .release-dialog {
  width: min(760px, 100%);
}

.modal-release-header > *,
.modal-cover,
.store-section,
.modal-video-section,
.track-panel,
.credit-section {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.release-modal.is-opening .modal-release-header > *,
.release-modal.is-opening .modal-cover,
.release-modal.is-opening .store-section,
.release-modal.is-opening .modal-video-section,
.release-modal.is-opening .track-panel,
.release-modal.is-opening .credit-section {
  opacity: 1;
  transform: none;
}

.release-modal.is-opening .modal-release-header > *:nth-child(2) {
  transition-delay: 80ms;
}

.release-modal.is-opening .modal-release-header > *:nth-child(3),
.release-modal.is-opening .modal-cover {
  transition-delay: 130ms;
}

.release-modal.is-opening .store-section,
.release-modal.is-opening .modal-video-section {
  transition-delay: 180ms;
}

.release-modal.is-opening .track-panel {
  transition-delay: 230ms;
}

.release-modal.is-opening .credit-section {
  transition-delay: 280ms;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(126, 232, 255, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(7, 14, 24, 0.86);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(126, 232, 255, 0.58);
}

.modal-release-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 12px 30px;
  align-items: start;
  padding: 28px 30px 20px;
}

.modal-release-header {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  max-width: 860px;
  padding-right: 58px;
}

.modal-release-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.96;
}

.modal-release-header p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.modal-visual-column,
.modal-listen-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.modal-visual-column {
  grid-column: 1;
}

.modal-listen-column {
  grid-column: 2;
}

.modal-cover-wrap {
  align-self: start;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(126, 232, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 48% 38%, rgba(126, 232, 255, 0.16), transparent 48%),
    rgba(2, 5, 10, 0.38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.modal-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.modal-release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-release-tags li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(126, 232, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 14, 24, 0.55);
}

.modal-release-tags span {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-release-tags strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.track-panel,
.modal-video-section,
.credit-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(126, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 5, 10, 0.3);
}

.store-section h3,
.track-panel h3,
.modal-video-section h3,
.credit-section h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.track-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text);
  line-height: 1.55;
  text-transform: none;
}

.track-list li {
  text-transform: none;
}

.track-list li::marker {
  color: var(--accent);
}

.track-link {
  border-bottom: 1px dashed rgba(126, 232, 255, 0.4);
  transition: color 180ms ease, border-color 180ms ease;
}

.track-link:hover,
.track-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.modal-lyrics-view {
  padding: 28px 30px 32px;
}

.modal-lyrics-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(126, 232, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.55);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.modal-lyrics-back:hover,
.modal-lyrics-back:focus-visible {
  color: var(--text);
  border-color: rgba(126, 232, 255, 0.55);
}

.modal-lyrics-view h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.15;
}

.modal-lyrics-view .lyrics-credits {
  margin: 0 0 26px;
}

.modal-lyrics-view .lyrics-body {
  max-width: 720px;
}

.credit-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credit-list li {
  display: grid;
  grid-template-columns: minmax(124px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.credit-list span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: none;
}

.credit-list strong {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-transform: none;
}

.credit-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.credit-name {
  min-width: 0;
}

.credit-link {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(126, 232, 255, 0.2);
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.6);
  transition: transform 180ms ease, border-color 180ms ease;
}

.credit-link img {
  width: 10px;
  height: 10px;
  display: block;
}

.credit-link:hover,
.credit-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 232, 255, 0.58);
}

.store-section {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(126, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 5, 10, 0.28);
}

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.store-link {
  display: grid;
  gap: 7px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(126, 232, 255, 0.26);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(126, 232, 255, 0.12), rgba(98, 255, 200, 0.06)),
    rgba(7, 14, 24, 0.72);
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-link-label {
  min-width: 0;
  font-size: 1.12rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.store-link-action {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.store-link:hover,
.store-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 232, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(126, 232, 255, 0.18), rgba(98, 255, 200, 0.1)),
    rgba(7, 14, 24, 0.82);
}

.modal-video {
  overflow: hidden;
  border: 1px solid rgba(126, 232, 255, 0.14);
  border-radius: 8px;
  background: #02050a;
}

.modal-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  border: 0;
  background: #02050a;
}

.release-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.release-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.release-type,
.release-artist {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  line-height: 1;
}

.release-type {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.release-artists {
  display: flex;
  flex: 0 1 auto;
  max-width: 58%;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.release-artist {
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(126, 232, 255, 0.18);
  border-radius: 999px;
  color: rgba(235, 249, 255, 0.82);
  background: rgba(7, 14, 24, 0.55);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.release-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.link-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 232, 255, 0.34);
}

.link-card span {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.link-card strong {
  font-size: 1.05rem;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: center;
  padding: 48px 0 36px;
  font-size: 0.82rem;
  color: rgba(235, 249, 255, 0.42);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-active .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 700ms ease;
}

.reveal-active .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-active .release-card.reveal {
  transform: translateY(18px);
}

.reveal-active .release-card.reveal.is-visible {
  transform: translateY(0);
}

.reveal-active .release-card.reveal.is-visible:hover {
  transform: translateY(-8px);
}

.reveal-active .release-card.reveal:nth-child(4n + 2) {
  transition-delay: 70ms;
}

.reveal-active .release-card.reveal:nth-child(4n + 3) {
  transition-delay: 140ms;
}

.reveal-active .release-card.reveal:nth-child(4n) {
  transition-delay: 210ms;
}

.reveal:nth-of-type(1) {
  transition-delay: 50ms;
}

.reveal:nth-of-type(2) {
  transition-delay: 110ms;
}

.reveal:nth-of-type(3) {
  transition-delay: 170ms;
}

.reveal:nth-of-type(4) {
  transition-delay: 230ms;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(28px, 18px, 0) scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 24px;
  }

  .hero-art {
    justify-self: stretch;
    width: 100%;
  }

}

@media (max-width: 900px) {
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-release-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-cover {
    max-height: none;
  }

  .modal-cover-wrap {
    position: static;
    top: auto;
  }

  .reveal-active .release-card.reveal:nth-child(n) {
    transition-delay: 0ms;
  }

  .reveal-active .release-card.reveal:nth-child(2n) {
    transition-delay: 90ms;
  }
}

@media (max-width: 720px) {
  .section {
    padding-top: 38px;
  }

  .shell {
    width: min(100vw - 20px, 100vw);
  }

  .topbar {
    position: sticky;
    column-gap: 10px;
    padding: 10px 12px;
    margin-top: 20px;
    border: 1px solid rgba(126, 232, 255, 0.14);
    border-radius: 18px;
    background: rgba(7, 14, 24, 0.88);
    backdrop-filter: blur(18px);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    box-shadow: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    gap: 8px;
    padding: 0;
    flex-direction: column;
    border: 1px solid rgba(126, 232, 255, 0.14);
    border-top: none;
    border-radius: 0 0 18px 18px;
    background: rgba(7, 14, 24, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease, padding 180ms ease;
  }

  .topbar.nav-open {
    border-radius: 18px 18px 0 0;
  }

  .topbar.nav-open .nav {
    max-height: 280px;
    opacity: 1;
    padding: 8px;
    pointer-events: auto;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-height: 44px;
    border: 1px solid rgba(126, 232, 255, 0.12);
    border-radius: 14px;
    background: rgb(7, 14, 24);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 32px;
  }

  .hero-actions {
    gap: 8px;
  }

  .nav-button {
    min-height: 44px;
    width: 100%;
    box-shadow: none;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .member-row {
    grid-template-columns: minmax(76px, 28vw) minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .member-image {
    aspect-ratio: 1;
  }

  .member-row h3 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .member-row p {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    margin-top: 10px;
    padding: 8px 11px;
    font-size: 0.84rem;
    line-height: 1.2;
    max-width: 100%;
  }

  .social-link span {
    overflow-wrap: anywhere;
  }

  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .event-grid {
    gap: 12px;
  }

  .release-modal {
    padding: 10px;
  }

  .release-dialog {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .modal-release-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    overflow: hidden;
  }

  .modal-release-layout > * {
    width: 100%;
    min-width: 0;
  }

  .modal-visual-column,
  .modal-listen-column {
    display: contents;
  }

  .modal-release-header {
    order: 1;
  }

  .modal-cover-wrap {
    order: 2;
  }

  .modal-video-section {
    order: 3;
  }

  .track-panel {
    order: 4;
  }

  .store-section {
    order: 5;
  }

  .credit-section {
    grid-column: auto;
    grid-row: auto;
    order: 6;
  }

  .modal-cover-wrap,
  .modal-video-section,
  .track-panel,
  .store-section {
    grid-column: auto;
    grid-row: auto;
  }

  .modal-release-header {
    gap: 12px;
    padding-right: 46px;
  }

  .modal-release-header h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    line-height: 0.98;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .store-links {
    grid-template-columns: 1fr;
  }

  .modal-cover-wrap,
  .store-section,
  .modal-video-section,
  .track-panel,
  .credit-section {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 100%;
  }

  .modal-cover {
    width: 100%;
  }

  .credit-list {
    gap: 16px;
  }

  .credit-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .credit-list li > span {
    font-weight: 700;
    letter-spacing: 0.16em;
    opacity: 0.7;
  }

  .credit-list strong {
    font-size: 1rem;
  }

  .hero-title-mark {
    width: min(100%, 420px);
  }

  .hero-frame {
    border-radius: 28px;
  }

  .hero-cover {
    width: calc(100% - 72px);
    height: calc(100% - 72px);
  }

  .frame-label {
    flex-direction: column;
    align-items: start;
  }

  .frame-label strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100vw - 16px, 100vw);
  }

  .section {
    padding-top: 32px;
  }

  .topbar {
    padding: 9px 10px;
    border-radius: 14px;
  }

  .topbar.nav-open {
    border-radius: 14px 14px 0 0;
  }

  .nav {
    border-radius: 0 0 14px 14px;
  }

  .brand-mark {
    width: clamp(110px, 42vw, 156px);
  }

  .nav a {
    text-align: center;
    font-size: 0.76rem;
    padding: 8px 6px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  .lede {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .release-grid {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .reveal-active .release-card.reveal:nth-child(n) {
    transition-delay: 0ms;
  }

  .hero {
    gap: 18px;
    padding-top: 26px;
  }

  .hero-actions {
    gap: 7px;
  }

  .nav-button {
    padding: 8px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .section-subtitle {
    margin-bottom: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .member-list {
    margin-top: 20px;
  }

  .member-row {
    grid-template-columns: minmax(72px, 26vw) minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
  }

  .member-row h3 {
    font-size: clamp(1.35rem, 7.4vw, 1.9rem);
  }

  .member-row p {
    font-size: 0.84rem;
  }

  .social-link {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .social-link span {
    line-height: 1.2;
  }

  .release-body {
    gap: 10px;
    padding: 15px;
  }

  .release-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 6px;
  }

  .release-type {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .release-artists {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }

  .release-artist {
    padding: 4px 7px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
  }

  .lede {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .section {
    padding-top: 44px;
  }

  #members,
  #releases {
    scroll-margin-top: 140px;
  }

  .panel {
    padding: 18px;
  }

  .release-body {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-active .reveal {
    opacity: 1;
    transform: none;
  }
}

#lyrics-page {
  padding: 48px 0 64px;
  display: grid;
  justify-items: center;
}

.lyrics-card {
  width: 100%;
  max-width: 720px;
  padding: 32px clamp(20px, 5vw, 44px);
  border: 1px solid rgba(126, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lyrics-card h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.15;
}

.lyrics-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.lyrics-credits li {
  padding-left: 16px;
  border-left: 1px solid rgba(126, 232, 255, 0.18);
}

.lyrics-credits li:first-child {
  padding-left: 0;
  border-left: none;
}

.lyrics-body {
  display: grid;
  gap: 22px;
}

.lyrics-stanza {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 2;
}

.lyrics-back {
  margin: 36px 0 0;
}

.lyrics-notfound {
  width: 100%;
  max-width: 560px;
  padding: 40px clamp(20px, 5vw, 44px);
  text-align: center;
  border: 1px solid rgba(126, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lyrics-notfound h1 {
  margin: 0 0 20px;
  font-size: 1.6rem;
}

/* Chatbot overlay widget (ChatVRM iframe埋め込み) */
/* z-index: リリース/歌詞モーダル(.release-modal, z-index:60)より前面に出し、
   モーダル表示中もボタンとアバターが隠れず操作できるようにする */
.chatbot-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 65;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  color: var(--accent);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface);
}

.chatbot-toggle svg {
  width: 26px;
  height: 26px;
}

.chatbot-toggle .icon-close {
  display: none;
}

.chatbot-toggle[aria-expanded="true"] .icon-chat {
  display: none;
}

.chatbot-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* パネル自体は背景・枠を持たせず、アバターと入力欄のみが浮かぶ透過iframeにする */
.chatbot-panel {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 64;
  width: min(360px, calc(100vw - 32px));
  /* svhは仮想キーボード表示時にも縮まないため、モバイルでキーボードを開いた際に
     アバターが徐々に小さくなってしまう問題を防ぐ(vhは非対応ブラウザ向けフォールバック) */
  height: min(520px, calc(100vh - 140px));
  height: min(520px, calc(100svh - 140px));
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.chatbot-panel[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chatbot-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: normal;
}

@media (max-width: 480px) {
  .chatbot-panel {
    right: 8px;
    bottom: 84px;
    width: min(320px, calc(100vw - 16px));
    height: min(58vh, 460px);
    height: min(58svh, 460px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-toggle,
  .chatbot-panel {
    transition: none;
  }
}
