/*
Theme Name: 上山クリニック
Description:
Theme URI:
Author: スリーグッド鹿児島
Author URI:
Version:
License:
License URI:
*/

/* --------------------------
    variables
-------------------------- */
:root {
    --content-width: 1100px;
    --middle-width: 960px;
    --narrow-width: 800px;
    --wide-width: 1200px;
    --header-height: 80px;
    --header-height-sp: 60px;
    --color: #333;
    --color-beige-light: #eae7dc;
    --color-beige-pale: #f7f5eb;
    --color-beige: #b3b5a1;
    --color-olive: #505636;
    --color-green: #22b573;
    --color-green-light: #c3edd7;
    --color-pink: #ed1064;
    --line-height: 1.75;
    --font-size: 16px;
    --font-size-sp: 14px;
    --letter-spacing: 0.1em;
    --font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', 'YuGothic', 'ヒラギノ角ゴシック ProN W3', 'Hiragino Kaku Gothic ProN', 'Meiryo UI', 'ＭＳ Ｐゴシック', sans-serif;
    --display-font: 'Marcellus', '游明朝', 'YuMincho', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'HG明朝E', 'ＭＳ Ｐ明朝', 'ＭＳ 明朝', serif;
    --serif-font: '游明朝', 'YuMincho', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'HG明朝E', 'ＭＳ Ｐ明朝', 'ＭＳ 明朝', serif;
    --font-awesome: 'Font Awesome 6 Free';
	--page-header-bg: url(/wp-content/uploads/2025/07/page-header.webp);
    --icon-arrow-white: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDQ4IDY0Ij4KICA8ZGVmcz4KICAgIDxzdHlsZT4KICAgICAgLnN0MCB7CiAgICAgICAgZmlsbDogI2ZmZjsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPHBhdGggY2xhc3M9InN0MCIgZD0iTTExLjQ2OSw2My4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4MSwzLjgyOS0xMC44OTMsNi4zNTktLjcxMi42MTktMS4yODgsMS40MTMtMi4wNTEsMS45NzhaIi8+Cjwvc3ZnPg==);	
}

/* --------------------------
    reset
-------------------------- */
* {
    margin: 0;
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
	background-color: var(--color-beige-pale);
    font-feature-settings: 'palt';
    overflow-wrap: anywhere;
    line-break: strict;
	-webkit-text-size-adjust: 100%;
    font-size: var(--font-size);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
	color: var(--color-olive);
    font-family: var(--font-family);
    font-weight: 400;
    min-height: 100vh;
}

main {
    display: block;
}

img {
    display: block;
    max-width: 100%;
}

input[type="image"],
video,
embed,
iframe,
marquee,
object {
    display: block;
    max-width: 100%;
    aspect-ratio: attr(width) / attr(height);
}

table {
    max-width: 100%;
    aspect-ratio: attr(width) / attr(height);
}

a {
    color: inherit;
    text-decoration: none;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.75rem;
}

h6 {
    font-size: 0.75rem;
    font-weight: 500;
}

table {
    border-spacing: 0;
}

@media (max-width: 768px) {
    body {
        font-size: var(--font-size-sp);
    }
}

/* --------------------------
    common
-------------------------- */
.content-width {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.narrow-width {
    width: 100%;
    max-width: var(--narrow-width);
    margin: 0 auto;
}

.middle-width {
    width: 100%;
    max-width: var(--middle-width);
    margin: 0 auto;
}

.wide-width {
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto;
}

.section-padding {
    padding: 4em 1em;
}

.section-padding-low {
    padding: 2em 1em;
}

.section-padding-full {
    padding: 4em 0;
}

.clearfix {
    clear: both;
}

.heading {
	display: flex;
	align-items: center;
	align-self: flex-start;
	font-family: var(--display-font);
	font-weight: 400;
	font-size: clamp(1em, 2vw, 1.5em);
	padding-top: 2.25em;
	margin-bottom: 1em;
	position: relative;
}

.heading.center {
    justify-content: center;
    flex-flow: column-reverse;
}

.heading:before {
	content: '';
	display: block;
	width: 0.75em;
	aspect-ratio: 1 / 1;
	background-image: var(--ornament1);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	margin-right: 0.5em;
}

.heading:after {
	content: attr(data-text);
	display: block;
	width: 100%;
	font-size: 2em;
	line-height: 1.25;
	position: absolute;
	top: 0;
	left: 0;
}

.heading.center:after {
	text-align: center;
}

.button-wrap {
	margin-top: 2em;
}

.button {
	text-decoration: underline;
	padding-right: 3em;
	position: relative;
}

.button:before {
	content: '';
	display: block;
	width: 2em;
	height: 2em;
	background-color: var(--color-green);
	background-image: var(--icon-arrow-white);
	background-size: 20% auto;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0.25em;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.sub-heading {
	font-family: var(--serif-font);
    font-size: 1.25em;
    font-weight: 400;
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

.sub-heading:after {
    content: '';
    display: block;
    width: 100%;
    border-top: 1px solid var(--color-beige);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.sub-heading > span {
	display: inline-flex;
	align-items: center;
	padding-right: 1em;
	background-color: var(--color-beige-light);
	position: relative;
}

.sub-heading.pale > span {
	background-color: var(--color-beige-pale);
}

.sub-heading > span:before {
    content: '';
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background-color: var(--color-green);
    margin-right: 1em;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2em 1em;
    }

    .section-padding-low {
        padding: 1em;
    }
    
    .section-padding-full {
        padding: 2em 0;
    }

	.heading {
	    justify-content: center;
    	flex-flow: column-reverse;
	}
	.heading:after {
    	text-align: center;
	}
}


/* --------------------------
    header
-------------------------- */
/* header */
header {
	display: flex;
	align-items: center;
	width: 100%;
	height: var(--header-height);
	padding: 0 1rem;
	position: absolute;
	left: 0;
	z-index: 254;
}

#header-logo {
	width: auto;
	height: 100%;
	background-color: var(--color-beige-pale);
	padding: 0 1rem 1rem 0;
	margin-right: 2rem;
	border-radius: 0 0 1rem 0;
	position: relative;
}

#header-logo > span:first-of-type {
	width: 1rem;
	height: 1rem;
	overflow: hidden;
	position: absolute;
	top: 0;
	right: 0;
	transform: translateX(100%);
}

#header-logo > span:first-of-type:before {
	content: '';
	display: block;
	width: 200%;
	height: 200%;
	border-radius: 50%;
	background-color: transparent;
	box-shadow: 0 0 1rem 1rem var(--color-beige-pale);
	position: absolute;
	top: 0;
	left: 0;
}

