@charset "UTF-8";

/*
 * Ported from wp-content/themes/swell_child/assets/sale-index.css. The
 * source file's #breadcrumb/#sidebar hide rules for this page are
 * dropped entirely (not scope-adjusted): they existed only to hide
 * SWELL's own duplicate breadcrumb and default sidebar, neither of
 * which this theme renders. CSS custom properties from the source file
 * are retargeted to this theme's own tokens (prefixed hd-c- instead of
 * c-, e.g. --c-main becomes --hd-c-main; defined in style.css); the
 * source's 599px SP breakpoint is retargeted to this theme's common
 * 900px boundary. See
 * release-records/theme-independent-1.0.0-phase4-sale-index.md for the
 * two PR #53 corrections layered on top of this otherwise-unchanged port.
 */

.hd-sale-index-page {
	background: #eaf4f1;
}

.hd-sale-index {
	padding: 24px 14px 70px;
	color: #333;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	line-height: 1.7;
}

.hd-sale-index .sale-page {
	width: min(100%, 1080px);
	min-height: 70vh;
	margin: 0 auto;
	background: #fff;
}

.hd-sale-index .num {
	font-family: "Inter", "Noto Sans JP", sans-serif;
}

.hd-sale-index .breadcrumb {
	padding: 14px 28px 0;
	color: #999;
	font-size: 11.5px;
}

.hd-sale-index .breadcrumb a {
	color: var(--hd-c-dark);
	text-decoration: underline;
	text-decoration-thickness: 1.2px;
	text-underline-offset: 2px;
}

.hd-sale-index .page-head {
	padding: 16px 28px 20px;
	border-bottom: 1px solid var(--hd-c-border);
}

.hd-sale-index .page-head h1 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #333;
	font-size: 21px;
	font-weight: 900;
}

.hd-sale-index .h1-sale-tag {
	padding: 3px 10px;
	border-radius: 4px;
	background: #e24b4a;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.hd-sale-index .filter-wrap {
	padding: 18px 28px 0;
}

.hd-sale-index .filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hd-sale-index .filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--hd-c-border-strong);
	border-radius: 20px;
	background: #fff;
	color: var(--hd-c-dark);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}

.hd-sale-index .filter-chip:hover {
	background: var(--hd-c-light2);
}

.hd-sale-index .filter-chip.on {
	border-color: var(--hd-c-main);
	background: var(--hd-c-main);
	color: #fff;
}

.hd-sale-index .result-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 14px 28px 0;
	color: #555;
	font-size: 11.5px;
}

.hd-sale-index .result-line b {
	color: #333;
	font-size: 13px;
}

.hd-sale-index .sale-section {
	padding: 28px;
}

.hd-sale-index .sale-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 14px;
}

.hd-sale-index .work-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--hd-c-border-strong);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 3px 14px rgba(44, 94, 71, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover/focus: border + shadow only, no movement (position-stationary hover
   policy for vertical work cards, shared with work-pages.css/entity-pages.css).
   :focus-within matches mouse hover when tabbing to the card link or the
   FANZA button inside it. */
.hd-sale-index .work-card:hover,
.hd-sale-index .work-card:focus-within {
	border-color: var(--hd-c-main);
	box-shadow: 0 6px 20px rgba(44, 94, 71, 0.14);
}

.hd-sale-index .card-link {
	position: absolute;
	z-index: 1;
	inset: 0;
}

.hd-sale-index .work-cov {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, var(--hd-c-main), var(--hd-c-dark));
}

.hd-sale-index .work-cov-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hd-sale-index .work-body {
	padding: 10px 11px 11px;
}

.hd-sale-index .work-meta {
	display: flex;
	min-height: 21px;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 6px;
}

.hd-sale-index .meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}

.hd-sale-index .work-badge {
	padding: 3px 8px;
	border-radius: 4px;
	font-family: "Inter", "Noto Sans JP", sans-serif;
	font-size: 10.5px;
	font-weight: 800;
}

.hd-sale-index .work-badge.new {
	background: var(--hd-c-dark);
	color: #fff;
}

.hd-sale-index .work-badge.semi {
	background: var(--hd-c-light);
	color: var(--hd-c-dark);
}

.hd-sale-index .work-badge.fullcolor {
	background: #8a6512;
	color: #fff;
}

.hd-sale-index .work-badge.compil {
	background: #6b3fa0;
	color: #fff;
}

.hd-sale-index .work-badge.play-3p {
	border: .5px solid #a6dfd9;
	background: #e2f7f3;
	color: #2e7e73;
}

.hd-sale-index .work-badge.play-4p {
	border: .5px solid var(--hd-c-main);
	background: var(--hd-c-main);
	color: #fff;
}

