/* 対象範囲: パーマカテゴリーメニュー */
/* Keep the perm hero inside the WordPress body width; its H1 stays over the image. */
.kae-page-styles.kae-menu.kae-menu-category-page .kae-menu-category--perm .kae-menu-category__hero {
	width: 100%;
	left: auto;
	transform: none;
}

/* Keep the perm hero tagline on one desktop line without changing its type size. */
@media (min-width: 761px) {
	.kae-page-styles.kae-menu.kae-menu-category-page .kae-menu-category--perm .kae-menu-category__tagline {
		max-width: 640px;
	}
}

/* Pin the perm category mobile hero photo inside its ratio-sized frame. */
@media (max-width: 760px) {
	.kae-page-styles.kae-menu .kae-menu-category--perm .kae-menu-category__hero {
		display: block;
		min-height: 0;
	}

	.kae-page-styles.kae-menu .kae-menu-category--perm .kae-menu-category__hero-image {
		display: block;
		position: relative;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		overflow: hidden;
	}

	.kae-page-styles.kae-menu .kae-menu-category--perm .kae-menu-category__hero-image img {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-width: none;
		object-fit: cover;
		object-position: center 42%;
	}
}
