/* Card Price List — フロント表示 */

/*
 * 変数はページ側のラッパーにも持たせる。テンプレートのラッパーに .cpl-app を
 * 付けるとショートコードが出す .cpl-app と入れ子になり、JSが二重に初期化される。
 */
.cpl-app,
.cpl-index,
.cpl-guide,
.cpl-pack-page,
.cpl-single,
.cpl-single-sections,
.cpl-home,
.cpl-news-list,
.cpl-contact {
	--cpl-border: #e3e5e8;
	--cpl-text: #1d2327;
	--cpl-muted: #6b7280;
	--cpl-accent: #d63638;
	--cpl-sell: #1d4ed8;
	--cpl-bg-soft: #f6f7f8;

	font-size: 15px;
	color: var(--cpl-text);
	line-height: 1.6;
}

/* --- サイトトップ --- */

/* SWELLのコンテンツ上余白は、全幅ヒーローの前に白帯を作るためトップだけ外す。
   このCSSはショートコードがあるページでのみ読み込まれる。 */
#body_wrap.home #content {
	padding-top: 0;
}

.cpl-home {
	margin-bottom: 72px;
}

.cpl-home-slider {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: #111827;
	color: #fff;
	overflow: hidden;
}

.cpl-home-slider__stage {
	position: relative;
	min-height: clamp(520px, 46vw, 620px);
	overflow: hidden;
}

.cpl-home-hero {
	position: absolute;
	inset: 0;
	width: 100%;
	margin: 0;
	padding: clamp(56px, 8vw, 104px) 24px;
	background:
		radial-gradient(circle at 82% 20%, rgba(214, 54, 56, 0.36), transparent 30%),
		linear-gradient(135deg, #111827 0%, #20242c 56%, #3b1014 100%);
	color: #fff;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateX(3%);
	transition: opacity 0.55s ease, transform 0.65s ease, visibility 0.55s;
}

.cpl-home-hero.is-buying {
	background:
		radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.12), transparent 27%),
		linear-gradient(135deg, #36090d 0%, #8f171f 56%, #d63638 100%);
}

.cpl-home-hero.is-store {
	background:
		radial-gradient(circle at 78% 25%, rgba(214, 54, 56, 0.24), transparent 30%),
		linear-gradient(135deg, #101827 0%, #18253a 58%, #162f35 100%);
}

.cpl-home-hero.has-background-image {
	background-image:
		linear-gradient(90deg, rgba(10, 16, 27, 0.94) 0%, rgba(10, 16, 27, 0.72) 48%, rgba(10, 16, 27, 0.16) 100%),
		var(--cpl-slide-bg);
	background-position: center;
	background-size: cover;
}

.cpl-home-hero.has-background-image .cpl-home-hero__inner {
	grid-template-columns: minmax(0, 650px) 1fr;
}

.cpl-home-hero.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* --- バナー画像スライド ---
   .cpl-home-hero には相乗りさせない。あちらは
   「余白を取って中にテキストを組む」前提のスタイルで、
   バナーは画像を端まで見せたいので要件が逆。
   実際に相乗りさせたら、hero の padding が効いて画像が縮み、
   さらに .cpl-home-hero.is-active が当たらず永久に非表示になった。

   重なりと表示切替の挙動だけ、同じものを書く。 */
.cpl-home-banner {
	position: absolute;
	inset: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #111827;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateX(3%);
	transition: opacity 0.55s ease, transform 0.65s ease, visibility 0.55s;
}

/* 全スライドがバナーのときだけ、ステージを画像の比率にする。
   テキストスライドが混ざっていると高さを揃えられないので適用しない */
.cpl-home-slider.is-banner-only .cpl-home-slider__stage {
	min-height: 0;
	aspect-ratio: 16 / 9;
}

@media (max-width: 599px) {
	/* スマホ用バナー（1:1推奨）が入る前提。
	   未設定のスライドが1枚でもあれば横長のまま受ける */
	.cpl-home-slider.is-banner-only .cpl-home-slider__stage {
		aspect-ratio: 1 / 1;
	}
	.cpl-home-slider.is-banner-only:has(.cpl-home-banner.has-no-sp) .cpl-home-slider__stage {
		aspect-ratio: 16 / 9;
	}
}

.cpl-home-banner.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.cpl-home-banner__link,
.cpl-home-banner picture {
	display: block;
	width: 100%;
	height: 100%;
}

/* contain。cover だと、焼き込んだ文字の端が切れて文言が欠ける */
.cpl-home-banner__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cpl-home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
	max-width: 1100px;
	margin: 0 auto;
}

.cpl-home-eyebrow {
	margin: 0 0 14px;
	color: #ff7173;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.post_content .cpl-home-hero .cpl-home-slide__title,
.cpl-home-hero .cpl-home-slide__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: clamp(34px, 5.4vw, 64px);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.25;
}

.post_content .cpl-home-hero .cpl-home-slide__title::before,
.post_content .cpl-home-hero .cpl-home-slide__title::after {
	content: none;
	display: none;
}

.cpl-home-hero__lead {
	max-width: 590px;
	margin: 22px 0 0;
	color: #d9dde5;
	font-size: clamp(15px, 2vw, 18px);
	line-height: 1.9;
}

.cpl-home-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 30px;
}

.cpl-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	padding: 14px 24px;
	border: 2px solid #fff;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s, background 0.15s, color 0.15s;
}

.cpl-home-button:hover,
.cpl-home-button:focus-visible {
	transform: translateY(-2px);
}

.cpl-home-button.is-sell {
	border-color: #fff;
	background: #fff;
	color: #111827;
}

.cpl-home-button.is-buy {
	border-color: var(--cpl-accent);
	background: var(--cpl-accent);
	color: #fff;
}

.cpl-home-hero__visual {
	position: relative;
	min-height: 350px;
}

