/*ページの全体の設定*/
body{
	margin: 0px;
	background-color: #fffbf7;
	font-family:'Libre Bodoni', sans-serif;
}

/*画面がじわっと出る*/
.fadeout{
	background: #fffbf7;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 3000;
}

.fadeout p {
	position: fixed;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	display: none;
	z-index: 9999;
	margin: 0;
	text-align: center;
}

/*余白設定、画面を三分割するために余白を作っています*/
.space{
	width: 5%;
	margin: 0px;
	position: relative;
}

/*ヘッダー設定*/
header{
	display:flex;
	border-bottom:solid 3px #00a199;
	height: 50px;
	width: 100%;
	position:fixed;
	top: 0;
	right: 0;
	z-index: 1500; /*ヘッダを内容が書かれているページの上に重ねる::他で使ってるから数値これがいいなあ*/
	background: #fffbf7;
}

.hinagata{
	display:flex;
	align-items: center;
	width: 90%;
	text-align:center;
	vertical-align: middle;
	justify-content: center;
	margin: 0px;
	border-right:solid 3px #00a199;
	border-left:solid 3px #00a199;
	color: #00a199;
	background: #fffbf7;
	font-size: 150%;
}

/*ドロワーの設定*/

/*ドロワーのビジュアル設定*/
.humburger{
	width: 5%;
	margin: 0px;
	display:flex;
	align-items: center;
	vertical-align: middle;
	justify-content: center;
}


.drower{
	padding-top: 8%;
	text-align: center;
}

.drower img{
	width: 35px;
	height: 35px;
	cursor: pointer;
}

#nav{
	background-color: #00a199;
	width: 270px;
	height: 100%;
	position: fixed;
	right: -270px;
	top: 0;
	z-index: 3000; /*ヘッダの上にドロワーを重ねる*/
}

/*ドロワーを出現させる*/
.show{
	transform: translate3d(-270px, 0, 0);
}

/*ハンバーガーメニューの見た目*/
.first{
	display:flex;
	height: 50px;
	border-bottom:solid 3px #fff;
}

.second{
	display:flex;
	height: 90%;
}

.hspace{
	width: 10%;
	border-right:solid 3px #fff;
	margin: 0px;
}



.bigNSP{
	color: #fff;
	margin: auto;
	font-size: 200%;
	text-decoration: underline;
}

.batu{
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-top: auto;
	margin-bottom: auto;
}

.batu img{
	width: 40px;
	height: 40px;
	cursor: pointer;
}

.menu{
	padding-top: 3%;
	padding-left: 3%;
}


.menu li{
	list-style: none;
	padding-top: 10%;
	flex-shrink: 0;
}

.menu li a{
	color: #fff;
	text-decoration: none;
	font-size: 150%;
	display:inline-block;
}

.menu li a:hover{
	text-decoration: none;
	color: #fe8f44;
	transition-duration: 0.5s;
}	


/*開く閉じるアニメーション*/
#nav{
	transition: all 0.5s 0.3s ease-in-out;
}

/*中段の設定*/
main{
	padding-top: 50px;
	display:flex;
	margin: 0px;
	z-index: 1; /*ヘッダを上に重ねる*/
}

/*メインの設定*/
section{
	width: 90%;
	border-right:solid 3px #00a199;
	border-left:solid 3px #00a199;
	background-color: #00a199;
	text-align: center;
	font-family:'メイリオ', 'Meiryo',sans-serif;
}

/*空白*/
section .space{
	width: 5%;
	margin: 3%;
	position: relative;
}

.message{
	height: 25px;
	width: 60vw;
	margin: auto;
	text-align: center;
	border-radius: 25px;
	background-color: #fffbf7;
	margin: auto;
}

.message p{
	color: #00a199;
	font-size: 17px;
	padding-top: 4px;
}

/*下に飛ぶ*/
.skips{
	display: flex;
	flex-wrap: wrap;
}
	
.skip{
	display: inline-block;
	width: calc(100%/4);
}

