/* Keep the top-page header and footer skin consistent across every subpage. */
body.tokueikai-subpage .site-sidebar {
	background-color: var(--tokueikai-sidebar);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
	background-blend-mode: multiply;
	box-shadow: 0 5px 8px rgba(0, 0, 0, .18);
}

body.tokueikai-subpage .site-sidebar__panel,
body.tokueikai-subpage .sidebar-contact__background {
	display: none;
}

body.tokueikai-subpage .sidebar-contact {
	background: linear-gradient(180deg, #9e834e 0%, #412d05 100%);
}

body.tokueikai-subpage .site-footer {
	display: block;
	background: var(--tokueikai-artboard);
	color: var(--tokueikai-text);
}

body.tokueikai-subpage .footer-brand,
body.tokueikai-subpage .footer-nav,
body.tokueikai-subpage .footer-facility,
body.tokueikai-subpage .footer-copyright {
	color: var(--tokueikai-text);
}

/* Figma 6649:238 — shared facility telephone CTA. */
.facility-hero-phone {
	position: fixed;
	left: auto;
	right: 88px;
	top: auto;
	bottom: 26px;
	z-index: 500;
	display: flex;
	align-items: flex-start;
	gap: 5px;
	width: 219px;
	height: 47px;
	box-sizing: border-box;
	padding: 7px 13px 7px 14px;
	border-radius: 8px;
	background: #674503;
	box-shadow: 0 0 0 rgba(65, 45, 5, 0);
	color: #fff;
	font-family: var(--tokueikai-sans);
	text-decoration: none;
	transition: background-color .24s ease, box-shadow .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
}

.facility-contact-dock {
	position: fixed;
	right: 88px;
	bottom: 26px;
	z-index: 500;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	width: 343px;
	height: 50px;
	transition: opacity .24s ease, visibility .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
}

.facility-contact-dock .facility-hero-phone {
	position: static;
	flex: 0 0 219px;
	z-index: auto;
}

.alivio-social-links {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 112px;
	width: 112px;
	height: 50px;
}

.alivio-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	box-sizing: border-box;
	border: 1px solid rgba(103, 69, 3, .16);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(65, 45, 5, .12);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.alivio-social-link img {
	display: block;
	max-width: none;
	height: auto;
}

.alivio-social-link--youtube img {
	width: 34px;
}

.alivio-social-link--instagram img {
	width: 32px;
}

.alivio-social-link:hover {
	border-color: rgba(103, 69, 3, .32);
	box-shadow: 0 7px 16px rgba(65, 45, 5, .18);
	transform: translateY(-2px);
}

.alivio-social-link:focus-visible {
	outline: 3px solid #9e834e;
	outline-offset: 3px;
}

.facility-hero-phone__icon {
	position: relative;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.facility-hero-phone__icon img {
	position: absolute;
	inset: 0;
	display: block;
	width: 30px;
	height: 30px;
	max-width: none;
}

.facility-hero-phone__number {
	flex: 0 0 157px;
	width: 157px;
	height: 32px;
	font-size: 22px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: .66px;
	white-space: nowrap;
}

.facility-hero-phone:hover {
	background: #543803;
	box-shadow: 0 8px 16px rgba(65, 45, 5, .24);
	color: #fff;
	transform: translateY(-3px);
}

.facility-hero-phone:hover .facility-hero-phone__icon {
	transform: rotate(-8deg) scale(1.08);
}

.facility-hero-phone:active {
	box-shadow: 0 3px 8px rgba(65, 45, 5, .2);
	transform: translateY(-1px);
}

.facility-hero-phone:focus-visible {
	outline: 3px solid #9e834e;
	outline-offset: 3px;
}

@media (min-width: 700px) {
	body.tokueikai-subpage.aliviosakura-page,
	body.tokueikai-subpage.shortstay-page,
	body.tokueikai-subpage.aliviosakura-dayservice-page {
		--shared-facility-artboard-height: 3741;
	}

	body.tokueikai-subpage.aliviosakura-page .tokueikai-stage,
	body.tokueikai-subpage.shortstay-page .tokueikai-stage,
	body.tokueikai-subpage.aliviosakura-dayservice-page .tokueikai-stage {
		height: calc(var(--shared-facility-artboard-height) / 1280 * 100vw);
	}

	body.tokueikai-subpage.aliviosakura-page .tokueikai-artboard,
	body.tokueikai-subpage.shortstay-page .tokueikai-artboard,
	body.tokueikai-subpage.aliviosakura-dayservice-page .tokueikai-artboard {
		height: 3741px;
	}

	body.tokueikai-subpage.aliviosakura-page .site-footer,
	body.tokueikai-subpage.shortstay-page .site-footer,
	body.tokueikai-subpage.aliviosakura-dayservice-page .site-footer {
		top: 3218px;
		height: 523px;
	}

	body.tokueikai-subpage.tokueikai-jkaauxiliary .tokueikai-stage {
		height: calc(4053 / 1280 * 100vw);
	}

	body.tokueikai-subpage.tokueikai-jkaauxiliary .tokueikai-artboard {
		height: 4053px;
	}

	body.tokueikai-subpage.tokueikai-jkaauxiliary .site-footer {
		top: 3530px;
		height: 523px;
	}

	body.tokueikai-subpage.tokueikai-tomoiki .tokueikai-stage {
		height: calc(7232 / 1280 * 100vw);
	}

	body.tokueikai-subpage.tokueikai-tomoiki .tokueikai-artboard {
		height: 7232px;
	}

	body.tokueikai-subpage.tokueikai-tomoiki .site-footer {
		top: 6709px;
		height: 523px;
	}

	body.tokueikai-subpage.tokueikai-sakura-terrace .tokueikai-stage {
		height: calc(7440 / 1280 * 100vw);
	}

	body.tokueikai-subpage.tokueikai-sakura-terrace .tokueikai-artboard {
		height: 7440px;
	}

	body.tokueikai-subpage.tokueikai-sakura-terrace .site-footer {
		top: 6917px;
		height: 523px;
	}
}

@media (max-width: 699px) {
	.facility-contact-dock {
		right: 68px;
		bottom: 18px;
		gap: 10px;
		width: 281px;
		height: 42px;
	}

	.facility-contact-dock.is-footer-overlap {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(12px);
	}

	.facility-contact-dock .facility-hero-phone {
		flex-basis: 177px;
	}

	.alivio-social-links {
		gap: 10px;
		flex-basis: 94px;
		width: 94px;
		height: 42px;
	}

	.alivio-social-link {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.alivio-social-link--youtube img {
		width: 29px;
	}

	.alivio-social-link--instagram img {
		width: 27px;
	}

	.facility-hero-phone {
		right: 68px;
		left: auto;
		top: auto !important;
		bottom: 18px;
		gap: 4px;
		width: 177px;
		height: 38px;
		padding: 5px 9px;
		box-shadow: 0 4px 10px rgba(65, 45, 5, .22);
	}

	.facility-hero-phone.is-footer-overlap {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(12px);
	}

	.facility-hero-phone__icon,
	.facility-hero-phone__icon img {
		flex-basis: 24px;
		width: 24px;
		height: 24px;
	}

	.facility-hero-phone__number {
		flex: 0 0 auto;
		width: auto;
		height: 26px;
		font-size: 17px;
		letter-spacing: .51px;
	}

	body.tokueikai-subpage .mobile-header {
		background: var(--tokueikai-sidebar);
	}

	body.tokueikai-subpage .site-footer {
		background: var(--tokueikai-artboard);
		color: var(--tokueikai-text);
	}
}

@media (prefers-reduced-motion: reduce) {
	.facility-contact-dock,
	.alivio-social-link,
	.facility-hero-phone,
	.facility-hero-phone__icon {
		transition: none;
	}
}
