/* 「押してから読み込む」埋め込みの枠（inc/embed-consent.php と対）
   高さは data 属性 --jct-embed-h があればそれ、無ければ 16:9 */
.jct-embed {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: var(--jct-embed-h, auto);
	aspect-ratio: var(--jct-embed-h, 16 / 9);
	background: #f3f1ec;
	border: 1px solid #e0dcd3;
	border-radius: 10px;
	padding: 24px;
	text-align: center;
}
.jct-embed.is-loaded {
	padding: 0;
	border: 0;
	background: #000;
	display: block;
}
.jct-embed.is-loaded iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.jct-embed-btn {
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #a8402a;
	border: 0;
	border-radius: 999px;
	padding: 12px 24px;
	cursor: pointer;
}
.jct-embed-btn:hover { background: #8d331f; }
.jct-embed-note { margin: 0; font-size: 13px; color: #6b6459; }

/* サムネイルつき（YouTube）。押すまで動画は読み込まない */
.jct-embed.has-thumb { padding: 0; border: 0; overflow: hidden; }
.jct-embed-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.jct-embed.has-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
	z-index: 1;
}
.jct-embed.has-thumb .jct-embed-btn,
.jct-embed.has-thumb .jct-embed-note { position: relative; z-index: 2; }
.jct-embed.has-thumb .jct-embed-btn { display: inline-flex; align-items: center; gap: 10px; }
.jct-embed.has-thumb .jct-embed-note { color: #f2eee7; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.jct-embed.is-loaded .jct-embed-thumb { display: none; }
.jct-embed.is-loaded::after { content: none; }
/* 再生の三角 */
.jct-embed-play {
	width: 0; height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #fff;
}

/* 埋め込みブロック（wp:embed）の中。WordPress は枠を ::before の余白で 16:9 にし、
   中の iframe を絶対配置で重ねる。プレースホルダも同じように重ねる（1.2.5） */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .jct-embed {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
}
