/**
 * Front page (home) layout — iterate here without touching global style.css heavily.
 */

.home-page {
	--home-hero-bg: linear-gradient(165deg, #0c0c0e 0%, #15151a 42%, #0f1218 100%);
	--home-hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 113, 227, 0.35), transparent 55%);
}

/* Hero */
.home-hero {
	position: relative;
	padding: clamp(1.25rem, 4vw, 3rem) 0 clamp(1.25rem, 3vw, 2.5rem);
	text-align: center;
	background: var(--home-hero-bg);
	border-bottom: none;
	overflow: hidden;
}

.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--home-hero-glow);
	pointer-events: none;
	z-index: 1;
}

.home-hero--has-media-bg {
	background-color: #0c0c0e;
	background-image: none;
}

.home-hero--has-media-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--home-hero-bg-image);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	pointer-events: none;
	transform: scale(1);
	transform-origin: center top;
	animation: home-hero-bg-kenburns 20s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes home-hero-bg-kenburns {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.05);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero--has-media-bg::after {
		animation: none;
		will-change: auto;
	}
}

.home-hero--has-media-bg::before {
	background:
		var(--home-hero-glow),
		var(--home-hero-bg);
	opacity: 0.4;
}

.home-hero .container {
	position: relative;
	z-index: 1;
}

.home-hero__eyebrow {
	display: none;
}

.home-hero__title {
	margin: 0 0 var(--space-sm);
	font-size: clamp(1.1rem, 3.96vw, 1.65rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.03em;
	background: linear-gradient(
		125deg,
		#ffffff 0%,
		#fffef5 12%,
		#fff6dc 28%,
		#f8ecc4 45%,
		#fff9e8 62%,
		#f3e5ab 78%,
		#ffffff 100%
	);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 16px rgba(255, 248, 220, 0.65)) drop-shadow(0 0 32px rgba(212, 175, 55, 0.22));
}

@media (min-width: 768px) {
	.home-hero__title {
		font-size: 1.65rem;
	}
}

.home-hero__lead {
	max-width: 36rem;
	margin: 0 auto var(--space-lg);
	font-size: clamp(0.6825rem, 2.352vw, 0.8925rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
}

.home-hero .hero-search-form {
	max-width: 560px;
}

.home-hero .hero-search-input {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.home-hero .hero-search-input:focus {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(0, 113, 227, 0.35);
}

.home-hero .search-icon {
	color: var(--text-secondary);
}

.home-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	margin-top: var(--space-md);
}

.home-hero__tags-label {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}

.home-hero__tag {
	display: inline-flex;
	padding: 0.35rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius-full);
	transition: background 0.2s, border-color 0.2s;
}

.home-hero__tag:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
}

.home-hero__tag--desktop-only {
	display: none;
}

@media (min-width: 768px) {
	.home-hero__tag--desktop-only {
		display: inline-flex;
	}
}

/* Search results — empty catalog suggestions */
.search-suggest__card {
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.search-suggest__lead {
	margin: 0 0 var(--space-md);
	color: var(--text-secondary);
	line-height: 1.6;
}

.search-suggest__label {
	margin: 0 0 var(--space-sm);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-primary);
}

.search-suggest__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
}

.search-suggest__tag {
	display: inline-flex;
	padding: 0.4rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--color-blue);
	text-decoration: none;
	background: rgba(0, 113, 227, 0.08);
	border: 1px solid rgba(0, 113, 227, 0.22);
	border-radius: var(--radius-full);
	transition: background 0.2s, border-color 0.2s;
}

.search-suggest__tag:hover {
	color: var(--color-blue);
	background: rgba(0, 113, 227, 0.14);
	border-color: rgba(0, 113, 227, 0.35);
}

.search-suggest__actions {
	margin: 0;
}

.home-hero__nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.5rem, 1.6vw, 0.75rem);
	max-width: min(720px, 100%);
	margin: var(--space-lg) auto 0;
}

