@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

nav a {
  text-decoration: none;
  /* color: #8b4f00; */
  color: #ffffff;
  font-family: "Tangerine", cursive;
}

nav {
  max-width: 1080px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 8vh;
  margin-top: 10px;
  width: 100%;
  /* background-color: #399ada; */
}

.nav-links {
  display: flex;
  justify-content: space-around;
  text-align: right;
  width: 38%;
  transition: all 0.5s ease-in-out;
}

.burger {
  position: fixed;
  top: 10px;
  right: 10px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

.burger div {
  height: 2px;
  width: 25px;
  background-color: #ffffff;

  margin: 5px;
  border-radius: 5px;
  transition: all 0.5s ease-in-out;
}

.nav-active {
  transform: translateX(0%) !important;
}

@media (max-width: 1024px) {
  .nav-links {
    width: 55%;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    .nav-links {
      display: flex;
      justify-content: center;
      text-align: center;
      width: 70%;
      transition: all 0.5s ease-in-out;
      /* padding-top: 50px; */
    }
  }

  .nav-links {
    position: fixed;

    right: 0px;
    /* navの高さ引いたもの */
    height: 100vh;
    top: 0;
    /* background-color: #fff06cee; */
    background: rgb(255, 250, 35);
    background: linear-gradient(
      90deg,
      rgba(255, 250, 35, 1) 0%,
      rgba(244, 255, 58, 0.9127105666156202) 35%,
      rgba(255, 203, 130, 1) 100%
    );
    flex-direction: column;

    width: 80%;
    transform: translateX(100%);
    z-index: 99;
  }

  .burger {
    display: block;
  }

  .nav-links li {
    /* ふわっと出すため始めは消す */
    opacity: 0;
  }
  .nav-links li + li {
    margin-top: 10px;
  }

  @keyframes navLinksFade {
    0% {
      opacity: 0;
      transform: translateX(50px);
    }

    100% {
      opacity: 1;
      transform: translateX(0px);
    }
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(405deg) translate(-5px, -6px);
  }
}
