@charset "utf-8";

:root {
	--text-color-gray: #707070;
	--text-color-bk: #2B2929;
	--maincolor: #152044;
}

html {
	overflow-y: scroll;
	font-size: 62.5%;
}

body {
	color: var(--text-color-gray);
	font-family: 'Shippori Mincho B1', serif;
	font-weight: 500;
	line-height: 1.75;
    letter-spacing: 0.05rem;
	position: relative;
	font-size: 1.6rem;
}

a {
	text-decoration: none;
	color: var(--text-color);
	transition: all 0.5s;
}

img {
	max-width: 100%;
	height: auto;
	width: 100%;
}

h3 {
	font-size: 3.2rem;
	text-align: center;
	color: var(--maincolor);
	margin-bottom: 30px;
	font-weight: 500;
	display: flex;
	align-items: center;
	flex-direction: column;
}

h3.left {
	align-items: flex-start;
}

h3::after {
	content: "";
	width: 36px;
	height: 2px;
	display: block;
	margin-top: 30px;
	background-color: var(--maincolor);
}

section {
	margin-bottom: 150px;
}

.wrapper {
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	position: relative;
}



/*======================
header共通
======================*/
header {
	position: fixed;
	width: 100%;
    z-index: 999;
	top: 0;
}

header nav {
	background: url(../images/bg-paper.jpg) no-repeat;
	background-size: cover;
	position: fixed;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    left: 0px;
	top: 0;
	z-index: -1;
	transform: translateY(-300px);
	transition: transform 1s;
}

header nav ul {
	display: flex;
	padding: 30px 0 100px;
	flex-direction: row-reverse;
	justify-content: center;
	z-index: 1;
    position: relative;
}

header nav ul li {
	display: flex;	writing-mode: vertical-rl;
	padding-right: 50px;
	letter-spacing: 0.25em;
}	

header nav ul li a {
    color: var(--maincolor);
    border-right: 2px solid transparent;
	display: block;
	transition: all 0.2s;
}

header nav ul li a:hover {
    border-right: 2px solid var(--maincolor);
	transition: all 0.2s;
}

/*バーガーメニュー時背景固定用*/
body.fixed {
	width: 100%;
	height: 100%;
	position: fixed;
}

header nav.sp_open {
	transform: translateY(0);
	transition: transform 1s;
}

/*背景カラー用*/
.on {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: -2;
	background: var(--maincolor);
	opacity: 0.8;
	display: block;
}

#toggle {
	float: right;
	margin-top: 20px;
	padding: 0;
	width: 50px;
	height: 50px;
	border: none;
	position: relative;
	/* top: 20px; */
	/* right: 0; */
	z-index: 999;
	background-color: transparent;
}

/*ボタン内側*/
#toggle span{
	display: inline-block;
	transition: all .4s;
	position: absolute;
	left: 14px;
	height: 3px;
	border-radius: 2px;
	background: var(--maincolor);
	width: 45%;
}

#toggle span:nth-of-type(1) {
	top:15px; 
}

#toggle span:nth-of-type(2) {
	top: 23px;
}

#toggle span:nth-of-type(3) {
	top:31px;
}

/*activeクラスが付与されると線が回転して×に*/

#toggle.active span:nth-of-type(1) {
	top: 18px;
	left: 18px;
	transform: translateY(6px) rotate(-45deg);
	width: 30%;
}

#toggle.active span:nth-of-type(2) {
	opacity: 0;/*真ん中の線は透過*/
}

#toggle.active span:nth-of-type(3){
	top: 30px;
	left: 18px;
	transform: translateY(-6px) rotate(45deg);
	width: 30%;
}

/*======================
footer共通
======================*/
.sec-cta {
	background: url(../images/contact.jpg) no-repeat;
	background-size: cover;
	background-position: center;
    margin-bottom: 0;
    padding: 135px 0;
	overflow:hidden;
	position: relative;
}

.sec-cta::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #000;
	opacity: 0.5;
}

.sec-cta dl {
	border: 1px solid #fff;
	color: #fff;
	text-align: center;
	padding: 20px;
	width: 30%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.sec-cta dl dd {
	font-size: 2.4rem;
}
footer {
	background-color: var(--maincolor);
	color: #fff;
	text-align: center;
	padding: 10px 0;
}

footer small {
	font-size: 1.2rem;
}

/* ========================
タブレット以下の表示はここからです
========================*/
@media screen and (max-width:767px){
	body {
		font-size: 1.4rem;
	}

	h3 {
		margin-bottom: 60px;
	}

	h3.left {
		align-items: center;
	}

	section {
		margin-bottom: 80px;
	}

	.wrapper {
		width: 100%;
	}


	/*======================
	header共通
	======================*/
	header nav ul {
		padding: 60px 0 40px;
	}

	header nav ul li {
		padding-right: 20px;
	}	


	#toggle {
		margin-top: 10px;
	}

	/*======================
	footer共通
	======================*/
	.sec-cta {
		padding: 70px 0;
	}

	.sec-cta dl {
		width: 80%;
	}

	footer {
		background-color: var(--maincolor);
		color: #fff;
		text-align: center;
		padding: 10px 0;
	}

	footer small {
		font-size: 1.2rem; 
	}
}	