@media (max-width: 520px) {
	.home-hero__nav {
		gap: 0.35rem;
	}
}

/* 3ボタン共通（5:3・藍枠・全面背景画像） */
.home-hero__nav-link {
	--home-nav-indigo: #0a1d2b;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 5 / 3;
	padding: 0;
	text-decoration: none;
	background: #e8eef4;
	border: 2px solid var(--home-nav-indigo);
	border-radius: var(--radius-md);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-hero__nav-link:hover {
	transform: translateY(-2px);
	border-color: #0f2840;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-hero__nav-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-hero__nav-media-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.home-hero__nav-copy {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
	pointer-events: none;
}

.home-hero__nav-band {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.825rem 0.75rem;
	box-sizing: border-box;
	text-align: center;
	background: rgba(0, 0, 0, 0.6);
}

.home-hero__nav-line {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
	white-space: nowrap;
	line-height: 1.25;
}

.home-hero__nav-title {
	font-size: clamp(0.8125rem, 2.6vw, 1rem);
	font-weight: 700;
	line-height: inherit;
	letter-spacing: 0.02em;
	color: #ffffff;
	text-shadow: none;
}

.home-hero__nav-sub {
	font-size: clamp(0.625rem, 2vw, 0.75rem);
	font-weight: 600;
	line-height: inherit;
	color: #ffffff;
	text-shadow: none;
}

@media (max-width: 520px) {
	.home-hero__nav-band {
		padding: 0.6rem 0.525rem;
	}

	.home-hero__nav-title {
		font-size: clamp(0.6875rem, 2.4vw, 0.8125rem);
	}

	.home-hero__nav-sub {
		font-size: clamp(0.5625rem, 1.8vw, 0.6875rem);
	}
}

/* Section chrome */
.home-section {
	padding: var(--space-2xl) 0;
}

.home-section--alt {
	background: var(--bg-secondary);
}

.home-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-bottom: var(--space-xl);
}

.home-section__makers {
	margin-top: calc(-1 * var(--space-md));
	margin-bottom: var(--space-lg);
}

@media (max-width: 639px) {
	.home-section__makers {
		margin-right: calc(-1 * var(--space-md));
		margin-left: calc(-1 * var(--space-md));
		padding-right: var(--space-md);
		padding-left: var(--space-md);
	}
}

.home-section__title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.home-section__link {
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.home-section__desc {
	width: 100%;
	margin: calc(-1 * var(--space-sm)) 0 0;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

/* Card grid */
.home-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.home-card-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-lg);
	}
}

