/*--------------------------------------------------------------
# Minfor Popular Posts & Rankings Plugin Styles
--------------------------------------------------------------*/

.popular-ranking-container {
	margin: 2em 0;
	font-family: sans-serif;
}

.popular-ranking-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.popular-ranking-item {
	margin-bottom: 2em;
	position: relative;
}

.popular-ranking-card {
	border: 1px solid var(--wp--custom--color--gray--400, #e2e8f0);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-ranking-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.popular-ranking-card-inner {
	display: flex;
	padding: 1.5em;
	gap: 1.5em;
}

@media screen and (max-width: 768px) {
	.popular-ranking-card-inner {
		flex-direction: column;
		padding: 1.2em;
		gap: 1em;
	}
}

/* ランキングバッジ */
.ranking-badge {
	position: absolute;
	top: -10px;
	left: -10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #ffffff;
	font-size: 16px;
	z-index: 10;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.badge-1 {
	background: linear-gradient(135deg, #ffd700, #ffa500); /* 金 */
	border: 2px solid #ffffff;
}

.badge-2 {
	background: linear-gradient(135deg, #c0c0c0, #a9a9a9); /* 銀 */
	border: 2px solid #ffffff;
}

.badge-3 {
	background: linear-gradient(135deg, #cd7f32, #b87333); /* 銅 */
	border: 2px solid #ffffff;
}

.badge-4, .badge-5, .badge-6, .badge-7, .badge-8, .badge-9, .badge-10 {
	background: #df7e9d; /* テーマのピンク */
	border: 2px solid #ffffff;
}

/* サムネイル */
.popular-ranking-thumbnail {
	width: 250px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4/3;
}

.popular-ranking-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (max-width: 768px) {
	.popular-ranking-thumbnail {
		width: 100%;
		aspect-ratio: 16/9;
	}
}

/* メインコンテンツエリア */
.popular-ranking-body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 0.8em;
}

.popular-ranking-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.popular-ranking-title a {
	color: #2d3748;
	text-decoration: none;
}

.popular-ranking-title a:hover {
	text-decoration: underline;
}

@media screen and (max-width: 768px) {
	.popular-ranking-title {
		font-size: 18px;
	}
}

.popular-ranking-desc {
	margin: 0;
	font-size: 14px;
	color: #4a5568;
	line-height: 1.6;
}

/* おすすめポイント */
.popular-ranking-points {
	background: #fff8fa;
	border-left: 4px solid #df7e9d;
	padding: 0.8em 1em;
	border-radius: 0 8px 8px 0;
}

.points-label {
	display: block;
	font-size: 11px;
	font-weight: bold;
	color: #df7e9d;
	margin-bottom: 0.3em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.popular-ranking-points p {
	margin: 0;
	font-size: 13px;
	color: #2d3748;
	line-height: 1.5;
}

/* 症例写真 Before/After */
.popular-ranking-cases {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.cases-label {
	font-size: 12px;
	font-weight: bold;
	color: #4a5568;
}

.popular-ranking-cases-gallery {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
}

.case-pair {
	display: flex;
	gap: 4px;
	background: #f7fafc;
	padding: 4px;
	border-radius: 6px;
	border: 1px solid #edf2f7;
}

.case-before, .case-after {
	position: relative;
	width: 100px;
	height: 75px;
	overflow: hidden;
	border-radius: 4px;
}

.case-before img, .case-after img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-before span, .case-after span {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	font-size: 9px;
	text-align: center;
	padding: 2px 0;
	font-weight: bold;
	letter-spacing: 0.05em;
}

.case-before span {
	background: rgba(223, 126, 157, 0.85); /* ピンク */
}

.case-after span {
	background: rgba(45, 55, 72, 0.85); /* ダークグレー */
}

/* 料金表テーブル */
.popular-ranking-prices {
	margin-top: 0.5em;
}

.ranking-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: left;
}

.ranking-price-table th, .ranking-price-table td {
	padding: 0.6em 0.8em;
	border-bottom: 1px solid #edf2f7;
}

.ranking-price-table th {
	background: #f7fafc;
	font-weight: 600;
	color: #4a5568;
}

.ranking-price-table td:last-child {
	font-weight: 700;
	color: #df7e9d;
	text-align: right;
}

/* ボタンエリア */
.popular-ranking-buttons {
	display: flex;
	gap: 1em;
	margin-top: 0.8em;
}

@media screen and (max-width: 576px) {
	.popular-ranking-buttons {
		flex-direction: column;
		gap: 0.6em;
	}
}

.ranking-btn {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
}

.btn-detail {
	background: #ffffff;
	color: #df7e9d;
	border: 2px solid #df7e9d;
	transition: background 0.3s ease, color 0.3s ease;
}

.btn-detail:hover {
	background: #df7e9d;
	color: #ffffff;
}

.btn-line {
	background: linear-gradient(135deg, #06c755, #05b34c);
	color: #ffffff;
	box-shadow: 0 4px 6px rgba(6, 199, 85, 0.15);
	transition: opacity 0.3s ease;
}

.btn-line:hover {
	opacity: 0.9;
}

.line-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M24%2C10.3c0-4.7-4.9-8.5-11-8.5S2%2C5.6%2C2%2C10.3c0%2C4.2%2C3.9%2C7.7%2C9.2%2C8.4%2C0.4%2C0.1%2C0.9%2C0.3%2C1%2C0.7c0.1%2C0.3%2C0.1%2C0.7%2C0%2C1c-0.1%2C0.4-0.4%2C1.6-0.5%2C2.2c-0.1%2C0.5-0.4%2C2-0.2%2C2.1c0.2%2C0.2%2C1.6-1%2C2.2-1.5c0.6-0.5%2C5.1-4.2%2C6.9-6.3C22.6%2C15.2%2C24%2C12.9%2C24%2C10.3z%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;
}
