/*====================
施工事例詳細：ゆらぎ（右下 347×229 / 左下 335×250）
====================*/
.result-single__box1,
.result-single__box2-band {
	position: relative;
	overflow: visible;
}

.result-single__box1-inner,
.result-single__box2 {
	position: relative;
	z-index: 1;
}

.result-single__yuragi-slot {
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.result-single__yuragi {
	position: relative;
	width: 100%;
	height: 100%;
}

.result-single__yuragi-shape {
	position: absolute;
	display: block;
	transform-origin: 50% 50%;
}

/* 右下 347×229 — 1920px 時 右端 ~1480px / 下 64px */
.result-single__yuragi-slot--bottom-right {
	--result-yuragi-width: 347px;
	--result-yuragi-height: 229px;

	bottom: 64px;
	left: max(
		calc(100% - var(--result-yuragi-width) - 16px),
		calc(50vw + 512px - var(--result-yuragi-width) + 8px)
	);
	width: var(--result-yuragi-width);
	height: var(--result-yuragi-height);
}

.result-single__yuragi--347x229 {
	width: 347px;
	height: 229px;
}

/* 347×229 — 左下 0,0 → top = 229 - y - height */
.result-single__yuragi-shape--br-1 {
	left: 8px;
	top: 194px;
	width: 28px;
	height: 31px;
	background: #9ad7ff;
	opacity: 0.7;
	clip-path: polygon(40% 0, 100% 100%, 0 75%);
}

.result-single__yuragi-shape--br-2 {
	left: 144px;
	top: 148px;
	width: 28px;
	height: 49px;
	background: #92c8ea;
	opacity: 0.5;
	clip-path: polygon(0 0, 100% 38%, 22% 100%);
}

.result-single__yuragi-shape--br-3 {
	left: 150px;
	top: 117px;
	width: 10px;
	height: 12px;
	background: #35566b;
	opacity: 1;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.result-single__yuragi-shape--br-4 {
	left: 240px;
	top: 3px;
	width: 105px;
	height: 109px;
	background: #d1edff;
	opacity: 0.3;
	clip-path: polygon(16% 0, 100% 100%, 0 82%);
}

.result-single__yuragi-shape--br-5 {
	left: 300px;
	top: 38px;
	width: 28px;
	height: 50px;
	background: #16346d;
	opacity: 0.5;
	clip-path: polygon(0 0, 100% 38%, 22% 100%);
}

/* 左下 335×250 — 1920px 時 1760px 幅エリア左端 / 下 24px */
.result-single__yuragi-slot--bottom-left {
	--result-yuragi-width: 335px;
	--result-yuragi-height: 250px;
	--result-yuragi-band-max: 1760px;

	bottom: 24px;
	left: max(
		16px,
		calc((100vw - min(100vw, var(--result-yuragi-band-max))) / 2)
	);
	width: var(--result-yuragi-width);
	height: var(--result-yuragi-height);
}

.result-single__yuragi--335x250 {
	width: 335px;
	height: 250px;
}

/* 335×250 — 左下 0,0 → top = 250 - y - height */
.result-single__yuragi-shape--bl-1 {
	left: 1px;
	top: -3px;
	width: 11px;
	height: 13px;
	background: #35566b;
	opacity: 1;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.result-single__yuragi-shape--bl-2 {
	left: 24px;
	top: 83px;
	width: 28px;
	height: 31px;
	background: #9ad7ff;
	opacity: 0.8;
	clip-path: polygon(40% 0, 100% 100%, 0 75%);
}

.result-single__yuragi-shape--bl-3 {
	left: 0;
	top: 13px;
	width: 132px;
	height: 137px;
	background: #d1edff;
	opacity: 0.5;
	clip-path: polygon(16% 0, 100% 100%, 0 82%);
}

.result-single__yuragi-shape--bl-4 {
	left: 296px;
	top: 213px;
	width: 61px;
	height: 36px;
	background: #92c8ea;
	opacity: 0.3;
	clip-path: polygon(0 0, 100% 38%, 22% 100%);
}

.result-single__yuragi-shape--bl-5 {
	left: 318px;
	top: 223px;
	width: 13px;
	height: 15px;
	background: #35566b;
	opacity: 0.9;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* タブレット・SP — 200px 枠内（右下 / 左下を維持） */
@media screen and (max-width: 1279px) {
	.result-single__yuragi-slot--bottom-right {
		--result-yuragi-sp-max: 200px;

		left: auto;
		right: 16px;
		bottom: 64px;
		width: var(--result-yuragi-sp-max);
		height: calc(var(--result-yuragi-sp-max) * 229 / 347);
		overflow: hidden;
	}

	.result-single__yuragi-slot--bottom-right .result-single__yuragi--347x229 {
		position: absolute;
		right: 0;
		bottom: 0;
		width: 347px;
		height: 229px;
		transform: scale(calc(200 / 347));
		transform-origin: bottom right;
	}

	.result-single__yuragi-slot--bottom-left {
		--result-yuragi-sp-max: 200px;

		left: 16px;
		bottom: 24px;
		width: var(--result-yuragi-sp-max);
		height: calc(var(--result-yuragi-sp-max) * 250 / 335);
		overflow: hidden;
	}

	.result-single__yuragi-slot--bottom-left .result-single__yuragi--335x250 {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 335px;
		height: 250px;
		transform: scale(calc(200 / 335));
		transform-origin: bottom left;
	}
}

@media screen and (max-width: 767px) {
	.result-single__yuragi-slot--bottom-right {
		bottom: 48px;
	}

	.result-single__yuragi-slot--bottom-left {
		bottom: 16px;
	}
}
