/* INTEGRA Type S meets Lance Stroll */
/* 数値は _ref/meets_Lance-pc.json（PC 1900px 幅）、-sp.json（750px 幅＝1/2 で使用）、-gallery-item.json、-modal.json のもの。リード文と Play Full Movie は -pc_1028.json・-sp_1028.json */
/* 斜面の傾き 267/1900（≒8°）は screen-2.svg のパス M0 267 L1900 0 */

.p-lance {
	/* ファーストビュー＝画面の高さ − ヘッダー。--p-lance-offset はヘッダーの高さを script.js で実測して入れる */
	--p-lance-hero: calc(100svh - var(--p-lance-offset, 144px));
	--p-lance-slope: calc(100vw * 267 / 1900);
	/* 濃いノイズの開始位置：ファーストビュー下端からの距離（右下に固定していた旧 Play Full Movie から逆算していた位置をそのまま固定） */
	--p-lance-screen-offset: 166.48px;
	/* スクロール表示：画面の右端から、ファーストビュー下端から（いずれも下端・右端まで） */
	--p-lance-scroll-right: 73px;
	--p-lance-scroll-bottom: 246px;
	position: relative;
	color: #fff
}
/* ページトップボタン（action-menu.js が追加）は、このページでは PC・SP とも非表示（ユーザー指示） */
.btn_pagetop {
	display: none
}
.p-lance img {
	display: block;
	max-width: 100%;
	height: auto
}

/* 動画：画面に固定し、その上をノイズとコンテンツがせり上がる */
.p-lance-movie {
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100vh
}
.p-lance-movie__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover
}
/* screen-base：4px のタイル（screen-base.svg 内の PNG）を 2px で表示 */
.p-lance-movie::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3C/svg%3E") 0 0 / 2px 2px
}

/* 濃いノイズ（hs-dot）：3px のタイル（screen-2.svg 内の PNG）、opacity .75、overlay */
.p-lance-screen {
	position: absolute;
	top: calc(var(--p-lance-hero) - var(--p-lance-screen-offset));
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3'%3E%3Cpath d='M1 0h2v1H1zM0 1h3v2H0z'/%3E%3C/svg%3E") 0 0 / 3px 3px;
	opacity: 0.75;
	mix-blend-mode: overlay;
	clip-path: polygon(0 var(--p-lance-slope), 100% 0, 100% 100%, 0 100%)
}

/* ファーストビュー・リード文 */
.p-lance-intro {
	position: relative;
	z-index: 2
}
.p-lance-intro__title {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--p-lance-hero);
	margin: 0
}
.p-lance-intro__title img {
	width: 606px;
	max-width: 80%
}
/* スクロール表示：濃いノイズより上に置き、1秒遅れて動き始める。上から伸びて現れ（1.6s、ease-out）、3s 止まり、下へ抜けて消え（1.5s、ease-in）、0.5s 置いてくり返す */
.p-lance-intro__scroll {
	position: absolute;
	top: calc(var(--p-lance-hero) - var(--p-lance-scroll-bottom));
	right: var(--p-lance-scroll-right);
	transform: translateY(-100%);
	animation: p-lance-scroll 6.6s 1s infinite backwards
}
@keyframes p-lance-scroll {
	0% {
		clip-path: inset(0 0 100% 0);
		animation-timing-function: ease-out
	}
	24.242%,
	69.697% {
		clip-path: inset(0);
		animation-timing-function: ease-in
	}
	92.424%,
	100% {
		clip-path: inset(100% 0 0 0)
	}
}
.p-lance-intro__lead {
	margin: 158px 0 0;
	font-family: var(--font-normal);
	font-size: 20px;
	line-height: 80px;
	text-align: center
}

/* Play Full Movie：リード文の下 154、ギャラリーの上 234。クリック範囲を広げるため画像の周りに 10px の余白を付け、その分外側の間隔を詰める */
.p-lance-play {
	display: block;
	box-sizing: content-box;
	width: 336px;
	padding: 10px;
	margin: 144px auto 224px
}
@media (hover: hover) {
	.p-lance-play:hover {
		opacity: 0.7
	}
}

