/* ====================================
   ボトムナビゲーション
   ==================================== */

.app-nav {
  width: 100%;
  flex-shrink: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  padding: 5px 0 18px;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(27,43,114,0.1);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-h);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding-top: 4px;
  position: relative;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--navy); }
.nav-ico { font-size: 20px; line-height: 1; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.nav-ico img { width: 50px; height: 50px; object-fit: contain; transition: transform 0.15s; }
.nav-item.active .nav-ico img { transform: scale(1.1); }
.nav-item:active .nav-ico img { transform: scale(0.92); }
.nav-badge {
  position: absolute;
  top: 2px; right: calc(50% - 20px);
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  font-size: 9px; font-weight: 800;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
}
.nav-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 1px;
}

/* ボトムナビ Safe Area（iOS Safari PWA + Capacitor ネイティブ共通） */
.app-nav {
  padding-bottom: max(env(safe-area-inset-bottom), 4px);
}
/* ネイティブアプリ: さらに追加余白なし（Capacitorが制御） */
html.capacitor-native .app-nav {
  padding-bottom: env(safe-area-inset-bottom);
}
