/*---------------------------------------------------------------------------------------
	header
----------------------------------------------------------------------------------------*/

header{
	background-color: rgba(255,255,255,1);
	position: fixed;
	width: 100%;
	padding-top: 17px;
	padding-bottom: 25px;
	height: 80px;
	overflow: hidden;
	box-sizing: border-box;
	z-index: 10;
    top: 0;
}

header h1{
	text-align: center;
}

header h1 img{
	vertical-align: middle;
	margin-right: 10px;
}

header h1 img:last-child{
	margin-right: 0;
	position: relative;
    top: -6px;
}



header .wrap{
	clear: both;
	box-sizing: content-box;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 0;
}

header nav ul{
	text-align: right;
	margin-top: 5px;
}
header nav ul li{
	display: inline-block;
	margin-left: 10px;
	line-height: 1;
	font-size: 16px;
    font-weight: 500;
}

header nav ul li:first-child{
	margin-left: 0;
}

header nav ul li.current a{
	border-bottom: solid 2px #e50012;
} 

@media screen and (max-width: 768px) {
	header nav ul li.current a{
	border-bottom: none;
} 

}

header nav ul li a{
	transition: .5s;
}

header nav ul li a:hover{
	color: #999;
    text-decoration: none;
	transition: .5s;
}





/*------------------------------ responsive ------------------------------*/
@media screen and (max-width:768px){

	header{
		height: 70px;
		padding: 3%;
	}
	header.open,
	header.open .wrap{
		height: 100vh;
	}
	header > div h1 a{
		margin-top: 10px;
	}

	header > div p{
		float: right;
		box-sizing: border-box;
		display: inline-block;
		width: 30px;
		height: 30px;
		transition: all .4s;
		position: relative;
		margin-top: 5px;
		margin-right: -5px;
		z-index: 999999;
	}
	header > div p span{
		box-sizing: border-box;
		display: inline-block;
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: #43362E;
		transition: all .2s;
	}
	header > div p span:nth-of-type(1) { top: 4px;}
	header > div p span:nth-of-type(2) { top: 13px;}
	header > div p span:nth-of-type(3) { bottom: 5px;}
	header.open > div p span:nth-of-type(1) {
		-webkit-transform: translateY(10px) rotate(-45deg);
		transform: translateY(10px) rotate(-45deg);
		background: #fff;
	}
	header.open div p span:nth-of-type(2) {
		left: 50%;
		opacity: 0;
		-webkit-animation: active-menu-bar02 .8s forwards;
		animation: active-menu-bar02 .8s forwards;
		background: #fff;
	}
	header.open div p span:nth-of-type(3) {
		-webkit-transform: translateY(-9px) rotate(45deg);
		transform: translateY(-9px) rotate(45deg);
		background: #fff;
	}
	header nav{
		position: fixed;
		right: 0;
		top: 0;
		width: 100%;
		height: 100vh;
		padding: 0 5% 30px;
		margin-left: 0;
		background: rgba(3,0,0,.9);
		box-shadow:0px 0px 5px -2px #333;
		display: none;
		z-index: 99999;
		overflow-x: auto;
	}
	header > div nav > ul{

		padding: 0 5% 20px;
}
	header > div nav > ul > li{
		float: none;
		padding-bottom: 0;
		display: block;
	}
	
	header > div nav > ul > li:not(:first-child) > a{
		display: block;
		padding: 5px 10px;
		color: #fff;
		font-size: 14px;
		line-height: 1.3;
		text-align: left;
		border: 1px solid #fff;
		margin-bottom: 10px;
	}
	header > div nav > ul > li:not(:first-child) > a:before,
	header > div nav > ul > li.dropdown:hover > a:before{
		content: "》";
		position: static;
		width: auto;
		margin-left: 0;
		border: none;
	}
	
	

	
	
}

@media screen and (max-width:550px){
	header > div h1 a img{
		width: auto;
		height: 15px;
		margin-top: -15px;
	}
	header > div h1 a img:first-child{
		height: 27px;
		
	}
}





/*---------------------------------------------------------------------------------------
	footer
----------------------------------------------------------------------------------------*/

footer{
	text-align: center;
	padding-top: 100px;
	background-color: #fff;
}
footer #pagetop{
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 999;
	cursor: pointer;
}
footer ul{
	margin-bottom: 30px;
}
footer ul li{
	display: inline-block;
	margin-left: 10px;
	margin-right: 10px;
	font-size: 16px;
	font-weight: 500;
}
footer small{
	display: block;
	color: #fff;
	text-align: center;
	line-height: 60px;
	background-color:#e50012; 
}

footer nav ul li a{
	transition: .5s;
}

footer nav ul li a:hover{
	color: #999;
    text-decoration: none;
	transition: .5s;
}



/*------------------------------ responsive ------------------------------*/
@media screen and (max-width:768px){
	footer #pagetop{
		right: 10px;
		bottom: 10px;
	}
	footer #pagetop img{
		width: 50px;
	}
	footer small{
		font-size: 3.5vw;
	}
}
