/**
 * Oripa Navi フロントエンドCSS
 *
 * 情報の見やすさを優先しつつ、ガチャ/ネオンの世界観をヘッダーとアクセントに限定。
 */

.oripa-wrap {
	--oripa-bg: #0b0a14;
	--oripa-header: #16122a;
	--oripa-accent: #8b5cf6;
	--oripa-accent-2: #a78bfa;
	--oripa-gold: #f0c14b;
	--oripa-gold-2: #e8b923;
	--oripa-text: #1d2327;
	--oripa-muted: #646970;
	--oripa-border: #e2e4e7;
	--oripa-row: #ffffff;
	--oripa-row-alt: #faf9fc;
	--oripa-pink: #e91e8c;
	--oripa-blue: #3b82f6;
	--oripa-radius: 10px;
	--oripa-shadow: 0 8px 24px rgba(20, 10, 40, 0.08);
	box-sizing: border-box;
	color: var(--oripa-text);
	font-size: 14px;
	line-height: 1.55;
	margin: 0.75em 0;
	padding: 0;
	max-width: 100%;
}

.oripa-wrap *,
.oripa-wrap *::before,
.oripa-wrap *::after {
	box-sizing: border-box;
}

/* テーマの ol/ul スタイルを遮断 */
.oripa-wrap ol,
.oripa-wrap ul,
.oripa-wrap li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	background: transparent;
}

.oripa-wrap ol,
.oripa-wrap ul {
	padding-inline-start: 0 !important;
	margin-block: 0 !important;
	counter-reset: none;
}

.oripa-wrap li::marker {
	content: none !important;
	font-size: 0 !important;
}

.oripa-wrap ol > li::before,
.oripa-wrap .oripa-rank-tags > li::before,
.oripa-wrap .oripa-card-list > li::before {
	content: none !important;
	display: none !important;
}

.oripa-card-list > li {
	padding: 2px 0 !important;
	font-size: 12px;
}

.oripa-empty {
	padding: 1em;
	text-align: center;
	color: var(--oripa-muted);
}

/* ========== 比較表 ========== */

.oripa-compare-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #f8f7fc;
	border: 1px solid #eceaf3;
	border-radius: 12px;
}

.oripa-filter-label {
	font-size: 13px;
	font-weight: 700;
	color: #4338ca;
	white-space: nowrap;
}

.oripa-filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oripa-filter-btn {
	appearance: none;
	border: 1px solid #c7d2fe;
	background: #fff;
	color: #3730a3;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.oripa-filter-btn:hover {
	border-color: #818cf8;
	background: #eef2ff;
}

.oripa-filter-btn.is-active {
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	border-color: transparent;
	color: #fff;
}

.oripa-compare-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--oripa-radius);
	box-shadow: var(--oripa-shadow);
	background:
		radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.18), transparent 50%),
		radial-gradient(ellipse at 90% 10%, rgba(233, 30, 140, 0.12), transparent 45%),
		var(--oripa-bg);
	padding: 2px;
}

.oripa-compare-table {
	width: 100%;
	min-width: 960px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--oripa-row);
	border-radius: calc(var(--oripa-radius) - 1px);
}

.oripa-compare-table thead th {
	background: linear-gradient(180deg, #1c1733 0%, #120e22 100%);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.02em;
	padding: 14px 12px;
	text-align: center;
	vertical-align: middle;
	border-bottom: 2px solid var(--oripa-accent);
	white-space: nowrap;
}

/* 1列目固定（横スクロール時） */
.oripa-compare-table thead th.oripa-col-name,
.oripa-compare-table tbody th.oripa-col-name {
	position: sticky;
	left: 0;
	z-index: 3;
	min-width: 140px;
	max-width: 200px;
	box-shadow: 4px 0 10px rgba(0, 0, 0, 0.12);
}

.oripa-compare-table thead th.oripa-col-name {
	z-index: 5;
	background: linear-gradient(180deg, #1c1733 0%, #120e22 100%);
}

.oripa-compare-table tbody th.oripa-col-name {
	z-index: 4;
	background: var(--oripa-row);
}

.oripa-compare-table tbody tr:nth-child(even) th.oripa-col-name {
	background: var(--oripa-row-alt);
}

.oripa-th-icon {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto 6px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffe9a0, var(--oripa-gold-2));
	box-shadow: 0 0 8px rgba(240, 193, 75, 0.45);
	position: relative;
}

.oripa-th-icon::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 2px;
	background: rgba(40, 20, 0, 0.35);
}