/* ギャラリー：2列、列の間 4px、1枚は 948×770 の平行四辺形（右上がり 134px）、行の送り 641、右列が 134 上 */
/* PC は全幅（1900 を超えても比率で拡大） */
.p-lance-gallery {
	position: relative;
	z-index: 2;
	container-type: inline-size
}
.p-lance-gallery__list {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 4px;
	padding: 0 0 calc((100% - 4px) / 2 * 134 / 948);
	margin: 0;
	list-style: none
}
/* gallery_bg：ギャラリー全体の外形（上下とも左端が 268px 下がる平行四辺形）の黒地 */
.p-lance-gallery__list::before {
	--p-lance-gallery-slope: calc((100cqw - 4px) * 134 / 948);
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	clip-path: polygon(0 var(--p-lance-gallery-slope), 100% 0, 100% calc(100% - var(--p-lance-gallery-slope)), 0 100%)
}
.p-lance-gallery__item {
	position: relative;
	aspect-ratio: 948 / 770
}
.p-lance-gallery__item:nth-child(odd) {
	transform: translateY(calc(134 / 770 * 100%))
}
.p-lance-gallery__item:nth-child(n+3) {
	margin-top: calc(-129 / 948 * 100%)
}
.p-lance-gallery__button {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	clip-path: polygon(0 calc(134 / 770 * 100%), 100% 0, 100% calc(636 / 770 * 100%), 0 100%)
}
/* 画像はデザインのトリミング（scaleMode CROP）どおりに 948×770 の枠の範囲で切り出してある（SP は 373×425） */
.p-lance .p-lance-gallery__button img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover
}
/* ホバー：画像に #2a36b8（乗算）とドット（乗算）を重ねる。ドットは screen-gallery.svg 内の 4px のタイルを 4px で表示 */
/* 乗算どうしは順番を入れ替えても結果が同じなので、#2a36b8 とドットを乗算でまとめてから画像に乗算する */
.p-lance-gallery__button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 0h2v2H0zM2 2h2v2H2z'/%3E%3C/svg%3E") 0 0 / 4px 4px, #2a36b8;
	background-blend-mode: multiply;
	mix-blend-mode: multiply;
	transition: opacity 0.3s
}
/* アイコン icon-zoom.svg（グループの opacity .75・hard-light は CSS 側で指定。パスの opacity .8 は SVG 内）：30.75×21.69 を (904, 604) に。ホバーで不透明度 1 */
.p-lance-gallery__button::after {
	content: "";
	position: absolute;
	top: calc(604 / 770 * 100%);
	left: calc(904 / 948 * 100%);
	z-index: 1;
	width: calc(30.75 / 948 * 100%);
	aspect-ratio: 30.75 / 21.69;
	background: url(/INTEGRATYPE-S/meets_Lance/images/icon-zoom.svg) 0 0 / 100% 100% no-repeat;
	opacity: 0.75;
	mix-blend-mode: hard-light;
	transition: opacity 0.3s
}
@media (hover: hover) {
	.p-lance-gallery__button:hover::before {
		opacity: 1
	}
	.p-lance-gallery__button:hover::after {
		opacity: 1
	}
}

/* CHART：ギャラリーの下 109 → ロゴ 464.14×54 → 21 → 車 980.23×551.87 → 34 → 製品情報ボタン 329×64 → 236 */
.p-lance-chart {
	position: relative;
	padding: 109px 20px 200px
}
/* screen_plus：#646464 35%（ギャラリーの下端の 434px 上から） */
.p-lance-chart::before {
	content: "";
	position: absolute;
	top: -434px;
	right: 0;
	bottom: 0;
	left: 0;
	background: #646464;
	opacity: 0.35
}
.p-lance-chart__inner {
	position: relative;
	z-index: 2
}
.p-lance-chart__logo {
	margin: 0
}
.p-lance .p-lance-chart__logo img {
	width: 464.14px;
	margin: 0 auto
}
.p-lance .p-lance-chart__image img {
	width: 980.23px;
	margin: 21px auto 0
}
.p-lance-chart__more {
	margin-top: 34px;
	text-align: center
}
.p-lance-chart__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 329px;
	max-width: 100%;
	height: 64px;
	padding: 14px 40px;
	border: 1px solid #b5b5b5;
	background: #000;
	color: #fff;
	font-family: var(--font-bold);
	font-size: 18px;
	line-height: 20px;
	text-decoration: none
}
.p-lance-chart__button::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 32px;
	height: 16px;
	margin-top: -8px;
	background: url(/INTEGRATYPE-S/meets_Lance/images/icon-arrow.svg) center / contain no-repeat
}

