/* ==========================================================================
   ボタン（コアの「ボタン」ブロック）
   ボタンを選択 → 右サイドバー「スタイル」で見た目を切り替えられます（inc/setup.php で登録）。
     塗りつぶし（標準）… アクセント色
     メイン色 / 白（濃い背景の上）/ 枠線 / 枠線（アクセント色）
   「詳細設定 > 追加 CSS クラス」に is-large を付けると大きいボタン、has-arrow で「›」が付きます。
   ========================================================================== */

.wp-block-button .wp-block-button__link {
	--st-btn-bg: var(--st-accent);
	--st-btn-fg: var(--wp--preset--color--base);
	--st-btn-border: var(--st-btn-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 48px;
	min-width: min(270px, 100%);
	padding: 0.6em 2em;
	border: 2px solid var(--st-btn-border);
	background: var(--st-btn-bg);
	color: var(--st-btn-fg);
	text-align: center;
}

.wp-block-button .wp-block-button__link:hover {
	opacity: 0.85;
}

.wp-block-button.is-style-primary .wp-block-button__link {
	--st-btn-bg: var(--st-primary);
}

.wp-block-button.is-style-white .wp-block-button__link {
	--st-btn-bg: var(--wp--preset--color--base);
	--st-btn-fg: var(--st-primary);
	--st-btn-border: var(--st-primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	--st-btn-bg: var(--wp--preset--color--base);
	--st-btn-fg: var(--st-text);
	--st-btn-border: var(--st-primary);
	padding: 0.6em 2em;
}

.wp-block-button.is-style-outline-accent .wp-block-button__link {
	--st-btn-bg: var(--wp--preset--color--base);
	--st-btn-fg: var(--st-accent);
	--st-btn-border: var(--st-accent);
}

.wp-block-button.is-large .wp-block-button__link {
	min-height: 60px;
	min-width: min(400px, 100%);
	font-size: var(--wp--preset--font-size--large);
}

.wp-block-button.has-arrow .wp-block-button__link::after {
	content: "›";
	font-size: 1.2em;
	line-height: 1;
}

/* フォームの送信ボタン（テーマのフォーム） */
.c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	min-width: min(400px, 100%);
	padding: 0.6em 2em;
	border: 2px solid var(--st-primary);
	border-radius: var(--st-radius-pill);
	background: var(--wp--preset--color--base);
	color: var(--st-primary);
	font-family: var(--st-font-ui);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.is-variant-orange .c-button,
.is-variant-p360 .c-button {
	border-color: var(--st-accent);
	background: var(--st-accent);
	color: var(--wp--preset--color--base);
}

.c-button:hover {
	opacity: 0.85;
}
