/* === Floating Section Indicator (Top Right) === */
#section-indicator {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  pointer-events: none; /* Prevent from blocking clicks */
}
#section-indicator .label {
  display: inline-block;
  padding: 1rem 1.6rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #222; /* 濃い文字色 */
 
  transform-origin: 0% 50%;
  will-change: transform, opacity, filter;
}

/* Animation classes */
#section-indicator .label.anim-out {
  animation: indicatorOut .28s ease forwards;
}
#section-indicator .label.anim-in {
  animation: indicatorIn .42s cubic-bezier(.2,.7,.2,1.1) forwards;
}

@keyframes indicatorOut {
  0%   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateX(-16px) scale(.98) rotateZ(-1deg); filter: blur(1px); }
}
@keyframes indicatorIn {
  0%   { opacity: 0; transform: translateX(24px) scale(.98) rotateZ(1deg); filter: blur(1px); }
  60%  { opacity: 1; transform: translateX(-2px) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@media (max-width: 640px) {
  #section-indicator {
    top: 40px;
    right: 10px;
  }
  #section-indicator .label {
    padding: .6rem 1rem;
    font-size: 1.1rem;
  }
}




/* === Intro Splash Overlay === */
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff; /* 背景は白で覆う */
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  justify-items: center;
  transition: opacity 1s ease;
}

#intro-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-splash .sidebar-stripes--outside {
  height: 100%;
}

#intro-splash .splash-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

#intro-splash .splash-center img {
  width: min(360px, 80vw);
  height: auto;
  display: block;
}