@charset "UTF-8";

:root {
	--color-body-1: #222;
	--color-theme-1: #3657AA;
	--color-theme-1-1: #CEF0FC;
	--color-theme-1-2: #F3F8FF;
	--color-theme-1-3: #54C3E9;
	--color-theme-1-4: #E7F9FF;
	--color-theme-1-5: #2E9EE3;
	--color-theme-1-6: #CEEEED;
	--color-theme-2: #F9C03B;
	--color-theme-3: #F0857D;
	--color-theme-3-1: #FCE5DF;
	--color-theme-4: #FFF7DC;
	--color-gray-1: #D3D3D5;
	--color-red: #E92503;

	--gothic: "Noto Sans JP", sans-serif;
	--en: "Geologica", sans-serif;

	--op: 0.7;
	--ts: 0.2s;

	--container: 1120px;
	--padding: 32px;
	--stack: 128px;
}

@media(max-width: 767px) {
	:root {
		--stack: 48px;
	}
}

* {
	--font-size: calc((var(--fs) / 16) * 1rem);
	font-size: var(--font-size);
}

.en {
	font-family: var(--en);
}

.text-theme-1 {
	color: var(--color-theme-1);
}

.text-theme-1-1 {
	color: var(--color-theme-1-1);
}

.text-theme-1-2 {
	color: var(--color-theme-1-2);
}

.text-theme-1-4 {
	color: var(--color-theme-1-4);
}

.text-theme-1-5 {
	color: var(--color-theme-1-5);
}

.text-theme-2 {
	color: var(--color-theme-2);
}

.text-theme-3 {
	color: var(--color-theme-3);
}

.text-theme-3-1 {
	color: var(--color-theme-3-1);
}

.text-color-red {
	color: var(--color-red);
}

.bg-theme-1-4 {
	background: var(--color-theme-1-4);
}

.bg-theme-1-5 {
	background: var(--color-theme-1-5);
}

.bg-theme-3 {
	background: var(--color-theme-3);
}

.bg-theme-3-1 {
	background: var(--color-theme-3-1);
}

.block-bg-white {
	position: relative;
	padding-block: var(--stack) calc(var(--stack) + 48px)!important;
	&::before {
		content: "";
		width: 100vw;
		height: 100%;
		background: #FFF;
		position: absolute;
		top: 0;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: -1;
	}
}

.block-bg-theme-1-1 {
	position: relative;
	&::before {
		content: "";
		width: 100vw;
		height: 100%;
		background: var(--color-theme-1-1);
		position: absolute;
		top: 0;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: -1;
	}
}

.block-bg-theme-1-4 {
	position: relative;
	&::before {
		content: "";
		width: 100vw;
		height: 100%;
		background: var(--color-theme-1-4);
		position: absolute;
		top: 0;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: -1;
	}
}

.bg-pattern-1 {
	position: relative;
	&::before {
		content: "";
		width: 100vw;
		height: 100%;
		background: url(img/bg-pattern01.png) left top / 90px;
		position: absolute;
		top: 0;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: -1;
	}
}

.block-sm {
	max-width: 736px;
	margin-inline: auto;
}

.block-md {
	max-width: 992px;
	margin-inline: auto;
}

a[href$=".pdf"] {
	display: inline-flex;
	gap: 8px;
	text-decoration: underline;
	&::before {
		content: "";
		display: inline-block;
		width: 18px;
		aspect-ratio: 18 / 22;
		background: url(img/icon-pdf@2x.png) center / cover;
	}
}

:where(b, strong, span, i, em, ::before, ::after):where(.editor-styles-wrapper *) {
	--font-size: calc((var(--fs) / 16) * 1rem);
	font-size: inherit;
}

.editor-styles-wrapper {
	--fs: 16;
	color: var(--color-body-1);
	font-size: var(--font-size);
}

h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
.is-style-h-2 {
	position: relative;
	--fs: 28;
	font-size: var(--font-size);
	font-weight: bold;
	color: #FFF;
	background: var(--color-theme-1);
	border-radius: 9999px;
	padding: 16px 40px;
	text-stroke: 4px #000;
	-webkit-text-stroke: 4px #000;
	paint-order: stroke fill;
	max-inline-size: max-content;
	margin-bottom: 52px;
	span {
		--fs: 24;
		font-size: var(--font-size);
	}
	&::after {
		content: "";
		width: 34px;
		aspect-ratio: 34 / 20;
		background: url(img/title-deco02.svg) center / cover;
		position: absolute;
		right: 0;
		bottom: 0;
		transform: translate(-48px,100%);
	}
}