@media (min-width: 960px) {
	.home-card-grid--cards {
		grid-template-columns: repeat(6, 1fr);
	}

	.home-card-grid--cards.home-card-grid--featured {
		grid-template-columns: repeat(5, 1fr);
		align-items: stretch;
	}

	.home-card-grid--featured .home-card-tile {
		height: 100%;
	}

	.home-card-grid--featured .home-card-tile__body {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	.home-card-grid--featured .home-card-tile__prices--dual {
		margin-top: auto;
	}

	/* 高騰 高額買取 PC: 5列は狭いのでコンパクト表示 */
	.home-card-grid--featured .home-card-tile__media {
		aspect-ratio: 5 / 6;
		margin-bottom: var(--space-xs);
	}

	.home-card-grid--featured .home-card-tile__name {
		font-size: 0.75rem;
		margin-bottom: 0.25rem;
	}

	.home-card-grid--featured .home-card-tile__prices--dual {
		gap: 0.22rem;
	}

	.home-card-grid--featured .home-card-tile__prices--full {
		gap: 0.28rem;
	}

	.home-card-grid--featured .home-card-tile__price-block {
		gap: 0.05rem;
	}

	.home-card-grid--featured .home-card-tile__price-row {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 0.15rem 0.25rem;
	}

	.home-card-grid--featured .home-card-tile__price-label {
		flex: 0 0 auto;
		width: fit-content;
		max-width: 70%;
		padding: 0.12rem 0.28rem;
		font-size: 0.5625rem;
		line-height: 1.15;
		text-align: left;
	}

	.home-card-grid--featured .home-card-tile__price-value {
		flex: 0 0 auto;
		margin-left: auto;
		font-size: 0.6875rem;
		text-align: right;
		white-space: nowrap;
	}

	.home-card-grid--featured .home-card-tile__price-shop {
		padding-left: 0;
		font-size: 0.5625rem;
		text-align: right;
		line-height: 1.2;
	}

	.home-card-grid--featured .home-card-tile__market-summary {
		margin-top: 0.25rem;
		font-size: 0.5625rem;
		line-height: 1.35;
		text-align: left;
	}

	.home-card-grid--featured .home-card-tile__market--pc-only {
		min-height: 2.75em;
		margin-top: 0.25rem;
	}

	.home-card-grid--featured .home-card-tile--market-full .home-card-tile__prices--full {
		gap: 0.28rem;
	}
}

/* 高騰 高額買取: SP は 1〜3位を大きく1列、4〜5位を2列 */
@media (max-width: 639px) {
	.home-card-grid--featured {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-sm);
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: stretch;
		gap: var(--space-sm);
		padding: var(--space-sm);
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__media {
		flex: 0 0 42%;
		max-width: none;
		margin-inline: 0;
		margin-bottom: 0;
		min-width: 0;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__body {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		min-width: 0;
		text-align: left;
		padding: var(--space-xs) var(--space-xs) var(--space-xs) 0;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__name {
		font-size: 0.875rem;
		-webkit-line-clamp: 3;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__price-value {
		font-size: 0.9375rem;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__price-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.12rem;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__price-value {
		align-self: flex-start;
		margin-left: 0;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__price-shop {
		margin-bottom: 0.1rem;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(-n + 3) .home-card-tile__market-summary {
		margin-top: 0.35rem;
		line-height: 1.4;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(n + 4) {
		padding: var(--space-sm);
	}

	.home-card-grid--featured > .home-card-tile:nth-child(n + 4) .home-card-tile__media {
		margin-bottom: var(--space-xs);
	}

	.home-card-grid--featured > .home-card-tile:nth-child(n + 4) .home-card-tile__name {
		font-size: 0.75rem;
		-webkit-line-clamp: 2;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(n + 4) .home-card-tile__price-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(n + 4) .home-card-tile__price-value {
		margin-left: 0;
	}

	.home-card-grid--featured > .home-card-tile:nth-child(n + 4) .home-card-tile__market-summary {
		font-size: 0.5625rem;
	}
}

.home-card-grid--featured .home-card-tile--rank-1 {
	border: 3px solid #d4af37;
}

.home-card-grid--featured .home-card-tile--rank-2 {
	border: 3px solid #a8a8b0;
}

.home-card-grid--featured .home-card-tile--rank-3 {
	border: 3px solid #cd7f32;
}

.home-card-grid--featured .home-card-tile--rank-4,
.home-card-grid--featured .home-card-tile--rank-5 {
	border: 3px solid #1e3a5f;
}

/* 高騰: ラベル帯は文字幅だけ（行全体に伸ばさない） */
.home-card-grid--featured .home-card-tile__price-row {
	justify-content: flex-start;
	gap: 0.3rem 0.4rem;
}

.home-card-grid--featured .home-card-tile__price-label {
	flex: 0 0 auto;
	width: fit-content;
	max-width: 72%;
}

.home-card-grid--featured .home-card-tile__price-value {
	flex: 0 0 auto;
	margin-left: auto;
}

.home-card-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--space-sm);
	text-decoration: none;
	color: inherit;
	background: var(--bg-card);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.home-card-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: rgba(0, 113, 227, 0.25);
	color: inherit;
}

.home-card-tile__rank {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
	color: var(--color-black);
	background: var(--color-gold);
	border: 2px solid var(--color-gold);
	border-radius: var(--radius-full);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 順位バッジ = カード枠と同じアクセント色 */
.home-card-tile__rank--1 {
	color: #3d2e00;
	background: #d4af37;
	border-color: #d4af37;
}

.home-card-tile__rank--2 {
	color: #2a2a2e;
	background: #a8a8b0;
	border-color: #a8a8b0;
}

.home-card-tile__rank--3 {
	color: #fff;
	background: #cd7f32;
	border-color: #cd7f32;
}

.home-card-tile__rank--4,
.home-card-tile__rank--5 {
	color: #f0f4f8;
	background: #1e3a5f;
	border-color: #1e3a5f;
}

.home-card-tile__media {
	aspect-ratio: 2.5 / 3.5;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-sm);
	padding: var(--space-xs);
	background: linear-gradient(180deg, #f0f0f4 0%, #e8e8ed 100%);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.home-card-tile__body {
	text-align: center;
	padding: 0 var(--space-xs) var(--space-xs);
}

.home-card-tile__rarity {
	display: inline-block;
	margin-bottom: 0.25rem;
	padding: 0.1rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-black);
	background: var(--color-gray-light);
	border-radius: var(--radius-sm);
}

.home-card-tile__name {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-card-tile__price {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--color-gold);
}

.home-card-tile__prices--dual {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	margin-top: 0.15rem;
}

.home-card-tile__prices--full {
	gap: 0.45rem;
}

.home-card-tile__price-block {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.home-card-tile__price-shop {
	margin: 0;
	padding-left: 0.1rem;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--text-secondary);
}

.home-card-tile__price-row--spread .home-card-tile__price-label {
	color: #3d3d42;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.home-card-tile__market-summary {
	margin: 0.35rem 0 0;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-secondary);
	word-break: break-word;
}

.home-card-tile__market--pc-only {
	display: none;
}

@media (min-width: 960px) {
	.home-card-tile__market--sp-only {
		display: none !important;
	}

	.home-card-grid--featured .home-card-tile__market--pc-only {
		display: block;
	}

	.home-card-grid--featured .home-card-tile--market-full .home-card-tile__prices--full {
		gap: 0.22rem;
	}
}

.home-card-grid--featured > .home-card-tile--market-full .home-card-tile__market--sp-only {
	margin-top: auto;
	padding-top: 0.35rem;
}

@media (max-width: 639px) {
	.home-card-grid--featured > .home-card-tile--market-full .home-card-tile__prices--dual {
		margin-top: 0.35rem;
	}
}

.home-card-tile__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.5rem;
}

.home-card-tile__price-label {
	display: inline-block;
	padding: 0.2rem 0.45rem;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.25;
	border-radius: var(--radius-sm);
}

.home-card-tile__price-row--buy .home-card-tile__price-label {
	color: #0c4a7a;
	background: rgba(0, 113, 227, 0.14);
	border: 1px solid rgba(0, 113, 227, 0.28);
}

.home-card-tile__price-row--sell .home-card-tile__price-label {
	color: #8b2e28;
	background: rgba(214, 59, 50, 0.12);
	border: 1px solid rgba(214, 59, 50, 0.26);
}

.home-card-tile__price-value {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-black, #1d1d1f);
}

.home-card-grid--featured > .home-card-tile:nth-child(-n + 3):not(.home-card-tile--market-full) .home-card-tile__prices--dual {
	margin-top: 0.35rem;
}

.home-card-grid--featured > .home-card-tile:nth-child(-n + 3):not(.home-card-tile--market-full) .home-card-tile__market-summary {
	margin-top: 0.4rem;
	padding-top: 0.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-card-tile__meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--text-secondary);
}

/* Latest cards carousel */
.home-card-slider-shell {
	position: relative;
	margin: 0 calc(-1 * var(--space-md));
}

@media (min-width: 640px) {
	.home-card-slider-shell {
		margin: 0;
	}
}

.home-card-slider {
	position: relative;
}

.home-card-slider__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.home-card-slider__viewport::-webkit-scrollbar {
	display: none;
}

.home-card-slider__track {
	display: flex;
	align-items: stretch;
	gap: var(--space-md);
	padding: var(--space-xs) var(--space-md) var(--space-sm);
}

.home-card-slider__slide {
	flex: 0 0 clamp(158px, 40vw, 200px);
	scroll-snap-align: center;
}

.home-card-slider__slide .home-card-tile {
	height: 100%;
}

.home-card-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius-full);
	background: var(--bg-card);
	color: var(--text-primary);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transform: translateY(-50%);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.home-card-slider__arrow:hover {
	border-color: rgba(0, 113, 227, 0.25);
	box-shadow: var(--shadow-md);
}

.home-card-slider__arrow--prev {
	left: 0;
}

.home-card-slider__arrow--next {
	right: 0;
}

@media (max-width: 639px) {
	.home-card-slider__arrow--prev {
		left: var(--space-xs);
	}

	.home-card-slider__arrow--next {
		right: var(--space-xs);
	}
}

/* BOX row */
.home-box-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.home-box-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.home-box-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.home-box-grid--top5 {
		grid-template-columns: repeat(5, 1fr);
	}
}

.home-box-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-md);
	padding-top: calc(var(--space-md) + 0.35rem);
	text-decoration: none;
	color: inherit;
	background: var(--bg-card);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--radius-lg);
	transition: transform 0.2s, box-shadow 0.2s;
}

