.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  color: #545454;
  opacity: 0.8;
  z-index: 10;
  display: none; /* ← JSで表示される */
}

.scroll-text {
  font-size: 18px;
  margin-bottom: 8px;
}

.scroll-arrow {
  display: block;
  font-size: 24px;
  animation: bounce 2s infinite;
}

/* アニメーション定義 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

/* アニメーション定義 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at center, #f0faff 0%, #ffffff 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: 'Noto Serif JP', serif;
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 300px;
  height: 300px;
}

.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  animation: floatFade 3s ease-in-out infinite alternate;
}

.logo-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 2px solid #5ce1e6;
  border-radius: 50%;
  animation: rotateRing 6s linear infinite;
  opacity: 0.2;
}

.logo-base,
.logo-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fill {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  animation: waveFill 4s linear forwards;
}

@keyframes waveFill {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }
  20% {
    clip-path: polygon(0 80%, 100% 85%, 100% 100%, 0 100%);
  }
  40% {
    clip-path: polygon(0 60%, 100% 55%, 100% 100%, 0 100%);
  }
  60% {
    clip-path: polygon(0 40%, 100% 45%, 100% 100%, 0 100%);
  }
  80% {
    clip-path: polygon(0 20%, 100% 15%, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%);
  }
}

@keyframes floatFade {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.03) translateY(-10px);
    opacity: 0.95;
  }
}

@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.percent {
  margin-top: 30px;
  font-size: 28px;
  font-weight: bold;
  animation: colorWave 2s ease-in-out infinite;
  color: #5ce1e6;
}

@keyframes colorWave {
  0%, 100% {
    color: #5ce1e6;
  }
  50% {
    color: #4567a0;
  }
}
.loading-dots-container {
  position: absolute;
  inset: 0;
  z-index: 3; /* ロゴの下にしたいなら 1〜2 に */
  pointer-events: none;
}

.loading-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #5ce1e6, transparent);
  border-radius: 50%;
  box-shadow: 0 0 8px #5ce1e6, 0 0 12px #5ce1e6;
  opacity: 0.85;
  animation: moveToCenter 2.5s ease-out forwards;
}

@keyframes moveToCenter {
  to {
    left: 50vw;
    top: 50vh;
    opacity: 0;
    transform: scale(0.2);
    filter: blur(2px);
  }
}

  

/*heroアニメーション*/
.hero-layer-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;

}

.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform-origin: center center;
  animation: waveScale 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s); /* 順に動く */
  opacity: 1;
}

@keyframes waveScale {
  0%   { transform: scaleY(1); }
  25%  { transform: scaleY(1.05); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}

.hero {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 3s ease, transform 3s ease;

}

.hero.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.char-fadein span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.glow-text {
  text-shadow: 0 0 6px rgba(92, 225, 230, 0.4);
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  color: #2c2c2c; /* ベースは黒 */
  font-weight: 600;
  background: linear-gradient(
    90deg,
    #2c2c2c 0%,         /* 最初は黒 */
    #5ce1e6 20%,
    #ffffff 50%,
    #5ce1e6 80%,
    #2c2c2c 100%
  );
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent; /* ← 背景だけで色を見せる */
  animation: shine-mix 10s ease-in-out infinite;
}

@keyframes shine-mix {
  0% {
    background-position: -100% center;
  }
  100% {
    background-position: 200% center;
  }
}