@media(max-width: 767px) {
	h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
	.is-style-h-2 {
		--fs: 18;
		text-align: center;
		width: 100%;
		max-inline-size: none;
		padding: 8px 16px;
		margin-bottom: 28px;
		span {
			--fs: 18;
		}
	}
}

h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
.is-style-h-3 {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px;
	--fs: 24;
	font-size: var(--font-size);
	font-weight: bold;
	line-height: 1;
	margin-bottom: 24px;
	&::before {
		content: "";
		display: block;
		width: 24px;
		height: 24px;
		background: var(--color-theme-1-5);
		border-radius: 6px;
	}
}

*:not(h2,.is-style-h-2) + h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
*:not(h2,.is-style-h-2) + .is-style-h-3 {
	margin-top: 80px;
}

@media(max-width: 767px) {
	h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
	.is-style-h-3 {
		--fs: 20;	
		&::before {
			width: 20px;
			height: 20px;
		}
	}
	*:not(h2,.is-style-h-2) + h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
	*:not(h2,.is-style-h-2) + .is-style-h-3 {
		margin-top: 48px;
	}
}

h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
.is-style-h-4 {
	--fs: 18;
	font-size: var(--font-size);
	line-height: 1.6;
	font-weight: bold;
	background: var(--color-theme-1-1);
	border-radius: 8px;
	padding: 4px 16px;
	margin-bottom: 8px;
	&.short {
		border-radius: 32px;
		max-inline-size: max-content;
	}
}

* + h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
* + .is-style-h-4 {
	margin-top: 32px;
}

@media(max-width: 767px) {
	h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
	.is-style-h-4 {
		--fs: 16;	
	}
}

h5:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
.is-style-h-5 {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px;
	--fs: 16;
	font-size: var(--font-size);
	font-weight: bold;
	line-height: 1.6;
	margin-bottom: 0;
	&::before {
		content: "●";
		display: inline-block;
		color: var(--color-theme-1);
	}
}

* + h5:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
* + .is-style-h-5 {
	margin-top: 16px;
}

/*		table		*/

.wp-block-table:not([class*=is-style-table]) table,
.is-style-table-1 {
	--bs-border-color: var(--color-gray-1);
	max-width: 928px;
	width: 100%;
	margin-inline: auto;

	word-break: break-all;
}

.wp-block-table:not([class*=is-style-table]) thead,
.is-style-table-1 thead {
	border: none;
}

.wp-block-table:not([class*=is-style-table]) td,
.is-style-table-1 td,
.wp-block-table:not([class*=is-style-table]) th,
.is-style-table-1 th {
	text-align: center;
	background: #FFF;
	border: none;
	border-top: 1px solid var(--color-gray-1);
	border-bottom: 1px solid var(--color-gray-1);
	padding: 8px 16px;
	&:not(:first-child) {
		border-left: 1px solid var(--color-gray-1);
	}
	span {
		&.small {
			--fs: 12;
			font-size: var(--font-size);
			line-height: 1.2;
		}
		&.price {
			--fs: 20;
			font-size: var(--font-size);
			font-weight: bold;
		}
	}
}

.wp-block-table:not([class*=is-style-table]) thead th:first-child,
.is-style-table-1 thead th:first-child {
	text-align: left;
}

.wp-block-table:not([class*=is-style-table]) tbody :is(th:first-child,td:first-child),
.is-style-table-1 tbody :is(th:first-child,td:first-child) {
	text-align: left;
	white-space: nowrap;
}

.wp-block-table:not([class*=is-style-table]) td,
.is-style-table-1 td {
	vertical-align: baseline;
	span {
		&.red {
			color: #FFF;
			background: #E92503;
			display: inline-block;
			padding-inline: 8px;			
		}
		&.blue {
			color: #FFF;
			background: #3657AA;
			display: inline-block;
			padding-inline: 8px;
		}
		&.yellow {
			background: #F9C03B;
			display: inline-block;
			padding-inline: 8px;
		}
	}
}

.wp-block-table:not([class*=is-style-table]) th,
.is-style-table-1 th {
	font-weight: bold;
	background: var(--color-theme-4);
}

.scroll-hint-icon {
	top: calc(50% - 45px);
}

