/* ============================================================
   nav-v2.css — kurumahub PC版ナビ v2 (Glassmorphism + Gradient)
   ============================================================
   - Single-tier header (60px) + 3 dropdowns + CTA
   - Glassmorphism: backdrop-filter blur + rgba background
   - Gradient accents (blue-600 -> indigo-600 -> violet-600)
   - Command Palette modal (search)
   - WCAG AAA: focus rings, aria, reduced-motion, prefers-contrast
   - No Tailwind opacity utilities — all via rgba() + box-shadow
   ============================================================ */

:root {
  /* Gradient stops */
  --kh-nav-grad-start: #2563EB;   /* blue-600 */
  --kh-nav-grad-mid:   #4F46E5;   /* indigo-600 */
  --kh-nav-grad-end:   #7C3AED;   /* violet-600 */
  --kh-nav-grad: linear-gradient(135deg, var(--kh-nav-grad-start) 0%, var(--kh-nav-grad-mid) 55%, var(--kh-nav-grad-end) 100%);

  /* Glass surfaces */
  --kh-nav-glass-bg:       rgba(255, 255, 255, 0.88);
  --kh-nav-glass-bg-solid: rgba(255, 255, 255, 0.98);
  --kh-nav-glass-border:   rgba(15, 23, 42, 0.08);
  --kh-nav-glass-shadow:   0 10px 40px -10px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);

  /* Glow */
  --kh-nav-glow-ring: 0 0 0 3px rgba(79, 70, 229, 0.22);
  --kh-nav-glow-lift: 0 14px 34px -10px rgba(37, 99, 235, 0.45);

  /* Dropdown timing */
  --kh-nav-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   1. Header shell
   ============================================================ */
/* ★ モバイル: backdrop-filter を ::before で代替し、.kh-nav-v2 自体は
   containing block を作らない（子孫の position:fixed を viewport に対して
   機能させるため）。Desktop (≥1024px) では直接適用で OK（モバイルメニュー
   が無いので containing block 問題は発生しない）。 */
.kh-nav-v2 {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--kh-nav-glass-bg-solid); /* モバイル: solid */
  border-bottom: 1px solid var(--kh-nav-glass-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

@media (min-width: 1024px) {
  .kh-nav-v2 {
    background: var(--kh-nav-glass-bg);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    backdrop-filter: saturate(1.6) blur(12px);
  }
}

.kh-nav-v2__container {
  max-width: 80rem; /* 1280px */
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .kh-nav-v2__container { padding: 0 1.5rem; }
}

/* ============================================================
   2. Logo
   ============================================================ */
.kh-nav-v2__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
}
.kh-nav-v2__logo img {
  height: 32px;
  width: auto;
  max-width: 160px;
  display: block;
}

/* ============================================================
   3. Primary nav (dropdown triggers) — PC only
   ============================================================ */
.kh-nav-v2__primary {
  display: none;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
}

@media (min-width: 1024px) {
  .kh-nav-v2__primary { display: flex; }
}

.kh-nav-v2__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.875rem;
  height: 44px;
  font-size: 0.9375rem;     /* 15px */
  font-weight: 600;
  color: #1E293B;            /* slate-800 */
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 160ms var(--kh-nav-ease), color 160ms var(--kh-nav-ease);
}

.kh-nav-v2__trigger:hover,
.kh-nav-v2__trigger:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  color: #2563EB;
}

.kh-nav-v2__trigger[aria-expanded="true"] {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.kh-nav-v2__trigger .kh-nav-v2__caret {
  width: 12px;
  height: 12px;
  transition: transform 200ms var(--kh-nav-ease);
}
.kh-nav-v2__trigger[aria-expanded="true"] .kh-nav-v2__caret {
  transform: rotate(180deg);
}

/* Active indicator underline (gradient) */
.kh-nav-v2__trigger[data-active="true"]::after,
.kh-nav-v2__link[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--kh-nav-grad);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

/* Flat link (お問い合わせ) styled like trigger */
.kh-nav-v2__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.875rem;
  height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1E293B;
  border-radius: 10px;
  text-decoration: none;
  transition: background 160ms var(--kh-nav-ease), color 160ms var(--kh-nav-ease);
}
.kh-nav-v2__link:hover,
.kh-nav-v2__link:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  color: #2563EB;
}

