/* ローディング画面のスタイル */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#loading-container {
  text-align: center;
  max-width: 400px;
  padding: 20px;
}

#loading-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  border-radius: 20px;
  background: white;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(13, 71, 161, 0.4);
  animation: logoFloat 2s ease-in-out infinite;
  object-fit: contain;
}

/* ロゴの継続的な浮遊アニメーション */
@keyframes logoFloat {
  0%, 100% { 
    transform: translateY(0px);
    box-shadow: 0 8px 32px rgba(13, 71, 161, 0.4);
  }
  50% { 
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.3);
  }
}

.loading-content {
  margin-top: 20px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-text {
  color: #1976D2;
  font-size: 18px;
  margin-bottom: 30px;
  min-height: 24px;
  font-weight: 500;
}

.loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.loading-dot {
  width: 12px;
  height: 12px;
  background: #1976D2;
  border-radius: 50%;
  animation: loadingDots 1.4s ease-in-out infinite both;
  box-shadow: 0 2px 4px rgba(13, 71, 161, 0.3);
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
    background: #42A5F5;
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.2);
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
    background: #0D47A1;
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.4);
  }
}