@media(max-width: 767px) {
	.js-scrollable {
		position: relative;
		overflow: scroll;
	}
	.wp-block-table:not([class*=is-style-table]).js-scrollable table,
	.js-scrollable .is-style-table-1 {
		min-width: 550px;
	}
	.wp-block-table:not([class*=is-style-table]) table,
	.is-style-table-1 {
		--fs: 13;
	}
	.wp-block-table:not([class*=is-style-table]) td,
	.is-style-table-1 td,
	.wp-block-table:not([class*=is-style-table]) th,
	.is-style-table-1 th {
		padding: 8px 8px;
		span {
			&.price {
				--fs: 18;
				font-size: var(--font-size);
				font-weight: bold;
			}
		}
	}
}

/*		button		*/
.wp-block-button:not([class*=is-style]) .wp-block-button__link,
.is-style-button-1 .wp-block-button__link {
	display: grid;
	grid-template-columns: 1fr 24px;
	align-items: center;
	gap: 16px;
	--fs: 20;
	font-size: var(--font-size);
	font-weight: bold;
	line-height: 1.2;
	color: var(--color-body-1);
	max-inline-size: max-content;
	background: var(--color-theme-2);
	border: 1px solid var(--color-body-1);
	border-radius: 999px;
	padding: 24px 32px;
	box-shadow: 4px 4px 0 var(--color-body-1);
	position: relative;
	top: 0;
	left: 0;
	transition: ease-out 0.1s;
	&::after {
		content: "";
		display: block;
		width: 24px;
		aspect-ratio: 1 / 1;
		background: url(img/icon-arrow-right_white.svg) no-repeat center / 10px,var(--color-body-1);
		border-radius: 50%;
		position: relative;
		transform: none;
		transition: ease-out 0.1s;
	}
	&:hover {
		opacity: 1;
		top: 4px;
		left: 4px;
		box-shadow: none;
		&::after {
			transform: translateX(12px);
		}
	}
	&[href^="#"] {
		&::after {
			transform: rotate(90deg);
		}
		&:hover {
			&::after {
				transform: translateX(12px) rotate(90deg);
			}
		}
	}
}

.wp-block-button:not([class*=is-style]).small .wp-block-button__link,
.is-style-button-1.small .wp-block-button__link {
	--fs: 16;
	line-height: 1.6;
	padding: 8px 32px;
}

@media(max-width: 767px) {
	.wp-block-button:not([class*=is-style]) .wp-block-button__link,
	.is-style-button-1 .wp-block-button__link {
		--fs: 14;
		gap: 12px;
		padding: 16px 24px;
	}
	.wp-block-button:not([class*=is-style]).small .wp-block-button__link,
	.is-style-button-1.small .wp-block-button__link {
		--fs: 14;
		padding: 8px 24px;
	}
}

/*		リスト		*/
ul.wp-block-list:not([class*=is-style]),
ul.is-style-list-1 {
	list-style: none;
	padding-left: 0;
	li { 
		text-indent: -.5em;
		margin-left: 1em;
		&::before {
			content: "・";
			display: inline-block;
		}
		> * {
			display: inline;
		}
	}
}

ol.wp-block-list:not([class*=is-style]),
ol.is-style-list-1 {
	counter-reset: listnum;
	list-style: none;
	padding-left: 0;
	li { 
		text-indent: -.5em;
		margin-left: 1em;
		&::before {
			counter-increment: listnum;
			content: counter(listnum)'.';
			display: inline-block;
			width: 0.5em;
		}
		> * {
			display: inline;
		}
	}
}

/*		休校日カレンダー		*/
.table-anchor-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin-bottom: 50px;
	.admin-table-anchor {
		text-decoration: none;
		color: #FFF;
		background: var(--color-theme-1);
		padding: 8px 20px;
        border-radius: 20px;
	}
}

.metabox-calendar {
	border-collapse: collapse;
	max-width: 800px;
	width: 100%;
	margin-bottom: 100px;
	margin-inline: auto;
	caption {
		--fs: 20;
		font-size: var(--font-size);
		font-weight: bold;
		margin-bottom: 20px;
	}
	th {
		border: 1px solid #000;
		padding: 5px;
		&.sun {
			color: #E92503;
		}
	}
	td {
		border: 1px solid;
		text-align: center;
		padding: 10px;
	}
	select {
		width: 100%;
		text-align: center;
		padding: 0 24px;
	}
}


.white-space-normal {
	white-space: normal!important;
}

.white-space-nowrap {
	white-space: nowrap
}