.cpl-home-card-back {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 205px;
	aspect-ratio: 63 / 88;
	border: 8px solid #f8fafc;
	border-radius: 14px;
	background:
		repeating-radial-gradient(circle at center, transparent 0 15px, rgba(255,255,255,.12) 16px 18px),
		linear-gradient(145deg, #d63638, #6f121d);
	box-shadow: 0 26px 50px rgba(0, 0, 0, 0.42);
	color: #fff;
	font-size: 64px;
	font-weight: 900;
	letter-spacing: -0.08em;
}

.cpl-home-card-back::after {
	content: "CARD ARENA";
	position: absolute;
	bottom: 18px;
	font-size: 10px;
	letter-spacing: 0.18em;
}

.cpl-home-card-back.is-left {
	transform: translate(-78%, -48%) rotate(-13deg);
	opacity: 0.66;
}

.cpl-home-card-back.is-center {
	z-index: 2;
	transform: translate(-50%, -52%) rotate(1deg);
}

.cpl-home-card-back.is-right {
	transform: translate(-20%, -46%) rotate(13deg);
	opacity: 0.72;
}

.cpl-home-price-board {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(390px, 92%);
	aspect-ratio: 4 / 3;
	border: 3px solid rgba(255, 255, 255, 0.82);
	border-radius: 18px;
	background: rgba(43, 5, 10, 0.38);
	box-shadow: 0 28px 60px rgba(42, 5, 9, 0.38);
	transform: translate(-50%, -50%) rotate(2deg);
	backdrop-filter: blur(4px);
}

.cpl-home-price-board::before,
.cpl-home-price-board::after {
	position: absolute;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
}

.cpl-home-price-board::before {
	inset: 14px;
}

.cpl-home-price-board::after {
	inset: 27px;
}

.cpl-home-price-board span,
.cpl-home-price-board strong,
.cpl-home-price-board small {
	z-index: 1;
}

.cpl-home-price-board span,
.cpl-home-price-board small {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.cpl-home-price-board strong {
	margin: 4px 0;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 1.2;
}

.cpl-home-store-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 270px;
	aspect-ratio: 1;
	border: 8px solid rgba(255, 255, 255, 0.9);
	border-radius: 50% 50% 50% 12%;
	background: linear-gradient(145deg, #d63638, #71131b);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
	transform: translate(-50%, -55%) rotate(-45deg);
}

.cpl-home-store-mark::after {
	position: absolute;
	inset: 18px;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: inherit;
}

.cpl-home-store-mark span,
.cpl-home-store-mark small {
	z-index: 1;
	transform: rotate(45deg);
}

.cpl-home-store-mark span {
	font-size: 72px;
	font-weight: 900;
	line-height: 1;
}

.cpl-home-store-mark small {
	margin-top: 14px;
	font-weight: 700;
	letter-spacing: 0.15em;
}

.cpl-home-slider__controls {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 18px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
}

.cpl-home-slider__controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	cursor: pointer;
}

.cpl-home-slider__arrow,
.cpl-home-slider__toggle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
}

.cpl-home-slider__toggle {
	font-size: 11px;
	letter-spacing: -0.12em;
}

.cpl-home-slider__dots {
	display: flex;
	gap: 8px;
}

.cpl-home-slider__dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: transparent;
	transition: width 0.2s, border-radius 0.2s, background 0.2s;
}

.cpl-home-slider__dots button[aria-current="true"] {
	width: 25px;
	border-color: #fff;
	border-radius: 8px;
	background: #fff;
}

.cpl-home-slider__controls button:hover,
.cpl-home-slider__controls button:focus-visible {
	background: #fff;
	color: #111827;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.cpl-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.cpl-home-section {
	max-width: 1100px;
	margin: clamp(58px, 8vw, 92px) auto 0;
}

.cpl-home-section__en {
	margin: 0 0 5px;
	color: var(--cpl-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
}

.post_content .cpl-home-section h2,
.cpl-home-section h2 {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cpl-text);
	font-size: clamp(23px, 3.4vw, 32px);
	font-weight: 700;
	text-align: center;
}

.post_content .cpl-home-section h2::before,
.post_content .cpl-home-section h2::after {
	content: none;
	display: none;
}

.cpl-home-section__lead {
	margin: 9px 0 28px;
	color: var(--cpl-muted);
	text-align: center;
}

.cpl-home-search {
	max-width: 960px;
	margin: 30px auto 0;
	padding: clamp(18px, 3vw, 28px);
	border-radius: 10px;
	background: #111827;
	box-shadow: 0 12px 35px rgba(17, 24, 39, 0.14);
	color: #fff;
}

.cpl-home-search__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.cpl-home-search__form {
	display: grid;
	grid-template-columns: minmax(250px, 1fr) 190px 140px 100px;
	gap: 8px;
}

.cpl-home-search__form input,
.cpl-home-search__form select,
.cpl-home-search__form button {
	width: 100%;
	min-height: 48px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 5px;
	font-size: 14px;
}

.cpl-home-search__form input,
.cpl-home-search__form select {
	background: #fff;
	color: var(--cpl-text);
}

