/*
Theme Name: Chiran Hoshinoko
Template: chiran-central
Description: こども園ほしのこ専用の子テーマ。
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: chiran-hoshinoko
*/

:root {
	--chiran-charcoal: #555147;
}

/* 全公開ページの右下に固定するお問い合わせ・見学予約リンク。 */
.hoshinoko-contact-float {
	isolation: isolate;
	overflow: hidden;
	position: fixed;
	z-index: 90;
	right: max(24px, env(safe-area-inset-right, 0px));
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 104px;
	height: 104px;
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 50%;
	background: #62664e;
	color: #fff;
	font: 14px/1.65 var(--chiran-serif);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}
.hoshinoko-contact-float::before {
	content: "";
	position: absolute;
	inset: 10%;
	z-index: -1;
	background: url("assets/images/hoshinoko-symbol.webp") center / contain no-repeat;
	filter: grayscale(1) brightness(0) invert(1);
	opacity: .18;
	pointer-events: none;
}
.hoshinoko-contact-float:hover { background: #4d513c; }
.hoshinoko-contact-float:focus-visible { outline: 3px solid #3858e9; outline-offset: 3px; }
html.has-modal-open .hoshinoko-contact-float { visibility: hidden; }
.site-footer { height: auto; min-height: 278px; padding-bottom: 136px; }
.about-page .hoshinoko-reserve { padding: 0 20px 64px; }
.about-page .about-overview:last-of-type { min-height: 0; padding-bottom: 32px; }
.about-page .hoshinoko-reserve__text { text-wrap: balance; }
@media (max-width: 600px) {
	.hoshinoko-contact-float {
		right: max(16px, env(safe-area-inset-right, 0px));
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 92px;
		height: 92px;
		font-size: 12px;
	}
}

/* Studioプレビューが追加する案内バーのみを非表示にする。 */
#studio-companion-notice { display: none !important; }

@font-face {
	font-family: "Yuji Syuku Title";
	src: url("assets/fonts/yuji-syuku-title.ttf") format("truetype");
	font-display: swap;
	font-style: normal;
	font-weight: 400;
}

/* Kouzan Mouhitsu by Aoyagi Kouzan, https://opentype.jp/kouzanmouhitufont.htm */
@font-face {
	font-family: "Kouzan Mouhitsu";
	src: url("assets/fonts/kouzan-mouhitsu-title.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 400;
}

.home-hero__title,
.site-splash__title {
	font-family: "Kouzan Mouhitsu", var(--chiran-gyousho);
	font-weight: 700;
	font-size: 80px;
	width: 1.4em;
}

.site-navigation-primary.hoshinoko-navigation {
	width: min(880px, calc(100% - 32px));
}

.hoshinoko-navigation .wp-block-navigation-item:nth-child(1) .wp-block-navigation-item__label::after { content: "top"; }
.hoshinoko-navigation .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__label::after { content: "information"; }
.hoshinoko-navigation .wp-block-navigation-item:nth-child(3) .wp-block-navigation-item__label::after { content: "environment"; }
.hoshinoko-navigation .wp-block-navigation-item:nth-child(4) .wp-block-navigation-item__label::after { content: "support"; }
.hoshinoko-navigation .wp-block-navigation-item:nth-child(5) .wp-block-navigation-item__label::after { content: "news"; }
.hoshinoko-navigation .wp-block-navigation-item:nth-child(6) .wp-block-navigation-item__label::after { content: "recruitment"; }

/* PCの保育時間の末尾だけが折り返されないよう、表を48px広げる。 */
@media screen and (min-width: 901px) {
	.about-page .about-overview__inner { width: min(914px, 100%); }
}

/* 施設フッターのロゴだけを置き換え、親の寸法と配置は維持する。 */
.site-footer .footer-nav__mark {
	background-image: url("assets/images/hoshinoko-symbol.webp");
	background-size: contain;
}

/* モックと同じInstagram画像を使い、リンク名は読み上げ用に残す。 */
.hoshinoko-navigation .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: auto;
	height: auto;
}

.hoshinoko-navigation .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__content::before {
	content: "";
	width: 48px;
	height: 48px;
	background: url("assets/images/instagram.webp") center / contain no-repeat;
}

.hoshinoko-navigation .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__content::after {
	content: none;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 19px;
}

.hoshinoko-navigation .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.hoshinoko-navigation .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__label::after {
	content: none;
}

/* 法人モバイル中央ボタンの色・角丸と、左ボタンの透かしを流用。 */
.site-header {
	gap: 24px;
}

/* constrained レイアウトの自動左右マージン（!important）を打ち消し、ロゴとナビを隣接させる */
.site-header.is-layout-constrained > .hoshinoko-header-logo,
.site-header.is-layout-constrained > .wp-block-navigation {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.hoshinoko-header-logo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 112px;
	height: 66px;
	max-width: none;
	padding: 6px 2px;
	border: 0;
	border-radius: 3px;
	color: #fff;
	background: #62664e;
	font: 14px/1.15 var(--chiran-serif);
	text-align: center;
	text-decoration: none;
}

.hoshinoko-header-logo > span {
	position: relative;
	z-index: 1;
}

.hoshinoko-header-logo small {
	display: block;
	margin-top: 4px;
	font-size: 10px;
}

.hoshinoko-header-logo .hoshinoko-corporate-watermark {
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	width: 70%;
	height: 90%;
	object-fit: contain;
	transform: translate(-50%, -50%);
	filter: grayscale(1) brightness(0) invert(1);
	opacity: .18;
	pointer-events: none;
}

.hoshinoko-header-logo:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.site-header .site-navigation-primary.hoshinoko-navigation {
	width: min(880px, calc(100% - 32px - 136px));
}

.hoshinoko-navigation .wp-block-navigation-item__content:focus-visible,
.hoshinoko-navigation .wp-block-navigation__responsive-container-open:focus-visible,
.hoshinoko-navigation .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media screen and (max-width: 900px) {
	/* ロゴは中央、メニューボタンはヘッダー右端へ配置する。 */
	.site-header .site-navigation-primary.hoshinoko-navigation {
		position: absolute;
		top: 0;
		right: 16px;
		bottom: 0;
		display: flex;
		align-items: center;
		width: auto;
		height: auto;
	}

	.hoshinoko-navigation .wp-block-navigation__responsive-container-open,
	.hoshinoko-navigation .wp-block-navigation__responsive-container-close {
		justify-content: center;
		align-items: center;
		width: 44px;
		height: 44px;
	}

	.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open {
		animation: hoshinoko-menu-panel-in .55s cubic-bezier(.22,1,.36,1) both;
	}

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		animation: hoshinoko-menu-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
		animation-delay: 0.08s;
	}

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: 0.15s; }

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: 0.22s; }

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: 0.29s; }

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: 0.36s; }

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) { animation-delay: 0.43s; }

	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(7) { animation-delay: 0.50s; }



	.hoshinoko-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.hoshinoko-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.site-navigation-primary.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex;
		width: 100%;
		flex-direction: column;
		align-items: center;
		gap: 22px;
	}
}

