@charset "UTF-8";
:root{
	/* 公式同様(--base-width以外) */
	--base-width: 1200px;	/* 標準幅を下回ったときのブレイクポイントも変更のこと */
	--base-color: #1a1f61;
	/* --base-color: #3465a4 */
	--second-color: #415aa1;
	/* --second-color: #6283ad; */
	--accent-color: #ff8800;
	--content-background-color: #f4f4f4;

	--color-M: #43b3f9;
	--color-M-second: #74c5f7;
	--color-E: #eded40;
	--color-E-second: #eaea70;
	--color-R: #f9c731;
	--color-R-second: #f7d262;
	--color-A: #f25252;
	--color-A-second: #e56969;
	--color-C: #34c939;
	--color-C-second: #5bc65f;

	/*--header-width: calc(var(--base-width)*1.4);*/	/* max-width に対して適用 */
	--header-width: 70%;	/* 標準幅を下回ると変更あり */
}
html{
	/* 公式同様 */
	/* font-family: sans-serif; */
	/* font-family: kozuka-gothic-pr6n,sans-serif; */
	/* font-family: soleil, source-han-sans-japanese, sans-serif; */
	font-family: source-han-sans-japanese, sans-serif;
	font-weight: 300;
	font-style: normal;
	
}


/* ------------------------------------
	タグ
------------------------------------ */
body{
	/* 公式同様 */
	/* width: 100%;
	background-color: white; */
	margin: 0px auto;
}
h1{
	text-align: center;

}
h2{
	text-align: center;

}
h3{
	margin: 40px 0px;
	text-align: center;
	font-size: x-large;
	border-bottom: 1px solid var(--base-color);
}
h4{
	font-size: larger;
}

div.border{
	margin: 10px;
	border: var(--base-color) solid 2px;
	border-radius: 10px;
}
div.center{
	margin: auto;
	text-align: center;
}
p.center{
	text-align: center;
}

table{
	max-width: 800px;
	margin: auto;
	border-collapse: separate;
}
th{
	margin: 5px;
	padding: 10px;
	background-color: #d8f7ff;
	/* border-radius: 10px; */
}
td{
	margin: 5px;
	padding: 10px 20px;
	background-color: #b0efff;
	border-radius: 10px;
}

figure{
	margin: 10px;
	text-align: center;
}

figure img{
	max-width: 100%;
}

/* ------------------------------------
	ヘッダー
------------------------------------ */
header{
	width: 100%;
}

div.top-text{
	width: 100%;
	display: flex;
	position: absolute;
	top: 5vw;
	z-index: 1;
	flex-direction: column;
	align-items: center;
	color: #fff;
	font-size: xx-large;
	text-shadow: 0px 0px 8px #000;
}

div#top-video{
	width: 100%;
}
video#top-video-player, div#top-video img{
	width: 100%;
	object-fit: cover;
	vertical-align: middle;
}


/* ------------------------------------
	メニューバー
	[公式同様] 
------------------------------------ */
#menu-bar{	/*ヘッダーはnav、フッターはdivの使い分けのためタグ指定なし*/
	width: 100%;
	background-color: var(--base-color);
	position: sticky;  /*追加*/
}
#menu-bar a{
	display: block;

	padding: 10px 20px;
	color: white;
	text-decoration: none;
}

ul#menu-bar-list{
	display: flex;
	justify-content: space-around;
	max-width: var(--base-width);
	height: 100%;
	padding: 0px;
	margin: auto;
	list-style: none;
	border-style: none;
	text-align: center;
	vertical-align: middle;
	background-color: initial;
}
li.menu-bar-list-item{
	margin: 0px;
	padding: 0px;
	background-color: var(--base-color);
	transition: background-color 200ms ease-out 0s;
}
li.menu-bar-list-item:hover{
	background-color: var(--second-color);
	transition: background-color 200ms ease-in 0s;
}
li.menu-bar-list-item:hover ul.menu-bar-list-item-sublist{
	max-height: 100%;
	transition: max-height 500ms ease-in 0s;
}


ul.menu-bar-list-item-sublist{
	position: absolute;
	padding: 0px;
	width: auto;
	max-height: 0px;
	overflow: hidden;
	list-style: none;
	border-style: none;
	background-color: var(--second-color);
	
	z-index: 20;

	min-width: calc(var(--base-width)/6);

	transition: all 200ms ease-out 0s;
}
li.menu-bar-list-item-sublist-item{
	margin: 0px;
}
li.menu-bar-list-item-sublist-item:hover{
	background-color: var(--base-color);
}

/* ------------------------------------
	コンテンツ
------------------------------------ */
.contents{
	/* 公式同様 */
	max-width: var(--base-width);
	margin: 40px auto;
	padding: 0px 15px;
}

div.move-top{
	text-align: right;
}
div.move-top a{
	padding: 4px 20px;
	background-color: var(--content-background-color);
	border-top:    var(--base-color) 1px solid;
	border-bottom: var(--base-color) 1px solid;
}

/* 
	左右2分割する表示【flexに変更して使用】【スマホの場合縦に並ぶ】
*/
div.horizontal{
	display: flex;
	width: 100%;
	align-items: center;
}
div.horizontal-item{
	flex: 2;
}


/* ------------------------------------
	フッター
------------------------------------ */
div#top_move_button{
	/* 公式同様 */
	position: fixed;
	bottom: -55px;
	right: 3vw;
	margin-bottom: 0px;
	transition: all 100ms ease 0s;
}
footer{
	padding: 1em;
	background-color: var(--base-color);
	color: #fff;
	text-align: center;
}
#footer-logo{
	filter: invert(100%);
}
footer h2{
	margin: 0;
	padding: 0;
	font-size: smaller;
}




@media screen and (max-width: 420px){

	:root{
		--base-width: 100%;
	}

	div.top-text{
		top: 10vw;
		font-size: x-small;
	}

	ul#menu-bar-list{
		flex-direction: column;
	}

	li.menu-bar-list-item{
		
	}

	#footer-logo{
		width: 100%;
	}

	div.horizontal{
		flex-direction: column;
	}
}