.cpl-home-search__form button {
	border-color: var(--cpl-accent);
	background: var(--cpl-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.cpl-home-search__form button:hover,
.cpl-home-search__form button:focus-visible {
	border-color: #fff;
	background: #fff;
	color: #111827;
}

.cpl-home-games {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 30px;
}

.cpl-home-game {
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid var(--cpl-border);
	border-top: 5px solid var(--cpl-accent);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(17, 24, 39, 0.07);
}

.cpl-home-game__label {
	margin: 0 0 5px;
	color: var(--cpl-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.post_content .cpl-home-game h3,
.cpl-home-game h3 {
	margin: 0;
	font-size: clamp(20px, 3vw, 27px);
}

.cpl-home-game__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 22px;
}

.cpl-home-game__links a {
	padding: 11px 10px;
	border: 1px solid var(--cpl-accent);
	border-radius: 5px;
	color: var(--cpl-accent);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.cpl-home-game__links a:hover,
.cpl-home-game__links a:focus-visible {
	background: var(--cpl-accent);
	color: #fff;
}

.cpl-home-featured .cpl-list {
	margin-top: 30px;
}

.cpl-home-section__more {
	margin: 28px 0 0;
	text-align: center;
}

.cpl-home-section__more a {
	display: inline-flex;
	padding: 10px 26px;
	border-bottom: 2px solid var(--cpl-accent);
	color: var(--cpl-text);
	font-weight: 700;
	text-decoration: none;
}

.cpl-home-news {
	padding: clamp(28px, 5vw, 48px);
	border-radius: 12px;
	background: var(--cpl-bg-soft);
}

.cpl-news-list {
	margin-top: 26px;
	border-top: 1px solid var(--cpl-border);
}

.cpl-news-item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 18px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--cpl-border);
	color: inherit;
	text-decoration: none;
}

.cpl-news-item time {
	color: var(--cpl-muted);
	font-size: 13px;
}

.cpl-news-item span {
	font-weight: 600;
}

.cpl-news-item:hover span,
.cpl-news-item:focus-visible span {
	color: var(--cpl-accent);
}

.cpl-news-empty {
	color: var(--cpl-muted);
	text-align: center;
}

.cpl-home-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 1100px;
	margin: clamp(58px, 8vw, 92px) auto 0;
	border: 1px solid var(--cpl-border);
	border-radius: 10px;
	overflow: hidden;
}

.cpl-home-links a {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 38px 24px;
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.cpl-home-links a + a {
	border-left: 1px solid var(--cpl-border);
}

.cpl-home-links a:hover,
.cpl-home-links a:focus-visible {
	background: #111827;
	color: #fff;
}

.cpl-home-links__en {
	color: var(--cpl-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.cpl-home-links strong {
	margin-top: 3px;
	font-size: 22px;
}

.cpl-home-links a > span:last-child {
	margin-top: 8px;
	font-size: 13px;
	opacity: 0.72;
}

@media (max-width: 760px) {
	.cpl-home-slider__stage {
		min-height: 750px;
	}

	.cpl-home-hero__inner {
		grid-template-columns: 1fr;
	}

	.cpl-home-hero.has-background-image {
		background-image:
			linear-gradient(90deg, rgba(10, 16, 27, 0.9), rgba(10, 16, 27, 0.64)),
			var(--cpl-slide-bg);
	}

	.cpl-home-hero.has-background-image .cpl-home-hero__inner {
		grid-template-columns: 1fr;
	}

	.cpl-home-hero__visual {
		min-height: 250px;
	}

	.cpl-home-card-back {
		width: 145px;
		border-width: 6px;
		font-size: 46px;
	}

	.cpl-home-price-board {
		width: min(330px, 88%);
	}

	.cpl-home-store-mark {
		width: 200px;
	}

	.cpl-home-store-mark span {
		font-size: 55px;
	}

	.cpl-home-games,
	.cpl-home-links {
		grid-template-columns: 1fr;
	}

	.cpl-home-search__form {
		grid-template-columns: 1fr 1fr;
	}

	.cpl-home-search__form input,
	.cpl-home-search__form button {
		grid-column: 1 / -1;
	}

	.cpl-home-links a + a {
		border-top: 1px solid var(--cpl-border);
		border-left: 0;
	}

	.cpl-news-item {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 500px) {
	.cpl-home-hero {
		padding-right: 18px;
		padding-left: 18px;
	}

	.cpl-home-hero__actions,
	.cpl-home-button {
		width: 100%;
	}

	.cpl-home-game__links {
		grid-template-columns: 1fr;
	}

	.cpl-home-search__form {
		grid-template-columns: 1fr;
	}

	.cpl-home-search__form input,
	.cpl-home-search__form button {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpl-home-hero,
	.cpl-home-slider__dots button {
		transition: none;
	}
}

/* --- 買取／販売の入口（ゲーム選択） --- */

.cpl-index {
	max-width: 900px;
	margin: 24px auto 0;
}

.cpl-index__lead {
	margin: 0 0 18px;
	text-align: center;
	color: var(--cpl-muted);
}

.cpl-index__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cpl-index__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 150px;
	padding: 24px 18px;
	border: 2px solid var(--cpl-accent);
	border-radius: 14px;
	background: #fff;
	color: var(--cpl-accent);
	text-align: center;
	text-decoration: none;
	transition: color 0.15s, background 0.15s, transform 0.15s;
}

.cpl-index__card:hover,
.cpl-index__card:focus-visible {
	background: var(--cpl-accent);
	color: #fff;
	transform: translateY(-2px);
}

.cpl-index__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 230px);
	height: 126px;
	padding: 8px;
	margin-bottom: 6px;
	border-radius: 8px;
	background: #fff;
}

.cpl-index__logo .cpl-game-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, 190px);
	max-height: 110px;
	object-fit: contain;
}

.cpl-index__name {
	font-size: clamp(18px, 2.6vw, 24px);
	font-weight: 700;
}

.cpl-index__action {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.82;
}

/* --- 買取／販売入口の注意事項 --- */

.cpl-index-notice {
	max-width: 900px;
	margin: 48px auto 0;
	border: 1px solid #e2e5ea;
	border-top: 5px solid var(--cpl-accent);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
	overflow: hidden;
}

.cpl-index-notice__header {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 22px 28px 19px;
	border-bottom: 1px solid #e7e9ed;
	background: #fafafa;
}

.cpl-index-notice__header span {
	color: var(--cpl-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.post_content .cpl-index-notice__header h2,
.cpl-index-notice__header h2 {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cpl-text);
	font-size: 23px;
	line-height: 1.4;
}

.post_content .cpl-index-notice__header h2::before,
.post_content .cpl-index-notice__header h2::after {
	content: none;
	display: none;
}

.cpl-index-notice__section {
	padding: 24px 28px;
}

.cpl-index-notice__section + .cpl-index-notice__section {
	border-top: 1px solid #eceef1;
}

.post_content .cpl-index-notice__section h3,
.cpl-index-notice__section h3 {
	margin: 0 0 13px;
	padding: 0 0 0 12px;
	border: 0;
	border-left: 4px solid var(--cpl-accent);
	background: transparent;
	box-shadow: none;
	color: var(--cpl-text);
	font-size: 17px;
	line-height: 1.5;
}

.post_content .cpl-index-notice__section h3::before,
.post_content .cpl-index-notice__section h3::after {
	content: none;
	display: none;
}

.cpl-index-notice__section ul {
	margin: 0;
	padding-left: 1.4em;
}

.cpl-index-notice__section li {
	margin: 0;
	line-height: 1.85;
}

.cpl-index-notice__section li + li {
	margin-top: 7px;
}

.cpl-index-notice__section li ul {
	margin-top: 5px;
	color: var(--cpl-muted);
	font-size: 13px;
}

.cpl-index-notice__document {
	margin: 18px 0 0;
}

.cpl-index-notice__document a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--cpl-accent);
	border-radius: 7px;
	color: var(--cpl-accent);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cpl-index-notice__document a:hover,
.cpl-index-notice__document a:focus-visible {
	background: var(--cpl-accent);
	color: #fff;
}

.cpl-index-notice__prices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 12px;
}

.cpl-index-notice__prices > div {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 15px;
	border-radius: 8px;
	background: #f5f6f8;
}

.cpl-index-notice__prices dt,
.cpl-index-notice__prices dd {
	margin: 0;
}

.cpl-index-notice__prices dt {
	font-weight: 700;
}

.cpl-index-notice__prices dd {
	color: var(--cpl-accent);
	font-weight: 800;
}

.cpl-index-notice__note {
	margin: 0;
	color: var(--cpl-muted);
	font-size: 13px;
	line-height: 1.75;
}

/* --- ゲーム別ページ上部の分類ナビ --- */

.cpl-guide {
	margin: 0 0 28px;
	padding: 24px;
	border: 1px solid var(--cpl-border);
	border-bottom: 5px solid var(--cpl-accent);
	border-radius: 16px;
	background: #fff;
}

.post_content .cpl-guide .cpl-guide__title {
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 2px solid var(--cpl-accent);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cpl-accent);
	font-size: 19px;
	font-weight: 700;
	text-align: center;
}

.post_content .cpl-guide .cpl-guide__title::before,
.post_content .cpl-guide .cpl-guide__title::after {
	content: none;
	display: none;
}

.cpl-guide__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
}

.cpl-guide__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 10px 14px;
	border: 2px solid var(--cpl-accent);
	background: #fff;
	color: var(--cpl-accent);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: color 0.15s, background 0.15s;
}

.cpl-guide__link:hover,
.cpl-guide__link:focus-visible,
.cpl-guide__link.is-current,
.cpl-guide__link--featured {
	background: var(--cpl-accent);
	color: #fff;
}

.cpl-guide__link--featured:hover,
.cpl-guide__link--featured:focus-visible {
	background: #ab2426;
	border-color: #ab2426;
}

