/* 2本メニューの場合使うcss */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  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: 100px;
  height: 100px;
  /* overflow-y: hidden; */
}

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

  @media (max-width: 768px) {
    height: 44px;
  }
}

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

.nav-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;

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

  width: 100%;
  height: 100%;

  .sp-menu {
    display: none;
  }
}

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

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 #231f20; */
}

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

.nav-account ul li a {
  padding: 4px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 12px;
  column-gap: 4px;
  text-transform: uppercase;
  background-color: #f392b6;
  font-weight: 600;
  color: #fff;
  height: 30px;
  border-radius: 20px;
  /* border: 1px solid #231f20; */
}

.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 > span {
  display: block;
  background-color: #231f20;
  height: 1px;
  margin: 4px;
  transform-origin: center;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu span.menu-line1 {
  width: 90%;
}

.hamburger-menu span.menu-line2 {
  width: 70%;
}

.header.open .hamburger-menu span.menu-line1 {
  width: 80%;
  transform: rotate(45deg) translate(4px, 4px);
}

.header.open .hamburger-menu span.menu-line2 {
  width: 80%;
  transform: rotate(-45deg) translate(2px, -3px);
}

@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: 80px;
  }

  .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: 80px;
    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;
  }

  .nav-block {
    display: none;
  }

  .header.open {
    background-color: #fff7ee;

    .sp-menu {
      display: block;
    }
  }

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

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

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

  .header.open .nav-area {
    opacity: 1;
    height: calc(100svh - 80px);
    overflow-y: auto;
    transition: height 0.2s linear;
    background-color: #fff7ee;
    box-sizing: border-box;
  }

  .sp-menu {
    width: 100%;
    padding: 12px 24px;
    order: 2;
    display: flex;
    flex-direction: column;

    .f-nav {
      margin-bottom: 30px;
    }

    .menu-title {
      margin-bottom: 12px;
      font-size: 12px;
    }

    ul {
      flex-direction: column;
      align-items: flex-start;

      a {
        display: block;
        padding: 4px 0 8px;
      }

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