/* ==========================================================================
   デザイン v2：ナイトゲーム調（濃紺 × 野球ボールの赤）
   main.css の後に読み込み、見た目だけを上書きします。
   ========================================================================== */
:root {
	--ydn-ink: #0d1a2b;
	--ydn-ink-2: #15283f;
	--ydn-red: #d7263d;
	--ydn-red-dark: #a81a2d;
	--ydn-accent: #1a73c7;
	--ydn-max-width: 1080px;
}

body {
	font-family: "Noto Sans JP", "Hiragino Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	overflow-x: clip;
}

/* ヘッダー */
.ydn-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ydn-ink);
	border-bottom: 3px solid var(--ydn-red);
}

.ydn-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 900;
	font-size: 17px;
	letter-spacing: 0.02em;
}

.ydn-nav ul {
	color: #c9d3e0;
}

.ydn-nav a:hover {
	color: #fff;
}

/* ヒーロー（全幅） */
.ydn-hero-full {
	position: relative;
	margin: -24px calc(50% - 50vw) 36px;
	padding: 56px 16px 64px;
	color: #fff;
	background-color: var(--ydn-ink);
	background-image:
		linear-gradient(100deg, rgba(13, 26, 43, 0.96) 28%, rgba(13, 26, 43, 0.55) 100%),
		var(--ydn-hero-img, none);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.ydn-hero-full::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/field-lines.svg") center / cover no-repeat;
	pointer-events: none;
}

.ydn-hero-inner {
	position: relative;
	max-width: var(--ydn-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 32px;
	align-items: center;
}

.ydn-hero-full .ydn-eyebrow {
	background: var(--ydn-red);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.06em;
	border-radius: 999px;
	padding: 5px 14px;
}

.ydn-hero-full h1 {
	font-size: clamp(34px, 5.6vw, 58px);
	font-weight: 900;
	line-height: 1.18;
	margin: 14px 0 14px;
	letter-spacing: 0.01em;
}

.ydn-hero-full p {
	color: #cdd7e4;
	max-width: 30em;
	margin: 0;
}

.ydn-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 8px;
}

.ydn-cta {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ydn-cta:hover {
	background: rgba(255, 255, 255, 0.12);
}

.ydn-cta--primary {
	background: var(--ydn-red);
	border-color: var(--ydn-red);
}

.ydn-cta--primary:hover {
	background: var(--ydn-red-dark);
	border-color: var(--ydn-red-dark);
}

.ydn-hero-stats {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 26px 0 0;
	padding: 0;
}

.ydn-hero-stats li {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ydn-hero-stats strong {
	font-size: 24px;
	font-weight: 900;
}

.ydn-hero-stats span {
	font-size: 11px;
	color: #9fb0c6;
	margin-top: 4px;
}

/* ヒーロー右：商品の壁 */
.ydn-hero-wall {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	transform: rotate(3deg);
}

.ydn-wall-tile {
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.ydn-wall-tile:nth-child(even) {
	transform: translateY(18px);
}

.ydn-wall-tile img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* セクション見出し */
.ydn-section-title {
	position: relative;
	font-size: 22px;
	font-weight: 900;
	margin: 0 0 18px;
	padding-left: 16px;
}

.ydn-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 6px;
	border-radius: 3px;
	background: var(--ydn-red);
}

.ydn-section-title::after {
	content: "";
	display: block;
	margin-top: 8px;
	height: 0;
	border-bottom: 3px dotted rgba(215, 38, 61, 0.55);
}

.ydn-categories,
.ydn-ranking,
.ydn-latest-articles {
	margin-bottom: 44px;
}

/* カテゴリ（画像つき） */
.ydn-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.ydn-category-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
	text-align: left;
	white-space: normal;
	flex: none;
	border-radius: 14px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ydn-category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(13, 26, 43, 0.12);
	border-color: var(--ydn-red);
}

.ydn-category-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: 10px;
	border-bottom: 1px solid var(--ydn-border);
}

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

.ydn-category-name {
	display: block;
	padding: 10px 12px 0;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
}

.ydn-category-count {
	display: block;
	padding: 2px 12px 12px;
	font-size: 12px;
	color: var(--ydn-text-secondary);
}

/* ランキング上位3件 */
.ydn-top3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 14px;
}

.ydn-top-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ydn-surface);
	border: 1px solid var(--ydn-border);
	border-radius: 16px;
	overflow: hidden;
}

.ydn-rank-badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	min-width: 44px;
	padding: 6px 12px 8px;
	border-radius: 0 0 14px 0;
	background: var(--ydn-ink);
	color: #fff;
	font-weight: 900;
	font-size: 20px;
	line-height: 1;
	text-align: center;
}

.ydn-rank-badge--1 {
	background: var(--ydn-red);
}

.ydn-top-img {
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: 14px;
	border-bottom: 1px solid var(--ydn-border);
}

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

