@charset "utf-8";
/* =====================================================
 施工事例カード一覧ブロック (mrpolish/works-cards)
 - 既存の施工事例アーカイブカード（.archive-works-list .column）
   と同じ表示順・カラーで揃える
 - 表示順：タイトル → タグ → 車種 → 日付
===================================================== */

/* ---------- 共通 ---------- */
.mrpolish-works-cards {
	margin: 2rem 0;
	color: #fff;
}

.mrpolish-works-cards__heading {
	margin: 0 0 1rem;
	padding: 0 0 0.6rem;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-align: center;
	color: inherit;
	border-bottom: 1px solid #c29500;
}

.mrpolish-works-cards__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mrpolish-works-cards__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 親テーマの a への下線を上書き */
.mrpolish-works-cards a,
.mrpolish-works-cards a:hover,
.mrpolish-works-cards a:focus,
.mrpolish-works-cards a:active,
.mrpolish-works-cards a:visited,
main.custom-post .single-contents .mrpolish-works-cards a,
main.custom-post .single-contents .mrpolish-works-cards a:hover {
	text-decoration: none;
}

/* サムネイル */
.mrpolish-works-cards__thumb {
	position: relative;
	overflow: hidden;
	background-color: #111;
	aspect-ratio: 4 / 3;
}

.mrpolish-works-cards__thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.mrpolish-works-cards__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	margin: 0;
	transition: transform 0.35s ease;
}

/* 本文エリア */
.mrpolish-works-cards__body {
	padding: 0.7rem 0 0.3rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.5rem;
}

.mrpolish-works-cards__upper {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* タイトル（既存 .archive-works-list .column .title a と同等） */
.mrpolish-works-cards__title {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	color: #fff;
}

/* 親テーマ（main.custom-post .single-contents a の #f7be00）を上書きするため詳細度を上げる */
.mrpolish-works-cards .mrpolish-works-cards__title a,
.mrpolish-works-cards .mrpolish-works-cards__title a:hover,
.mrpolish-works-cards .mrpolish-works-cards__title a:focus,
.mrpolish-works-cards .mrpolish-works-cards__title a:visited,
main.custom-post .single-contents .mrpolish-works-cards .mrpolish-works-cards__title a,
main.custom-post .single-contents .mrpolish-works-cards .mrpolish-works-cards__title a:visited {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

/* タグ（既存 main.custom-post ul.menu-list と同等：黄色の縁取り） */
.mrpolish-works-cards__tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.4em;
}

.mrpolish-works-cards__tags li {
	list-style: none;
	margin: 0 0 0.3em 0;
	padding: 0;
	display: inline-block;
}

.mrpolish-works-cards__tags li a {
	display: inline-block;
	padding: 0 0.6em;
	font-size: 0.75rem;
	line-height: 1.9em;
	color: #fff;
	border: 1px solid #c29500;
	background-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* 親テーマ（main.custom-post .single-contents a の #f7be00）を上書きするため詳細度を上げる */
.mrpolish-works-cards .mrpolish-works-cards__tags li a,
.mrpolish-works-cards .mrpolish-works-cards__tags li a:visited,
.mrpolish-works-cards .mrpolish-works-cards__tags li a:focus,
main.custom-post .single-contents .mrpolish-works-cards .mrpolish-works-cards__tags li a,
main.custom-post .single-contents .mrpolish-works-cards .mrpolish-works-cards__tags li a:visited {
	color: #fff;
}

/* 車種（既存 .archive-works-list .column .car-model a と同等：濃グレーのピル） */
.mrpolish-works-cards__cars {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
}

.mrpolish-works-cards__car {
	display: inline-block;
	padding: 0.3em 0.8rem;
	font-size: 0.8rem;
	line-height: 1;
	background-color: #262626;
	color: #fff;
	border-radius: 9999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* 親テーマ（main.custom-post .single-contents a の #f7be00）を上書きするため詳細度を上げる */
.mrpolish-works-cards a.mrpolish-works-cards__car,
.mrpolish-works-cards a.mrpolish-works-cards__car:visited,
.mrpolish-works-cards a.mrpolish-works-cards__car:focus,
main.custom-post .single-contents .mrpolish-works-cards a.mrpolish-works-cards__car,
main.custom-post .single-contents .mrpolish-works-cards a.mrpolish-works-cards__car:visited {
	color: #fff;
}

/* 日付（既存 .archive-works-list .column .day と同等） */
.mrpolish-works-cards__date {
	display: block;
	font-size: 0.75rem;
	color: #fff;
	letter-spacing: 0.02em;
	margin-top: 0.4rem;
}

/* 空状態 */
.mrpolish-works-cards--empty {
	padding: 1rem;
	text-align: center;
	color: #888;
	border: 1px dashed #444;
}


/* ---------- グリッド型 ---------- */
.mrpolish-works-cards--grid .mrpolish-works-cards__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}


/* ---------- リスト型 ---------- */
.mrpolish-works-cards--list .mrpolish-works-cards__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.mrpolish-works-cards--list .mrpolish-works-cards__item {
	display: flex;
	gap: 0.8rem;
	align-items: stretch;
}

.mrpolish-works-cards--list .mrpolish-works-cards__thumb {
	flex: 0 0 35%;
	max-width: 250px;
}

.mrpolish-works-cards--list .mrpolish-works-cards__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}


/* ==== 600px〜：タブレット用 ==== */
@media screen and (min-width: 600px) {
	.mrpolish-works-cards--grid .mrpolish-works-cards__list {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem 1.2rem;
	}

	.mrpolish-works-cards--list .mrpolish-works-cards__thumb {
		flex: 0 0 200px;
		max-width: 200px;
	}

	.mrpolish-works-cards__heading {
		font-size: 1.3rem;
	}
}


/* ==== 1025px〜：PC用ホバーエフェクト ==== */
@media screen and (min-width: 1025px) {
	.mrpolish-works-cards--list .mrpolish-works-cards__thumb {
		flex: 0 0 240px;
		max-width: 240px;
	}

	/* サムネイル：ホバーで拡大 */
	.mrpolish-works-cards__thumb-link:hover img {
		transform: scale(1.04);
	}

	/* タイトル：ホバーで下線（色は白のまま） */
	.mrpolish-works-cards .mrpolish-works-cards__title a:hover,
	main.custom-post .single-contents .mrpolish-works-cards .mrpolish-works-cards__title a:hover {
		color: #fff;
		text-decoration: underline;
	}

	/* タグ：ホバーで変化なし */
	.mrpolish-works-cards .mrpolish-works-cards__tags li a:hover,
	main.custom-post .single-contents .mrpolish-works-cards .mrpolish-works-cards__tags li a:hover {
		background-color: transparent;
		color: #fff;
		text-decoration: none;
	}

	/* 車種：ホバーで変化なし */
	.mrpolish-works-cards a.mrpolish-works-cards__car:hover,
	main.custom-post .single-contents .mrpolish-works-cards a.mrpolish-works-cards__car:hover {
		background-color: #262626;
		color: #fff;
		text-decoration: none;
	}
}
