/* ==========================================================================
   モバイルアプリ CSS - Clory Mobile
   ========================================================================== */

:root {
  --mobile-header-height: 52px;
  --mobile-bottom-nav-height: 56px;
  --mobile-safe-area-top: env(safe-area-inset-top, 0px);
  --mobile-safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* モバイル版スクロールバーをシンプル化（グラデーション上書き） */
.mobile-app ::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.mobile-app ::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-app ::-webkit-scrollbar-thumb {
  background: var(--text-tertiary, #bdc3c7);
  border-radius: 2px;
  border: none;
}

[data-theme='dark'] .mobile-app ::-webkit-scrollbar-thumb {
  background: var(--border-color, #2f3845);
}

.mobile-app {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif;
  background: var(--bg-primary, #ffffff);
  color: var(--text-primary, #2c3e50);
}

/* --- ヘッダー --- */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--mobile-header-height) + var(--mobile-safe-area-top));
  padding-top: var(--mobile-safe-area-top);
  background: var(--bg-primary, #ffffff);
  border-bottom: 1px solid var(--border-color, #e1e8ed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 12px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.mobile-header.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.mobile-header__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-primary, #ff6b35);
  letter-spacing: -0.3px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* アイコン画像 */
.mobile-header__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* アイコンがある場合はドット非表示 */
.mobile-header__title:has(.mobile-header__icon)::before {
  display: none;
}

/* アイコンがない場合のブランドアクセントドット */
.mobile-header__title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-primary, #ff6b35);
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

.mobile-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-header__btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary, #2c3e50);
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s;
  position: relative;
}

.mobile-header__btn:active {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(0.92);
}

.mobile-header__btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent-primary, #ff6b35);
  border-radius: 50%;
  border: 2px solid var(--bg-primary, #ffffff);
}

/* --- メインコンテンツ --- */
.mobile-main {
  flex: 1;
  margin-top: calc(var(--mobile-header-height) + var(--mobile-safe-area-top));
  margin-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-area-bottom));
  overflow: hidden;
  position: relative;
}

.mobile-main.map-active {
  margin-top: 0;
}

/* --- タブコンテンツ --- */
.mobile-tab {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
  z-index: 0;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.mobile-tab.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* マップタブは常時レンダリング（Google Maps再初期化防止） */
.mobile-tab--map {
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

.mobile-tab--map:not(.active) {
  z-index: -1;
  pointer-events: none;
}

.mobile-tab--map.active {
  z-index: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.mobile-tab__content {
  min-height: 100%;
}

.mobile-tab__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 12px;
  color: var(--text-secondary, #7f8c8d);
  font-size: 14px;
}

.mobile-tab__loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color, #e1e8ed);
  border-top-color: var(--accent-primary, #ff6b35);
  border-right-color: #ffb347;
  border-radius: 50%;
  animation: mobile-spin 0.8s linear infinite;
}

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

/* --- タブエラー状態 --- */
.mobile-tab__error {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary, #7f8c8d);
}

.mobile-tab__error i {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
  color: var(--text-tertiary, #bdc3c7);
}

.mobile-tab__error p {
  margin: 0 0 12px;
  font-size: 14px;
}

.mobile-tab__error-btn {
  padding: 8px 20px;
  background: var(--accent-primary, #ff6b35);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s;
}

.mobile-tab__error-btn:active {
  opacity: 0.8;
}

/* --- ボトムナビゲーション --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-area-bottom));
  background: var(--bg-primary, #ffffff);
  border-top: 1px solid var(--border-color, #e1e8ed);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: var(--mobile-safe-area-bottom);
  z-index: 100;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--text-tertiary, #bdc3c7);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.2s,
    transform 0.15s;
  position: relative;
  min-height: 44px;
  min-width: 44px;
}

/* アクティブ状態ピルインジケーター */
.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent-primary, #ff6b35);
  border-radius: 0 0 3px 3px;
}

.mobile-nav-item.active {
  color: var(--accent-primary, #ff6b35);
}

/* タップフィードバック */
.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s ease;
}

/* アクティブアイコン拡大 */
.mobile-nav-item.active .mobile-nav-item__icon {
  transform: scale(1.1);
}

.mobile-nav-item__label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

/* アクティブラベルのフォントウェイト */
.mobile-nav-item.active .mobile-nav-item__label {
  font-weight: 700;
}

.mobile-nav-item__badge {
  position: absolute;
  top: 0;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  background: var(--accent-primary, #ff6b35);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* --- サブページ（詳細画面等） --- */
.mobile-subpage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary, #ffffff);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-subpage.open {
  transform: translateX(0);
}

.mobile-subpage__header {
  position: sticky;
  top: 0;
  height: calc(var(--mobile-header-height) + var(--mobile-safe-area-top));
  padding-top: var(--mobile-safe-area-top);
  background: var(--bg-primary, #ffffff);
  border-bottom: 1px solid var(--border-color, #e1e8ed);
  display: flex;
  align-items: center;
  padding-left: 4px;
  padding-right: 16px;
  z-index: 10;
}

.mobile-subpage__back {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary, #2c3e50);
}

.mobile-subpage__title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* --- 通知トースト --- */
.mobile-toast {
  position: fixed;
  top: calc(var(--mobile-header-height) + var(--mobile-safe-area-top) + 8px);
  left: 16px;
  right: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text-primary, #2c3e50);
  color: white;
  font-size: 14px;
  z-index: 500;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-toast--success {
  background: #27ae60;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}
.mobile-toast--error {
  background: #e74c3c;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.mobile-toast--warning {
  background: #f39c12;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* マップ表示時のトースト位置調整 */
.mobile-toast--map-active {
  top: calc(var(--mobile-safe-area-top) + 8px);
}

/* --- マップ底面パネル位置修正 --- */
.mobile-tab--map .map-unified-panel {
  bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-area-bottom) + 10px) !important;
}

/* --- 既存コンポーネントのモバイル調整 --- */
.mobile-tab--map .map-page {
  height: 100%;
}
.mobile-tab--map .map-container {
  height: 100% !important;
}
.mobile-tab--map .google-map {
  height: 100% !important;
}
.mobile-tab--map .map-search-container {
  top: var(--mobile-safe-area-top, 0);
}

.mobile-tab .sasoi-page {
  padding-bottom: 16px;
}
.mobile-tab .place-page {
  padding-bottom: 16px;
}
.mobile-tab .favorites-page {
  padding-bottom: 16px;
}
.mobile-tab .settings-container {
  padding-bottom: 16px;
}
.mobile-tab .settings-header__back-btn {
  display: none;
}

/* --- タッチターゲットサイズ修正 --- */
.mobile-tab--map .map-action-btn,
.mobile-tab--map .map-panel-close {
  min-height: 44px;
  min-width: 44px;
}

/* --- モバイルカード最適化 --- */

/* さそいカード（モバイル） */
.mobile-tab .sasoi-card {
  padding: 14px 16px;
}

.mobile-tab .sasoi-card__title {
  font-size: 16px;
}

.mobile-tab .sasoi-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 場所カード（モバイル） */
.mobile-tab .place-card .card-image,
.mobile-tab .favorite-card .card-image {
  height: 140px;
}

.mobile-tab .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- ローディング画面 --- */
.mobile-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.mobile-loader.hiding {
  opacity: 0;
  pointer-events: none;
}

/* 浮遊ブロブ（背景装飾） */
.mobile-loader__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  pointer-events: none;
}

.mobile-loader__blob--1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  background: #ff6b35;
  animation: splash-float 8s ease-in-out infinite;
}

.mobile-loader__blob--2 {
  width: 160px;
  height: 160px;
  bottom: -40px;
  left: -50px;
  background: #4ecdc4;
  animation: splash-float 10s ease-in-out infinite reverse;
}

[data-theme='dark'] .mobile-loader__blob {
  opacity: 0.1;
}

/* マスコットアイコン */
.mobile-loader__mascot {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  animation:
    splash-mascot-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    splash-breathe 3s ease-in-out 0.6s infinite;
}

/* ブランドテキスト（グラデーション） */
.mobile-loader__brand {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b35, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  animation: splash-text-enter 0.5s ease both 0.2s;
}

/* タグライン */
.mobile-loader__tagline {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary, #657786);
  margin-bottom: 24px;
  animation: splash-text-enter 0.5s ease both 0.4s;
}

[data-theme='dark'] .mobile-loader__tagline {
  color: rgba(255, 255, 255, 0.55);
}

.mobile-loader__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.mobile-loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color, #e1e8ed);
  border-top-color: var(--accent-primary, #ff6b35);
  border-radius: 50%;
  animation: mobile-spin 0.8s linear infinite;
}

/* バウンシングドットローダー */
.mobile-loader__dots {
  display: flex;
  gap: 8px;
  animation: splash-text-enter 0.5s ease both 0.6s;
}

.mobile-loader__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary, #ff6b35);
  animation: mobile-bounce 1.4s ease-in-out infinite;
}

.mobile-loader__dot:nth-child(2) {
  animation-delay: 0.16s;
  background: #ffb347;
}

.mobile-loader__dot:nth-child(3) {
  animation-delay: 0.32s;
  background: #4ecdc4;
}

/* --- スプラッシュ画面キーフレーム --- */
@keyframes splash-mascot-enter {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes splash-text-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(15px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

@keyframes mobile-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .mobile-loader__mascot,
  .mobile-loader__brand,
  .mobile-loader__tagline,
  .mobile-loader__dots {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-loader__blob {
    animation: none !important;
  }

  .mobile-loader__dot {
    animation: none !important;
    opacity: 0.7;
  }
}

/* --- マイクロインタラクション --- */

/* ボタンタップフィードバック */
.mobile-tab button:active,
.mobile-tab .btn-primary:active,
.mobile-tab .btn-secondary:active {
  transform: scale(0.97);
}

/* --- iOS対応 --- */
@supports (-webkit-touch-callout: none) {
  .mobile-app {
    min-height: -webkit-fill-available;
  }
}

/* ==========================================================================
   アクセシビリティ - フォーカスインジケータ
   ========================================================================== */
.mobile-nav-item:focus-visible,
.mobile-header__btn:focus-visible,
.mobile-subpage__back:focus-visible,
.mobile-tab__error-btn:focus-visible {
  outline: 2px solid var(--accent-primary, #ff6b35);
  outline-offset: 2px;
}

/* ==========================================================================
   アクセシビリティ - スキップナビゲーション
   ========================================================================== */
.visually-hidden-focusable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden-focusable:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent-primary, #ff6b35);
  color: white;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   アクセシビリティ - モーション軽減
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mobile-subpage,
  .mobile-tab,
  .mobile-header,
  .mobile-toast,
  .mobile-nav-item,
  .mobile-nav-item__icon,
  .mobile-loader__dot,
  .mobile-loader__spinner,
  .mobile-tab__loading .spinner {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ダークモード対応
   ========================================================================== */
[data-theme='dark'] .mobile-header {
  background: var(--bg-primary, #0f1419);
  border-bottom-color: var(--border-color, #2f3845);
}
[data-theme='dark'] .mobile-bottom-nav {
  background: var(--bg-primary, #0f1419);
  border-top-color: var(--border-color, #2f3845);
}
[data-theme='dark'] .mobile-subpage {
  background: var(--bg-primary, #0f1419);
}
[data-theme='dark'] .mobile-subpage__header {
  background: var(--bg-primary, #0f1419);
  border-bottom-color: var(--border-color, #2f3845);
}
[data-theme='dark'] .mobile-loader {
  background: var(--bg-primary, #0f1419);
}
[data-theme='dark'] .mobile-nav-item {
  color: var(--text-tertiary, #657786);
}
[data-theme='dark'] .mobile-nav-item.active {
  color: var(--accent-primary, #ff6b35);
}
[data-theme='dark'] .mobile-header__btn:active {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme='dark'] .mobile-tab__error-btn {
  background: var(--accent-primary, #ff6b35);
}
[data-theme='dark'] .mobile-toast {
  background: var(--bg-secondary, #1a2332);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.mobile-tab--map .bottom-sheet {
  bottom: calc(var(--mobile-bottom-nav-height, 56px) + var(--mobile-safe-area-bottom, 0px) + 10px);
}

/* ==========================================================================
   通知バッジ（ヘッダーベルアイコン）
   ========================================================================== */
.mobile-header__btn .notification-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #f44336;
  color: white;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary, #ffffff);
  line-height: 1;
}

/* ==========================================================================
   通知ドロワー
   ========================================================================== */
.notification-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
}

.notification-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-height: 70vh;
  background: var(--bg-primary, #ffffff);
  z-index: 1050;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notification-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--mobile-safe-area-top) + 16px) 16px 12px;
  border-bottom: 1px solid var(--border-color, #e1e8ed);
  flex-shrink: 0;
}

.notification-drawer__header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #2c3e50);
}

.notification-drawer__header button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary, #7f8c8d);
  cursor: pointer;
}

.notification-drawer__header button:active {
  background: rgba(0, 0, 0, 0.06);
}

.notification-drawer__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 0;
}

.notification-drawer__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-tertiary, #bdc3c7);
  font-size: 14px;
}

.notification-drawer__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.15s;
  position: relative;
}

.notification-drawer__item:active {
  background: rgba(0, 0, 0, 0.04);
}

.notification-drawer__item.unread {
  background: rgba(255, 165, 0, 0.06);
}

.notification-drawer__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-light, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary, #ff6b35);
  font-size: 16px;
}

.notification-drawer__item.unread .notification-drawer__icon {
  background: rgba(255, 165, 0, 0.12);
}

.notification-drawer__content {
  flex: 1;
  min-width: 0;
}

.notification-drawer__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #2c3e50);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-drawer__body {
  font-size: 13px;
  color: var(--text-secondary, #7f8c8d);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-drawer__time {
  font-size: 11px;
  color: var(--text-tertiary, #bdc3c7);
}

.notification-drawer__unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary, #ff6b35);
  flex-shrink: 0;
  margin-top: 6px;
}

/* --- 通知ドロワー ダークモード --- */
[data-theme='dark'] .notification-drawer {
  background: var(--bg-primary, #0f1419);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .notification-drawer__header {
  border-bottom-color: var(--border-color, #2f3845);
}

[data-theme='dark'] .notification-drawer__header button:active {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .notification-drawer__item:active {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme='dark'] .notification-drawer__item.unread {
  background: rgba(255, 165, 0, 0.08);
}

[data-theme='dark'] .notification-drawer__icon {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .notification-drawer__item.unread .notification-drawer__icon {
  background: rgba(255, 165, 0, 0.15);
}

[data-theme='dark'] .notification-drawer-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   さそいカード 承認待ちバッジ
   ========================================================================== */
.sasoi-card__pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--color-warning, #ffc107);
  color: #333;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

[data-theme='dark'] .sasoi-card__pending-badge {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}
