/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  color: #e5e5e5;
  background: #0a0a0a;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

.loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  position: relative;
  width: 100%;
}

.loader-logo-gray,
.loader-logo-fill {
  display: block;
  width: 100%;
  height: auto;
}

.loader-logo-gray {
  filter: brightness(0) invert(1) brightness(0.2);
}

.loader-logo-fill {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s ease;
  filter: brightness(0) invert(1) brightness(0.8);
}

/* Hide page content until loaded */
body.loading .top-logo-img {
  opacity: 0;
  transform: perspective(800px) rotateX(0deg) rotateY(-20deg);
}

body.loading main,
body.loading footer {
  opacity: 0;
}

/* ===== Top Logo ===== */
.top-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 0px 24px;
}

.top-logo-img {
  height: auto;
  width: 100%;
  display: block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  filter: invert(1);
}

.top-logo-link {
  position: relative;
  display: block;
  width: 24%;
}

/* glitch hover animation disabled */

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 1);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #7a7a7a;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header.visible {
  transform: translateY(0);
}

.header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  margin-right: 16px;
  filter: invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition: opacity 0.2s;
}

.nav .logo {
  line-height: 0;
}

.logo-mobile {
  display: none;
  line-height: 0;
}

.logo-mobile .logo-img {
  margin: 0;
}

.nav a:hover {
  opacity: 0.5;
}

.nav-sns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.nav-sns a {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-sns .icon-sns {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: opacity 0.2s;
}

.nav-sns a[aria-label="YouTube"] .icon-sns {
  width: 24px;
  height: 24px;
}

.nav-sns a:hover .icon-sns {
  opacity: 0.5;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

main {
  transition: opacity 0.5s ease;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
  border-bottom: 1px solid #222;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: #e5e5e5;
}

/* ===== About ===== */
.about-artist-photo {
  margin-bottom: 32px;
}

.about-photo {
  width: 100%;
  height: auto;
  background: #1a1a1a;
}

/* ===== Mosaic Reveal ===== */
.mosaic-reveal-wrap {
  position: relative;
  overflow: hidden;
}

.mosaic-reveal-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.about-description {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 12px;
}

.about-wiki-link {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 2px;
  transition: opacity 0.2s;
  display: inline-block;
  margin-bottom: 48px;
}

.about-wiki-link:hover {
  opacity: 0.5;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #222;
}

.member-item:last-child {
  border-bottom: none;
}

.member-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.member-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.member-role {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #666;
}

.member-sns {
  display: flex;
  gap: 16px;
}

.icon-sns {
  width: 18px;
  height: 18px;
  fill: #e5e5e5;
  transition: opacity 0.2s;
}

.icon-sns:hover {
  opacity: 0.4;
}

/* ===== Live ===== */
.live-event-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.live-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.live-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #222;
}

.live-item:last-child {
  border-bottom: none;
}

.live-flyer {
  flex-shrink: 0;
  width: 184px;
}

.live-flyer-img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  background: #1a1a1a;
}

.live-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-date {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.live-venue {
  font-weight: 700;
  font-size: 1.1rem;
}

.live-info {
  font-size: 0.95rem;
  color: #777;
}

.live-lineup,
.live-ticket {
  font-size: 0.95rem;
  margin-top: 4px;
}

.live-label {
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.85rem;
  color: #777;
  letter-spacing: 0.05em;
}

.live-ticket-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.live-ticket-link {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.live-ticket-link:hover {
  background: #e5e5e5;
  color: #0a0a0a;
}

/* ===== Discography ===== */
.disco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.disco-jacket-img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  background: #1a1a1a;
  margin-bottom: 12px;
}

.disco-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.disco-type {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.disco-date {
  font-size: 0.9rem;
  color: #666;
  margin-top: 2px;
}

/* ===== Contact ===== */
.sns-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.sns-link {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid #e5e5e5;
  transition: opacity 0.2s;
}

.sns-link:hover {
  opacity: 0.5;
}

.contact-mail {
  font-size: 1rem;
  color: #999;
}

.contact-mail a {
  border-bottom: 1px solid #444;
  transition: opacity 0.2s;
}

.contact-mail a:hover {
  opacity: 0.5;
}

/* ===== Ticket Form ===== */
.ticket-desc {
  font-size: 1rem;
  color: #999;
  margin-bottom: 32px;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #777;
  letter-spacing: 0.05em;
}

.form-input {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-size: 1.05rem;
  color: #e5e5e5;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: #e5e5e5;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-submit {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0a0a;
  background: #e5e5e5;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
  letter-spacing: 0.03em;
}

.form-submit:hover {
  opacity: 0.8;
}

.ticket-note {
  font-size: 1rem;
  color: #666;
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  transition: opacity 0.5s ease;
}

/* ===== Lightbox ===== */
.clickable-img {
  cursor: pointer;
  transition: opacity 0.2s;
}

.clickable-img:hover {
  opacity: 0.8;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 32px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .top-logo-link {
    width: 56%;
  }

  .header-inner {
    justify-content: center;
    position: relative;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #7a7a7a;
  }

  .nav .logo {
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-sns {
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
  }

  .header-inner .logo-mobile {
    display: block;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .live-item {
    flex-direction: column;
    gap: 16px;
  }

  .live-flyer {
    width: 100%;
    max-width: 200px;
  }

  .disco-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sns-links {
    flex-direction: column;
    gap: 16px;
  }
}
