@charset "UTF-8";
/* ========================================
   CONTENTS サンプルページ
   WP業者への指示書用
   ======================================== */

main {
	background: #0a0f0a;
	min-height: 100vh;
}

.wide-container {
	max-width: 1440px;
	margin-inline: auto;
}

/* ========================================
   HERO セクション
   ======================================== */
.contents-hero {
	padding: 8vh 7.5vw 0;
	text-align: left;
}

.contents-title {
	font-family: 'Spartan', sans-serif;
	font-size: 6vw;
	font-weight: 500;
	color: #fff;
	letter-spacing: 0.1em;
}

.contents-description {
	font-family: 'Yu Gothic', 'YuGothic', sans-serif;
	font-size: 3.5vw;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	line-height: 2;
	margin-top: 2vh;
	text-align: left;
}

/* スマホのみ改行 */
.sp-only {
	display: inline;
}

/* ========================================
   フィルターセクション
   ======================================== */
.filter-section {
	padding: 0 7.5vw 6vh;
	margin-top: 4vh;
}

.filter-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4vh;
}

.filter-divider {
	width: 100%;
	margin-top: 6vh;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-buttons {
	display: flex;
	flex-direction: column;
	gap: 3vw;
	max-width: 600px;
}

.filter-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2vh 5vw;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Spartan', sans-serif;
	font-size: 3.5vw;
	font-weight: 400;
	letter-spacing: 0.15em;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-btn:hover {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.filter-btn.active {
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}

.filter-btn .filter-icon {
	font-size: 3vw;
	transition: transform 0.3s ease;
}

.filter-btn.active .filter-icon {
	transform: rotate(45deg);
}

/* ========================================
   フィルターモーダル（被せるタイプ）
   ======================================== */
.filter-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 15, 10, 0.97);
	z-index: 1000;
	overflow-y: auto;
	padding: 12vh 7.5vw 10vh;
}

.filter-modal.open {
	display: block;
}

.filter-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5vh;
}

.filter-modal-title {
	font-family: 'Spartan', sans-serif;
	font-size: 5vw;
	font-weight: 500;
	color: #fff;
	letter-spacing: 0.1em;
}

.filter-modal-close {
	width: 10vw;
	height: 10vw;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.7);
	font-size: 5vw;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.filter-modal-close:hover {
	border-color: #fff;
	color: #fff;
}

/* カテゴリグループ（アコーディオン） */
.category-group {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.category-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3vh 0;
	background: transparent;
	border: none;
	width: 100%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.category-group-title {
	font-family: 'Spartan', sans-serif;
	font-size: 4vw;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.1em;
}

.category-group-icon {
	font-family: 'Spartan', sans-serif;
	font-size: 4vw;
	color: rgba(255, 255, 255, 0.5);
	transition: transform 0.3s ease;
}

.category-group.open .category-group-icon {
	transform: rotate(45deg);
}

.category-group-content {
	display: none;
	padding: 0 0 3vh;
}

.category-group.open .category-group-content {
	display: block;
}

.category-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 2vw;
}

.filter-tag {
	padding: 1.2vh 4vw;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Spartan', 'Yu Gothic', sans-serif;
	font-size: 3vw;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.selected {
	border-color: #fff;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   ブランドグリッド（モーダル内）
   薄い枠線のグリッド式
   ======================================== */
.brand-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4vw 2vw;
	background: transparent;
	border: none;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 右端のアイテムは右枠なし */
.brand-item:nth-child(2n) {
	border-right: none;
}

/* 最後の行は下枠なし */
.brand-item:nth-last-child(-n+2) {
	border-bottom: none;
}

.brand-item:hover,
.brand-item.selected {
	background: rgba(255, 255, 255, 0.05);
}

.brand-logo-img {
	width: auto;
	height: 12vw;
	max-width: 28vw;
	object-fit: contain;
	/* カラーロゴを保持 */
	opacity: 0.9;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ホバー時に少し明るく */
.brand-item:hover .brand-logo-img {
	filter: brightness(1.1);
}

.brand-item:hover .brand-logo-img,
.brand-item.selected .brand-logo-img {
	opacity: 1;
}

.brand-name-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1vw;
	margin-top: 1.5vh;
}

.brand-name {
	font-family: 'Spartan', sans-serif;
	font-size: 2.5vw;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
}

.brand-item:hover .brand-name,
.brand-item.selected .brand-name {
	color: #fff;
}

.brand-count {
	font-family: 'Spartan', sans-serif;
	font-size: 2.5vw;
	color: rgba(255, 255, 255, 0.4);
}

/* 車種セクション（初期非表示） */
.model-section {
	display: none;
	padding-top: 3vh;
}

.model-section.show {
	display: block;
}

.model-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 2vh;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: 2vh;
}

.model-section-title {
	font-family: 'Spartan', sans-serif;
	font-size: 5vw;
	font-weight: 500;
	color: #fff;
}

.model-section-back {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Spartan', 'Yu Gothic', sans-serif;
	font-size: 3vw;
	cursor: pointer;
	transition: color 0.3s ease;
}

.model-section-back:hover {
	color: #fff;
}

.model-accordion {
	display: flex;
	flex-direction: column;
	gap: 1vh;
}

.model-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 2vh 3vw;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
}

