/* FANZA セール特集（マルチフロア）フロントスタイル */

.fsf-grid {
	--fsf-gap: 16px;
	--fsf-col: 4;
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* 端数の最終行を中央寄せ */
	gap: var(--fsf-gap);
	margin: 1.5em 0;
}

.fsf-cols-1 { --fsf-col: 1; }
.fsf-cols-2 { --fsf-col: 2; }
.fsf-cols-3 { --fsf-col: 3; }
.fsf-cols-4 { --fsf-col: 4; }
.fsf-cols-5 { --fsf-col: 5; }
.fsf-cols-6 { --fsf-col: 6; }

.fsf-card {
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--fsf-col) - 1) * var(--fsf-gap)) / var(--fsf-col));
	max-width: calc((100% - (var(--fsf-col) - 1) * var(--fsf-gap)) / var(--fsf-col));
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--fsf-card-bg, rgba(127, 127, 127, 0.06));
	border: 1px solid rgba(127, 127, 127, 0.18);
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
	.fsf-grid { --fsf-col: 3; }
}
@media (max-width: 600px) {
	.fsf-grid { --fsf-col: 2; --fsf-gap: 10px; }
}

.fsf-card:hover,
.fsf-card:focus-visible {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	border-color: rgba(229, 53, 43, 0.45);
}

.fsf-card-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1; /* 正方形（全フロアの縦横比に対応） */
	padding: 6px;
	background: rgba(127, 127, 127, 0.10);
	overflow: hidden;
}

.fsf-card-img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* ジャケットを切り取らず全体表示 */
	border-radius: 8px;
	display: block;
	transition: transform 0.35s ease;
}

.fsf-card:hover .fsf-card-img {
	transform: scale(1.06); /* ホバーで軽くズームして目を引く */
}

.fsf-card-noimg {
	display: block;
	width: 100%;
	height: 100%;
}

.fsf-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	font-weight: 700;
	font-size: 0.78rem;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 6px;
	color: #fff;
	letter-spacing: 0.02em;
}

.fsf-badge-off { background: #e5352b; }

.fsf-badge-10yen {
	background: linear-gradient(135deg, #ff8a00, #e50914);
	font-size: 0.9rem;
	box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.fsf-card-10yen {
	border-color: #ff8a00;
	box-shadow: 0 0 0 1px #ff8a00, 0 2px 8px rgba(229, 9, 20, 0.18);
}

/* 順位バッジ（ランキングモード） */
.fsf-badge-rank {
	background: linear-gradient(135deg, #475569, #1e293b);
	font-size: 0.9rem;
}

.fsf-badge-rank-top {
	background: linear-gradient(135deg, #f59e0b, #b45309);
	box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

/* 順位バッジがある場合、セールバッジは右上へ */
.fsf-badge-right {
	left: auto;
	right: 8px;
}

.fsf-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 12px 14px;
	flex: 1 1 auto; /* カード高さいっぱいに広げ、価格を下端に揃える */
}

.fsf-card-title {
	font-size: 0.9rem;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.01em;
	min-height: 2.7em; /* 2行ぶんの高さを確保して価格行を揃える */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fsf-card-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 8px;
	margin-top: auto; /* カード高さが揃うよう価格を下端に寄せる */
	border-top: 1px solid rgba(127, 127, 127, 0.14);
}

.fsf-price-now {
	color: #e5352b;
	font-weight: 800;
	font-size: 1.28rem;
	line-height: 1;
	letter-spacing: -0.01em;
}

.fsf-price-now .fsf-yen {
	font-size: 0.72em;
	font-weight: 700;
	margin-left: 1px;
}

.fsf-card-10yen .fsf-price-now { color: #e50914; }

.fsf-price-list {
	color: var(--fsf-muted, #999);
	text-decoration: line-through;
	font-size: 0.78rem;
}

/* 価格行の割引率チップ */
.fsf-price-off {
	margin-left: auto;
	background: rgba(229, 53, 43, 0.12);
	color: #e5352b;
	font-weight: 800;
	font-size: 0.82rem;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 6px;
	white-space: nowrap;
}

.fsf-price-off .fsf-off-label {
	font-size: 0.72em;
	margin-left: 1px;
}

.fsf-review {
	font-size: 0.74rem;
	color: #f59e0b; /* レビュー星をゴールドに */
	font-weight: 600;
}

.fsf-empty {
	padding: 1.5em;
	text-align: center;
	color: var(--fsf-muted, #888);
	background: rgba(127, 127, 127, 0.06);
	border-radius: 8px;
}

.fsf-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 16px;
	margin: 1.2em 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #1f2937, #111827);
	color: #fff;
	text-align: center;
}

.fsf-countdown-upcoming { background: linear-gradient(135deg, #2563eb, #1e3a8a); }

.fsf-countdown-ended {
	background: rgba(127, 127, 127, 0.15);
	color: inherit;
}

.fsf-cd-label {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.04em;
}

.fsf-cd-timer { display: flex; gap: 14px; }

.fsf-cd-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.2em;
	font-size: 0.72rem;
	opacity: 0.85;
}

.fsf-cd-unit b {
	font-size: 1.7rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	margin-bottom: 3px;
}

.fsf-lp-button {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff8a00, #e50914);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fsf-lp-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(229, 9, 20, 0.45);
}

@media (prefers-color-scheme: dark) {
	.fsf-card { --fsf-card-bg: rgba(255, 255, 255, 0.06); }
}