.oripa-icon-rating::after { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(40, 20, 0, 0.55); inset: 4px; }
.oripa-icon-price::after { content: "¥"; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: rgba(40, 20, 0, 0.7); background: transparent; border-radius: 0; }
.oripa-icon-bonus::after { border-radius: 2px 2px 3px 3px; inset: 6px 5px 4px; }
.oripa-icon-app::after { border-radius: 3px; inset: 5px 7px; }
.oripa-icon-cards::after { border-radius: 1px; inset: 5px 6px; transform: rotate(-12deg); }
.oripa-icon-ship::after { border-radius: 1px; width: 12px; height: 7px; inset: auto auto 6px 5px; box-shadow: 3px -4px 0 rgba(40, 20, 0, 0.35); }
.oripa-icon-fee::after { border-radius: 1px; inset: 5px 6px 4px; }
.oripa-icon-name::after { border-radius: 50%; inset: 6px; }

.oripa-th-label {
	display: block;
}

.oripa-compare-table tbody th,
.oripa-compare-table tbody td {
	padding: 16px 12px;
	border-bottom: 1px solid var(--oripa-border);
	border-right: 1px solid #f0f0f2;
	vertical-align: middle;
	text-align: center;
	background: var(--oripa-row);
	font-size: 13px;
	white-space: nowrap;
	word-break: keep-all;
	overflow-wrap: normal;
	line-break: strict;
}

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

.oripa-compare-table tbody tr:last-child th,
.oripa-compare-table tbody tr:last-child td {
	border-bottom: none;
}

.oripa-col-name {
	text-align: left !important;
	font-weight: 700;
	color: var(--oripa-text);
	white-space: normal !important;
}

.oripa-name-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}

/* バナーがある場合は縦積み（バナー → サービス名） */
.oripa-name-cell:has(.oripa-compare-banner) {
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.oripa-name-cell:has(.oripa-compare-banner) .oripa-name-text {
	align-items: center;
	width: 100%;
}

.oripa-name-cell:has(.oripa-compare-banner) .oripa-service-name {
	text-align: center;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
	line-height: 1.35;
	font-size: 13px;
}

.oripa-compare-banner {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eef0f3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
}

.oripa-compare-banner img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.oripa-name-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.oripa-service-name {
	display: block;
	font-size: 14px;
}

.oripa-rec-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, #f0c14b, #f5d76e);
	color: #3a2a00;
	font-size: 11px;
	font-weight: 700;
}

.oripa-grade {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	background: var(--oripa-accent);
	margin-right: 4px;
	vertical-align: middle;
}

