*{
  margin: 0;
  /* overflow-x: hidden; */
}

h1, h2{
  margin-bottom: 2rem;
}

p{
  margin-bottom: 0.75rem;
}

a{
  text-decoration: none;
  color: inherit;
}

ul{
  padding: 0;
  list-style-type: none
}

li{
  margin-bottom: 0.75rem;
}

body{
  background-color: #fff6ea;

}

nav{
  position:fixed;
  display: inline-block;
  vertical-align: top;
  width: 25vw;
  padding: 2rem;
  height: 95vh;
}

nav h1{
  font-size: 1.7rem;
  margin-bottom: 2rem;
}

nav h2{
  margin-top: 2rem;
  margin-bottom: 1rem;
}

nav .title{
  width: fit-content;
}

nav .menu_button{
  position: absolute;
  right: 7rem;
  top: 2.2rem;
  display: none;
  font-size: 3.5rem;
}

.main{
  position: relative;
  left: 25vw;
  display: inline-block;
  width: 70vw;
}

.contents{
  position: relative;
  margin-top: 2rem;
  margin-left: 4rem;
  padding-bottom: 2rem;
}

.about{
  position: absolute;
  bottom: 4rem;
}

#menu_check{
  display: none;
}

@media (max-width: 1080px) and (orientation:portrait) {

  nav{
    position: absolute;
    top: 2rem;
    left: 3rem;
    width: 92vw;
  }

  nav h1{
    font-size: 4rem;
  }

  nav .menu_button{
    display: block;
    z-index: 51;
  }

  p{
    margin-bottom: 2rem;
  }

  .title{
    width: 60vw;
    z-index: 51;
  }

  .nav_lists{
    position: absolute;
    top: -200vh;
    background-color: #fff6ea;
    z-index: 50;
    height: 100vh;
    left: 0rem;
    padding-left: 2rem;
    width: 90vw;
    transition: all .5s ease-in-out;
  }

  .nav_lists h2{
    font-size: 3.5rem;
  }

  .nav_lists li{
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
  }

  .about{
    position: relative;
    margin-top: 4rem;
    bottom: auto;
    font-size: 3rem;
    width: fit-content;
  }

  .main{
    top: 10rem;
    left: 2rem;
    width: 94vw;
    /* display: flex; */
  }

  .contents{
    padding-bottom: 5rem;
  }

  .contents h2{
    font-size: 2.5rem;
  }

  .contents p{
    font-size: 1.4rem;
  }

  .contents li{
    font-size: 1.1rem;
  }

  .menu_label input:checked ~.nav_lists{
    position: fixed;
    top: 0rem;
    left: 2rem;
    padding-left: 3rem;
    padding-top: 10rem;
  }

  .menu_label input:checked ~.title{
    position: fixed;
  }

  .menu_label input:checked ~.menu_button{
    position: fixed;
    top: 4.2rem;
  }
}
