@charset "utf-8";
div#menu {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.7), rgb(0, 0, 0));
}
body.no_scroll {
  overflow: hidden;
}
/* メニュー */
#menu {
  height: 100vh;
  height: 100lvh;
  overflow-y: scroll;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 100;
}
#menu ul:hover li {
  opacity: 0.5;
}

#menu ul li:hover {
  opacity: 1 !important;
}

#menu ul li {
  transform: translateZ(0);
  display: inline-block;
  transition: opacity 0.3s ease-in-out;
}

#menu.open {
  opacity: 1;
  visibility: visible;
}
#menu.open li,
#menu.open hr {
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-name: fadeInUp;
}
#menu.open hr {
  animation-delay: 0.19s;
}
#menu.open li:nth-child(1) {
  animation-delay: 0.05s;
}
#menu.open li:nth-child(2) {
  animation-delay: 0.08s;
}
#menu.open li:nth-child(3) {
  animation-delay: 0.11s;
}
#menu.open li:nth-child(4) {
  animation-delay: 0.14s;
}
#menu.open li:nth-child(5) {
  animation-delay: 0.17s;
}
#menu.open li:nth-child(6) {
  animation-delay: 0.2s;
}
#menu.open li:nth-child(7) {
  animation-delay: 0.23s;
}
#menu.open li:nth-child(8) {
  animation-delay: 0.26s;
}
#menu.open li:nth-child(9) {
  animation-delay: 0.29s;
}
#menu.open li:nth-child(10) {
  animation-delay: 0.32s;
}
#menu.open li:nth-child(11) {
  animation-delay: 0.35s;
}
#menu.open li:nth-child(12) {
  animation-delay: 0.38s;
}
#menu.open li:nth-child(13) {
  animation-delay: 0.41s;
}
#menu.open li:nth-child(14) {
  animation-delay: 0.44s;
}
#menu.open li:nth-child(15) {
  animation-delay: 0.47s;
}
#menu .main-nav {
  height: 100vh;
  height: 100lvh;
  display: flex;
  justify-content: center;
}
#menu .main-nav-wrapper {
  display: flex;
  gap: 60px;
  flex-direction: column;
}

#menu .main-nav-wrapper .divider {
  width: 1px;
  height: 100%;
  background-color: #f0f0f06a;
}
#menu .main-nav ul {
  list-style: none;
  margin-top: 15vh;

  display: flex;
  gap: 16px;
  flex-direction: column;
  transition: opacity 0.3s ease-in-out;
}

.main-nav-container {
  display: flex;
  gap: 16px;
  flex-direction: column;
  align-items: flex-start;
}

#menu .main-nav li > a,
#menu .main-nav li > span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f0f0f0;
}

#menu .main-nav a {
  font-size: 21px;
  text-decoration: none;
}

#menu .main-nav span {
  font-size: 0.815rem;
  padding-top: 1px;
}

/* メニューフォントサイズ */
@media screen and (max-width: 375px) {
  #menu .main-nav a {
    font-size: 5.6vw;
  }
  #menu .main-nav span {
    font-size: 3vw;
  }
  .header-language-item {
    font-size: 4.2vw;
  }
}

#menu .main-nav hr {
  width: 100%;
  height: 0;
  border-left: none;
  border-top: 1px solid #f0f0f06a;
}

.header-inner-end {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-language-item {
  color: var(--color-secondary);
  cursor: pointer;
  transition: 0.5s;
}
.header-language-item.active {
  color: var(--color-main);
}
.header-language-item:hover {
  color: var(--color-main);
}
@media screen and (min-width: 1024px) {
  #menu .main-nav ul {
    margin-top: 30vh;
    flex-direction: row;
    gap: 32px;
  }
  #menu .main-nav a {
    font-size: 1.8rem;
  }
  #menu .main-nav hr {
    width: 1px;
    height: auto;
    border: none;
    border-left: 1px solid #f0f0f06a;
  }
  .main-nav-container {
    gap: 32px;
  }
}

/* オーバーレイの基本スタイル */
#global-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.7), rgb(0, 0, 0));
  display: flex;
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.4s ease;
}
#global-settings-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* オーバーレイ内のコンテンツ用スタイル */
#global-settings-content {
  text-align: center;
  padding: 20px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  line-height: 40px;
  font-size: 1.2rem;
}

/* 言語ボタン */
@media screen and (max-width: 374px) {
  #global-settings-content {
    font-size: 5.1vw;
  }
}

#global-settings-content .header-language-item {
  border-bottom: 1px solid #f0f0f06a;
}

/* ハンバーガー */
.nav {
  position: relative;
  width: 25px;
  z-index: 110;
}
.toggle-menu {
  width: 25px;
  height: 60px;
}

.toggle-menu span {
  background-color: #f0f0f0;
  content: '';
  display: block;
  height: 1px;
  left: calc(50% - 13px);
  position: absolute;
  top: calc(50% - 1px);
  transform-origin: 50% 50%;
  transition: background-color 0.2s ease-in-out, top 0.2s 0.2s ease-out, transform 0.2s linear;
  width: 25px;
}

.toggle-menu span:before,
.toggle-menu span:after {
  background-color: #f0f0f0;
  content: '';
  display: block;
  height: 1px;
  position: absolute;
  transform-origin: 50% 50%;
  transition: background-color 0.2s ease-in-out, top 0.2s 0.2s ease-out, transform 0.2s linear;
  width: 25px;
}

.toggle-menu span:before {
  top: 6px;
}
.toggle-menu span:after {
  top: -6px;
}
.toggle-menu.active span {
  background-color: transparent;
  transition: background 0.2s ease-out;
}
.toggle-menu.active span:before,
.toggle-menu.active span:after {
  transition: top 0.2s ease-out, transform 0.2s 0.2s ease-out;
}
.toggle-menu.active span:before {
  top: 0;
  transform: rotate3d(0, 0, 1, -45deg);
}
.toggle-menu.active span:after {
  top: 0;
  transform: rotate3d(0, 0, 1, 45deg);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    -ms-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
}

@media screen and (max-width: 374px) {
  .nav {
    width: auto;
  }
  .toggle-menu {
    height: auto;
    width: min(6.5vw, 25px);
    height: 14vw;
  }
  .toggle-menu span {
    left: auto;
    position: absolute;
    top: 50%;
    transform-origin: 50% 0;
    width: min(6.5vw, 25px);
  }
  .toggle-menu span:before {
    top: 1.3vw;
    width: min(6.5vw, 25px);
  }
  .toggle-menu span:after {
    top: -1.3vw;
    width: min(6.5vw, 25px);
  }
}
