/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(41,32,20,0.9);
	z-index: 9999;
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 25px;
	height: 0;
	padding-top: 25px;
	position: absolute;
	right: 10px;
	top: 10px;
	overflow: hidden;
	z-index: 9999;
	display: block;
	background: url(../images/common/btn_close.png) 0 0 no-repeat;
	-webkit-background-size: contain;
	background-size: contain;
	background-color: transparent;
	border: none;
}

/* Menu style */
.overlay nav {
	padding-top: 45px;
}

.overlay ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.overlay ul li {
	display: block;
	border-bottom: 1px solid #6c645a;
	border-left: 1px solid #6c645a;
	margin-left: -1px;
	padding-right: 1px;
}

.overlay ul li:first-child {
	border-top: 1px solid #6c645a;
}

.overlay ul li.last {
    border-right: 1px solid #6c645a;
}

.overlay ul li a {
	padding: 10px 15px;
	color: #fff;
	display: block;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	text-decoration: none;
	font-family: "ヒラギノ明朝 Pro W3","Hiragino Mincho ProN","Times New Roman",Times, serif;
}

.overlay ul li.pc {
	float: left;
	width: 50%;
	font-size: 80%;
}

.overlay ul li.pc a {
	padding-top: 13px;
	padding-bottom: 13px;
}

/*.overlay ul li a:hover,
.overlay ul li a:focus {
	
}*/

.overlay ul li a i {
	margin-right: 0.5em;
}

/* Effects */
.overlay-hugeinc {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
	transition: opacity 0.5s, visibility 0s 0.5s;
}

.overlay-hugeinc.open {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.overlay-hugeinc nav {
	-webkit-perspective: 1200px;
	perspective: 1200px;
}

.overlay-hugeinc nav ul {
	opacity: 0.4;
	-webkit-transform: translateY(-25%) rotateX(35deg);
	transform: translateY(-25%) rotateX(35deg);
	-webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
	transition: transform 0.5s, opacity 0.5s;
}

.overlay-hugeinc.open nav ul {
	opacity: 1;
	-webkit-transform: rotateX(0deg);
	transform: rotateX(0deg);
}

.overlay-hugeinc.close nav ul {
	-webkit-transform: translateY(25%) rotateX(-35deg);
	transform: translateY(25%) rotateX(-35deg);
}

@media screen and (max-height: 30.5em) {
	.overlay nav {
		height: 70%;
	}
}