.oripa-grade-a { background: linear-gradient(145deg, #f0c14b, #d4a017); color: #2a1e00; }
.oripa-grade-b { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.oripa-grade-c { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.oripa-grade-d { background: linear-gradient(145deg, #94a3b8, #64748b); }

.oripa-stars {
	display: block;
	margin-top: 4px;
	color: var(--oripa-gold);
	font-size: 11px;
	letter-spacing: 1px;
}

.oripa-bonus-pill {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 8px;
	background: linear-gradient(180deg, #fdf2f8, #fce7f3);
	color: var(--oripa-pink);
	font-weight: 700;
	font-size: 12px;
	border: 1px solid #f9c8e0;
	white-space: nowrap;
}

.oripa-col-bonus,
.oripa-col-app {
	text-align: center;
}

.oripa-mark {
	display: inline-block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	vertical-align: middle;
}

.oripa-mark-yes {
	color: #e91e8c;
}

.oripa-mark-mid {
	color: #7eb8d8;
}

.oripa-mark-no {
	color: #94a3b8;
}

.oripa-mark-empty {
	color: #c3c4c7;
	font-size: 16px;
	font-weight: 600;
}

.oripa-col-cards {
	white-space: normal !important;
	vertical-align: middle;
}

.oripa-card-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
	display: inline-block;
}

.oripa-card-list > li {
	display: block !important;
	margin: 0 !important;
	padding: 2px 0 !important;
	font-size: 12px;
	line-height: 1.45;
	white-space: nowrap !important;
	word-break: keep-all;
}

.oripa-col-actions {
	min-width: 130px;
	white-space: nowrap;
}

.oripa-btn {
	display: inline-block;
	padding: 8px 14px;
	margin: 3px 0;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.3;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.oripa-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.oripa-btn-detail {
	background: #fff;
	color: var(--oripa-text) !important;
	border: 1px solid #c3c4c7;
}

.oripa-btn-official {
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	color: #fff !important;
	border: none;
	box-shadow: 0 4px 12px rgba(109, 40, 217, 0.35);
}

/* ========== ランキング ========== */

.oripa-ranking-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.oripa-ranking-list > li {
	margin: 0 !important;
	padding: 0 !important;
}

.oripa-rank-card {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(20, 10, 40, 0.08);
	border: 1px solid #eceef2;
	overflow: hidden;
	padding: 0;
}

.oripa-rank-ribbon {
	position: absolute;
	top: 0;
	left: 14px;
	z-index: 2;
	width: 42px;
	padding: 8px 4px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	background: linear-gradient(180deg, #f6d365 0%, #e8b923 55%, #d4a017 100%);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px));
	box-shadow: 0 4px 10px rgba(212, 160, 23, 0.35);
}

.oripa-rank-2 .oripa-rank-ribbon {
	background: linear-gradient(180deg, #e8ecf1 0%, #b8c0cc 55%, #8b95a5 100%);
	box-shadow: 0 4px 10px rgba(139, 149, 165, 0.35);
}

.oripa-rank-3 .oripa-rank-ribbon {
	background: linear-gradient(180deg, #e8c39e 0%, #d4a574 55%, #b07840 100%);
	box-shadow: 0 4px 10px rgba(176, 120, 64, 0.35);
}

.oripa-rank-other .oripa-rank-ribbon {
	background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
	box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.oripa-rank-crown {
	display: block;
	width: 18px;
	height: 13px;
	background: #fff;
	clip-path: polygon(0 100%, 0 40%, 20% 60%, 50% 10%, 80% 60%, 100% 40%, 100% 100%);
	opacity: 0.95;
}

.oripa-rank-other .oripa-rank-crown {
	width: 10px;
	height: 10px;
	clip-path: none;
	border-radius: 2px;
	transform: rotate(45deg);
}

.oripa-rank-num {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.oripa-rank-unit {
	font-size: 11px;
	font-weight: 700;
}

.oripa-rank-body {
	min-width: 0;
	padding: 18px 18px 16px 20px;
}

.oripa-rank-header {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 14px;
	align-items: start;
	margin: 0 0 14px 40px;
}

.oripa-rank-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 88px;
	min-width: 0;
}

.oripa-rank-banner {
	width: 88px;
	height: 88px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eef0f3;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.oripa-rank-banner img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.oripa-rank-banner-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #1f1638, #0f0c1c);
	border-color: transparent;
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	padding: 0;
}

.oripa-rank-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
}

.oripa-rank-rating-label {
	font-size: 10px;
	font-weight: 700;
	color: var(--oripa-muted);
}

.oripa-rank-rating .oripa-grade {
	width: 28px;
	height: 28px;
	font-size: 14px;
	margin: 0;
	border-radius: 6px;
}

.oripa-rank-rating .oripa-stars {
	margin: 0;
	font-size: 10px;
	letter-spacing: 0;
	color: #f59e0b;
}

.oripa-rank-heading {
	min-width: 0;
	padding-top: 2px;
}

.oripa-rank-title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: #111;
}

.oripa-rank-tagline {
	margin: 0 0 8px;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.55;
}

.oripa-rank-tags {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.oripa-rank-tags > li {
	list-style: none !important;
	margin: 0 !important;
	padding: 4px 10px !important;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.oripa-rank-tags > li::before,
.oripa-rank-tags > li::after {
	content: none !important;
	display: none !important;
}

.oripa-rank-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 12px;
}

.oripa-rank-box {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fff7ed;
	border: 1px solid #ffedd5;
	border-radius: 10px;
	padding: 10px 12px;
}

.oripa-rank-box-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(145deg, #fdba74, #f97316);
	position: relative;
}

.oripa-icon-gift::after,
.oripa-icon-pricebox::after {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.85);
}

.oripa-icon-gift::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: #f97316;
	z-index: 1;
}

.oripa-rank-box-content {
	min-width: 0;
}

.oripa-rank-box-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #9a3412;
	margin-bottom: 4px;
}

.oripa-rank-box-value {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
	word-break: break-word;
	line-height: 1.5;
}

.oripa-rank-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.oripa-proscons-title {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 14px;
	font-weight: 800;
}

.oripa-pros .oripa-proscons-title { color: #2563eb; }
.oripa-cons .oripa-proscons-title { color: #db2777; }

.oripa-pros ul,
.oripa-cons ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.oripa-pros li,
.oripa-cons li {
	position: relative;
	list-style: none !important;
	margin: 0 0 6px !important;
	padding: 0 0 0 22px !important;
	font-size: 13px;
	line-height: 1.55;
	color: #374151;
	background: transparent !important;
}

.oripa-pros li:last-child,
.oripa-cons li:last-child {
	margin-bottom: 0 !important;
}

.oripa-pros li::marker,
.oripa-cons li::marker {
	content: none !important;
	font-size: 0 !important;
}

.oripa-pros li::before,
.oripa-cons li::before {
	position: absolute !important;
	left: 0 !important;
	top: 2px !important;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50%;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 16px !important;
	text-align: center;
	display: block !important;
}

.oripa-pros li::after,
.oripa-cons li::after {
	content: none !important;
	display: none !important;
}

.oripa-pros li::before {
	content: "✓" !important;
	background: #dbeafe !important;
	color: #2563eb !important;
}

.oripa-cons li::before {
	content: "×" !important;
	background: #fce7f3 !important;
	color: #db2777 !important;
}

.oripa-rank-intro {
	margin-bottom: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e5e7eb;
}

.oripa-intro-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 800;
	color: #374151;
}

.oripa-rank-intro p {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: #4b5563;
}

.oripa-rank-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.oripa-rank-actions .oripa-btn {
	min-width: 148px;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 13px;
	text-align: center;
}

.oripa-rank-actions .oripa-btn-official {
	background: linear-gradient(135deg, #ec4899, #db2777);
	box-shadow: 0 6px 16px rgba(219, 39, 119, 0.28);
}

.oripa-rank-actions .oripa-btn-detail {
	background: #fff;
	border: 1px solid #93c5fd;
	color: #1d4ed8 !important;
}

.oripa-rank-1 .oripa-rank-actions .oripa-btn-official {
	background: linear-gradient(135deg, #f43f5e, #e11d48);
	box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}

.oripa-rank-2 .oripa-rank-actions .oripa-btn-official {
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28);
}

.oripa-rank-3 .oripa-rank-actions .oripa-btn-official {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

/* ========== レスポンシブ ========== */

@media (max-width: 782px) {
	.oripa-compare-filters {
		padding: 10px;
	}

	.oripa-filter-buttons {
		width: 100%;
	}

	.oripa-compare-table thead th.oripa-col-name,
	.oripa-compare-table tbody th.oripa-col-name {
		width: 120px;
		min-width: 120px;
		max-width: 120px;
		padding: 10px 6px;
	}

	.oripa-name-cell {
		flex-direction: column;
		align-items: center;
		gap: 4px;
		text-align: center;
	}

	.oripa-name-text {
		align-items: center;
		width: 100%;
	}

	.oripa-compare-banner {
		width: 56px;
		height: 56px;
		padding: 3px;
	}

	.oripa-service-name {
		font-size: 11px;
		line-height: 1.3;
		white-space: normal;
		word-break: break-word;
		overflow-wrap: anywhere;
		text-align: center;
	}

	.oripa-rec-badge {
		font-size: 10px;
		padding: 1px 6px;
	}

	.oripa-rank-body {
		padding: 14px 12px 12px;
	}

	.oripa-rank-ribbon {
		left: 10px;
		width: 38px;
		padding: 7px 3px 12px;
	}

	.oripa-rank-header {
		grid-template-columns: 72px 1fr;
		gap: 10px;
		margin-left: 36px;
	}

	.oripa-rank-identity {
		width: 72px;
		align-items: center;
	}

	.oripa-rank-banner {
		width: 72px;
		height: 72px;
		padding: 6px;
	}

	.oripa-rank-rating {
		flex-direction: column;
		align-items: center;
		gap: 2px;
	}

	.oripa-rank-title {
		font-size: 18px;
	}

	.oripa-rank-summary,
	.oripa-rank-proscons {
		grid-template-columns: 1fr;
	}

	.oripa-rank-actions {
		justify-content: stretch;
	}

	.oripa-rank-actions .oripa-btn {
		flex: 1 1 100%;
	}
}

