/*
Theme Name:        軽バンカーマッチ
Theme URI:         https://a-plus-jp.com/keiban/
Author:            A-Plus
Author URI:        https://a-plus-jp.com/
Description:        軽バン中古車ポータル用オリジナルテーマ。買取!カーマッチ風のオレンジ基調・ポップで信頼感のあるデザイン。プラグイン keiban-portal の店舗 / 在庫と連携する。
Version:           0.4.2
Requires at least: 6.4
Requires PHP:      8.0
License:           GPL-2.0-or-later
Text Domain:       keiban-carmatch
*/

/* =========================================================
   デザイントークン（ブランドカラーはここを変えれば全体に反映）
   ========================================================= */
:root {
	--cm-brand:       #1c6e36; /* メインカラー（グリーン） */
	--cm-brand-dark:  #237a3d;
	--cm-brand-light: #eef7f0;
	--cm-red:          #e23b1e; /* 価格など強調の差し色 */
	--cm-ink:       #000000;
	--cm-muted:        #6b6b6b;
	--cm-line:         #ececec;
	--cm-bg:           #ffffff;
	--cm-surface:      #f7f7f5;
	--cm-radius:       12px;
	--cm-wrap:         1120px;
	--cm-font:         "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

/* =========================================================
   ベース
   ========================================================= */
* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--cm-font);
	color: var(--cm-ink);
	background: var(--cm-bg);
	line-height: 1.8;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cm-brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.cm-wrap {
	max-width: var(--cm-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* 見出し */
h1, h2, h3 { font-weight: 700; line-height: 1.4; color: var(--cm-ink); }

/* セクション共通の中央見出し（オレンジの下線付き） */
.cm-section-title {
	text-align: center;
	font-size: 28px;
	margin: 0 0 8px;
}
.cm-section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 14px auto 0;
	background: var(--cm-brand);
	border-radius: 2px;
}
.cm-section-lead {
	text-align: center;
	color: var(--cm-muted);
	margin: 0 0 36px;
}

/* =========================================================
   ボタン（カーマッチ風の丸い立体ボタン）
   ========================================================= */
.cm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .03em;
	cursor: pointer;
	border: none;
	transition: filter .15s ease, transform .05s ease;
}
.cm-btn:hover { text-decoration: none; filter: brightness(1.06); }
.cm-btn:active { transform: translateY(1px); }

.cm-btn--primary {
	background: var(--cm-brand);
	color: #fff;
	border-bottom: 3px solid var(--cm-brand-dark);
}
.cm-btn--ghost {
	background: #fff;
	color: var(--cm-brand-dark);
	border: 2px solid var(--cm-brand);
}
.cm-btn--lg { padding: 18px 44px; font-size: 18px; }

/* =========================================================
   ヘッダー
   ========================================================= */
.cm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--cm-line);
}
.cm-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 72px;
}
.cm-logo { display: flex; align-items: center; }
.cm-logo:hover { text-decoration: none; }
.cm-logo img { height: 56px; width: auto; display: block; }
.cm-logo__mark { color: var(--cm-brand); }

.cm-nav { margin-left: auto; }
.cm-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.cm-nav a { color: var(--cm-ink); font-weight: bold; }
.cm-nav a:hover { color: var(--cm-brand-dark); text-decoration: none; }

.cm-header__cta { display: flex; align-items: center; gap: 14px; }
.cm-header__tel { font-weight: 700; font-size: 18px; color: var(--cm-ink); white-space: nowrap; }
.cm-header__tel small { display: block; font-size: 11px; color: var(--cm-muted); font-weight: 400; }

.cm-nav-toggle { display: none; }

/* =========================================================
   ヒーロー
   ========================================================= */
.cm-hero { background: #fff; padding: 0 0 28px; text-align: center; }
.cm-hero__img { display: block; }
.cm-hero__img img { display: block; width: 100%; height: auto; }

/* メイン画像の下に画像ボタンを横並び */
.cm-hero__btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 22px;
}
.cm-hero__btns a {
	display: inline-block;
	line-height: 0;
	transition: filter .15s ease, transform .05s ease;
}
.cm-hero__btns a:hover { filter: brightness(1.05); }
.cm-hero__btns a:active { transform: translateY(1px); }
/* 2つのボタンを同じ枠サイズにそろえる */
.cm-hero__btns a { width: 480px; max-width: 100%; aspect-ratio: 5 / 1; }
.cm-hero__btns img { display: block; width: 100%; height: 100%; object-fit: fill; }

