.site-header {
	background: var(--main);
	width: 100%;
	height: 70px;
	padding-inline: 20px;
	border-radius: 0 0 30px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	top: 0;
	left: 0;
	z-index: 9998;
	position: fixed;
	transition: top 0.5s ease;
}

.site-header.UpMove {
	/* transform: translateY(-70px); */
	top: -70px;
}

.site-header.DownMove {
	/* transform: translateY(0); */
	top: 0;
}
@media screen and (min-width: 768px) {
	.site-header {
		border-radius: 0 0 30px 30px;
		height: 110px;
	}

	.site-header.UpMove {
		/* transform: translateY(-110px); */
		top: -110px;
	}

	.site-header.DownMove {
		/* transform: translateY(0); */
		top: 0;
	}
}

.site-title {
	width: clamp(170px, calc((100vw - 390px) * 2.91 + 170px), 280px);
}

.hamburger {
	display: block;
	width: 50px;
	height: 50px;
	position: fixed;
	right: 20px;
	top: 10px;
	z-index: 10000;
}
.hamburger > span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--black);
	position: absolute;
	transform: translate(0, -50%);
	transition: 0.3s ease-in-out;
}
.hamburger > span:nth-child(1) {
	top: 20%;
}
.hamburger > span:nth-child(2) {
	top: 50%;
}
.hamburger > span:nth-child(3) {
	top: 80%;
}
.menu-open .hamburger > span:nth-child(1) {
	top: 50%;
	transform: rotate(30deg);
	background: var(--main);
}
.menu-open .hamburger > span:nth-child(2) {
	top: 50%;
	transform: rotate(30deg);
	background: var(--main);
}
.menu-open .hamburger > span:nth-child(3) {
	top: 50%;
	transform: rotate(-30deg);
	background: var(--main);
}

body.menu-open {
	overflow: hidden;
}