.hd-sale-index .work-badge.play-5p {
	border: .5px solid #2e7e73;
	background: #2e7e73;
	color: #fff;
}

.hd-sale-index .work-compil-range {
	display: inline-block;
	padding: 1.5px 7.5px;
	border: .5px solid #cbb0dd;
	border-radius: 4px;
	background: #f4eef7;
	color: #6b3fa0;
	font-size: 10.5px;
	font-weight: 700;
}

.hd-sale-index .work-title {
	display: -webkit-box;
	min-height: 2.8em;
	margin: 0 0 2px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #333;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
}

.hd-sale-index .work-card:hover .work-title {
	color: var(--hd-c-dark);
}

.hd-sale-index .ep-inline {
	color: var(--hd-c-main);
	font-weight: 900;
}

.hd-sale-index .ep-sep {
	margin: 0 1px;
	color: var(--hd-c-border);
	font-weight: 400;
}

.hd-sale-index .work-circle {
	overflow: hidden;
	color: #555;
	font-size: 11px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hd-sale-index .work-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
}

.hd-sale-index .work-price .reg {
	display: none;
}

.hd-sale-index .work-price .now {
	color: #333;
	font-size: 16px;
	font-weight: 800;
}

.hd-sale-index .work-price .now.sale {
	color: #e24b4a;
}

.hd-sale-index .off-rate {
	padding: 2px 7px;
	border-radius: 4px;
	background: #e24b4a;
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
}

.hd-sale-index .work-actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 8px;
}

.hd-sale-index .work-fanza {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 16px;
	border-radius: 8px;
	background: #f97316;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.hd-sale-index .work-fanza:hover {
	background: #c95d11;
	color: #fff;
}

.hd-sale-index .work-fanza svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

/*
 * Pagination (1.0.12): ported from the v9 creator-page design, i.e. its
 * existing implementation -- wp-content/themes/swell_child's
 * hdchild_entity_pagination() (inc/entity-pages.php, WordPress core's own
 * paginate_links(), type=>'list') and the matching .entity-pagination CSS
 * (assets/entity-pages.css) -- replacing the previous "load more" AJAX
 * button. Values (box size, border, radius, colors) are carried over
 * unchanged; --c-main/--c-border-strong there are the exact same hex
 * values as this theme's own --hd-c-main/--hd-c-border-strong tokens, so
 * no new color is introduced. paginate_links() with no current/previous
 * page simply omits that link (no separate ".disabled" state to style,
 * matching the source, which has none either). No SP-specific override
 * exists in the source and none is added here either -- one PC/SP design,
 * per the v9 source itself.
 */
.hd-sale-index .sale-pagination {
	margin-top: 28px;
	padding: 0 28px 30px;
}

.hd-sale-index .sale-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-sale-index .sale-pagination a,
.hd-sale-index .sale-pagination span {
	display: grid;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	place-items: center;
	border: 1px solid var(--hd-c-border-strong);
	border-radius: 5px;
	color: #333;
	font-size: 12px;
	text-decoration: none;
}

.hd-sale-index .sale-pagination .current {
	border-color: var(--hd-c-main);
	background: var(--hd-c-main);
	color: #fff;
}

.hd-sale-index .sale-empty {
	padding: 42px 20px;
	border: 1px solid var(--hd-c-border);
	border-radius: 10px;
	background: var(--hd-c-light2);
	text-align: center;
}

.hd-sale-index .sale-empty h2 {
	margin: 0 0 8px;
	font-size: 17px;
}

.hd-sale-index .sale-empty p {
	margin: 0;
	font-size: 13px;
}

@media (max-width: 900px) {
	.hd-sale-index {
		padding: 14px 0 48px;
	}

	.hd-sale-index .breadcrumb {
		padding: 12px 16px 0;
	}

	.hd-sale-index .page-head {
		padding: 14px 16px 16px;
	}

	.hd-sale-index .page-head h1 {
		font-size: 17px;
	}

	.hd-sale-index .filter-wrap {
		padding: 16px 16px 0;
	}

	.hd-sale-index .filter-chip {
		padding: 8px 13px;
		font-size: 12px;
	}

	.hd-sale-index .result-line {
		gap: 12px;
		padding: 12px 16px 0;
	}

	.hd-sale-index .sale-section {
		padding: 20px 16px;
	}

	.hd-sale-index .sale-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 10px;
	}

	.hd-sale-index .work-body {
		padding: 9px 9px 10px;
	}

	.hd-sale-index .work-fanza {
		padding: 9px 14px;
	}

	.hd-sale-index .sale-pagination {
		padding: 0 16px 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-sale-index .work-card {
		transition: none;
	}
}
