/* PWA スプラッシュ画面スタイル */
.pwa-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.pwa-splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.splash-logo svg {
  width: 64px;
  height: 64px;
  color: #2563eb;
}

.splash-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

.splash-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  text-align: center;
  margin-bottom: 48px;
}

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

/* ローディングアニメーション */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .splash-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 24px;
  }
  
  .splash-logo svg {
    width: 48px;
    height: 48px;
  }
  
  .splash-title {
    font-size: 20px;
  }
  
  .splash-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .pwa-splash-screen {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  }
}

/* iOS Safari 対応 */
@supports (-webkit-touch-callout: none) {
  .pwa-splash-screen {
    /* iOS Safari でのビューポート高さの問題を回避 */
    height: 100vh;
    height: -webkit-fill-available;
  }
}