@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
/* Header dimensions are shared by every page; index.html is the reference. */
:root { --header-height: clamp(68px, calc(3.846154vw + 14.153846px), 88px); }
body { padding-top: var(--header-height); }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
/* Keep the shared navigation visible without covering the homepage content. */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    border-bottom: 1px solid #d9e3ed;
}

.nav-container .navbar {
    min-height: calc(var(--header-height) - 1px);
}

.nav-container > .container {
    width: calc(100% - clamp(48px, 14.2857vw, 200px));
    max-width: 1440px !important;
    padding-left: 0;
    padding-right: 0;
}

.nav-container .navbar-brand {
    display: flex;
    align-self: center;
    height: calc(var(--header-height) - 1px);
    width: clamp(225px, 13.55vw, 260px);
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    align-items: center;
}

.nav-container .navbar-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40px;
    margin: 0;
    object-fit: contain;
}

/* Keep the header logo static during the first-view reveal. */
.nav-container .navbar-brand,
.nav-container .navbar-brand img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
}

@media (min-width: 992px) {
    .nav-container .navbar-nav {
        align-items: center;
        gap: clamp(24px, 2.2857vw, 40px);
    }

    .nav-container .navbar-nav .nav-link {
        padding: 12px 0 !important;
        font-size: clamp(14px, .73vw, 14px);
        line-height: 1.5;
        letter-spacing: .04em;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    html:root { --header-height: 64px; }

    .nav-container > .container {
        width: calc(100% - 32px);
    }

    .nav-container .navbar-brand {
        width: 156px;
    }

    .nav-container .navbar-collapse {
        max-height: calc(100vh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
    }
}


.nav-container { background: #fff; }
.nav-container .navbar { padding: 0 !important; }
.nav-container, .nav-container * { box-sizing: border-box; font-family: 'Noto Sans JP', sans-serif; }
.nav-container .navbar-nav { margin: 0; font-weight: 400; }
.nav-container .navbar-nav .nav-link { font-weight: 400 !important; letter-spacing: 1px; color: #2E2E30 !important; transition: color 120ms cubic-bezier(0, 0, .58, 1); }
.nav-container .navbar-nav .nav-link:hover, .nav-container .navbar-nav .nav-link:focus-visible { color: #0868d7 !important; text-decoration: none; }
.nav-container .navbar-toggler { background-color: transparent !important; border: 1px solid transparent !important; font-size: 1.25rem; line-height: 1; }
@media (min-width: 992px) { .nav-container .navbar-nav .nav-link { letter-spacing: .04em; } }
/* Mobile navigation occupies the viewport below the fixed header. */
@media (max-width: 991.98px) {
  .nav-container .navbar {
    height: calc(var(--header-height) - 1px);
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-container .navbar-collapse {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height)) !important;
    height: calc(100dvh - var(--header-height)) !important;
    padding: 16px;
    background: #fff;
    overflow-y: auto;
    transition: none;
    box-shadow: none;
  }

  .nav-container .navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-container .nav-item + .nav-item {
    border-top: 1px solid #e5e5e5;
  }

  .nav-container .navbar-nav .nav-link {
    margin: 0;
    padding: 16px 0 !important;
    font-size: 14px;
    line-height: 1.5;
  }

  .nav-container .navbar-toggler {
    margin: 0 0 0 auto;
    padding: 10px;
    border-radius: 0;
  }

  .nav-container .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    position: relative;
    background-image: none;
  }

  .nav-container .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
  .nav-container .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 1px;
    background: #303030;
    transform: rotate(45deg);
  }

  .nav-container .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
  }

  body:has(.nav-container .navbar-collapse.show),
  body:has(.nav-container .navbar-collapse.collapsing) {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) { .nav-container .navbar-nav .nav-link { transition: none; } }

/* External destination indicator supplied for the EnkinGT link. */
.nav-container .header-menu-label .new-tab-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -1px;
}
