header {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  top: 4%;
  right: 3%;
  z-index: 10;
}

.menu-SP {
  display: none;
}

.sns-logo {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.sns-logo img {
  width: 34px;
  transition: transform 0.3s ease;
}

.sns-logo img:hover {
  transform: scale(1.1);
}

.lang-toggle {
  display: flex;
  border: 1px solid #000;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 30px;
  margin: 7px 0;
  font-family: sans-serif;
  z-index: 11;
}

.lang-btn {
  flex: 1;
  color: #1A1717;
  border: none;
  background-color: transparent;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.lang-btn.active {
  background-color: #363636;
  color: #ffffff;
}

.menu-button {
  width: 100%;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: #363636;
  color: #ffffff;
  padding: 5px 0;
  margin: 10px 0;
  border-radius: 9px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.menu-button:hover {
  background-color: #505050;
}

.menu-button img {
  width: 19px;
  height: 19px;
}

.menu-items,
.menu-items-child {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.menu-items.active,
.menu-items-child.active {
  max-height: 500px;
}

.menu-items li,
.menu-items-child li {
  width: 100%;
  padding: 5px 0;
  text-align: center;
  background-color: rgba(255, 255, 255);
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-items-child li {
  background-color: rgba(255, 255, 255);
  color: #000;
}

.menu-items li:hover {
  background-color: #5a5a5a;
  color: #fff;
}

.menu-items-child l i:hover {
  background-color: #5a5a5a;
  color: #fff;
}

.menu-items li a,
.menu-items-child li a {
  text-decoration: none;
  color: inherit;
}

.menu-items-child {
  position: absolute;
  top: 55%;
  right: 110%;
  width: 220px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  z-index: 20;
}



.menu-items-child.active {
  visibility: visible;
}

.nav {
  position: fixed;
  top: 7vh;
  right: -100%;
  width: 60%;
  height: 100vh;
  background-color: white;
  transition: right 0.3s ease;
  z-index: 15;
}

.nav.active {
  right: 0;
}

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

  .menu-SP {
    height: 7vh;
    background-color: rgb(255, 248, 240);
    /* background: linear-gradient(96deg, rgb(255, 248, 240), rgb(251, 235, 211)); */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 20px;
    z-index: 20;
  }

  .sns-logo,
  .lang-toggle,
  .hamburger-overlay {
    position: relative;
  }

  .lang-toggle {
    width: 25%;
  }

  .hamburger-overlay {
    top: -1px;
    right: 15px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .hamburger-overlay__line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
  }

  .hamburger-overlay__line:nth-of-type(1) {
    top: 14px;
  }

  .hamburger-overlay__line:nth-of-type(2) {
    top: 23px;
  }

  .hamburger-overlay__line:nth-of-type(3) {
    top: 32px;
  }

  .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
    transform: translateY(9px) rotate(-45deg);
  }

  .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    visibility: hidden;
    opacity: 0;
    transition: all .6s;
    z-index: 9;
  }

  .nav-overlay.active {
    visibility: visible;
    opacity: 1;
  }

  .nav-overlay__content {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
  }

  .nav-overlay__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-overlay__item {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s;
  }

  .nav-overlay.active .nav-overlay__item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-overlay.active .nav-overlay__item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(6) {
    transition-delay: 0.6s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(7) {
    transition-delay: 0.7s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(8) {
    transition-delay: 0.8s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(9) {
    transition-delay: 0.9s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(10) {
    transition-delay: 1s;
  }

  .nav-overlay.active .nav-overlay__item:nth-child(11) {
    transition-delay: 1.1s;
  }
  .nav-overlay.active .nav-overlay__item:nth-child(12) {
    transition-delay: 1.2s;
  }

  .nav-overlay__link {
    display: inline-block;
    padding: 14px;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: color .3s;
  }

  .nav-overlay__link:hover {
    color: #b54f01;
  }

}