/* =========================================================
   目的詳細（Figma 2747:21353）
   ヒーロー 3291:25758（80–350）/ もどる 2781:21591（381）/ 本文 2783:21905（437–2521）
   お問い合わせボタン 3957:25239（2662–2733）/ CTA 2847
   背景帯: 解決のポイント #D5E9FF 5533:14645（901–1525 = 見出しの30px上〜カードの30px下）
           導入事例〜お問い合わせボタン #EAF2FB 5535:14649（2052–2847 = 見出しの32px上〜CTA まで）
   ========================================================= */

/* ---------- ヒーロー（270px） ---------- */
.p-purpose-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 270px;
	background: #e6ebf1;
}
.p-purpose-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: -2;
}
.p-purpose-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--c-bg-gray);
	opacity: .75;
	z-index: -1;
}
.p-purpose-hero__inner {
	display: flex;
	flex-direction: column;
	padding-top: 33px;
	padding-bottom: 32px;
	color: var(--c-text);
}
.p-purpose-hero__breadcrumb { margin-left: 1px; }
.p-purpose-hero__head {
	display: flex;
	flex-direction: column;
	margin-top: 27px;
	margin-left: 1px;
	font-weight: 700;
	line-height: 1.5;
}
.p-purpose-hero__en { font-size: 16px; letter-spacing: .06em; color: var(--c-blue); }
.p-purpose-hero__title { font-size: 36px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; }
.p-purpose-hero__lead {
	max-width: 1076px;
	margin: 8px 0 0 1px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.75;
}
.p-purpose-hero__text {
	max-width: 1066px;
	margin: 16px 0 0 1px;
	font-size: 16px;
	line-height: 1.75;
}
/* PC デザインには説明文なし（SP も非表示: 下の SP ブロック） */
@media (min-width: 768px) {
	.p-purpose-hero__text { display: none; }
}

/* ---------- もどる ---------- */
.p-purpose-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 31px 0 0 1px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--c-text-sub);
	transition: color .2s var(--ease);
}
.p-purpose-back:hover { color: var(--c-blue); }
.p-purpose-back__icon { transition: transform .2s var(--ease); }
.p-purpose-back:hover .p-purpose-back__icon { transform: translateX(-3px); }

/* ---------- セクション共通 ---------- */
.p-purpose-body {
	display: flex;
	flex-direction: column;
	gap: 90px;
	padding-top: 28px;
}
.p-purpose-sec__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 30px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.65;
	color: var(--c-text);
}
.p-purpose-sec__head::before {
	content: "";
	flex-shrink: 0;
	width: 4px;
	height: 30px;
	border-radius: 2px;
	background: var(--c-blue);
}

/* 背景帯（画面幅いっぱい。box-shadow で左右に伸ばし clip-path で上下を切る＝横スクロールを出さない） */
.p-purpose-points,
.p-purpose-works,
.p-purpose-contact { position: relative; isolation: isolate; }
.p-purpose-points::before,
.p-purpose-works::before,
.p-purpose-contact::before {
	content: "";
	position: absolute;
	z-index: -1;
	background: var(--band);
	box-shadow: 0 0 0 100vmax var(--band);
	clip-path: inset(0 -100vmax);
	pointer-events: none;
}
.p-purpose-points { --band: #d5e9ff; }
.p-purpose-points::before { inset: -30px 0; }
.p-purpose-works,
.p-purpose-contact { --band: #eaf2fb; }
.p-purpose-works::before { inset: -32px 0 0; }
.p-purpose-contact::before { inset: -1px 0 0; } /* 導入事例の帯との継ぎ目（端数）を重ねて消す */

/* ---------- こんなお悩み（Perpose_issue 380x344） ---------- */
.p-purpose-issues__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 380px));
	justify-content: end;
	gap: 4px;
	margin-left: -8px;
}
.p-purpose-issue { position: relative; padding: 24px 0 0 22px; }
.p-purpose-issue__badge {
	position: absolute;
	top: 8px;
	left: 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50% 50% 0 50%;
	background: var(--c-blue);
}
.p-purpose-issue__icon { width: 36px; height: 36px; }
.p-purpose-issue__box {
	height: 100%;
	min-height: 319px;
	padding: 33px 43px 30px 55px;
	border: 1px solid rgba(90, 107, 123, .3);
	border-radius: 4px;
	background: var(--c-white);
}
.p-purpose-issue__num {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--c-blue);
}
.p-purpose-issue__title {
	min-height: 54px;
	margin-top: 6px;
	padding-bottom: 16px;
	border-bottom: 1px solid #c9d1d9;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--c-text);
}
.p-purpose-issue__title em { font-style: normal; color: var(--c-blue); }
.p-purpose-issue__text {
	margin-top: 21px;
	font-size: 16px;
	line-height: 1.5;
}

