.header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  /* background-color: rgba(255, 255, 255, 0.7); */
  background-color: #fff;
  transition: all 0.4s ease-in-out;
  box-shadow: rgb(0 0 0 / 4%) 0px 2px 2px -1px, rgb(0 0 0 / 4%) 0px 4px 5px 0px,
    rgb(0 0 0 / 4%) 0px 1px 6px 0px;
}

/* .header.scrolled {
  background-color: rgba(255, 255, 255, 1);
} */

.header-wrapper {
  max-width: var(--max-content-width);
  padding: 0 24px;
  margin: 0 auto;
  background: transparent;
}

.header-top {
  display: flex;
  align-items: center;
  max-height: 64px;
  height: 64px;
  /* overflow-y: hidden; */
}

.header-top .site-logo .image-logo {
  /* height: 32px; */
  margin: 8px 0;
  min-width: 50px;
  height: 30px;
}

.header-top .spacer {
  flex-grow: 1;
}

.nav-area {
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (max-width: 768px) {
    justify-content: flex-start;
  }

  width: 100%;
  padding-left: 64px;
  height: 100%;

  .sp-menu {
    display: none;
  }
}

.nav {
  height: 100%;
}
ul.menu {
  display: flex;
  align-items: center;
  gap: 0 32px;
  height: 100%;
}

ul.menu > li {
  height: 100%;
}

ul.menu a .menu-item-text {
  text-transform: uppercase;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-wrap: nowrap;
  font-size: 14px;
  height: 100%;
}

.menu-item-title {
  font-size: 14px;
}

.menu-item-description {
  font-size: 10px;
  color: #5a5a5a;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children a {
  display: flex;
  height: 100%;
}

.menu-item .sub-menu {
  position: absolute;
  display: block;
  top: 64px;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
  background-color: #fff;
  height: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s ease-in-out;
  box-shadow: rgb(0 0 0 / 4%) 0px 2px 2px -1px, rgb(0 0 0 / 4%) 0px 4px 5px 0px,
    rgb(0 0 0 / 4%) 0px 1px 6px 0px;
}

.menu-item:hover .sub-menu {
  height: auto;
  visibility: visible;
  opacity: 1;
}

ul.menu > li > ul.sub-menu a {
  padding: 12px 24px;
  justify-content: center;
}

.nav-account {
  padding-left: 12px;
  display: flex;
}

.nav-account ul {
  display: flex;
  gap: 0 8px;
  height: 100%;
}

.nav-account ul li {
  display: flex;
  align-items: center;
  /* border: 1px solid #121212; */
}

.nav-account ul li span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0;
  height: 30px;
  /* background-color: #121212; */
  /* color: #fff; */
  font-weight: 600;
}

.nav-account ul li a {
  padding: 4px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 12px;
  column-gap: 4px;
  text-transform: uppercase;
}

.hamburger-menu {
  height: 100%;
  width: 60px;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 8px;
  overflow: hidden;
  display: none;
}

.hamburger-menu > .line-box > span {
  display: block;
  background-color: #121212;
  height: 1px;
  margin-top: 5px;
  margin-bottom: 5px;
  transform-origin: center;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu span.menu-line1 {
  width: 48px;
}

.hamburger-menu span.menu-line2 {
  width: 48px;
}

.hamburger-menu span.menu-line3 {
  width: 48px;
}

.hamburger-menu .text-box {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  width: 100%;
}

.header.open .hamburger-menu span.menu-line1 {
  width: 36px;
  transform: rotate(45deg) translate(0, 8px);
}

.header.open .hamburger-menu span.menu-line2 {
  width: 0;
}

.header.open .hamburger-menu span.menu-line3 {
  width: 36px;
  transform: rotate(-45deg) translate(0, -9px);
}

@media (min-width: 769px) and (max-width: 1120px) {
  .header-top {
    flex-direction: column;
    max-height: unset;
    height: unset;
  }

  .site-logo {
    padding: 12px 0;
  }

  .header-wrapper {
    padding-bottom: 12px;
  }

  .header-top .site-logo .image-logo {
    height: 40px;
  }

  .nav-area {
    .nav {
      display: block;
    }
    padding-left: 0;

    .sp-menu {
      display: none;
    }
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    padding: 0;
  }

  .hamburger-menu {
    position: absolute;
    top: 0;
    right: 12px;
    display: flex;
    width: 64px;
  }

  .header-top {
    position: relative;
    flex-direction: row;
    height: 64px;
    justify-content: space-between;
    padding: 0 24px;
  }

  .nav ul.menu > li {
    height: unset;
  }

  /* .nav-area {
    display: block;
    width: 0;
  } */

  .header .site-logo {
    padding-left: 4px;
  }

  .header.open {
    background-color: #fff;
  }

  .header .nav-area {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 60px;
    left: 0;
    width: 100svw;
    height: 0;
    background-color: #fff;
    overflow-y: hidden;
    z-index: 999;
    transition: height 0.2s linear;
    padding: 0;
  }

  .header .nav {
    width: 100%;
    order: 2;
    margin-bottom: 100px;
  }

  .nav-account {
    /* display: none; */
    order: 1;
    padding: 20px 24px;
    width: 100%;
  }

  .header.open .nav-area {
    opacity: 1;
    height: calc(100svh - 60px);
    overflow-y: auto;
    transition: height 0.2s linear;
  }

  .header .nav .menu {
    flex-direction: column;
    width: 100%;
    padding: 0 24px;
  }

  .header .nav .menu li {
    border-bottom: 1px solid #121212;
  }

  .header .nav .menu li a {
    padding: 12px;
    display: block;
  }

  .header .nav .menu li,
  .header .nav .menu li a {
    width: 100%;
    height: unset;
  }

  .header ul.menu > li:first-child {
    border-top: 1px solid #121212;
  }

  ul.menu a .menu-item-text {
    /* flex-direction: row; */
    justify-content: flex-start;
    align-items: baseline;
  }

  ul.menu > li > ul.sub-menu {
    display: flex;
    opacity: 1;
    flex-direction: column;
    border-top: 1px solid #121212;
    border-bottom: 0 !important;
    visibility: visible;
    transform: unset;
    position: unset;
    height: auto;
    box-shadow: none;
  }

  ul.menu > li > ul.sub-menu li {
    border-bottom: 1px dashed #121212 !important;
  }

  ul.menu > li > ul.sub-menu li:last-child {
    border-bottom: 0 !important;
  }

  ul.menu > li > ul.sub-menu li a {
    padding: 12px 24px !important;
  }
}
