@charset "utf-8";

.nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 9999;
  background-image: url(../img/menu/sp-top-bg.png);
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top left;
  background-color: var(--color);
}

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

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

.nav-item {
  width: 100%;
  margin: 0 0 0.8em;
  text-align: center;
  font-size: 5.5vw;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-item:last-child {
  width: 50%;
  margin: 2rem auto;
}

.nav-item a {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.toggle {
  position: fixed;
  width: 10%;
  top: 5px;
  right: 5px;
  z-index: 999;
}

.toggle img {
  width: 100%;
}

@media screen and (min-width: 1px) and (max-width: 743px) {}

@media screen and (min-width: 744px) and (max-width: 1024px) {

  .nav-item {
    width: 100%;
    margin: 0 0 1em;
    font-size: 3.2vw;
  }

  .nav-item:nth-of-type(1) {
    width: 40%;
    margin: 0 auto 4rem;
  }

  .toggle {
    position: fixed;
    width: 50px;
    top: 5px;
    right: 5px;
    z-index: 999;
  }
}

@media screen and (min-width: 1025px) {

  .toggle {
    display: none;
  }

  a.nav-link {
    color: var(--color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 18px;
    padding: 0 0.4em;
    white-space: nowrap;
    transition: all 0.2s;
  }

  a.nav-link:hover {
    text-decoration: none;
    color: var(--color);
    transform: scale(1.05);
  }

  .pc-navi {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.5em;
    background: #fff;
    clip-path: polygon(0 0,
        100% 0,
        calc(100% - 30px) 100%,
        30px 100%);
  }

  .pc-navi-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em 1em 0.5em;
  }

  .pc-navi-item {
    line-height: 1;
    letter-spacing: 0.03em;
  }

}