.model-group-header:hover {
	border-color: rgba(255, 255, 255, 0.3);
}

.model-name {
	font-family: 'Spartan', sans-serif;
	font-size: 3.5vw;
	color: #fff;
}

.model-count {
	font-family: 'Spartan', sans-serif;
	font-size: 3vw;
	color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ブランドセクション（常時表示・ページ下部）
   ======================================== */
.brand-section {
	padding: 6vh 7.5vw 15vh;
}

.brand-section-title {
	font-family: 'Spartan', sans-serif;
	font-size: 6vw;
	font-weight: 500;
	color: #fff;
	letter-spacing: 0.1em;
	text-align: left;
}

.brand-section-description {
	font-family: 'Yu Gothic', 'YuGothic', sans-serif;
	font-size: 3.5vw;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	text-align: left;
	margin-top: 2vh;
	margin-bottom: 4vh;
}

/* ========================================
   記事グリッド
   ======================================== */
.articles-section {
	padding: 6vh 7.5vw 10vh;
}

.articles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7.5vw;
}

/* ========================================
   記事カード（PRICEカード準拠）
   ======================================== */
.article-card {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 画像エリア */
.article-card-image {
	position: relative;
	width: 100%;
	padding-bottom: 75%; /* 4:3 アスペクト比 */
	overflow: hidden;
}

.article-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
	transform: scale(1.05);
}

/* コンテンツエリア */
.article-card-body {
	padding: 3vh 4vw 4vh;
	display: flex;
	flex-direction: column;
}

/* タイトル（下線付き） */
.article-card-title {
	font-family: 'Spartan', 'Yu Gothic', 'YuGothic', sans-serif;
	font-size: 4vw;
	font-weight: 400;
	color: #e8e8e8;
	line-height: 1.4;
	position: relative;
	display: inline-block;
	padding-bottom: 1.5vh;
	align-self: flex-start;
}

.article-card-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: -4vw;
	width: calc(100% + 4vw + 4vw);
	border-bottom: 0.2vh solid #e8e8e8;
}

/* タグエリア（横並び、各タグに背景色） */
.article-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 2vw;
	margin-top: 3vh;
}

.article-tag {
	font-family: 'Spartan', 'Yu Gothic', sans-serif;
	font-size: 2.8vw;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.03em;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 0.8vh 3vw;
}

/* 日付 */
.article-card-date {
	font-family: 'Spartan', sans-serif;
	font-size: 3.5vw;
	font-weight: 400;
	color: #e8e8e8;
	letter-spacing: 0.05em;
	margin-top: 2.5vh;
}

