/* OTA Buttons — frontend styles */

.ota-buttons-wrap {
	--ota-radius: 16px;
	border-radius: var(--ota-radius);
	overflow: hidden;   /* clips image top-corners to card border-radius */
	background: #fff;
	box-shadow: 0 2px 16px rgba(0, 0, 0, .10);
	margin: 2em auto;
	max-width: 100%;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ── Hotel image — full card width, fixed height ─────────────────────────── */

.ota-buttons-image {
	position: relative;
	width: 100%;
	height: 200px;
}

.ota-buttons-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/*
 * フェードアウト効果 — 画像の下端を白くフェードさせ、
 * カードの本文エリアへ自然につなぐ
 */
.ota-buttons-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 90px;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(255, 255, 255, .55) 50%,
		#fff 100%
	);
	pointer-events: none;
}

/* ── Body ────────────────────────────────────────────────────────────────── */

.ota-buttons-body {
	padding: 16px 20px 20px;
}

/* 画像がある場合: 本文をフェード領域に重ねてシームレスに接続 */
.has-bg-image .ota-buttons-body {
	margin-top: -48px;
	position: relative;
	z-index: 1;
}

/* ── Hotel name ──────────────────────────────────────────────────────────── */

.ota-buttons-title {
	margin: 0 0 4px;
	font-size: 1.1em;
	font-weight: 700;
	color: #1a202c;
	line-height: 1.35;
}

/*
 * 白縁DropShadow — 暗い写真の上でも確実に読めるよう
 * 8方向の白アウトライン + 深みのあるドロップシャドウを適用
 */
.has-bg-image .ota-buttons-title {
	display: inline;
	color: #1a202c;
	text-shadow:
		/* 8方向 2px 白アウトライン */
		 0    -2px 0 #fff,
		 0     2px 0 #fff,
		-2px   0   0 #fff,
		 2px   0   0 #fff,
		-2px  -2px 0 #fff,
		 2px  -2px 0 #fff,
		-2px   2px 0 #fff,
		 2px   2px 0 #fff,
		/* 半透明ドロップシャドウで奥行き */
		 0 3px 10px rgba(0, 0, 0, .35);
}

.ota-buttons-cta {
	margin: 0 0 10px;
	font-size: .72em;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-weight: 600;
}

/* ── Button list ─────────────────────────────────────────────────────────── */

.ota-buttons-list {
	display: flex;
	flex-direction: column;
	gap: 6px !important;
}

.ota-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 14px !important;
	background: var(--ota-color, #333);
	border-radius: 10px;
	text-decoration: none;
	font-weight: 700;
	font-size: .95em;
	line-height: 1.2;
	letter-spacing: .01em;
	overflow: visible;
	opacity: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
	cursor: pointer;
}

/*
 * テーマの a, a:link, a:visited などがリンク色を上書きするケースに対応するため
 * 全リンク疑似クラスに高い詳細度＋!important でテキスト色を強制指定する。
 */
.ota-buttons-wrap .ota-btn,
.ota-buttons-wrap .ota-btn:link,
.ota-buttons-wrap .ota-btn:visited,
.ota-buttons-wrap .ota-btn:hover,
.ota-buttons-wrap .ota-btn:focus-visible,
.ota-buttons-wrap .ota-btn:active {
	color: var(--ota-text-color, #fff) !important;
	text-decoration: none !important;
}

.ota-btn:hover,
.ota-btn:focus-visible {
	filter: brightness(1.12);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}

.ota-btn:active {
	filter: brightness(.92);
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.ota-btn-label {
	flex: 1;
}

.ota-btn-arrow {
	font-size: 1.4em;
	line-height: 1;
	transition: transform .15s ease;
	display: inline-block;
}

.ota-btn:hover .ota-btn-arrow,
.ota-btn:focus-visible .ota-btn-arrow {
	transform: translateX(4px);
}

/* ── Accessibility ───────────────────────────────────────────────────────── */

.ota-btn:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .7);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ota-btn,
	.ota-btn-arrow {
		transition: none;
	}

	.ota-btn:hover,
	.ota-btn:focus-visible {
		transform: none;
	}

	.ota-btn:hover .ota-btn-arrow,
	.ota-btn:focus-visible .ota-btn-arrow {
		transform: none;
	}
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.ota-buttons-wrap {
		margin: 1.5em 0;
	}

	.ota-buttons-body {
		padding: 12px 14px 16px;
	}

	.ota-buttons-image {
		height: 160px;
	}

	.ota-btn {
		padding: 8px 12px !important;
		font-size: .9em;
	}
}
