.fpc-comparison,
.fpc-comparison *,
.fpc-comparison *::before,
.fpc-comparison *::after {
	box-sizing: border-box;
}

.fpc-comparison {
	--fpc-ink: #24282d;
	--fpc-muted: #777f87;
	--fpc-line: #e3e6e8;
	--fpc-frame-bg: #fff;
	--fpc-header-bg: #f5f6f6;
	--fpc-header-text: #555b61;
	--fpc-detail-bg: #eaf8fb;
	--fpc-detail-text: #536069;
	--fpc-row-odd: #fff;
	--fpc-row-even: #f8f8f8;
	--fpc-link: #30363b;
	--fpc-url-link: #1677c8;
	--fpc-anchor-link: #24282d;
	--fpc-link-hover: #087ea4;
	--fpc-hint-text: #59636e;
	--fpc-hint-accent: #0784a7;
	--fpc-sort-bg: #fff;
	--fpc-sort-text: #3e4650;
	--fpc-sort-border: #aeb8c3;
	--fpc-sort-active-bg: #374151;
	--fpc-sort-active-text: #fff;
	--fpc-badge-bg: #e2e4e5;
	--fpc-badge-text: #17191b;
	--fpc-badge-first-bg: #f4b508;
	--fpc-badge-first-text: #fff;
	--fpc-badge-second-bg: #789093;
	--fpc-badge-second-text: #fff;
	--fpc-badge-third-bg: #b8704d;
	--fpc-badge-third-text: #fff;
	--fpc-show-more-bg: #f1f2f3;
	--fpc-show-more-text: #7c8288;
	--fpc-product-width: 224px;
	--fpc-image-width: 98px;
	--fpc-price-width: 330px;
	--fpc-spec-width: 142px;
	--fpc-product-mobile-width: 158px;
	--fpc-image-mobile-width: 82px;
	--fpc-price-mobile-width: 286px;
	--fpc-spec-mobile-width: 118px;
	--fpc-table-width: 1220px;
	--fpc-table-mobile-width: 1116px;
	--fpc-button-radius: 7px;
	width: 100%;
	max-width: 100%;
	margin: 28px 0;
	color: var(--fpc-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.fpc-empty {
	padding: 14px 16px;
	border: 1px solid var(--fpc-line);
	border-radius: 8px;
	background: var(--fpc-frame-bg);
}

.fpc-sort-controls {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
	padding: 2px 0 4px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.fpc-sort-button {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 8px 15px;
	border: 1px solid var(--fpc-sort-border);
	border-radius: 999px;
	background: var(--fpc-sort-bg);
	box-shadow: none;
	color: var(--fpc-sort-text);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
}

.fpc-sort-button:hover,
.fpc-sort-button:focus-visible {
	border-color: var(--fpc-link-hover);
	color: var(--fpc-link-hover);
	outline: 2px solid var(--fpc-link-hover);
	outline-offset: 2px;
}

.fpc-sort-button.is-active {
	border-color: var(--fpc-sort-active-bg);
	background: var(--fpc-sort-active-bg);
	color: var(--fpc-sort-active-text);
}

.fpc-scroll-hint {
	display: none;
	margin: 0 0 8px !important;
	color: var(--fpc-hint-text);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.fpc-scroll-hint span {
	color: var(--fpc-hint-accent);
}

.fpc-table-frame {
	position: relative;
	max-width: 100%;
	border: 1px solid var(--fpc-line);
	background: var(--fpc-frame-bg);
}

.fpc-table-frame::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 12px;
	width: 24px;
	background: linear-gradient(90deg, transparent, rgba(36, 40, 45, 0.1));
	pointer-events: none;
	content: "";
	opacity: 1;
	transition: opacity 0.15s ease;
}

.fpc-table-frame.is-at-end::after {
	opacity: 0;
}

.fpc-table-scroll {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-inline: contain;
	scrollbar-color: var(--fpc-muted) var(--fpc-line);
	scrollbar-width: auto;
}

.fpc-table-scroll:focus-visible {
	outline: 3px solid var(--fpc-hint-accent);
	outline-offset: 2px;
}

.fpc-table-scroll::-webkit-scrollbar {
	height: 12px;
}

.fpc-table-scroll::-webkit-scrollbar-track {
	background: var(--fpc-line);
}

.fpc-table-scroll::-webkit-scrollbar-thumb {
	border: 2px solid var(--fpc-line);
	border-radius: 999px;
	background: var(--fpc-muted);
}

.fpc-table {
	display: table !important;
	width: var(--fpc-table-width) !important;
	min-width: 100%;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	table-layout: fixed;
	background: var(--fpc-frame-bg);
	font-size: 14px;
}

.fpc-table thead {
	display: table-header-group !important;
}

.fpc-table tbody {
	display: table-row-group !important;
}

.fpc-table tr {
	display: table-row !important;
}

.fpc-table th,
.fpc-table td {
	display: table-cell !important;
	height: auto;
	margin: 0;
	padding: 10px 9px;
	border: 0 !important;
	border-right: 1px solid var(--fpc-line) !important;
	border-bottom: 1px solid var(--fpc-line) !important;
	background: var(--fpc-row-odd);
	color: var(--fpc-ink);
	font: inherit;
	line-height: 1.42;
	text-align: left;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.fpc-table tr > :last-child {
	border-right: 0 !important;
}

.fpc-table tbody tr:last-child > * {
	border-bottom: 0 !important;
}

.fpc-table thead th {
	position: static;
	z-index: 3;
	background: var(--fpc-header-bg);
	color: var(--fpc-header-text);
	font-weight: 800;
	vertical-align: middle;
}

.fpc-table thead .fpc-table__detail-group {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 5px 9px;
	background: var(--fpc-detail-bg);
	color: var(--fpc-detail-text);
}

.fpc-table tbody tr:nth-child(even) td,
.fpc-table tbody tr:nth-child(even) th {
	background: var(--fpc-row-even);
}

.fpc-table tbody tr:nth-child(odd) td,
.fpc-table tbody tr:nth-child(odd) th {
	background: var(--fpc-row-odd);
}

.fpc-table .fpc-table__product {
	position: sticky;
	left: 0;
	z-index: 4;
	width: var(--fpc-product-width) !important;
	min-width: var(--fpc-product-width) !important;
	max-width: var(--fpc-product-width) !important;
	border-right: 2px solid var(--fpc-line) !important;
	box-shadow: 8px 0 10px -10px rgba(0, 0, 0, 0.7);
}

.fpc-table thead .fpc-table__product {
	z-index: 7;
	background: var(--fpc-header-bg);
}

.fpc-table-scroll.is-scrolled .fpc-table__product {
	box-shadow: 12px 0 15px -11px rgba(0, 0, 0, 0.72);
}

.fpc-table .fpc-table__image {
	width: var(--fpc-image-width) !important;
	min-width: var(--fpc-image-width) !important;
	max-width: var(--fpc-image-width) !important;
	text-align: center;
}

.fpc-table .fpc-table__prices {
	width: var(--fpc-price-width) !important;
	min-width: var(--fpc-price-width) !important;
	max-width: var(--fpc-price-width) !important;
}

.fpc-table .fpc-table__spec {
	width: var(--fpc-col-width, var(--fpc-spec-width)) !important;
	min-width: var(--fpc-col-width, var(--fpc-spec-width)) !important;
	max-width: var(--fpc-col-width, var(--fpc-spec-width)) !important;
}

.fpc-product-cell {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}

.fpc-product-cell__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.fpc-product-cell__text a,
.fpc-product-cell__text strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--fpc-link);
	font-weight: 700;
	line-height: 1.45;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.fpc-product-cell__text a:hover,
.fpc-product-cell__text a:focus-visible {
	color: var(--fpc-link-hover);
}

.fpc-product-cell__text .fpc-product-name-link--url {
	color: var(--fpc-url-link);
}

.fpc-product-cell__text .fpc-product-name-link--anchor,
.fpc-product-cell__text .fpc-product-name-link--anchor:hover,
.fpc-product-cell__text .fpc-product-name-link--anchor:focus-visible {
	color: var(--fpc-anchor-link);
}

.fpc-product-cell__text small {
	display: block;
	color: var(--fpc-muted);
	font-size: 11px;
	line-height: 1.35;
}

.fpc-table-brand {
	display: block;
	overflow: hidden;
	color: var(--fpc-muted);
	font-size: 12px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fpc-table-rank {
	display: grid;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	place-items: center;
	border-radius: 50%;
	background: var(--fpc-badge-row-bg, var(--fpc-badge-bg));
	color: var(--fpc-badge-row-text, var(--fpc-badge-text));
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.fpc-table-rank--position-1 {
	background: var(--fpc-badge-row-bg, var(--fpc-badge-first-bg));
	color: var(--fpc-badge-row-text, var(--fpc-badge-first-text));
}

.fpc-table-rank--position-2 {
	background: var(--fpc-badge-row-bg, var(--fpc-badge-second-bg));
	color: var(--fpc-badge-row-text, var(--fpc-badge-second-text));
}

.fpc-table-rank--position-3 {
	background: var(--fpc-badge-row-bg, var(--fpc-badge-third-bg));
	color: var(--fpc-badge-row-text, var(--fpc-badge-third-text));
}

.fpc-table-rank--rounded {
	border-radius: 7px;
}

.fpc-table-rank--square {
	border-radius: 0;
}

.fpc-table-rank--text {
	width: auto;
	min-width: 28px;
	height: auto;
	min-height: 28px;
	padding: 5px 7px;
	border-radius: 5px;
	line-height: 1.2;
}

.fpc-table-image {
	display: block;
	width: 78px;
	height: 78px;
	margin: 0 auto;
	object-fit: contain;
}

.fpc-no-image,
.fpc-no-price,
.fpc-empty-value {
	color: var(--fpc-muted);
	font-size: 12px;
}

.fpc-price-buttons {
	display: grid;
	grid-template-columns: repeat(3, minmax(96px, 1fr));
	gap: 7px;
}

.fpc-price-button {
	display: flex;
	min-width: 0;
	min-height: 70px;
	padding: 8px 5px 7px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--fpc-button-radius);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 48%),
		var(--fpc-button-bg, #19b9df);
	box-shadow:
		inset 0 -4px 0 var(--fpc-button-shadow, #087f9f),
		0 5px 14px rgba(25, 185, 223, 0.24);
	color: var(--fpc-button-text, #fff) !important;
	line-height: 1.12;
	text-align: center;
	text-decoration: none !important;
	overflow-wrap: anywhere;
	transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

a.fpc-price-button:hover,
a.fpc-price-button:focus-visible {
	filter: brightness(1.06);
	box-shadow:
		inset 0 -4px 0 var(--fpc-button-shadow, #087f9f),
		0 7px 20px rgba(25, 185, 223, 0.38);
	outline: 3px solid var(--fpc-button-bg, #19b9df);
	outline-offset: 2px;
	transform: translateY(-1px);
}

.fpc-price-button strong {
	color: inherit;
	font-size: 15px;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.fpc-price-button > span {
	margin-top: 3px;
	color: inherit;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.fpc-price-button small {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 9px;
	white-space: nowrap;
}

.fpc-is-limited {
	display: none !important;
}

.fpc-category-hidden {
	display: none !important;
}

.fpc-show-all-wrap {
	margin-top: 14px;
}

.fpc-show-all {
	width: 100%;
	min-height: 54px;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--fpc-show-more-bg);
	color: var(--fpc-show-more-text);
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
}

.fpc-show-all:hover,
.fpc-show-all:focus-visible {
	filter: brightness(0.96);
	color: var(--fpc-show-more-text);
	outline: 2px solid var(--fpc-show-more-text);
}

.fpc-price-note {
	margin: 10px 0 0 !important;
	color: var(--fpc-muted);
	font-size: 11px;
	line-height: 1.55;
}

.fpc-comparison .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

@media (max-width: 680px) {
	.fpc-comparison {
		margin: 22px 0;
		font-size: 13px;
	}

	.fpc-scroll-hint {
		display: block;
	}

	.fpc-sort-button {
		min-height: 38px;
		padding: 7px 13px;
		font-size: 13px;
	}

	.fpc-table {
		width: var(--fpc-table-mobile-width) !important;
		font-size: 12px;
	}

	.fpc-table th,
	.fpc-table td {
		padding: 8px 6px;
	}

	.fpc-table .fpc-table__product {
		width: var(--fpc-product-mobile-width) !important;
		min-width: var(--fpc-product-mobile-width) !important;
		max-width: var(--fpc-product-mobile-width) !important;
	}

	.fpc-table .fpc-table__image {
		width: var(--fpc-image-mobile-width) !important;
		min-width: var(--fpc-image-mobile-width) !important;
		max-width: var(--fpc-image-mobile-width) !important;
	}

	.fpc-table .fpc-table__prices {
		width: var(--fpc-price-mobile-width) !important;
		min-width: var(--fpc-price-mobile-width) !important;
		max-width: var(--fpc-price-mobile-width) !important;
	}

	.fpc-table .fpc-table__spec {
		width: var(--fpc-col-mobile-width, var(--fpc-spec-mobile-width)) !important;
		min-width: var(--fpc-col-mobile-width, var(--fpc-spec-mobile-width)) !important;
		max-width: var(--fpc-col-mobile-width, var(--fpc-spec-mobile-width)) !important;
	}

	.fpc-product-cell {
		grid-template-columns: 25px minmax(0, 1fr);
		gap: 5px;
	}

	.fpc-table-rank {
		width: 23px;
		height: 23px;
		font-size: 11px;
	}

	.fpc-table-brand {
		font-size: 10px;
	}

	.fpc-product-cell__text a,
	.fpc-product-cell__text strong {
		font-size: 12px;
		-webkit-line-clamp: 4;
	}

	.fpc-product-cell__text small {
		font-size: 9px;
	}

	.fpc-table-image {
		width: 66px;
		height: 66px;
	}

	.fpc-price-buttons {
		grid-template-columns: repeat(3, minmax(86px, 1fr));
		gap: 5px;
	}

	.fpc-price-button {
		min-height: 64px;
		padding: 7px 3px 6px;
	}

	.fpc-price-button strong {
		font-size: 13px;
	}

	.fpc-price-button > span {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fpc-comparison * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
