/* ==========================================================================
   合格実績セクション（共通部品）   2026-09-03
   ショートコード [pass_rate_results] の見た目。TOPページとエリアページの両方で使う。
   出典は front-page.css の .front-page-results 系（601-726行）＋ .front-page-inner（92行）
   ＋ h2.front-page-heading（98行）＋ .summer-campaign-btn 系（1061-1140行）。
   自前の名前空間（pass-rate）にして front-page.css への依存を断っている。
   front-page.css は 43KB あり、.cta-banner / .cta-tel__* / .open など11個のクラス名が
   taxonomy-locations.css と衝突するため、エリアページでは読み込めない。
   数字（97% / 94% / 母数）はショートコードの引数で1箇所に持つ。
   BrandDIN の @font-face は style.css にあり全ページで読める。
   ========================================================================== */
.pass-rate {
	padding: 64px 0 56px;
	background: #fff;
}

.pass-rate .pass-rate__inner {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.pass-rate .pass-rate__icon {
	display: block;
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
}

.pass-rate .pass-rate__heading {
	margin: 0 0 40px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #006039;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-align: center;
	font-family: "Noto Sans JP", sans-serif;
}

/* 親テーマが見出しに付ける装飾を打ち消す */
.pass-rate .pass-rate__heading::before,
.pass-rate .pass-rate__heading::after {
	display: none;
	content: none;
}

.pass-rate .pass-rate__lead {
	margin: 0 0 40px;
	color: #333;
	font-size: 15px;
	text-align: center;
}

@media screen and (min-width: 768px) {
	.pass-rate .pass-rate__lead {
		font-size: 16px;
	}
}

.pass-rate .pass-rate__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 40px;
	margin: 0 0 40px;
	list-style: none;
	padding: 0;
}

.pass-rate .pass-rate__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	list-style: none;
	margin: 0;
}

.pass-rate .pass-rate__row {
	display: flex;
	align-items: flex-end;
}

.pass-rate .pass-rate__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 144px;
	height: 98px;
	padding: 0 38px 0 6px;
	clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
	color: #fff;
	font-weight: 800;
	font-size: 27px;
	line-height: 1.25;
	text-align: center;
}

.pass-rate .pass-rate__badge--orange { background: #ED6C2D; }
.pass-rate .pass-rate__badge--pink   { background: #E51F4D; }

.pass-rate .pass-rate__num {
	margin-left: 16px;
	font-family: 'BrandDIN', sans-serif;
	font-weight: 700;
	font-size: clamp(68px, 10vw, 100px);
	line-height: 1;
	transform: translateY(0.12em);
}

.pass-rate .pass-rate__num--orange { color: #ED6C2D; }
.pass-rate .pass-rate__num--pink   { color: #E51F4D; }

.pass-rate .pass-rate__percent {
	font-size: 0.62em;
}

.pass-rate .pass-rate__note {
	/* front-page.css の全体リセットに依存しないよう上下とも明示する */
	margin: 4px 0 0;
	color: #666;
	font-size: 12px;
	text-align: left;
}

/* --- ボタン --------------------------------------------------------------- */
.pass-rate .pass-rate__btn-wrap {
	margin: 30px 0;
	text-align: center;
}

.pass-rate .pass-rate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 56px;
	font-size: 1.05em;
	background-color: transparent;
	color: #004D28;
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: bold;
	text-decoration: none;
	border: 2px solid #004D28;
	border-radius: 4px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.pass-rate .pass-rate__btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background-color: #004D28;
	transition: width 0.3s ease;
	z-index: -1;
}

.pass-rate .pass-rate__btn-arrow {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.pass-rate .pass-rate__btn-arrow svg {
	width: 1.1em;
	height: auto;
}

@media (hover: hover) {
	.pass-rate .pass-rate__btn:hover {
		color: #fff;
		border-color: #004D28;
		text-decoration: none;
	}

	.pass-rate .pass-rate__btn:hover::before {
		width: 100%;
	}

	.pass-rate .pass-rate__btn:hover .pass-rate__btn-arrow {
		transform: translateY(-50%) translateX(5px);
	}
}

.pass-rate .pass-rate__btn:focus-visible {
	outline: 2px solid #004D28;
	outline-offset: 2px;
}

/* --- レスポンシブ --------------------------------------------------------- */
@media screen and (max-width: 959px) {
	.pass-rate .pass-rate__inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media screen and (max-width: 600px) {
	.pass-rate {
		padding: 48px 0 40px;
	}

	.pass-rate .pass-rate__grid {
		gap: 20px 24px;
	}

	.pass-rate .pass-rate__badge {
		width: 112px;
		height: 78px;
		padding: 0 28px 0 4px;
		font-size: 20px;
	}

	.pass-rate .pass-rate__num {
		margin-left: 10px;
	}
}