@media screen and (max-width: 600px) {
	.hoshinoko-navigation .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__content::after { font-size: 9px; line-height: 18px; }
	/* Six facility links need two rows rather than overflowing the narrow footer. */
	.site-footer { height: auto; min-height: 278px; }
	.site-footer .footer-nav { height: auto; gap: 16px; }
	.site-footer .footer-nav nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; text-align: center; }
	.site-navigation-primary.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		margin: 0;
	}

	.hoshinoko-header-logo {
		width: 104px;
		height: 52px;
		padding: 4px 2px;
		font-size: 12px;
		line-height: 1.15;
	}

	.hoshinoko-header-logo small {
		margin-top: 3px;
		font-size: 9px;
		line-height: 1.1;
	}
}

/* 比較用にボタン化前の画像ロゴへ戻す。ボタンの定義は再利用用に保持。 */
.hoshinoko-header-logo.hoshinoko-header-logo--image {
	display: block;
	width: auto;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
}
.hoshinoko-header-logo--image img {
	display: block;
	width: auto;
	height: 64px;
}
@media (max-width: 600px) {
	.hoshinoko-header-logo--image img { height: 52px; }
}

/* ホーム: 施設固有の4枚を親テーマのスライド演出に差し替える */
.home-hero__visual::before {
	background-image: url("assets/images/hoshinoko-top-d2-20261204.webp");
}