.nav-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--accent);
	display: block;
	pointer-events: none;
	opacity: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch; /* iOS対策 */
	transition: all 0.3s;
}
.menu-open .nav-modal {
	opacity: 1;
	pointer-events: auto;
}
.nav-mordal__site-title {
	height: 70px;
	width: 50%;
	display: flex;
	align-items: center;
	padding: 20px;
}
.nav-list {
	height: 100%;
}
.nav-item {
	height: 100%;
	padding: 0.5em 0;
}
.site-nav .menu-title {
	position: relative;
}
.site-nav .menu-title span {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

.submenu__wrapper {
	display: none;
}
.submenu__wrapper.is-active {
	display: block;
}
.site-nav .submenu__title {
	display: none;
}
.site-nav .submenu {
	padding-inline: 18px;
	display: flex;
	flex-direction: column;
	margin-block: 20px;
}
.utility-nav {
	margin-block: 40px;
	padding-inline: 8%;
	padding-block: 40px;
	border-top: 1px solid var(--white);
	border-bottom: 1px solid var(--white);
}
.utility-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.utility-nav__list li {
	flex: 0 1 calc((100% - 8px * 1) / 2);
	text-align: center;
	color: var(--white);
}
.utility-nav__list a {
	color: var(--white);
}
.nav-extras {
	color: var(--white);
	padding-inline: 8%;
	margin-bottom: 60px;
}
.nav-extras__rogo {
	width: 70%;
	margin-inline: auto;
	margin-block: 40px;
}
.nav-extras__address {
	margin-block: 1em;
	text-align: center;
}
.qrcode {
}
.qrcode img {
	border-radius: 0px;
}
.copy {
	text-align: center;
}
@media screen and (min-width: 768px) {
	.hamburger {
		display: none;
	}
	.no-link:hover {
		cursor: default;
	}
	.nav-modal {
		position: static;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: none;
		width: auto;
		display: grid;
		grid-template-rows: 1fr 2fr;
		overflow-y: visible;
		opacity: 1;
		pointer-events: auto;
		justify-items: end;
	}
	.nav-list {
		grid-row: 2 / 3;
		display: flex;
		align-items: center;
	}

	.utility-nav {
		margin-block: 0;
		padding-inline: 0;
		padding-block: 0;
		border: 0;
		grid-row: 1 / 2;
		order: 1;
		height: 30px;
		font-size: 1.3rem;
		align-self: end;
	}

	.utility-nav__list {
		display: flex;
		flex-wrap: nowrap;
		gap: 1em;
	}

	.utility-nav__list li {
		flex: 0 1 auto;
		text-align: center;
	}

	.utility-nav__list a {
		transition: 0.3s;
		color: var(--text-light);
		text-decoration: none;
		font-weight: 500;
	}

	.utility-nav__list a:hover {
		color: #888;
	}
	.nav-mordal__site-title {
		display: none;
	}
	.submenu__wrapper {
		border-radius: 0 0 80px 80px;
		position: absolute;
		top: 110px;
		right: 30px;
		width: 50%;
		min-width: 768px;
		height: 500px;
		padding: 24px 18px;
		padding-right: 340px;
		overflow: hidden;
		display: block;
		opacity: 0;
		pointer-events: none;
		transition: all 0.5s ease;
	}
	.submenu__wrapper.is-open {
		display: block;
		opacity: 1;
		pointer-events: auto;
		transition: all 0.5s ease;
	}
	.submenu__wrapper::before {
		content: '';
		display: block;
		position: absolute;
		inset: 0;
		background: var(--sub);
		opacity: 0.9;
		z-index: -1;
	}
	.submenu__wrapper::after {
		content: '';
		position: absolute;
		right: 24px;
		top: 50%;
		width: 290px;
		transform: translate(0, -50%);
		height: 80%;
		background-color: black;
		background-size: cover;
		border-radius: 40px;
	}
	li.about .submenu__wrapper::after {
		background-image: url(./img/content-index/about--sp.webp);
	}
	li.education .submenu__wrapper::after {
		background-image: url(./img/content-index/education--sp.webp);
	}
	li.school-life .submenu__wrapper::after {
		background-image: url(./img/content-index/school-life--sp.webp);
	}
	li.future-students .submenu__wrapper::after {
		background-image: url(./img/content-index/feature-student--sp.webp);
	}
	.site-nav .submenu__title {
		display: block;
		color: var(--white);
	}
	.nav-extras {
		display: none;
	}
	.site-nav .submenu {
		display: flex;
		flex-direction: row;
		margin: 20px 0 0;
		border-top: 1px solid var(--white);
		padding-top: 30px;
		padding-left: 24px;
	}

	.nav-list {
		height: 100%;
	}
	.nav-item {
		height: 100%;
		padding-inline: 1em;
		padding-block: 0;
	}
	.nav-item:last-child {
		padding-inline-end: 0;
	}
	.site-nav .menu-title {
		text-align: center;
		font-size: 1.6rem;
		padding: 8px 0 0 0;
		margin-bottom: 0;
		height: 100%;
		bottom: 0;
		color: var(--text-light);
	}
	.site-nav .menu-title::before {
		font-size: 12px;
		line-height: 1;
	}
	.site-nav .menu-title::after {
		background: var(--main-dark);
		border-radius: 8px 8px 0 0;
		width: 100%;
		height: 3px;
		top: auto;
		bottom: 0;
		left: 50%;
		transform: translate(-50%, 0);
		transition: all 0.3s;
	}
	.site-nav .menu-title:hover::after {
		/* background: var(--sub); */
		height: 5px;
	}
}

.mega-menu-bg {
	position: absolute;
	top: 100%; /* ヘッダーの真下から */
	left: 0;
	width: 100%;
	height: 100vh; /* メガメニューと同じくらい */
	background-color: rgba(0, 0, 0, 0.2); /* 白っぽい薄背景 */
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 5; /* メガメニューの下に */
}
/* 表示時のみblockにしたい場合は JSで display: block 切り替えもアリ */

.mega-menu-bg.is-visible {
	opacity: 1;
	pointer-events: auto;
	/* 他のスタイル（opacityや背景色）もここに */
}

/* フッター */

.site-footer {
	background: var(--accent);
	border-radius: 40px 40px 0 0;
	color: var(--white);
	padding-top: 100px;
	padding-bottom: 80px;
	padding-inline: 8%;
	margin-top: 3em;
	position: relative;
}
.site-footer::after {
	content: '';
	position: absolute;
	top: -50px;
	left: 0;
	background: url(./img/koushi.png);
	background-size: 100px 100px;
	background-position: center;
	opacity: 0.3;
	width: 100%;
	height: 100px;
	z-index: -1;
}
.site-footer__container {
	display: gird;
	grid-template-columns: 1fr;
	gap: 40px;
}
.site-footer__nav > li {
	margin-block: 1.5em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid var(--silver);
}
.site-footer__nav .submenu a:hover {
	color: var(--sub);
}
.site-footer__rogo {
	width: 240px;
	margin: 20px auto;
}
.site-footer__meta {
	margin-block: 40px;
	text-align: center;
}
.site-footer__utility .qrcode {
	margin-top: 20px;
}
.site-footer__copy {
	text-align: center;
}
@media screen and (min-width: 768px) {
	.site-footer {
		margin-top: 120px;
	}
	.site-footer__container {
		display: grid;
		grid-template-columns: 340px 1fr;
		grid-template-rows: auto auto;
		grid-template-areas:
			'meta nav'
			'utility nav'
			'copy copy';
		gap: 0 80px;
	}
	.site-footer__nav {
		grid-area: nav;
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-content: start;
		gap: 0 80px;
	}
	.site-footer__nav > li {
		flex: 1 1 calc((100% - 80px * 1) / 2);
		margin-block: 1.5em;
		padding-bottom: 1.5em;
		border-bottom: none;
	}
	.site-footer .submenu {
		flex-direction: column;
	}
	.btns-container {
		grid-column: 1 / 2;
		grid-row: 2 / 3;
	}
	.site-footer__meta {
		margin-top: 0;
		grid-area: meta;
	}
	.site-footer__utility {
		grid-area: utility;
	}
	.site-footer__copy {
		grid-area: copy;
		margin-top: 80px;
		text-align: center;
	}
}
