/* =========================================================
   代理店別ページ（template-agency.php）：/agency/、/agency/exclusive/、/agency/independent/
   このテンプレートのページでだけ読み込む（functions.php）。配色はトップと同じ青・紺
========================================================= */

.vs-agency {
	color: #34485c;
}

.vs-agency__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

/* パンくずリスト */
.vs-agency__breadcrumb {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 30px 0;
	color: #6a7e91;
	font-size: 12px;
}

.vs-agency__breadcrumb a {
	color: #1980e9;
	text-decoration: none;
}

.vs-agency__breadcrumb span[aria-hidden] {
	margin: 0 6px;
}

/* 最初の画面 */
.vs-agency__hero {
	padding: 30px 0 56px;
	background: linear-gradient(180deg, #fff 0%, #eef7ff 100%);
}

.vs-agency__hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

.vs-agency--parent .vs-agency__hero-inner {
	grid-template-columns: minmax(0, 1fr);
	max-width: 900px;
	text-align: center;
}

.vs-agency__tag {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 18px;
	border-radius: 999px;
	background: #1980e9;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.vs-agency__title {
	margin: 0 0 18px;
	color: #12365f;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.4;
}

.vs-agency__lead {
	margin: 0 0 10px;
	color: #40556e;
	font-size: 15px;
	line-height: 1.9;
}

.vs-agency__lead--strong {
	color: #12365f;
	font-size: 17px;
	font-weight: 700;
}

.vs-agency__hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.vs-agency__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 48px;
	padding: 0 20px;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.vs-agency__btn:hover {
	color: #fff;
	opacity: 0.88;
}

.vs-agency__btn--doc {
	background: #1985ec;
}

.vs-agency__btn--demo {
	background: #f36d24;
}

.vs-agency__hero-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(33, 91, 142, 0.14);
}

/* 見出し */
.vs-agency__section-title {
	margin: 0 0 28px;
	color: #12365f;
	font-size: clamp(24px, 2.3vw, 32px);
	font-weight: 700;
	text-align: center;
}

/* 選ばれる理由 */
.vs-agency__reasons {
	padding: 70px 0 40px;
}

.vs-agency__reason-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-agency__reason {
	overflow: hidden;
	border: 1px solid #d6e7f6;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(33, 91, 142, 0.05);
}

.vs-agency__reason-image img {
	display: block;
	width: 100%;
	height: auto;
}

.vs-agency__reason-text {
	padding: 18px 20px 20px;
}

.vs-agency__reason-num {
	color: #1980e9;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.vs-agency__reason-text h3 {
	margin: 4px 0 0;
	color: #12365f;
	font-size: 17px;
	line-height: 1.6;
}

.vs-agency__reason-text p {
	margin: 8px 0 0;
	color: #4d6276;
	font-size: 14px;
	line-height: 1.8;
}

/* 画像1枚＋理由3つ（乗合） */
.vs-agency__reasons-body.has-side-media {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 32px;
	align-items: center;
}

.vs-agency__reasons-body.has-side-media .vs-agency__reason-list {
	grid-template-columns: 1fr;
	gap: 14px;
}

.vs-agency__reasons-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* まとめの一言 */
.vs-agency__closing {
	padding: 30px 30px 60px;
	text-align: center;
}

/* 「だから、」の行。下の一文の前置きとして読み飛ばされないよう、色を下の一文と同じ紺にし、太く・大きめに（2026-10-08。元：#40556e・17px・細字） */
/* 2行の塊はページの中央に置き、行の頭（「だから、」と下の一文の左端）はそろえる（2026-10-08。元：各行を中央ぞろえ） */
.vs-agency__closing p {
	display: inline-block;
	max-width: 100%;
	text-align: left;
	margin: 0;
	color: #12365f;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 700;
	line-height: 1.9;
}

.vs-agency__closing strong {
	color: #12365f;
	font-size: clamp(20px, 2vw, 26px);
}

/* お客様の声 */
.vs-agency__voice {
	padding: 60px 0;
	background: #eef7ff;
}

.vs-agency__voice-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: 28px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(33, 91, 142, 0.08);
}

.vs-agency__voice-media video,
.vs-agency__voice-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	background: #000;
}

.vs-agency__voice-company {
	margin: 0 0 10px;
	color: #24496e;
	font-size: 14px;
	font-weight: 700;
}

.vs-agency__voice-quote {
	margin: 0;
	color: #12365f;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
}

.vs-agency__voice-body {
	margin: 12px 0 0;
	color: #4d6276;
	font-size: 14px;
	line-height: 1.8;
}

.vs-agency__voice-text .vs-home-outline-link {
	margin-top: 18px;
}

/* 自由に書ける欄（固定ページの本文）：WordPress の通常の本文と同じ書式（post_content） */
.vs-agency__free {
	padding: 56px 0 10px;
}

.vs-agency__free .vs-agency__inner {
	max-width: 1000px;
}

/* もう一方の代理店へ */
.vs-agency__other {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	padding: 40px 30px 70px;
}

/* 代理店別の活用：トップのカードを使う部分の上下余白 */
.vs-agency--parent .vs-home-agency {
	padding-top: 10px;
}

/* タブレット */
@media screen and (max-width: 1000px) {
	.vs-agency__hero-inner,
	.vs-agency__voice-card,
	.vs-agency__reasons-body.has-side-media {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.vs-agency__reason-list {
		grid-template-columns: 1fr;
	}
}

/* スマホ */
@media screen and (max-width: 767px) {
	.vs-agency__inner,
	.vs-agency__hero-inner,
	.vs-agency__breadcrumb {
		padding-right: 16px;
		padding-left: 16px;
	}

	.vs-agency__hero {
		padding-bottom: 40px;
	}

	.vs-agency__lead {
		font-size: 14px;
	}

	.vs-agency__btn {
		width: 100%;
	}

	.vs-agency__voice-card {
		padding: 18px;
	}

	.vs-agency__voice-quote {
		font-size: 17px;
	}
}