.ydn-top-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ydn-top-body .ydn-card-title {
	font-weight: 700;
	margin: 8px 0 0;
}

.ydn-top-body .ydn-card-title a {
	color: inherit;
}

.ydn-top-comment {
	font-size: 13px;
	color: var(--ydn-text-secondary);
	margin: 6px 0 0;
}

.ydn-top-body .ydn-card-price {
	font-weight: 700;
	color: var(--ydn-red);
	margin-top: 8px;
}

.ydn-top-body .ydn-card-links {
	margin-top: auto;
	padding-top: 12px;
}

.ydn-ranking-row {
	border-radius: 14px;
}

/* ボタン */
.ydn-btn--rakuten {
	background: var(--ydn-red);
	border-color: var(--ydn-red);
	color: #fff;
	font-weight: 700;
}

.ydn-btn--rakuten:hover {
	background: var(--ydn-red-dark);
	border-color: var(--ydn-red-dark);
}

.ydn-btn--amazon {
	background: #fff;
}

/* カテゴリページのバンド */
.ydn-page-band {
	position: relative;
	margin: -24px calc(50% - 50vw) 28px;
	padding: 32px 16px 34px;
	color: #fff;
	background: var(--ydn-ink);
	overflow: hidden;
}

.ydn-page-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/field-lines.svg") right center / cover no-repeat;
	opacity: 0.8;
}

.ydn-page-band-inner {
	position: relative;
	max-width: var(--ydn-max-width);
	margin: 0 auto;
}

.ydn-page-band .ydn-breadcrumb,
.ydn-page-band .ydn-breadcrumb a {
	color: #9fb0c6;
}

.ydn-page-band .ydn-archive-title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 900;
	color: #fff;
	margin: 6px 0 4px;
}

.ydn-page-band .ydn-archive-count {
	color: #cdd7e4;
	margin: 0;
}

/* フッター */
.ydn-footer {
	background: var(--ydn-ink);
	color: #c9d3e0;
	border-top: 3px solid var(--ydn-red);
}

.ydn-footer a {
	color: #c9d3e0;
}

/* 記事・商品ページの見出し */
.ydn-article-title {
	font-weight: 900;
}

/* スマホ */
@media (max-width: 800px) {
	.ydn-hero-inner {
		grid-template-columns: 1fr;
	}

	.ydn-hero-wall {
		max-width: 360px;
		margin: 8px auto 0;
	}

	.ydn-top3 {
		grid-template-columns: 1fr;
	}

	.ydn-top-card {
		flex-direction: row;
	}

	.ydn-top-img {
		width: 42%;
		flex-shrink: 0;
		aspect-ratio: auto;
		border-bottom: 0;
		border-right: 1px solid var(--ydn-border);
	}

	.ydn-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ydn-nav ul {
		gap: 12px;
	}
}

.ydn-top-body .ydn-badge {
	align-self: flex-start;
}

/* カテゴリページの絞り込み（子カテゴリ） */
.ydn-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

a.ydn-filter-chip {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--ydn-border);
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	transition: border-color 0.15s ease, background 0.15s ease;
}

a.ydn-filter-chip:hover {
	border-color: var(--ydn-red);
}

a.ydn-filter-chip.is-active {
	background: var(--ydn-ink);
	border-color: var(--ydn-ink);
	color: #fff;
}

/* 記事カード・新着商品 */
.ydn-card .ydn-card-thumb {
	background: #fff;
	aspect-ratio: 16 / 10;
	padding: 8px;
	border-bottom: 1px solid var(--ydn-border);
}

.ydn-card .ydn-card-thumb img {
	object-fit: contain;
}

.ydn-card .ydn-thumb-placeholder--article {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	background:
		url("../img/field-lines.svg") center / cover no-repeat,
		linear-gradient(135deg, var(--ydn-ink), var(--ydn-ink-2));
}

.ydn-card .ydn-card-title {
	font-weight: 700;
}

.ydn-new-products {
	margin-bottom: 44px;
}

.ydn-more {
	margin: 14px 0 0;
	text-align: right;
	font-weight: 700;
	font-size: 14px;
}

.ydn-more a {
	color: var(--ydn-red);
}

/* 検索窓 */
.ydn-search {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 0 0 20px;
}

.ydn-search-input {
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	border: 1.5px solid var(--ydn-border);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 14px;
}

.ydn-search-input:focus {
	outline: none;
	border-color: var(--ydn-red);
}

.ydn-search-btn {
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ydn-red);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ydn-search-btn:hover {
	background: var(--ydn-red-dark);
}

.ydn-home-search {
	margin-bottom: 28px;
}

.ydn-home-search .ydn-search {
	max-width: none;
	margin: 0;
}

.ydn-search-result {
	font-size: 14px;
	color: var(--ydn-text-secondary);
	margin: 0 0 14px;
}