/* ============================================================
   4. Dropdown panel
   ============================================================ */
.kh-nav-v2__dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.kh-nav-v2__dropdown {
  position: absolute;
  /* Flush with bottom of header — no gap to traverse, mouse stays inside wrapper */
  top: 100%;
  left: 0;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid var(--kh-nav-glass-border);
  border-radius: 16px;
  box-shadow: var(--kh-nav-glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 0.75rem;
  z-index: 50;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .kh-nav-v2__dropdown { background: #ffffff; }
}

.kh-nav-v2__dropdown--grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.5rem;
  min-width: 640px;
  padding: 1rem;
}

.kh-nav-v2__dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.kh-nav-v2__dropdown-title {
  font-size: 0.6875rem;      /* 11px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;            /* slate-500 */
  padding: 0.5rem 0.75rem 0.375rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* AI × WEB3 tag（ドロップダウンタイトル隣） */
.kh-nav-v2__dropdown-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(79,70,229,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  text-transform: none;
  letter-spacing: 0.06em;
}

.kh-nav-v2__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1E293B;
  transition: background 140ms var(--kh-nav-ease), transform 140ms var(--kh-nav-ease);
}
.kh-nav-v2__item:hover,
.kh-nav-v2__item:focus-visible {
  background: rgba(37, 99, 235, 0.08);
}
.kh-nav-v2__item[aria-current="page"] {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}

.kh-nav-v2__item-icon {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  /* Per-item gradient via CSS vars (fallback: unified brand gradient) */
  background: linear-gradient(
    135deg,
    var(--item-from, #2563EB) 0%,
    var(--item-to,   #7C3AED) 100%
  );
  color: #ffffff;
  box-shadow:
    0 2px 8px -2px var(--item-glow, rgba(79, 70, 229, 0.35)),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  transition: transform 180ms var(--kh-nav-ease), box-shadow 200ms var(--kh-nav-ease);
  overflow: hidden;
}
/* Glass top-half highlight — WEB3 tech feel */
.kh-nav-v2__item-icon::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px; right: 2px;
  height: 45%;
  border-radius: 9px 9px 18px 18px / 9px 9px 8px 8px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.28), transparent);
  pointer-events: none;
}
.kh-nav-v2__item:hover .kh-nav-v2__item-icon {
  transform: translateX(2px) scale(1.05);
  box-shadow:
    0 8px 22px -4px var(--item-glow, rgba(79, 70, 229, 0.55)),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
.kh-nav-v2__item-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}

.kh-nav-v2__item-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.kh-nav-v2__item-label {
  font-size: 0.875rem;       /* 14px */
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.kh-nav-v2__item-desc {
  font-size: 0.75rem;        /* 12px */
  font-weight: 500;
  color: #64748B;
}

.kh-nav-v2__badge-new {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--kh-nav-grad);
  color: #ffffff;
  text-transform: uppercase;
}

.kh-nav-v2__dropdown-footer {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: flex-end;
}
.kh-nav-v2__dropdown-footer a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
}
.kh-nav-v2__dropdown-footer a:hover { text-decoration: underline; }

/* ============================================================
   5. Right utilities
   ============================================================ */
.kh-nav-v2__utils {
  display: none;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
}
@media (min-width: 1024px) {
  .kh-nav-v2__utils { display: inline-flex; }
}

.kh-nav-v2__search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.625rem;
  height: 36px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--kh-nav-ease), border-color 160ms var(--kh-nav-ease);
}
.kh-nav-v2__search-btn:hover,
.kh-nav-v2__search-btn:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
  color: #2563EB;
}
.kh-nav-v2__search-btn svg { width: 16px; height: 16px; }
.kh-nav-v2__search-btn kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 4px;
  color: #475569;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.kh-nav-v2__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  border: 0;
  cursor: pointer;
  transition: background 160ms var(--kh-nav-ease), color 160ms var(--kh-nav-ease);
}
.kh-nav-v2__icon-btn:hover,
.kh-nav-v2__icon-btn:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  color: #2563EB;
}
.kh-nav-v2__icon-btn svg { width: 20px; height: 20px; }

.kh-nav-v2__notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #EF4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}