/* ---------- 解決のポイント（354x504） ---------- */
.p-purpose-points__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 354px));
	justify-content: space-between;
	row-gap: 30px;
	max-width: 1136px;
}
.p-purpose-point {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 4px;
	background: var(--c-bg-gray);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.p-purpose-point__img { position: relative; aspect-ratio: 354 / 264; background: #e6ebf1; }
.p-purpose-point__img img { width: 100%; height: 100%; object-fit: cover; }
.p-purpose-point__num {
	position: absolute;
	top: 10px;
	left: 21px;
	right: 21px;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--c-white);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .5), 0 1px 7px rgba(0, 0, 0, .7); /* 全ポイント白字。明るい画像でも読めるよう影を付ける */
}
.p-purpose-point__num span { font-size: 18px; line-height: 1.65; margin-bottom: -7px; }
.p-purpose-point__body { padding: 18px 28px 26px 27px; }
.p-purpose-point__title {
	min-height: calc(16px * 1.7 * 2);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--c-blue);
}
.p-purpose-point__text {
	margin-top: 18px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--c-text);
}

/* ---------- サービス / 導入事例（card_works 354x349.5） ---------- */
.p-purpose-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 354px));
	justify-content: space-between;
	row-gap: 30px;
	max-width: 1139px;
}
.p-purpose-cards > li { display: flex; }
.p-purpose-cards .c-card-works { height: 100%; }
.p-purpose-works__more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- お問い合わせボタン（511x71, もっと見るの下 117px / 帯の下端＝CTA の上 114px） ---------- */
.p-purpose-contact { display: flex; justify-content: center; padding: 117px 0 114px; }
.p-purpose-contact__btn { width: 511px; max-width: 100%; min-height: 71px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
	.p-purpose-issues__list { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 24px; margin-left: -8px; }
	.p-purpose-points__list,
	.p-purpose-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
	.p-purpose-body { gap: 64px; }
	.p-purpose-contact { padding: 100px 0; }
}
/* ---------- SP（Figma 目的詳細_SP 3418:30702） ----------
   ヒーロー 3418:30973（65–235, 画像＋#F1F5F9 75%）内に 見出し→リード（説明文は SP デザインにも無し）、パンくずは帯の20px下（255）
   こんなお悩み 3882:21373（300〜）/ 解決のポイント 3882:21371（1332〜）/ サービス 3882:21372（2780〜）/ 導入事例 3739:19909（3980〜）
   お問い合わせボタン 3958:27071（4332, 238x37）/ CTA 4510 */