#header-logo > span:last-of-type {
	width: 1rem;
	height: 1rem;
	overflow: hidden;
	position: absolute;
	bottom: 0;
	left: 0;
	transform: translateY(100%);
}

#header-logo > span:last-of-type:before {
	content: '';
	display: block;
	width: 200%;
	height: 200%;
	border-radius: 50%;
	background-color: transparent;
	box-shadow: 0 0 1rem 1rem var(--color-beige-pale);
	position: absolute;
	top: 0;
	left: 0;
}

#header-logo > img {
	width: auto;
	height: 100%;
}

#header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: calc(100% - 240px - 2rem);
}

#header-content > h1 {
	color: #fff;
	font-size: 10px;
	font-weight: 500;
}

#header-content-right {
	display: flex;
	align-items: center;
}

#header-contact {
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: center;
	height: calc(var(--header-height) - 1rem);
	border-radius: calc((var(--header-height) - 1rem) / 2);
	background-color: var(--color-green);
	color: #fff;
	padding: 0 2rem;
	margin-right: 0.5rem;
}

#header-contact > div:first-of-type {
	line-height: 1.25;
	font-family: var(--display-font);
}

#header-contact > div > i {
	margin-right: 0.25em;
}

#header-contact > div:last-of-type {
	font-size: 10px;
}

#header-menu-wrap {
	width: 100%;
}

#header-menu-wrap > span {
    margin-top: -2rem;
	position: absolute;
	left: 50%;
	z-index: 253;
	transform: translate(-50%, -100%);
}

#header-menu-wrap.fixed > span {
	margin-top: 0;
	position: fixed;
	top: 1em;
	transform: translate(-50%, 0);
}

#header-menu-wrap > span > span:first-of-type {
	width: 1rem;
	height: 1rem;
	overflow: hidden;
	position: absolute;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
}

#header-menu-wrap > span > span:first-of-type:before {
	content: '';
	display: block;
	width: 200%;
	height: 200%;
	border-radius: 50%;
	background-color: transparent;
	box-shadow: 0 0 1rem 1rem var(--color-beige-pale);
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(-50%, -50%);
}

#header-menu-wrap > span > span:last-of-type {
	width: 1rem;
	height: 1rem;
	overflow: hidden;
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translateX(100%);
}

#header-menu-wrap > span > span:last-of-type:before {
	content: '';
	display: block;
	width: 200%;
	height: 200%;
	border-radius: 50%;
	background-color: transparent;
	box-shadow: 0 0 1rem 1rem var(--color-beige-pale);
	position: absolute;
	top: 0;
	left: 0;
	transform: translate(0, -50%);
}

#header-menu-wrap.fixed > span > span {
	display: none;
}

#header-menu {
	list-style-type: none;
	display: flex;
	background-color: var(--color-beige-pale);
	font-size: 1em;
	padding: 1em 3em;
	border-radius: 1rem 1rem 0 0;
	font-weight: 600;
	white-space: nowrap;
}

#header-menu-wrap.fixed #header-menu {
	background-color: #fff;
	box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
	border-radius: 1rem;
}

#header-menu > li {
	position: relative;
	transition: all 0.2s ease;
}

#header-menu > li + li {
	margin-left: 1.5em;
}

#header-menu > li:hover {
	color: var(--color-green);
	transition: all 0.2s ease;
}

#header-menu > li:before {
	content: '';
	display: block;
	width: 0.35em;
	height: 0.35em;
	border-radius: 50%;
	background-color: var(--color-green);
	opacity: 0;
	position: absolute;
	left: 50%;
	bottom: -1em;
	transform: translateX(-50%);
	transition: all 0.2s ease;
}

#header-menu > li:hover:before {
	opacity: 1;
	bottom: -0.5em;
	transition: all 0.2s ease;
}

@media (max-width: 1100px) {
	#header-menu-wrap {
		display: none;
	}
}

@media (max-width: 968px) {
	header {
		height: var(--header-height-sp);
	}

	#header-content {
		width: calc(100% - 140px - 2rem);
		justify-content: flex-end;
	}

	#header-content > h1 {
		display: none;
	}

	#header-contact {
    	height: calc(var(--header-height-sp) - 1rem);
	    border-radius: calc((var(--header-height-sp) - 1rem) / 2);
	}

	#header-contact > div:last-of-type {
		display: none;
	}

}

@media (max-width: 768px) {
	#header-contact {
		display: none;
	}
}

/* drawer */
#drawer {
	display: none;
	height: var(--header-height-sp);
	pointer-events: none;
}

#drawer-toggle {
	width: var(--header-height-sp);
	background-color: var(--color-green);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	position: fixed;
	top: auto;
	right: auto;
	z-index: 1;
	pointer-events: auto;
	transition: all 0.3s ease;
}

header.fixed #drawer-toggle {
	width: var(--header-height-sp);
	transition: all 0.3s ease;
}

#drawer-toggle > span {
	display: block;
	width: 50%;
	border-top: 1px solid #fff;
	position: absolute;
	top: 50%;
	left: 25%;
	transform: translateY(-50%);
	transition: all 0.2s ease;
}

#drawer-toggle:before {
	content: '';
	display: block;
	width: 50%;
	border-top: 1px solid #fff;
	position: absolute;
	top: 35%;
	left: 25%;
	transition: all 0.2s ease;
}

#drawer-toggle:after {
	content: '';
	display: block;
	width: 50%;
	border-top: 1px solid #fff;
	position: absolute;
	bottom: 35%;
	right: 25%;
	transition: all 0.2s ease;
}

#drawer-flag {
	display: none;
}

#drawer-flag:checked + #drawer-toggle > span {
	opacity: 0;
	transition: all 0.5s ease;
}

#drawer-flag:checked + #drawer-toggle:before {
	top: calc(50% - 0.5px);
	transform: rotate(30deg);
	transition: all 0.5s ease;
}

#drawer-flag:checked + #drawer-toggle:after {
	bottom: calc(50% - 0.5px);
	transform: rotate(-30deg);
	transition: all 0.5s ease;
}

#drawer-content {
	opacity: 0;
	pointer-events: none;
	height: 100vh;
	overflow: auto;
	position: relative;
	transition: all 0.5s ease;
}

#drawer-flag:checked ~ #drawer-content {
	opacity: 1;
	pointer-events: auto;
	transition: all 0.5s ease;
}