.home-hero__slide--2 {
	background-image: url("assets/images/hoshinoko-top-d4-20261204.webp");
}

.home-hero__slide--3 {
	background-image: url("assets/images/hoshinoko-top-d1-20261204.webp");
}

.home-hero__slide--4 {
	background-image: url("assets/images/hoshinoko-top-d3-20261204.webp");
}

/* ホーム: モックの施設ロゴを縦書き施設名の上に配置 */
.hoshinoko-hero__logo,
.hoshinoko-splash__logo {
	position: absolute;
	left: 50%;
	width: 76px;
	height: auto;
	transform: translateX(-50%);
}

.hoshinoko-hero__logo {
	z-index: 5;
	top: 60px;
}

.hoshinoko-splash__logo {
	top: 143px;
	opacity: 0;
}

html.chiran-splash-animating .hoshinoko-splash__logo {
	animation: chiran-splash-title-in 1s ease forwards;
}

@media screen and (min-width: 601px) and (max-height: 900px) {
	.home-hero__title {
		top: clamp(110px, 18vh, 160px);
		min-height: 0;
		font-size: clamp(44px, 7vh, 65px);
		transform: translateX(-50%);
	}

	.site-splash__title {
		top: calc(clamp(110px, 18vh, 160px) + 83px);
		min-height: 0;
		font-size: clamp(44px, 7vh, 65px);
		transform: translateX(-50%);
	}

	.hoshinoko-hero__logo,
	.hoshinoko-splash__logo {
		width: clamp(53px, 8.25vh, 76px);
	}

	.hoshinoko-hero__logo {
		top: clamp(18px, 6vh, 60px);
	}

	.hoshinoko-splash__logo {
		top: calc(clamp(18px, 6vh, 60px) + 83px);
	}
}