@media (max-width: 640px) {
	.cm-hero__btns { flex-direction: column; gap: 12px; }
	.cm-hero__btns a { width: 92%; }
}

/* =========================================================
   「3つの安心」カード
   ========================================================= */
.cm-section { padding: 64px 0; }
.cm-section--alt { background: var(--cm-surface); }

.cm-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.cm-card {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 32px 24px;
	text-align: center;
}
.cm-card__num {
	width: 48px; height: 48px;
	margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--cm-brand);
	color: #fff;
	font-weight: 700;
	border-radius: 50%;
	font-size: 20px;
}
.cm-card h3 { font-size: 19px; margin: 0 0 10px; }
.cm-card p { margin: 0; color: var(--cm-muted); font-size: 15px; }

/* =========================================================
   「買取の流れ」ステップ
   ========================================================= */
.cm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cm-step {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 24px 18px;
	text-align: center;
	position: relative;
}
.cm-step__label { color: var(--cm-brand); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.cm-step h3 { font-size: 17px; margin: 6px 0 8px; }
.cm-step p { margin: 0; color: var(--cm-muted); font-size: 14px; }

/* =========================================================
   CTA 帯
   ========================================================= */
.cm-cta-band {
	background: var(--cm-brand);
	color: #fff;
	text-align: center;
	padding: 48px 20px;
}
.cm-cta-band h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.cm-cta-band p { margin: 0 0 24px; opacity: .95; }

/* =========================================================
   汎用コンテンツ（固定ページ・記事・一覧）
   ========================================================= */
.cm-main { padding: 48px 0 64px; }
.cm-page-title { font-size: 30px; margin: 0 0 28px; }

.cm-entry { margin: 0 auto; max-width: 1100px; }
.cm-entry h2 { font-size: 24px; margin: 32px 0 12px; }
.cm-entry h3 { font-size: 20px; margin: 24px 0 10px; }
.cm-entry p { margin: 0 0 1.2em; }
.cm-entry img { border-radius: var(--cm-radius); margin: 1em 0; }

.cm-postlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cm-postlist__item {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	overflow: hidden;
}
.cm-postlist__thumb { aspect-ratio: 16 / 10; background: var(--cm-surface); }
.cm-postlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-postlist__body { padding: 16px 18px; }
.cm-postlist__body h2 { font-size: 17px; margin: 0 0 6px; }
.cm-postlist__meta { font-size: 12px; color: var(--cm-muted); }

/* =========================================================
   フッター
   ========================================================= */
.cm-footer {
	background: #1c6e36;        /* もう少し濃い緑 */
	color: #fff;
	padding: 40px 0 28px;
	margin-top: 64px;
	text-align: center;
	font-weight: bold;
}
.cm-footer a { color: #fff; }
.cm-footer a:hover { text-decoration: underline; }
.cm-footer__logo { display: inline-block; }
.cm-footer__logo img { height: 96px; width: auto; display: block; margin: 0 auto; }
.cm-footer__desc { max-width: 440px; margin: 14px auto 0; color: rgba(255,255,255,.9); font-size: 14px; }
.cm-footer__nav ul { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; list-style: none; margin: 18px 0 0; padding: 0; }
.cm-footer__nav li { margin: 0; }
.cm-footer__copy { margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.85); }

/* =========================================================
   在庫一覧（archive-vehicle）／FacetWP
   ========================================================= */
.cm-vlayout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.cm-vlayout--full { grid-template-columns: 1fr; }

.cm-facets { align-self: start; }
.cm-facets__group {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 14px 16px;
	margin: 0 0 14px;
}
.cm-facets__title { font-size: 14px; margin: 0 0 10px; color: var(--cm-ink); }

.cm-vbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 20px;
	flex-wrap: wrap;
}

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

