@charset "UTF-8";

.menu-btn {
  position: fixed;
  top: 0;
  right: 0;
  width: 70px;
  z-index: 1001;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.menu-btn img {
  display: block;
}

.menu-screen {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-screen.is-rendered {
  display: block;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 30%;
  height: 100dvh;
  padding: 110px 3vw 40px;
  color: #fff;
  background-image:
    url(../img/bg-menu.png),
    linear-gradient(to bottom right, #1e2678 0%, #e60027 100%);
  background-position:
    bottom -100px center,
    center;
  background-repeat: no-repeat;
  background-size:
    100% auto,
    100% 100%;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-list a,
.menu-list a:link,
.menu-list a:visited,
.menu-list a:hover {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  text-decoration: none;
}

body.is-menu-open {
  overflow: hidden;
}

body.is-menu-open .menu-btn {
  transform: translateX(-30vw);
}

body.is-menu-open .menu-screen {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open .menu-screen .menu-panel {
  transform: translateX(0);
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .menu-list a,
  .menu-list a:link,
  .menu-list a:visited,
  .menu-list a:hover {
    font-size: 1.898vw;
  }

  .menu-panel {
    width: 40%;
    background-position:
      bottom 0 center,
      center;
  }
}

@media screen and (min-width: 1025px) {
  .menu-btn img {
    transition: all 0.3s;
  }

  .menu-btn img:hover {
    opacity: 0.8;
  }

  .menu-list a {
    transform-origin: left center;
    transition: transform 0.3s ease;
  }

  .menu-list a:hover {
    transform: scale(1.05);
  }
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .menu-btn {
    width: 14vw;
  }

  .menu-panel {
    width: 50%;
    padding: 22vw 6vw 30px;
  }

  .menu-list {
    gap: 1rem;
  }

  .menu-list a,
  .menu-list a:link,
  .menu-list a:visited,
  .menu-list a:hover {
    font-size: 3.6vw;
  }

  body.is-menu-open .menu-btn {
    transform: translateX(-50vw);
  }
}