.home-box-tile__rank {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
	border-radius: var(--radius-full);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-box-tile__rank--1 {
	color: #3d2e00;
	background: #d4af37;
	border: 2px solid #d4af37;
}

.home-box-tile__rank--2 {
	color: #2a2a2e;
	background: #a8a8b0;
	border: 2px solid #a8a8b0;
}

.home-box-tile__rank--3 {
	color: #fff;
	background: #cd7f32;
	border: 2px solid #cd7f32;
}

.home-box-tile__rank--4,
.home-box-tile__rank--5 {
	color: #f0f4f8;
	background: #1e3a5f;
	border: 2px solid #1e3a5f;
}

.home-box-grid--top5 .home-box-tile--rank-1 {
	border: 3px solid #d4af37;
}

.home-box-grid--top5 .home-box-tile--rank-2 {
	border: 3px solid #a8a8b0;
}

.home-box-grid--top5 .home-box-tile--rank-3 {
	border: 3px solid #cd7f32;
}

.home-box-grid--top5 .home-box-tile--rank-4,
.home-box-grid--top5 .home-box-tile--rank-5 {
	border: 3px solid #1e3a5f;
}

.home-box-tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	color: inherit;
}

.home-box-tile__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-gray-light);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.home-box-tile__name {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.home-box-tile__price {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

/* Oripa + blog */
.home-oripa-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
}

@media (min-width: 768px) {
	.home-oripa-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.home-oripa-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.home-oripa-card {
	--oripa-card-glow: rgba(0, 113, 227, 0.12);
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: calc(var(--radius-lg) + 2px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-oripa-card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 113, 227, 0.18);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.home-oripa-card__media {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.home-oripa-card__rank {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
	color: #2a2200;
	background: linear-gradient(145deg, #ffe9a8 0%, #d4af37 45%, #b8922a 100%);
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-full);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.home-oripa-card--rank-1 .home-oripa-card__rank {
	color: #3d2e00;
	background: linear-gradient(145deg, #fff4c2 0%, #e6c547 40%, #c9a227 100%);
}

.home-oripa-card--rank-2 .home-oripa-card__rank {
	color: #2a2a2e;
	background: linear-gradient(145deg, #f0f0f4 0%, #c8c8d0 50%, #a8a8b0 100%);
}

.home-oripa-card--rank-3 .home-oripa-card__rank {
	color: #fff;
	background: linear-gradient(145deg, #e8a86b 0%, #cd7f32 55%, #a86428 100%);
}

.home-oripa-card--rank-4 .home-oripa-card__rank {
	color: #eef4ff;
	background: linear-gradient(145deg, #4a7ab8 0%, #1e3a5f 100%);
}

.home-oripa-card__thumb {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #e8eef5 0%, #dce4ef 100%);
	position: relative;
}

.home-oripa-card__thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(248, 250, 252, 0.92) 100%);
}

.home-oripa-card__thumb::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-18deg);
	transition: left 0.6s ease;
}

.home-oripa-card:hover .home-oripa-card__thumb::after {
	left: 140%;
}

.home-oripa-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-oripa-card:hover .home-oripa-card__img {
	transform: scale(1.04);
}

.home-oripa-card__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 20%, rgba(0, 113, 227, 0.12), transparent 50%),
		linear-gradient(135deg, rgba(0, 113, 227, 0.07), rgba(212, 175, 55, 0.08));
}

.home-oripa-card__thumb-mark {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	color: rgba(0, 113, 227, 0.35);
}

.home-oripa-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--space-md) var(--space-md) var(--space-lg);
}

.home-oripa-card__title {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-align: center;
}

.home-oripa-card__title a {
	color: inherit;
	text-decoration: none;
}

.home-oripa-card__title a:hover {
	color: var(--color-blue);
}

.home-oripa-card__tagline {
	margin: 0 0 var(--space-sm);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-secondary);
	text-align: center;
}