@media screen and (max-width: 600px) {
	.home-hero__title,
	.site-splash__title {
		min-height: 0;
		font-size: clamp(31px, 4.75vh, 40px);
	}

	.hoshinoko-hero__logo,
	.hoshinoko-splash__logo {
		width: 56px;
	}

	.hoshinoko-hero__logo {
		top: max(8px, calc(30vh - 150px));
	}

	.hoshinoko-splash__logo {
		top: max(74px, calc(30vh - 84px));
	}

	@supports (height: 100svh) {
		.hoshinoko-hero__logo {
			top: max(8px, calc(30svh - 150px));
		}

		.hoshinoko-splash__logo {
			top: max(74px, calc(30svh - 84px));
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	html.chiran-splash-animating .hoshinoko-splash__logo {
		animation: none;
		opacity: 1;
	}
}

/* 基本情報: 見学予約・お問い合わせ（hoicil）ボタン */
.hoshinoko-reserve {
	margin: 0;
	padding: 48px 20px 0;
	background: var(--chiran-mist);
}

.hoshinoko-reserve__link {
	display: flex;
	box-sizing: border-box;
	width: min(735px, 100%);
	min-height: 94px;
	margin: 0 auto;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 2px solid #555;
	border-radius: 8px;
	color: var(--chiran-charcoal);
	background: #fff;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.hoshinoko-reserve__link:hover {
	background: #eee;
	transform: scale(0.97);
}

.hoshinoko-reserve__link:focus-visible {
	outline: 2px solid var(--chiran-charcoal);
	outline-offset: 3px;
}

.hoshinoko-recruitment-page {
	background: #fff;
}

.hoshinoko-recruitment__content .hoshinoko-reserve {
	padding: 24px 20px 0;
	background: #fff;
}

.hoshinoko-recruitment__content {
	padding-top: 24px;
	padding-bottom: 64px;
}

.hoshinoko-recruitment-intro {
	display: grid;
	box-sizing: border-box;
	width: min(830px, calc(100% - 40px));
	margin: 0 auto;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 16px;
}

.hoshinoko-recruitment-intro__copy h2 {
	margin: 0 0 16px;
	font-family: var(--chiran-serif);
	font-size: 20px;
	font-weight: 400;
}

.hoshinoko-recruitment-intro__copy p {
	margin: 0;
	font-family: var(--chiran-serif);
	font-size: 15px;
	line-height: 1.9;
}

.hoshinoko-recruitment-intro__image {
	display: block;
	width: 100%;
	height: auto;
}

@media screen and (max-width: 760px) {
	.hoshinoko-recruitment__content {
		padding-bottom: 48px;
	}

	.hoshinoko-recruitment-intro {
		width: min(560px, calc(100% - 40px));
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.hoshinoko-reserve__text {
	margin: 0 40px 0 10px;
	font-family: var(--chiran-serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
}

.hoshinoko-reserve__logo {
	display: block;
	width: 302px;
	min-width: 0;
	max-width: 100%;
	height: auto;
}

@media screen and (max-width: 760px) {
	.hoshinoko-reserve {
		padding-top: 40px;
	}

	.hoshinoko-reserve__link {
		flex-direction: column;
		padding: 18px 16px 8px;
	}

	.hoshinoko-reserve__text {
		margin: 0;
		font-size: 16px;
		text-align: center;
		white-space: normal;
	}

	.hoshinoko-reserve__logo {
		width: min(240px, 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hoshinoko-reserve__link {
		transition: none;
	}
}

/* 保育環境: 上段E・F計13枚、下段G10枚を6秒間隔で切り替える。 */
.hoshinoko-environment__content {
	padding: 80px 24px 96px;
}

.hoshinoko-environment {
	width: min(1100px, 100%);
	margin: 0 auto;
}

.hoshinoko-environment__feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.hoshinoko-environment__feature + .hoshinoko-environment__feature {
	margin-top: 112px;
}

.hoshinoko-environment__feature--reverse .hoshinoko-environment__visual {
	grid-column: 1;
	grid-row: 1;
}

.hoshinoko-environment__feature--reverse .hoshinoko-environment__copy {
	grid-column: 2;
	grid-row: 1;
}

.hoshinoko-environment__copy h2 {
	margin: 0 0 28px;
	font-family: var(--chiran-serif);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	line-height: 1.65;
}

.hoshinoko-environment__copy p {
	margin: 0;
	font-family: var(--chiran-serif);
	font-size: 16px;
	line-height: 2;
}

.hoshinoko-environment__copy p + p {
	margin-top: 18px;
}

.hoshinoko-environment__visual {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	background: #deddd6;
}

.hoshinoko-environment__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	animation: hoshinoko-environment-thirteen var(--environment-cycle) linear infinite;
	animation-delay: var(--slide-delay);
}

.hoshinoko-environment__feature--reverse .hoshinoko-environment__photo {
	animation-name: hoshinoko-environment-ten;
}

/* 6秒間隔・2秒フェード。入ってくる写真を前面に重ね、空白を挟まない。 */
@keyframes hoshinoko-environment-thirteen {
	0% { opacity: 0; z-index: 2; transform: scale(1.1); }
	2.564103% { opacity: 1; z-index: 2; transform: scale(1); }
	2.564104%, 10.256409% { opacity: 1; z-index: 1; transform: scale(1); }
	10.256410%, 100% { opacity: 0; z-index: 0; transform: scale(1); }
}

@keyframes hoshinoko-environment-ten {
	0% { opacity: 0; z-index: 2; transform: scale(1.1); }
	3.333333% { opacity: 1; z-index: 2; transform: scale(1); }
	3.333334%, 13.333332% { opacity: 1; z-index: 1; transform: scale(1); }
	13.333333%, 100% { opacity: 0; z-index: 0; transform: scale(1); }
}

@media screen and (max-width: 760px) {
	.hoshinoko-environment__content {
		padding: 64px 20px 72px;
	}

	.hoshinoko-environment__feature {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.hoshinoko-environment__feature + .hoshinoko-environment__feature {
		margin-top: 80px;
	}

	.hoshinoko-environment__feature--reverse .hoshinoko-environment__visual,
	.hoshinoko-environment__feature--reverse .hoshinoko-environment__copy {
		grid-column: 1;
		grid-row: auto;
	}

	.hoshinoko-environment__copy h2 {
		margin-bottom: 20px;
	}

	.hoshinoko-environment__copy p {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hoshinoko-environment__photo,
	.hoshinoko-environment__feature--reverse .hoshinoko-environment__photo {
		animation: none;
		transform: none;
	}
	.hoshinoko-environment__photo:first-child { opacity: 1; }
}

/* 子育て支援: 理念ページの縦見出し構成を長文向けに調整 */
/* Reversible Hoshinoko-only menu experiment; WordPress owns links and focus. */
@media (max-width: 900px) {
	html.has-modal-open { scrollbar-gutter: auto; }
	.site-header { transition: transform .35s ease; }
	header.wp-block-template-part.is-scroll-hidden .site-header { transform: translateY(-110%); }
	.hoshinoko-navigation .wp-block-navigation__responsive-container-open,
	.hoshinoko-navigation .wp-block-navigation__responsive-container-close { width: 48px; height: 48px; border: 1px solid #aaa; border-radius: 50%; flex-direction: column; gap: 2px; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container-open::after { content: "MENU"; font: 8px/1.2 sans-serif; letter-spacing: .08em; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container-close::after { content: "CLOSE"; font: 8px/1.2 sans-serif; letter-spacing: .08em; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open { background: var(--chiran-mist) !important; color: var(--chiran-charcoal) !important; padding: 80px 30px 40px; width: 100vw; }
	.site-header .hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container-close { display: flex; top: -71px; right: -14px; }
	.hoshinoko-navigation .has-morph-icon svg { display: none; }
	.hoshinoko-menu-icon { position: relative; display: block; flex-shrink: 0; width: 24px; height: 20px; }
	.hoshinoko-menu-icon::before, .hoshinoko-menu-icon::after { content: ""; position: absolute; top: 9px; left: 1px; width: 22px; height: 1px; background: currentColor; transform-origin: center; transition: transform .35s cubic-bezier(.22,1,.36,1); }
	.hoshinoko-menu-icon::before { transform: translateY(-4px); }
	.hoshinoko-menu-icon::after { transform: translateY(4px); }
	.hoshinoko-navigation .is-active .hoshinoko-menu-icon::before { transform: rotate(45deg); }
	.hoshinoko-navigation .is-active .hoshinoko-menu-icon::after { transform: rotate(-45deg); }
	.hoshinoko-navigation .has-morph-icon::after { order: 1; }
	.site-header .site-navigation-primary.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { position: static; inset: auto; width: 100%; height: auto; margin: 0; align-items: stretch; gap: 0; }
	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; padding: 14px 0; border-bottom: 1px solid #d5d3ce; }
	.hoshinoko-navigation .is-menu-open .wp-block-navigation-item__content { color: var(--chiran-charcoal); font-size: 22px; }
	.hoshinoko-navigation .is-menu-open .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__content::before { filter: invert(1); }
	.hoshinoko-navigation .is-menu-open .wp-block-navigation-item:nth-child(7) .wp-block-navigation-item__content::after { content: "instagram"; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open[data-facility-menu-closing] { animation: hoshinoko-menu-panel-out .55s cubic-bezier(.22,1,.36,1) both; pointer-events: none; }
}
@keyframes hoshinoko-menu-panel-out {
	from { clip-path: var(--menu-close-from, circle(150% at calc(100% - 38px) 33px)); }
	to { clip-path: circle(0 at calc(100% - 38px) 33px); }
}
@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
	.hoshinoko-menu-icon::before, .hoshinoko-menu-icon::after { transition: none; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open[data-facility-menu-closing] { animation: none; }
}

.hoshinoko-support {
	gap: 64px;
}

.hoshinoko-support .message-philosophy__body {
	gap: 20px;
}

.hoshinoko-support .message-philosophy__ja,
.hoshinoko-support__notice {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	margin: 0 24px;
	font-weight: 400;
	line-height: 2;
	overflow-wrap: anywhere;
}

.hoshinoko-support__notice p,
.hoshinoko-support__notice ul {
	margin: 0;
}

.hoshinoko-support__notice ul {
	padding-left: 1.5em;
}

.hoshinoko-support__notice li + li {
	margin-top: 0.4em;
}

@media screen and (max-width: 600px) {
	.hoshinoko-support {
		padding: 64px 24px;
		gap: 48px;
	}

	.hoshinoko-support .message-philosophy__ja,
	.hoshinoko-support__notice {
		margin-right: 0;
		margin-left: 24px;
	}
}

/* モバイルは帯を作らず、既存の操作ボタンを画像の上へ重ねる。 */
@media (max-width: 900px) {
	header.wp-block-template-part { position: fixed; inset: 0 0 auto; }
	.site-header { justify-content: flex-start; background: transparent; pointer-events: none; }
	.site-header.is-layout-constrained > .hoshinoko-header-logo { margin-left: 16px !important; }
	.site-header > .hoshinoko-header-logo,
	.site-header > .hoshinoko-navigation { pointer-events: auto; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container-open { background: rgba(51,49,50,.82); color: #fff; }
	.home-hero { height: 100vh; height: 100svh; }
}
@media (min-width: 601px) and (max-width: 900px) and (max-height: 900px) {
	.home-hero__title { top: calc(clamp(110px,18vh,160px) + 83px); }
	.hoshinoko-hero__logo { top: calc(clamp(18px,6vh,60px) + 83px); }
}
@media (min-width: 601px) and (max-width: 900px) and (min-height: 901px) {
	.home-hero__title { top: 243px; }
	.hoshinoko-hero__logo { top: 143px; }
}
@media (max-width: 600px) {
	.home-hero__title { top: calc(50vh + 33px); top: calc(50svh + 33px); }
	.hoshinoko-hero__logo { top: max(74px,calc(30vh - 84px)); top: max(74px,calc(30svh - 84px)); }
	body.admin-bar .home-hero { height: calc(100svh - 46px); }
	body.admin-bar .home-hero__title { top: calc(50svh + 10px); }
}

/* 子育て支援と同じ本文のフェード。JSが動かなければ通常表示。 */
.hoshinoko-content-reveal {
	opacity: 0;
	transform: translateX(-16px);
	transition: opacity .65s ease var(--content-reveal-delay,.72s), transform .65s cubic-bezier(.22,1,.36,1) var(--content-reveal-delay,.72s);
}
@media (prefers-reduced-motion: no-preference) {
	.hoshinoko-content-reveal--sequence { transition: none; }

	.hoshinoko-content-reveal--sequence:is(h1,h2,h3,h4,h5,h6).is-content-visible {
		animation:
			chiran-heading-fade-in .95s ease var(--content-reveal-delay,.08s) backwards,
			chiran-heading-slide-in .95s cubic-bezier(0.22, 1, 0.36, 1) var(--content-reveal-delay,.08s) backwards;
	}

	.hoshinoko-content-reveal--sequence.is-content-visible {
		animation: hoshinoko-environment-enter .95s cubic-bezier(.22,1,.36,1) var(--content-reveal-delay,.08s) backwards;
	}
}

@keyframes hoshinoko-environment-enter {
	from { opacity: 0; transform: translateY(-16px); }
	to { opacity: 1; transform: none; }
}
.hoshinoko-content-reveal.is-content-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.hoshinoko-content-reveal { opacity: 1; transform: none; transition: none; }
}

/* 基本情報の縦見出しは、文字数に合わせて側線も伸ばす。 */
.about-section-title {
	height: max-content;
	min-height: 92px;
}

/* ロゴと縦書きタイトルは通常フローで一体化し、読み込みや画面高に関係なく間隔を確保。 */
.hoshinoko-brand {
	--brand-logo-width: 76px;
	--brand-font-size: min(80px, 8.3svh);
	position: absolute;
	left: 50%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: max-content;
	transform: translateX(-50%);
}
.hoshinoko-brand--hero { top: 60px; }
.hoshinoko-brand--splash { top: 143px; }
.hoshinoko-brand .hoshinoko-hero__logo,
.hoshinoko-brand .hoshinoko-splash__logo {
	position: static;
	flex: none;
	width: var(--brand-logo-width);
	height: auto;
	transform: none;
}
.hoshinoko-brand .home-hero__title,
.hoshinoko-brand .site-splash__title {
	position: static;
	flex: none;
	top: auto;
	width: 1.4em;
	height: max-content;
	min-height: 0;
	margin: 0;
	font-size: var(--brand-font-size);
	transform: none;
}
@media (min-width: 601px) and (max-height: 900px) {
	.hoshinoko-brand {
		--brand-logo-width: clamp(53px, 8.25svh, 76px);
		--brand-font-size: clamp(44px, 7svh, 65px);
	}
	.hoshinoko-brand--hero { top: clamp(18px, 6svh, 60px); }
	.hoshinoko-brand--splash { top: calc(clamp(18px, 6svh, 60px) + 83px); }
}
@media (min-width: 601px) and (max-width: 900px) {
	.hoshinoko-brand--hero,
	.hoshinoko-brand--splash { top: calc(clamp(18px, 6svh, 60px) + 83px); }
}
@media (max-width: 600px) {
	.hoshinoko-brand {
		--brand-logo-width: clamp(40px, 6.64svh, 56px);
		--brand-font-size: clamp(24px, 4.75svh, 40px);
		top: calc(50svh - 36px);
		transform: translate(-50%, -50%);
	}
}

/* 一時比較: 元画像・元ロゴを残し、3案をナビ左側へ同じ枠で並べる。 */
.hoshinoko-header-logo.hoshinoko-header-logo--comparison {
	display: flex;
	flex-shrink: 1;
	min-width: 0;
	gap: 6px;
	width: auto;
	height: auto;
	padding: 0;
	background: transparent;
	overflow: visible;
}
.hoshinoko-header-logo--comparison > a {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--chiran-charcoal);
	text-decoration: none;
}
.hoshinoko-header-logo--comparison img {
	display: block;
	width: 58px;
	max-width: 100%;
	height: 44px;
	object-fit: contain;
}
.hoshinoko-header-logo--comparison a:focus-visible { outline: 2px solid #3858e9; outline-offset: 2px; }
@media (min-width: 901px) {
	/* 比較ロゴ追加前のナビ幅へ戻し、狭いPCではロゴ側だけを縮める。 */
	.site-header .site-navigation-primary.hoshinoko-navigation { width: min(880px, calc(100% - 32px - 136px)); flex-shrink: 0; }
}
@media (max-width: 600px) {
	.hoshinoko-header-logo--comparison > a { height: 52px; }
	.hoshinoko-header-logo--comparison img { height: 34px; }
}

/* スマホのナビ左端は施設ロゴ1つ。比較用3案はPCだけに残す。 */
.hoshinoko-header-logo.hoshinoko-header-logo--mobile { display: none; }
@media (max-width: 900px) {
	.hoshinoko-header-logo.hoshinoko-header-logo--corporate { display: none; }
	.hoshinoko-header-logo.hoshinoko-header-logo--comparison { display: none; }
	.hoshinoko-header-logo.hoshinoko-header-logo--mobile { display: block; }
	.hoshinoko-header-logo--mobile img { height: 52px; width: auto; }
}

/* モバイルの展開メニュー末尾に、提供SVGを無加工で表示する。 */
.hoshinoko-menu-corporate { display: none; }
@media (max-width: 900px) {
	.is-menu-open .hoshinoko-menu-corporate {
		display: block;
		flex: none;
		width: min(220px, 65vw);
		margin: 28px auto 12px;
		padding: 0;
		background: transparent;
		animation: hoshinoko-menu-item-in .4s cubic-bezier(.22, 1, .36, 1) .57s both;
	}
	.hoshinoko-menu-corporate img { display: block; width: 100%; height: auto; }
	.hoshinoko-menu-corporate:focus-visible { outline: 2px solid #3858e9; outline-offset: 4px; }
}

/* PCの法人ボタンも、残りのナビ項目と同じ余白で並べる。 */
@media (min-width: 901px) {
	.site-header { --hoshinoko-nav-gap: clamp(12px, calc((100vw - 800px) / 7), 32px); gap: var(--hoshinoko-nav-gap); }
	.site-header .site-navigation-primary.hoshinoko-navigation { width: max-content; max-width: none; }
	.hoshinoko-navigation .wp-block-navigation__container { width: max-content; gap: var(--hoshinoko-nav-gap); justify-content: flex-start; }
}

/* 法人リンクはマウスを乗せたときだけ、わずかに縮む。 */
.hoshinoko-header-logo--corporate {
	background: #333132;
	transition: transform .2s ease;
}

.hoshinoko-corporate-label {
	display: grid;
	width: 4em;
	justify-items: center;
}



.hoshinoko-corporate-label > span:nth-child(-n+2) {
	width: 3em;
	text-align: justify;
	text-align-last: justify;
}

.hoshinoko-corporate-arrow {
	position: absolute;
	inset-inline-start: calc(100% - .3em);
	inset-block-start: 50%;
	transform: translateY(-50%);
	width: 1em;
}

.hoshinoko-corporate-arrow svg { display: block; width: 100%; height: auto; }

@media (hover: hover) and (pointer: fine) {
	.hoshinoko-header-logo--corporate:hover { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
	.hoshinoko-header-logo--corporate { transition: none; }
	.hoshinoko-header-logo--corporate:hover { transform: none; }
}

/* 開くたびに、上の項目から短い間隔でフェードインする。 */
@keyframes hoshinoko-menu-panel-in {
	from { clip-path: circle(0 at calc(100% - 38px) 33px); }
	to { clip-path: circle(150% at calc(100% - 38px) 33px); }
}

@keyframes hoshinoko-menu-item-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.is-menu-open .hoshinoko-menu-corporate { animation: none; opacity: 1; transform: none; }
	.hoshinoko-navigation .wp-block-navigation__responsive-container.is-menu-open,
	.hoshinoko-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		animation: none;
	}
}

/* A vertical section title occupies its own full row at phone widths. */
@media (max-width: 760px) {
	.message-philosophy__row {
		width: 100%;
		margin-inline: 0;
		flex-direction: column;
		row-gap: 48px;
	}

	.message-philosophy__row > .message-philosophy__label {
		flex: none;
		margin: 0;
	}

	.message-philosophy__row > .message-philosophy__body {
		width: 100%;
		margin: 0;
	}

	.message-philosophy__body :is(.message-philosophy__ja, .message-philosophy__en, .message-philosophy__image, .hoshinoko-support__notice) {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}

	.about-page .about-section-title ~ * {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}

	.about-page .about-section-title + * {
		margin-block-start: 0;
	}
}

/* Keep WordPress.com’s preview badge from covering site controls during review. */
#wpcom-preview-site-badge {
	display: none !important;
}