#drawer-content:before {
	content: '';
	display: block;
	width: 100%;
	background-color: #fff;
	height: 100svh;
	position: fixed;
	top: 0;
	left: 0;
	transition: all 0.5s ease;
}

#drawer-flag:checked ~ #drawer-content:before {
	transition: all 0.5s ease;
}

#drawer-content > div:first-of-type {
	width: 100%;
	height: 100vh;
	background-color: #fff;
	padding-top: var(--header-height-sp);
	overflow-y: scroll;
	position: fixed;
	left: 0;
}

#mobile-menu {
	list-style-type: none;
	color: var(--color);
	font-size: 1em;
	border-top: 1px solid var(--color-beige-light);
	border-bottom: 1px solid var(--color-beige-light);
}

#mobile-menu > li > a {
	display: block;
	padding: 1em 3em 1em 2em;
	font-size: clamp(1em, 2vw, 1.5em);
	position: relative;
}

#mobile-menu > li + li {
	border-top: 1px solid var(--color-beige-light);
}

#mobile-menu > li > a:hover {
	background-color: var(--color-beige-pale);
}

#mobile-menu > li  > a:before {
	content: '';
	display: block;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 4px solid var(--color);
	position: absolute;
	right: 1.5em;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 1100px) {
	#drawer {
		display: block;
		width: var(--header-height-sp);
		height: var(--header-height-sp);
	}

	#drawer-toggle {
		width: var(--header-height-sp);
		transition: all 0.3s ease;
	}
}

@media (max-width: 968px) {
	#drawer-toggle,
	header.fixed #drawer-toggle {
		width: calc(var(--header-height-sp) - 1rem);
		height: calc(var(--header-height-sp) - 1rem);
		margin: 0.5rem;
	}
}


/* --------------------------
    footer
-------------------------- */
footer {
	background-color: #fff;
	border-top: 0.5rem solid var(--color-green);
	font-size: 0.875em;
	position: relative;
}

footer > div:first-of-type {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

footer > div:first-of-type > div {
	display: flex;
	flex-flow: column;
	width: calc(100% / 3 - 1em);
}

.footer-logo {
	display: inline-block;
	margin-bottom: 1em;
}

.footer-logo > img {
	width: 100%;
	max-width: 240px;
}

footer > div:first-of-type > div > div {
	margin-bottom: 1em;
}

footer > div:first-of-type > div > dl {
	display: flex;
	flex-wrap: wrap;
}

footer > div:first-of-type > div > dl > dt {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 4rem;
	background-color: var(--color-green);
	border-radius: 0.5em;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 0.25rem 1rem;
	margin-right: 1rem;
}

footer > div:first-of-type > div > dl > dd {
	width: calc(100% - 5rem);
}

footer > div:first-of-type > ul {
	width: calc(100% / 3 * 2 - 1em);
}

#footer-menu {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
}

#footer-menu li {
	padding-left: 2.5em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	position: relative;
}

#footer-menu li:not(:last-of-type) {
	margin-right: 2em;
}

#footer-menu li:before {
    content: '';
    display: block;
    width: 1.5em;
    height: 1.5em;
    background-color: var(--color-green);
    background-image: var(--icon-arrow-white);
    background-size: 20% auto;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.25em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#footer-menu li > a {
	text-decoration: underline;
}

#pageup {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 3em;
	height: 3em;
	background-color: var(--color-green);
	color: #fff;
	border-radius: 0.5rem 0.5rem 0 0;
	letter-spacing: 0;
	position: absolute;
	right: 3em;
	top: 0;
	transform: translateY(-100%);
}

#pageup > span:first-of-type {
    width: 0.5rem;
    height: 0.5rem;
    overflow: hidden;
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    transform: translateX(-100%);
}

#pageup > span:first-of-type:before {
    content: '';
    display: block;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 0.5rem 0.5rem var(--color-green);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

#pageup > span:last-of-type {
    width: 0.5rem;
    height: 0.5rem;
    overflow: hidden;
    position: absolute;
    bottom: 0.5rem;
    right: 0;
    transform: translateX(100%);
}

#pageup > span:last-of-type:before {
    content: '';
    display: block;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 0.5rem 0.5rem var(--color-green);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0, -50%);
}

#copyright {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 3em;
	font-size: 0.75em;
	color: #888;
	border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
	footer > div:first-of-type {
		flex-flow: column;
		align-items: center;
	}

	footer > div:first-of-type > div {
		width: 100%;
		align-items: center;
	}

	footer > div:first-of-type > ul {
		width: 100%;
		margin-top: 2em;
	}

	#footer-menu {
		display: inline-flex;
		flex-flow: column;
		width: auto;
	}

	#footer-menu li:not(:last-of-type) {
    	margin-right: unset;
	}

	.footer-logo > img {
		max-width: 200px;
	}
}


/* --------------------------
    archive
-------------------------- */
/* archive */
.archive-list {
    list-style-type: none;
}

.archive-list > li {
    padding: 1rem 0;
}

.archive-list > li:first-of-type {
    padding-top: 0;
}

.archive-list > li + li {
    border-top: 1px solid #ddd;
}

.archive-list > li > a {
    display: block;
}

.archive-list > li > a > article {
    display: flex;
    align-items: center;
}

.archive-list > li > a > article > .thumb {
    width: 30%;
    padding-top: 20%;
    background-color: #eee;
	border-radius: clamp(0.5rem, 2vw, 1rem);
	overflow: hidden;
    margin-right: 2em;
    position: relative;
}

.archive-list > li > a > article > .thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.archive-list > li > a > article > .info {
    width: calc(70% - 2em);
}

.archive-list > li > a > article > .info > time {
    display: block;
	font-family: var(--display-font);
    font-size: 1em;
    margin-bottom: 0.5em;
}

.archive-list > li > a > article > .info > .category {
    margin-bottom: 0.5em;
}

.archive-list > li > a > article > .info > .category > span {
    display: inline-block;
    font-size: 10px;
    padding: 0.25lh 1lh;
    margin: 0 0.5em 0.5em 0;
    background-color: var(--color-green-light);
    color: var(--color-green);
	font-weight: 500;
	border-radius: 0.75lh;
}

.archive-list > li > a > article > .info > h3 {
	font-family: var(--serif-font);
	font-weight: 500;
    font-size: clamp(1em, 2vw, 1.25em);
    margin-bottom: 0.5em;
}

.archive-list > li > a > article > .info > p {
    font-size: 0.875em;
    margin-top: 1em;
}

