/* global_menu */
input[type="checkbox"]+label{
	position: fixed;
	top: 8px;
	right: 8px;
}

.global_menu { /* メニュー全体のスタイル */
	width: 100%;
	position: relative;
	color: #9fa0a0; /* 文字色 */
	background: #2f2725; /* 背景色 */
	text-align: center;
}

.global_menu ul {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.global_menu li {
	display: inline-block;
}

.global_menu a { /* 各項目のスタイル */
	color: #9fa0a0;
	display: block;
	padding: 10px 0;
}

.menu:hover > a {
	color: #ffffff;
	background: #9fa0a0;
}

.child_menu > li > a { /* 子項目のスタイル */
	font-size: 0.875em;
}
.child_menu > li > a:hover { /* 子項目のスタイル（ホバー時） */
	background: #9fa0a0;
}

.child_menu { /* 下層メニューのスタイル */
	width: 100%;
	position: absolute;
	top: 0; /* topを0に */
	left: 0;
	padding: 10px 0;
	color: #9fa0a0; /* 文字色 */
	background: #2f2725; /* 背景色 */
	visibility: hidden; /* 下層メニューを非表示 */
	opacity: 0;
	transition: 1.5s top, 1.5s opacity; /* アニメーション設定 */
	z-index: 200;
}

.menu:hover .child_menu { /* 下層メニューのスタイル（親項目ホバー時） */
	top: 82px; /* 定位置に戻す */
	opacity: 1;
	visibility: visible; /* 下層メニューを表示 */
	margin-top: 0;
}

.child_menu a:hover {
	color: #fff;
}

/* スマホ閲覧時のハンバーガーメニュー */

#hanburger {
	display: none; /* チェックボックスを非表示 */
}

.menu_button { /* ボタンのスタイル */
	width: 50px; /* 幅 */
	height: 50px; /* 高さ */
	position: fixed;
	top: 20px;
	right: 20px;
	background: #0097c2; /* 背景色 */
	z-index: 10;
}

.menu_button::before { /* アイコンのスタイル */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f0c9"; /* アイコン「３本線」 */
	position: absolute;
	color: #fff;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

#hanburger:checked + .menu_button::before { /* アイコンのスタイル（チェック済み） */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f00d"; /* アイコン「×印」 */
}

.global_menu { /* メニュー全体のスタイル */
	visibility: hidden; /* メニューを非表示 */
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	color: #9fa0a0; /* 文字色 */
	background: #2f2725; /* 背景色 */
	overflow-y:  scroll;
	text-align: center;
}

#hanburger:checked ~ .global_menu { /* メニュー全体のスタイル（チェック済） */
	visibility: visible; /* メニューを表示 */
}

.global_menu a { /* 各項目のスタイル */
	display: block;
	width: 100%;
}

.global_menu a:hover { /* 各項目のスタイル（ホバー時） */
	background: #9fa0a0;
}

.menu:not(:last-child) {
	margin-bottom: 20px;
}

.menu > a { /* 親項目のスタイル */
	font-weight: bold;
	padding: 20px 0;
}

.child_menu > li > a {
	padding: 10px 0;
}

/* PC閲覧時のメガメニュー */
@media screen and (min-width: 481px) {
	.global_menu ul {
		flex-direction: row;
	}
	.menu:hover .child_menu { /* 下層メニューのスタイル（親項目ホバー時） */
		top: 0; /* 定位置に戻す */
	}

	input[type="checkbox"]+label,
	.menu_button {
		display: none; /* ハンバーガーメニューのボタンを非表示 */
	}

	.global_menu { /* メニュー全体のスタイル */
		position: relative;
		padding: 0;
		color: #9fa0a0; /* 文字色 */
		background: #2f2725; /* 背景色 */
		visibility: visible;
		overflow-y: visible;
	}

	.menu:not(:last-child) {
		margin-bottom: 0;
	}

	.menu > a { /* 親項目のスタイル */
		font-weight: normal;
		padding: 10px 20px;
	}

	.global_menu ul ul {
		margin-top: 0;
		position: fixed;
		left: 0;
		top: 0;
	}
	.child_menu { /* 下層メニューのスタイル */
		width: 100%;
		position: absolute;
		top: 0; /* topを0に */
		left: 0;
		padding: 30px;
		box-sizing: border-box;
		color: #ffffff; /* 文字色 */
		background: #2f2725; /* 背景色 */
		visibility: hidden; /* 下層メニューを非表示 */
		opacity: 0;
		transition: 1.5s top, 1.5s opacity; /* アニメーション設定 */
	}

	.menu:hover .child_menu { /* 下層メニューのスタイル（親項目ホバー時） */
		top: 150px; /* 定位置に戻す */
	}

	.child_menu > li > a {
		padding: 10px 30px;
	}

	.child_menu > li > a:hover {
		background: unset;
		color: #fff;
	}

}