.skip img{
	width: 85%;
	height: 85%;
	background-color: #fffbf7;
	border-radius: 10px;
	border-bottom: solid 4px #522f60;
}
/*skipの動き*/
.skip img:hover{
	animation-name: skipping;
	animation-duration: 1s;
	animation-delay: .3s;
	-webkit-transform: translateY(4px);
	transform: translateY(4px);
	box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
	border-bottom: none;
}

.skip img:active{
	-webkit-transform: translateY(4px);
	transform: translateY(4px);
	box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
	border-bottom: none;
}

@-webkit-keyframes skipping{
	10% { -webkit-transform: rotate(-10deg); }
	20% { -webkit-transform: rotate(8deg); }
	30% { -webkit-transform: rotate(-5deg); }
	40% { -webkit-transform: rotate(4deg); }
	50% { -webkit-transform: rotate(-3deg); }
	60% { -webkit-transform: rotate(2deg); }
	70% { -webkit-transform: rotate(-1deg); }
	80% { -webkit-transform: rotate(1deg); }
	90% { -webkit-transform: rotate(-1deg); }
	100% { -webkit-transform: rotate(0deg); }
}

/*見出し*/
.question{
	width: 55%;
	height: 40px;
    color: #ffcc33;
    background: #fffbf7;
    border-top: solid 5px #ffcc33;
    border-bottom: solid 5px #ffcc33;
	margin: auto;
	text-align: middle;
}

.question h2,h3{
	padding-top: 60px;
	margin-top: -60px;
	color: #fe8f44;
	font-size: 30px;
}
	

/*アコーディオンメニュー*/
.details{
	width: 85%;
	margin: auto;
	border-top: 2px solid #00a199;
	border-left: 2px solid #00a199;
	border-right: 2px solid #00a199;
	&:last-of-type{
		border-bottom: 2px solid #00a199;
	}
}
.details-summary{
	height: 20%;
	position: relative;
	display: block;
	padding: 20px;
	color: #fff;
	font-size: 1.8vw;
	font-weight: bold;
	border-radius: 35px;
	text-align: middle;
	background-color: #fe8f44;
	&:hover{
		cursor: pointer;
		opacity: 0.8;
	}
	/*プラス印（動かす）*/
	.btn{
		position: absolute;
		top: 37%;
		left: 5%;
		width: 18px;
		height: 18px;
		transform-origin: center center;
		transition-duration: 0.2s;

		&:before,
		&:after{
			content: "";
			background-color: #fff;
			border-radius: 10px;
			width: 18px;
			height: 4px;
			position: absolute;
			top: 7px;
			left: 0;
			transform-origin: center center;
		}
		&:before{
			width: 4px;
			height: 18px;
			top: 0;
			left: 7px;
		}
	}


	&.is-active{
		.btn{
			-webkit-transform: rotate(-180deg);
			transform: rotate(-180deg);
			&:before{
				content: none;
			}
		}
	}
}
/*オレンジのとこ*/
.details-summary p{
	margin: auto;
}

.details-summary::-webkit-details-marker{
	display: none;
}

.details-content{
	margin: auto;
	vertical-align: middle;
	padding: 20px;
	background-color: #fffbf7;
	border-radius: 20px;
}
	
.details-content p{
	color: #00a199;
	font-size: 1.8vw;
	text-align: left;
	vertical-align: middle;
	&:last-of-type{
		margin: 0 0 0;
	}
}

.indent{
	margin-left: 1.5rem;
	text-indent: -1.5rem;
}

section .spaces{
	width: 5%;
	margin: 5vh;
	position: relative;
}

.douga{
	height: 5%;
}

/*popup表示させたいコンテンツのレイアウトと位置*/

#popup{
	position: center;
	width: 30%;
	box-sizing: border-box;
	padding: 0px;
	display: none;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	z-index: 1000;
}


.E{
	display:none;
}

video{
	padding-top:3%;
	position: center;
	width:70%;
	height:70%;
	border-radius: 10px;
}

