.dd-hero {
	position: relative;
	isolation: isolate;
	width: 100%;
	min-height: calc(100vh - 80px);
	overflow: hidden;
	background: #202221;
	color: #fff;
}

body.home .site-main,
body.front-page .site-main {
	width: 100%;
	max-width: none;
	padding: 0;
}

.dd-hero__media,
.dd-hero__image,
.dd-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.dd-hero__image,
.dd-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.05);
	transform-origin: center center;
}

.dd-hero__image {
	z-index: 2;
	opacity: 0;
	transition: opacity 1.4s ease-in-out;
}

.dd-hero__video {
	z-index: 1;
	opacity: 0;
	transition: opacity 1.8s ease-in-out;
	object-position: center center;
	transform: translate(-6%, -3%) scale(1.12);
}

.dd-hero.is-ready .dd-hero__image {
	opacity: 1;
}

.dd-hero.is-playing .dd-hero__image {
	opacity: 0;
}

.dd-hero.is-playing .dd-hero__video {
	opacity: 1;
}

.dd-hero::after {
	position: absolute;
	z-index: 3;
	inset: 0;
	background: none;
	content: "";
	pointer-events: none;
}

.dd-hero__content {
	position: relative;
	z-index: 4;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;

	width: min(1400px, calc(100% - 64px));
	min-height: inherit;

	margin-inline: auto;

	padding-block:
		3rem
		calc(3rem + var(--dd-wave-depth, 100px));
}


/* 写真の左側に、タイトルとサブコピーをひとまとまりで配置。 */
.dd-hero__content h1 {
	width: 60%;
	margin: 0;
	line-height: 0;
	text-shadow: none;
}

.dd-hero__title-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.dd-hero__content p {
	width: 60%;
	margin: clamp(28px, 2.2vw, 42px) 0 0;
	color: #1c1c1c;
	font-size: clamp(20px, 1.4vw, 26px);
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.02em;
	white-space: normal;
	background: transparent;
	text-shadow: none;
	box-shadow: none;
	filter: none;
}

.dd-hero__wave {
	position: absolute;
	z-index: 5;
	bottom: -1px;
	left: 0;
	display: block;
	width: 100%;
	height: var(--dd-wave-depth, 100px);
	color: var(--dd-wave-color, #fff);
	pointer-events: none;
}

.dd-hero__content h1,
.dd-hero__content p,
.dd-hero__cta {
	opacity: 0;
	transform: translateY(1rem);
}

.dd-hero:is(.is-ready, .is-playing) .dd-hero__content h1,
.dd-hero:is(.is-ready, .is-playing) .dd-hero__content p,
.dd-hero:is(.is-ready, .is-playing) .dd-hero__cta {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 1s ease,
		transform 1s ease;
}

.dd-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	min-height: 3.25rem;
	padding: 0.8rem 1.4rem;
	border-radius: 0.5rem;
	background: #b9dc50;
	color: #181818;
	font-weight: 700;
	text-decoration: none;
}

.dd-hero__cta:hover {
	filter: brightness(0.94);
}

/* タブレットでは右側の人物を少し内側へ寄せます。 */
@media (min-width: 48.001rem) and (max-width: 75rem) {
	.dd-hero {
		min-height: clamp(480px, 65vw, 720px);
	}

	.dd-hero__content h1 {
		width: 56%;
	}

	.dd-hero__image,
	.dd-hero__video {
		object-position: 62% center;
	}
}

@media (max-width: 48rem) {
	.dd-hero {
		min-height: 0;
		background: #243c3b;
	}

	.dd-hero__media {
		position: relative;
		height: clamp(280px, 82vw, 480px);
	}

	.dd-hero__image,
	.dd-hero__video {
		object-position: 73% center;
		transform: none;
	}

	.dd-hero__content {
		top: auto;
		left: auto;
		right: auto;
		width: calc(100% - 2.5rem);
		min-height: 0;
		justify-content: flex-end;
		padding-block: 2rem calc(2.5rem + var(--dd-wave-mobile-depth, 48px));
	}

	.dd-hero__wave {
		height: var(--dd-wave-mobile-depth, 48px);
	}

	.dd-hero__content h1,
	.dd-hero__content p {
		width: 100%;
	}

	.dd-hero__content h1 {
		max-width: none;
		font-size: clamp(2rem, 9vw, 3rem);
		line-height: 1.3;
	}

	.dd-hero__title-image {
		display: block;
		width: 100%;
		height: auto;
		filter: brightness(0) invert(1);
	}

	body.home .dd-hero .dd-hero__content p {
		color: #fff;
		text-shadow: none;
	}

	.dd-hero__content p {
		max-width: 32em;
		white-space: normal;
		margin: 1.5rem 0 0;
		font-size: clamp(17px, 4.5vw, 20px);
		line-height: 1.7;
	}

	.dd-hero__desktop-break {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dd-hero__image,
	.dd-hero__video {
		transform: scale(1.12) translateX(2%);

	}

	.dd-hero__video {
		display: none;
	}

	.dd-hero__image,
	.dd-hero__content h1,
	.dd-hero__content p,
	.dd-hero__cta {
		opacity: 1;
		transform: none;
	}
}
