/* スプラッシュスクリーンスタイル */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-logo-container {
  position: relative;
  margin-bottom: 2rem;
}

.splash-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: logoFloat 2s ease-in-out infinite;
}

.splash-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

.splash-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.splash-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

.splash-loader {
  position: relative;
  width: 200px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.splash-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  border-radius: 2px;
  animation: loaderProgress 2s ease-in-out;
  width: 0%;
}

.splash-loading-text {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

/* アニメーション */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes loaderProgress {
  0% {
    width: 0%;
  }
  20% {
    width: 30%;
  }
  40% {
    width: 50%;
  }
  60% {
    width: 70%;
  }
  80% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

/* フェードイン効果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-logo-container,
.splash-title,
.splash-subtitle,
.splash-loader {
  animation: fadeIn 0.8s ease-out forwards;
}

.splash-title {
  animation-delay: 0.2s;
}

.splash-subtitle {
  animation-delay: 0.4s;
}

.splash-loader {
  animation-delay: 0.6s;
}
