/* ─────────────────────────────────────────────────────────────
 * JGS Tour CTA Card — for Sumo
 *
 * JGSツアーURLがエディタ本文に貼られた際、自動的に挿入されるツアーCTAカード。
 * functions.php の sumo_jgs_render_tour_card() が出力するHTMLにスタイルを当てる。
 *
 * Sumo配色(黒#222 / ベージュ#FAF8F2 / ゴールド)に合わせてチューニング済み。
 * ───────────────────────────────────────────────────────────── */

.jgs-tour-card-cta {
	display: flex;
	flex-direction: column;
	margin: 48px 0 24px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	background: #FFF;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(28, 28, 40, 0.04);
	font-family: "Inter", sans-serif;
	color: #222;
	line-height: 1.5;
}

@media only screen and (min-width: 769px) {
	.jgs-tour-card-cta {
		flex-direction: row;
	}
}

.jgs-tour-card-cta__image-wrap {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	height: 220px;
	background: #FAF8F2;
	overflow: hidden;
}

@media only screen and (min-width: 769px) {
	.jgs-tour-card-cta__image-wrap {
		width: 280px;
		height: auto;
		min-height: 220px;
	}
}

.jgs-tour-card-cta__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	display: block;
}

.jgs-tour-card-cta__content {
	flex-grow: 1;
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
}

.jgs-tour-card-cta__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.jgs-tour-card-cta__badge {
	display: inline-block;
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #B8293D;
	background: rgba(184, 41, 61, 0.06);
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
}

.jgs-tour-card-cta__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	line-height: 1.2;
}

.jgs-tour-card-cta__stars {
	display: inline-flex;
	gap: 1px;
}

.jgs-tour-card-cta__stars .jgs-star {
	display: block;
}

.jgs-tour-card-cta__rating-num {
	font-size: 1.3rem;
	font-weight: 600;
	color: #222;
}

.jgs-tour-card-cta__rating-count {
	font-size: 1.1rem;
	color: #888;
}

/* タイトル(pタグ)。インラインstyleでベース設定済み、ここではホバーのみ補強 */
.jgs-tour-card-cta__title a {
	transition: color 0.2s ease-out;
}

.jgs-tour-card-cta__title a:hover {
	color: #B8293D !important;
	opacity: 1 !important;
}

.jgs-tour-card-cta__excerpt {
	font-size: 1.3rem;
	color: #555;
	line-height: 1.6;
	margin: 0 !important;
	padding: 0 !important;
}

.jgs-tour-card-cta__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jgs-tour-card-cta__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.jgs-tour-card-cta__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 1.3rem;
	color: #222;
}

.jgs-tour-card-cta__meta-item svg {
	color: #B8293D;
	flex-shrink: 0;
}

.jgs-tour-card-cta__price-label {
	font-size: 1.1rem;
	color: #888;
	display: block;
	line-height: 1;
}

.jgs-tour-card-cta__price-val {
	font-family: "Cormorant Garamond", serif;
	font-size: 2rem;
	font-weight: 700;
	color: #222;
	line-height: 1.1;
}

.jgs-tour-card-cta__action {
	flex-shrink: 0;
}

/* ボタン。インラインstyleでベース指定済み、ここではホバー演出のみ */
.jgs-tour-cta-btn {
	transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.jgs-tour-cta-btn:hover {
	background: #B8293D !important;
	color: #FFF !important;
	opacity: 1 !important;
	transform: translateY(-1px);
}

/* wpautop が挿入する不要な <p> を除去 */
.jgs-tour-card-cta > p,
.jgs-tour-card-cta__content > p:empty {
	display: none !important;
}