.cpl-guide__count {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.76;
	white-space: nowrap;
}

#cpl-card-list {
	scroll-margin-top: 90px;
}

.cpl-app.is-loading {
	opacity: 0.55;
	transition: opacity 0.15s;
}

/* --- 検索フォーム --- */

.cpl-form {
	background: var(--cpl-bg-soft);
	border: 1px solid var(--cpl-border);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 18px;
}

/* 窓はひとつ。カード名でも型番でもここから引く */
.cpl-searchbar {
	display: flex;
	gap: 8px;
}

.cpl-q {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 13px;
	border: 1px solid var(--cpl-border);
	border-radius: 8px;
	background: #fff;
	font-size: 16px; /* 16px未満だとiOSで拡大される */
	box-sizing: border-box;
}

.cpl-submit {
	flex: 0 0 auto;
	padding: 11px 24px;
	border: 1px solid var(--cpl-text);
	border-radius: 8px;
	background: var(--cpl-text);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.cpl-form-sub {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.cpl-sortwrap {
	font-size: 13px;
	color: var(--cpl-muted);
}

.cpl-sortwrap select {
	margin-left: 6px;
	padding: 7px 10px;
	border: 1px solid var(--cpl-border);
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	color: var(--cpl-text);
}

.cpl-toggle-filter {
	padding: 7px 14px;
	border: 1px solid var(--cpl-border);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
	color: var(--cpl-text);
}

.cpl-toggle-filter::after {
	content: " ▾";
	color: var(--cpl-muted);
}

.cpl-toggle-filter[aria-expanded="true"]::after {
	content: " ▴";
}

.cpl-filter {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cpl-border);
}

.cpl-filter[hidden] {
	display: none;
}

.cpl-filter-group {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--cpl-muted);
	margin: 10px 0 6px;
}

.cpl-rarity-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cpl-tag input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cpl-tag span {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--cpl-border);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
	transition: background 0.12s, border-color 0.12s;
}

.cpl-tag input:checked + span {
	background: var(--cpl-text);
	border-color: var(--cpl-text);
	color: #fff;
}

.cpl-tag input:focus-visible + span {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.cpl-actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.cpl-reset {
	padding: 10px 18px;
	border: 1px solid var(--cpl-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
	color: var(--cpl-text);
}

/* --- 件数 --- */

.cpl-count {
	font-size: 13px;
	color: var(--cpl-muted);
	margin: 0 0 10px;
}

.cpl-total {
	font-weight: 700;
	color: var(--cpl-text);
	font-size: 15px;
}

/* --- 一覧（共通） --- */

.cpl-card {
	text-decoration: none;
	color: inherit;
}

.cpl-card-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cpl-card-name {
	overflow-wrap: anywhere;
}

.cpl-card-meta {
	display: flex;
	gap: 6px;
	color: var(--cpl-muted);
}

.cpl-card-rarity {
	font-weight: 600;
}

/* --- 価格 --- */

.cpl-prices {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.cpl-price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	white-space: nowrap;
}

.cpl-price-label {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background: var(--cpl-muted);
	border-radius: 3px;
	padding: 1px 5px;
	line-height: 1.5;
}

.cpl-price-row.is-buy .cpl-price-label {
	background: var(--cpl-accent);
}

.cpl-price-row.is-sell .cpl-price-label {
	background: var(--cpl-sell);
}

.cpl-card-price {
	font-weight: 700;
}

/*
 * 買取＝赤 / 販売＝青 は「取引の種類」を示す意味色。ブランドカラーではない。
 *
 * **強化中かどうか、入口がどちらかに関係なく、常に同じ色にする。**
 * 以前は買取の赤が `.cpl-card.is-featured ... .is-primary` に限定されていて、
 * 強化中でないカードの買取価格だけ黒のままだった。
 * 同じ「買取」が場所によって色違いになると、意味色として機能しない。
 */
.cpl-price-row.is-buy .cpl-card-price {
	color: var(--cpl-accent);
}

.cpl-price-row.is-sell .cpl-card-price {
	color: var(--cpl-sell);
}

/* --- サムネイル --- */

.cpl-thumb {
	position: relative;
	display: block;
	aspect-ratio: 63 / 88; /* トレカの実寸比 */
	background: var(--cpl-bg-soft);
	border: 1px solid var(--cpl-border);
	border-radius: 8px;
	overflow: hidden;
}

.cpl-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cpl-thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #b0b4bb;
	text-align: center;
}

.cpl-flag {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--cpl-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.6;
}

/* --- グリッド表示（既定） --- */

.cpl-list.is-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 24px 8px;
}

.cpl-list.is-grid .cpl-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
}

.cpl-list.is-grid .cpl-card:hover .cpl-thumb {
	border-color: #b9bdc4;
}

.cpl-list.is-grid .cpl-card-main {
	flex: 1 1 auto;
}

/* カード名が1行のタイルと2行のタイルが混ざっても価格の行が揃うようにする */
.cpl-list.is-grid .cpl-prices {
	margin-top: auto;
}

.cpl-list.is-grid .cpl-card-name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 「マスターボールミラー」のような長いレアリティ名で高さが崩れないよう1行に抑える */
.cpl-list.is-grid .cpl-card-meta {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
}

.cpl-list.is-grid .cpl-card-rarity {
	margin-right: 6px;
}

.cpl-list.is-grid .cpl-card-price {
	font-size: 14px;
}

.cpl-list.is-grid .cpl-empty {
	grid-column: 1 / -1;
}

/* --- 行表示（layout="rows"） --- */

.cpl-list.is-rows {
	border-top: 1px solid var(--cpl-border);
}

.cpl-list.is-rows .cpl-thumb {
	display: none;
}

.cpl-list.is-rows .cpl-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--cpl-border);
}

.cpl-list.is-rows .cpl-card:hover {
	background: var(--cpl-bg-soft);
}

.cpl-list.is-rows .cpl-card-name {
	font-weight: 600;
}

.cpl-list.is-rows .cpl-card-meta {
	font-size: 13px;
	gap: 8px;
}

.cpl-list.is-rows .cpl-card-price {
	font-size: 16px;
}

.cpl-list.is-rows .cpl-card.is-featured .cpl-card-name::after {
	content: "強化中";
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--cpl-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}

.cpl-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--cpl-muted);
}

/* --- もっと見る --- */

.cpl-more-wrap {
	text-align: center;
	margin-top: 24px;
}

.cpl-more {
	padding: 12px 40px;
	border: 1px solid var(--cpl-border);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	cursor: pointer;
	color: var(--cpl-text);
}

.cpl-more:hover {
	background: var(--cpl-bg-soft);
}

.cpl-more[hidden] {
	display: none;
}

/* --- パック一覧 --- */

.cpl-packs-heading {
	font-size: 15px;
	margin: 22px 0 6px;
}

.cpl-packs {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--cpl-border);
}

.cpl-packs li {
	margin: 0;
}

