/* ==================================================================
 * ヒーロー（トップ）
 *
 * 背景画像そのものは変更していない。配置とボタンの見せ方だけを整える。
 * ============================================================== */

/* ---------- 上下のバランス ---------- */

/*
 * 中身は数値上は上下中央（余白 87px / 87px）にあったが、上に104pxの
 * ヘッダーが重なるため、見える範囲では上0px・下87pxとなり上寄りに見えていた。
 * ヘッダーの高さぶんを上の余白に足して、見えている範囲の中央に置く。
 */
.wp-block-spectra-container[data-spectra-id="spectra-mgtdmbip-1pd42c"] {
	padding-top: 164px !important; /* 元の60px + ヘッダー104px */
	padding-bottom: 60px !important;
}

@media (max-width: 921px) {
	.wp-block-spectra-container[data-spectra-id="spectra-mgtdmbip-1pd42c"] {
		padding-top: 124px !important; /* 元の50px + ヘッダー74px */
		padding-bottom: 50px !important;
	}
}

/* ---------- 読者ターゲットのラベル ---------- */

/*
 * 誰に向けた媒体かをひと目で伝える。親の指定で幅100%・最大580pxに
 * なってしまうため、内容ぶんの幅に戻している。
 */
.aiy-hero-badge {
	display: inline-block !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 0 16px !important;
	padding: 6px 15px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 12.5px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.aiy-hero-badge {
		font-size: 11.5px !important;
		margin-bottom: 14px !important;
	}
}

/* ---------- ボタン ---------- */

/* フッターのCTAと同じピル型・同じ動きに揃える */
.wp-block-spectra-buttons .wp-block-spectra-button {
	position: relative;
	overflow: hidden;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 14px 30px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	transition: transform 0.16s ease, box-shadow 0.16s ease,
		background-color 0.16s ease, color 0.16s ease;
}

.wp-block-spectra-buttons .wp-block-spectra-button:hover {
	transform: translateY(-2px);
}

.wp-block-spectra-buttons .wp-block-spectra-button:active {
	transform: translateY(1px) scale(0.98);
}

/* 枠だけのボタン（記事一覧を見る）＝ フッターの「サービスを見る」と同じ */
.wp-block-spectra-buttons .wp-block-spectra-button.has-ast-global-color-5-color:not(.has-ast-global-color-5-background-color) {
	background: transparent !important;
	color: #ffffff !important;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.wp-block-spectra-buttons .wp-block-spectra-button.has-ast-global-color-5-color:not(.has-ast-global-color-5-background-color):hover {
	background: rgba(255, 255, 255, 0.14) !important;
	color: #ffffff !important;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
}

/* 塗りのボタン（AIスマート予約について）＝ フッターの「30日間無料ではじめる」と同じ */
.wp-block-spectra-buttons .wp-block-spectra-button.has-ast-global-color-5-background-color {
	background: #ffffff !important;
	color: #123542 !important;
}

.wp-block-spectra-buttons .wp-block-spectra-button.has-ast-global-color-5-background-color:hover {
	background: #eafaff !important;
	color: #123542 !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

/* フッターのCTAと同じ間隔にして、2つで1組に見せる */
.wp-block-spectra-container[data-spectra-id="spectra-mgtdmbip-1pd42c"] .wp-block-spectra-buttons {
	gap: 14px !important;
}
