@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400&display=swap');

html {
  font-size: 10px;
  font-weight: 400;
  font-family: "Lato",
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
    font-weight: 400;
    color: #525252;
    background: rgb(250, 250, 250);
    min-width: 320px;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

a {
  color: #525252;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
}

.header {
  width: 100%;
  max-width: 920px;
  height: 60px;
  position: sticky;
  top: 0;
  margin: 0 auto;
  display: flex;
  line-height: 60px;
  padding: 0;
  box-sizing: border-box;
  z-index: 2;
  padding: 0 14px;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 1), rgba(250, 250, 250, 0));
}

.header .title-block {
  width: 40%;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 4px;
}

.header .menu-block {
  width: 60%;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 1px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
}


.main {
  height: calc(100% - 60px);
  max-width: 920px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 40px 14px 40px 14px;
  z-index: 1;
  position: relative;
}


.wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgb(197, 214, 210);
  z-index: 0;
  transition: all 0.6s;
  opacity: 0;
  animation: toRight .75s forwards;
}

.wrapper.active {
  z-index: 4;
  opacity: 1;
  transform: translate(0, 0);
  animation: toLeft .75s forwards;
}

@keyframes toRight {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(100%, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes toLeft {
  0% {
    transform: translate(100%, 0);
  }
  50% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

.wrapper ul {
  padding-top: 120px;
  font-size: 2rem;
  text-align: center;
}

.wrapper ul li {
  height: 60px;
  line-height: 60px;
}


.button-block {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 60px;
  width: 60px;
  padding: 25px 15px 25px 15px;
  box-sizing: border-box;
  z-index: 5;
}

.button-block .button {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.button-block .button span {
  width: 100%;
  border-bottom: solid 1px #525252;
  display: inline-block;
  position: absolute;
  border-radius: 2px;
}

.button-block .button span:nth-of-type(1) {
  top: 0;
  animation: line1 .75s forwards;
}

.button-block .button span:nth-of-type(2) {
  bottom: 0;
  animation: line2 .75s forwards;
}

.button-block.active .button span:nth-of-type(1) {
  animation: active-line1 .75s forwards;
}

.button-block.active .button span:nth-of-type(2) {
  animation: active-line2 .75s forwards;
}

@media screen and (max-width: 920px) {
  .header {
    margin: 0;
  }

  .header .title-block {
    width: auto;
  }

  .header .menu-block {
    display: none;
  }

  .button-block {
    display: block;
  }
}

@keyframes line1 {
  0% {
    transform: translateY(4px) rotate(45deg);
  }
  50% {
    transform: translateY(0) rotate(0);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes line2 {
  0% {
    transform: translateY(-5px) rotate(-45deg);
  }
  50% {
    transform: translateY(0) rotate(0);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes active-line1 {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(4px) rotate(0);
  }
  100% {
    transform: translateY(4px) rotate(45deg);
  }
}

@keyframes active-line2 {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(0);
  }
  100% {
    transform: translateY(-5px) rotate(-45deg);
  }
}