@media (max-width: 767px) {
	/* ヒーロー: 背景は下の 38px（パンくず 18px + 余白 20px）を除いた範囲（背景 170px） */
	.p-purpose-hero { min-height: 208px; background: var(--c-white); }
	.p-purpose-hero::before { bottom: 38px; }
	.p-purpose-hero__bg { height: calc(100% - 38px); object-position: center; }
	.p-purpose-hero .p-purpose-hero__inner { min-height: 208px; padding: 17px 21px 0; }
	.p-purpose-hero__head { order: 1; margin: 0; gap: 5px; line-height: 1; }
	.p-purpose-hero__en { font-size: 11.14px; letter-spacing: .06em; line-height: 14px; }
	.p-purpose-hero__title { font-size: 20px; letter-spacing: .02em; line-height: 1.05; }
	.p-purpose-hero__lead { order: 2; margin: 17px 0 0; font-size: 16px; line-height: 1.75; }
	/* 説明文: SP デザインにも無いので非表示（データはそのまま） */
	.p-purpose-hero__text { display: none; }
	/* リード下端 → 背景下端 40px → パンくず 20px */
	.p-purpose-hero__breadcrumb { order: 4; margin: auto 0 0; padding-top: 60px; line-height: 18px; }
	.p-purpose-hero__breadcrumb .c-breadcrumb__list { line-height: 18px; }

	/* もどる: SPデザインに無し（パンくずで代替） */
	.p-purpose-back { display: none; }

	/* セクション共通 */
	.p-purpose-single > .l-container { padding-inline: 20px; }
	.p-purpose-body { gap: 80px; padding-top: 27px; padding-bottom: 0; }
	/* お問い合わせボタン（Frame 226 3958:27071, 238x37 中央）: 導入事例の下 75px / CTA の上 141px */
	.p-purpose-contact { padding: 75px 0 80px; }
	.p-purpose-points::before { inset: -24px 0; }
	.p-purpose-works::before { inset: -24px 0 0; }
	.p-purpose-contact__btn { width: 238px; min-height: 37px; padding: 7px 13px 7px 15px; border-radius: 2.4px; font-size: 9.47px; }
	.p-purpose-sec__head { gap: 8px; margin-bottom: 22px; font-size: 16px; line-height: 1.65; }
	.p-purpose-sec__head::before { width: 3px; height: 25px; }

	/* こんなお悩み（Perpose_issue 336x304, ピッチ 304 = カード間 22px, 左端 x10 / 枠 x29.5–346） */
	.p-purpose-issues__list { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 9px 0 -10px; }
	.p-purpose-issues { margin-bottom: -8px; }
	.p-purpose-issue { padding: 22px 0 0 19.5px; }
	.p-purpose-issue__badge { top: 7px; left: 7px; width: 53px; height: 53px; }
	.p-purpose-issue__icon { width: 32px; height: 32px; }
	.p-purpose-issue__box { min-height: 282px; padding: 29px 38px 30px 48.5px; border-width: .885px; }
	.p-purpose-issue__num { font-size: 15.92px; }
	.p-purpose-issue__title { min-height: 0; margin-top: 5px; padding-bottom: 14px; font-size: 15.92px; }
	.p-purpose-issue__text { margin-top: 19px; font-size: 14.15px; }

	/* 解決のポイント（333幅・高さは内容なり 403/419/432、カード間 30px） */
	.p-purpose-points__list { grid-template-columns: minmax(0, 1fr); row-gap: 30px; max-width: none; margin-top: -2px; padding-inline: 1px; }
	.p-purpose-point { border-radius: 3.76px; box-shadow: 0 1.88px 7.5px rgba(0, 0, 0, .15); }
	.p-purpose-point__img { aspect-ratio: 333 / 248.34; }
	.p-purpose-point__num { top: 9.4px; left: 19.75px; right: 19.75px; font-size: 37.63px; }
	.p-purpose-point__num span { font-size: 16.93px; margin-bottom: -6px; }
	.p-purpose-point__body { padding: 17px 26px 22px; }
	.p-purpose-point__title { min-height: 0; font-size: 16px; line-height: 1.7; }
	.p-purpose-point__text { margin-top: 10px; font-size: 14px; line-height: 1.7; }

	/* 活用可能なサービス（blog-card_sp 333x335, ピッチ 365） */
	.p-purpose-services .p-purpose-sec__head { margin-bottom: 29px; }
	.p-purpose-cards { grid-template-columns: minmax(0, 1fr); row-gap: 30px; max-width: none; padding-inline: 1px; }

	/* 導入事例: 横スライダー（card_works_sp 210w, gap 20）。サービス最下段から見出しまで 116px */
	.p-purpose-works { margin-top: 36px; }
	.p-purpose-works .p-purpose-sec__head { margin-bottom: 38px; }
	.p-purpose-works__slider { --slider-btn-top-sp: 91px; margin-inline: -1px; }
	.p-purpose-works__slide { display: flex; flex-shrink: 0; width: 210px; }
	/* ドット・もっと見る: SP デザインに無し（下のお問い合わせボタンへ） */
	.p-purpose-works__slider .c-slider-dots,
	.p-purpose-works__more { display: none; }
	/* タイトルは1行で省略（Figma card_works_sp） */
	.p-purpose-works__slider .c-card-works__title { -webkit-line-clamp: 1; }
}