.home-oripa-card__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0 0 var(--space-md);
	padding: 0;
}

.home-oripa-card__stat {
	margin: 0;
	min-width: 0;
	padding: 0.5rem 0.55rem;
	text-align: center;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--radius-md);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.home-oripa-card__stat dt {
	margin: 0 0 0.2rem;
	font-size: 0.625rem;
	font-weight: 700;
	color: var(--text-secondary);
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.home-oripa-card__stat dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--text-primary);
}

.home-oripa-card__stat--win dd {
	color: #1a5fb4;
}

.home-oripa-card__stat--huge dd {
	color: #d4380d;
}

.home-oripa-card__stat--rate dd {
	color: var(--color-blue);
}

.home-oripa-card__stat--profit dd {
	color: #1e7e34;
}

.home-oripa-card__stat--win,
.home-oripa-card__stat--huge,
.home-oripa-card__stat--rate,
.home-oripa-card__stat--profit {
	background: rgba(0, 0, 0, 0.025);
}

.home-oripa-card__cta {
	width: 100%;
	margin-top: auto;
	text-align: center;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	font-weight: 800;
	border-radius: 999px;
	border: none;
	background: linear-gradient(135deg, #0077ed 0%, #005bb5 100%);
	box-shadow:
		0 4px 14px rgba(0, 113, 227, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.25) inset;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-oripa-card__cta:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow:
		0 8px 22px rgba(0, 113, 227, 0.42),
		0 1px 0 rgba(255, 255, 255, 0.3) inset;
	color: #fff;
}

.home-oripa-card__cta-label {
	position: relative;
	z-index: 1;
}

.oripa-outbound-link--inline {
	color: var(--color-blue);
	text-decoration: underline;
	word-break: break-all;
}


.home-oripa-card__detail-link {
	width: 100%;
	margin-top: 0.5rem;
	text-align: center;
	padding: 0.6rem 1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	border-radius: 999px;
}

.home-oripa-card__excerpt {
	flex: 1;
	margin: 0 0 var(--space-md);
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.home-post-grid {
	display: grid;
	gap: var(--space-md);
}

@media (min-width: 768px) {
	.home-post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.home-post-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	background: var(--bg-card);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--radius-lg);
	height: 100%;
	overflow: hidden;
}

.home-post-card__media {
	display: block;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #e8edf3, #d5dde8);
}

.home-post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-post-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.home-post-card__body {
	flex: 1 1 auto;
	padding: var(--space-lg);
}

.home-post-card__label {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--color-blue);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--space-xs);
}