.kh-nav-v2__avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem 0 0.25rem;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  color: #1E293B;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 160ms var(--kh-nav-ease);
}
.kh-nav-v2__avatar:hover,
.kh-nav-v2__avatar:focus-visible {
  background: rgba(37, 99, 235, 0.06);
}
.kh-nav-v2__avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8125rem;
  background: var(--kh-nav-grad);
}
.kh-nav-v2__avatar-circle--admin { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); }
.kh-nav-v2__avatar-circle--super { background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%); }

.kh-nav-v2__login {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background 160ms var(--kh-nav-ease), color 160ms var(--kh-nav-ease);
}
.kh-nav-v2__login:hover,
.kh-nav-v2__login:focus-visible {
  background: rgba(15, 23, 42, 0.05);
  color: #1E293B;
}

.kh-nav-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 40px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--kh-nav-grad);
  background-size: 150% 150%;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(79, 70, 229, 0.45);
  transition: transform 180ms var(--kh-nav-ease), box-shadow 180ms var(--kh-nav-ease), background-position 400ms var(--kh-nav-ease);
}
.kh-nav-v2__cta:hover,
.kh-nav-v2__cta:focus-visible {
  transform: translateY(-1px);
  background-position: 100% 100%;
  box-shadow: var(--kh-nav-glow-lift), var(--kh-nav-glow-ring);
}

/* Contact CTA (お問い合わせ) — secondary gradient style */
.kh-nav-v2__link--contact {
  color: #2563EB;
  font-weight: 700;
}
.kh-nav-v2__link--contact:hover,
.kh-nav-v2__link--contact:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  color: #1D4ED8;
}

/* Investor link — distinctive violet/indigo accent with subtle gradient text */
.kh-nav-v2__link--investor {
  color: #7C3AED;
  font-weight: 700;
  gap: 0.375rem;
}
.kh-nav-v2__link--investor::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(79,70,229,0.08) 100%);
  opacity: 0;
  transition: opacity 160ms var(--kh-nav-ease);
  z-index: -1;
  pointer-events: none;
}
.kh-nav-v2__link--investor:hover,
.kh-nav-v2__link--investor:focus-visible {
  color: #5B21B6;
  background: transparent;
}
.kh-nav-v2__link--investor:hover::before,
.kh-nav-v2__link--investor:focus-visible::before,
.kh-nav-v2__link--investor[data-active="true"]::before {
  opacity: 1;
}
.kh-nav-v2__link--investor svg {
  color: #7C3AED;
  transition: transform 200ms var(--kh-nav-ease);
}
.kh-nav-v2__link--investor:hover svg {
  transform: translate(1px, -1px);
}

/* ============================================================
   6. Scroll progress bar
   ============================================================ */
.kh-scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--kh-nav-grad);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
  pointer-events: none;
  transition: width 80ms linear;
}

/* ============================================================
   7. Mobile menu (below 1024px)
   ============================================================ */
.kh-nav-v2__mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  color: #1E293B;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.kh-nav-v2__mobile-btn:hover,
.kh-nav-v2__mobile-btn:focus-visible {
  background: rgba(37, 99, 235, 0.06);
}
.kh-nav-v2__mobile-btn svg { width: 24px; height: 24px; }

@media (min-width: 1024px) {
  .kh-nav-v2__mobile-btn { display: none; }
}

/* ============================================================
   Mobile menu — iOS / Android native-app feel
   - Full-screen sheet with solid white background
   - iOS grouped-list style sections (rounded corners + dividers)
   - 56px min row height (a11y comfortable tap target)
   - Solid colors, no gradients
   - safe-area-inset-top/bottom for notched devices
   - active:bg touch feedback (no hover:bg on mobile)
   ============================================================ */
.kh-nav-v2__mobile-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.kh-nav-v2__mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: auto;
}
.kh-nav-v2__mobile-sheet {
  position: absolute;
  inset: 0;
  background: #F2F2F7; /* iOS system grouped background */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); /* CTA bar space */
}
.kh-nav-v2__mobile-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  height: auto;
  padding: env(safe-area-inset-top, 0px) 1rem 0 1rem;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  z-index: 1;
}
.kh-nav-v2__mobile-header > * { height: 56px; display: flex; align-items: center; }
.kh-nav-v2__mobile-body { padding: 1rem; }

