/* ==========================================================================
   corop — コンセプト（page-concept.php 専用）
   基準: Figma PC 1280px を ×1.125 でスケール（他ページと同じ換算）
        Figma SP 402px → 実機 375px 想定
   ※色トークン・フォントは header-footer.css の :root で定義（先に読み込む）
   ========================================================================== */

.cp {
	--cp-content: 979px; /* Figma 870 × 1.125 */
	--cp-col: 581px;     /* 本文カラム Figma 516 × 1.125 */
	--cp-visual: 379px;  /* 写真カラム Figma 337 × 1.125 */

	padding-top: 87px; /* Figma 77 × 1.125 */
	color: var(--corop-ink, #4c4948);
	font-family: var(--corop-font, "Avenir", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
}

/* ===== 見出し ===== */
.cp-head {
	text-align: center;
}
.cp-head__title {
	margin: 0;
	color: var(--corop-orange, #d79000);
	font-size: 53px; /* Figma 46.8 × 1.125 */
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.15;
}
.cp-head__sub {
	margin: 6px 0 0;
	color: var(--corop-orange, #d79000);
	font-size: 20px; /* Figma 18.2 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.6;
}

/* ===== メインビジュアル ===== */
.cp-hero {
	max-width: var(--cp-content);
	margin: 45px auto 0;
	padding-inline: 24px;
}
.cp-hero img {
	display: block;
	width: 100%;
	height: 570px; /* Figma 507 × 1.125 */
	object-fit: cover;
}

/* ===== 本文 ＋ 写真 ===== */
.cp-story {
	display: flex;
	align-items: flex-start;
	gap: 19px;
	max-width: var(--cp-content);
	margin: 225px auto 0; /* Figma 1055-854 = 201 × 1.125 */
	padding-inline: 24px;
}
.cp-story--reverse {
	margin-top: 140px;
}
.cp-story__body {
	flex: 1 1 auto;
	min-width: 0;
	max-width: var(--cp-col);
}
.cp-story__visual {
	flex: 0 0 auto;
	width: var(--cp-visual);
}
.cp-story__img {
	display: block;
	width: 100%;
	height: 263px; /* Figma 234 × 1.125 */
	object-fit: cover;
}
.cp-story__img--2 {
	margin-top: 30px;
}

.cp-story__catch {
	margin: 0;
}
.cp-story__catch img {
	display: block;
	width: 390px; /* Figma 347 × 1.125 */
	height: auto;
}

.cp-text {
	margin: 93px 0 0;
	font-size: 15px; /* Figma 13 × 1.125 */
	letter-spacing: 0.05em;
	line-height: 2.08; /* Figma 27 / 13 */
}
.cp-text + .cp-text {
	margin-top: 26px;
}
.cp-lead {
	margin: 49px 0 0;
	font-size: 19px; /* Figma 17 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.65;
}
.cp-text--2 {
	margin-top: 49px;
}

/* ===== coropの3つのお約束 ===== */
.cp-promise {
	margin-top: 145px;
	padding: 108px 24px 160px;
	background: var(--corop-light-olive, #dcd7c4);
}
.cp-promise__title {
	margin: 0;
	text-align: center;
	font-size: 30px; /* Figma 27 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.5;
}
.cp-promise__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	max-width: 1187px; /* Figma 1055 × 1.125 */
	margin: 76px auto 0;
}

.cp-card {
	position: relative;
	padding-top: 12px;
}
.cp-card__no {
	position: absolute;
	top: -34px;
	left: 0;
	margin: 0;
	color: var(--corop-olive, #9d8a3c);
	font-size: 87px; /* Figma 77 × 1.125 */
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
}
.cp-card__inner {
	height: 100%;
	padding: 56px 0 40px;
	border-radius: 34px; /* Figma 30 × 1.125 */
	background: var(--corop-white, #fff);
	overflow: hidden;
}
.cp-card__title {
	/* 3枚の写真の高さを揃えるため、見出しは2行ぶんの高さで固定する */
	min-height: 66px;
	margin: 0 16px;
	text-align: center;
	font-size: 19px; /* Figma 17 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.7;
}
.cp-card__visual {
	margin-top: 20px;
}
.cp-card__visual img {
	display: block;
	width: 100%;
	height: 234px; /* Figma 208 × 1.125 */
	object-fit: cover;
}
.cp-card__text {
	margin: 26px 38px 0;
	font-size: 15px;
	letter-spacing: 0.02em;
	line-height: 1.85;
}

/* ==========================================================================
   SP（Figma node 260:16330）
   ========================================================================== */
@media (max-width: 768px) {
	.cp {
		padding-top: 42px;
	}

	.cp-head__title {
		font-size: 33px; /* Figma 32.8 */
	}
	.cp-head__sub {
		margin-top: 4px;
		font-size: 15px; /* Figma 15.2 */
	}

	/* SP はメインビジュアルを全幅に */
	.cp-hero {
		margin-top: 26px;
		padding-inline: 0;
	}
	.cp-hero img {
		height: auto;
		aspect-ratio: 402 / 527;
	}

	/* 1カラムに。写真は本文の間に挟み込む */
	.cp-story,
	.cp-story--reverse {
		display: block;
		margin-top: 56px;
		padding-inline: 20px;
	}
	.cp-story__body {
		max-width: none;
	}
	.cp-story__visual {
		width: auto;
	}
	.cp-story__img {
		height: 235px;
	}
	.cp-story__img--1 {
		margin-top: 40px;
	}
	.cp-story__img--2 {
		margin-top: 40px;
	}

	.cp-story__catch img {
		width: 219px; /* Figma 235 × 0.933 */
		margin-inline: auto;
	}

	.cp-text {
		margin-top: 40px;
		font-size: 13px;
	}
	.cp-text + .cp-text {
		margin-top: 24px;
	}
	.cp-lead {
		margin-top: 32px;
		font-size: 17px;
	}
	.cp-text--2 {
		margin-top: 32px;
	}

	.cp-promise {
		margin-top: 64px;
		padding: 52px 0 60px;
	}
	.cp-promise__title {
		font-size: 21px;
	}

	/* SP はカードを横スクロール（Figma も横並びのまま）
	   ・padding-top はカード上にはみ出す数字が切れない高さを確保する
	     （overflow-x:auto は縦方向もクリップするため）
	   ・スクロールバーは非表示（スワイプ時に下線が出るのを防ぐ） */
	.cp-promise__list {
		display: flex;
		gap: 20px;
		max-width: none;
		margin-top: 24px;
		padding: 52px 20px 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;      /* Firefox */
		-ms-overflow-style: none;   /* 旧Edge/IE */
	}
	.cp-promise__list::-webkit-scrollbar {
		display: none;              /* Chrome / Safari */
	}
	.cp-card {
		flex: 0 0 auto;
		width: 277px; /* Figma 297 × 0.933 */
		scroll-snap-align: center;
	}
	.cp-card__no {
		top: -34px;
		font-size: 46px;
	}
	.cp-card__inner {
		padding: 34px 0 28px;
		border-radius: 22px;
	}
	.cp-card__title {
		min-height: 48px; /* SPも2行ぶんで固定し、3枚の写真位置を揃える */
		margin-inline: 12px;
		font-size: 14px;
	}
	.cp-card__visual {
		margin-top: 14px;
	}
	.cp-card__visual img {
		height: 147px;
	}
	.cp-card__text {
		margin: 18px 20px 0;
		font-size: 12px;
	}
}
