.m086-hero {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 100%;
	height: clamp(560px, 56.25vw, 720px);
	min-height: 0;
	overflow: hidden;
	background: #173e2e;
}

.m086-hero *,
.m086-hero *::before,
.m086-hero *::after {
	box-sizing: border-box;
}

.m086-hero__media,
.m086-hero__slides,
.m086-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.m086-hero__media {
	z-index: 0;
	overflow: hidden;
	background: #173e2e;
}

.m086-hero__media::after {
	position: absolute;
	z-index: 2;
	inset: 0;
	content: "";
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(5, 25, 17, .24) 0%, rgba(5, 25, 17, .08) 44%, rgba(5, 25, 17, 0) 72%, rgba(5, 25, 17, .03) 100%),
		linear-gradient(0deg, rgba(5, 25, 17, .06) 0%, transparent 44%);
}

.m086-hero__slides,
.m086-hero__slide {
	overflow: hidden;
}

.m086-hero__slide {
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	transition: none;
	will-change: opacity;
}

.m086-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
}

/* 次の画像を現在の画像の上へ重ね、2秒かけて透明度を上げる。 */
.m086-hero__slide.is-entering {
	z-index: 2;
	opacity: 0;
	transition: opacity 2s ease-in-out !important;
}

.m086-hero__slide.is-entering.is-visible {
	opacity: 1;
}

.m086-hero__slide img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: cover;
	object-position: var(--m086-position, center center);
	filter: saturate(1.03) contrast(1.01);
}

.m086-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1248px;
	height: 100%;
	margin: 0 auto;
	padding: clamp(56px, 6.2vw, 80px) 24px clamp(72px, 7vw, 92px);
}

.m086-hero__content {
	width: min(100%, 690px);
	padding: clamp(26px, 3.2vw, 42px);
	border: 1px solid rgba(255, 255, 255, .34);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(12, 44, 30, .68), rgba(12, 44, 30, .46));
	box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.m086-hero__title {
	margin: 0 0 24px;
	color: #fff !important;
	font-size: clamp(34px, 4.2vw, 58px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: .015em;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

.m086-hero__description {
	max-width: 620px;
	margin: 0 0 28px;
	color: #fff !important;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.85;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .32);
}

.m086-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 24px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 9px;
	background: #1f6b45;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
	color: #fff !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.m086-hero__button:is(:hover, :focus-visible) {
	transform: translateY(-2px);
	background: #123f2c;
	box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
	color: #fff !important;
	outline: 3px solid rgba(255, 255, 255, .9);
	outline-offset: 3px;
}

.m086-hero__status {
	position: absolute;
	z-index: 4;
	left: max(24px, calc((100% - 1200px) / 2 + 24px));
	bottom: 38px;
	display: flex;
	align-items: center;
	gap: 9px;
}

.m086-hero__status-item {
	display: block;
	width: 28px;
	height: 8px;
	min-height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	opacity: .36;
	cursor: pointer;
	transform: scaleX(1);
	transform-origin: center;
	transition: opacity .2s ease, transform .2s ease;
}

.m086-hero__status-item.is-active {
	opacity: 1;
	transform: scaleX(1.18);
}

.m086-hero__status-item:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

.m086-hero__controls {
	position: absolute;
	z-index: 4;
	right: max(24px, calc((100% - 1200px) / 2 + 24px));
	bottom: 28px;
}

.m086-hero__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .76);
	border-radius: 999px;
	background: rgba(10, 35, 24, .5);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: transform .2s ease, background-color .2s ease;
}

.m086-hero__toggle:is(:hover, :active) {
	transform: translateY(-2px);
	background: rgba(10, 35, 24, .72);
}

.m086-hero__toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.m086-hero__toggle-paused {
	display: none;
}

.m086-hero.is-paused .m086-hero__toggle-running {
	display: none;
}

.m086-hero.is-paused .m086-hero__toggle-paused {
	display: inline;
}