/* 検索ボタン — iOS Settings 風 search バー */
.kh-nav-v2__mobile-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.875rem;
  background: rgba(118, 118, 128, 0.12);
  border: 0;
  border-radius: 10px;
  font-size: 16px; /* iOS zoom 防止 */
  color: #8E8E93;
  cursor: pointer;
  margin-bottom: 1.25rem;
  touch-action: manipulation;
}
.kh-nav-v2__mobile-search:active {
  background: rgba(118, 118, 128, 0.18);
}
.kh-nav-v2__mobile-search svg { width: 16px; height: 16px; flex-shrink: 0; }

/* iOS grouped list セクション —
   各セクションは角丸カード内に item を積み重ね、dividers で区切る */
.kh-nav-v2__mobile-section {
  margin-bottom: 1.25rem;
}
.kh-nav-v2__mobile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 1rem;         /* 16px — Japanese 読みやすい */
  font-weight: 600;
  letter-spacing: 0;       /* uppercase letter-spacing 撤廃 */
  text-transform: none;    /* uppercase 撤廃（日本語に合わない） */
  color: #1C1C1E;          /* iOS label color */
  background: #FFFFFF;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  touch-action: manipulation;
  transition: background-color 150ms ease;
}
.kh-nav-v2__mobile-section-title[aria-expanded="true"] {
  border-radius: 10px 10px 0 0;
}
.kh-nav-v2__mobile-section-title:active {
  background: rgba(118, 118, 128, 0.12);
}
.kh-nav-v2__mobile-section-title svg {
  width: 14px;
  height: 14px;
  color: #C7C7CC;  /* iOS chevron gray */
  transition: transform 200ms var(--kh-nav-ease);
  flex-shrink: 0;
}
.kh-nav-v2__mobile-section-title[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: #8E8E93;
}

/* 展開時の items リスト（グループカード下半分） */
.kh-nav-v2__mobile-items {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.kh-nav-v2__mobile-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;                     /* iOS コンフォータブル行高 */
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #1C1C1E;
  font-size: 16px;                      /* iOS zoom 防止・読みやすさ */
  font-weight: 500;
  background: #FFFFFF;
  border-top: 1px solid rgba(60, 60, 67, 0.1);  /* iOS divider */
  transition: background-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kh-nav-v2__mobile-items > .kh-nav-v2__mobile-item:first-child {
  border-top: 0;  /* 最上段 divider なし */
}
.kh-nav-v2__mobile-item:active {
  background: rgba(118, 118, 128, 0.12);
}
.kh-nav-v2__mobile-item[aria-current="page"] {
  background: rgba(0, 122, 255, 0.08);
  color: #007AFF;  /* iOS system blue */
  font-weight: 600;
}
.kh-nav-v2__mobile-item .kh-nav-v2__item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
  flex-shrink: 0;
}
.kh-nav-v2__mobile-item .kh-nav-v2__item-icon svg {
  width: 18px;
  height: 18px;
}

/* 単発リンク（セクション外のスタンドアロンアイテム） */
.kh-nav-v2__mobile-body > .kh-nav-v2__mobile-item {
  background: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border-top: 0;
}

/* 下部固定 CTA バー — iOS シート下部の primary アクション帯 */
.kh-nav-v2__mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid rgba(60, 60, 67, 0.12);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.kh-nav-v2__mobile-cta-bar > a {
  flex: 1;
  min-height: 50px;
  font-size: 16px;
  touch-action: manipulation;
  transition: background-color 120ms ease, transform 120ms ease;
}
.kh-nav-v2__mobile-cta-bar > a:active { transform: scale(0.98); }
.kh-nav-v2__mobile-cta-bar .kh-nav-v2__cta {
  width: 100%;
  justify-content: center;
  height: 50px;
  background: #007AFF;       /* iOS system blue */
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
}
.kh-nav-v2__mobile-cta-bar .kh-nav-v2__cta:active { background: #0062CC; }
.kh-nav-v2__mobile-cta-bar .kh-nav-v2__login {
  flex: 0 0 38%;
  justify-content: center;
  height: 50px;
  background: #FFFFFF;
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 10px;
  color: #007AFF;
  font-weight: 600;
}
.kh-nav-v2__mobile-cta-bar .kh-nav-v2__login:active {
  background: rgba(118, 118, 128, 0.12);
}

/* お知らせ数バッジ — iOS 風赤丸 */
.kh-nav-v2__badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 0.5rem;
  background: #FF3B30;  /* iOS system red */
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
}

