/*========= Header ===============*/
/* 画面枠 */
.body-div {
	max-width: 1200px;
	margin: 0px auto 0px;
}

/* 画面幅の上限を開放 */
.expand-container {
	max-width: inherit;
	margin: inherit;
}

#global-head>nav {
	border-bottom: 1px solid #CCC;
	padding: 0.5rem;
}

.inline-container {
	width: inherit;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-top {
	background: var(--ftc-color);
	color: white;
	font-size: 12px;
	text-align: right;
}

.header-logo {
	display: block;
}

.header-right {
	display: flex;
	align-items: center;
}

.header-logout {
	color: dimgray;
	text-decoration: none;
	border: 1px solid lightgray;
	padding: 8px;
}

.header-logout:hover {
	text-decoration: none;
	background: #EEE;
}

.header-logout>svg {
	width: 20px;
	height: 20px;
}

.header-logout * {
	vertical-align: middle;
}

/*========= Menu Toggle ===============*/
#nav-toggle {
	cursor: pointer;
	padding: 5px;
}

#nav-toggle>div {
	position: relative;
	width: 32px;
	height: 32px;
}

#nav-toggle span {
	width: 100%;
	height: 2px;
	left: 0;
	display: block;
	background: dimgray;
	position: absolute;
}

#nav-toggle:hover span {
	background: lightgray;
}

#nav-toggle span:nth-child(1) {
	top: 4px;
}

#nav-toggle span:nth-child(2) {
	top: 16px;
}

#nav-toggle span:nth-child(3) {
	top: 28px;
}

#menu-overlay {
	display: none;
	position: fixed;
	background: rgba(0, 0, 0, .6);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	border-radius: 0;
}

#nav-close {
	position: absolute;
	right: 300px;
}

#nav-close>svg {
	width: 50px;
	height: 50px;
	fill: white;
}

.open {
	overflow: hidden;
}

.open #menu-overlay {
	display: block;
}

/* メニュー表示 */
.open .sidebar {
	overflow-y: scroll;
	-webkit-transform: translate3d(-300px, 0, 0);
	transform: translate3d(-300px, 0, 0);
}

/*========= Side Menu ===============*/
/* ulタグ */
#mainMenu {
	border-right: 1px solid lightgray;
	flex-wrap: wrap;
}

/* aタグ共通 */
#mainMenu .nav-item a {
	color: dimgray;
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: 0.75rem;
	border: 1px solid transparent;
}

/* 親メニュー */
#mainMenu .nav-item>a {
	border-left: 1px solid lightgray;
	padding: 0.25rem;
	min-width: 110px;
	outline: none !important;
}

/* 親メニュー ホバー */
#mainMenu .nav-item>a:hover {
	color: var(--ftc-hover-color);
}

/* 親メニュー focus */
#mainMenu .nav-item>a:focus {
	background-color: var(--ftc-hover-color);
	color: white;
}

/* メニュー名に含まれるsvgアイコン */
#mainMenu .nav-item a svg {
	height: 20px;
	width: 20px;
	fill: white;
	margin-right: 10px;
}

/* 子メニュー一覧 */
#mainMenu .dropdown-menu {
	margin: 0;
	padding: 0;
	z-index: 400;
}

/* 子メニュー ホバー */
#mainMenu .dropdown-item:hover {
	border-color: var(--ftc-hover-color);
	background: var(--ftc-light-color);
}

/* 子メニュー focus, active */
#mainMenu .dropdown-item:focus, #mainMenu .dropdown-item:active {
	color: black;
	background-color: var(--ftc-light-color);
}

@media screen and (min-width: 992px) {
	#mainMenu .dropdown-menu {
		max-height: 64vh;
		overflow-y: auto;
	}
}

@media screen and (max-width: 991px) {
	body {
		min-width: 372px;
	}
	.header-logo {
		max-width: 260px;
	}
	.header-logout {
		display: none;
	}
	.sidebar {
		position: fixed;
		right: -300px;
		top: 0;
		height: 100%;
		width: 300px;
		background: white;
		border: solid gray;
		border-width: 0 0 1px 1px;
		-webkit-transition: .3s ease-in-out;
		transition: .3s ease-in-out;
		z-index: 300;
	}
	/* 親メニュー */
	#mainMenu .nav-item>a {
		background-color: var(--ftc-color);
		border-left-color: transparent;
		color: white;
		width: 100%;
		padding: 0.75rem !important;
	}
	/* 親メニュー ホバー */
	#mainMenu .nav-item>a:hover {
		background-color: var(--ftc-hover-color);
		color: white;
	}
}