@charset "utf-8";

.nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
}

.checkbox {
    display: none;
}
  
.openbtn{
	position: relative;
    z-index: 100;
    display: block;
	background:#57a2c7;
	cursor: pointer;
    width: 50px;
    height:50px;
	border-radius: 5px;
}

.openbtn span{
    position: absolute;
    display: inline-block;
    transition: all .4s;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background: #fff;
  	width: 45%;
}

.openbtn span:nth-of-type(1) {
	top:15px;	
}

.openbtn span:nth-of-type(2) {
	top:23px;
}

.openbtn span:nth-of-type(3) {
	top:31px;
}

.nav_content {
    width: 30%;
    height: 100%;
    position: fixed;
    bottom: 100%;
    right: 0%;
    z-index: 99;
    background: rgba(201, 197, 197, 0.582);
    transition: .5s;
    text-align: center;
    padding-top: 100px;
}

.global-nav{
    list-style: none;
}

.global-nav__item a {
    color: #fff;
    text-decoration: none;
}

#onoff:checked ~ .nav_content {
    bottom: 0;
}

/* メニューボタンがクリックされたときのスタイル */
.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}