.cpl-packs a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 8px 14px 4px;
	border-bottom: 1px solid var(--cpl-border);
	text-decoration: none;
	color: inherit;
}

.cpl-packs a:hover {
	background: var(--cpl-bg-soft);
}

.cpl-packs a::after {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-top: 2px solid #b0b4bb;
	border-right: 2px solid #b0b4bb;
	transform: rotate(45deg);
}

.cpl-pack-name {
	flex: 1 1 auto;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.cpl-pack-count {
	flex: 0 0 auto;
	font-size: 13px;
	color: var(--cpl-muted);
	white-space: nowrap;
}

/* --- パック別ページ --- */

.cpl-pack-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 20px 60px;
}

.cpl-pack-page h1 {
	font-size: 24px;
	margin: 0 0 6px;
}

.cpl-breadcrumb {
	font-size: 13px;
	margin: 0 0 12px;
}

.cpl-breadcrumb a {
	color: var(--cpl-muted);
}

.cpl-asof {
	font-size: 13px;
	color: var(--cpl-muted);
	margin: 0 0 20px;
}

/* --- 個別カードページ --- */

.cpl-single {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 20px;
}

/*
 * 買取と販売は「2つの別のまとまり」に見せる。
 * ラベルと金額を近づけ、まとまり同士は離す。
 * 以前はラベルが10pxの灰色で、どちらの金額か一目で分からなかった。
 */
.cpl-single-prices {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	margin: 10px 0 4px;
}

.cpl-single-price-item .cpl-price-label {
	font-size: 13px;
	padding: 3px 8px;
	border-radius: 4px;
}

/*
 * 強化中のバッジ。買取ラベルのすぐ隣に置く。
 * 以前は価格ブロックの下に単独で置いていて、どちらの価格が強化対象なのか
 * 明示されていなかった。インラインstyleで書かれていたのもここへ移した。
 */
.cpl-featured-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--cpl-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	vertical-align: middle;
	white-space: nowrap;
}

.cpl-single-price-item.is-buy .cpl-price-label {
	background: var(--cpl-accent);
}

.cpl-single-price-item.is-sell .cpl-price-label {
	background: var(--cpl-sell);
}

.cpl-single-price {
	font-size: 30px;
	font-weight: 700;
	/* ラベルの直下に置く。離すとどちらの金額か分からなくなる */
	margin: 4px 0 0;
}

.cpl-single-price.is-sell {
	color: var(--cpl-sell);
}

.cpl-single-image {
	margin: 22px 0;
}

.cpl-image-zoom {
	position: relative;
	display: block;
	max-width: 320px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	box-shadow: none;
	cursor: zoom-in;
	overflow: hidden;
}

.cpl-image-zoom img {
	display: block;
	max-width: 100%;
	height: auto;
	transition: opacity 0.15s;
}

.cpl-image-zoom:hover img {
	opacity: 0.88;
}

.cpl-image-zoom:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 3px;
}

.cpl-image-zoom__hint {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
}

body.cpl-lightbox-open {
	overflow: hidden;
}

.cpl-lightbox[hidden] {
	display: none !important;
}

.cpl-lightbox {
	position: fixed;
	z-index: 2147483647;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 24px 24px;
	background: rgba(0, 0, 0, 0.88);
}

.cpl-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.cpl-lightbox__image {
	display: block;
	max-width: min(92vw, 1000px);
	max-height: calc(100vh - 80px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.cpl-lightbox__close {
	position: absolute;
	top: 12px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.cpl-lightbox__close:hover,
.cpl-lightbox__close:focus-visible {
	background: #fff;
	color: #111;
}

.cpl-single-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 24px;
}

.cpl-single-table th,
.cpl-single-table td {
	border-bottom: 1px solid var(--cpl-border);
	padding: 12px 8px;
	text-align: left;
	font-size: 15px;
}

.cpl-single-table th {
	width: 140px;
	color: var(--cpl-muted);
	font-weight: 600;
}

/* --- 詳細ページ：関連カード・閲覧履歴 --- */

.cpl-single-sections {
	max-width: 1100px;
	margin: 12px auto 0;
	padding: 42px 20px 72px;
	border-top: 1px solid var(--cpl-border);
}

.cpl-recommend-section + .cpl-recommend-section {
	margin-top: 64px;
}

.post_content .cpl-recommend-section h2,
.cpl-recommend-section h2 {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cpl-text);
	font-size: clamp(21px, 2.8vw, 27px);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-align: center;
}

.post_content .cpl-recommend-section h2::before,
.post_content .cpl-recommend-section h2::after {
	content: none;
	display: none;
}

.cpl-recommend-section__en {
	margin: 5px 0 28px;
	color: var(--cpl-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
}

.cpl-recommend-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 26px 18px;
}

.cpl-recommend-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.cpl-recommend-card__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 63 / 88;
	border: 1px solid var(--cpl-border);
	border-radius: 7px;
	background: var(--cpl-bg-soft);
	overflow: hidden;
	transition: border-color 0.15s, transform 0.15s;
}

.cpl-recommend-card:hover .cpl-recommend-card__thumb,
.cpl-recommend-card:focus-visible .cpl-recommend-card__thumb {
	border-color: var(--cpl-accent);
	transform: translateY(-2px);
}

.cpl-recommend-card:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 4px;
}

.cpl-recommend-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cpl-recommend-card__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.cpl-recommend-card__meta {
	overflow: hidden;
	color: var(--cpl-muted);
	font-size: 11px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpl-recommend-card__prices {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: auto;
}

.cpl-recommend-card__prices .cpl-card-price {
	font-size: 13px;
}

.cpl-recommend-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 22px;
	border-radius: 8px;
	background: var(--cpl-bg-soft);
	color: var(--cpl-muted);
	text-align: center;
}

@media (max-width: 900px) {
	.cpl-recommend-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cpl-index__grid,
	.cpl-guide__grid {
		grid-template-columns: 1fr;
	}

	.cpl-index__card {
		min-height: 110px;
	}

	.cpl-index-notice {
		margin-top: 34px;
		border-radius: 12px;
	}

	.cpl-index-notice__header,
	.cpl-index-notice__section {
		padding: 19px 17px;
	}

	.cpl-index-notice__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.post_content .cpl-index-notice__header h2,
	.cpl-index-notice__header h2 {
		font-size: 20px;
	}

	.cpl-index-notice__prices {
		grid-template-columns: 1fr;
	}

	.cpl-guide {
		padding: 18px 14px;
		border-radius: 12px;
	}

	.post_content .cpl-guide .cpl-guide__title {
		font-size: 17px;
	}

	.cpl-form {
		padding: 13px;
	}

	.cpl-submit {
		padding: 11px 16px;
	}

	.cpl-form-sub {
		gap: 8px;
	}

	/* スマホは2列。参考サイトも狭い幅では2列に落としている */
	.cpl-list.is-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}

	.cpl-list.is-rows .cpl-card-price {
		font-size: 15px;
	}

	.cpl-single-image {
		width: 100%;
	}

	/* ボタンは画像の幅に合わせて中央へ。
	   width:100% にすると、枠だけ本文幅（375px画面で305px）に広がり、
	   中の画像（medium = 206px）が左に寄る。
	   さらに .cpl-image-zoom__hint は**ボタン基準**の absolute なので、
	   「クリックで拡大」が画像から離れて右端に浮いてしまう。
	   ボタンを画像の幅に縮めると、両方いっぺんに直る。 */
	.cpl-image-zoom {
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
	}

	.cpl-single-sections {
		padding: 34px 16px 56px;
	}

	.cpl-recommend-section + .cpl-recommend-section {
		margin-top: 48px;
	}

	.cpl-recommend-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 10px;
	}
}

