/* =========================================================
   anagura-nav.css v2.2 Enhanced
   Unified Header, Breadcrumb, Primary Nav & Nested Menus
   
   Features:
   - Sticky header with backdrop blur
   - Breadcrumb navigation trail
   - Multi-level nested dropdown menus
   - Responsive mobile hamburger menu
   - Active page indicator (aria-current="page")
   - Accessible focus states
   ========================================================= */

:root {
  --wood-orange: #e07a00;
  --wood-dark: #5a3a22;
  --text-dark: #3b2411;
  --text-light: #ffffff;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== HEADER ========== */
/* In anagura-nav.css */

h1.page-title-serif {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-dark, #3b2411);
  font-family: "Noto Serif JP", ui-serif, Georgia, serif;
  letter-spacing: 0.02em;
  flex: 1;
  text-align: left;
}

.dict-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--wood-orange);
  padding: 1rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dict-header .subtitle {
  margin: 0;
  color: var(--wood-orange);
  font-size: 0.9rem;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 500;
  opacity: 0.9;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-smooth);
  line-height: 1;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: var(--wood-orange);
  transform: rotate(90deg);
  outline: 2px solid var(--wood-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: #fafaf8;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.6rem 2rem;
  font-size: 0.85rem;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-item::after {
  content: "&#8250;";
  color: #999;
  font-weight: 300;
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-link {
  color: var(--wood-orange);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumb-link:hover {
  text-decoration: underline;
  color: #b85110;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.5rem 1rem;
  }
  .breadcrumb-list {
    font-size: 0.75rem;
  }
}

/* ========== PRIMARY NAV ========== */
.dict-nav-primary {
  background: linear-gradient(to bottom, var(--wood-orange), #c76800);
  border-bottom: 1px solid #b95d00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dict-nav-primary > ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dict-nav-primary > ul > li {
  display: inline-flex;
  position: relative;
}

.dict-nav-primary a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  display: block;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.dict-nav-primary a:hover,
.dict-nav-primary a:focus {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  outline: none;
}

/* Active page indicator */
.dict-nav-primary a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.dict-nav-primary a[aria-current="page"]::after {
  content: "●";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  opacity: 0.8;
}

/* ========== SECONDARY NAV (NESTED MENUS) ========== */
.dict-nav-secondary {
  background: #333;
  border-bottom: 1px solid #222;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dict-nav-secondary.open {
  max-height: 500px;
}

.dict-nav-secondary ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dict-nav-secondary a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  display: block;
  white-space: nowrap;
}

.dict-nav-secondary a:hover {
  background: rgba(224, 122, 0, 0.4);
  text-decoration: none;
}

/* ========== DROPDOWN MENUS ========== */
.nav-item-with-submenu {
  position: relative;
}

.nav-submenu-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-submenu-trigger::after {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.nav-item-with-submenu.open .nav-submenu-trigger::after {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--wood-orange);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item-with-submenu.open .nav-submenu {
  display: block;
}

.nav-submenu li {
  display: block;
}

.nav-submenu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  display: block;
  transition: var(--transition-smooth);
  font-weight: 500;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.9rem;
  white-space: normal;
}

.nav-submenu a:hover {
  background: rgba(224, 122, 0, 0.1);
  color: var(--wood-orange);
  padding-left: 1.5rem;
}

.nav-submenu a[aria-current="page"] {
  background: rgba(224, 122, 0, 0.15);
  color: var(--wood-orange);
  font-weight: 700;
  border-left: 3px solid var(--wood-orange);
  padding-left: 1.2rem;
}

/* ========== RESPONSIVE MOBILE MENU ========== */
@media (max-width: 1024px) {
  .dict-nav-primary a {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .dict-nav-primary a[aria-current="page"]::after {
    bottom: -4px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .dict-header h1 {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  }

  .dict-nav-primary {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .dict-nav-primary.open {
    max-height: 500px;
    border-bottom: 2px solid #b95d00;
  }

  .dict-nav-primary > ul {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    overflow: visible;
  }

  .dict-nav-primary li {
    width: 100%;
  }

  .dict-nav-primary a {
    display: block;
    text-align: center;
    padding: 0.6rem 0.8rem;
  }

  .dict-nav-primary a[aria-current="page"]::after {
    display: none;
  }

  /* Dropdowns on mobile */
  .nav-submenu {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 100%;
  }

  .nav-item-with-submenu.open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
  }

  .breadcrumb {
    display: none;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: rgba(255, 255, 255, 0.95);
  border-top: 3px solid var(--wood-orange);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-nav {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-nav a {
  color: var(--wood-orange);
  text-decoration: none;
  font-weight: 600;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wood-orange);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

.copyright {
  margin: 0;
  color: #777;
  font-family: "Noto Sans JP", system-us, sans-serif;
  font-size: 0.85rem;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
.dict-nav-primary a:focus-visible,
.menu-toggle:focus-visible,
.footer-nav a:focus-visible,
.nav-submenu a:focus-visible {
  outline: 3px solid var(--wood-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SKIP TO CONTENT LINK ========== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--wood-orange);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
  .dict-header,
  .dict-nav-primary,
  .dict-nav-secondary,
  .site-footer,
  .breadcrumb {
    background: white;
    border: 1px solid #ccc;
  }

  .menu-toggle {
    display: none !important;
  }

  .dict-nav-primary,
  .dict-nav-secondary {
    max-height: none !important;
  }
}

/* =========================================================
   anagura-nav.css v2.2 Enhanced
   Unified Header, Breadcrumb, Primary Nav & Nested Menus
   
   Features:
   - Sticky header with backdrop blur
   - Breadcrumb navigation trail
   - Multi-level nested dropdown menus
   - Responsive mobile hamburger menu
   - Active page indicator (aria-current="page")
   - Accessible focus states
   ========================================================= */

:root {
  --wood-orange: #e07a00;
  --wood-dark: #5a3a22;
  --text-dark: #3b2411;
  --text-light: #ffffff;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== HEADER ========== */
/* In anagura-nav.css */

h1.page-title-serif {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-dark, #3b2411);
  font-family: "Noto Serif JP", ui-serif, Georgia, serif;
  letter-spacing: 0.02em;
  flex: 1;
  text-align: left;
}

.dict-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--wood-orange);
  padding: 1rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dict-header .subtitle {
  margin: 0;
  color: var(--wood-orange);
  font-size: 0.9rem;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 500;
  opacity: 0.9;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-smooth);
  line-height: 1;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: var(--wood-orange);
  transform: rotate(90deg);
  outline: 2px solid var(--wood-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: #fafaf8;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.6rem 2rem;
  font-size: 0.85rem;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-item::after {
  content: "&#8250;";
  color: #999;
  font-weight: 300;
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-link {
  color: var(--wood-orange);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumb-link:hover {
  text-decoration: underline;
  color: #b85110;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.5rem 1rem;
  }
  .breadcrumb-list {
    font-size: 0.75rem;
  }
}

/* ========== PRIMARY NAV ========== */
.dict-nav-primary {
  background: linear-gradient(to bottom, var(--wood-orange), #c76800);
  border-bottom: 1px solid #b95d00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dict-nav-primary > ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dict-nav-primary > ul > li {
  display: inline-flex;
  position: relative;
}

.dict-nav-primary a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  display: block;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.dict-nav-primary a:hover,
.dict-nav-primary a:focus {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  outline: none;
}

/* Active page indicator */
.dict-nav-primary a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.dict-nav-primary a[aria-current="page"]::after {
  content: "●";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  opacity: 0.8;
}

/* ========== SECONDARY NAV (NESTED MENUS) ========== */
.dict-nav-secondary {
  background: #333;
  border-bottom: 1px solid #222;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dict-nav-secondary.open {
  max-height: 500px;
}

.dict-nav-secondary ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dict-nav-secondary a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  display: block;
  white-space: nowrap;
}

.dict-nav-secondary a:hover {
  background: rgba(224, 122, 0, 0.4);
  text-decoration: none;
}

/* ========== DROPDOWN MENUS ========== */
.nav-item-with-submenu {
  position: relative;
}

.nav-submenu-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-submenu-trigger::after {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.nav-item-with-submenu.open .nav-submenu-trigger::after {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--wood-orange);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item-with-submenu.open .nav-submenu {
  display: block;
}

.nav-submenu li {
  display: block;
}

.nav-submenu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  display: block;
  transition: var(--transition-smooth);
  font-weight: 500;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.9rem;
  white-space: normal;
}

.nav-submenu a:hover {
  background: rgba(224, 122, 0, 0.1);
  color: var(--wood-orange);
  padding-left: 1.5rem;
}

.nav-submenu a[aria-current="page"] {
  background: rgba(224, 122, 0, 0.15);
  color: var(--wood-orange);
  font-weight: 700;
  border-left: 3px solid var(--wood-orange);
  padding-left: 1.2rem;
}

/* ========== RESPONSIVE MOBILE MENU ========== */
@media (max-width: 1024px) {
  .dict-nav-primary a {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .dict-nav-primary a[aria-current="page"]::after {
    bottom: -4px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .dict-header h1 {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  }

  .dict-nav-primary {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .dict-nav-primary.open {
    max-height: 500px;
    border-bottom: 2px solid #b95d00;
  }

  .dict-nav-primary > ul {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    overflow: visible;
  }

  .dict-nav-primary li {
    width: 100%;
  }

  .dict-nav-primary a {
    display: block;
    text-align: center;
    padding: 0.6rem 0.8rem;
  }

  .dict-nav-primary a[aria-current="page"]::after {
    display: none;
  }

  /* Dropdowns on mobile */
  .nav-submenu {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 100%;
  }

  .nav-item-with-submenu.open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
  }

  .breadcrumb {
    display: none;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: rgba(255, 255, 255, 0.95);
  border-top: 3px solid var(--wood-orange);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-nav {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-nav a {
  color: var(--wood-orange);
  text-decoration: none;
  font-weight: 600;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wood-orange);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

.copyright {
  margin: 0;
  color: #777;
  font-family: "Noto Sans JP", system-us, sans-serif;
  font-size: 0.85rem;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
.dict-nav-primary a:focus-visible,
.menu-toggle:focus-visible,
.footer-nav a:focus-visible,
.nav-submenu a:focus-visible {
  outline: 3px solid var(--wood-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SKIP TO CONTENT LINK ========== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--wood-orange);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
  .dict-header,
  .dict-nav-primary,
  .dict-nav-secondary,
  .site-footer,
  .breadcrumb {
    background: white;
    border: 1px solid #ccc;
  }

  .menu-toggle {
    display: none !important;
  }

  .dict-nav-primary,
  .dict-nav-secondary {
    max-height: none !important;
  }
}

/* =========================================================
   NEW: OVERLAY NAV (from theme-blog)
   ========================================================= */

.nav-toggle {
    appearance: none;
    border: 0;
    background: none;
    color: var(--text-dark);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}
.nav-toggle:hover {
    color: var(--wood-orange);
    transform: rotate(90deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 20, 18, 0.97);
    color: #f4f0e8;
    display: none;
    z-index: 999;
    overflow-y: auto;
    padding: 80px 40px 40px;
}
.nav-overlay.open {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.nav-panel {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.nav-close {
    position: fixed;
    top: 20px;
    right: 30px;
    appearance: none;
    border: 0;
    background: rgba(224, 122, 0, 0.9);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-close:hover {
    background: #e07a00;
    transform: scale(1.1);
}
.nav-section h3 {
    color: #e07a00;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e07a00;
    font-family: "Noto Serif JP", serif;
}
.nav-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.nav-section a {
    display: block;
    padding: 10px 0;
    color: #f4f0e8;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    font-size: 1rem;
}
.nav-section a:hover {
    color: #e07a00;
    padding-left: 12px;
    border-color: #e07a00;
}