@media (max-width: 768px) {
    .archive-list > li > a > article {
        flex-flow: column;
    }
    
    .archive-list > li > a > article > .info {
        width: 100%;
    }
    
    .archive-list > li > a > article > .thumb {
        width: 100%;
        padding-top: calc(100% / 3 * 2);
        margin-right: 0;
        margin-bottom: 1em;
    }
}

/* archive pagination */
#pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

#pagination > * {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    letter-spacing: 0;
    min-width: 3em;
    height: 3em;
    background: var(--color-green-light);
    color: var(--color-green);
	border-radius: 0.5em;
    margin: 0 0.5em;
    transition: all 0.3s ease;
}

#pagination > span,
#pagination > a:hover {
    background: var(--color-green);
    color: #fff;
    transition: all 0.3s ease;
}


/* --------------------------
    single
-------------------------- */
/* single */
#single-date {
    display: block;
	font-family: var(--display-font);
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 2em;
}

.single-content *:not(.plain):not(h1, h2, h3, h4, h5, h6) + *:not(.plain):is(h1, h2, h3, h4, h5, h6) {
	margin-top: 3em;
}

.single-content h1:not(.plain),
.single-content h2:not(.plain) {
	background-color: #fff;
	padding: 0.5em 1em;
	border-top: 0.125em solid var(--color-green);
	border-radius: 0 0 0.25em 0.25em;
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: clamp(1.25em, 3vw, 1.75em);
    margin-bottom: 1em;
}

.single-content h3:not(.plain) {
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: clamp(1.125em, 2.5vw, 1.5em);
	padding-left: 1.75em;
    margin-bottom: 1em;
	position: relative;
}

.single-content h3:not(.plain):before {
	content: '';
	display: block;
	width: 1em;
	height: 1em;
	background-image: var(--ornament1);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	position: absolute;
	top: calc((1lh - 1em) / 2);
	left: 0;
}

.single-content h4:not(.plain) {
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: clamp(1em, 2vw, 1.25em);
	padding-left: 1em;
    margin-bottom: 1em;
	position: relative;
}

.single-content h4:not(.plain):before {
	content: '';
	display: block;
	width: 0.5em;
	height: 0.5em;
	background-color: var(--color-green);
	border-radius: 50%;
	position: absolute;
	top: calc((1lh - 0.5em) / 2);
	left: 0;
}

.single-content h5:not(.plain) {
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: 1em;
    margin-bottom: 1em;
}

.single-content h6:not(.plain) {
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: 1em;
    margin-bottom: 1em;
}

.single-content hr:not(.plain) {
    display: block;
    border: none;
    border-top: 1px solid #aaa;
    margin: 4em 0;
}

.single-content ul:not(.plain) {
	list-style-type: none;
    background-color: #fff;
	border-radius: 0.5em;
    padding: 2em;
    margin-bottom: 3em;
}

.single-content ol:not(.plain) {
    background-color: #fff;
	border-radius: 0.5em;
    padding: 2em 2em 2em 3em;
    margin-bottom: 3em;
}

.single-content ul:not(.plain) > li + li,
.single-content ol:not(.plain) > li + li {
    margin-top: 0.5em;
}

.single-content ul:not(.plain) li {
	padding-left: 1.5em;
	position: relative;
}

.single-content ul:not(.plain) li:before {
	content: '';
	display: block;
	width: 0.5em;
	height: 0.5em;
	background-color: var(--color-green);
	border-radius: 50%;
	position: absolute;
	top: calc((1lh - 0.5em) / 2);
	left: 0;
}

.single-content *:is(ol,ul):not(.plain) *:is(ol,ul) {
	padding: 0;
	margin-bottom: 0;
}

.single-content blockquote:not(.plain) {
    background-color: #fff;
	border-radius: 0.5em;
    padding: 2em;
    margin-bottom: 2em;
}

.single-content p:not(.plain) {
    text-align: justify;
    margin-bottom: 1em;
}

.single-content dl:not(.plain) {
    display: flex;
    flex-wrap: wrap;
	border-radius: 0.5em;
	overflow: hidden;
    margin-bottom: 3em;
}

.single-content dl:not(.plain) > dt {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    background-color: var(--color-green);
	color: #fff;
    padding: 1em 2em;
    font-weight: 700;
}

.single-content dl:not(.plain) > dd {
    width: 70%;
    background-color: #fff;
    padding: 1em 2em;
}

.single-content dl:not(.plain) > *:is(dt,dd):not(:last-of-type) {
	margin-bottom: 2px;
}

.single-content img:not(.plain) {
    height: auto;
    margin-bottom: 2em;
}

.single-content img:not(.plain).alignleft {
    float: left;
    margin: 0 2em 2em 0;
}

.single-content img:not(.plain).alignright {
    float: right;
    margin: 0 0 2em 2em;
}

.single-content img:not(.plain).aligncenter {
    margin: 0 auto 2em auto;
}

.single-content a:not(.plain) {
    text-decoration: underline;
}

.single-content a:not(.plain):hover {
    text-decoration: none;
    opacity: 0.7;
}

.single-content a:not(.plain)[target="_blank"]:after {
	content: ' \f08e';
	font-family: var(--font-awesome);
	font-weight: 600;
	font-size: 0.75em;
	vertical-align: bottom;
}

.single-content small:not(.plain) {
    font-size: 0.75em;
}

.single-content strong:not(.plain) {
    color: var(--color-pink);
}

@media (max-width: 768px) {
	.single-content h1:not(.plain),
	.single-content h2:not(.plain) {
	}
	
	.single-content h3:not(.plain) {
	}
	
	.single-content hr:not(.plain) {
		margin: 2em 0;
	}

	.single-content ul:not(.plain) {
		padding: 1em 1em 1em 2em;
	}
	
	.single-content ol:not(.plain) {
		padding: 1em 1em 1em 3em;
	}
	
	.single-content blockquote:not(.plain) {
		padding: 1em;
	}
	
	.single-content dl:not(.plain) {
		flex-flow: column;
	}
	
	.single-content dl:not(.plain) > dt {
		width: 100%;
		padding: 1em;
	}
	
	.single-content dl:not(.plain) > dd {
		width: 100%;
		padding: 1em;
	}

	.single-content img.aligncenter:not(.plain),
	.single-content img.alignleft:not(.plain),
	.single-content img.alignright:not(.plain) {
		float: none;
		margin: 0 auto 2em auto;
	}
}

/* single pagination */
#single-pagination {
    list-style-type: none;
    display: flex;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    padding: 1rem 0;
    margin-top: 2rem;
}

