/*====================
お知らせ ゆらぎ（一覧・詳細 共通）
各BOX内：左下 0,0 → CSS top = 高さ - y - height
====================*/
.topics-page__yuragi-slot {
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.topics-page__yuragi {
	position: relative;
}

.topics-page__yuragi--top-right {
	width: 321px;
	height: 300px;
}

.topics-page__yuragi--bottom-left {
	width: 310px;
	height: 310px;
}

.topics-page__yuragi-shape {
	position: absolute;
	display: block;
	transform-origin: 50% 50%;
}

/* 右上 321×300 */
.topics-page__yuragi-shape--tr-1 {
	left: 1px;
	top: 16px;
	width: 13px;
	height: 14px;
	background: #35566b;
	opacity: 1;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.topics-page__yuragi-shape--tr-2 {
	left: 2px;
	top: 4px;
	width: 36px;
	height: 62px;
	background: #92c8ea;
	opacity: 0.5;
	clip-path: polygon(0 0, 100% 38%, 22% 100%);
}

.topics-page__yuragi-shape--tr-3 {
	left: 162px;
	top: 130px;
	width: 12px;
	height: 24px;
	background: #b7d7eb;
	opacity: 0.7;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.topics-page__yuragi-shape--tr-4 {
	left: 143px;
	top: 83px;
	width: 132px;
	height: 137px;
	background: #d1edff;
	opacity: 0.5;
	clip-path: polygon(16% 0, 100% 100%, 0 82%);
}

.topics-page__yuragi-shape--tr-5 {
	left: 250px;
	top: 184px;
	width: 28px;
	height: 31px;
	background: #9ad7ff;
	opacity: 0.8;
	clip-path: polygon(40% 0, 100% 100%, 0 75%);
}

.topics-page__yuragi-shape--tr-6 {
	left: 286px;
	top: 283px;
	width: 12px;
	height: 13px;
	background: #35566b;
	opacity: 1;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* 左下 310×310 */
.topics-page__yuragi-shape--bl-1 {
	left: 27px;
	top: 7px;
	width: 11px;
	height: 12px;
	background: #35566b;
	opacity: 1;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.topics-page__yuragi-shape--bl-2 {
	left: 33px;
	top: 79px;
	width: 28px;
	height: 31px;
	background: #9ad7ff;
	opacity: 0.7;
	clip-path: polygon(40% 0, 100% 100%, 0 75%);
}

.topics-page__yuragi-shape--bl-3 {
	left: 1px;
	top: 116px;
	width: 133px;
	height: 137px;
	background: #d1edff;
	opacity: 0.4;
	clip-path: polygon(16% 0, 100% 100%, 0 82%);
}

.topics-page__yuragi-shape--bl-4 {
	left: 142px;
	top: 149px;
	width: 11px;
	height: 24px;
	background: #b7d7eb;
	opacity: 0.5;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.topics-page__yuragi-shape--bl-5 {
	left: 270px;
	top: 248px;
	width: 36px;
	height: 61px;
	background: #92c8ea;
	opacity: 0.7;
	clip-path: polygon(0 0, 100% 38%, 22% 100%);
}

.topics-page__yuragi-shape--bl-6 {
	left: 297px;
	top: 282px;
	width: 13px;
	height: 14px;
	background: #35566b;
	opacity: 1;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* SP（600px以下）— 150px 枠内（一覧・詳細 共通） */
@media screen and (max-width: 600px) {
	.topics-page__yuragi-slot--top-right,
	.topics-page__yuragi-slot--bottom-left {
		--topics-yuragi-sp-max: 150px;

		width: var(--topics-yuragi-sp-max);
		height: var(--topics-yuragi-sp-max);
		overflow: hidden;
		transform: none;
	}

	.topics-page__yuragi-slot--top-right .topics-page__yuragi--top-right {
		position: absolute;
		top: 0;
		right: 0;
		width: 321px;
		height: 300px;
		transform: scale(calc(150 / 321), calc(150 / 300));
		transform-origin: top right;
	}

	.topics-page__yuragi-slot--bottom-left .topics-page__yuragi--bottom-left {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 310px;
		height: 310px;
		transform: scale(calc(150 / 310));
		transform-origin: bottom left;
	}
}
