/*====================
下層KV（共通）
ブレイクポイント: variables.css 参照
====================*/
.sub-kv {
	position: relative;
	overflow: hidden;
	height: 335px;
	background-color: #00297d;
}

@media screen and (max-width: 1279px) {
	.sub-kv {
		height: 175px;
	}
}

.sub-kv__bg {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.sub-kv__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	object-fit: cover;
	object-position: center;
	opacity: 0.45;
}

.sub-kv__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 1520px;
	height: 100%;
	margin-inline: auto;
	overflow: visible;
}

@media screen and (max-width: 1919px) {
	.sub-kv__inner {
		width: min(calc(100% - clamp(48px, 6vw, 80px)), 1520px);
	}
}

@media screen and (max-width: 1365px) {
	.sub-kv__inner {
		width: calc(100% - 48px);
	}
}

@media screen and (max-width: 1279px) {
	.sub-kv__inner {
		position: static;
		width: 100%;
		height: 175px;
	}
}

/* 日本語タイトルのみ（英字は inner 直下で content の外） */
.sub-kv__content {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	height: 100%;
	padding-inline: 0;
}

@media screen and (max-width: 1919px) {
	.sub-kv__content {
		padding-inline: clamp(24px, 3.125vw, 40px);
	}
}

@media screen and (max-width: 1365px) {
	.sub-kv__content {
		padding-inline: 24px;
	}
}

@media screen and (max-width: 1279px) {
	.sub-kv__content {
		position: absolute;
		inset: 0;
		z-index: 2;
		box-sizing: border-box;
		padding-inline: clamp(20px, 4vw, 32px);
	}
}

@media screen and (max-width: 600px) {
	.sub-kv__content {
		padding-inline: 16px;
	}
}

.sub-kv__title-wrap {
	display: flex;
	align-items: center;
	height: 100%;
	min-width: 0;
}

.sub-kv__title-sweep {
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	vertical-align: middle;
}

.sub-kv__title {
	margin: 0;
	color: #fff;
	font-family: var(--font-base);
	font-size: 60px;
	font-optical-sizing: auto;
	font-style: normal;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.07em;
}

@media screen and (max-width: 1279px) {
	.sub-kv__title {
		font-size: 24px;
	}
}

@media screen and (max-width: 600px) {
	.sub-kv__title {
		font-size: 32px;
	}
}

.sub-kv__title .js-anim-sweep__content {
	display: block;
	color: #fff;
}

/* 英字装飾 — sub-kv__inner 基準（content の overflow / padding の影響を受けない） */
.sub-kv__title-en {
	position: absolute;
	right: 0;
	bottom: 0;
	left: auto;
	z-index: 1;
	box-sizing: border-box;
	max-width: calc(100% - clamp(48px, 6.25vw, 80px));
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.14);
	font-family: var(--font-en);
	font-size: 180px;
	font-optical-sizing: auto;
	font-style: italic;
	font-weight: 600;
	line-height: 0.86;
	letter-spacing: 0.02em;
	text-align: right;
	text-transform: uppercase;
	pointer-events: none;
}

@media screen and (max-width: 1919px) {
	.sub-kv__title-en {
		right: clamp(24px, 3.125vw, 40px);
	}
}

@media screen and (max-width: 1365px) {
	.sub-kv__title-en:not(.sub-kv__title-en--nowrap) {
		right: 24px;
	}
}

@media screen and (max-width: 1279px) {
	.sub-kv__title-en {
		right: 8px;
		max-width: calc(100% - 16px);
		font-size: 52px;
		line-height: 0.88;
	}
}

.sub-kv__title-en--nowrap {
	right: 4px;
	padding-right: 4px;
	max-width: calc(100% - 16px);
	white-space: nowrap;
}

@media screen and (max-width: 1279px) {
	.sub-kv__title-en--nowrap {
		right: 8px;
		padding-right: 0;
	}
}

.sub-kv__title-en--pc {
	display: block;
}

@media screen and (max-width: 1279px) {
	.sub-kv__title-en--pc {
		display: none;
	}
}

.sub-kv__title-en--sp {
	display: none;
}

@media screen and (max-width: 1279px) {
	.sub-kv__title-en--sp {
		display: block;
	}
}
