/* ===== テーマ色（シティポップ）用の上書き：最後に読み込む =====
   面の色 --nv-side-bg / --nv-side-img、面の上の文字 --nv-side-fg、
   ボタン --nv-strong / --nv-on-strong、白地の上の文字・アイコン --nv-accent-text */

/* ---- サイドバー ---- */
.nv-side { background: var(--nv-side-img, none), var(--nv-side-bg) !important; background-color: var(--nv-side-bg) !important; color: var(--nv-side-fg) !important; }
.nv-side .nv-brand, .nv-side .nv-brand:hover,
.nv-side .nv-link, .nv-side .nv-link:hover,
.nv-side .nv-sub a, .nv-side .nv-sub a:hover,
.nv-side .nv-group, .nv-side-close { color: var(--nv-side-fg) !important; }
.nv-side .nv-link:hover, .nv-side .nv-sub a:hover { background: var(--nv-hover) !important; }
.nv-side .nv-link.is-active { background: #fff !important; color: #1d2b4f !important; box-shadow: 0 2px 0 rgba(29,43,79,.08); }
.nv-side .nv-link.is-active i { color: var(--nv-accent-text) !important; }
.nv-side .nv-badge { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.nv-side-close { background: var(--nv-hover) !important; }

/* ロゴ：明るい面ではネイビー、濃い面では白 */
.nv-logo-navy { display: none !important; }
body[data-side="light"] .nv-logo-white { display: none !important; }
body[data-side="light"] .nv-logo-navy { display: block !important; }

/* ---- スマホの上部バー ---- */
@media (max-width: 991.98px) {
  .nv-top { background: var(--nv-side-img, none), var(--nv-side-bg) !important; background-color: var(--nv-side-bg) !important; color: var(--nv-side-fg) !important; }
  .nv-top-brand, .nv-top-menu, .nv-user summary, .nv-top .nv-search-btn { color: var(--nv-side-fg) !important; }
  .nv-top-menu, .nv-user summary, .nv-top .nv-search-btn { background: var(--nv-hover) !important; }
}

/* ---- ボタン・強調（テーマ色の上の文字） ---- */
.nv-body .btn-primary, .nv-body .btn-success,
.nv-body .btn-primary:hover, .nv-body .btn-success:hover,
.nv-body .btn-outline-primary:hover,
.nv-body .card-header.bg-primary, .nv-body .card-header.bg-success,
.nv-body .badge.bg-primary,
.nv-body .pagination .page-item.active .page-link,
.nv-body .nav-pills .nav-link.active,
.nv-body .fc .fc-button-primary:not(:disabled).fc-button-active,
.nv-body .fc .fc-button-primary:not(:disabled):active,
.nvx-btn:not(.is-ghost):not(.is-warn), .nvx-btn:not(.is-ghost):not(.is-warn):hover,
.nvx-tile.is-main, .nvx-tile.is-main i, .nvx-tile.is-main small,
.nvx-seg button[aria-selected="true"] .n,
.nvx-chip.is-strong,
.nvp-opt.is-action .nvp-ico,
.nva-add, .nva-add:hover,
.nva-day.is-sel .w, .nva-day.is-sel .n, .nva-day.is-sel .c,
.nvd-btn, .nvd-btn:hover,
.nvh-btn, .nvh-btn:hover,
.nvk-pill[aria-pressed="true"],
.nvd-todo.tone-theme .t-cta { color: var(--nv-on-strong) !important; }
.nv-body .btn-primary:hover, .nv-body .btn-success:hover { background: color-mix(in srgb, var(--nv-strong) 88%, #1d2b4f) !important; }
.nvx-btn:not(.is-ghost):not(.is-warn):hover, .nvd-btn:hover { filter: brightness(.97) saturate(1.1); }
.nv-body .btn-outline-primary { color: var(--nv-accent-text) !important; border-color: var(--nv-strong) !important; }
.nv-body .form-check-input:checked { border-color: var(--nv-accent-text) !important; background-color: var(--nv-accent-text) !important; }
.nv-body .btn:focus-visible, .nv-body .form-control:focus, .nv-body .form-select:focus { border-color: var(--nv-accent-text) !important; }

/* ---- 白地の上の文字・アイコン（テーマ色を文字に使う所は濃い色で） ---- */
.nvx-tile i, .nvd-tile i, .nvd-box > h2 i, .nvd-todos-h i,
.nvd-tab[aria-selected="true"] i, .nvd-todo .t-cta,
.nva-today, .nvx-subnav a:hover,
.nv-body .nvx-btn.is-ghost i { color: var(--nv-accent-text) !important; }
.nv-tabbar .nv-link.is-active { color: var(--nv-accent-text) !important; }
.nvd-tab[aria-selected="true"] { border-bottom-color: var(--nv-accent-text) !important; }
.nvx-steps li.is-done::before { background: var(--nv-accent-text) !important; }

/* ---- 確認ゲージ（ダッシュボード） ---- */
.nvd-hero, .nvh-hero { background: var(--nv-side-img, none), var(--nv-side-bg) !important; background-color: var(--nv-side-bg) !important; color: var(--nv-side-fg) !important; }
.nvd-hero h1, .nvd-hero .d, .nvh-hero h1 { color: var(--nv-side-fg) !important; }
.nvd-ring { background: conic-gradient(var(--nv-ring) var(--deg, 0deg), rgba(255,255,255,.4) 0) !important; }
.nvd-ring > div { background: rgba(255,255,255,.55) !important; color: #1d2b4f; }
body[data-side="dark"] .nvd-ring > div { background: rgba(0,0,0,.25) !important; color: #fff; }

/* ---- 白い文字の見出し（予約状況など）・スケジュールの帯 ---- */
.nv-body .custa-card-header,
.nv-body .card-header:has(.text-white),
.nv-body .card-header.text-white,
.nv-body .schedule-toolbar { background: var(--nv-side-img, none), var(--nv-side-bg) !important; background-color: var(--nv-side-bg) !important; color: var(--nv-side-fg) !important; }
.nv-body .custa-card-header *, .nv-body .custa-card-header .text-white,
.nv-body .card-header .text-white,
.nv-body .schedule-title,
.nv-body .schedule-toolbar .btn-outline-secondary { color: var(--nv-side-fg) !important; }
.nv-body .schedule-toolbar .btn-outline-secondary { border-color: currentColor !important; background: var(--nv-hover) !important; }

/* ---- 淡い色 ---- */
.nv-body .table thead th { background: var(--nv-soft) !important; }
.nv-body .fc .fc-daygrid-day.fc-day-today { background: var(--nv-soft) !important; }
.nv-body .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { color: var(--nv-on-strong) !important; background: var(--nv-strong) !important; }
