/* ============================================
   CANONICAL NAVBAR - サイト診断Pro
   ============================================ */
.old-nav, .duplicate-nav { display: none !important; }
.mobile-menu        { display: none !important; }
.mobile-menu-overlay{ display: none !important; }

.pro-navbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
.pro-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.pro-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0F172A;
  font-weight: 800;
  font-size: 1.1rem;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.pro-nav-brand:hover { opacity: 0.85; }
.pro-nav-logo-img   { height: 36px; max-width: 165px; width: auto; }
.beta-badge-nav {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgb(219,234,254);
  color: rgb(30,64,175);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.4;
  vertical-align: middle;
  display: inline-block;
}
.pro-nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
}
.pro-nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.pro-nav-link:hover { background: #F1F5F9; color: #0052CC; }
.pro-nav-link.active { color: #0052CC; background: #EFF6FF; }
.pro-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: #0052CC;
}
.pro-nav-user { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.pro-nav-cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
}
.pro-nav-cta-primary {
  background: #0066FF;
  color: white;
  border: 2px solid #0066FF;
}
.pro-nav-cta-primary:hover {
  background: #0052CC;
  border-color: #0052CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,102,255,0.3);
}
.pro-nav-cta-outline {
  background: white;
  color: #0052CC;
  border: 2px solid #0052CC;
}
.pro-nav-cta-outline:hover { background: #0052CC; color: white; }
.theme-toggle {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: #475569;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: #f1f5f9; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-btn span {
  display: block;
  width: 24px; height: 2px;
  background: #1e3a5f;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .pro-navbar-container { padding: 0 1rem; height: 60px; }
  .pro-nav-links  { display: none; }
  .pro-nav-user   { display: none; }
  .hamburger-btn  { display: flex; }
  .mobile-menu {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 1rem;
    display: block !important;
  }
  .mobile-menu.active { right: 0; }
  .mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
    display: block !important;
  }
  .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
  .mobile-menu-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
  }
  .mobile-menu-links { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
  .mobile-menu-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
  }
  .mobile-menu-links a:hover { background: #f1f5f9; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-overlay { display: none !important; }
}

.nav-flagship-link {
  color: #f59e0b !important;
  font-weight: 700;
}
.nav-new-badge {
  display: inline-block;
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.4;
}
