/**
 * ACF Block: ボタン
 * Figma 133:944 — border / 85px / Noto Serif 16px / external icon / corner
 */

.acf-block-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 85px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #000;
	background-color: transparent;
	color: #333333;
	text-decoration: none;
	margin: 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	transition: background-color 0.2s ease;
}

.acf-block-button:hover,
.acf-block-button:focus {
	color: #333333;
	background-color: rgba(255, 255, 255, 0.2);
	text-decoration: none;
}

.acf-block-button__label {
	font-family: "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(16px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	word-break: break-word;
}

.acf-block-button__icon {
	display: block;
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.acf-block-button__corner {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 9px;
	height: 9px;
	background-color: #000;
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
	pointer-events: none;
}

/* ブロック外側の上下余白 + blockGap 打ち消し */
.wp-block-post-content > .wp-block-acf-button,
.entry-content > .wp-block-acf-button,
.wp-block-acf-button {
	display: block;
	width: 100%;
	margin: 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	padding: 0;
	box-sizing: border-box;
}

.acf-block-button-wrap {
	display: block;
	width: 100%;
	padding: 40px 0;
	box-sizing: border-box;
}

.acf-block-button__external-note {
	margin: 12px 0 0;
	color: #333333;
	font-family: "Noto Serif JP", serif;
	font-size: calc(13px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.011em;
	text-align: center;
}

.wp-block-post-content > .wp-block-acf-button + *,
.entry-content > .wp-block-acf-button + * {
	margin-block-start: 0 !important;
}

@media screen and (max-width: 781px) {
	.acf-block-button-wrap {
		padding: 40px 0 30px;
	}

	.acf-block-button__label {
		white-space: normal;
		text-align: center;
	}
}