#single-pagination > li {
    width: 50%;
}

#single-pagination > li + li {
    border-left: 1px solid #aaa;
}

#single-pagination > li > a {
    display: block;
    color: var(--main-color);
    padding: 1rem 3rem;
    position: relative;
}

#single-pagination > li:first-of-type > a:before {
    content: '';
    display: block;
    border-top: 0.3rem solid transparent;
    border-left: 0.3rem solid transparent;
    border-right: 0.3rem solid var(--color);
    border-bottom: 0.3rem solid transparent;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#single-pagination > li:last-of-type > a:before {
    content: '';
    display: block;
    border-top: 0.3rem solid transparent;
    border-left: 0.3rem solid var(--color);
    border-right: 0.3rem solid transparent;
    border-bottom: 0.3rem solid transparent;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    #single-pagination {
        flex-flow: column;
        padding: 0;
    }

    #single-pagination > li {
        width: 100%;
    }

    #single-pagination > li + li {
        border-left: none;
    }

    #single-pagination > li:first-of-type:empty {
        border-top: 2px solid #ddd;
    }
}


/* --------------------------
    page
-------------------------- */
#page-header {
	width: calc(100% - 2rem);
	min-height: calc(250px + var(--header-height) + 4rem);
	border-radius: 1rem;
	margin: 1rem auto 2rem auto;
	position: relative;
	z-index: 1;
}

#page-header:before {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-image: var(--page-header-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(0.7);
	background-color: #ddd;
	border-radius: 1rem;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

#page-header > div {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	min-height: calc(250px + var(--header-height) + 4rem);
	padding: calc(var(--header-height) + 1rem) 1rem 4rem 1rem;
	color: #fff;
}

#page-header > div > h2 {
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: clamp(1.25em, 4vw, 2.5em);
	line-height: 1.5;
	text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.5), 0 0 0.1em rgba(0, 0, 0, 0.3);
}

#breadcrumb {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.75em;
	margin-top: 1em;
	text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.5), 0 0 0.1em rgba(0, 0, 0, 0.3);
}

#breadcrumb > li {
	position: relative;
}

#breadcrumb > li + li {
	display: flex;
	align-items: center;
}

#breadcrumb > li + li:before {
    content: '';
    display: block;
    width: 1em;
    height: 1em;
    background-color: var(--color-green);
    background-image: var(--icon-arrow-white);
    background-size: 33% auto;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.25em;
	margin: 0 1em;
}

@media (max-width: 968px) {
	#page-header {
		min-height: calc(150px + var(--header-height-sp));
	}

	#page-header > div {
		min-height: calc(150px + var(--header-height-sp));
		padding: calc(var(--header-height-sp) + 1rem) 1rem 1rem 1rem;
	}
}


/* --------------------------
    top
-------------------------- */
#top-main-banner {
	width: 100%;
	height: 100vh;
	position: relative;
}

#top-main-banner > h2 {
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: clamp(1.5em, 4vw, 3.5em);
	line-height: 1.25;
	color: #fff;
	position: absolute;
	left: 1.5em;
	bottom: calc(1.5em + 4rem);
	z-index: 1;
}

#top-main-slider {
	width: calc(100% - 2rem);
	height: calc(100vh - 2rem);
	background-color: #ddd;
	border-radius: 1rem;
	overflow: hidden;
	margin: 1rem;
	filter: brightness(0.9);
}

#top-main-slider .swiper-slide {
	width: calc(100% - 2rem);
	height: calc(100vh - 2rem);
}

#top-main-slider .swiper-slide > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 1100px) {
	#top-main-banner {
		width: 100%;
		height: 100vw;
	}

	#top-main-slider {
		width: calc(100% - 2rem);
		height: calc(100vw - 2rem);
	}

	#top-main-slider .swiper-slide {
		width: calc(100% - 2rem);
		height: calc(100vw - 2rem);
	}

	#top-main-banner > h2 {
		font-size: clamp(1.5em, 5vw, 4em);
		bottom: 2.5em;
	}
}

#top-news {
	background-color: var(--color-beige-pale);
}

#top-news > div {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-auto-rows: auto auto;
}

#top-news > div > .heading {
	grid-column: 1;
	grid-row: 1;
	align-self: flex-start;
    align-items: center;
}

#top-news > div > div {
	grid-column: 1;
	grid-row: 2;
}

#top-news-list {
	list-style-type: none;
	grid-column: 2;
	grid-row: 1 / span 2;
}

#top-news-list > li + li {
	margin-top: 0.25em;
}

#top-news-list > li > a > article {
	display: flex;
	align-items: center;
	background-color: #fff;
	padding: 1em 4em 1em 2em;
	border-radius: 0.5em;
	position: relative;
}

#top-news-list > li > a > article:before {
	content: '';
	display: block;
	width: 2em;
	height: 2em;
	background-color: var(--color-green);
	background-image: var(--icon-arrow-white);
	background-size: 20% auto;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0.25em;
	position: absolute;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
}

#top-news-list > li > a > article > time {
	width: 7em;
	font-family: var(--display-font);
	margin-right: 1em;
}

#top-news-list > li > a > article > .category {
	display: flex;
	flex-flow: column;
	width: 7em;
	margin-right: 1em;
}

#top-news-list > li > a > article > .category > span {
	display: block;
	width: 100%;
	background-color: var(--color-green-light);
	color: var(--color-green);
	font-size: 0.75em;
	padding: 0.5lh 1lh;
	line-height: 1;
	border-radius: 2lh;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#top-news-list > li > a > article > .category > span + span {
	margin-top: 0.5em;
}

#top-news-list > li > a > article > h3 {
	width: calc(100% - 16em);
	font-size: 1em;
	font-weight: 400;
}

@media (max-width: 768px) {
	#top-news > div {
		display: block;
		padding-top: 0;
	}

	#top-news > div > div {
		text-align: center;
		margin-top: 2em;
	}

	#top-news-list > li > a > article {
		flex-wrap: wrap;
	}

	#top-news-list > li > a > article > h3 {
		width: 100%;
	}
}

#top-consultation {
	background-color: var(--color-beige-light);
}

#top-consultation-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1em;
	font-weight: 400;
	position: relative;
	z-index: 1;
	margin-bottom: 1em;
}

#top-consultation-heading:after {
	content: '';
	display: block;
	width: 100%;
	border-top: 1px solid var(--color-beige);
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: -1;
}

#top-consultation-heading > span {
	background-color: var(--color-beige-light);
	position: relative;
}

