/*ヘッダー設定
---------------------------------------------------------------*/
#header {
	height: auto;
	width: 100%;
	background: #FFFFFF;
}
#header .site-description {
	font-size: 10px;
	line-height: 1em;
	margin-top: 0px;
	margin-bottom: 0px;
}
#header .inner #h_menu {
	float: right;
	width: 360px;
}
#h_menu ul {
	padding-left: 30px;
	list-style: none;
	margin-top: 0px;
	padding-top: 0px;
}
#h_menu ul li {
	float: left;
	display: block;
	font-size: 10px;
	background: url(../../images/arrow.png) no-repeat 1px center;
	padding-left: 15px;
	margin-left: 20px;
}

.inner {
	min-height: 120px;
	width: var(--theme-layout-width);
	display: flow-root;
	margin-right: auto;
	margin-left: auto;
}
.rogo {
	height: 90px;
	width: 310px;
	margin-top: 10px;
	float: left;
}
.rogo a img {
	margin-top: 5px;
}


/*ナビゲーション
---------------------------------------------------------------*/

nav#mainNav {
	float: right;
	height: 34px;
	width: 575px;
	margin-top: 30px;
}


nav#mainNav ul{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 40px;
	height: 34px;
}


nav#mainNav ul li{
	margin: 0 0.5rem;
	list-style: none;
	width: auto;
}

nav#mainNav ul a{
	font-size: 0;
	text-decoration: none;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	height: 34px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% auto;
}

nav#mainNav ul a#menu1{background-image: url(../../images/nav_menu_school.svg);}
nav#mainNav ul a#menu2{background-image: url(../../images/nav_menu_life.svg);}
nav#mainNav ul a#menu3{background-image: url(../../images/nav_menu_curriculum.svg);}
nav#mainNav ul a#menu4{background-image: url(../../images/nav_menu_career.svg);}

nav#mainNav ul a:hover{
	opacity:0.6;
}
/*ナビゲーションここまで*/

/*
 * Drawer markup is in place ahead of the mobile implementation.  At desktop
 * widths it must be layout-neutral so the established floated menus and
 * sidebar rail remain continuously visible.
 */
@media (min-width: 768px) {
	.site-navigation,
	.site-navigation__panel,
	.sidebar-drawer__panel {
		display: contents;
	}

	#wrap > .sidebar-drawer {
		grid-column: 2;
		min-width: 0;
	}

	#wrap > .sidebar-drawer > #menu {
		float: none;
	}
}

#mainImage {
	min-height: 390px;
	width: var(--theme-layout-width);
	margin-block: 0.7rem;
	margin-inline: auto;
	text-align: center;
	clear: both;
}

/* Mobile header layout and no-JavaScript navigation fallback. */
@media (max-width: 767px) {
	#header .site-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		min-height: 0;
		padding: 0.75rem 1rem;
		gap: 0.5rem;
	}

	#header .rogo {
		float: none;
		width: 50%;
		height: auto;
		margin: 0;
	}

	#header .rogo a,
	#header .rogo a img {
		display: block;
	}

	#header .rogo a img {
		width: 100%;
		height: auto;
	}

	/*
	 * Without JavaScript these menus remain in the header, so every link is
	 * reachable. JavaScript moves both nav elements into the sidebar drawer
	 * before this source container is hidden.
	 */
	#header .site-navigation__panel {
		display: flow-root;
		clear: both;
		margin-top: 0.75rem;
	}

	#header .site-navigation #h_menu,
	#header .site-navigation nav#mainNav {
		float: none;
		width: auto;
		height: auto;
		margin: 0;
	}

	#header .site-navigation #h_menu ul,
	#header .site-navigation nav#mainNav ul {
		display: grid;
		height: auto;
		margin: 0;
		padding: 0;
	}

	#header .site-navigation #h_menu ul {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 0.5rem;
	}

	#header .site-navigation nav#mainNav ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#header .site-navigation #h_menu ul li,
	#header .site-navigation nav#mainNav ul li {
		width: auto;
		margin: 0;
		padding: 0;
		background: none;
	}

	#header .site-navigation #h_menu a,
	#header .site-navigation nav#mainNav ul a {
		display: block;
		height: auto;
		padding: 0.75rem 1rem;
		border-bottom: 1px solid #d8d8d0;
		background-image: none;
		color: var(--theme-link);
		font-size: 1rem;
		line-height: 1.4;
		text-decoration: none;
		white-space: normal;
	}

	#header .site-navigation #h_menu a {
		font-size: 0.9rem;
	}

	#header .site-navigation #h_menu a:hover,
	#header .site-navigation nav#mainNav ul a:hover {
		opacity: 1;
		background: #f7f7f3;
		text-decoration: underline;
	}

	.js #header .site-navigation {
		display: none;
	}

	#mainImage {
		width: 100%;
		min-height: 0;
	}
}

