/* 食べリップ フロントエンドスタイル */

.taberipp-card {
	display: flex !important;
	flex-direction: row !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
	margin: 1.5em 0 !important;
	font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important;
	line-height: 1.5 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
}

/* PC：画像エリア */
.taberipp-card .taberipp-image-outer {
	flex: 0 0 200px !important;
	min-width: 0 !important;
	padding: 16px 0 12px 12px !important;
	align-self: flex-start !important;
	box-sizing: border-box !important;
}
.taberipp-card .taberipp-image {
	width: 100% !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	background: #f5f5f5 !important;
}
.taberipp-card .taberipp-image img,
.taberipp-card img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
	object-fit: cover !important;
	aspect-ratio: 4 / 3; /* PC: 横長4:3 */
}

/* ── ボタングリッド（ホテリップ準拠）── */
.taberipp-card .taberipp-buttons {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px !important;
	min-width: 0 !important;
}

.taberipp-card .taberipp-btn,
.taberipp-card .taberipp-btn:link,
.taberipp-card .taberipp-btn:visited {
	width: 100% !important;
	min-width: 0 !important;
	overflow: hidden !important;
}

/* ホバー */
.taberipp-btn:hover {
	opacity: 0.88 !important;
	transform: translateY(-1px) !important;
	transition: opacity .15s, transform .15s !important;
}

/* 口コミリンク */
.taberipp-review-link:hover {
	opacity: .75 !important;
}

/* クレジット */
.taberipp-credit {
	font-size: 10px !important;
	color: #ccc !important;
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* ── スマホ（540px以下）── ホテリップ準拠 */
@media (max-width: 540px) {
	.taberipp-card {
		flex-direction: column !important;
	}
	.taberipp-card .taberipp-image-outer {
		flex: none !important;
		width: 100% !important;
		padding: 12px 12px 0 !important;
		align-self: stretch !important;
	}
	.taberipp-card .taberipp-image {
		width: 100% !important;
		height: auto !important;
	}
	.taberipp-card .taberipp-image img,
	.taberipp-card img {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: unset; /* SP: aspect-ratio を解除 */
		max-height: 200px !important;
		object-fit: cover !important;
	}
	.taberipp-card .taberipp-body {
		padding: 12px 16px 16px !important;
	}
	.taberipp-card .taberipp-buttons {
		grid-template-columns: 1fr !important; /* SP: 1列 */
	}
}

@media (max-width: 360px) {
	.taberipp-card .taberipp-buttons {
		grid-template-columns: 1fr !important;
	}
}