#top-consultation-heading > span:first-of-type {
	display: flex;
	align-items: center;
	padding-right: 1em;
	font-size: 1.25em;
	font-family: var(--serif-font);
	font-weight: 400;
}

#top-consultation-heading > span:first-of-type:before {
	content: '';
	display: block;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background-color: var(--color-green);
	margin-right: 1em;
}

#top-consultation-heading > span:last-of-type {
	padding-left: 1em;
	margin-left: 2em;
}

#department-list {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	font-size: 1.125em;
}

#department-list > li + li:before {
	content: '/';
	margin: 0 0.5em;
}

#top-consultation-table {
	display: table;
	width: 100%;
	border-radius: 0.5rem;
	overflow: hidden;
	font-size: clamp(10px, 2vw, 1em);
	letter-spacing: 0;
}

#top-consultation-table > thead > tr > th {
	background-color: var(--color-green);
	color: #fff;
}

#top-consultation-table > * > tr > * + * {
	border-left: 2px solid var(--color-beige-light);
}

#top-consultation-table > * > tr + tr > * {
	border-top: 2px solid var(--color-beige-light);
}

#top-consultation-table > tbody > tr > * {
	background-color: #fff;
}

#top-consultation-table > tbody > tr > td {
	text-align: center;
}

#top-consultation-table th,
#top-consultation-table td {
	padding: 0.75em 1em;
}

#top-consultation-table td.pink {
	color: var(--color-pink);
}

#top-consultation-remark-list {
	list-style-type: none;
	font-size: 0.875em;
	margin-top: 1em;
}

#top-consultation-remark-list > li {
	padding-left: 1em;
	position: relative;
}

#top-consultation-remark-list > li:before {
	content: '※';
	position: absolute;
	top: 0;
	left: 0;
}

#top-consultation > div > .sub-heading:not(:first-of-type) {
	margin-top: 2em;
}

#top-consultation > div > ul:not(:first-of-type) {
	padding-left: 1em;
}

#top-consultation > div > ul strong {
	color: var(--color-pink);
}

#top-consultation > div > p {
	margin-bottom: 1em;
}

@media (max-width: 768px) {
	#top-consultation-heading {
		flex-flow: column;
		align-items: flex-start;
	}

	#top-consultation-heading:after {
		top: 0.5lh;
	}

	#top-consultation-heading > span:last-of-type {
		padding: 0;
		margin-left: 1.5em;
	}
}

#top-greeting > div {
	display: grid;
	grid-template-columns: 0.75fr 1.25fr;
	grid-template-rows: 0fr 1fr auto;
	grid-gap: 2em;
}

#top-greeting > div > .heading {
	margin-bottom: unset;
}

#top-greeting > div > figure {
	grid-column: 1 / span 1;
	grid-row: 1 / span 2;
	aspect-ratio: 3 / 4;
	background-color: #ddd;
	border-radius: 0.5em;
	overflow: hidden;
}

#top-greeting > div > figure > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#top-greeting > div > .info {
	grid-column: 2 / span 1;
	grid-row: 2 / span 1;
}

#top-greeting > div > .info > .name {
	font-size: 1.5em;
	font-weight: 600;
	margin-bottom: 1.5em;
}

#top-greeting > div > .info > .name > span {
	font-size: 0.75em;
	margin-right: 1em;
}

#top-greeting > div > .info > ul {
	padding-left: 1em;
}

#top-greeting > div > .text {
	grid-column: 1 / span 2;
}

#top-greeting > div > .text > p {
	text-indent: 1em;
}

@media (max-width: 768px) {
	#top-greeting > div {
		display: block;
	}

	#top-greeting > div > .heading {
		margin-bottom: 1em;
	}

	#top-greeting > div > figure {
		max-width: 480px;
		width: calc(100% / 3 * 2);
		margin: 0 auto 1em auto;
	}

	#top-greeting > div > .info > .name {
		text-align: center;
	}

	#top-greeting > div > .text {
		margin-top: 2em;
	}
}

#top-philosophy-policy {
	background-color: var(--color-beige-light);
}

#top-philosophy-policy > div > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#top-philosophy-policy > div > div + div {
	margin-top: 4em;
}

#top-philosophy-policy > div > div:nth-of-type(even) {
	flex-flow: row-reverse;
}

#top-philosophy-policy > div > div > figure {
	width: 45%;
	aspect-ratio: 3 / 2;
	background-color: #ddd;
	overflow: hidden;
}

#top-philosophy-policy > div > div:nth-of-type(odd) > figure {
	border-radius: 0 1em 1em 0;
}

#top-philosophy-policy > div > div:nth-of-type(even) > figure {
	border-radius: 1em 0 0 1em
}

#top-philosophy-policy > div > div > figure > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#top-philosophy-policy > div > div > div {
	width: 55%;
	padding: 0 2em;
}

#top-philosophy-policy > div > div > div > h3 {
	text-align: center;
	word-break: keep-all;
	font-family: var(--serif-font);
	font-weight: 500;
	font-size: clamp(1.25em, 2vw, 1.75em);
	letter-spacing: 0.1em;
}

#top-philosophy-policy > div > div > div > p {
	text-align: justify;
	text-justify: inter-ideograph;
	max-width: 480px;
	margin: 2em auto 0 auto;
}

@media (max-width: 768px) {
	#top-philosophy-policy > div > div,
	#top-philosophy-policy > div > div:nth-of-type(even) {
		flex-flow: column;
	}

	#top-philosophy-policy > div > div > figure {
		width: calc(100% - 2em);
		margin-bottom: 2em;
	}

	#top-philosophy-policy > div > div:nth-of-type(odd) > figure {
		margin-right: auto;
	}

	#top-philosophy-policy > div > div:nth-of-type(even) > figure {
		margin-left: auto;
	}

	#top-philosophy-policy > div > div > div {
		width: 100%;
	}
}

.ordered-list {
	list-style-type: none;
	max-width: 500px;
	margin: 0 auto;
	counter-reset: count;
}

.ordered-list > li {
	padding-left: 3em;
	position: relative;
}

.ordered-list > li + li {
	margin-top: 0.5em;
}

.ordered-list > li:before {
	counter-increment: count;
	content: counter(count);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2em;
	height: 2em;
	background-color: var(--color-green);
	border-radius: 0.5em;
	color: #fff;
	font-family: var(--serif-font);
	font-size: 0.875em;
	letter-spacing: 0;
	position: absolute;
	top: 1em;
	left: 0;
	transform: translateY(-50%);
}

