/* ==========================================================
   記事下 試乗CTA  ver.3 （2026-08-04）
   お知らせ記事の下に貼るCTAブロック用のスタイル
   HTMLは記事本文に「カスタムHTML」ブロックで貼り付ける
   ・車のカードは縦に積む（1台でも複数台でも同じ形）
   ・PC    … 写真＝左、車名・店舗・ボタン＝右
   ・スマホ … 写真の下に車名・店舗・ボタンが縦に並ぶ
   読み込み：header.php（layout.css の後）
   ========================================================== */

.sh-td {
	box-sizing: border-box;
	max-width: 800px;
	margin: 60px auto 0;
	border: 1px solid #dcdcdc;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	text-align: center;
}
.sh-td * {
	box-sizing: border-box;
}
/* 記事本文側の指定（#blog_d … .main_text p { margin-bottom:20px }）を打ち消す。
   相手がIDセレクタを含み優先度が高いため !important が必要 */
.sh-td p {
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- 見出し帯 ---- */
.sh-td__head {
	padding: 16px 20px;
	background: #e21f26;
}
.sh-td__head-ttl {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.4;
	color: #fff;
}
/* 見出しの下に補足文を入れたいとき用（通常は使わない） */
.sh-td__head-sub {
	margin: 6px 0 0 !important;
	padding: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #fff;
}

/* ---- 車カード（縦に積む）---- */
.sh-td__cars {
	margin: 0;
	padding: 24px 20px;
	list-style: none;
}
.sh-td__car {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 620px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: left;
}
/* 2台目以降は区切り線を入れる */
.sh-td__car + .sh-td__car {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #e6e6e6;
}
.sh-td__car-pic {
	flex: 0 0 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;   /* 三菱の車両画像（320×180）に合わせた比率 */
	margin: 0;
	padding: 4px;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	background: #f5f5f5;
	overflow: hidden;
}
/* 写真がリンクになっているとき（クリックで申込ページへ） */
a.sh-td__car-pic {
	transition: border-color .2s, opacity .2s;
	cursor: pointer;
}
a.sh-td__car-pic:hover {
	border-color: #e21f26;
	opacity: .85;
}
/* 記事本文のimg指定（display:block; margin:30px auto）を打ち消す */
.sh-td__car-pic img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
}
.sh-td__car-txt {
	flex: 1 1 auto;
	min-width: 0;
}
.sh-td__car-name {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.4;
	color: #222;
}
.sh-td__car-grade {
	margin: 6px 0 0 !important;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #777;
}

/* ---- 試乗できる店舗名 ---- */
/* 店舗名が折り返してもラベルの下に回り込まないよう、横並びの2ブロックにする */
.sh-td__car-shop {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	margin: 12px 0 0 !important;
	padding: 0;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.5;
	color: #222;
	text-align: left;
}
/* 「試乗店舗」のラベル部分（縮まないよう固定） */
.sh-td__car-shop span {
	flex: 0 0 auto;
	margin-top: 3px;
	padding: 3px 8px;
	border-radius: 3px;
	background: #ebebeb;
	font-size: 11px;
	font-weight: normal;
	line-height: 1;
	color: #555;
}

/* ---- ボタン（カードごとに1つ）---- */
.sh-td__btn {
	display: inline-block;
	position: relative;
	width: 100%;
	max-width: 520px;
	margin-top: 16px;
	padding: 16px 20px 16px 36px;
	border-radius: 10px;
	background: #e21f26;
	box-shadow: 0 3px 0 #a9161c;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
	color: #fff !important;
	text-decoration: none !important;
	text-align: center;
	transition: opacity .2s;
}
.sh-td__btn span {
	text-decoration: underline;
}
.sh-td__btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	margin-top: -6px;
	border-style: solid;
	border-width: 6px 0 6px 8px;
	border-color: transparent transparent transparent #fff;
}
.sh-td__btn:hover {
	opacity: .85;
}

/* ---- 注記（枠の外・ボックスの下に置く）---- */
.sh-td__note {
	max-width: 800px;
	margin: 10px auto 0 !important;
	padding: 0 4px !important;
	font-size: 12px;
	line-height: 1.7;
	color: #777;
	text-align: center;
}

/* ==========================================================
   記事下 電話お問い合わせ（3店舗）
   template-parts/contact-tel.php
   ========================================================== */
/* 区切り線は border ではなく「1pxの隙間」で描く。
   こうすると縦線・横線どこでも太さが完全に揃う（背景色が線として見える） */
.sh-tel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1px;
	max-width: 800px;
	margin: 40px auto 0;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(255, 255, 255, .35);
	text-align: center;
}
.sh-tel * {
	box-sizing: border-box;
}
.sh-tel__ttl {
	margin: 0 !important;
	padding: 15px 20px !important;
	background: #000;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.5;
	color: #fff;
}
.sh-tel__list {
	display: flex;
	gap: 1px;
}
.sh-tel__item {
	flex: 1 1 0;
	min-width: 0;
}
.sh-tel__item a {
	display: block;
	padding: 20px 8px;
	background: #000;
	color: #fff !important;
	text-decoration: none !important;
	transition: opacity .2s;
}
.sh-tel__item a:hover {
	opacity: .85;
}
.sh-tel__shop {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.4;
}
.sh-tel__num {
	display: block;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
}
.sh-tel__num img {
	display: inline !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 6px 0 0 !important;
	vertical-align: -3px;
}
.sh-tel__note {
	margin: 0 !important;
	padding: 10px !important;
	background: #000;
	font-size: 12px;
	line-height: 1.5;
	color: #fff;
}

/* ==========================================================
   スマホ（767px以下）：写真の下に文字が縦に並ぶ
   ========================================================== */
@media screen and (max-width: 767px) {
	.sh-td {
		margin-top: 40px;
	}
	.sh-td__head-ttl {
		font-size: 17px;
	}
	.sh-td__head-sub {
		font-size: 12px;
	}
	.sh-td__cars {
		padding: 18px 14px;
	}
	.sh-td__car {
		display: block;
		text-align: center;
	}
	.sh-td__car + .sh-td__car {
		margin-top: 18px;
		padding-top: 18px;
	}
	.sh-td__car-pic {
		margin: 0 0 10px;
	}
	.sh-td__car-name {
		font-size: 17px;
	}
	.sh-td__car-grade {
		font-size: 12px;
	}
	.sh-td__car-shop {
		justify-content: center;
		font-size: 13px;
	}
	.sh-td__btn {
		margin-top: 12px;
		padding: 14px 14px 14px 32px;
		font-size: 15px;
	}
	.sh-td__note {
		text-align: left;
	}
	/* 電話お問い合わせ：3店舗を縦に並べる */
	.sh-tel {
		margin-top: 30px;
	}
	.sh-tel__ttl {
		padding: 13px 15px !important;
		font-size: 15px;
	}
	.sh-tel__list {
		flex-direction: column;
	}
	.sh-tel__item a {
		padding: 16px 10px;
	}
	.sh-tel__num {
		font-size: 27px;
	}
}
