@charset "utf-8";

.gnav {
  display: none;
  height: 100%;
  position: fixed;
  width: 100%;
  z-index: 999;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow-y: auto;
  overscroll-behavior-y: none;
}

.gnav::before,
.gnav::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  height: calc(100% + 1px);
}

.webp .gnav {
  background-image: url(../img/toggle/bg.webp);
}

.no-webp .gnav {
  background-image: url(../img/toggle/bg.jpg);
}

.gnav-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
}

.gnav-item {
  margin: 0 0 1.6rem;
  text-align: center;
  font-size: min(32px, 8.21vw);
  color: #333;
  font-family: "TensegritySans";
  font-style: normal;
  line-height: 1;
}

.gnav-item:first-child {
  width: 50%;
  margin: 0 auto 2rem;
}

.gnav-item:last-child {
  padding: 0;
  margin: 4rem 0 0;
}

.toggle-sns {
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle-sns-item {
  width: 8%;
  margin: 0 4%;
}

.toggle {
  position: fixed;
  width: 12%;
  top: 0;
  right: 0;
  z-index: 999;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .toggle {
    position: fixed;
    width: 7%;
    top: 0;
    right: 0;
    z-index: 999;
  }

  .gnav-item {
    margin: 0 0 2rem;
    font-size: min(42px, 5.12vw);
  }

  .gnav-item:first-child {
    width: 40%;
    margin: 0 auto 3rem;
  }

  .toggle-sns-item {
    width: 10%;
    margin: 0 4%;
  }
}
