/* ========================================
   になまる NightParty - Style
   Vol.1 Theme: Neon Pink × Purple × Cyan
   ======================================== */

/* ---------- CSS Variables (Vol別テーマ) ---------- */
:root {
  /* Theme colors — change these per Vol. */
  --color-primary: #FF1493;
  --color-secondary: #8B5CF6;
  --color-accent: #00D4FF;

  /* Backgrounds */
  --bg-dark: #0a0a14;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.10);

  /* Text */
  --text-main: #ffffff;
  --text-sub: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Neon glow */
  --glow-primary: 0 0 10px var(--color-primary), 0 0 30px var(--color-primary), 0 0 60px rgba(255, 20, 147, 0.3);
  --glow-accent: 0 0 10px var(--color-accent), 0 0 30px rgba(0, 212, 255, 0.3);

  /* Layout */
  --container-max: 960px;
  --section-padding: 80px 20px;

  /* Font */
  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-dark);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

/* ---------- Sparkle Canvas ---------- */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- SR Only (accessibility) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 40px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px var(--color-primary), 0 0 50px var(--color-primary), 0 0 80px rgba(255, 20, 147, 0.4);
}

.btn__heart {
  font-size: 1.2em;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.1) 0%,
    rgba(10, 10, 20, 0.15) 50%,
    rgba(10, 10, 20, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero__vol {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 20px;
  animation: neonFlicker 3s ease-in-out infinite;
}

.hero__date {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.hero__date--day {
  font-size: 0.5em;
  vertical-align: middle;
  margin: 0 8px;
  padding: 2px 10px;
  background: var(--color-primary);
  border-radius: 4px;
  letter-spacing: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.7; }
  94% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
}

/* ---------- Event Info ---------- */
.info {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(139, 92, 246, 0.05) 50%, var(--bg-dark) 100%);
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info__card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}

.info__card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 20, 147, 0.3);
}

.info__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.info__label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.info__value {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.info__value small {
  font-size: 0.8em;
  color: var(--text-muted);
}

.info__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* ---------- Flyer ---------- */
.flyer {
  background: var(--bg-dark);
}

.flyer__img-wrapper {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.flyer__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Event Rule ---------- */
.rule {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.03) 50%, var(--bg-dark) 100%);
}

.rule__lead {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.rule__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.rule__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 3px solid var(--color-primary);
  transition: transform 0.3s, background 0.3s;
}

.rule__item:hover {
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.rule__number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
  flex-shrink: 0;
  line-height: 1.4;
}

.rule__body {
  flex: 1;
  min-width: 0;
}

.rule__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.rule__warning {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
  margin-bottom: 8px;
}

.rule__text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.rule__text-list {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
  padding-left: 1.2em;
  list-style: disc;
}

.rule__text-list li {
  margin-bottom: 2px;
}

/* ---------- Entry Form ---------- */
.entry {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255, 20, 147, 0.05) 50%, var(--bg-dark) 100%);
  text-align: center;
}

.entry__lead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.9;
}

.entry__form-wrapper {
  max-width: 640px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry__iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.entry__btn {
  font-size: 1.2rem;
  padding: 18px 48px;
}

/* ---------- Privacy Policy ---------- */
.privacy {
  padding-bottom: 40px;
}

.accordion {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion__trigger:hover {
  background: var(--bg-card-hover);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.3s;
}

.accordion__icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.accordion__icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.accordion__content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.accordion__content[hidden] {
  display: block !important;
  max-height: 0;
}

.accordion__body {
  padding: 24px;
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 2;
}

.accordion__body h3 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 20px 0 8px;
}

.accordion__body h3:first-child {
  margin-top: 0;
}

.accordion__body ul {
  padding-left: 1.5em;
  list-style: disc;
}

.accordion__body li {
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer__sns-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

.footer__sns-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__sns-name {
  font-size: 0.8rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Scroll Animation ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  :root {
    --section-padding: 60px 16px;
  }

  .info__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .info__card {
    padding: 24px 16px;
  }

  .rule__item {
    padding: 16px 18px;
  }

  .entry__iframe {
    height: 500px;
  }

  .btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .info__grid {
    grid-template-columns: 1fr;
  }
}
