/* The two existing page designs keep their original header position and logo. */
#siteHdr {
  --nav-ink: #181c62;
  --nav-line: #d7d5d2;
}
#siteHdr > a:first-child {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
#siteHdr .desktop-nav,
#siteHdr .mobile-nav {
  color: var(--nav-ink);
  font-family: "DM Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
#siteHdr .desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.9vw, 27px);
  font-size: 0.8125rem;
  line-height: 1.5;
}
#siteHdr .desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
#siteHdr .desktop-nav a:hover,
#siteHdr .mobile-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
#siteHdr a:focus-visible,
#siteHdr summary:focus-visible,
.service-page-related a:focus-visible {
  outline: 2px solid var(--nav-ink, #181c62);
  outline-offset: 3px;
}
#siteHdr .mobile-nav { display: none; }
.service-page-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
@media (max-width: 53.75em) {
  #siteHdr .desktop-nav { display: none; }
  #siteHdr .mobile-nav { display: block; }
  #siteHdr .mobile-nav summary {
    display: flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.5;
  }
  #siteHdr summary::-webkit-details-marker { display: none; }
  #siteHdr summary > span { font-size: 1.25rem; }
  #siteHdr details[open] summary > span { transform: rotate(45deg); }
  #siteHdr #mnav {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 20;
    display: block;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    padding: 8px clamp(20px, 5vw, 48px) 16px;
    background: var(--paper, #f7f5ef);
    border-bottom: 1px solid var(--nav-line);
    box-shadow: 0 10px 18px #181c620d;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  #siteHdr #mnav a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border-top: 1px solid var(--nav-line);
    padding: 9px 2px;
    color: var(--nav-ink);
    font-size: 1rem;
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  #siteHdr .desktop-nav a::after,
  #siteHdr .mobile-nav summary > span,
  .service-page-related a { transition: none; }
}