.l-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  height: var(--header-height);
  z-index: 11;
  @media all and (min-width: 1024px) {
    width: calc(100% - 40px);
    max-width: 1460px;
  }
  @media not all and (min-width: 1024px) {
    width: 100%;
  }
  @media (any-hover: hover) {
    a:hover {
      color: var(--secondary-color);
    }
  }
}

.l-header__main {
  position: relative;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  z-index: 1;
  @media all and (min-width: 1024px) {
    border-radius: 0px 0px 40px 40px;
    padding: 0 40px;
  }
  @media not all and (min-width: 1024px) {
    border-radius: 0px 0px 20px 20px;
    padding: 0 20px;
  }
}

.l-header__logo {
  @media all and (min-width: 1024px) {
    width: 179px;
  }
  @media not all and (min-width: 1024px) {
    width: 120px;
  }
}

.l-header__body {
  @media all and (min-width: 1024px) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 40px;
  }
  @media not all and (min-width: 1024px) {
    display: none;
  }
}

.l-header__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 40px;
}

.l-header__others {
  @media all and (min-width: 1024px) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 24px;
  }
  @media not all and (min-width: 1024px) {
    display: none;
  }
}

.l-header__button {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0px;
  gap: 22px;
  width: fit-content;
  height: 60px;
  flex: none;
  order: 0;
  flex-grow: 0;
  border-radius: 100px;
  padding: 0 20px 0 20px;
  @media all and (max-width: 1300px) {
    display: none;
  }

  &.is-open .l-header__buttonCircle {
    rotate: 180deg;
  }

  &:hover .l-header__buttonCircle {
    scale: var(--button-circle-scale);
  }
}

.l-header__buttonCircle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: scale var(--button-circle-duration) linear;
  i {
    width: 8px;
    height: 11px;
    display: block;
    background: url('../../images/common/under-arrow.svg') center no-repeat;
  }
}

.l-header__button--download {
  background: var(--secondary-color);
}

.l-header__button--sns {
  background: var(--tertiary-color);
}

.l-header__nav {
  @media all and (min-width: 1024px) {
    display: none;
    position: absolute;
    width: 100%;
    height: 310px;
    left: 0;
    top: 0;
    background: #ffffff;
    border-radius: 40px;
    padding-top: 140px;
    & > dl {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0 40px;
    }
    & > dl > dt {
      text-align: center;
      width: 100%;
      margin-bottom: 35px;
    }
    &.is-open {
      display: block;
    }
  }
  @media not all and (min-width: 1024px) {
    display: block !important;
    background: #ffffff;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    margin: 0 16px 40px;
    padding: 30px 0;
    text-align: center;
  }
}

.l-header__nav--download {
  @media not all and (min-width: 1024px) {
    & > dl {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 15px 0;
      max-width: 280px;
      margin: 0 auto;
      padding: 0 10px;
    }
    & > dl > dt {
      width: 100%;
      margin-bottom: 10px;
    }
    & > dl > dd {
      width: 120px;
    }
  }
}

.l-header__nav--sns {
  @media not all and (min-width: 1024px) {
    & > dl {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 0 18px;
    }
    & > dl > dt {
      width: 100%;
      margin-bottom: 20px;
    }
  }
}

.l-header__sns {
  @media all and (min-width: 1024px) {
    display: flex;
    align-items: center;
    & dt {
      font-size: 16px;
      margin-right: 15px;
    }
  }
  @media not all and (min-width: 1024px) {
    & dt {
      display: none;
    }
  }
}

/*  LINK CURRENT */
body[data-category='news'] .l-header__links a[href='/news/'],
body[data-category='about'] .l-header__links a[href='/about/'],
body[data-category='contact'] .l-header__links a[href='/contact/'],
body[data-category='goods'] .l-header__links a[href='/goods/'] {
  color: var(--secondary-color);
}

/*  SP ONLY */
.l-header__spMenu {
  @media not all and (min-width: 1024px) {
    overflow-y: scroll;
    scroll-behavior: smooth;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    background: var(--tertiary-color);
    display: none;
    &.is-open {
      display: block;
    }
  }
}

.l-header__spLogo {
  @media all and (min-width: 1024px) {
    display: none;
  }
  @media not all and (min-width: 1024px) {
    padding-top: 65px;
    margin-bottom: 35px;
    text-align: center;
    & img {
      width: 160px;
    }
  }
}

.l-header__spLinks {
  @media all and (min-width: 1024px) {
    display: none;
  }
  @media not all and (min-width: 1024px) {
    text-align: center;
    margin-bottom: 40px;
    & li {
      margin-bottom: 25px;
    }
  }
}

.l-header__spMenuButton {
  @media all and (min-width: 1024px) {
    display: none;
  }
  @media not all and (min-width: 1024px) {
    position: absolute;
    right: 18px;
    top: 5px;
    width: 40px;
    height: 50px;
    z-index: 4;
  }
  & span {
    margin: 0 auto 5px;
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  & i {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 4px;
    display: block;
    transition: transform 0.1s;
  }
  & b {
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1;
    color: var(--primary-color);
  }
}

.l-header__spMenu.is-open + .l-header__spMenuButton {
  & i:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
  }
  & i:nth-of-type(2) {
    opacity: 0;
  }
  & i:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}
