/*
Theme Name:        軽バンカーマッチ 店舗LP
Theme URI:         https://car-match.jp/
Author:            A-Plus
Author URI:        https://a-plus-jp.com/
Description:        軽バンカーマッチ 各店舗の独立LP用オリジナルテーマ（緑基調・ポップ）。1店舗＝1サイト。プラグイン keiban-store の在庫 / お客様の声 / よくある質問 / 店舗情報と連携。画像は a-plus-jp.com/keiban のアップロードをクロスドメイン参照。
Version:           1.2.4
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: 64px;
}
.cm-logo { display: flex; align-items: center; }
.cm-logo:hover { text-decoration: none; }
.cm-logo img { height: 60px; 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: stretch; align-self: stretch; gap: 0; }
/* ヘッダーCTAボタン（ご相談 / LINE / 電話する）：角丸なし・全高・隙間なし */
.cm-hbtn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-width: 90px; padding: 0 16px;
	border-radius: 0; color: #fff; font-weight: 800; font-size: 13px; line-height: 1.25;
	text-align: center; white-space: nowrap;
}
.cm-hbtn:hover { color: #fff; text-decoration: none; filter: brightness(1.06); }
.cm-hbtn__ic { display: flex; }
.cm-hbtn__ic svg { width: 40px; height: 40px; display: block; }
/* ラベルは2行分の高さを確保し下揃え（1行/2行が混在しても文字位置が揃う） */
.cm-hbtn__tx { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-weight: bold; -webkit-text-stroke: .4px currentColor; }
.cm-hbtn--soudan { background: #ed4a4a; }
.cm-hbtn--line   { background: #06c755; }
.cm-hbtn--tel    { background: #1f6fb2; }

.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;
}
.cm-vcard__thumb img { 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: 64px; 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; }

	/* スマホもヘッダーに3ボタン（角丸なし・全高・隙間なし） */
	.cm-header__cta { display: flex; margin-left: auto; gap: 0; align-self: stretch; }
	.cm-hbtn { min-width: 66px; padding: 0 8px; font-size: 11px; font-weight: 800; border-radius: 0; gap: 2px; }
	.cm-hbtn__ic svg { width: 34px; height: 34px; }
	.cm-nav-toggle { margin-left: 6px; font-size: 30px; padding: 2px; }
	.cm-logo img { height: 50px; }
	.cm-header__inner { gap: 8px; }
}

/* =========================================================
   店舗ページ（ポップ構成）
   ========================================================= */
.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-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%; } }

