@charset "UTF-8";
/* CSS Document */

/*
.nav ul {
	display: flex;
	justify-content: space-around;
	width: 100%;
	height: auto;
	text-align: center;
	margin: 0;
	background:#999;
}
.nav li {
	list-style-type: none;
	min-width: 160px;
	width: 20%;
	height: auto;
	font-size: 1rem;
	list-style: none;
}
nav li a {
	display: block;
	color: #fff;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	transition: all 0.5s;
}
*/
/*
.nav li a:hover {
	background:#555;
	color: #ccc;
}
*/

.check {
	display: none;
}
.menu-btn__text {
	display: none;
}
/*
section{
	width: 100%;
	height: 1200px;
	background: #F8C2C3;
}
section:nth-child(odd){
	background: #5EB5C3;
}
*/

@media (max-width: 1024px) {
.wrapper {
/*	padding: 0 8px;*/
	width: 100%;
}
.nav {
	background-color: #dfddda;
}
.nav ul {
	display: block;
	background: rgba(0,0,0,0);
}
.nav li {
	list-style-type: none;
	width: 100%;
	height: auto;
	padding: 5px;
	font-size: 1rem;
	list-style: none;
}	

/* drawer menu */
.drawer-menu {
	box-sizing: border-box;
	position: fixed;
	top: 0;
/*	right: 0;*/
	right: -100%;
/*    transform: rotateY(90deg);*/
	max-width: 300px;
	width: 100%;
	height: 100%;
	padding: 100px 0;
	background: rgba(0,0,0,.7);
	transition-property: all;
	transition-duration: .5s;
	transition-delay: 0s;
	transform-origin: right center;
	opacity: 0;
}

.drawer-menu li {
	text-align: center;
}

.drawer-menu li a {
	display: block;
	font-size: 14px;
	color: #fff;
	transition: all .8s;
	margin: 0 auto;
}

.drawer-menu li a:hover {
/*	color: #1a1e24;*/
	color: #fff;
	background: #fff;
	border-bottom: 1px solid #fff;
}

/* checkbox */
.check {
	display: none;
}

/* menu button - label tag */
.menu-btn {
	position: fixed;
	display: block;
	top: 20px;
	right: 40px;
	width: 40px;
	height: 40px;
	font-size: 10px;
	text-align: center;
	cursor: pointer;
	z-index: 3;
}

.bar {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 40px;
	height: 1px;
	background: #fff;
	transition: all .5s;
	transform-origin: left top;
}

.bar.middle {
	top: 15px;
	opacity: 1;
}

.bar.bottom {
	top: 30px;
	transform-origin: left bottom;
}

.menu-btn__text {
	position: absolute;
	bottom: -15px;
	left: 0;
	right: 0;
	margin: auto;
	color: #fff;
	transition: all .5s;
	display: block;
	visibility: visible;
	opacity: 1;
}

.menu-btn:hover .bar {
	background: #999;
}

.menu-btn:hover .menu-btn__text {
	color: #999;
}

.close-menu {
	position: fixed;
	top: 0;
	right: 300px;
	width: 100%;
	height: 100vh;
	background: rgba(0,0,0,0);
	cursor: url("../img/cross.png"),auto;
	transition-property: all;
	transition-duration: .3s;
	transition-delay: 0s;
	visibility: hidden;
	opacity: 0;
}

/* checked */
.check:checked ~ .drawer-menu {
	transition-delay: .1s;
	transform: none;
	opacity: 1;
	z-index: 2;
	right: 0;
}

.check:checked ~ .contents {
	transition-delay: 0s;
	transform: translateX(-300px);
}

.check:checked ~ .menu-btn .menu-btn__text {
	visibility: hidden;
	opacity: 0;
}
.check {
	display: none;
}

.check:checked ~ .menu-btn .bar.top {
	width: 56px;
	transform: rotate(45deg);
}

.check:checked ~ .menu-btn .bar.middle {
	opacity: 0;
}

.check:checked ~ .menu-btn .bar.bottom {
	width: 56px;
	top: 40px;
	transform: rotate(-45deg);
}

.check:checked ~ .close-menu {
	transition-duration: .1s;
	transition-delay: .1s;
	background: rgba(0,0,0,.2);
	visibility: visible;
	opacity: 1;
	z-index: 3;
}

	.check:checked ~ .drawer-menu li a {
		background: rgba(0,0,0,0);
		border: none;
		border: solid 1px rgba(0,0,0,0);

	}
	
	.check:checked ~ .drawer-menu li a:hover {
		border-bottom: 1px solid #fff;

	}

}