/* 在庫カード */
.cm-vcard {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.cm-vcard__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--cm-surface);
	position: relative;
	overflow: hidden;
}
.cm-vcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-vcard__noimg {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: #bbb; font-size: 13px; letter-spacing: .1em;
}
.cm-vcard__body { padding: 14px 16px; }
.cm-vcard__title { font-size: 16px; margin: 0 0 8px; line-height: 1.5; }
.cm-vcard__title a { color: var(--cm-ink); }
.cm-vcard__price {
	color: var(--cm-red);
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 10px;
}
.cm-vcard__specs {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	color: var(--cm-ink);
}
.cm-vcard__specs li {
	background: var(--cm-surface);
	border-radius: 6px;
	padding: 4px 10px;
}
.cm-vcard__specs span { color: var(--cm-muted); margin-right: 6px; }
.cm-vcard__store { margin: 0; font-size: 13px; }

.cm-pager { margin-top: 32px; text-align: center; }

/* =========================================================
   在庫詳細（single-vehicle）
   ========================================================= */
.cm-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.cm-detail__media img { width: 100%; border-radius: var(--cm-radius); }

/* 画像ギャラリー */
.cm-gallery__main img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--cm-radius);
	background: var(--cm-surface);
}
.cm-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}
.cm-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: none;
	cursor: pointer;
	line-height: 0;
}
.cm-gallery__thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.cm-gallery__thumb.is-active { border-color: var(--cm-brand); }
.cm-detail__title { font-size: 26px; margin: 0 0 16px; }

.cm-detail__price {
	display: flex; align-items: baseline; gap: 10px;
	background: var(--cm-brand-light);
	border-radius: var(--cm-radius);
	padding: 14px 18px;
	margin: 0 0 18px;
}
.cm-detail__price-label { font-size: 13px; color: var(--cm-muted); }
.cm-detail__price-val { font-size: 30px; font-weight: 700; color: var(--cm-red); }

/* スペック表（在庫・店舗共通） */
.cm-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.cm-spec th, .cm-spec td {
	text-align: left;
	padding: 11px 12px;
	border-bottom: 1px solid var(--cm-line);
	vertical-align: top;
}
.cm-spec th { width: 34%; color: var(--cm-muted); font-weight: 500; background: var(--cm-surface); }

.cm-detail__store {
	margin-top: 20px;
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 18px;
	text-align: center;
}
.cm-detail__store-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.cm-detail__store-tel { font-size: 20px; font-weight: 700; color: var(--cm-ink); margin-bottom: 14px; }

/* =========================================================
   店舗詳細（single-store）
   ========================================================= */
.cm-store-head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cm-store-head:only-child,
.cm-store-head .cm-store-head__info:only-child { grid-template-columns: 1fr; }
.cm-store-head__img img { width: 100%; border-radius: var(--cm-radius); }
.cm-store-section { margin-top: 48px; }
.cm-store-section .cm-section-title::after { margin-left: 0; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 880px) {
	.cm-vlayout { grid-template-columns: 1fr; }
	.cm-vlist { grid-template-columns: 1fr 1fr; }
	.cm-detail { grid-template-columns: 1fr; }
	.cm-store-head { grid-template-columns: 1fr; }
	.cm-hero__catch { font-size: 30px; }
	.cm-cards, .cm-steps, .cm-postlist { grid-template-columns: 1fr; }
	.cm-steps { grid-template-columns: 1fr 1fr; }

	.cm-nav-toggle {
		display: inline-flex;
		margin-left: auto;
		background: none;
		border: none;
		padding: 4px 6px;
		font-size: 40px;
		font-weight: bold;
		line-height: 1;
		color: var(--cm-brand);
		cursor: pointer;
	}
	.cm-nav {
		display: none;
		position: absolute;
		top: 72px; left: 0; right: 0;
		background: #fff;
		border-bottom: 1px solid var(--cm-line);
		margin: 0;
	}
	.cm-nav.is-open { display: block; }
	.cm-nav ul { flex-direction: column; gap: 0; padding: 8px 20px; }
	.cm-nav li { border-bottom: 1px solid var(--cm-line); }
	.cm-nav a { display: block; padding: 12px 0; }

	/* スマホはロゴ＋ハンバーガーのみ（CTAボタンはメニュー内にあるため隠す） */
	.cm-header__cta { display: none; }
	.cm-logo { font-size: 18px; white-space: nowrap; }
	.cm-header__inner { gap: 12px; }
}

