.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;
  justify-content: space-between;
  align-items: center;
  max-height: 84px;
  height: 84px;
  /* overflow-y: hidden; */
}

.header-top .site-logo {
  line-height: 1.2rem;
  margin-top: 4px;
}

.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;
  padding-left: 64px;
  height: 100%;

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

  .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;
  height: 100%;
}

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

.nav-account ul li {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 84px;
  border: 0;
  justify-content: center;
  transition: filter 0.1s ease;

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

li.btn-mypage,
li.btn-login {
  background-color: #3593df;
  color: #fff;
  span {
    color: #fff !important;
  }
}

li.btn-mypage:hover,
li.btn-login:hover {
  background-color: #2880c8;
}

li.btn-logout,
li.btn-regist {
  background-color: #eee;
  color: #121212;
  span {
    color: #121212 !important;
  }
}

li.btn-logout:hover,
li.btn-regist:hover {
  background-color: #c6c5c5;
}

.nav-account ul li a {
  position: absolute;
  inset: 0;
}

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

.nav-account ul li span.btn-text {
  font-size: 14px;
  column-gap: 4px;
  text-transform: uppercase;
  width: unset;
  height: unset;
  font-weight: unset;

  @media (max-width: 768px) {
    font-size: 11px;
    padding: 0;
  }
}

.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);
}

.site-logo {
  text-wrap: nowrap;
  font-weight: 900;
}

@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: 60px;
    justify-content: space-between;
    padding: 0;
  }

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

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

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

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

  /* .header .nav-area {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 84px;
    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%;
    height: 100%;
  }

  .header.open .nav-area {
    opacity: 1;
    height: calc(100svh - 84px);
    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;
  }
}

.main-logo-title {
  font-size: 24px;
  line-height: 1.2em;

  @media (max-width: 768px) {
    font-size: 15px;
  }
}

.sub-logo-title {
  font-size: 14px;
  color: #5a5a5a;
}

.area-cta {
  background-color: #eee;
  color: #121212;
  display: flex;
  justify-content: center;
}

.cta-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
