/* ============================================================
   ONP Ranking - 診断ツール
   scope: .onp-sd 配下のみ
   ============================================================ */

.onp-sd {
	--sd-ink:      #17233d;
	--sd-ink-sub:  #5a677f;
	--sd-line:     #dfe4ee;
	--sd-wash:     #eef1f7;
	--sd-cta:      #14855f;
	--sd-cta-dark: #0c6446;
	--sd-gold:     #b5801c;

	box-sizing: border-box;
	margin: 2.4em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
	             "Noto Sans JP", "Segoe UI", Meiryo, sans-serif;
	color: var(--sd-ink);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.onp-sd *,
.onp-sd *::before,
.onp-sd *::after { box-sizing: border-box; }

.onp-sd .onp-sd__title {
	margin: 0 0 14px;
	padding-left: 11px;
	border-left: 5px solid var(--sd-ink);
	font-size: 19px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: .02em;
}

/* ---------- 条件パネル ---------- */

.onp-sd .onp-sd__filters {
	padding: 16px;
	background: var(--sd-wash);
	border-radius: 12px;
}

.onp-sd .onp-sd__group + .onp-sd__group {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #cfd6e4;
}

.onp-sd .onp-sd__label {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
	padding-left: 8px;
	border-left: 4px solid var(--sd-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1.4;
}

.onp-sd .onp-sd__label-sub {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--sd-ink-sub);
}

.onp-sd .onp-sd__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* テーマ側のbutton装飾を打ち消す */
.onp-sd .onp-sd__pills .onp-sd__pill,
.onp-sd .onp-sd__pays .onp-sd__pay,
.onp-sd .onp-sd__reset {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	text-shadow: none;
	box-shadow: none;
	background-image: none;
}

.onp-sd .onp-sd__pills .onp-sd__pill {
	padding: 7px 14px;
	background-color: #fff !important;
	border: 1px solid var(--sd-line);
	border-radius: 99px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sd-ink-sub) !important;
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.onp-sd .onp-sd__pills .onp-sd__pill:hover {
	border-color: var(--sd-ink);
	color: var(--sd-ink) !important;
}

.onp-sd .onp-sd__pills .onp-sd__pill.is-on {
	background-color: var(--sd-ink) !important;
	border-color: var(--sd-ink);
	color: #fff !important;
}

.onp-sd .onp-sd__pills .onp-sd__pill--flag.is-on {
	background-color: var(--sd-cta) !important;
	border-color: var(--sd-cta);
}

.onp-sd .onp-sd__pills .onp-sd__pill--pay.is-on {
	background-color: #1f4f9c !important;
	border-color: #1f4f9c;
}

/* 選択中がひと目で分かるようチェックを出す */
.onp-sd .onp-sd__pills .onp-sd__pill--flag.is-on::before,
.onp-sd .onp-sd__pays .onp-sd__pay.is-on::after {
	content: "✓";
	margin-right: 4px;
	font-size: 12px;
	font-weight: 900;
}

.onp-sd .onp-sd__pays .onp-sd__pay.is-on::after { margin: 0 0 0 2px; }

.onp-sd .onp-sd__pills--pay {
	align-items: center;
	margin-top: 6px;
}

.onp-sd .onp-sd__paynote {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--sd-ink-sub);
}

/* クレジットカード（大きめ） */

.onp-sd .onp-sd__pays--card .onp-sd__pay {
	padding: 6px 13px 6px 7px;
	font-size: 12.5px;
}

.onp-sd .onp-sd__pays--card .onp-sd__pay img { width: 50px; }

/* 後払いアプリ */

.onp-sd .onp-sd__pays {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.onp-sd .onp-sd__pays .onp-sd__pay {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px 5px 6px;
	background-color: #fff !important;
	border: 1px solid var(--sd-line);
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sd-ink-sub) !important;
	cursor: pointer;
	opacity: .72;
	transition: opacity .12s ease, border-color .12s ease;
}

.onp-sd .onp-sd__pays .onp-sd__pay img {
	display: block;
	width: 26px;
	height: auto;
	border-radius: 3px;
}

.onp-sd .onp-sd__pays .onp-sd__pay.is-on {
	opacity: 1;
	border-color: var(--sd-cta);
	background-color: #f1f9f5 !important;
	color: var(--sd-cta-dark) !important;
	box-shadow: 0 0 0 2px rgba(20, 133, 95, .14);
}

