/* ==========================================================================
   その他の小さな部品
   ========================================================================== */

/* YouTube（グループ「c-video」の中の埋め込みブロック） */
.c-video {
	max-width: 900px;
	margin-inline: auto !important;
}

.c-video .wp-block-embed iframe {
	border-radius: var(--st-radius-md);
}

/* ロゴの並び（360 の主催・運営） */
.c-logo-row {
	gap: 20px !important;
	align-items: center;
}

.c-logo-row > * {
	margin: 0 !important;
}

.c-logo-row__item img {
	width: min(334px, 100%);
	height: auto;
}

/* シェアボタン（ブロック「瀬戸内と：シェアボタン」） */
.c-share {
	display: grid;
	justify-items: center;
	gap: var(--st-space-sm);
	margin-top: var(--st-space-2xl);
}

.c-share__title {
	margin: 0;
	font-family: var(--st-font-ui);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--st-primary);
}

.c-share__list {
	display: flex;
	gap: var(--st-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-share__list a {
	display: inline-flex;
	font-size: 32px;
}

.c-share__x {
	color: var(--st-text);
}

.c-share__facebook {
	color: #1877f2;
}

/* サンクスページ（templates/page-thanks*.html）
   数値は STUDIO 版に合わせています：グレーの背景の中に白い箱（幅 1080px）、文章は中央そろえ */
.p-thanks {
	box-sizing: border-box;
	min-height: 643px;
	padding-block: 60px 40px;
}

.c-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 1080px !important;
	min-height: 450px;
	padding: 12px 0 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--base);
}

.c-thanks > * {
	margin-block: 0 !important;
}

.c-thanks__title {
	padding: 10px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--st-accent);
}

.c-thanks__content {
	box-sizing: border-box;
	width: 800px;
	max-width: 100%;
	margin-bottom: 30px !important;
	padding: 20px 10px 10px;
	font-family: var(--st-font-base);
	font-size: 16px;
	line-height: 1.7;
	text-align: center;
}

.c-thanks__content > * {
	margin-block: 1.7em 0;
}

.c-thanks__content > :first-child {
	margin-top: 0;
}

.c-thanks .wp-block-button .wp-block-button__link {
	min-width: 0;
	min-height: 0;
	padding: 8px 20px;
	border: 0;
	border-radius: 20px;
	font-family: var(--st-font-base);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

/* ORANGE：ヘッダーの下から 120px・見出しはオレンジ・ボタンは濃紺 */
.is-variant-orange .p-thanks {
	min-height: 667px;
	margin-bottom: 8px !important;
	padding-top: 120px;
}

.is-variant-orange .c-thanks {
	min-height: 0;
}

.is-variant-orange .c-thanks__content {
	line-height: 1.8;
}

.is-variant-orange .c-thanks .wp-block-button .wp-block-button__link {
	background: var(--st-primary);
}

/* 360：見出しは黒・ボタンは黒 */
.is-variant-p360 .p-thanks {
	padding-top: 120px;
}

.is-variant-p360 .c-thanks {
	min-height: 380px;
}

.is-variant-p360 .c-thanks__title,
.is-variant-p360 .c-thanks__content {
	font-family: var(--st-font-ui);
	color: var(--st-text);
}

.is-variant-p360 .c-thanks__content {
	line-height: 1.4;
}

.is-variant-p360 .c-thanks .wp-block-button .wp-block-button__link {
	background: var(--st-text);
}

@media (max-width: 540px) {
	.p-thanks.p-thanks {
		min-height: 0;
		padding: 4px 24px 64px; /* ヘッダー（60px）と合わせて上 64px */
	}

	.is-variant-orange .p-thanks.p-thanks {
		padding-top: 0;
	}

	.is-variant-p360 .p-thanks.p-thanks {
		padding-top: 64px;
	}

	.c-thanks {
		min-height: 0 !important;
		padding: 12px 0 16px;
	}

	.c-thanks__title {
		text-align: center;
	}
}