/* 本文（2行で切れる） */
.article-card-excerpt {
	font-family: 'Yu Gothic', 'YuGothic', sans-serif;
	font-size: 3.5vw;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.8;
	margin-top: 1.5vh;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* リンク */
.article-card-link {
	display: inline-flex;
	align-items: center;
	gap: 1.5vw;
	margin-top: 4vh;
	margin-left: auto;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Spartan', 'Yu Gothic', 'YuGothic', sans-serif;
	font-size: 4vw;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.3s ease;
}

.article-card-link:hover {
	color: #fff;
}

.article-card-link::before {
	content: '>';
	font-family: 'Spartan', sans-serif;
}

/* ========================================
   ページネーション
   ======================================== */
.pagination-section {
	padding: 6vh 7.5vw 15vh;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2vw;
}

.pagination-item {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 10vw;
	height: 10vw;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Spartan', sans-serif;
	font-size: 3.5vw;
	font-weight: 400;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination-item:hover {
	border-color: #fff;
	color: #fff;
}

.pagination-item.active {
	border-color: #fff;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.pagination-dots {
	color: rgba(255, 255, 255, 0.5);
	font-family: 'Spartan', sans-serif;
	font-size: 3.5vw;
	letter-spacing: 0.1em;
}

.pagination-arrow {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 10vw;
	height: 10vw;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination-arrow::before {
	content: '';
	display: block;
	width: 5vw;
	height: 2.5vw;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='0,5 19,5 15,1.5' stroke='rgba(255,255,255,0.7)' stroke-width='1.2' fill='none' stroke-linejoin='miter' stroke-linecap='square'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.pagination-arrow:hover {
	border-color: #fff;
}

.pagination-arrow:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='0,5 19,5 15,1.5' stroke='white' stroke-width='1.2' fill='none' stroke-linejoin='miter' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* ========================================
   PC版（横向き）
   ======================================== */
@media (min-width: 768px) {
	.contents-hero {
		padding: 9vh 3.75vw 0;
	}

	.contents-title {
		font-size: 2.5vw;
	}

	.contents-description {
		font-size: 1.2vw;
		max-width: none;
		margin-top: 2vh;
		text-align: left;
	}

	/* PCでは非表示 */
	.sp-only {
		display: none;
	}

	/* フィルター横並び */
	.filter-section {
		padding: 0 3.75vw 6vh;
		margin-top: 4vh;
	}

	.filter-wrapper {
		flex-direction: row;
		justify-content: flex-start;
		gap: 2vw;
	}

	.filter-buttons {
		flex-direction: row;
		justify-content: flex-start;
		gap: 2vw;
	}

	.filter-btn {
		width: auto;
		min-width: 280px;
		padding: 1.5vh 2vw;
		font-size: 1vw;
	}

	.filter-btn .filter-icon {
		font-size: 1vw;
	}

	/* フィルターモーダルPC版 */
	.filter-modal {
		padding: 12vh 3.75vw 10vh;
	}

	.filter-modal-header {
		margin-bottom: 4vh;
	}

	.filter-modal-title {
		font-size: 2vw;
	}

	.filter-modal-close {
		width: 3vw;
		height: 3vw;
		font-size: 1.5vw;
	}

	/* PCでは全て展開 */
	.category-group-header {
		padding: 2vh 0;
		cursor: default;
	}

	.category-group-title {
		font-size: 1.2vw;
	}

	.category-group-icon {
		display: none;
	}

	.category-group-content {
		display: block !important;
		padding: 0 0 2vh;
	}

	.category-tags {
		gap: 0.8vw;
	}

	.filter-tag {
		padding: 0.8vh 1.2vw;
		font-size: 0.9vw;
	}

	/* ブランドグリッドPC版（モーダル内） */
	.brand-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.brand-item {
		padding: 1.5vw 1vw;
	}

	/* PC: 5列目（右端）は右枠なし */
	.brand-item:nth-child(5n) {
		border-right: none;
	}

	/* PC: 2列目の右枠を復活 */
	.brand-item:nth-child(2n) {
		border-right: 1px solid rgba(255, 255, 255, 0.15);
	}

	/* PC: 5列目は右枠なし（再設定） */
	.brand-item:nth-child(5n) {
		border-right: none;
	}

	/* PC: 最後の行（5個）は下枠なし */
	.brand-item:nth-last-child(-n+5) {
		border-bottom: none;
	}

	.brand-logo-img {
		height: 3.5vw;
		max-width: 8vw;
	}

	.brand-name-wrapper {
		gap: 0.3vw;
		margin-top: 1vh;
	}

	.brand-name {
		font-size: 0.8vw;
	}

	.brand-count {
		font-size: 0.7vw;
	}

	.model-section-title {
		font-size: 1.5vw;
	}

	.model-section-back {
		font-size: 0.9vw;
	}

	.model-group-header {
		padding: 1.5vh 1.5vw;
	}

	.model-name {
		font-size: 1vw;
	}

	.model-count {
		font-size: 0.9vw;
	}

	/* ブランドセクションPC版（常時表示） */
	.brand-section {
		padding: 6vh 3.75vw 12vh;
	}

	.brand-section-title {
		font-size: 2vw;
		text-align: left;
	}

	.brand-section-description {
		font-size: 1.1vw;
		margin-top: 1vh;
		margin-bottom: 3vh;
		text-align: left;
	}

	.brand-section .brand-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.brand-section .brand-item {
		padding: 1.5vw 1vw;
	}

	.brand-section .brand-logo-img {
		height: 3.5vw;
		max-width: 8vw;
	}

	.brand-section .brand-name {
		font-size: 0.8vw;
	}

	.brand-section .brand-count {
		font-size: 0.7vw;
	}

	/* 記事グリッド3列 */
	.articles-section {
		padding: 6vh 3.75vw 10vh;
	}

	.articles-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 3.75vw;
	}

	/* 記事カードPC版 */
	.article-card-body {
		padding: 3vh 1.5vw 4vh;
	}

	.article-card-title {
		font-size: 1.3vw;
	}

	.article-card-title::after {
		left: -1.5vw;
		width: calc(100% + 1.5vw + 1.5vw);
	}

	.article-card-tags {
		gap: 0.5vw;
	}

	.article-tag {
		font-size: 0.8vw;
		padding: 0.6vh 1vw;
	}

	.article-card-date {
		font-size: 1vw;
	}

	.article-card-excerpt {
		font-size: 1.1vw;
		margin-top: 1vh;
	}

	.article-card-link {
		font-size: 1.2vw;
		gap: 0.5vw;
		margin-top: 3vh;
	}

	/* ページネーション */
	.pagination-section {
		padding: 6vh 3.75vw 12vh;
	}

	.pagination {
		gap: 1vw;
	}

	.pagination-item {
		width: 3vw;
		height: 3vw;
		font-size: 1vw;
	}

	.pagination-dots {
		font-size: 1vw;
	}

	.pagination-arrow {
		width: 3vw;
		height: 3vw;
	}

	.pagination-arrow::before {
		width: 1.5vw;
		height: 0.7vw;
	}
}