/* ---------- 件数バー ---------- */

.onp-sd .onp-sd__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 14px 0 8px;
}

.onp-sd .onp-sd__count {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--sd-ink-sub);
}

.onp-sd .onp-sd__count [data-sd-count] {
	font-size: 25px;
	font-weight: 900;
	line-height: 1;
	color: var(--sd-cta-dark);
	font-variant-numeric: tabular-nums;
}

.onp-sd .onp-sd__count-unit { font-size: 13px; font-weight: 800; color: var(--sd-ink); }
.onp-sd .onp-sd__count-all { font-size: 11.5px; font-weight: 600; }

.onp-sd .onp-sd__reset {
	padding: 6px 13px;
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	color: var(--sd-ink-sub);
	cursor: pointer;
}

.onp-sd .onp-sd__reset:hover { border-color: var(--sd-ink); color: var(--sd-ink); }

/* ---------- 注意書き ---------- */

.onp-sd .onp-sd__alert {
	margin: 0 0 10px;
	padding: 11px 14px;
	background: #fdf6e8;
	border: 1px solid #ecd9a8;
	border-left: 4px solid #d9a83a;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.75;
	color: #5c4713;
}

.onp-sd .onp-sd__alert[hidden] { display: none; }
.onp-sd .onp-sd__alert strong { font-weight: 900; }

/* ---------- 比較テーブル ---------- */

.onp-sd .onp-sd__tablewrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--sd-line);
	border-radius: 12px;
	background: #fff;
}

.onp-sd .onp-sd__table {
	width: 100%;
	min-width: 800px;
}

.onp-sd .onp-sd__table.is-paycol {
	min-width: 986px;
	border-collapse: collapse;
	table-layout: fixed;
}

.onp-sd .onp-sd__table th,
.onp-sd .onp-sd__table td {
	padding: 11px 10px;
	border-bottom: 1px solid var(--sd-line);
	text-align: center;
	vertical-align: middle;
}

.onp-sd .onp-sd__table thead th {
	position: sticky;
	top: 0;
	z-index: 3;
	background: var(--sd-ink);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.4;
	color: #fff;
	border-bottom: 0;
}

.onp-sd .onp-sd__th-logo { width: 176px; }
.onp-sd .onp-sd__th-num  { width: 96px; cursor: pointer; user-select: none; }
.onp-sd .onp-sd__th-camp { width: 250px; }
.onp-sd .onp-sd__th-pay  { width: 186px; }

/* 対応後払いアプリ列は「後払いアプリ対応」を選んだときだけ出す */
.onp-sd .onp-sd__th-pay,
.onp-sd .onp-sd__td-pay { display: none; }

.onp-sd .onp-sd__table.is-paycol .onp-sd__th-pay,
.onp-sd .onp-sd__table.is-paycol .onp-sd__td-pay { display: table-cell; }
.onp-sd .onp-sd__th-cta  { width: 118px; }

.onp-sd .onp-sd__th-note {
	display: block;
	margin-top: 2px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #a9b6cc;
}

.onp-sd .onp-sd__sortmark {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid rgba(255, 255, 255, .38);
	vertical-align: middle;
}

