/* 記念日ケーキ AR - カスタムスタイル */

/* フォント設定 */
body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* グラデーション背景 */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-pink {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* カードのホバーエフェクト */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ボタンのホバーエフェクト */
.btn-primary {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5588 0%, #b83d5a 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
}

/* ローディングアニメーション */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b9d;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* パルスアニメーション */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* フェードインアニメーション */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* AR体験用のスタイル */
.ar-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.book-container {
  perspective: 1000px;
  width: 300px;
  height: 400px;
}

.book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.book-page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.book-page img {
  max-width: 100%;
  max-height: 60%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .book-container {
    width: 250px;
    height: 350px;
  }
  
  .book-page {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .book-container {
    width: 200px;
    height: 300px;
  }
  
  .book-page {
    padding: 12px;
  }
}

/* フォーム関連 */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.form-input:focus {
  border-color: #ff6b9d;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* ドラッグ&ドロップエリア */
.dropzone {
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.dropzone.dragover {
  border-color: #ff6b9d;
  background: #fef5f7;
}

.dropzone:hover {
  border-color: #a0aec0;
}

/* プログレスバー */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b9d 0%, #c44569 100%);
  transition: width 0.3s ease;
}

/* 通知スタイル */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  min-width: 300px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.notification.error {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff5588 0%, #b83d5a 100%);
}