.header__contents__hamburger-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  transform: scale(0.8);
}

.header__contents__hamburger-button span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.header__contents__hamburger-button span:nth-child(1) {
  top: 10px;
}

.header__contents__hamburger-button span:nth-child(2) {
  top: 18px;
}

.header__contents__hamburger-button span:nth-child(3) {
  top: 26px;
}

.header__contents__hamburger-button.active span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.header__contents__hamburger-button.active span:nth-child(2) {
  opacity: 0;
}

.header__contents__hamburger-button.active span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 1644px) {
  .header {
    left: 40px;
    width: calc(100% - 80px);
    transform: unset;
  }
}

@media (max-width: 1024px) {
  .header__contents {
    padding: 0 40px;
  }

  .header__contents__right__login {
    top: 2px;
  }

  .header__contents__right__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
  }

  .header__contents__right__menu.active {
    display: flex;
    width: calc(100% - 80px);
    position: fixed;
    left: 40px;
    top: 120px;
    border-radius: 42px;
  }

  /* 모바일에서 드롭다운 스타일 */
  .header__contents__right__menu__item .menu-text {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__contents__right__menu__item.dropdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 10px;
    width: 100%;
    background: #ffffff;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu__item {
    padding: 8px 20px;
    font-size: 14px;
    border-bottom: 1px solid #e3e3e3;
    text-align: center;
  }

  .header__contents__hamburger-button {
    display: block;
  }

  .header__contents__right {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    top: 16px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .header__contents {
    height: 64px;
    padding: 0 24px;
  }

  .header__contents__logo {
    width: 90px;
    height: 29px;
  }

  .header__contents__logo img {
    width: 90px;
  }
  .header__contents__right {
    gap: 15px;
  }
  .header__contents__right__menu.active {
    width: calc(100% - 40px);
    top: 88px;
    left: 20px;
    padding: 30px 0;
  }
  .header__contents__right__menu__item {
    font-size: 17px;
  }
  .header__contents__right__login {
    top: 2px;
  }
  .header__contents__right__login__icon {
    display: none;
    width: 24px;
  }
  .header__contents__right__login__icon img {
    width: 24px;
    height: auto;
  }
  .header__contents__right__login span {
    font-size: 19px;
  }
}