/*ボタンの装飾*/
.D .btn{
	display: inline-block;
	background: #ffcc33;
	color: #fff;
	width: 50vw;
	line-height: 6vh;
	border-radius: 25px;
	text-align: center;
	border-bottom: solid 4px #997a1f;
	position: relative;
	font-size: 20px;
	border-top: none;
	border-left: none;
	border-right: none;
}


/*カーソル当てた時*/
.D .btn:hover{
	cursor: pointer;
}

/*ボタン押したとき*/
.D .btn:active{
	-webkit-transform: translateY(4px);
	transform: translateY(4px);
	box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
	border-bottom: none;
}

input[type="checkbox"]{
	display: none;
}
/*checkboxがチェックの状態になったらpopupを表示させる*/
input[type="checkbox"]:checked + #popup{
	display: block;
	margin-top: 30%;
	margin-left: 20%;
	height: ;
}

/*フッターの設定*/
.footer{
	display:flex;
}


/*著作書いているところの設定*/
/*著作書いているところの設定*/
.author{
	width:90%;
	text-align:center;
	border-top:solid 3px #00a199;
	border-right:solid 3px #00a199;
	border-left:solid 3px #00a199;
	margin: 0px;
}

.author p{
	padding-top: 1%;
	margin: 0px;
}

.author p img{
	width: 7%;
	height: 7%;
	cursor: pointer;
}

.author h6{
	color: #00a199;
	margin: 0;
	font-size: 50%;  
}

/*pageTopの設定*/
#pageTop{
	position: fixed;  /*以下３行場所の固定のために使う*/
	right: 1px;
	bottom:5px;
	/*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/
#pageTop.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from{
    opacity: 0;
	transform: translateY(100px);
  }
  to{
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/
#pageTop.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from{
  	opacity: 1;
	transform: translateY(0);
  }
  to{
  	opacity: 0;
	transform: translateY(100px);
  }
}

/*pageTopの画像の設定*/
#pageTop p{
	margin: 0px;
	background-color: #fffbf7;
	border-radius: 10px;
	border:solid 3px #00a199;
}

#pageTop p img{
	width: 100px;
	height: 100px;
	cursor: pointer;
}

/*スマホ版*/
@media only screen and (max-width: 820px){
	
	header{
		height: 49px;
	}
	.hinagata{
		width: 85%;
		border-right:solid 0px #00a199;
	}
	
	.humburger{
		width: 10%;
	}
	
	.section{
		font-family:'メイリオ', 'Meiryo',sans-serif;
	}
	
	.message{
		width: 100%;
		height: 20px;
	}
	
	.message p{
		font-size: 11px;
		position:relative;
		padding-top: 5px;
	}
	
	.question{
		height: 20px;
		width: 50%;
	}
	
	.question h2{
		font-size: 95%;
	}
	
	.question h3{
		font-size: 85%;
	}
	
	.detail{
		width: 80%;
	}
	
	.details-summary{
		padding: 0 0 0;
		margin: auto;
		height:8vw;
		border-radius: 15px;
		text-align: center;
	}
	
	.details-summary p{
		margin: 0 0 30px;
		padding-left: 10px;
		padding-top: 1.5vw;
		font-size: 15px;
		font-weight: normal;
	}
	
	.details-content p{
		font-size: 13px;
	}
	
	.details-summary .btn{
		display: none;
	}
	
	.D .btn{
		height: 5vh;
		font-size: 13px;
	}
	
	.spaces{
		height: 2px;
	}
	
	#pageTop p img{
		width: 60px;
		height: 60px;
		cursor: pointer;
    }
	
	/*フッター設定*/
	.author p img{
		width: 10%;
		height: 10%;
		cursor: pointer;
	}
	
}

@media only screen and (max-width: 300px){
		.hinagata{
			width: 80%;
			border-right:solid 0px #00a199;
		}
		
		.humburger{
			width: 15%;
		}
		
		.spaces{
			height: 1vh;
		}
		
		/*フッター設定*/
		.author p img{
			width: 10%;
			height: 10%;
			cursor: pointer;
		}
}