#top-facility > div > dl {
	display: flex;
	flex-wrap: wrap;
	border-radius: 1em;
	overflow: hidden;
	margin-bottom: 2em;
}

#top-facility > div > dl > dt {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 15em;
	background-color: var(--color-green);
	color: #fff;
	padding: 1em 2em;
	margin-right: 2px;
	font-weight: 700;
}

#top-facility > div > dl > dd {
	width: calc(100% - 15em - 2px);
	padding: 1em 2em;
	background-color: #fff;
}

#top-facility > div > dl > dt:not(:last-of-type) {
	margin-bottom: 2px;
}

#top-facility > div > dl > dd:not(:last-of-type) {
	margin-bottom: 2px;
}

#top-facility > div > ul {
	list-style-type: none;
}

#top-facility > div > ul > li {
	position: relative;
}

#top-facility > div > ul > li:before {
	content: '';
	display: block;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background-color: var(--color-green);
	position: absolute;
	top: 0.5lh;
	left: 15rem;
	transform: translate(-50%, -50%);
}

#top-facility > div > ul > li:after {
	content: '';
	display: block;
	border-left: 2px solid var(--color-beige);
	height: calc(100% - 1lh);
	position: absolute;
	top: 1lh;
	left: 15rem;
	transform: translateX(-50%);
}

#top-facility > div > ul > li > dl {
	display: flex;
}

#top-facility > div > ul > li > dl > dt {
	display: flex;
	flex-flow: column;
	align-items: center;
	width: 15rem;
	font-family: var(--serif-font);
	font-size: 0.75rem;
	line-height: 1.25;
}

#top-facility > div > ul > li > dl > dt:before {
	content: attr(data-year);
	font-size: 2em;
}

#top-facility > div > ul > li > dl > dd {
	width: calc(100% - 16rem);
	margin-left: 2em;
}

#top-facility > div > ul > li > dl > dd > dl {
	margin-bottom: 1em;
}

#part-facility-slider {
	overflow: hidden;
}

#part-facility-slider > .swiper-wrapper {
	transition-timing-function: linear;
}

#part-facility-slider .swiper-slide > img {
	aspect-ratio: 3 / 2;
	width: 100%;
	background-color: #ddd;
}

@media (max-width: 768px) {
	#top-facility > div > dl > dt {
		width: 100%;
		padding: 0.75em 1.5em;
	}

	#top-facility > div > dl {
		font-size: 0.875em;
	}

	#top-facility > div > dl > dd {
		width: 100%;
		padding: 0.75em 1.5em;
	}

	#top-facility > div > dl > dt:not(:last-of-type) {
		margin-bottom: 0;
	}
	
	#top-facility > div > ul > li:before {
		left: 0.5em;
	}

	#top-facility > div > ul > li:after {
		left: 0.5em;
	}

	#top-facility > div > ul > li > dl {
		flex-flow: column;
		padding-left: 2em;
	}

	#top-facility > div > ul > li > dl > dt {
		width: 100%;
		flex-flow: row;
	}

	#top-facility > div > ul > li > dl > dt:before {
		margin-right: 0.5em;
	}

	#top-facility > div > ul > li > dl > dd {
		width: 100%;
		margin-left: 0;
	}
}

#top-daycare-ueyama > div > div:first-of-type {
	display: flex;
	align-items: center;
}

#top-daycare-ueyama-slider {
	width: 50%;
	background-color: #ddd;
	border-radius: 1em;
	overflow: hidden;
}

#top-daycare-ueyama-slider .swiper-slide {
	width: 100%;
	aspect-ratio: 3 / 2;
}

#top-daycare-ueyama-slider .swiper-slide > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* #top-daycare-ueyama > div > div:first-of-type > figure {
	width: 50%;
	aspect-ratio: 3 / 2;
	background-color: #ddd;
	border-radius: 1em;
	overflow: hidden;
}

#top-daycare-ueyama > div > div:first-of-type > figure > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
} */

#top-daycare-ueyama {
	background-color: var(--color-beige-light);
}

#top-daycare-ueyama > div > div:first-of-type > div:last-of-type {
	display: flex;
	flex-flow: column;
	align-items: center;
	width: 50%;
	padding: 0 2em;
}

#top-daycare-ueyama > div > div:first-of-type > div:last-of-type > h2 {
	margin-bottom: 1em;	
}

#top-daycare-ueyama > div > div:first-of-type > div:last-of-type > h2 > img {
	max-width: 480px;
	width: 100%;
}

#top-daycare-ueyama > div > div.contain {
	display: flex;
	justify-content: space-between;
	margin-top: 4em;
	margin-bottom: 2.5em;
}

#top-daycare-ueyama > div > div.contain > div {
	width: calc(50% - 2em);
}

#top-daycare-ueyama > div > div.contain > div > * + .sub-heading {
	margin-top: 2em;
}

#top-daycare-ueyama > div > div.contain > div > .available {
	font-size: 1.25em;
	font-weight: 600;
	text-align: center;
	margin-top: 1em;
}

#top-daycare-ueyama > div > div.contain > div > .available > div + div {
	font-size: 0.875em;
	font-weight: 400;
	line-height: 1.5;
	margin-top: 1em;
}

#top-daycare-ueyama > div > div > .item-list {
	list-style-type: none;
	margin: 0 auto;
	counter-reset: count;
}

#top-daycare-ueyama > div > div > .item-list > li {
	padding-left: 3em;
	position: relative;
}

#top-daycare-ueyama > div > div > .item-list > li + li {
	margin-top: 0.5em;
}

#top-daycare-ueyama > div > div > .item-list > li:before {
	counter-increment: count;
	content: counter(count);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2em;
	height: 2em;
	background-color: var(--color-green);
	border-radius: 0.5em;
	color: #fff;
	font-family: var(--serif-font);
	font-size: 0.875em;
	letter-spacing: 0;
	position: absolute;
	top: 1em;
	left: 0;
	transform: translateY(-50%);
}

#top-daycare-flow {
	list-style-type: none;
	position: relative;
}

#top-daycare-flow:before {
	content: '';
	height: 100%;
	border-left: 2px solid var(--color-beige);
	position: absolute;
	top: 0;
	left: 2.5rem;
	transform: translateX(-50%);
}

#top-daycare-flow > li > dl {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

#top-daycare-flow > li > dl > dt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	font-size: 0.75em;
	font-weight: 700;
	background-color: var(--color-green);
	color: #fff;
	border-radius: 0.5em;
	transform: translateY(0.25em);
}

#top-daycare-flow > li > dl > dd {
	width: calc(100% - 6rem);
}

