/* autoprefixer grid: autoplace */

@charset "UTF-8";
.video-wrapper {
	aspect-ratio: 16 / 9;  /* 縦横比（アスペクト比） */
	overflow: hidden;
	position: relative; /* 絶対配置するコンテンツや疑似要素の基準とする */
	width: 100%;
/*
	max-width: 1600px;
*/
/*
	margin-bottom: 8rem;
*/
}

.video-wrapper::before {
	content: "";
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background-color: rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
	width: 100%;  /* 明示的に幅を設定（必須） */
	height: 100%; /* 明示的に高さを設定（必須） */
	object-fit: cover;  /* ラッパーにに収まるように拡大縮小 */
	object-position: 50% 0%;  /* 動画の位置の調整 */
}

.video-content {
	width: 50%;
	margin: 0;
	position: absolute; /* 絶対配置 */
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	color: #fff;
	text-align: center;
}

.video-content h2 {
	font-size: calc(60 / 1440 * 100vw);
	font-weight: 900;
	line-height: 140%;
	margin-bottom: 2rem;
}
.video-content .lead {
	width: 80%;
	margin-bottom: 1.5em;
	margin: 0 auto;
}
.video-content .lead p {
	text-align: left;
	font-size: calc(18 / 1440 * 100vw);
	font-weight: 400;
	line-height: 180%;
}

/* ビューポート幅が 480px 以下の場合はビデオを非表示にして背景画像を表示 */
@media screen and (max-width: 480px) {
	.video-wrapper {
		height: 100vh;  /* 高さの調整 */
		margin-bottom: 4rem;
		background: url(../images/topmovie1.png);  /* 別途背景画像を用意 */
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	.video-wrapper::before {
		content: "";
		position: absolute;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
		background-color: rgba(255, 255, 255, 0);
	}

	.video-wrapper video {
		display: none;  /* ビデオを非表示（背景画像を表示するため） */
	}

	.video-content {
		width: 90%;
		margin: 0;
		position: absolute; /* 絶対配置 */
		top: 35%;
		left: 50%;
		margin-right: -50%;
		transform: translate(-50%, -50%);
		color: #fff;
		text-align: center;
	}
	
	.video-content h2 {
		font-size: calc(128 / 1440 * 100vw);
		font-weight: 800;
		line-height: 160%;
		margin-bottom: 2rem;
	}
	.video-content .lead {
		width: 90%;
		margin-bottom: 1.5em;
		margin: 0 auto;
	}
	.video-content .lead p {
		text-align: left;
		font-size: calc(48 / 1440 * 100vw);
		font-weight: 400;
		line-height: 180%;
	}
}