:root {
	--background: #F9F9F2;
	--text: #4C1F08;
	--border: #CCA771;
	--oshirase: #33BEBA;
	--lesson: #F7B400;
	--event: #F45C71;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

body {
	font-size: 18px;
}

@media (max-width: 900px) {
	body {
		font-size: 16px;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 14px;
	}
}

.hidden-h1 {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}



/* ========== ヘッダー ========== */
header {
	background-color: #FFFFFF;
	font-family: "Kiwi Maru", serif;
	font-optical-sizing: auto;
	font-weight: 700;
}

.header-flex {
	display: flex;
}

@media (max-width: 900px) {
	.header-flex {
		flex-direction: column;
	}
}

.header-left {
	width: 300px;
	text-align: center;
	background-color: var(--background);
}

.header-logo {
	width: 300px;
	margin: 40px 0 20px 0;
}

.header-logo img {
	max-width: 180px;
	transition: background 0.2s ease, transform 0.2s ease;
}

@media (max-width: 520px) {
	.header-logo img {
		max-width: 150px;
	}
}

.header-logo img:hover {
	transform: scale(1.05);
	transition: transform 0.3s;
}

.header-link nav ul {
	list-style: none;
	justify-content: center;
	padding: 0;
}

.header-link a {
	color: var(--text);
	text-decoration: none;
	font-size: 20px;
	display: inline-block;
	padding: 15px 0px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.header-link a:hover {
	transform: scale(1.05);
	transition: transform 0.3s;
}

.header-right {
	width: 100%;
}

.header-image {
	height: 100vh;
	border-bottom-left-radius: 120px;
	background-image: url(../img/photo/header-image.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

@media (max-width: 900px) {
	.header-image {
		height: 55vh;
		border-radius: 0;
	}
}

@media (max-width: 520px) {
	.header-image {
		height: 42vh;
	}
}

/* ========== ヘッダー ========== */



/* ========== モバイルヘッダー ========== */
.hamburger {
	display: none;
	border: none;
	background: transparent;
	padding: 20px;
	border-radius: 10px;
	cursor: pointer;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background-color: var(--text);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	position: static;
	z-index: 3000;
}

.hamburger__bar {
	display: block;
	width: 26px;
	height: 3px;
	background: #FFFFFF;
	border-radius: 999px;
}

.mobile-menu__top,
.mobile-menu__bottom {
	display: none;
}

.menu-close {
	display: none;
}

body.is-menu-open {
	overflow: hidden;
}

.mobile-menu__sns img {
	filter: brightness(0) saturate(100%) invert(14%) sepia(12%) saturate(6048%) hue-rotate(352deg) brightness(96%) contrast(97%);
}

@media (max-width: 900px) {
	body.is-menu-open .hamburger {
		display: none;
	}

	.header-left {
		width: 100%;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 14px;
		box-sizing: border-box;
		position: sticky;
		top: 0;
		z-index: 1100;
		background-color: var(--background);
	}

	.header-logo {
		width: auto;
		margin: 8px 0;
	}

	.hamburger {
		position: fixed;
		top: calc(env(safe-area-inset-top) + 12px);
		right: 14px;
		display: inline-flex;
		flex-direction: column;
		gap: 4px;
		align-items: center;
		justify-content: center;
		z-index: 1300;
	}

	.hamburger__bar {
		margin: 0;
	}

	.header-link {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100dvh;
		padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
		box-sizing: border-box;
		background: var(--background);
		backdrop-filter: none;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 220ms ease, visibility 0s linear 220ms;
		z-index: 1200;
		overflow: auto;
	}

	body.is-menu-open .header-link {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 220ms ease, visibility 0s;
	}

	.menu-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: calc(10px + env(safe-area-inset-top));
		right: 12px;
		width: 48px;
		height: 48px;
		font-size: 30px;
		line-height: 1;
		border: none;
		background: transparent;
		color: var(--text);
		cursor: pointer;
		border-radius: 12px;
	}

	.mobile-menu__inner {
		min-height: calc(100dvh - 36px - env(safe-area-inset-bottom));
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: calc(44px + env(safe-area-inset-top));
	}

	.mobile-menu__top {
		display: block;
		padding: 18px 0 8px 0;
	}

	.mobile-menu__logo img {
		width: min(180px, 60vw);
		height: auto;
		display: block;
	}

	.mobile-menu__nav {
		width: 100%;
		max-width: 520px;
		margin-top: 18px;
	}

	.mobile-menu__nav ul {
		list-style: none;
		padding: 0;
		margin: 0;

		display: flex;
		flex-direction: column;
		gap: 16px;
		align-items: center;
	}

	.mobile-menu__nav a {
		display: inline-block;
		text-align: center;
		font-size: 16px;
		letter-spacing: 0.06em;
		padding: 6px 18px;
		border-radius: 14px;
	}

	.mobile-menu__bottom {
		display: flex;
		margin-top: auto;
		width: 100%;
		max-width: 520px;

		flex-direction: column;
		align-items: center;
		gap: 14px;

		padding-bottom: 10px;
	}

	.mobile-menu__cta {
		display: flex;
		align-items: center;
		justify-content: center;
		width: min(360px, 100%);
		height: 64px;
		border-radius: 999px;
		background: #1F2D46;
		color: #FFFFFF;
		font-size: 18px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-decoration: none;
	}

	.mobile-menu__sns img {
		width: 40px;
		height: 40px;
		display: block;
	}

	body.is-menu-open {
		position: fixed;
		width: 100%;
	}

	.menu-overlay {
		display: none !important;
	}
}

@media (min-width: 901px) {
	body.is-menu-open {
		overflow: auto;
		position: static;
		width: auto;
		top: auto;
	}
}

/* ========== モバイルヘッダー ========== */



/* ========== セクション ========== */
.section-title {
	width: 100%;
	text-align: center;
}

.section-title h3 {
	font-size: 35px;
	font-optical-sizing: auto;
	font-weight: bold;
	margin: 20px 0;
}

@media (max-width: 900px) {
	.section-title h3 {
		font-size: 30px;
	}
}

@media (max-width: 520px) {
	.section-title h3 {
		font-size: 26px;
		margin: 16px 0;
	}
}

.dummy-header {
	width: 300px;
	background-color: var(--background);
}

@media (max-width: 900px) {
	.dummy-header {
		display: none;
	}
}

/* ========== セクション ========== */



/* ========== ボタン ========== */
.page-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	background: #4A3200;
	color: #FFFFFF;
	border-radius: 9999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

@media (max-width: 1024px) {
	.page-button {
		font-size: 18px;
		padding: 10px 18px;
	}
}

@media (max-width: 520px) {
	.page-button {
		font-size: 16px;
		padding: 10px 16px;
		gap: 8px;
	}
}

.page-button:hover {
	transform: scale(1.05);
	transition: transform 0.3s;
}

.page-button .arrow {
	width: 8px;
	height: 8px;
	transform: rotate(-45deg);
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
}

/* ========== ボタン ========== */



/* ========== フッター ========== */
footer {
	width: 100%;
}

.footer-link {
	width: 100%;
	background-color: #FFDC87;
}

.footer-link table {
	margin: 0 auto;
	text-align: center;
	border-spacing: 0 30px;
}

@media (max-width: 900px) {
	.footer-link table {
		width: min(760px, calc(100% - 24px));
		display: block;
		margin: 0 auto;
		border-spacing: 0;
		padding: 18px 10px 0 10px;
	}
}

@media (max-width: 520px) {
	.footer-link table {
		padding: 10px;
	}
}

@media (max-width: 900px) {

	.footer-link tbody,
	.footer-link tr {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 10px 0;
		margin: 0 auto;
	}
}

@media (max-width: 520px) {

	.footer-link tbody,
	.footer-link tr {
		gap: 6px 0;
	}
}

.footer-link td {
	width: 150px;
	font-weight: 600;
}

@media (max-width: 900px) {
	.footer-link td {
		width: 50%;
		padding: 6px 0;
	}
}

@media (max-width: 520px) {
	.footer-link td {
		padding: 4px 0;
	}
}

.footer-link td a {
	text-decoration: none;
	color: var(--text);
}

.footer-link td:hover {
	transform: scale(1.05);
	transition: transform 0.3s;
}

.footer-sns {
	text-align: center;
}

@media (max-width: 900px) {
	.footer-sns {
		margin-top: 10px;
	}
}

.footer-sns a {
	text-decoration: none;
}

.footer-sns .line,
.footer-sns .insta {
	width: 50px;
	padding: 0 20px;
	filter: brightness(0) saturate(100%) invert(15%) sepia(48%) saturate(944%) hue-rotate(341deg) brightness(94%) contrast(101%);
	transition: background 0.2s ease, transform 0.2s ease;
}

@media (max-width: 520px) {

	.footer-sns .line,
	.footer-sns .insta {
		width: 44px;
		padding: 0 14px;
	}
}

.footer-sns .line:hover,
.footer-sns .insta:hover {
	transform: scale(1.07);
	transition: transform 0.3s;
	cursor: pointer;
}

.footer-border {
	padding-top: 20px;
	border-bottom: 1px solid var(--border);
}

@media (max-width: 520px) {
	.footer-border {
		padding-top: 12px;
	}
}

.footer-copyright {
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	padding: 30px 0 5px 0;
	color: var(--text);
}

@media (max-width: 900px) {
	.footer-copyright {
		padding: 14px 0 10px 0;
	}
}

/* ========== フッター ========== */



/* ========== ロード時アニメーション ========== */
#splash {
	position: fixed;
	inset: 0;
	background: #fff;
	display: grid;
	place-items: center;
	z-index: 9999;
	opacity: 1;
	pointer-events: all;
	transition: opacity 500ms ease;
}

#splash img {
	width: min(360px, 70vw);
	height: auto;
	transform-origin: center;
	animation: splash-bounce 900ms cubic-bezier(.2, .9, .2, 1) both;
}

@keyframes splash-bounce {
	0% {
		transform: scale(0.65);
		opacity: 0;
	}

	55% {
		transform: scale(1.08);
		opacity: 1;
	}

	75% {
		transform: scale(0.98);
	}

	100% {
		transform: scale(1.00);
	}
}

#splash.is-hide {
	opacity: 0;
	pointer-events: none;
}

#splash.is-gone {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	#splash img {
		animation: none;
	}

	#splash {
		transition: none;
	}
}

/* ========== ロード時アニメーション ========== */