#top-daycare-flow > li > dl > dd > ul {
	list-style-type: none;
}

@media (max-width: 768px) {
	#top-daycare-ueyama > div > div:first-of-type {
		flex-flow: column;
	}

	#top-daycare-ueyama > div > div:first-of-type > div:first-of-type {
		width: 100%;
		margin-bottom: 2em;
	}

	#top-daycare-ueyama > div > div:first-of-type > div:last-of-type {
		width: 100%;
		padding: 0;
	}

	#top-daycare-ueyama > div > div:first-of-type > div:last-of-type > h2 > img {
		max-width: 240px;
	}

	#top-daycare-ueyama > div > div.contain {
		flex-flow: column;
	}

	#top-daycare-ueyama > div > div.contain > div {
		width: 100%;
	}

	#top-daycare-ueyama > div > div.contain > div + div {
		margin-top: 2em;
	}
}

#top-gallery > div:first-of-type{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#top-gallery > div:first-of-type > .heading {
	align-self: center;
	width: 30%;
	margin-bottom: unset;
}

#top-gallery > div:first-of-type > div {
	width: calc(70% - 2em);
}

#top-gallery > div:first-of-type > div > div {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

#top-gallery > div:first-of-type > div > div > figure {
	width: 160px;
	aspect-ratio: 1 / 1;
	background-color: #ddd;
}

#top-gallery > div:first-of-type > div > div > figure > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#top-gallery > div:first-of-type > div > div > div {
	width: calc(100% - 160px - 2em);
}

#top-gallery > div:first-of-type > div > div > div > div {
	display: flex;
	justify-content: space-between;
	margin-top: 1em;
}

#top-gallery > div:first-of-type > div > div > div > div > figure {
	display: flex;
	align-items: center;
	width: 50%;
}

#top-gallery > div:first-of-type > div > div > div > div > figure > div {
	width: 80px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background-color: #ddd;
	overflow: hidden;
}

#top-gallery > div:first-of-type > div > div > div > div > figure > div > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#top-gallery > div:first-of-type > div > div > div > div > figure > figcaption {
	margin-left: 1em;
	font-weight: 600;
}

#top-gallery > div:first-of-type > div > div > div > div > div {
	width: 50%;
	font-size: 0.875em;
}

#top-gallery > div:last-of-type {
	padding-top: 0;
}

#top-gallery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: auto auto;
	grid-gap: 1em;
}

#top-gallery-grid > a {
	display: block;
	aspect-ratio: 1 / 1;
	background-color: #ddd;
}

#top-gallery-grid > a > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.lum-lightbox {
	z-index: 256;
}

.lum-lightbox-inner img {
	max-width: 90vw;
	max-height: 90vh;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: auto;
}

@media (max-width: 768px) {
	#top-gallery > div:first-of-type {
		flex-flow: column;
	}

	#top-gallery > div:first-of-type > .heading {
		width: 100%;
		margin-bottom: 1em;
	}

	#top-gallery > div:first-of-type > div {
		width: 100%;
	}
	
	#top-gallery > div:first-of-type > div > div {
		flex-flow: column;
		align-items: center;
	}

	#top-gallery > div:first-of-type > div > div > figure {
		margin-bottom: 1em;
	}

	#top-gallery > div:first-of-type > div > div > div {
		width: 100%;
	}

	#top-gallery > div:first-of-type > div > div > div > div {
		flex-flow: column;
	}

	#top-gallery > div:first-of-type > div > div > div > div > figure {
		justify-content: center;
		width: 100%;
		margin-bottom: 1em;
	}

	#top-gallery > div:first-of-type > div > div > div > div > div {
		width: 100%;
		text-align: center;
	}

	#top-gallery-grid {
		grid-gap: 0.5em;
	}
}

#top-access {
	aspect-ratio: 3 / 1;
	background-color: #ddd;
	overflow: hidden;
	position: relative;
}

#top-access > iframe {
	width: 100%;
	height: calc(100% + 300px);
	position: absolute;
	top: -150px;
	left: 0;
}

#top-access > div {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	width: max(320px, 30vw);
	height: calc(100% - 6vw);
	background-color: #fff;
	border-radius: 1em;
	box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1);
	padding: 2.5vw;
	font-size: 0.875em;
	position: absolute;
	top: 3vw;
	left: 3vw;
	z-index: 1;
}

#top-access > div > h2 {
	width: 100%;
}

#top-access > div > h2 > img {
	width: 75%;
	margin: 0 auto 1em auto;
}


#top-access > div > dl {
	display: flex;
	flex-wrap: wrap;
	margin-top: 1em;
}

#top-access > div > dl > dt {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 4rem;
	margin-right: 1rem;
	background-color: var(--color-green);
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	border-radius: 0.5em;
}

#top-access > div > dl > dd {
	width: calc(100% - 5rem);
}

#top-contents-wrap {
	display: flex;
	justify-content: space-between;
}

@media (max-width: 768px) {
	#top-access {
		aspect-ratio: 3 / 4;
	}

	#top-access > div {
		aspect-ratio: 3 / 2;
		width: calc(100% - 6vw);
		height: unset;
	}

	#top-access > div > h2 > img {
		max-width: 240px;
	}

	#top-access > iframe {
		height: calc(100% + 300px + 100vw / 3 * 2);
	}
}


#top-contents-wrap > a {
	display: flex;
	align-items: center;
	width: calc(50% - 1em);
	aspect-ratio: 3 / 1;
	padding: 1em 4em 1em 2em;
	background-color: #fff;
	border-radius: clamp(0.5em, 1.5vw, 0.75em);
	font-weight: 600;
	overflow: hidden;
	position: relative;
}

#top-contents-wrap > a:before {
	content: '';
	display: block;
	width: 0.5em;
	height: 100%;
	background-color: var(--color-green);
	position: absolute;
	top: 0;
	left: 0;	
}

#top-contents-wrap > a:after {
    content: '';
    display: block;
    width: 2em;
    height: 2em;
    background-color: var(--color-green);
    background-image: var(--icon-arrow-white);
    background-size: 20% auto;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.25em;
    position: absolute;
    right: 2em;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
	#top-contents-wrap {
		flex-flow: column;
		max-width: 480px;
		margin: 0 auto 1em auto;
	}

	#top-contents-wrap > a {
		width: 100%;
	}

	#top-contents-wrap > a + a {
		margin-top: 1em;
	}
}

/* --------------------------
    contact
-------------------------- */
.grecaptcha-badge {
	z-index: 254;
}