/* SustainaBlue × Leo - Main Styles */
* { font-family: 'Noto Sans JP', sans-serif; }
body { background-color: #f0fafa; overflow-x: hidden; }

/* ボトムナビゲーション */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border-top: 1px solid #e0f0f0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(13, 115, 119, 0.1);
}

/* ページ */
.page { display: none; min-height: calc(100vh - 70px); padding-bottom: 80px; }
.page.active { display: block; }

/* アニメーション */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes celebration {
  0% { transform: scale(1); }
  25% { transform: scale(1.3) rotate(5deg); }
  50% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.2) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

.leo-float { animation: float 3s ease-in-out infinite; }
.leo-celebrate { animation: celebration 0.8s ease-in-out; }
.slide-up { animation: slide-up 0.4s ease-out; }

/* グラデーション */
.gradient-bg { background: linear-gradient(135deg, #0d7377 0%, #14a085 50%, #1ab8a0 100%); }
.gradient-card { background: linear-gradient(135deg, rgba(13,115,119,0.05) 0%, rgba(20,160,133,0.1) 100%); }

/* チャット */
.chat-bubble-leo {
  background: linear-gradient(135deg, #0d7377, #14a085);
  border-radius: 20px 20px 20px 4px;
  color: white;
}
.chat-bubble-user {
  background: white;
  border-radius: 20px 20px 4px 20px;
  border: 2px solid #14a085;
  color: #1a1a2e;
}
.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: typing 1.4s infinite;
  margin: 0 2px;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ポイントバー */
.points-bar {
  background: linear-gradient(90deg, #0d7377, #14a085);
  transition: width 0.8s ease;
}

/* カードホバー */
.card-hover { transition: all 0.2s; cursor: pointer; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,115,119,0.2); }

/* ナビゲーション */
.nav-btn.active .nav-icon { color: #0d7377; }
.nav-btn.active .nav-label { color: #0d7377; font-weight: 700; }
.nav-btn .nav-icon { color: #9ca3af; font-size: 1.3rem; }
.nav-btn .nav-label { color: #9ca3af; font-size: 0.65rem; margin-top: 2px; display: block; }
.nav-btn { transition: all 0.2s; }
.nav-btn:active { transform: scale(0.9); }

/* アクション選択 */
.action-type-btn { border: 2px solid #e5e7eb; transition: all 0.2s; }
.action-type-btn.selected { border-color: #0d7377; background: rgba(13,115,119,0.08); }

/* バッジ */
.badge-earned { filter: none; }
.badge-locked { filter: grayscale(100%) opacity(40%); }

/* マップタブ */
.active-tab { background: #0d7377; color: white; }
.inactive-tab { background: #f3f4f6; color: #6b7280; }
.map-tab { transition: all 0.2s; }

/* Leaflet */
.leaflet-container { border-radius: 16px; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: 0 8px 25px rgba(13,115,119,0.3) !important; }

/* クイズ */
.quiz-choice { transition: all 0.2s; cursor: pointer; }
.quiz-choice:hover { transform: translateX(4px); background: #f0fafa !important; }
.quiz-choice.correct { background: #d1fae5 !important; border-color: #10b981 !important; }
.quiz-choice.wrong { background: #fee2e2 !important; border-color: #ef4444 !important; }

/* 紙吹雪 */
.confetti-piece {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-fall 2s ease-in forwards;
  z-index: 9999;
  pointer-events: none;
}

/* スクロールバー */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #14a085; border-radius: 2px; }

/* submit btn state */
#submit-report-btn:not([disabled]) {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#submit-report-btn[disabled] {
  opacity: 0.5 !important;
  pointer-events: none !important;
}

/* teal colors */
.text-teal-primary { color: #0d7377; }
.border-teal-primary { border-color: #0d7377; }
.hover\:border-teal-primary:hover { border-color: #0d7377; }
.bg-teal-50 { background-color: #e8f5f5; }
.border-teal-100 { border-color: #c5e8e8; }
.border-teal-300 { border-color: #81c5c5; }
.border-teal-400 { border-color: #14a085; }

/* ナビゲーター設定 */
.pet-type-btn { transition: all 0.2s; cursor: pointer; }
.pet-type-btn:hover { transform: scale(1.05); }
.pet-type-btn.selected { transform: scale(1.05); }

/* ナビゲーターアイコン（ホーム画面のふわふわ） */
#navigator-icon-home { padding: 0 !important; }

/* 性格診断モーダル */
#personality-choices button { transition: all 0.15s; }
#personality-choices button:hover {
  transform: translateX(4px);
  background: #f0fafa !important;
  border-color: #81c5c5 !important;
}
