/* header */
.section-header {
  position: relative;
  width: 100%;
  z-index: 10;
  background: black;
}
.section-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
}
.header {
  height: 88px;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 0 calc(var(--aspect-base) * 80);
  border-top: 1px solid #5d5d5d;
  border-bottom: 1px solid #5d5d5d;
}
.header-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
  max-height: 88px;
}
.header-menu,
.header-options {
  display: flex;
  justify-content: left;
  align-items: center;
}
.menu-wrapper {
  display: flex;
  width: 100%;
}
.header-menu {
  width: 100%;
}
.header-menu ul {
  width: 100%;
  max-width: 656px;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  padding: 0;
  gap: clamp(32px, calc(var(--aspect-base) * 64), 64px);
}
.header-menu a span {
  transition: color 0.3s ease;
}

.header-menu a:hover span,
.header-menu a.active span {
  color: red;
}
.header-menu ul li {
  margin: 0;
  filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 1));
}
.header-menu ul li a span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: normal;
}
.header-options {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.header-sound {
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  z-index: 10;
}
.header-lang {
  margin: 0;
  display: flex;
  position: relative;
  align-items: center;
  gap: 8px;
}
.lang-icon {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.4;
}
.header-sns {
  display: contents;
}
.header-sns a {
  display: inline-block;
}
.header-sns a img {
  margin-right: 30px;
  vertical-align: middle;
  transition: opacity 0.2s;
}
.header-sns a img:hover {
  opacity: 0.7;
}
.header-lang {
  position: relative;
  gap: 8px;
}

/* 現在表示 */
#view-lang .selected-lang {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 200px;
  height: 40px;
  padding: 0 32px 0 10px;
  color: #fff;
  font-size: 16px;
  background-image: url("/images/select-arrow.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px auto;
  opacity: 0.4;
}
#view-lang .selected-lang:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ドロップダウン */
#view-lang ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  right: 0;
  width: 244px;
  display: none;
  background: #000;
  border: 1px solid #000;
  z-index: 1000;
}
#view-lang.open ul {
  display: block;
}

#view-lang ul li {
  padding: 8px 10px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}
#view-lang ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}
#view-lang ul li.is-active {
  display: none;
}

.menu-sp {
  display: none;
}

.header-menu ul li a {
  position: relative;
}
.header-menu ul li a span::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #fff 35%, rgba(48, 48, 48, 0) 100%); /* linear-gradient(90deg, #ccccff 35%, rgba(48, 48, 48, 0) 100%);; /**/
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}
.header-menu ul li a span:hover::after {
  transform: scale(1, 1);
}

.sns-label {
  display: none;
}

.sns-icons {
  display: contents;
}

@media only screen and (max-width: 960px) {
  .section-header {
    z-index: 100;
  }
  .menu-pc {
    display: none;
  }
  .menu-sp {
    display: flex;
  }

  .section-header.open {
    height: 100%;
    background: black;
  }

  .open > .nav-open {
    display: none;
  }
  .open > .nav-close {
    display: block;
  }
  .close > .nav-open {
    display: block;
  }
  .close > .nav-close {
    display: none;
  }

  .open > .header-menu {
    display: flex;
  }
  .open > .header-options {
    display: block;
  }
  .close > .header-menu,
  .close > .header-options {
    display: none;
  }

  .section-header {
    height: 0;
  }
  .header {
    height: 0px;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: black;
    border: none;
  }

  .header-wrapper {
    display: flex;
    justify-content: space-between;
    height: 64px;
    min-height: 64px;
  }
  .menu-wrapper {
    display: block;
  }
  .menu-sp {
    display: flex;
    align-items: center;
  }
  .sp-menu {
    margin-right: 16px;
  }
  .nav-sp {
    margin: 0;
  }
  .header-menu {
    width: 100%;
    max-width: 960px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: black;
  }
  .header-menu ul {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 40px;
  }
  .header-menu ul li {
    width: 100%;
    filter: none;
    display: flex;
    align-items: center;
  }
  .header-menu ul li a span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
  }
  .nav-sp {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 1001;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
  }

  .nav-sp.close .nav-toggle {
    width: 60px;
    height: 60px;
  }
  .nav-sp.open .nav-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .menu-wrapper.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    backdrop-filter: blur(2px);
    overflow-y: auto;
    padding: 80px 15px 80px;
  }

  .menu-wrapper.close {
    display: none;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .sns-label {
    display: block;
    margin-bottom: 14px;
    font-size: 16px;
    color: white;
  }

  .header-sns {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
  }

  .sns-icons {
    display: flex;
    gap: 12px;
  }

  .sns-icons img {
    width: auto;
    height: 40px;
  }

  .header-lang {
    margin-top: 40px;
  }

  #view-lang.open ul {
    display: block;
    width: 75%;
    right: unset;
  }

  #view-lang ul li {
    padding-left: 40px;
  }

  .lang-icon {
    opacity: 1;
  }

  #view-lang .selected-lang {
    line-height: 40px;
    width: 75%;
    opacity: 1;
  }
}