/* -----------------------------------------------------------------
 * 収録パックのサイドバー
 * 深さが可変なので、段ごとの決め打ちではなく入れ子で字下げする。
 * ----------------------------------------------------------------- */

.cpl-nav {
	font-size: 14px;
	line-height: 1.6;
}

.cpl-nav__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 10px;
}

.cpl-nav__game {
	font-size: 13px;
	font-weight: 700;
	margin: 18px 0 6px;
	color: var(--cpl-muted, #6b7280);
}

.cpl-nav__game:first-of-type {
	margin-top: 0;
}

/* テーマは ul ではなく li 側に list-style を当ててくることがある（SWELLで実測）。
   .post_content ul のような「クラス＋要素」のセレクタにも負けないよう、
   こちらも2つ重ねて特異度を上げる。 */
.cpl-nav .cpl-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 2段目以降だけ字下げする。1段目まで下げると左が無駄に空く */
.cpl-nav .cpl-nav__list:not(.cpl-nav__list--0) {
	padding-left: 12px;
	border-left: 1px solid var(--cpl-border, #e5e7eb);
	margin-left: 4px;
}

.cpl-nav .cpl-nav__item {
	list-style: none;
	margin: 0;
	padding-left: 0;
	text-indent: 0;
}

.cpl-nav .cpl-nav__item::before,
.cpl-nav .cpl-nav__item::marker {
	content: none;
	display: none;
}

.cpl-nav__branch {
	display: block;
	padding: 6px 0 4px;
	font-weight: 700;
	color: var(--cpl-text, #111827);
}

.cpl-nav__link {
	display: flex;
	/* 「クォーターセンチュリークロニクル」のような長いカタカナが
	   1文字ずつ折れると読めない。中黒や区切りを優先して折る */
	line-break: strict;
	overflow-wrap: break-word;
	justify-content: space-between;
	gap: 8px;
	align-items: baseline;
	padding: 5px 8px 5px 0;
	color: inherit;
	text-decoration: none;
	border-radius: 4px;
}

.cpl-nav__link:hover,
.cpl-nav__link:focus-visible {
	color: var(--cpl-accent, #b91c1c);
	text-decoration: underline;
}

.cpl-nav__item.is-current > .cpl-nav__link {
	font-weight: 700;
	color: var(--cpl-accent, #b91c1c);
}

.cpl-nav__count {
	flex: none;
	font-size: 12px;
	color: var(--cpl-muted, #6b7280);
	font-variant-numeric: tabular-nums;
}

/* -----------------------------------------------------------------
 * サイドバー＋価格表の2カラム
 * ----------------------------------------------------------------- */

.cpl-page {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.cpl-page__side-box {
	border: 1px solid var(--cpl-border, #e5e7eb);
	border-radius: 8px;
	padding: 14px 16px;
	background: var(--cpl-surface, #fff);
}

.cpl-page__side-title {
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	margin: 0 0 10px;
}

.cpl-page__side-title::-webkit-details-marker {
	display: none;
}

.cpl-page__side-title::after {
	content: "－";
	float: right;
	color: var(--cpl-muted, #6b7280);
	font-weight: 400;
}

.cpl-page__side-box:not([open]) .cpl-page__side-title {
	margin-bottom: 0;
}

.cpl-page__side-box:not([open]) .cpl-page__side-title::after {
	content: "＋";
}

/* スマホでは1カラム。サイドバーは畳んだまま検索窓の上に置く。
   下に回すと、カードを何百件もスクロールしないと辿り着かず、
   実質「無い」のと同じになる。畳んであれば1行しか占めない。 */
@media (max-width: 900px) {
	.cpl-page {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.cpl-page__side-box {
		padding: 10px 14px;
	}

	/* 開いたときに画面を占領しないよう、中身だけスクロールさせる */
	.cpl-page__side-box[open] .cpl-nav {
		max-height: 50vh;
		overflow-y: auto;
		margin-top: 4px;
	}
}

/* -----------------------------------------------------------------
 * 横断検索ページ（[card_price_search]）
 * ヘッダーの検索窓から来る、カード名・型番で探す入口。
 * ----------------------------------------------------------------- */

.cpl-search-page {
	--cpl-border: #e3e5e8;
	--cpl-text: #1d2327;
	--cpl-muted: #6b7280;
	--cpl-accent: #d63638;

	font-size: 15px;
	color: var(--cpl-text);
	line-height: 1.6;
}

.cpl-search-page__form {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.cpl-search-page__form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--cpl-border);
	border-radius: 8px;
	font-size: 16px; /* 16px未満だとiOSで拡大される */
}

.cpl-search-page__form button {
	flex: none;
	padding: 12px 24px;
	border: 1px solid var(--cpl-accent);
	border-radius: 8px;
	background: var(--cpl-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* 未入力のときの案内。全件を出さずここで止める */
.cpl-search-page__empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--cpl-muted);
	background: var(--cpl-bg-soft, #f6f7f8);
	border-radius: 10px;
}

.cpl-search-page__empty span {
	font-size: 13px;
}

.cpl-search-page__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cpl-border);
}

/* 買取／販売の切り替え */
.cpl-search-page__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--cpl-bg-soft, #f6f7f8);
	border-radius: 8px;
}

.cpl-search-page__tab {
	padding: 7px 18px;
	border-radius: 6px;
	color: var(--cpl-muted);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}

.cpl-search-page__tab.is-on {
	background: #fff;
	color: var(--cpl-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ゲームの絞り込み */
.cpl-search-page__games {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cpl-search-page__game {
	padding: 6px 14px;
	border: 1px solid var(--cpl-border);
	border-radius: 6px;
	color: var(--cpl-muted);
	text-decoration: none;
	font-size: 13px;
}

.cpl-search-page__game.is-on {
	border-color: var(--cpl-accent);
	background: var(--cpl-accent);
	color: #fff;
	font-weight: 700;
}

/* 横断検索のカードに出すゲーム名。
   ゲームを絞った一覧では自明なので出さない */
.cpl-card-game {
	display: inline-block;
	margin-bottom: 2px;
	font-size: 11px;
	color: var(--cpl-muted);
}

@media (max-width: 600px) {
	.cpl-search-page__filters {
		flex-direction: column;
		align-items: stretch;
	}

	.cpl-search-page__tabs {
		justify-content: center;
	}
}

/* -----------------------------------------------------------------
 * ヘッダーの「商品カテゴリ」パネル（[card_category_panel]）
 *
 * スマホは全画面、PCは幅広のパネル＋背景オーバーレイ。
 * 同じDOMをCSSで出し分ける（スマホ版とPC版を二重に持たない）。
 * ----------------------------------------------------------------- */

.cpl-category {
	position: relative;
	flex: none;
}

/* hidden 属性はCSSの display に負ける。
   パネル内の要素は display を明示しているので、ここで打ち消す */
.cpl-category [hidden] {
	display: none !important;
}

/* パネルはヘッダーの中にあるが、見た目はヘッダーから独立させる。
   テーマがヘッダー内のリンクを白にしているとパネルの文字が消える */
.cpl-category__panel,
.cpl-category__panel a {
	color: var(--cpl-text, #1d2327);
}

.cpl-category__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	border: none;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.18);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.cpl-category__btn:hover,
.cpl-category__btn:focus-visible {
	background: rgba(0, 0, 0, 0.3);
}

/* ハンバーガーの線。アイコンフォントを足さずCSSだけで作る */
/* カテゴリのアイコン。四分割のグリッド（右上だけ丸）。
   mask で描いているので currentColor がそのまま乗る＝
   赤ヘッダーでも白、パネル内では黒、と文字色に追従する。 */
.cpl-category__btn-icon {
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: var(--cpl-category-icon) center / contain no-repeat;
	mask: var(--cpl-category-icon) center / contain no-repeat;
	--cpl-category-icon: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\
<rect x="16" y="16" width="190" height="190" rx="40" ry="40" fill="none" stroke="black" stroke-width="56"/>\
<circle cx="402" cy="111" r="95" fill="none" stroke="black" stroke-width="56"/>\
<rect x="16" y="306" width="190" height="190" rx="40" ry="40" fill="none" stroke="black" stroke-width="56"/>\
<rect x="306" y="306" width="190" height="190" rx="40" ry="40" fill="none" stroke="black" stroke-width="56"/>\
</svg>');
}

.cpl-category__panel {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.cpl-category__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 22, 0.5);
}

.cpl-category__inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--cpl-text, #1d2327);
}

.cpl-category__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--cpl-border, #e3e5e8);
}

.cpl-category__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.cpl-category__close {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: var(--cpl-text, #1d2327);
	cursor: pointer;
}

.cpl-category__switches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--cpl-border, #e3e5e8);
}

.cpl-category__switch {
	display: flex;
	gap: 4px;
	padding: 3px;
	background: var(--cpl-bg-soft, #f6f7f8);
	border-radius: 6px;
}

.cpl-category__mode,
.cpl-category__game {
	padding: 6px 14px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: var(--cpl-muted, #6b7280);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.cpl-category__mode[aria-pressed="true"],
.cpl-category__game[aria-pressed="true"] {
	background: #fff;
	color: var(--cpl-accent, #d63638);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* パネルの中身だけスクロールさせる。背面はJSで止める */
.cpl-category__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0;
}

.cpl-category__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpl-category__list--0 > .cpl-category__item {
	border-bottom: 1px solid var(--cpl-border, #e3e5e8);
}

.cpl-category__item {
	margin: 0;
	list-style: none;
}

.cpl-category__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	font-weight: 700;
	color: var(--cpl-accent, #d63638);
	cursor: pointer;
	list-style: none;
}

.cpl-category__summary::-webkit-details-marker {
	display: none;
}

.cpl-category__summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.cpl-category__branch[open] > .cpl-category__summary::after {
	transform: rotate(-135deg) translateY(-2px);
}

/* 下位は背景を少し落として階層を示す */
.cpl-category__branch > .cpl-category__list {
	background: var(--cpl-bg-soft, #f6f7f8);
}

.cpl-category__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px 12px 28px;
	color: inherit;
	text-decoration: none;
}

.cpl-category__list--0 > .cpl-category__item > .cpl-category__link {
	padding-left: 16px;
	color: var(--cpl-accent, #d63638);
	font-weight: 700;
}

.cpl-category__link:hover,
.cpl-category__link:focus-visible {
	background: rgba(0, 0, 0, 0.04);
}

.cpl-category__count {
	flex: none;
	font-size: 12px;
	color: var(--cpl-muted, #6b7280);
	font-variant-numeric: tabular-nums;
}

.cpl-category__empty {
	padding: 24px 16px;
	color: var(--cpl-muted, #6b7280);
}

.cpl-category__foot {
	padding: 12px 16px;
	border-top: 1px solid var(--cpl-border, #e3e5e8);
}

.cpl-category__all {
	display: block;
	padding: 12px;
	border: 1px solid var(--cpl-accent, #d63638);
	border-radius: 6px;
	color: var(--cpl-accent, #d63638);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.cpl-category__all:hover,
.cpl-category__all:focus-visible {
	background: var(--cpl-accent, #d63638);
	color: #fff;
}

/* PCは全画面にせず、左寄せの幅広パネルにする。
   可変深さのツリーを小さなドロップダウンに収めると、幅も高さも足りない */
@media (min-width: 782px) {
	.cpl-category__inner {
		right: auto;
		width: min(560px, 92vw);
		box-shadow: 0 10px 40px rgba(15, 18, 22, 0.25);
	}
}

/* Homepage image carousel: centered artwork with a preview at both edges. */
.cpl-home-slider.is-banner-only {
	--cpl-banner-width: min(72vw, 1040px);
	--cpl-banner-gap: 24px;
	padding: 24px 0 0;
	color: #20252b;
	background: #f3f4f6;
}
.cpl-home-slider.is-banner-only .cpl-home-slider__stage {
	min-height: 0;
	height: calc(var(--cpl-banner-width) / 2);
	aspect-ratio: auto;
	overflow: visible;
	touch-action: pan-y;
}
.cpl-home-slider.is-banner-only .cpl-home-banner {
	width: var(--cpl-banner-width);
	left: calc((100% - var(--cpl-banner-width)) / 2);
	border-radius: 10px;
	background: transparent;
}
.cpl-banner-track {
	display: flex;
	gap: var(--cpl-banner-gap);
	height: 100%;
	margin-left: calc((100% - var(--cpl-banner-width)) / 2);
	transform: translateX(calc(var(--cpl-position) * -1 * (var(--cpl-banner-width) + var(--cpl-banner-gap))));
	transition: transform .6s cubic-bezier(.22,.68,.25,1);
}
.cpl-home-slider.is-banner-ready .cpl-home-banner {
	position: relative;
	inset: auto;
	flex: 0 0 var(--cpl-banner-width);
	height: 100%;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}
.cpl-home-slider.is-banner-only .cpl-home-slider__controls {
	position: relative;
	inset: auto;
	padding: 18px 0;
	gap: 18px;
}
.cpl-home-slider.is-banner-only .cpl-home-slider__controls button {
	color: #252a30;
	background: #fff;
	border: 1px solid #d9dce0;
}
.cpl-home-slider.is-banner-only .cpl-home-slider__dots { gap: 8px; }
.cpl-home-slider.is-banner-only .cpl-home-slider__dots button {
	width: 40px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: #c6cbd0;
}
.cpl-home-slider.is-banner-only .cpl-home-slider__dots button[aria-current="true"] { background: #e8352a; }
.cpl-home-slider.is-banner-only button:focus-visible,
.cpl-featured-controls button:focus-visible,
.cpl-featured-track:focus-visible { outline: 3px solid #2768bc; outline-offset: 4px; }
.cpl-home-featured .cpl-list.is-grid.cpl-featured-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #d3d6db transparent;
	padding: 8px 4px 18px;
}
.cpl-featured-track > .cpl-card {
	flex: 0 0 clamp(210px, 24%, 280px);
	scroll-snap-align: start;
	min-width: 0;
}
.cpl-featured-controls { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.cpl-featured-controls[hidden] { display: none; }
.cpl-featured-controls button {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #d9dce0;
	border-radius: 50%;
	background: #fff;
	color: #252a30;
	font-size: 22px;
	cursor: pointer;
}
.cpl-featured-controls [data-cpl-featured-toggle] { font-size: 14px; }
@media (max-width: 599px) {
	.cpl-home-slider.is-banner-only { --cpl-banner-width: 88vw; --cpl-banner-gap: 12px; padding-top: 14px; }
	.cpl-home-slider.is-banner-only:has(.cpl-home-banner.has-no-sp) .cpl-home-slider__stage { aspect-ratio: auto; }
	.cpl-home-slider.is-banner-only:not(:has(.cpl-home-banner.has-no-sp)) .cpl-home-slider__stage { height: var(--cpl-banner-width); }
	.cpl-home-slider.is-banner-only .cpl-home-banner { border-radius: 6px; }
	.cpl-home-slider.is-banner-only .cpl-home-slider__controls { padding: 12px 0; gap: 12px; }
	.cpl-home-featured .cpl-list.is-grid.cpl-featured-track { gap: 14px; margin-right: -16px; }
	.cpl-featured-track > .cpl-card { flex-basis: 64%; }
}
@media (prefers-reduced-motion: reduce) {
	.cpl-banner-track { transition: none; }
}

/* ------------------------------------------------------------------
   お問い合わせフォーム

   入力欄は「押せる・打てる」と一目で分かる見た目にする。
   買取の相談が主な用途なので、スマホで片手で打つ前提で
   高さと文字サイズを確保している（16px未満にするとiOSが勝手に拡大する）。
   ------------------------------------------------------------------ */

.cpl-contact {
	max-width: 680px;
	margin: 0 auto;
}

.cpl-contact__row {
	margin-bottom: 22px;
}

.cpl-contact__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 15px;
	color: var(--cpl-text);
}

.cpl-contact__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.cpl-contact__req,
.cpl-contact__opt {
	flex: none;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}

.cpl-contact__req {
	background: var(--cpl-accent);
	color: #fff;
}

.cpl-contact__opt {
	background: var(--cpl-bg-soft);
	color: var(--cpl-muted);
}

.cpl-contact__desc {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--cpl-muted);
}

.cpl-contact .cpl-contact__form input[type="text"],
.cpl-contact .cpl-contact__form input[type="email"],
.cpl-contact .cpl-contact__form input[type="tel"],
.cpl-contact .cpl-contact__form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #c9ccd1;
	border-radius: 8px;
	background: #fff;
	/* 16px を下回るとiOSが入力時にページを拡大する */
	font-size: 16px;
	line-height: 1.6;
	color: var(--cpl-text);
}

.cpl-contact__form textarea {
	resize: vertical;
	min-height: 170px;
}

.cpl-contact__form input:focus,
.cpl-contact__form textarea:focus {
	outline: 2px solid var(--cpl-accent);
	outline-offset: 1px;
	border-color: var(--cpl-accent);
}

/* 種別の選択。タップ領域を広く取る */
.cpl-contact__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cpl-contact__choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 11px 16px;
	border: 1px solid #c9ccd1;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	line-height: 1.6;
	cursor: pointer;
}

.cpl-contact__choice:hover {
	background: var(--cpl-bg-soft);
}

.cpl-contact__choice input {
	margin: 4px 0 0;
	flex: none;
}

.cpl-contact__choice:has(input:checked) {
	border-color: var(--cpl-accent);
	background: #fdf2f2;
}

.cpl-contact__choice:has(input:focus-visible) {
	outline: 2px solid var(--cpl-accent);
	outline-offset: 2px;
}

.cpl-contact__consent .cpl-contact__choice {
	border: 0;
	padding: 0;
	background: none;
}

.cpl-contact__note {
	margin: 0 0 22px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--cpl-bg-soft);
	font-size: 13px;
	line-height: 1.8;
	color: var(--cpl-muted);
}

.cpl-contact__submit {
	text-align: center;
}

/* SWELL が `button, input, select, textarea` に背景を当てているので、
   クラス1つだと詳細度が同点になり、記述順しだいで負ける。
   .cpl-contact を前置して確実に勝たせる。 */
.cpl-contact .cpl-contact__btn {
	min-width: 220px;
	padding: 15px 40px;
	border: 0;
	border-radius: 999px;
	background: var(--cpl-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.cpl-contact .cpl-contact__btn:hover {
	opacity: 0.88;
}

.cpl-contact .cpl-contact__btn:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 3px;
}

/* 送信完了・エラー */

.cpl-contact__done,
.cpl-contact__errors {
	margin-bottom: 26px;
	padding: 16px 18px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.8;
}

.cpl-contact__done {
	border: 1px solid #bbe0c2;
	background: #f2fbf4;
}

.cpl-contact__done-title {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 17px;
}

.cpl-contact__done p:last-child {
	margin-bottom: 0;
}

.cpl-contact__errors {
	border: 1px solid #f0b7b7;
	background: #fdf2f2;
}

.cpl-contact__errors-title {
	margin: 0 0 6px;
	font-weight: 700;
	color: #a3221d;
}

.cpl-contact__errors ul {
	margin: 0;
	padding-left: 1.3em;
}

/* ハニーポット。人の画面からは完全に消すが、display:none だと
   埋めない機械も出てくるので、画面外へ追い出す書き方にしている */
.cpl-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 599px) {
	.cpl-contact__choices {
		display: grid;
		grid-template-columns: 1fr;
	}

	.cpl-contact__btn {
		width: 100%;
	}
}

/* 価格のすぐ下に出す税の表記。価格より目立たせない */
.cpl-single-tax {
	margin: -6px 0 18px;
	font-size: 13px;
	color: var(--cpl-muted);
}
