/* ローディング画面のスタイル */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 2rem;
}

.loading-content h3 {
  font-size: 2rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.loading-content p {
  font-size: 1.1rem;
  margin: 0.5rem 0 1.5rem 0;
  opacity: 0.9;
}

#loading-progress-text {
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: white !important;
  margin: 1rem 0 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.loading-content small {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1rem;
  display: block;
}

/* Unity Canvas のスタイル */
#unity-canvas {
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: fill !important;
  
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  
  background: rgb(35, 31, 32) !important;
  transition: all 0.3s ease !important;
}

/* デスクトップ（非モバイル）での Unity Canvas スタイル */
@media (min-width: 769px) {
  #unity-canvas {
    width: 100vw !important;
    height: 100vh !important;
  }
}

/* モバイルでの Unity Canvas スタイル */
@media (max-width: 768px) {
  #unity-canvas {
    width: 100% !important;
    height: 100% !important;
  }
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.retry-button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.retry-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .loading-content {
    padding: 1rem;
    max-width: 300px;
  }
  
  .loading-content h3 {
    font-size: 1.5rem;
  }
  
  .loading-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .loading-content h3 {
    font-size: 1.3rem;
  }
  
  .loading-content p {
    font-size: 0.9rem;
  }
}

input[type="text"] {
  font-size: 16px;
}

input[type="number"]
{
  font-size: 16px;
}