.onp-sd .is-sorted .onp-sd__sortmark { border-top-color: #f0c04a; }
.onp-sd .is-sorted.is-asc .onp-sd__sortmark {
	border-top: 0;
	border-bottom: 5px solid #f0c04a;
}

.onp-sd .onp-sd__row:nth-child(even) { background: #fafbfd; }
.onp-sd .onp-sd__row:last-child td { border-bottom: 0; }
.onp-sd .onp-sd__row[hidden] { display: none; }

/* 業者列（横スクロールでも残す） */
.onp-sd .onp-sd__td-logo {
	position: sticky;
	left: 0;
	z-index: 2;
	background: inherit;
	background-color: #fff;
	border-right: 1px solid var(--sd-line);
	text-align: left;
}

.onp-sd .onp-sd__row:nth-child(even) .onp-sd__td-logo { background-color: #fafbfd; }

/* ロゴは実寸 140×45px */
.onp-sd .onp-sd__logo {
	display: block;
	width: 140px;
	height: auto;
	max-width: 100%;
	margin-bottom: 5px;
	border: 1px solid var(--sd-line);
	border-radius: 4px;
}

.onp-sd .onp-sd__logotext,
.onp-sd .onp-sd__name {
	display: block;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--sd-ink);
}

.onp-sd .onp-sd__td-rate {
	font-size: 20px;
	font-weight: 900;
	color: var(--sd-cta-dark);
	font-variant-numeric: tabular-nums;
}

.onp-sd .onp-sd__td-max {
	font-size: 15px;
	font-weight: 800;
	color: var(--sd-gold);
	font-variant-numeric: tabular-nums;
}

.onp-sd .onp-sd__td-speed {
	font-size: 14px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.onp-sd .onp-sd__td-camp {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	color: #3a4761;
}

.onp-sd .onp-sd__none { color: #9aa5b8; }

/* 対応後払いアプリのアイコン */

.onp-sd .onp-sd__paylist {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.onp-sd .onp-sd__paylist li {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.onp-sd .onp-sd__paylist img {
	display: block;
	width: 34px;
	height: auto;
	border: 1px solid var(--sd-line);
	border-radius: 4px;
	background: #fff;
}

.onp-sd .onp-sd__paytext {
	display: inline-block;
	padding: 2px 6px;
	border: 1px solid var(--sd-line);
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--sd-ink-sub);
}

/* CTA */

.onp-sd .jsl-custom-label.jump,
.onp-sd .onp-sd__link {
	display: block;
	cursor: pointer;
}

.onp-sd .jsl-custom-label.jump,
.onp-sd .jsl-custom-label.jump *,
.onp-sd .onp-sd__link,
.onp-sd .onp-sd__link *,
.onp-sd .onp-sd__btn {
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.onp-sd .onp-sd__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 9px 8px;
	background: linear-gradient(180deg, var(--sd-cta) 0%, var(--sd-cta-dark) 100%);
	color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 0 rgba(9, 74, 52, .5);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .02em;
	transition: transform .15s ease, box-shadow .15s ease;
}

.onp-sd .onp-sd__btn span { font-size: 15px; line-height: 1; }

.onp-sd .jsl-custom-label.jump:hover .onp-sd__btn,
.onp-sd .onp-sd__link:hover .onp-sd__btn {
	transform: translateY(2px);
	box-shadow: 0 0 0 rgba(9, 74, 52, .5);
}

/* ---------- 該当なし ---------- */

.onp-sd .onp-sd__empty {
	padding: 34px 20px;
	background: #fff;
	border: 1px dashed #c9d2e0;
	border-radius: 12px;
	text-align: center;
}

.onp-sd .onp-sd__empty[hidden] { display: none; }

.onp-sd .onp-sd__empty-title {
	margin: 0 0 5px;
	font-size: 16px;
	font-weight: 900;
}

.onp-sd .onp-sd__empty-text {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--sd-ink-sub);
}

.onp-sd .onp-sd__empty-btn {
	padding: 11px 22px;
	background: var(--sd-ink);
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	cursor: pointer;
}

/* ---------- スマホ ---------- */

@media (max-width: 600px) {
	.onp-sd .onp-sd__title { font-size: 17px; }
	.onp-sd .onp-sd__filters { padding: 13px; }
	.onp-sd .onp-sd__pill { padding: 6px 12px; font-size: 12.5px; }
	.onp-sd .onp-sd__table { min-width: 760px; }
	.onp-sd .onp-sd__table.is-paycol { min-width: 930px; }
	.onp-sd .onp-sd__th-pay { width: 168px; }
	.onp-sd .onp-sd__paylist img { width: 30px; }
	.onp-sd .onp-sd__th-logo { width: 168px; }
	.onp-sd .onp-sd__th-camp { width: 200px; }
	.onp-sd .onp-sd__td-rate { font-size: 18px; }
	.onp-sd .onp-sd__table th,
	.onp-sd .onp-sd__table td { padding: 9px 7px; }
}

@media (prefers-reduced-motion: reduce) {
	.onp-sd .onp-sd__btn,
	.onp-sd .onp-sd__pill,
	.onp-sd .onp-sd__pay { transition: none; }
}
