.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 22, 37, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand strong {
  display: block;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  line-height: 1.2;
}

.brand span {
  display: block;
  color: #d5b968;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.menu a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.japan-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.japan-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.japan-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bc002d;
  transform: translate(-50%, -50%);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 761px) {
  .nav-header {
    width: auto;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 12px 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  
  .menu.active {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
