.ypf-kitsuke-intro {
	box-sizing: border-box;
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto clamp(40px, 6vw, 72px);
	padding: clamp(34px, 6vw, 72px);
	border: 1px solid var(--line, #dfd2c5);
	border-radius: 24px;
	background: linear-gradient(135deg, #fff, var(--paper, #f7f1ea));
	box-shadow: 0 22px 60px rgb(15 45 69 / 8%);
}

.ypf-kitsuke-intro *,
.ypf-access-phone *,
.ypf-en * {
	box-sizing: border-box;
}

.ypf-kitsuke-intro h1,
.ypf-kitsuke-intro p {
	margin: 0;
}

.ypf-kitsuke-intro h1 {
	color: var(--navy-dark, #0f2d45);
	font-family: var(--font-serif, "Yu Mincho", "Hiragino Mincho ProN", serif);
	font-size: clamp(2.15rem, 5vw, 4rem);
	line-height: 1.32;
	letter-spacing: .03em;
}

.ypf-eyebrow {
	margin: 0 0 14px !important;
	color: var(--red, #9d3d36);
	font-family: var(--font-sans, sans-serif);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .18em;
}

.ypf-kitsuke-lead {
	max-width: 780px;
	margin-top: 22px !important;
	font-size: clamp(1rem, 1.35vw, 1.1rem);
	line-height: 2;
}

.ypf-actions,
.ypf-en__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.ypf-actions .button,
.ypf-en__actions .button {
	min-height: 50px;
}

.ypf-access-phone {
	margin: 30px 0 0;
}

.ypf-access-phone > div {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line, #dfd2c5);
}

.ypf-access-phone dt {
	font-weight: 700;
}

.ypf-access-phone dd {
	margin: 0;
}

.ypf-access-phone a {
	color: inherit;
	font-weight: 700;
	text-underline-offset: .18em;
}

.ypf-language-switch > a {
	white-space: nowrap;
}

.ypf-en {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
	padding-bottom: clamp(40px, 6vw, 80px);
	color: var(--ink, #23323d);
	font-family: var(--font-sans, "Yu Gothic", sans-serif);
}

.ypf-en__language {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 24px;
}

.ypf-en__language a {
	color: var(--navy-dark, #0f2d45);
	font-weight: 700;
	text-underline-offset: .2em;
}

.ypf-en__intro,
.ypf-en__section,
.ypf-en__closing {
	padding: clamp(30px, 5vw, 64px);
	border: 1px solid var(--line, #dfd2c5);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 20px 56px rgb(15 45 69 / 7%);
}

.ypf-en__section,
.ypf-en__closing {
	margin-top: clamp(28px, 5vw, 56px);
}

.ypf-en__section--paper,
.ypf-en__closing {
	background: var(--paper, #f7f1ea);
}

.ypf-en h2,
.ypf-en h3,
.ypf-en p {
	margin-top: 0;
}

.ypf-en h2 {
	margin-bottom: 24px;
	color: var(--navy-dark, #0f2d45);
	font-family: var(--font-serif, "Yu Mincho", "Hiragino Mincho ProN", serif);
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.35;
}

.ypf-en h3 {
	color: var(--navy-dark, #0f2d45);
	font-family: var(--font-serif, "Yu Mincho", "Hiragino Mincho ProN", serif);
	font-size: 1.25rem;
	line-height: 1.45;
}

.ypf-en p,
.ypf-en dd,
.ypf-en summary {
	font-size: clamp(.98rem, 1.2vw, 1.08rem);
	line-height: 1.9;
}

.ypf-en__lead {
	max-width: 760px;
	font-size: clamp(1.08rem, 1.5vw, 1.25rem) !important;
}

.ypf-en__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ypf-en__grid article {
	padding: 24px;
	border: 1px solid var(--line, #dfd2c5);
	border-radius: 18px;
	background: var(--paper, #f7f1ea);
}

.ypf-en__grid article p {
	margin-bottom: 0;
}

.ypf-en__facts {
	margin: 0 0 28px;
}

.ypf-en__facts > div {
	display: grid;
	grid-template-columns: 8rem minmax(0, 1fr);
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line, #dfd2c5);
}

.ypf-en__facts dt {
	font-weight: 800;
}

.ypf-en__facts dd {
	margin: 0;
}

.ypf-en__faq {
	display: grid;
	gap: 12px;
}

.ypf-en__faq details {
	padding: 18px 20px;
	border: 1px solid var(--line, #dfd2c5);
	border-radius: 14px;
	background: #fff;
}

.ypf-en__faq summary {
	color: var(--navy-dark, #0f2d45);
	font-weight: 800;
	cursor: pointer;
}

.ypf-en__faq details p {
	margin: 12px 0 0;
}

@media (max-width: 760px) {
	.ypf-en__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.ypf-kitsuke-intro,
	.ypf-en {
		width: calc(100% - 28px);
	}

	.ypf-kitsuke-intro {
		padding: 30px 22px;
		border-radius: 18px;
	}

	.ypf-actions,
	.ypf-en__actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.ypf-actions .button,
	.ypf-en__actions .button {
		width: 100%;
		padding-inline: 14px;
		text-align: center;
	}

	.ypf-access-phone > div,
	.ypf-en__facts > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.ypf-en__intro,
	.ypf-en__section,
	.ypf-en__closing {
		padding: 28px 20px;
		border-radius: 18px;
	}
}

/* Compact only the admission-benefits section on the kitsuke page.
 * Desktop styles and every other page/section remain unchanged. */
@media (max-width: 720px) {
	body.page-id-32 .yusui-kitsuke-lp .benefits {
		padding: 42px 20px;
	}

	body.page-id-32 .yusui-kitsuke-lp .benefits .large-title {
		margin-bottom: 28px;
		font-size: clamp(23px, 6.3vw, 26px);
		line-height: 1.35;
		text-wrap: balance;
	}

	body.page-id-32 .yusui-kitsuke-lp .benefits .benefit-panel h2 {
		margin-bottom: 26px;
		font-size: clamp(21px, 5.8vw, 24px);
		line-height: 1.4;
		text-wrap: balance;
	}

body.page-id-32 .yusui-kitsuke-lp .benefits .ribbon {
	margin: 13px auto 16px;
	padding: 6px 10px;
	font-size: clamp(15px, 4.2vw, 17px);
	line-height: 1.3;
	text-wrap: balance;
}

	body.page-id-32 .yusui-kitsuke-lp .benefits .benefit-copy {
		font-size: clamp(16px, 4.4vw, 19px);
		letter-spacing: .02em;
		line-height: 1.65;
		text-wrap: pretty;
	}

	body.page-id-32 .yusui-kitsuke-lp .benefits .benefit-copy br {
		display: none;
	}

	body.page-id-32 .yusui-kitsuke-lp .benefits .small-note {
		margin-top: 2px;
		font-size: 14px;
		line-height: 1.6;
	}

	body.page-id-32 .yusui-kitsuke-lp .benefits .wide-photo {
		margin-top: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ypf-kitsuke-intro *,
	.ypf-access-phone *,
	.ypf-en * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* Keep the public Japanese navigation focused on the Japanese site until a
 * complete bilingual page set is prepared. The /en/ page itself is retained. */
footer a[href$="/en/"],
footer a[href$="/en"],
.site-footer a[href$="/en/"],
.site-footer a[href$="/en"] {
	display: none !important;
}
@media (min-width: 901px) {
	body.page-id-30 .yusui-care-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	body.page-id-30 .yusui-care-grid > .yusui-care-card {
		grid-column: span 2;
	}

	body.page-id-30 .yusui-care-grid > .yusui-care-card:nth-child(4) {
		grid-column: 2 / span 2;
	}

	body.page-id-30 .yusui-care-grid > .yusui-care-card:nth-child(5) {
		grid-column: 4 / span 2;
	}
}
