/**
 * SELFDUCK LAB - カテゴリTOPページ専用CSS
 * このファイルは template-selfduck-lab-category.php でのみ読み込まれる。
 * media.css（/media/ トップページ専用）は変更しない。共通ヘッダー/フッターの
 * 見た目は media.css 側のスタイルをそのまま利用し、このファイルは
 * カテゴリTOP固有のセクション（.sdm-cat-*）のみを対象とする。
 */

.sdm-cat-main {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.sdm-cat-section__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5b8a0;
}

/* 1. FV */
.sdm-cat-hero {
	padding: 56px 0 40px;
	text-align: center;
}

.sdm-cat-hero__inner {
	max-width: 760px;
	margin: 0 auto;
}

.sdm-cat-hero__eyebrow {
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	color: #b5764f;
	margin: 0 0 8px;
}

.sdm-cat-hero__title {
	font-size: 2rem;
	line-height: 1.4;
	margin: 0 0 16px;
}

.sdm-cat-hero__lead {
	font-size: 0.95rem;
	line-height: 1.9;
	color: #444;
	text-align: left;
}

/* 2. 商品を探す */
.sdm-cat-explore {
	padding: 32px 0;
}

.sdm-cat-explore__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.sdm-cat-category-card {
	border: 1px solid #e6e0da;
	border-radius: 12px;
	padding: 20px 12px;
	text-align: center;
	background: #fdfaf7;
	cursor: default;
}

.sdm-cat-category-card__name {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.sdm-cat-explore__note {
	margin: 16px 0 0;
	font-size: 0.8rem;
	color: #888;
}

/* 3. SELFDUCK編集部の比較・検証 */
.sdm-cat-comparison {
	padding: 32px 0;
	background: #f7f3ef;
	border-radius: 16px;
	margin: 24px 0;
}

.sdm-cat-comparison .sdm-cat-section__title {
	margin-left: 24px;
	margin-right: 24px;
}

.sdm-cat-comparison__text {
	margin: 0 24px;
	font-size: 0.9rem;
	line-height: 1.9;
	color: #444;
}

/* 4. SELFDUCKの評価基準 */
.sdm-cat-policy {
	padding: 32px 0;
}

.sdm-cat-policy__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.sdm-cat-policy__item {
	border: 1px solid #e6e0da;
	border-radius: 10px;
	padding: 16px;
}

.sdm-cat-policy__label {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #b5764f;
}

.sdm-cat-policy__desc {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.7;
	color: #444;
}

/* 5. 商品一覧 */
.sdm-cat-products {
	padding: 32px 0;
}

.sdm-cat-products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.sdm-cat-product-card {
	border: 1px solid #e6e0da;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	padding-bottom: 14px;
}

.sdm-cat-product-card__thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f2ef;
}

.sdm-cat-product-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sdm-cat-product-card__name {
	margin: 12px 14px 4px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.5;
}

.sdm-cat-product-card__type,
.sdm-cat-product-card__classification,
.sdm-cat-product-card__amount,
.sdm-cat-product-card__price,
.sdm-cat-product-card__unit-price {
	margin: 2px 14px;
	font-size: 0.8rem;
	color: #555;
}

.sdm-cat-product-card__unit-price {
	font-weight: 700;
	color: #b5764f;
}

.sdm-cat-products__empty {
	padding: 32px 20px;
	text-align: center;
	background: #f7f3ef;
	border-radius: 12px;
	color: #666;
	font-size: 0.9rem;
}

/* 6. 新着レビュー / 7. ホワイトニングについて知る */
.sdm-cat-reviews,
.sdm-cat-learn {
	padding: 32px 0;
}

.sdm-cat-reviews__text,
.sdm-cat-learn__text {
	font-size: 0.9rem;
	color: #666;
}

.sdm-cat-learn__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sdm-cat-learn__item {
	margin: 0;
}

.sdm-cat-learn__link {
	color: #b5764f;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.sdm-cat-learn__link:hover {
	text-decoration: underline;
}

.sdm-cat-learn-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.sdm-cat-learn-card {
	border: 1px solid #e6e0da;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.sdm-cat-learn-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.sdm-cat-learn-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f5f2ef;
}

.sdm-cat-learn-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sdm-cat-learn-card__body {
	padding: 14px;
}

.sdm-cat-learn-card__type {
	display: inline-block;
	margin: 0 0 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #b5764f;
}

.sdm-cat-learn-card__title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	line-height: 1.5;
	font-weight: 700;
	color: #222;
}

.sdm-cat-learn-card__desc {
	margin: 0 0 10px;
	font-size: 0.82rem;
	line-height: 1.6;
	color: #555;
}

.sdm-cat-learn-card__cta {
	font-size: 0.82rem;
	font-weight: 600;
	color: #b5764f;
}

.sdm-cat-learn-card__link:hover .sdm-cat-learn-card__title {
	text-decoration: underline;
}

/* 8. 目的から探す / セクションリード文 / 店舗導線CTA（TOPハブページ改修） */
.sdm-cat-section__lead {
	margin: 0 0 20px;
	font-size: 0.9rem;
	line-height: 1.9;
	color: #444;
}

.sdm-cat-purpose__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.sdm-cat-purpose-card {
	display: block;
	border: 1px solid #e6e0da;
	border-radius: 12px;
	padding: 20px 16px;
	text-align: center;
	background: #fdfaf7;
	color: #222;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.5;
	transition: border-color 0.2s, color 0.2s;
}

.sdm-cat-purpose-card:hover {
	border-color: #b5764f;
	color: #b5764f;
}

.sdm-cat-cta {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 24px;
	border: 1px solid #b5764f;
	border-radius: 999px;
	color: #b5764f;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.sdm-cat-cta:hover {
	background: #b5764f;
	color: #fff;
}

.sdm-cat-shop {
	padding: 32px 0;
	text-align: center;
	background: #f7f3ef;
	border-radius: 16px;
	margin: 24px 0;
}

/* ==== レスポンシブ（media.css の既存ブレークポイントに合わせる） ==== */
@media screen and (max-width: 1120px) {
	.sdm-cat-main {
		max-width: 100%;
	}
}

@media screen and (max-width: 900px) {
	.sdm-cat-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sdm-cat-learn-card__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.sdm-cat-purpose__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 760px) {
	.sdm-cat-policy__list {
		grid-template-columns: 1fr;
	}

	.sdm-cat-hero__title {
		font-size: 1.5rem;
	}
}

@media screen and (max-width: 640px) {
	.sdm-cat-explore__grid {
		grid-template-columns: 1fr;
	}

	.sdm-cat-products__grid {
		grid-template-columns: 1fr;
	}

	.sdm-cat-learn-card__list {
		grid-template-columns: 1fr;
	}

	.sdm-cat-purpose__list {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 600px) {
	.sdm-cat-main {
		padding: 0 16px;
	}
}

@media screen and (max-width: 560px) {
	.sdm-cat-hero {
		padding: 40px 0 28px;
	}
}

@media screen and (max-width: 420px) {
	.sdm-cat-hero__title {
		font-size: 1.3rem;
	}
}