/* ============================================================
   Phase 12 — App-store-style mobile menu
   Hero card + Tile grid + Chip scroll + Grouped list
   モダンな日本製 / iOS / Android アプリ UI を参考に、
   ただの「リスト」ではなく「アプリ画面」として設計。
   ============================================================ */

/* ─── 1. HERO CARD ───────────────────────────────────────── */
.kh-m-hero {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  margin: 0 0 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 120ms ease;
}
.kh-m-hero:active { transform: scale(0.985); }

/* 会員向け：ホワイトカード + ブランド avatar */
.kh-m-hero--member {
  background: #FFFFFF;
  color: #1C1C1E;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 0 rgba(0,0,0,0.02) inset;
  border: 1px solid rgba(60,60,67,0.08);
}
.kh-m-hero__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(37,99,235,0.4);
}
.kh-m-hero__info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.kh-m-hero__greeting {
  font-size: 11px;
  color: #8E8E93;
  font-weight: 500;
}
.kh-m-hero__name {
  font-size: 16px;
  color: #1C1C1E;
  font-weight: 700;
  margin: 2px 0 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kh-m-hero__action {
  font-size: 12px;
  color: #007AFF;
  font-weight: 600;
}
.kh-m-hero__badge {
  position: absolute;
  top: 10px; right: 10px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: #FF3B30;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ゲスト向け：プレミアムな gradient カード（会員化誘導 + WEB3 tech accent） */
.kh-m-hero--guest {
  flex-direction: column;
  gap: 0.875rem;
  align-items: stretch;
  background: linear-gradient(135deg, #1E40AF 0%, #4F46E5 55%, #7C3AED 100%);
  color: #FFFFFF;
  padding: 1.125rem 1.25rem 1rem;
  box-shadow: 0 12px 32px -8px rgba(79,70,229,0.4);
  position: relative;
  overflow: hidden;
}
/* WEB3 風 mesh アクセント */
.kh-m-hero--guest::before {
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 220px; height: 220px;
  background:
    radial-gradient(circle at 30% 30%, rgba(147,197,253,0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(244,114,182,0.25) 0%, transparent 55%);
  pointer-events: none;
  filter: blur(8px);
}
/* 微細な grid dots（tech feel） */
.kh-m-hero--guest::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
  opacity: 0.5;
}

/* AI × WEB3 バッジ（右上に配置・shimmer アニメーション） */
.kh-m-hero__tech {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  overflow: hidden;
  z-index: 2;
}
.kh-m-hero__tech::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: kh-m-shimmer 2.5s ease-in-out infinite;
  animation-delay: 0.8s;
}
@keyframes kh-m-shimmer {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-m-hero__tech::before { animation: none; }
}
.kh-m-hero__content { position: relative; z-index: 1; }
.kh-m-hero__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.kh-m-hero__sub {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.kh-m-hero__cta {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.kh-m-hero__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kh-m-hero__btn:active { transform: scale(0.96); }
.kh-m-hero__btn--ghost {
  background: rgba(255,255,255,0.18);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}
.kh-m-hero__btn--primary {
  background: #FFFFFF;
  color: #2563EB;
}

/* ─── 2. SECTION TITLE（+ WEB3 / AI タグ） ──────────────── */
.kh-m-section { margin-bottom: 1.5rem; }
.kh-m-section__title {
  font-size: 13px;
  font-weight: 600;
  color: #8E8E93;
  margin: 0 0 0.625rem 0.25rem;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kh-m-section__tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(79,70,229,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.kh-m-section__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.625rem;
  padding: 0.375rem 0.25rem;
  font-size: 13px;
  color: #007AFF;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.kh-m-section__more:active { opacity: 0.6; }

/* ─── 3. TILE GRID — 3×2 car-themed WEB3 tiles ────────── */
.kh-m-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}
.kh-m-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  aspect-ratio: 1;
  padding: 0.75rem 0.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(60,60,67,0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #1C1C1E;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  /* subtle tech-feel box shadow */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 2px 8px -4px rgba(0,0,0,0.03);
}
/* Subtle corner highlight — WEB3 glass feel */
.kh-m-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(255,255,255,0.8) 0%,
    transparent 40%
  );
  border-radius: inherit;
  pointer-events: none;
}
.kh-m-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 120ms ease;
  pointer-events: none;
  border-radius: inherit;
}
.kh-m-tile:active {
  transform: scale(0.95);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 16px -4px var(--tile-glow, rgba(0,0,0,0.1));
}
.kh-m-tile:active::after { background: rgba(0,0,0,0.04); }
.kh-m-tile[aria-current="page"] {
  border-color: var(--tile-grad-from, #007AFF);
  box-shadow:
    0 0 0 1px var(--tile-grad-from, #007AFF),
    0 4px 12px -4px var(--tile-glow, rgba(0,0,0,0.2));
}
/* Gradient-filled disc — WEB3 / tech aesthetic */
.kh-m-tile__icon {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--tile-grad-from, #3B82F6) 0%,
    var(--tile-grad-to,   #6366F1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow:
    0 4px 12px -2px var(--tile-glow, rgba(59,130,246,0.45)),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
/* Inner glass highlight on icon disc */
.kh-m-tile__icon::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px; right: 2px;
  height: 45%;
  border-radius: 12px 12px 22px 22px / 12px 12px 8px 8px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}
.kh-m-tile__icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}
.kh-m-tile__label {
  font-size: 13px;
  font-weight: 700;
  color: #1C1C1E;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

/* ─── 4. CHIP SCROLL — horizontal tools ────────────────── */
.kh-m-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0 0.5rem;
  margin: 0 -1rem;      /* bleed to edges for iOS scroll feel */
  padding-left: 1rem;
  padding-right: 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.kh-m-chips::-webkit-scrollbar { display: none; }
.kh-m-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  background: #FFFFFF;
  color: #1C1C1E;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: start;
}
/* 左端に tech accent ドット（chip-accent color） */
.kh-m-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--chip-accent, #007AFF);
  box-shadow: 0 0 6px var(--chip-accent, #007AFF);
  flex-shrink: 0;
}
.kh-m-chip:active {
  transform: scale(0.96);
  background: rgba(37,99,235,0.06);
  box-shadow: 0 2px 8px -2px var(--chip-accent, rgba(37,99,235,0.25));
}
.kh-m-chip[aria-current="page"] {
  background: var(--chip-accent, #007AFF);
  color: #FFFFFF;
  border-color: var(--chip-accent, #007AFF);
  box-shadow: 0 2px 10px -2px var(--chip-accent, rgba(37,99,235,0.45));
}
.kh-m-chip[aria-current="page"]::before {
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
.kh-m-chip__new {
  background: linear-gradient(135deg, #FF3B30, #FF6B4A);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 3px rgba(255,59,48,0.4);
}

/* ─── 5. GROUPED LIST — iOS-style rows ─────────────────── */
.kh-m-list {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
}
.kh-m-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: #1C1C1E;
  font-size: 15px;
  font-weight: 500;
  border-top: 0.5px solid rgba(60,60,67,0.12);
  transition: background-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kh-m-list__item:first-child { border-top: 0; }
.kh-m-list__item:active {
  background-color: rgba(0,0,0,0.04);
}
.kh-m-list__item[aria-current="page"] {
  background: rgba(0,122,255,0.08);
  color: #007AFF;
  font-weight: 600;
}
.kh-m-list__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── 6. PHONE CONTACT CARD ─────────────────────────────── */
.kh-m-contact-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: #FFFFFF;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(60,60,67,0.08);
  transition: transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kh-m-contact-card:active { transform: scale(0.985); }
.kh-m-contact-card__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,122,255,0.1);
  color: #007AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kh-m-contact-card__icon svg { width: 20px; height: 20px; }
.kh-m-contact-card__info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.kh-m-contact-card__label {
  font-size: 11px;
  color: #8E8E93;
  font-weight: 500;
}
.kh-m-contact-card__number {
  font-size: 17px;
  font-weight: 700;
  color: #007AFF;
  margin-top: 1px;
  letter-spacing: -0.02em;
}
.kh-m-contact-card__hours {
  font-size: 11px;
  color: #8E8E93;
  font-weight: 400;
  margin-top: 1px;
}

/* ============================================================
   8. Command Palette (search modal)
   ============================================================ */
.kh-cmdpal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 1rem;
}
@media (max-width: 640px) {
  .kh-cmdpal-backdrop { padding: 4vh 0.75rem 0; }
}

.kh-cmdpal {
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.kh-cmdpal__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.125rem;
  height: 60px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.kh-cmdpal__search svg {
  width: 20px;
  height: 20px;
  color: #64748B;
  flex-shrink: 0;
}
.kh-cmdpal__search input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #0F172A;
  min-width: 0;
}
.kh-cmdpal__search input::placeholder { color: #94A3B8; }
.kh-cmdpal__search kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 5px;
  color: #475569;
}

.kh-cmdpal__tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 0.875rem 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.kh-cmdpal__tabs::-webkit-scrollbar { display: none; }
.kh-cmdpal__tab {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms var(--kh-nav-ease), color 140ms var(--kh-nav-ease);
}
.kh-cmdpal__tab:hover { background: rgba(15, 23, 42, 0.04); }
.kh-cmdpal__tab[aria-selected="true"] {
  background: var(--kh-nav-grad);
  color: #ffffff;
}

.kh-cmdpal__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
}
.kh-cmdpal__section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 0.625rem 0.75rem 0.375rem;
}
.kh-cmdpal__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #0F172A;
  cursor: pointer;
}
.kh-cmdpal__item:hover,
.kh-cmdpal__item.is-selected {
  background: rgba(37, 99, 235, 0.08);
}
.kh-cmdpal__item-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border-radius: 8px;
}
.kh-cmdpal__item-icon svg { width: 16px; height: 16px; }
.kh-cmdpal__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.kh-cmdpal__item-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kh-cmdpal__item-desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
}
.kh-cmdpal__item-arrow {
  width: 16px;
  height: 16px;
  color: #94A3B8;
  flex-shrink: 0;
}
.kh-cmdpal__item:hover .kh-cmdpal__item-arrow,
.kh-cmdpal__item.is-selected .kh-cmdpal__item-arrow {
  color: #2563EB;
}

.kh-cmdpal__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #94A3B8;
  font-size: 0.875rem;
}

