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

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

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

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

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

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

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

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

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

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

/* ── レイアウト保証（旧: enqueues.php のインライン注入から一本化） ──
   body プレフィックスで詳細度を確保し、テーマCSSとの競合を防ぐ */
body .taberipp-card {
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow: hidden;
}
body .taberipp-card .taberipp-body {
	padding: 20px 16px 4px 10px;
	gap: 7px;
	overflow: hidden;
	min-width: 0;
	box-sizing: border-box;
}
body .taberipp-card .taberipp-buttons {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, 1fr);
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}
body .taberipp-card .taberipp-btn,
body .taberipp-card .taberipp-btn:link,
body .taberipp-card .taberipp-btn:visited {
	min-width: 0;
	width: 100%;
	overflow: hidden;
}
@media screen and (max-width: 540px) {
	body .taberipp-card .taberipp-buttons {
		grid-template-columns: 1fr;
	}
	body .taberipp-card img {
		aspect-ratio: unset;
		max-height: 200px;
		object-fit: cover;
	}
}
