/* ==========================
   RESET
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #10141b;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

/* ==========================
   HERO
========================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(rgba(5, 8, 15, 0.28), rgba(10, 12, 18, 0.45));

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  height: 100%;

  padding: 60px;
}

/* ==========================
   BRAND
========================== */

.brand {
  position: relative;
  z-index: 20;
}

.brand h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.brand p {
  margin-top: 8px;

  font-size: 0.95rem;

  color: rgba(255, 255, 255, 0.75);

  letter-spacing: 0.08em;
}

/* ==========================
   TEST LYRIC
========================== */

#testLyric {
  position: absolute;

  top: 150px;
  left: 60px;

  z-index: 30;

  color: #ffffff;

  font-size: 1.2rem;

  letter-spacing: 0.04em;

  opacity: 1;
}

/* ==========================
   TITLE
========================== */

.title-wrap {
  position: absolute;

  top: 42%;
  left: 50%;

  transform: translate(-50%, -50%);

  text-align: center;

  transition: 1s ease;
}

.hidden {
  opacity: 0;
}

.title-wrap h2 {
  font-size: 4rem;
  font-weight: 200;
}

.title-wrap span {
  display: block;
  margin-top: 10px;

  font-size: 1rem;
  letter-spacing: 0.24em;

  color: rgba(255, 255, 255, 0.8);
}

/* ==========================
   CLICK AREA
========================== */

.window-light {
  position: absolute;

  right: 10%;
  bottom: 12%;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  z-index: 50;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  background: radial-gradient(
    rgba(255, 230, 180, 0.18),
    rgba(255, 230, 180, 0.08),
    transparent 72%
  );
}

/* ==========================
   TOUCH TEXT
========================== */

.window-light span {
  color: #ffffff;

  font-size: 0.82rem;

  font-weight: 500;

  letter-spacing: 0.08em;

  white-space: nowrap;

  opacity: 1;

  text-shadow: none;
}

/* ==========================
   LYRICS SECTION
========================== */

.lyrics-section {
  min-height: 100vh;

  padding: 80px 10vw;

  background: linear-gradient(#131922, #202734);
}

.lyric {
  margin: 18px 0;

  color: #ffffff;
}

.lyric p {
  font-size: 1.2rem;

  line-height: 1.8;

  letter-spacing: 0.04em;
}

.english p {
  opacity: 0.72;
  font-style: italic;
}

/* ==========================
   ABOUT
========================== */

.about {
  padding: 140px 10vw;
  background: #1b212d;
}

.about h3 {
  font-size: 2.4rem;
  font-weight: 300;
}

.about-text {
  margin-top: 24px;

  font-size: 1.1rem;
  line-height: 1.8;

  color: rgba(255, 255, 255, 0.82);
}

.credit {
  margin-top: 28px;

  color: rgba(255, 255, 255, 0.52);
}

/* ==========================
   ENDING
========================== */

.ending {
  height: 70vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  background: linear-gradient(#202734, #b99168);
}

.ending-content p {
  font-size: 2rem;
  font-weight: 200;
}

#listenAgain {
  margin-top: 24px;

  padding: 12px 28px;

  border: 1px solid rgba(255, 255, 255, 0.45);

  background: transparent;

  color: white;

  cursor: pointer;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {
  .hero-content {
    padding: 30px;
  }

  .brand h1 {
    font-size: 2rem;
  }

  .title-wrap h2 {
    font-size: 2.5rem;
  }

  .window-light {
    width: 160px;
    height: 160px;
  }

  #testLyric {
    left: 30px;
    top: 120px;
  }
}
/* FORCE TEST LYRIC */

/* ==========================
   FLOATING LYRIC
========================== */

#floatingLyric {
  position: absolute;

  top: 380px;
  left: 80px;

  z-index: 9999;

  color: rgba(255, 255, 255, 0.92);

  font-size: 1.15rem;

  letter-spacing: 0.04em;

  text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);

  opacity: 0;

  animation: lyricRise 8s linear infinite;
}

@keyframes lyricRise {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  75% {
    transform: translateY(-40px);
    opacity: 1;
  }

  100% {
    transform: translateY(-70px);
    opacity: 0;
  }
}
/* ==========================
   SIDE MENU
========================== */

.side-menu {
  position: fixed;

  top: 50%;
  right: 28px;

  transform: translateY(-50%);

  z-index: 99999;

  display: flex;
  flex-direction: column;

  gap: 18px;
}

.menu-brand {
  margin-bottom: 30px;
}

.menu-brand h3 {
  font-size: 1.2rem;

  font-weight: 300;

  letter-spacing: 0.08em;

  color: rgba(255, 255, 255, 0.92);
}

.menu-brand p {
  margin-top: 8px;

  width: 150px;

  font-size: 0.68rem;

  line-height: 1.6;

  letter-spacing: 0.08em;

  color: rgba(255, 255, 255, 0.42);
}

.side-menu a {
  display: flex;
  align-items: center;

  gap: 12px;

  text-decoration: none;

  color: rgba(255, 255, 255, 0.42);

  transition: 0.35s ease;
}

.side-menu a:hover {
  transform: translateX(-4px);

  color: rgba(255, 255, 255, 0.95);
}

.story-no {
  width: 24px;

  font-size: 0.85rem;

  color: rgba(255, 255, 255, 0.28);
}

.story-info {
  display: flex;
  flex-direction: column;
}

.story-info strong {
  font-size: 0.92rem;

  font-weight: 400;

  color: rgba(255, 255, 255, 0.92);
}

.story-info small {
  margin-top: 2px;

  font-size: 0.72rem;

  letter-spacing: 0.05em;

  color: rgba(255, 255, 255, 0.38);
}

.side-menu a.active {
  opacity: 1;
}

.side-menu a.coming {
  opacity: 0.55;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {
  .side-menu {
    right: 10px;
  }

  .story-info strong {
    font-size: 0.75rem;
  }

  .story-info small {
    font-size: 0.62rem;
  }

  .menu-brand {
    display: none;
  }
}
/* ==========================
   HUB BACK BUTTON
========================== */

.hub-back {
  position: fixed;
  top: 20px;
  left: 20px;

  padding: 12px 20px;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;

  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;

  backdrop-filter: blur(12px);

  z-index: 9999;
  transition: all 0.3s ease;
}

.hub-back:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 60, 60, 0.5);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.35);
}

/* スマホ */
@media (max-width: 768px) {
  .hub-back {
    top: 14px;
    left: 14px;
    font-size: 0.8rem;
    padding: 10px 16px;
  }
}