.kh-cmdpal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem 0.75rem;
}
.kh-cmdpal__chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.625rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms var(--kh-nav-ease), border-color 140ms var(--kh-nav-ease);
}
.kh-cmdpal__chip:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: #2563EB;
}

.kh-cmdpal__footer {
  display: flex;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  font-size: 0.6875rem;
  color: #64748B;
}
.kh-cmdpal__footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.kh-cmdpal__footer kbd {
  display: inline-flex;
  align-items: center;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 3px;
  color: #475569;
}

/* ============================================================
   9. Accessibility — focus rings + reduced motion + contrast
   ============================================================ */
.kh-nav-v2 :focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.kh-cmdpal :focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .kh-nav-v2 *,
  .kh-cmdpal *,
  .kh-scroll-progress {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: more) {
  .kh-nav-v2 { background: #ffffff; }
  .kh-nav-v2__dropdown,
  .kh-cmdpal { background: #ffffff; }
  .kh-nav-v2__cta,
  .kh-nav-v2__item-icon,
  .kh-cmdpal__tab[aria-selected="true"],
  .kh-scroll-progress { background: #1D4ED8; }
}

/* ============================================================
   10. Alpine x-cloak global safety (prevents flash before hydration)
   ============================================================ */
[x-cloak] { display: none !important; }

/* ============================================================
   11. xl breakpoint utility for dashboard label (Tailwind-free)
   ============================================================ */
.kh-nav-v2__dash-label { display: none; }
@media (min-width: 1280px) {
  .kh-nav-v2__dash-label { display: inline; }
}

/* Smooth show/hide for mobile accordion without x-collapse plugin */
.kh-nav-v2__mobile-items {
  transition: max-height 260ms var(--kh-nav-ease), opacity 200ms var(--kh-nav-ease);
}