.home-post-card__title {
	margin: 0 0 var(--space-sm);
	font-size: 1rem;
	line-height: 1.4;
}

.home-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.home-post-card__title a:hover {
	color: var(--color-blue);
}

.home-empty {
	padding: var(--space-xl);
	text-align: center;
	color: var(--text-secondary);
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	border: 1px dashed var(--border-color);
}

/* Hero article slider (Game8-style) */
.home-hero-slider-shell {
	margin: var(--space-lg) auto var(--space-md);
	width: 100%;
	max-width: 640px;
	padding: var(--space-md) var(--space-sm) var(--space-lg);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
	.home-hero-slider-shell {
		width: 94vw;
		max-width: none;
		margin-left: calc(50% - 47vw);
		margin-right: calc(50% - 47vw);
		padding-left: var(--space-md);
		padding-right: var(--space-md);
	}
}

.home-hero-slider {
	position: relative;
}

.home-hero-slider__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0 0.35rem;
}

.home-hero-slider__viewport::-webkit-scrollbar {
	display: none;
}

.home-hero-slider__track {
	display: flex;
	gap: 0.65rem;
	align-items: stretch;
}

.home-hero-slider__slide {
	flex: 0 0 82%;
	scroll-snap-align: center;
	text-align: left;
	color: var(--text-primary);
}