/* 店舗紹介（メイン画像直下：店舗名＋説明＋写真） */
.cm-storeintro { background: #fff; padding: 56px 0; }
.cm-storeintro__inner { display: flex; gap: 40px; align-items: center; }
.cm-storeintro__photo { flex: 0 0 44%; max-width: 44%; }
.cm-storeintro__photo img { width: 100%; height: auto; display: block; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.cm-storeintro__body { flex: 1 1 auto; }
.cm-storeintro__label { display: inline-block; color: var(--cm-brand); font-weight: 700; letter-spacing: .1em; font-size: 13px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--cm-brand); }
.cm-storeintro__name { font-size: 31px; font-weight: bold; line-height: 1.4; margin: 0 0 16px; color: var(--cm-brand-dark); }
.cm-storeintro__desc { font-size: 18px; font-weight: bold; line-height: 1.95; color: #333; }
.cm-storeintro__desc p { margin: 0 0 1em; }
.cm-storeintro__desc p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
	.cm-storeintro { padding: 36px 0; }
	.cm-storeintro__inner { flex-direction: column; gap: 22px; align-items: stretch; }
	.cm-storeintro__photo { flex: none; max-width: 100%; width: 100%; }
	.cm-storeintro__name { font-size: 25px; }
	.cm-storeintro__desc { font-size: 17px; }
}

/* CTA（carmatch-kasatori 準拠：赤ボタン＋LINE緑＋電話） */
.p-cta { background: #fff; padding: 56px 20px; }
.p-cta__wrap { max-width: 600px; margin: 0 auto; text-align: center; }
.p-cta__wrap--line { margin-top: 26px; }
.p-cta__text { color: #ed4a4a; font-size: 22px; font-weight: bold; margin: 0 0 16px; line-height: 1.4; }
.p-cta__text--line { color: #06c755; }
.c-button { position: relative; display: block; max-width: 600px; margin: 0 auto; background: #ed4a4a; border: 6px solid #ed4a4a; color: #fff; font-size: 22px; font-weight: bold; text-align: center; text-decoration: none; padding: 22px 44px; border-radius: 14px; box-shadow: 8px 8px 16px rgba(0, 0, 0, .15); transition: opacity .2s; }
.c-button:hover { opacity: .92; }
.c-button--line { background: #06c755; border-color: #06c755; }
.c-button__text { color: #fff; }
.c-button__icon { position: absolute; top: 50%; right: 22px; width: 12px; height: 12px; margin-top: -8px; border-top: 3px solid #fff; border-right: 3px solid #fff; transform: rotate(45deg); }
.p-tel { max-width: 600px; margin: 34px auto 0; text-align: center; }
.p-tel__label { font-size: 16px; color: #1b1b1b; font-weight: bold; margin: 0 0 8px; }
.p-tel__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #1b1b1b; }
.p-tel__icon { color: var(--cm-brand); display: inline-flex; align-items: center; }
.p-tel__info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.p-tel__number { font-size: 30px; font-weight: bold; color: #1b1b1b; letter-spacing: .02em; }
.p-tel__time { font-size: 13px; color: #555; margin-top: 2px; }
@media (max-width: 768px) {
	.p-cta { padding: 40px 16px; }
	.p-cta__text { font-size: 18px; }
	.c-button { font-size: 18px; padding: 18px 40px; border-width: 4px; }
	.c-button__icon { right: 16px; }
	.p-tel__number { font-size: 26px; }
}

/* ページ送り（お知らせ一覧） */
.cm-pagination { margin: 40px 0 0; }
.cm-pagination .page-numbers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.cm-pagination .page-numbers li { margin: 0; }
.cm-pagination a, .cm-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 6px; background: #fff; border: 1px solid #ddd; color: var(--cm-brand-dark); text-decoration: none; font-weight: bold; }
.cm-pagination a:hover { border-color: var(--cm-brand); }
.cm-pagination .current { background: var(--cm-brand); border-color: var(--cm-brand); color: #fff; }

/* 代表の思い（店舗情報の前） */
.cm-repmsg { background: var(--cm-brand-light); padding: 56px 0; }
.cm-repmsg__inner { display: flex; gap: 40px; align-items: center; }
.cm-repmsg__photo { flex: 0 0 38%; max-width: 38%; }
.cm-repmsg__photo img { width: 100%; height: auto; display: block; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.cm-repmsg__body { flex: 1 1 auto; }
.cm-repmsg__text { font-size: 16px; line-height: 2; color: #222; }
.cm-repmsg__text p { margin: 0 0 1em; }
.cm-repmsg__text p:last-child { margin-bottom: 0; }
.cm-repmsg__name { margin: 12px 0 0; font-size: 17px; font-weight: bold; color: var(--cm-brand-dark); text-align: center; }
@media (max-width: 768px) {
	.cm-repmsg { padding: 36px 0; }
	.cm-repmsg__inner { flex-direction: column; gap: 22px; align-items: stretch; }
	.cm-repmsg__photo { flex: none; max-width: 100%; width: 100%; }
	.cm-repmsg__text { font-size: 15px; line-height: 1.95; }
}

/* 在庫セクションの背景（白） */
.cm-zaiko-bg {
	background: #fff;
}

/* 店舗情報セクションだけ：背景を緑、表組は白、見出しは白帯 */
.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; }

/* =========================================================
   店舗LP 追加パーツ（よくある質問 / 在庫なし表示）
   ========================================================= */
.cm-faq { list-style: none; margin: 0; padding: 0; max-width: 860px; margin-inline: auto; }
.cm-faq__item {
	background: #fff;
	border: 1px solid var(--cm-line);
	border-radius: 12px;
	padding: 18px 22px;
	margin: 0 0 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.cm-faq__q {
	position: relative;
	margin: 0 0 8px;
	padding-left: 34px;
	font-weight: bold;
	font-size: 17px;
	color: var(--cm-ink);
}
.cm-faq__q::before {
	content: "Q";
	position: absolute; left: 0; top: -2px;
	width: 26px; height: 26px;
	background: var(--cm-brand); color: #fff;
	border-radius: 50%;
	font-weight: bold; font-size: 15px;
	display: flex; align-items: center; justify-content: center;
}
.cm-faq__a {
	position: relative;
	padding-left: 34px;
	font-weight: bold;
	color: #333;
}
.cm-faq__a::before {
	content: "A";
	position: absolute; left: 0; top: -2px;
	width: 26px; height: 26px;
	background: #d1d1d1; color: #fff;
	border-radius: 50%;
	font-weight: bold; font-size: 15px;
	display: flex; align-items: center; justify-content: center;
}
.cm-faq__a p { margin: 0 0 .6em; }

.cm-empty {
	text-align: center;
	font-weight: bold;
	color: #fff;
	background: rgba(0,0,0,.15);
	border-radius: 10px;
	padding: 28px 16px;
}
.cm-empty--soft { color: var(--cm-muted); background: #fff; border: 1px dashed var(--cm-line); }

/* =========================================================
   お客様の声（carmatch-saitamaminuma 準拠のカード）
   ========================================================= */
.cm-sec--voice { background: #f2f2f2; }
.cm-sec--voice .cm-voices {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.cm-sec--voice .cm-voice {
	width: 360px;
	max-width: 100%;
	margin: 0;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 4px 4px 12px rgba(0, 0, 0, .06);
	display: block;
}
.cm-sec--voice .cm-voice__photo { margin: 0; background: #eef0f2; }
.cm-sec--voice .cm-voice__photo img {
	width: 100%;
	aspect-ratio: 250 / 187;
	object-fit: cover;
	display: block;
}
.cm-sec--voice .cm-voice__photo .cm-noimg {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 250 / 187; color: #b0b4b8; font-weight: bold; font-size: 13px;
}
.cm-sec--voice .cm-voice__body {
	padding: 15px;
	font-size: 14px;
	line-height: 1.85;
	font-weight: normal;
	color: #1b1b1b;
}
.cm-sec--voice .cm-voice__attr {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--cm-brand-dark);
}
.cm-sec--voice .cm-voice__text { font-weight: normal; }
.cm-sec--voice .cm-voice__text p { margin: 0 0 .6em; }
@media (max-width: 768px) {
	.cm-sec--voice .cm-voice { width: 100%; }
}

/* =========================================================
   店舗情報（carmatch-kasatori 準拠：緑背景＋白文字＋細い区切り）
   ========================================================= */
.cm-sec--shopinfo { background: var(--cm-brand); color: #fff; }
.cm-sec--shopinfo .cm-pop-title span { background: #fff; color: var(--cm-brand-dark); }
.cm-shopinfo__photo { max-width: 900px; margin: 0 auto 28px; }
.cm-shopinfo__photo img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.cm-shopinfo {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	justify-content: center;
}
.cm-shopinfo__table {
	flex: 1 1 380px;
	border-collapse: collapse;
	color: #fff;
	font-size: 15px;
	line-height: 1.8;
	text-align: left;
}
.cm-shopinfo__table tr { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.cm-shopinfo__table th {
	padding: 13px 8px;
	width: 7em;
	white-space: nowrap;
	vertical-align: top;
	font-weight: bold;
	color: #fff;
}
.cm-shopinfo__table td { padding: 13px 8px; vertical-align: top; color: #fff; }
.cm-shopinfo__map { flex: 1 1 380px; width: 100%; }
.cm-shopinfo__map iframe { width: 100%; height: 320px; border: 0; display: block; }
@media (max-width: 768px) {
	.cm-shopinfo { gap: 22px; }
	.cm-shopinfo__table, .cm-shopinfo__map { flex: 1 1 100%; }
}

/* =========================================================
   お客様の声（carmatch-kasatori 準拠 .rental / スライダー）
   ========================================================= */
.rental { background: #f2f2f2; padding: 80px 0; }
.rental .rental-header h3 {
	position: relative;
	font-family: "Noto Sans JP", sans-serif;
	font-weight: 900;
	font-size: 28px;
	line-height: 1.85;
	text-align: center;
	letter-spacing: .1em;
	color: var(--cm-brand);
	padding: 0 0 24px;
	margin: 0 0 46px;
}
.rental .rental-header h3::after {
	content: "";
	position: absolute;
	width: 36px; height: 4px; border-radius: 2px;
	background: var(--cm-brand);
	left: 50%; transform: translateX(-50%); bottom: 12px;
}
.cm-slider-stage { position: relative; }
/* PC: 2列グリッド（slick未適用） */
.rental-body {
	display: flex;
	flex-wrap: wrap;
	width: 960px;
	max-width: 100%;
	margin: 0 auto;
	justify-content: center;
}
.rental-li {
	margin-bottom: 40px;
	width: 360px;
	max-width: 100%;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 4px 4px 12px rgba(0, 0, 0, .05);
}
.rental-li:nth-child(2n+1) { margin-right: 20px; }
.rental-li:nth-child(2n)   { margin-left: 20px; }
.rental-li picture { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f5f5; }
.rental-li picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rental-li .cm-noimg { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1/1; color: #b0b4b8; font-weight: bold; font-size: 13px; }
/* carmatch-kasatori 採寸: desc padding15 / 14px / lh1.5 / #1b1b1b, head 黒太字・左寄せ */
.rental-desc { font-size: 14px; padding: 15px; box-sizing: border-box; line-height: 1.5; color: #1b1b1b; text-align: left; }
.rental-desc .rental-head { font-size: 14px; font-weight: 700; color: #1b1b1b; margin: 0 0 6px; text-align: left; word-break: break-word; }
.rental-desc p { word-break: break-word; margin: 0; color: #1b1b1b; text-align: left; }

/* 矢印・サムネイルはPC(タブレット以上)では非表示。SPのみ表示 */
.is-hidden-tablet { display: none; }
.arrows .arrow { box-sizing: border-box; }

@media (max-width: 768px) {
	.rental { padding: 50px 0; }
	.rental .rental-header h3 { font-size: 22px; }

	/* SP: slick スライダー化（carmatch-kasatori と同仕様） */
	.rental-body { display: block; width: 100%; margin: 0; }
	.rental-body .slick-track { display: flex; align-items: stretch; }
	.rental-body .slick-slide { height: auto; }
	.rental-li {
		width: 280px;
		margin: 0 20px 20px 0 !important; /* kasatori: カード間に右20pxの隙間 */
		height: auto;
	}

	/* 矢印 */
	.arrows.is-hidden-tablet { display: block; }
	.arrows .arrow {
		display: block;
		position: absolute;
		top: 100px;
		width: 40px; height: 40px;
		background: #fff;
		border-radius: 50%;
		box-shadow: 0 0 10px rgba(0, 0, 0, .15);
		cursor: pointer;
		z-index: 5;
	}
	.arrows .arrow::before {
		content: "";
		position: absolute; top: 50%; left: 50%;
		width: 10px; height: 10px;
		border-top: 2px solid var(--cm-brand);
		border-right: 2px solid var(--cm-brand);
	}
	.arrows .arrow-left  { left: 8px; }
	.arrows .arrow-left::before  { transform: translate(-30%, -50%) rotate(-135deg); }
	.arrows .arrow-right { right: 8px; }
	.arrows .arrow-right::before { transform: translate(-70%, -50%) rotate(45deg); }

	/* サムネイル */
	.rental-thumbs.is-hidden-tablet { display: flex; }
	.rental-thumbs {
		gap: 8px;
		width: 280px;
		max-width: 88%;
		margin: 16px auto 0;
	}
	.rental-thumbs > div {
		position: relative;
		flex: 1 1 0;
		cursor: pointer;
		border-radius: 2px;
		overflow: hidden;
	}
	.rental-thumbs > div p,
	.rental-thumbs > div picture { display: block; margin: 0; line-height: 0; }
	.rental-thumbs img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
	.rental-thumbs > div::after {
		content: "";
		position: absolute; inset: 0;
		border: 2px solid transparent;
		border-radius: 2px;
		transition: border-color .2s;
	}
	.rental-thumbs > div.active::after { border-color: var(--cm-brand); }
}

/* =========================================================
   よくある質問（carmatch-kasatori 準拠 .cmsin-faq アコーディオン）
   ========================================================= */
.cmsin-faq { padding: 80px 0 100px; background: #fff; font-family: "Noto Sans JP", sans-serif; }
.cmsin-faq-header { background: var(--cm-brand); color: #fff; margin: 0 0 50px; text-align: center; padding: 20px 0; width: 100%; }
.cmsin-faq-header h2 { font-size: 28px; font-weight: 900; color: #fff; letter-spacing: .08em; margin: 0; }
.cmsin-faq-inner { width: 90%; max-width: 840px; margin: 0 auto; }
.cmsin-faq-list { list-style: none; padding: 0; margin: 0; }
.cmsin-faq-item { margin-bottom: 16px; border: 1px solid #dde6f5; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.cmsin-faq-q { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; cursor: pointer; background: var(--cm-brand-light); transition: background .2s; user-select: none; }
.cmsin-faq-q:hover { background: #e3f0e8; }
.cmsin-faq-q-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--cm-brand); color: #fff; font-size: 17px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cmsin-faq-q-text { flex: 1 1 0%; font-size: 17px; font-weight: 700; color: var(--cm-brand-dark); line-height: 1.6; }
.cmsin-faq-q-toggle { flex-shrink: 0; width: 20px; height: 20px; position: relative; margin-top: 4px; }
.cmsin-faq-q-toggle::before, .cmsin-faq-q-toggle::after { content: ""; position: absolute; background: var(--cm-brand); border-radius: 2px; transition: .3s; }
.cmsin-faq-q-toggle::before { width: 2px; height: 14px; top: 3px; left: 9px; }
.cmsin-faq-q-toggle::after  { width: 14px; height: 2px; top: 9px; left: 3px; }
.cmsin-faq-item.is-open .cmsin-faq-q-toggle::before { transform: rotate(90deg); opacity: 0; }
.cmsin-faq-a { display: none; padding: 20px 24px 20px 70px; background: #fff; border-top: 1px solid #dde6f5; gap: 14px; align-items: flex-start; }
.cmsin-faq-item.is-open .cmsin-faq-a { display: flex; }
.cmsin-faq-a-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #e8a020; color: #fff; font-size: 17px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 1px; margin-left: -56px; }
.cmsin-faq-a-text { flex: 1 1 0%; font-size: 15px; color: #444; line-height: 1.85; }
@media screen and (max-width: 768px) {
	.cmsin-faq { padding: 50px 0 60px; }
	.cmsin-faq-header h2 { font-size: 20px; }
	.cmsin-faq-q { padding: 16px; gap: 10px; }
	.cmsin-faq-q-icon { width: 26px; height: 26px; font-size: 14px; }
	.cmsin-faq-q-text { font-size: 14px; }
	.cmsin-faq-a { padding: 14px 16px 14px 52px; }
	.cmsin-faq-a-icon { width: 26px; height: 26px; font-size: 14px; margin-left: -36px; }
	.cmsin-faq-a-text { font-size: 13px; }
}

.cmsin-faq-a-text p { margin: 0; }
.cmsin-faq-a-text br { line-height: 2; }
