@charset "UTF-8";

/*
 * 成婚実績ページ（page-results.php）のスタイル。
 *
 * メインビジュアル・体験談・CTA は page-first.css、
 * 「ご成婚5,000組以上」の装飾は front-page.css を流用しているため、
 * functions.php で 'first' と 'front' を extends に指定している。
 *
 * モバイルファースト。PC は 840px 以上。
 * グラフや写真のコラージュは、あとから画像を入れる前提でグレーの四角
 * （.img-slot--empty）で場所を確保している。
 * assets/img/results/ に画像を置けば差し替わる。
 */

.p-results {
	--rs-cream: #fdf5f1;     /* グラフのセクションの背景 */
	--rs-card-bg: #fff;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. 2011年の創業から ご成婚5,000組以上
   見出しまわりは front-page.css の .p-front__achievement をそのまま使う。
   -------------------------------------------------------------------------- */
.p-results__achievement-lead {
	margin: 24px 0 0;
	font-size: 13px;
	line-height: 1.9;
	text-align: center;
	color: var(--color-text-body);
}

/* 写真のコラージュ（重なり方も含めて1枚の画像） */
.p-results__photos {
	margin-top: 28px;
	line-height: 0;
}

.p-results__photos img,
.p-results__photos .img-slot--empty {
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	object-fit: contain;
}

/* --- 成婚率のカード --- */

.p-results__rate {
	margin-top: 32px;
	padding: 28px 20px;
	border-radius: 16px;
	background-color: var(--rs-card-bg);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .06);

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

/* 文字側 */
.p-results__rate-text {
	text-align: left;
	flex-shrink: 0;
}

.p-results__rate-label {
	margin: 0;
	font-family: var(--font-mincho);
	font-weight: 400;
	font-size: 19px;
	line-height: 1.4;
}

.p-results__rate-value {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	margin: 4px 0 0;
	font-family: var(--font-mincho);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.2;
}

/* 「60」だけ大きくオレンジに */
.p-results__rate-value em {
	font-style: normal;
	font-size: 3em;
	line-height: 1;
	color: var(--color-primary);
	font-variant-numeric: tabular-nums;
}

.p-results__rate-unit {
	font-size: 1.7em;
}

.p-results__rate-bang {
	color: var(--color-text);
	font-size: 1.7em;
}

.p-results__rate-note {
	margin: 14px 0 0;
	font-size: 11px;
	line-height: 1.8;
	text-align: left;
	color: var(--color-text-muted);
}

/* 画像 */
.p-results__rate-image {
	margin-top: 0;
	line-height: 0;
	flex-shrink: 0;
}

.p-results__rate-image img,
.p-results__rate-image .img-slot--empty {
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
	margin-inline: auto;
	aspect-ratio: 500 / 200;
	object-fit: contain;
}
@media (max-width: 839px) {
	.p-results__rate {
		margin-top: 20px;
		padding: 30px 0px 20px;
		border-radius: 10px;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.109);
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.p-results__rate-text {
		width: 100%;
	}

	.p-results__rate-label {
		font-size: 22px;
		text-align: center;
		margin-bottom: -5px;
	}

	.p-results__rate-value {
		justify-content: center;
	}

	.p-results__rate-value em {
		font-size: 3em;
	}

	.p-results__rate-unit {
		font-size: 1.4em;
	}

	.p-results__rate-bang {
		color: var(--color-text);
		font-size: 1.4em;
	}

	.p-results__rate-note {
		font-size: 13px;
		line-height: 1.5;
		text-align: center;
	}

	.p-results__rate-image img,
	.p-results__rate-image .img-slot--empty {
		width: 100%;
		max-width: 300px;
		aspect-ratio: 200 / 100;
	}
}

.p-front__achievement-title,
.p-front__achievement-count {
	text-shadow:
		-3px -3px 0 #fff,
		 0   -3px 0 #fff,
		 3px -3px 0 #fff,
		-3px  0   0 #fff,
		 3px  0   0 #fff,
		-3px  3px 0 #fff,
		 0    3px 0 #fff,
		 3px  3px 0 #fff;
}
/* --------------------------------------------------------------------------
   3. 数字で見る（グラフ3つ）
   グラフはすべて画像。見出しと注釈だけ文字で出している。
   -------------------------------------------------------------------------- */
.p-results__charts {
	padding: 48px 0 56px;
	background-color: var(--rs-cream);
}

.p-results__chart + .p-results__chart {
	margin-top: 32px;
}

/* 白いカードに載せるグラフ */
.p-results__chart--card {
	padding: 28px 16px;
	border-radius: 16px;
	background-color: var(--rs-card-bg);
}

.p-results__chart-title {
	margin: 0;
	font-family: var(--font-mincho);
	/* 明朝体は太字にしない */
	font-weight: 400;
	font-size: 25px;
	line-height: 1.5;
	letter-spacing: .02em;
	text-align: center;
}

.p-results__chart-title em {
	font-style: normal;
	color: var(--color-primary);
}

/*
 * --ratio と --w は page-results.php から渡している（グラフごとに違うため）。
 * 画像を入れるまでのグレーの四角も、同じ縦横比で場所を確保する。
 */
.p-results__chart-image {
	max-width: var(--w, 100%);
	margin: 24px auto 0;
	line-height: 0;
}

.p-results__chart-image img,
.p-results__chart-image .img-slot--empty {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--ratio, 2 / 1);
	object-fit: contain;
}

/* 図の左右に出す期間（2020年10月 〜 2026年8月） */
.p-results__chart-range {
	display: flex;
	justify-content: space-between;
	margin: 8px 0 0;
	font-size: 11px;
	color: var(--color-text-body);
}

.p-results__chart-note {
	margin: 12px 0 0;
	font-size: 11px;
	line-height: 1.8;
	text-align: center;
	color: var(--color-text-muted);
}

/* ==========================================================================
   PC（840px 以上）
   ========================================================================== */
@media (min-width: 840px) {

	/* --- 2. ご成婚5,000組以上 --- */
	.p-results__achievement-lead {
		margin-top: 40px;
		font-size: 14px;
	}

	.p-results__photos {
		margin-top: 40px;
	}

	.p-results__rate {
		display: grid;
		grid-template-columns: 1fr 500px;
		align-items: center;
		gap: 40px;
		margin-top: 48px;
		padding: 56px 100px;
		border-radius: 24px;
		text-align: left;
	}

	.p-results__rate-label {
		font-size: 32px;
	}

	.p-results__rate-value {
		justify-content: flex-start;
		margin-top: 8px;
		font-size: 23px;
	}

	.p-results__rate-note {
		margin-top: 20px;
		font-size: 14px;
	}

	.p-results__rate-image {
		margin-top: 0;
	}

	/* --- 3. グラフ --- */
	
	.p-results__chart-title--yearly em {
		font-size: 1.5em;
		font-style: normal;
		line-height: 1;
	}

	.p-results__charts {
		padding: 100px 0;
	}

	.p-results__chart + .p-results__chart {
		margin-top: 56px;
	}

	.p-results__chart--card {
		padding: 56px 72px;
		border-radius: 24px;
	}

	.p-results__chart-title {
		font-size: 25px;
	}

	.p-results__chart-image {
		margin-top: 36px;
	}


	.p-results__chart-range,
	.p-results__chart-note {
		font-size: 12px;
	}

	/* --- 5. CTA --- */
	/* ボタンの文字サイズは page-first.css の共通指定に合わせる（PC 18px） */
}