/* =========================================================
   店舗ページ（ポップ構成）
   ========================================================= */
.cm-store { padding-bottom: 0; }

/* セクション帯 */
.cm-sec { padding: 56px 0; }
.cm-sec--soft   { background: var(--cm-brand-light); }
.cm-sec--accent { background: var(--cm-brand); }
.cm-narrow { max-width: 820px; }
.cm-center { text-align: center; margin-top: 24px; }

/* トップの注目在庫・店舗ピックアップ */
.cm-section--pick { padding: 56px 0; }
.cm-section--alt { background: var(--cm-brand-light, #eef7f0); }
.cm-fp-head { text-align: center; font-size: 26px; font-weight: 900; color: var(--cm-brand, #1c6e36); margin: 0 0 6px; }
.cm-fp-sub { text-align: center; color: #6b6b6b; margin: 0 0 28px; font-size: 14px; }
.cm-fp-more { text-align: center; margin-top: 28px; }
.cm-vcard__pref { display: inline-block; background: var(--cm-brand, #1c6e36); color: #fff; font-size: 11px; font-weight: bold; border-radius: 4px; padding: 2px 8px; margin-bottom: 6px; }

/* トップのコピー（リード・こんな方に・締めCTA） */
.cm-lead { max-width: 940px; text-align: center; }
.cm-lead-text { font-size: 15.5px; line-height: 2; color: #333; margin: 20px auto 0; text-align: left; max-width: 820px; }
.cm-checklist { list-style: none; margin: 26px auto 4px; padding: 0; max-width: 660px; text-align: left; }
.cm-checklist li { position: relative; padding: 11px 8px 11px 44px; border-bottom: 1px dashed #cfe0d5; font-size: 15px; color: #222; }
.cm-checklist li:last-child { border-bottom: none; }
.cm-checklist li::before { content: "✓"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; line-height: 22px; text-align: center; background: var(--cm-brand, #1c6e36); color: #fff; border-radius: 50%; font-size: 13px; font-weight: bold; }
.cm-cta-band__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cm-btn--white { background: #fff; color: var(--cm-brand-dark, #237a3d); border-bottom: 3px solid rgba(0, 0, 0, .12); }
.cm-btn--white:hover { color: var(--cm-brand-dark, #237a3d); }
@media (max-width: 640px) {
	.cm-lead-text { font-size: 14.5px; }
	.cm-checklist li { font-size: 14px; padding-left: 40px; }
	.cm-cta-band__btns .cm-btn { flex: 1 1 100%; }
}

/* 在庫アーカイブ ネイティブ絞り込みバー */
.cm-filter { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: var(--cm-brand-light, #eef7f0); border: 1px solid #dbe7df; border-radius: 10px; padding: 16px 18px; margin: 0 0 24px; }
.cm-filter__item { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: bold; color: var(--cm-brand-dark, #237a3d); }
.cm-filter__item select { font-size: 14px; padding: 8px 10px; border: 1px solid #cdd; border-radius: 6px; background: #fff; min-width: 150px; }
.cm-filter .cm-btn { padding: 10px 26px; font-size: 15px; }
@media (max-width: 640px) {
	.cm-filter { gap: 10px; padding: 14px; }
	.cm-filter__item { flex: 1 1 46%; }
	.cm-filter__item select { min-width: 0; width: 100%; }
	.cm-filter .cm-btn { flex: 1 1 100%; }
}

/* ポップな見出し（緑のピル） */
.cm-pop-title {
	margin: 0 0 28px;
}
/* タイトルを帯（バンド）の中に */
.cm-pop-title span {
	display: block;
	background: var(--cm-brand);
	color: #fff;
	font-weight: bold;
	font-size: clamp(18px, 4vw, 26px);
	text-align: center;
	padding: 14px 20px;
	border-radius: 0;
}
.cm-pop-title--light span { background: #fff; color: var(--cm-brand-dark); border: 2px solid var(--cm-brand); }

/* 画像見出し（店舗ページの各セクション） */
.cm-pop-img { display: block; margin: 0 auto 28px; width: 100%; max-width: 480px; height: auto; }

/* リッチ本文 */
.cm-rte { font-size: 16px; line-height: 1.9; }
.cm-rte p { margin: 0 0 1.1em; }
.cm-feel-lead { text-align: center; font-size: 26px; font-weight: 700; color: var(--cm-brand-dark); margin: 0 0 18px; }

.cm-noimg { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:#bbb; font-size:12px; letter-spacing:.1em; }

/* メイン画像 + 店名バンド */
.cm-store-hero { position: relative; }
.cm-store-hero__img img { width: 100%; height: 520px; object-fit: cover; display: block; }
@media (max-width: 640px) {
	.cm-store-hero__img img { height: 460px; }
}
.cm-store-hero__band { background: var(--cm-brand); color: #fff; padding: 18px 0; }
.cm-store-hero__eyebrow {
	display: inline-block; background: var(--cm-red); color: #fff;
	font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 999px; margin-bottom: 8px;
}
.cm-store-hero__name { color: #fff; font-size: clamp(24px, 5vw, 38px); margin: 0; }

/* スタッフ紹介 */
.cm-staff { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.cm-staff__card {
	background:#fff; border:1px solid var(--cm-line); border-radius:16px; padding:22px; text-align:center;
	box-shadow: 0 4px 0 var(--cm-brand-light);
}
.cm-staff__photo { width:140px; height:140px; margin:0 auto 14px; border-radius:50%; overflow:hidden; background:var(--cm-surface); }
.cm-staff__photo img { width:100%; height:100%; object-fit:cover; }
.cm-staff__pos { display:inline-block; background:var(--cm-brand-light); color:var(--cm-brand-dark); font-size:12px; font-weight:700; padding:3px 12px; border-radius:999px; }
.cm-staff__name { font-size:19px; margin:8px 0 10px; }
.cm-staff__msg { font-size:14px; color:var(--cm-muted); text-align:left; }

/* お客様の声 */
.cm-voices { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.cm-voice { background:#fff; border-radius:16px; overflow:hidden; }
.cm-voice__photo { aspect-ratio:16/10; background:var(--cm-surface); }
.cm-voice__photo img { width:100%; height:100%; object-fit:cover; }
.cm-voice__body { padding:16px 18px; }
.cm-voice__attr { display:inline-block; background:var(--cm-brand); color:#fff; font-size:12px; font-weight:700; padding:3px 12px; border-radius:999px; margin-bottom:10px; }
.cm-voice__text { font-size:14px; line-height:1.8; }

/* ご挨拶 */
.cm-greeting { display:grid; grid-template-columns:1fr 280px; gap:32px; align-items:start; }
.cm-greeting__photo img { width:100%; border-radius:16px; }
.cm-greeting__name { font-size:18px; font-weight:700; border-bottom:3px solid var(--cm-brand); padding-bottom:8px; margin:0 0 16px; }

/* 店舗情報 + MAP */
.cm-storeinfo { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:start; }
.cm-storemap iframe { width:100%; border-radius:16px; display:block; }

/* CTA：電話 / メール / LINE */
.cm-contact { background:#2b2b2b; color:#fff; padding:44px 0; text-align:center; }
.cm-contact__lead { font-size:18px; font-weight:700; margin:0 0 18px; }
.cm-contact__tel {
	display:inline-flex; flex-direction:column; align-items:center; color:#fff; text-decoration:none; margin-bottom:18px;
}
.cm-contact__tel span { font-size:13px; color:#bbb; }
.cm-contact__tel strong { font-size:34px; letter-spacing:.02em; }
.cm-contact__btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cm-btn--mail { background:#1f6fb2; color:#fff; }
.cm-btn--line { background:#06c755; color:#fff; }

@media (max-width: 880px) {
	.cm-staff, .cm-voices { grid-template-columns:1fr 1fr; }
	.cm-greeting, .cm-storeinfo { grid-template-columns:1fr; }
	.cm-contact__tel strong { font-size:28px; }
}
@media (max-width: 560px) {
	.cm-staff, .cm-voices { grid-template-columns:1fr; }
}

/* =========================================================
   スマホ：在庫 / スタッフ / お客様の声を横スワイプのカルーセルに
   （店舗ページのみ。在庫一覧ページの .cm-vlist は対象外）
   ========================================================= */
.cm-carousel { position: relative; }
.cm-carousel__nav { display: none; }

@media (max-width: 640px) {
	.cm-store .cm-vlist,
	.cm-staff,
	.cm-voices {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		margin: 0;
		padding: 4px 4px 10px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.cm-store .cm-vlist::-webkit-scrollbar,
	.cm-staff::-webkit-scrollbar,
	.cm-voices::-webkit-scrollbar { display: none; }

	.cm-store .cm-vlist > *,
	.cm-staff > *,
	.cm-voices > * {
		flex: 0 0 86%;
		scroll-snap-align: center;
	}

	.cm-carousel__nav {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 42%;
		transform: translateY(-50%);
		width: 38px;
		height: 38px;
		padding: 0;
		border-radius: 50%;
		background: #fff;
		border: 1px solid var(--cm-line);
		box-shadow: 0 2px 10px rgba(0,0,0,.18);
		font-size: 24px;
		line-height: 1;
		color: var(--cm-brand-dark);
		cursor: pointer;
		z-index: 3;
	}
	.cm-carousel__prev { left: 2px; }
	.cm-carousel__next { right: 2px; }
}

/* =========================================================
   スマホ：ブログ/お知らせ一覧を「サムネ左＋日付・タイトル右」の行レイアウトに
   （参考サイトのスマホ表示に合わせる。PCはカード並びのまま）
   ========================================================= */
@media (max-width: 640px) {
	.cm-postlist { grid-template-columns: 1fr; gap: 0; }
	.cm-postlist__item {
		display: grid;
		grid-template-columns: 92px 1fr;
		gap: 12px;
		align-items: center;
		border: none;
		border-bottom: 1px solid var(--cm-line);
		border-radius: 0;
		overflow: visible;
		padding: 14px 2px;
	}
	.cm-postlist__item > a { line-height: 0; }
	.cm-postlist__thumb { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; }
	.cm-postlist__body { padding: 0; }
	.cm-postlist__body h2 { font-size: 14px; line-height: 1.5; margin: 0; }
	.cm-postlist__meta { margin-bottom: 4px; }
}

/* =========================================================
   スマホ：在庫一覧・店舗一覧（アーカイブ）をブログ風の行レイアウトに
   （店舗ページ内のカルーセル .cm-store .cm-vlist は対象外）
   ========================================================= */
@media (max-width: 640px) {
	.cm-main .cm-vlist { display: grid; grid-template-columns: 1fr; gap: 0; }
	.cm-main .cm-vcard {
		display: grid;
		grid-template-columns: 116px 1fr;
		gap: 12px;
		align-items: stretch;
		border: none;
		border-bottom: 1px solid var(--cm-line);
		border-radius: 0;
		padding: 14px 2px;
		box-shadow: none;
	}
	/* 写真は右のテキストブロックの高さに合わせて伸ばす */
	.cm-main .cm-vcard__thumb {
		aspect-ratio: auto;
		height: 100%;
		min-height: 92px;
		border-radius: 8px;
		overflow: hidden;
	}
	.cm-main .cm-vcard__thumb img { height: 100%; width: 100%; object-fit: cover; }
	.cm-main .cm-vcard__body { padding: 0; }
	.cm-main .cm-vcard__title { font-size: 15px; margin: 0 0 4px; line-height: 1.45; }
	.cm-main .cm-vcard__price { font-size: 18px; margin: 0 0 6px; }
	.cm-main .cm-vcard__specs { margin: 0 0 6px; }
	.cm-main .cm-vcard__noimg { font-size: 11px; }
}

/* トップの「3つの安心」画像（縦長グラフィック） */
.cm-guide { display: block; margin: 0 auto; width: 100%; max-width: 560px; height: auto; }

/* 全幅・上下左右余白なしの画像セクション（PC/SP出し分け対応） */
.cm-flush { margin: 0; padding: 0; line-height: 0; }
.cm-flush picture { display: block; }
.cm-flush img { display: block; width: 100%; height: auto; }

/* 画像の見出し（お知らせ等・中央寄せ） */
.cm-heading-img { display: block; margin: 0 auto 28px; width: 100%; max-width: 420px; height: auto; }

/* フッター上の2連バナー */
.cm-footbnr { padding: 30px 0; }
.cm-footbnr__row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.cm-footbnr__row a { flex: 1 1 300px; max-width: 480px; aspect-ratio: 2 / 1; line-height: 0; transition: filter .15s ease; }
.cm-footbnr__row a:hover { filter: brightness(1.05); }
.cm-footbnr__row img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
@media (max-width: 640px) { .cm-footbnr__row a { flex-basis: 100%; max-width: 100%; } }

/* 在庫セクションの背景画像（PC/SP） */
.cm-zaiko-bg {
	background-image: url('https://a-plus-jp.com/keiban/wp-content/uploads/2026/06/bgstorepc.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
@media (max-width: 640px) {
	.cm-zaiko-bg {
		background-image: url('https://a-plus-jp.com/keiban/wp-content/uploads/2026/06/bgstore.png');
	}
}

/* 店舗情報セクションだけ：背景を緑、表組は白、見出しは白帯 */
.cm-sec:has(.cm-storeinfo) { background: var(--cm-brand); }
.cm-sec:has(.cm-storeinfo) .cm-pop-title span { background: #fff; color: var(--cm-brand-dark); border: 2px solid var(--cm-brand); }
.cm-sec:has(.cm-storeinfo) .cm-spec { background: #fff; border-radius: 8px; }
.cm-sec:has(.cm-storeinfo) .cm-spec th { background: #2b2b2b; color: #fff; }
.cm-sec:has(.cm-storeinfo) .cm-spec th { font-weight: bold; }

.cm-rte { font-weight: bold; }

/* 店舗カードの「公式サイトを見る」 */
.cm-vcard__lp { margin: 8px 0 0; }
.cm-vcard__lp span { display: inline-block; background: var(--cm-brand); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* =========================================================
   車両情報（固定：日産クリッパーバン DX）
   ========================================================= */
.cm-clipper { max-width: 980px; margin: 0 auto; }
.cm-clipper__head { text-align: center; margin-bottom: 24px; }
.cm-clipper__base { display: inline-block; background: var(--cm-brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 5px 15px; border-radius: 999px; margin: 0 0 12px; }
.cm-clipper__name { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-size: clamp(22px, 4.4vw, 30px); font-weight: 900; color: #1b1b1b; margin: 0 0 10px; letter-spacing: .01em; -webkit-text-stroke: 0.7px #1b1b1b; text-stroke: 0.7px #1b1b1b; }
.cm-clipper__price { margin: 6px 0 2px; line-height: 1; color: #e11d1d; }
.cm-clipper__price-lead { font-size: clamp(16px, 3vw, 22px); font-weight: 800; vertical-align: 0.5em; margin-right: 4px; }
.cm-clipper__price-num { font-size: clamp(40px, 10vw, 66px); font-weight: 900; letter-spacing: .01em; -webkit-text-stroke: 1px #e11d1d; text-stroke: 1px #e11d1d; }
.cm-clipper__price-unit { font-size: clamp(20px, 4vw, 28px); font-weight: 800; margin-left: 3px; }
.cm-clipper__price-tax { font-size: 12px; color: #666; margin: 8px 0 0; }
.cm-clipper__lead { font-size: 15px; line-height: 1.9; color: #333; max-width: 780px; margin: 14px auto 0; text-align: left; }
.cm-clipper__photos { position: relative; display: flex; align-items: flex-end; justify-content: center; margin: 26px 0 30px; border-radius: 16px; }
.cm-clipper__photos figure { margin: 0; width: 62%; filter: drop-shadow( 0 16px 15px rgba(0, 0, 0, .16) ); }
.cm-clipper__photos figure:nth-child(1) { margin-right: -16%; }
.cm-clipper__photos figure:nth-child(2) { z-index: 2; }
.cm-clipper__photos img { display: block; width: 100%; height: auto; }
.cm-clipper__included { margin: 4px 0 30px; padding: 22px 22px 24px; background: #f1f8f3; border: 2px solid var(--cm-brand); border-radius: 14px; }
.cm-clipper__included-title { text-align: center; font-size: clamp(16px, 3.4vw, 19px); font-weight: 900; color: var(--cm-brand-dark); margin: 0 0 16px; letter-spacing: .02em; }
.cm-inclist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cm-inclist li { background: #fff; border: 1.5px solid var(--cm-brand); color: var(--cm-brand-dark); font-weight: 700; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; }
.cm-inclist li::before { content: "✓"; color: var(--cm-brand); font-weight: 900; margin-right: 6px; }
.cm-inclist__opt { text-align: center; margin: 16px 0 0; font-size: 14px; font-weight: 700; color: #333; }
.cm-inclist__opt span { display: inline-block; background: var(--cm-brand); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin: 0 5px; }
.cm-clipper__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cm-spec__title { font-size: 16px; font-weight: 800; color: var(--cm-brand-dark); border-left: 5px solid var(--cm-brand); padding-left: 10px; margin: 0 0 12px; line-height: 1.4; }
.cm-spec__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-spec__table th, .cm-spec__table td { border: 1px solid #e2e2e2; padding: 10px 12px; text-align: left; vertical-align: middle; }
.cm-spec__table th { width: 44%; background: #f6f8f6; font-weight: 700; color: #333; }
.cm-spec__table td { background: #fff; color: #1b1b1b; }
.cm-clipper__equip { margin-top: 30px; }
.cm-clipper__eqlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.cm-clipper__eqlist li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.6; color: #1b1b1b; }
.cm-clipper__eqlist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cm-brand); font-weight: 900; }
.cm-clipper__note { font-size: 12.5px; color: #666; margin: 14px 0 0; }
.cm-clipper__colors { margin-top: 30px; }
.cm-clipper__colorlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.cm-clipper__colorlist li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1b1b1b; }
.cm-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid transparent; display: inline-block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.cm-clipper__cta-note { text-align: center; font-size: 14px; color: #333; margin: 30px 0 0; padding-top: 20px; border-top: 1px dashed #d5d5d5; }
@media ( max-width: 640px ) {
	.cm-clipper__specs { grid-template-columns: 1fr; gap: 20px; }
	.cm-clipper__eqlist { grid-template-columns: 1fr 1fr; }
}

/* 新車リース：3つの安心 / ご利用の流れ */
.cm-anshin { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cm-anshin li { background: #fff; border: 2px solid var(--cm-brand); border-radius: 14px; padding: 28px 22px; text-align: center; }
.cm-anshin__no { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cm-brand); color: #fff; font-size: 24px; font-weight: 900; margin: 0 0 12px; }
.cm-anshin h3 { font-size: 20px; font-weight: 800; color: var(--cm-brand-dark); margin: 0 0 10px; }
.cm-anshin p { font-size: 14.5px; line-height: 1.8; color: #333; margin: 0; text-align: left; }
.cm-flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cm-flow li { background: #f6f8f6; border-radius: 12px; padding: 22px 18px; }
.cm-flow__no { display: inline-block; background: var(--cm-brand); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .05em; padding: 5px 13px; border-radius: 999px; margin: 0 0 12px; }
.cm-flow h3 { font-size: 17px; font-weight: 800; color: #1b1b1b; margin: 0 0 8px; }
.cm-flow p { font-size: 14px; line-height: 1.75; color: #444; margin: 0; }
@media ( max-width: 640px ) {
	.cm-anshin { grid-template-columns: 1fr; gap: 14px; }
	.cm-flow { grid-template-columns: 1fr 1fr; gap: 12px; }
}