/* モーダル：画像 3:2、画面に収まる最大サイズ、背景は黒 80% */
.p-lance-modal {
	width: min(100vw, 100dvh * 3 / 2);
	max-width: none;
	max-height: none;
	aspect-ratio: 3 / 2;
	padding: 0;
	border: 0;
	background: none;
	overflow: visible
}
.p-lance-modal::backdrop {
	background: rgba(0, 0, 0, 0.8)
}
.p-lance-modal__image {
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	object-fit: cover
}
/* 閉じるボタン：φ58 白 1px の円と ×（19.84 四方）、背面に #d9d9d9 φ60 を乗算。右 22・下 23 */
.p-lance-modal__close {
	position: absolute;
	right: 22px;
	bottom: 23px;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer
}
.p-lance-modal__close::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #d9d9d9;
	mix-blend-mode: multiply
}
.p-lance-modal__close::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 58' fill='none' stroke='%23fff' vector-effect='non-scaling-stroke'%3E%3Ccircle cx='29' cy='29' r='28.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M19.08 19.08 38.92 38.92M38.92 19.08 19.08 38.92' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat
}

@media screen and (max-width: 768px) {
	.p-lance {
		--p-lance-hero: calc(100svh - var(--p-lance-offset, 113px));
		/* 濃いノイズとスクロール表示は、旧 Play 基準の位置から 40px 下げる（ユーザー指示） */
		--p-lance-screen-offset: 91.84px;
		/* 縦は濃いノイズの開始から 10px 上（SP デザインのままだとノイズに重なるため） */
		--p-lance-scroll-right: 25px;
		--p-lance-scroll-bottom: 101.84px
	}
	.p-lance .p-lance-intro__scroll {
		width: 4px
	}
	/* SP：黒 25% を乗算で動画に重ねる（ノイズは無し。SP デザインの #646464 はフレームの背景色で、動画の代わり） */
	.p-lance-screen {
		background: #000;
		opacity: 0.25;
		mix-blend-mode: multiply
	}
	.p-lance-intro__lead {
		padding: 0 16px;
		margin: 79px 0 0;
		font-size: 14px;
		line-height: 2.2
	}
	.p-lance-play {
		width: 168px;
		margin: 62px auto 235.5px
	}
	/* SP のギャラリー：750 デザインの 1/2。1枚 186.5×212.5（右上がり 26.5）、列の間 2、行の送り 188.5。黒地は PC と同じく付け、アイコンは無し */
	.p-lance-gallery__list {
		column-gap: 2px;
		padding-bottom: calc((100% - 2px) / 2 * 53 / 373)
	}
	.p-lance-gallery__list::before {
		--p-lance-gallery-slope: calc((100cqw - 2px) * 53 / 373)
	}
	.p-lance-gallery__button::after {
		display: none
	}
	.p-lance-gallery__item {
		aspect-ratio: 373 / 425
	}
	.p-lance-gallery__item:nth-child(odd) {
		transform: translateY(calc(53 / 425 * 100%))
	}
	.p-lance-gallery__item:nth-child(n+3) {
		margin-top: calc(-48 / 373 * 100%)
	}
	.p-lance-gallery__button {
		clip-path: polygon(0 calc(53 / 425 * 100%), 100% 0, 100% calc(372 / 425 * 100%), 0 100%)
	}
	.p-lance-chart {
		padding: 75.5px 0 120px
	}
	/* SP の閉じるボタン：φ30・右 5・下 5（ユーザー指定）。背面の円は PC と同じく 1px 外側まで */
	.p-lance-modal__close {
		right: 5px;
		bottom: 5px;
		width: 30px;
		height: 30px
	}
	.p-lance-modal__close::before {
		width: 32px;
		height: 32px
	}
	.p-lance .p-lance-chart__logo img {
		width: 232px
	}
	.p-lance .p-lance-chart__image img {
		width: 100%;
		margin-top: 43px
	}
	.p-lance-chart__more {
		margin-top: 49px
	}
}
