/* =====================================================
   TOP「プルーセルとは」右側の動画サムネ＋モーダル再生
   2026-09-12 追加（front-page.php の .tp_about__images 差し替え）
   ===================================================== */

/* --- サムネ（既存の .tp_about__images の幅50%を継承） --- */
/* 絶対配置のヒーローの斜め境界までを高さに含め、画面高による空白をなくす。 */
.mv-section {
	height: calc(clamp(710px, 684.26px + 6.6vw, 811px) + min(8.334vw, 160px));
	min-height: 800px; /* 固定位置の採用バナーの下端も収める。 */
	transition: none;
}
.mv-section .mv-bg-layer {
	height: 100%;
	transition: none;
}
.mv-section .mv-achievement-overlay {
	transition: none;
}
/* 縦向きでは写真と斜め境界を一画面に収め、紹介動画をその次に置く。
   svhでアドレスバー開閉時の高さの揺れを避け、短い画面では既存の文字領域を確保する。 */
@media screen and (max-width: 1023px) and (orientation: portrait) {
	.mv-section {
		height: 100vh;
		height: 100svh;
		overflow: hidden;
	}
	.mv-section .mv-achievement-overlay {
		top: calc(100% - 8.334vw);
	}
}
.tp_about {
	margin-top: 0;
	padding: clamp(32px, 4vw, 64px) 0 clamp(48px, 5vw, 80px);
	transition: none;
}
.tp_about .tp_about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 4vw, 64px);
	align-items: center;
	transition: none;
}
.tp_about .tp_about__content,
.tp_about .tp_about__video {
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
	transition: none;
}
.tp_about .tp_about__content--lead {
	width: 100%;
}
.tp_about .tp_about__content--btn a {
	min-width: 0;
	width: 100%;
	max-width: none;
}
.tp_about .tp_about__content--btn {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.tp_about__video {
	flex: 0 0 50%;
	width: 50%;
	max-width: 50%;
	min-width: 0;
	align-self: center;
}
.tp_about__video--trigger {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 820; /* 動画本体の絵の部分（上下の黒帯を除いた比率） */
	overflow: hidden;
	background: #0d1b4c;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	border: 0;
	padding: 0;
	text-align: left;
}
.tp_about__video--trigger img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.tp_about__video--trigger:hover img {
	transform: scale(1.03);
}
.tp_about__video--play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: rgba(13, 27, 76, 0.85);
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
	transition: background 0.3s ease, transform 0.3s ease;
	animation: tpAboutVideoPulse 2.4s ease-out infinite;
}
.tp_about__video--play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -14px 0 0 -9px;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #fff;
}
.tp_about__video--trigger:hover .tp_about__video--play {
	background: rgba(13, 27, 76, 1);
	transform: scale(1.06);
}
@keyframes tpAboutVideoPulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
	70%  { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.tp_about__video--caption {
	display: block;
	margin-top: 14px;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: #fff;
	opacity: 0.85;
}

/* --- モーダル --- */
.tp_video_modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.85);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.tp_video_modal.is-open {
	display: flex;
}
.tp_video_modal.is-visible {
	opacity: 1;
}
.tp_video_modal__inner {
	position: relative;
	width: min(1120px, 100%, calc((100vh - 112px) * 1.777778));
	width: min(1120px, 100%, calc((100svh - 112px) * 1.777778));
	aspect-ratio: 16 / 9;
	transition: none;
	background: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.tp_video_modal__inner iframe,
.tp_video_modal__inner video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.tp_video_modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 44px;
	height: 44px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	color: #fff;
}
.tp_video_modal__close::before,
.tp_video_modal__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 2px;
	background: #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}
.tp_video_modal__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
body.tp_video_modal-open {
	overflow: hidden;
}

/* --- SP --- */
@media screen and (max-width: 1023px) {
	.tp_about .tp_about__inner {
		grid-template-columns: minmax(0, 1fr);
		max-width: 760px;
		gap: 32px;
	}
	.tp_about .tp_about__video {
		grid-row: 1;
	}
	.tp_about .tp_about__content {
		grid-row: 2;
		order: 0;
	}
	.tp_about .tp_about__content--lead {
		margin-bottom: 32px;
	}
}
@media screen and (max-width: 767px) {
	.tp_about .tp_about__content--btn {
		grid-template-columns: minmax(0, 1fr);
		max-width: 320px;
		margin-inline: auto;
	}
	.tp_about__video {
		flex: 0 0 100%;
		width: 100%;
		max-width: none;
		margin-top: 8px;
	}
	.tp_about__video--play {
		width: 64px;
		height: 64px;
		margin: -32px 0 0 -32px;
	}
	.tp_about__video--play::after {
		margin: -11px 0 0 -7px;
		border-width: 11px 0 11px 19px;
	}
	.tp_video_modal {
		padding: 16px;
	}
	.tp_video_modal__close {
		top: -40px;
	}
}

/* タブレットでは既存のスマホメニューを使用し、ナビ項目の途中改行を防ぐ。 */
@media screen and (min-width: 768px) and (max-width: 1279px) {
	.header_main { min-height: 60px; padding: 8px 20px; }
	.header_main.header_in_mv:not(.header_scroll) { --menu-top-offset: 50px; }
	.header_main .header_logo img { max-width: 230px; height: auto; }
	nav#menu { display: none; }
	nav.mobile-menu {
		display: flex !important;
		position: absolute;
		top: 8px;
		right: 16px;
		z-index: 1000;
	}
	.mobile-menu__checkbox { display: none; }
	.mobile-menu__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		width: 44px;
		height: 44px;
		cursor: pointer;
		z-index: 100;
	}
	.mobile-menu__icon,
	.mobile-menu__icon::before,
	.mobile-menu__icon::after {
		display: block;
		position: relative;
		width: 24px;
		height: 2px;
		background: #001741;
	}
	.mobile-menu__icon::before,
	.mobile-menu__icon::after { content: ""; position: absolute; }
	.mobile-menu__icon::before { top: -8px; }
	.mobile-menu__icon::after { top: 8px; }
	.mobile-menu__container {
		position: fixed;
		top: 0;
		right: 0;
		width: min(420px, 70vw);
		height: calc(100vh - var(--menu-top-offset, 0px));
		height: calc(100dvh - var(--menu-top-offset, 0px));
		padding: 68px 20px 24px;
		background: #fff;
		overflow-y: auto;
		visibility: hidden;
		transform: translateX(100%);
		transition: transform .25s ease, visibility .25s;
	}
	.mobile-menu__container ul { display: block; }
	.mobile-menu__container a {
		display: block;
		padding: 14px 8px;
		border-bottom: 1px solid #dadada;
		color: #001741;
		font-size: 14px;
		line-height: 1.5;
	}
	.mobile-menu__container .sp_submenu_list a { padding-left: 28px; }
	.mobile-menu__checkbox:checked ~ .mobile-menu__container {
		visibility: visible;
		transform: translateX(0);
		box-shadow: -8px 0 24px rgb(0 0 0 / 15%);
	}
	.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon { background: transparent; }
	.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::before { top: 0; transform: rotate(45deg); }
	.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::after { top: 0; transform: rotate(-45deg); }
}
