/* ===================== */
/* Fullscreen white overlay */
.loading-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.loader-line-1, .loader-line-2 {
  font-family: 'Smooch Sans', sans-serif;
  color: #000;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ===================== */
/* Body & typography */
body {
  font-family: 'Smooch Sans','Noto Serif Thai', serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* BGM toggle button */
.bgm-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  z-index: 999;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===================== */
/* Top-bar / hero */
.top-bar {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 1;
}

.top-bar .hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.top-bar .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeHero 20s infinite;
}

.top-bar .slide-a { background-image: url('https://ainamachi.neocities.org/SomniA/assets/20251026_SN_1.jpg'); animation-delay: 0s; }
.top-bar .slide-b { background-image: url('https://ainamachi.neocities.org/SomniA/assets/20251026_SN_2.jpg'); animation-delay: 5s; }
.top-bar .slide-c { background-image: url('https://ainamachi.neocities.org/SomniA/assets/20251026_SN_master.jpg'); animation-delay: 10s; }

@keyframes fadeHero {
  0%, 35%, 100% { opacity: 0; }
  5%, 30% { opacity: 1; }
}

/* Top-row: logo + tagline */
.top-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
  z-index: 2;
}

.top-logo {
  width: 250px;
  height: auto;
  margin-left: 50px;
}

.tagline {
  margin-left: auto;
  font-family: 'Smooch Sans', sans-serif;
  max-width: 45%;
  font-size: 3rem;
  text-align: center;
  color: #fff;
  z-index: 2;
}

/* Genre */
.genre {
  margin-top: 0.25rem;
  margin-left: 50px;
  font-family: 'Smooch Sans', sans-serif;
  font-size: 3.75rem;
  color: #eee;
  max-width: 45%;
  z-index: 2;
}

/* Introduction */
.introduction {
  max-width: 45%;
  margin-left: 50px;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.4;
  z-index: 2;
}

/* Bottom-row: credit */
.bottom-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  gap: 1rem;
  z-index: 2;
}

.credit {
  margin-left: auto;
  font-family: 'Smooch Sans', sans-serif;
  max-width: 45%;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  z-index: 2;
}

/* ===================== */
/* Catalog */
.catalog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.volume-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.volume-cover {
  width: 175px;
  height: auto;
  object-fit: contain;
}

.volume-info-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
}

.volume-info-col h2,
.volume-info-col p,
.volume-info-col .volume-premise {
  margin: 0;
  padding: 0;
  line-height: 1.2em;
/* ===================== */
/* Catalog Buttons */
}
.volume-buttons-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.volume-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: 'Smooch Sans', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.volume-button:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Optional: darker look for light backgrounds */
.volume-card .volume-button {
  color: #222;
  border-color: rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.8);
}

.volume-card .volume-button:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.3);
}


/* ===================== */
/* Mobile styles */
@media (max-width: 480px) {
  .top-bar {
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 85vh;
  }

.hero-slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1; }
  
  .hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 65% center !important;
}
 .top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
  }

  .top-logo { width: 200px; margin: 0 auto; }
  .tagline {
    margin: 0;
    font-size: 2rem;
  }

  .genre {
    margin: 0.5rem 0 0 0%; /* small top gap, slightly left aligned */
    font-size: 1.2rem;
    text-align: center;       /* aligns text slightly left within container */
    width: 80%;             /* optional, to not span full width */
  }
  .introduction {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90%;
    text-align: center;
    margin: 0;
  }
  .credit {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 90%;
    margin: 0;
  }

}
