/* =============================================
   wkw-rank.css — 指標つきランキングリスト
   比較記事で「何位か」と「その根拠の数字」を同時に見せる
   ファイル名から自動判定（本文に wkw-rank- があれば読み込み）
   ============================================= */

.wkw-rank {
	--wkw-pink:  #e8357a;
	--wkw-pink2: #f06fa0;
	--wkw-deep:  #a01848;
	--wkw-dark:  #c0206a;
	--wkw-pale:  #fde0ee;
	--wkw-gold:  #d4a017;
	--wkw-ink:   #2a0f1a;

	font-family: inherit;
	max-width: 720px;
	margin: 26px auto;
	background: #fff;
	border: 1px solid var(--wkw-pale);
	border-radius: 14px;
	overflow: hidden;
	color: var(--wkw-ink);
}

.wkw-rank *,
.wkw-rank *::before,
.wkw-rank *::after { box-sizing: border-box; }

.wkw-rank-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 16px 11px;
	background: linear-gradient(90deg, var(--wkw-pink) 0%, var(--wkw-pink2) 55%, var(--wkw-pink) 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.05em;
	position: relative;
	overflow: hidden;
}

.wkw-rank-head::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-55deg, transparent, transparent 6px,
		rgba(255,255,255,0.06) 6px, rgba(255,255,255,0.06) 7px);
	pointer-events: none;
}

.wkw-rank-head > * { position: relative; z-index: 1; }

.wkw-rank-head span {
	font-size: 10.5px;
	font-weight: 700;
	color: rgba(255,255,255,0.85);
	background: rgba(0,0,0,0.18);
	border-radius: 20px;
	padding: 2px 9px;
	white-space: nowrap;
}

.wkw-rank-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 12px 14px 6px !important;
	counter-reset: none;
}

.wkw-rank-item {
	margin: 0 0 10px !important;
	padding: 10px 12px 11px;
	border-radius: 10px;
	background: #fcfbfb;
	border: 1px solid #f1ecee;
}

.wkw-rank-item--top {
	background: linear-gradient(160deg, #fff4f8 0%, #ffe9f1 100%);
	border-color: #f7c3d8;
	box-shadow: 0 2px 12px rgba(232, 53, 122, 0.14);
}

.wkw-rank-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.wkw-rank-badge {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: #9a9a9a;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	line-height: 26px;
	text-align: center;
	letter-spacing: -0.02em;
}

.wkw-rank-item--top .wkw-rank-badge {
	background: linear-gradient(160deg, var(--wkw-pink), var(--wkw-deep));
	box-shadow: 0 2px 8px rgba(232,53,122,0.35);
}

.wkw-rank-name {
	flex: 1;
	min-width: 0;
	font-size: 14.5px;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.wkw-rank-score {
	flex-shrink: 0;
	font-size: 19px;
	font-weight: 900;
	line-height: 1;
	color: var(--wkw-dark);
	letter-spacing: -0.02em;
}

.wkw-rank-score i {
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	color: #a09096;
	margin-left: 1px;
}

.wkw-rank-track {
	height: 12px;
	border-radius: 3px;
	background: #f1eff0;
	overflow: hidden;
}

.wkw-rank-fill {
	display: block;
	width: var(--w);
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--wkw-pink2), var(--wkw-pink));
}

.wkw-rank-item--top .wkw-rank-fill {
	background: linear-gradient(90deg, var(--wkw-pink), var(--wkw-deep));
}

.wkw-rank-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px 9px;
	margin-top: 7px;
	font-size: 11.5px;
	line-height: 1.6;
	color: #6d6d6d;
}

.wkw-rank-tag {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: #55524f;
	background: #f0eeec;
	border-radius: 20px;
	padding: 2px 9px;
	white-space: nowrap;
}

.wkw-rank-tag--hot {
	color: #fff;
	background: linear-gradient(90deg, var(--wkw-pink), var(--wkw-pink2));
}

.wkw-rank-foot {
	padding: 11px 16px 13px;
	background: #fff8fb;
	border-top: 1px solid #f4f0f2;
	font-size: 11.5px;
	line-height: 1.8;
	color: #5a3a48;
}

.wkw-rank-foot b { font-weight: 900; color: var(--wkw-dark); }

@media (max-width: 560px) {
	.wkw-rank { margin: 20px auto; border-radius: 12px; }
	.wkw-rank-list { padding: 10px 12px 4px !important; }
	.wkw-rank-item { padding: 9px 10px 10px; }
	.wkw-rank-name { font-size: 13.5px; }
	.wkw-rank-score { font-size: 17px; }
	.wkw-rank-meta { font-size: 11px; }
}