.home-hero-slider__slide.is-active .home-hero-slider__media {
	border-color: #7eb8da;
	box-shadow: 0 0 0 2px rgba(126, 184, 218, 0.35);
}

.home-hero-slider__media {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
	aspect-ratio: 16 / 9;
	background: #eef1f5;
	line-height: 0;
}

.home-hero-slider__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-hero-slider__img--placeholder {
	height: 100%;
	min-height: 100%;
	width: 100%;
	background: linear-gradient(135deg, #e8edf3, #d5dde8);
}

@media (min-width: 768px) {
	.home-hero-slider__slide {
		flex: 0 0 auto;
		width: var(--home-slide-w, auto);
		max-width: calc(94vw - 2rem);
		scroll-snap-align: center;
	}

	.home-hero-slider__slide-inner {
		width: 100%;
	}

	.home-hero-slider__media {
		aspect-ratio: auto;
		height: 280px;
		width: 100%;
		background: #eef1f5;
	}

	.home-hero-slider__media .home-hero-slider__img,
	.home-hero-slider__media > img {
		width: 100%;
		height: 280px;
		object-fit: contain;
		object-position: left center;
	}

	.home-hero-slider__img--placeholder {
		width: 100%;
		height: 280px;
		min-height: 280px;
	}

	.home-hero-slider__body {
		width: 100%;
	}
}

.home-hero-slider__body {
	padding: 0.65rem 0.15rem 0;
}

.home-hero-slider__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.home-hero-slider__tag {
	display: inline-block;
	padding: 0.15rem 0.45rem;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.35;
	border-radius: 3px;
	border: 1px solid;
	background: #fff;
}

.home-hero-slider__tag--primary {
	color: #e60012;
	border-color: #e60012;
}

.home-hero-slider__tag--secondary {
	color: #666;
	border-color: #bbb;
}

.home-hero-slider__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.45;
}

.home-hero-slider__title a {
	color: inherit;
	text-decoration: none;
}

.home-hero-slider__title a:hover {
	color: var(--color-blue);
}

.home-hero-slider__arrow {
	position: absolute;
	top: 28%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #888;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.15s, color 0.15s;
}

.home-hero-slider__arrow:hover {
	color: #444;
	transform: scale(1.05);
}

.home-hero-slider__arrow--prev {
	left: 0.15rem;
}

.home-hero-slider__arrow--next {
	right: 0.15rem;
}

.home-hero-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 0.85rem;
	padding: 0 0.5rem;
}

.home-hero-slider__dot {
	flex: 1;
	max-width: 2.75rem;
	height: 4px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: #ddd;
	cursor: pointer;
	transition: background 0.2s;
}

.home-hero-slider__dot.is-active {
	background: #7eb8da;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
