.nav-pc {
  display: flex;
  gap: clamp(0.75rem, 3vw, 6rem);
  list-style: none;
  white-space: nowrap;
}

.nav-pc li a {
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.8rem, 1vw, 1.20rem);
  font-weight: bold;
  text-decoration: none;
  color: #343434;
  padding-bottom: clamp(0.4rem, 1vw, 0.75rem);
  white-space: nowrap;
}

.nav-pc li a::after {
  content: "";
  position: absolute;
  left: -1.25rem;
  bottom: 0;
  width: calc(100% + 2rem);
  height: 1px;
  background-color: #08A2E9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-pc li a:hover::after {
  transform: scaleX(1);
}

.nav-sp {
  display: none;
}

.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10012;
}

.hamburger .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #343434;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.is-active .top {
  transform: translateY(-4px);
}

.hamburger.is-active .middle {
  opacity: 0;
}

.hamburger.is-active .bottom {
  transform: translateY(4px);
}

.modal_menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  z-index: 10010;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px;
  box-sizing: border-box;
}

.modal_menu.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal_menu ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: center;
}

.modal_menu ul li {
  margin: 20px 0;
}

.modal_menu ul li a {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.modal_menu ul li a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: #075579;
  transition: all 0.3s ease;
}

.modal_menu ul li a:hover::before {
  width: 100%;
  left: 0;
}

.modal_menu ul li a.animating::after {
  transform: scaleX(1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  font-size: 40px;
  line-height: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10011;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.close-btn:active {
  transform: scale(0.8) translateY(2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

.modal_menu.show {
  animation: fadeIn 0.4s ease forwards;
}

.modal_menu.hide {
  animation: fadeOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal_menu.show .menu-content-animate {
  animation: textFadeSlideUp 0.5s ease-out 0.1s forwards;
  opacity: 0;
}

@keyframes textFadeSlideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media screen and (max-width: 1024px) {
  .nav-pc {
    gap: clamp(0.5rem, 2.5vw, 2rem);
  }

  .nav-pc li a {
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  }

  .nav-pc li a::after {
    left: -0.75rem;
    width: calc(100% + 1.5rem);
  }
}

@media screen and (max-width: 768px) {
  .nav-pc {
    display: none;
  }

  .nav-sp {
    display: block;
  }
}