.site-header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 900;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0px 0 40px;
  height: 96px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  width: 272px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.navigation {
  width: 100%;
  max-width: 840px;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  width: 150px;
  background-color: #1a318b;
}

.nav-item-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.submenu-toggle-btn {
  display: none;
}

.nav-link {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  line-height: 35px;
  white-space: nowrap;

  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 50%
  );
  background-size: 200% 100%;
  background-position: right center;
  transition:
    background-position 0.4s ease,
    color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-position: left center;
}

.nav-link.external-link svg {
  margin-left: 4px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0%;
  width: 150px;
  background-color: #1a318b;
  padding: 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
  z-index: 10;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
}

.submenu li {
  width: 100%;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: #333;
  transition: all 0.3s ease;
}

@media (max-width: 1160px) {
  .header-container {
    height: 96px;
    padding: 10px 20px;
  }

  .site-logo {
    width: 200px;
    height: auto;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] {
    display: none;
  }

  .menu-overlay {
    display: block;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 25%;
    min-width: 180px;
    height: 100vh;
    background-color: #1a318b;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;

    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    overflow-y: auto;
  }

  .navigation.is-active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    background-color: transparent;
  }

  .nav-item {
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
  }

  .nav-item:not(:last-child) {
    border-bottom: 1px solid #ffffff;
  }

  .nav-link {
    display: inline-flex;
    width: 100%;
    height: 44px;
  }

  .submenu {
    position: static;
    transform: none;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
    background-color: #ffffff;
    padding: 0;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .submenu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
  }

  .submenu-toggle-btn::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
  }

  .nav-item.is-open .submenu-toggle-btn::before {
    transform: translateY(2px) rotate(-135deg);
  }

  .submenu .nav-item {
    background-color: inherit;
  }

  .submenu .nav-link {
    color: #333333;
  }

  .submenu .nav-item:not(:last-child) {
    border-bottom: 1px solid #333333;
  }

  .nav-item.is-open .submenu {
    display: block;
  }
}