@media (max-width: 1024px) {
	.m086-hero {
		height: clamp(600px, 70vw, 700px);
	}
}

@media (max-width: 767px) {
	/*
	 * モバイルでは、写真を上部の独立領域として見せ、
	 * 文字カードを写真下端へ約30%重ねる。
	 */
	html body .m086-hero {
		--m086-mobile-photo-height: clamp(300px, 82vw, 350px);
		--m086-mobile-overlap: clamp(90px, 24.6vw, 105px);
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: hidden !important;
		background: #173e2e !important;
	}

	/* メディア全体はヒーロー高に追従し、画像だけを上部の写真領域へ限定する。 */
	html body .m086-hero__media {
		inset: 0 !important;
		height: 100% !important;
		overflow: visible !important;
		background: transparent !important;
	}

	html body .m086-hero__slides {
		top: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		left: 0 !important;
		height: var(--m086-mobile-photo-height) !important;
		overflow: hidden !important;
		border-radius: 0 0 18px 18px;
	}

	html body .m086-hero__slide {
		height: 100% !important;
	}

	html body .m086-hero__media::after {
		top: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		left: 0 !important;
		height: var(--m086-mobile-photo-height) !important;
		border-radius: 0 0 18px 18px;
		background:
			linear-gradient(0deg, rgba(5, 25, 17, .18) 0%, rgba(5, 25, 17, .04) 58%, rgba(5, 25, 17, 0) 100%),
			linear-gradient(90deg, rgba(5, 25, 17, .04), rgba(5, 25, 17, 0));
	}

	html body .m086-hero__inner {
		position: relative !important;
		z-index: 3 !important;
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding:
			calc(var(--m086-mobile-photo-height) - var(--m086-mobile-overlap))
			20px
			112px !important;
	}

	html body .m086-hero__content {
		width: 100% !important;
		max-width: 690px !important;
		margin: 0 auto !important;
		padding: 22px 16px 24px !important;
		border-radius: 14px;
		background: linear-gradient(145deg, rgba(12, 44, 30, .92), rgba(12, 44, 30, .82));
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}

	/* balanceによる不自然な右余白をなくし、枠幅いっぱいで自然に改行する。 */
	html body .m086-hero__title {
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 20px !important;
		font-size: clamp(28px, 7.7vw, 30px) !important;
		font-weight: 700 !important;
		line-height: 1.38 !important;
		letter-spacing: 0 !important;
		text-wrap: auto !important;
		word-break: normal !important;
		line-break: strict !important;
		overflow-wrap: break-word !important;
	}

	html body .m086-hero__description {
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 22px !important;
		font-size: 16px !important;
		line-height: 1.85 !important;
	}

	html body .m086-hero__button {
		display: flex !important;
		width: 100% !important;
		min-height: 54px;
		padding: 12px 16px;
		font-size: 17px;
	}

	html body .m086-hero__slide img {
		object-position: var(--m086-mobile-position, center center);
	}

	html body .m086-hero__controls {
		right: 20px;
		bottom: 24px;
	}

	html body .m086-hero__status {
		left: 20px;
		bottom: 42px;
	}

	/* 画像が多い場合も停止・再開ボタンと重ならないように収める。 */
	html body .m086-hero--many-images .m086-hero__status {
		right: 20px;
		bottom: 78px;
		max-width: calc(100% - 40px);
		flex-wrap: wrap;
		gap: 6px;
	}

	html body .m086-hero--many-images .m086-hero__status-item {
		width: 16px;
		height: 10px;
		min-height: 10px;
	}

	html body .m086-hero__toggle {
		min-width: 44px;
		min-height: 44px;
		padding: 8px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.m086-hero__button,
	.m086-hero__toggle,
	.m086-hero__status-item {
		transition: none;
	}

	/* 画像の切替認識に必要なため、穏やかな透明度ディゾルブは維持する。 */
	.m086-hero__slide img {
		filter: none;
	}
}

/* 1.3.1: copy-side state is exposed to CSS; the panel stays visible during transitions. */
