/* ==========================================================================
   共通メインビジュアル
   - PC：840px以上
   - SP：839px以下
   - 1440pxを基準にPCのサイズをvwで拡縮
   - 左に文字、右に画像
   ========================================================================== */

   .p-first__mv {
	--mv-pc-width: 100%;
	position: relative;
	width: 100%;
	height: 41vw;
	overflow: hidden;
	background-color: var(--color-bg);
}

/* --- MV全体の内側 --- */

.p-first__mv-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding: 0 var(--header-pad-sp);
	display: flex;
	align-items: center;
}

/* --- 左側の文字エリア --- */

.p-first__mv-text {
	position: relative;
	z-index: 2;
}

/* --- 右側の画像 --- */

.p-first__mv-bg {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	width: 60.625vw;
	line-height: 0;
	pointer-events: none;
  }
  
  .p-first__mv-bg .img-slot--empty,
  .p-first__mv-bg img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 873 / 569;
	object-fit: contain;
  }

/* PC画像 */
.p-first__mv-bg--pc {
	display: block;
}

/* SP画像 */
.p-first__mv-bg--sp {
	display: none;
}


/* --- 左側のマーク＋文言 --- */

.p-first__mv-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 1.5vw;
	font-weight: 700;
	color: var(--color-primary);
}

.p-first__mv-mark {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.p-first__mv-mark .img-slot--empty,
.p-first__mv-mark img {
	display: block;
	width: 1.12em;
	height: .64em;
	object-fit: contain;
}


/* --- タイトル --- */

.p-first__mv-title {
	margin: 0;
	font-family: var(--font-mincho);
	font-size: 5vw;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: .01em;
}

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


/* ==========================================================================
   SP
   ========================================================================== */

@media (max-width: 839px) {

	.p-first__mv {
		height: 70vw;
		min-height: 0;
	}

	.p-first__mv-inner {
		max-width: none;
		padding: 20px var(--header-pad-sp) 0;
	}

	.p-first__mv-bg {
		width: 57.8667vw;
		height: auto;
	}

	.p-first__mv-bg .img-slot--empty,
	.p-first__mv-bg img {
		width: 100%;
		height: auto;
		aspect-ratio: 217 / 195;
		object-fit: cover;
	}

	.p-first__mv-bg--pc {
		display: none;
	}

	.p-first__mv-bg--sp {
		display: block;
	}

	.p-first__mv-eyebrow {
		font-size: 3.3vw;
		gap: 5px;
	}

	.p-first__mv-title {
		font-size: 7.5vw;
		line-height: 1.4;
	}
}


/* ==========================================================================
   PC（840px以上）
   ========================================================================== */

@media (min-width: 840px) {

	.p-first__mv-inner {
		padding: 0 var(--header-pad-pc);
	}

	.p-first__mv-bg--pc {
		display: block;
	}

	.p-first__mv-bg--sp {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   悩みセクション
   吹き出しを含めて1枚の画像で書き出す（PC：幅1000px／SP：画面幅の90%）
   -------------------------------------------------------------------------- */
.p-first__worry {
	position: relative;
	/* 下端は .c-wave-divider で締めるため 0 */
	padding: 40px 0 60px;
	background-color: #f7f7f7;
}

/* ウェーブはセクション下端に絶対配置し、画像の上に重ねる */
.p-first__worry .c-wave-divider {
	position: absolute;
	left: 0;
	bottom: -1px;
	margin-bottom: 0;
}

/* 見出しに寄せる（マイナス値）。画面中央、セクション下端に接する。
   画像上部には約 25/762 の透明余白があるため、見た目の距離はこれより開く。
   詰めたい場合は --worry-pull の値を大きくする。 */
.p-worry__image {
	--worry-pull: 20px;
	width: 100%;
	max-width: 1100px;
	margin: calc(var(--worry-pull) * -1) auto 0;
	line-height: 0;
	margin-top: 40px;
}

/* SP 用画像は画面幅の 90% */
.p-worry__image--sp {
	width: 90%;
}

/* 高さは画像の縦横比にまかせる */
.p-worry__image img {
	width: 100%;
	height: auto;
}

/* 画像が入るまでのプレースホルダー（実画像と同じ縦横比） */
.p-worry__image .img-slot--empty {
	width: 100%;
	height: auto;
	aspect-ratio: 1673 / 762;
}

/* PC 用・SP 用の出し分け */
.p-worry__image--pc {
	display: none;
}

.p-worry__image--sp .img-slot--empty {
	aspect-ratio: 658 / 968;
}

/* --------------------------------------------------------------------------
   安心の3つの理由（白カード）
   -------------------------------------------------------------------------- */
.p-first__reasons {
	padding: 40px 0 48px;
	background-color: var(--color-bg);
}

/* SP では体験談セクションのカードと同じ幅（画面の 81%）にそろえる */
.p-first__reasons .l-section {
	width: 81%;
	padding-inline: 0;
}

.p-reasons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	/* PC で横並びになったとき、カードの高さを揃える */
	align-items: stretch;
}

.p-reasons__item {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

/* 画像はカード上部に隙間なく収める（高さ 180px） */
.p-reasons__image {
	line-height: 0;
}

.p-reasons__image .img-slot--empty,
.p-reasons__image img {
	display: block;
	width: 100%;
	height: 180px;
	border-radius: 0;
	object-fit: cover;
}

.p-reasons__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px;
}

.p-reasons__title {
	margin: 0;
	/* 明朝体ではなく、太字のゴシック */
	font-family: var(--font-base);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	color: var(--color-text);
}

/* タイトルと本文の間の飾り線（padding の内側いっぱいまで伸ばす／上下 15px 空ける） */
.p-reasons__line {
	display: block;
	width: 100%;
	height: 1px;
	margin: 15px 0;
	background-color: var(--color-primary);
}

.p-reasons__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
	color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   流れ
   -------------------------------------------------------------------------- */
.p-first__flow {
	padding: 48px 0;
	background-color: var(--cream);
}

/* 「FLOW」の見出し */
.p-flow__label {
	font-family: var(--font-myungjo);
	font-size: 16px;
	color: var(--color-primary);
}

.p-flow {
	/* アイコン画像の大きさ。矢印の縦位置もこの値から計算する */
	--flow-icon-size: 150px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: flow;
}

.p-flow__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* --- ステップ間の矢印「▼▼」（SP は縦並び） --- */
.p-flow__step:not(:last-child)::before,
.p-flow__step:not(:last-child)::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 11px solid var(--color-primary-light);
}

/* flex の order で、擬似要素をカードの下に回す */
.p-flow__step:not(:last-child)::before {
	order: 1;
	margin-top: 16px;
}

.p-flow__step:not(:last-child)::after {
	order: 2;
	margin-top: 5px;
	border-top-color: var(--color-primary);
}

/* アイコン画像（--flow-icon-size の正方形） */
.p-flow__icon .img-slot--empty,
.p-flow__icon img {
	width: var(--flow-icon-size);
	max-width: 100%;
	height: var(--flow-icon-size);
	object-fit: contain;
}

.p-flow__title {
	margin: 15px 0 0px;
	font-family: var(--font-mincho);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-primary);
}

.p-flow__text {
	max-width: 250px;
	margin: 6px auto 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   婚活用語ミニ辞典
   -------------------------------------------------------------------------- */
.p-first__glossary {
	padding: 0 0 48px;
	background-color: var(--cream);
}

.p-glossary {
	padding: 28px 20px;
	border-radius: 12px;
	background-color: #fff;
}

/* 画像（185×194px）＋ テキスト。SP は縦並びの中央揃え、PC は横並び */
.p-glossary__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
}

.p-glossary__head-text {
	flex: 0 1 auto;
}

.p-glossary__avatar {
	flex: 0 0 auto;
	width: 120px;
	line-height: 0;
}

.p-glossary__avatar .img-slot--empty,
.p-glossary__avatar img {
	width: 100%;
	height: auto;
	aspect-ratio: 185 / 194;
	border-radius: 0;
	object-fit: contain;
}

.p-glossary__title {
	margin: 0;
	font-family: var(--font-mincho);
	/* .c-heading と同じ大きさ（SP 25px / PC 34px） */
	font-size: 25px;
	font-weight: 400;
	line-height: 1.5;
}

.p-glossary__lead {
	margin: 10px 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text-body);
}

.p-terms {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	/* SP はカードの幅を少し狭める */
	width: 90%;
	margin: 24px auto 0;
}

/* 枠線なし・背景色のみ。PC では高さが揃う（SP は内容ぶん） */
.p-terms__item {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 25px 20px;
	border: 0;
	border-radius: 8px;
	background-color: var(--cream);
}

/* アイコン（40×25px）＋ 用語＋ローマ字 */
.p-terms__term {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.p-terms__icon {
	flex: 0 0 auto;
	line-height: 0;
}

.p-terms__icon .img-slot--empty,
.p-terms__icon img {
	display: block;
	width: 40px;
	height: 25px;
	object-fit: contain;
}

.p-terms__label {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	font-size: 20px;
}

.p-terms__romaji {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .06em;
	color: var(--color-text);
}

.p-terms__desc {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--color-text-body);
}

/* 「成婚」カードから吹き出しが出ているように見せる */
.p-glossary__note {
	position: relative;
	margin: 32px 0 0;
	padding: 18px 16px;
	border: 1px solid var(--color-primary);
	border-radius: 8px;
	/* SP 14px / PC 18px */
	font-size: 14px;
	line-height: 1.8;
	text-align: left;
}

/* しっぽ（外側＝枠線の色／内側＝背景の白） */
.p-glossary__note::before,
.p-glossary__note::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	/* SP は 1カラムなので中央から出す */
	left: calc(50% - 12px);
}

.p-glossary__note::before {
	top: -14px;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 14px solid var(--color-primary);
}

.p-glossary__note::after {
	top: -12px;
	margin-left: 1px;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-bottom: 13px solid #fff;
}

.p-glossary__note p {
	margin: 0;
}

/* 注釈の本文より 2px 大きい太字（SP 16px / PC 20px） */
.p-glossary__note-strong {
	margin-top: 12px !important;
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text-body);
	line-height: 1.5;
}

.p-glossary__note-link {
	margin-top: 12px !important;
	text-align: left;
	color: var(--color-text-muted);
}

.p-glossary__note-link a {
	color: var(--color-primary);
	text-decoration: underline;
}

.p-first__glossary .p-glossary__note{
	color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   体験談
   見出しの背景（#fffaf3）の下 100px 分に、3枚のカードが重なる構成
   -------------------------------------------------------------------------- */
.p-first__stories {
	padding: 48px 0 48px;
	background-color: var(--color-bg);
}

@media (max-width: 839px) {
	.p-first__stories .c-actions{
		margin-top: 40px;
	}
}

.p-stories__hero {
	position: relative;
}

/* 見出しの背景。PC は最大 1360px（画面が小さいときは左右 40px 空け）、SP は画面の 90% */
.p-stories__banner {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 90%;
	margin-inline: auto;
	overflow: hidden;
	background-color: #fffaf3;
}

/* 背景に入る画像。SP は上辺いっぱい、PC は右側（PC 指定は下のメディアクエリ） */
.p-stories__banner-image {
	position: absolute;
	line-height: 0;
}

.p-stories__banner-image--pc {
	display: none;
}

/* SP：背景の上辺に接して、幅いっぱいに配置する */
.p-stories__banner-image--sp {
	top: 0;
	left: 0;
	width: 100%;
}

.p-stories__banner-image--sp .img-slot--empty,
.p-stories__banner-image--sp img {
	width: 100%;
	height: auto;
	aspect-ratio: 676 / 236;
	object-fit: cover;
}

/* 背景の上 40px（PC は 60px）／下 100px（PC は 160px）。
   SP は上辺の画像（背景幅の約 34.9%＝親要素の約 31.4%）の下から文字を始める。 */
.p-stories__head {
	position: relative;
	z-index: 1;
	padding-top: calc(31.4% + 24px);
	padding-bottom: 100px;
	text-align: center;
}

/* カードを背景に重ねる */
.p-stories__body-area {
	position: relative;
	z-index: 1;
	margin-top: -60px;
}

/* SP は、タイトル背景（画面の 90%）に対してさらに 90% の幅に収める */
.p-stories__head,
.p-stories__body-area {
	width: 81%;
	padding-inline: 0;
}

.p-stories {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

/* 「結婚物語。なら」セクションと同じカード */
.p-stories__item {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.p-stories__image {
	line-height: 0;
}

.p-stories__image .img-slot--empty,
.p-stories__image img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.p-stories__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px;
}

/*
 * タイトルは左寄せの明朝体（飾り線なし）。
 * 文字の大きさは style.css の --card-title-size / --card-text-size で
 * 「結婚物語。をもっと知る」のカードと揃えている。
 */
.p-stories__title {
	margin: 0;
	font-family: var(--font-mincho);
	font-size: var(--card-title-size);
	font-weight: 400;
	line-height: 1.6;
	text-align: left;
	color: var(--color-text);
}

.p-stories__text {
	margin: 12px 0 0;
	font-size: var(--card-text-size);
	line-height: 1.9;
	text-align: left;
	color: var(--color-text-body);
}

/* 「ストーリーを読む」。文字だけのリンクで右寄せ、カード下端に揃える */
.p-stories__more {
	margin: auto 0 0;
	padding-top: 20px;
	text-align: right;
	font-size: var(--card-link-size);
}

.p-stories__more a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-primary);
	transition: color .2s linear;
}

.p-stories__more a::after {
	content: "";
	width: 5px;
	height: 5px;
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.p-stories__more a:hover {
	color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   Q&A（details/summary によるアコーディオン。JavaScript は不要）
   -------------------------------------------------------------------------- */
.p-first__qa {
	padding: 48px 0;
	background-color: #f7f7f7;
}

.p-qa__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.p-qa__icon .img-slot--empty,
.p-qa__icon img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.p-qa {
	margin-top: 24px;
	border-top: 1px solid var(--color-border);
}

.p-qa__item {
	border-bottom: 1px solid var(--color-border);
}

.p-qa__q {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 32px 16px 0;
	position: relative;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}

/* 既定の三角マーカーを消す */
.p-qa__q::-webkit-details-marker {
	display: none;
}

.p-qa__q:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/* Q・A のマーク（画像。差し替えるまではグレーの四角） */
.p-qa__mark {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.p-qa__mark .img-slot--empty,
.p-qa__mark img {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: contain;
}

/* 開閉の矢印 */
.p-qa__q::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--color-text);
	border-bottom: 1.5px solid var(--color-text);
	transform: translateY(-75%) rotate(45deg);
	transition: transform var(--transition-base);
}

.p-qa__item[open] .p-qa__q::after {
	transform: translateY(-25%) rotate(-135deg);
}

/* 開閉アニメーション。
   ::details-content に対応したブラウザでは高さがなめらかに変化し、
   未対応のブラウザでは従来どおり瞬時に開く（表示崩れは起きない）。 */
.p-qa__item::details-content {
	block-size: 0;
	overflow: hidden;
	opacity: 0;
	transition:
		block-size var(--transition-base),
		opacity var(--transition-base),
		content-visibility var(--transition-base) allow-discrete;
}

.p-qa__item[open]::details-content {
	block-size: auto;
	opacity: 1;
}

/* 質問側（.p-qa__q）と同じ gap・左余白にして、
   マークの位置と文字の開始位置を縦に揃える */
.p-qa__a {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0 0 18px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--color-text-body);
}

.p-qa__a-text {
	flex: 1 1 auto;
}

.p-qa__a p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.p-first__cta {
	/* 画像が読み込めないときのために、下地にオレンジを残しておく */
	background-color: var(--color-primary);
	background-image: url(../assets/img/first-time/cta-bg.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.p-cta {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: var(--content-max);
	margin-inline: auto;
	padding: 36px var(--header-pad-sp);
}

.p-cta__title {
	margin: 0;
	color: #fff;
	font-family: var(--font-mincho);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5;
	font-weight: bold;
}
@media (max-width: 839px) {
	.p-cta__title {
		text-align: center;
	}

	/* 見出しの下の一文も見出しと同じく中央に（会社概要ページの指定と揃える） */
	.p-cta__lead {
		text-align: center;
	}
}

/* 見出しの下の一文（お知らせ一覧などで使う） */
.p-cta__lead {
	margin: 12px 0 0;
	color: #fff;
	font-size: 13px;
	line-height: 1.8;
}

.p-cta__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

/*
 * 角丸 10px・白い枠・濃いドロップシャドウ。
 * CTA セクションのボタンは、段や本数にかかわらず
 * すべて同じ文字サイズ（SP 16px / PC 18px）にそろえている。
 */
.p-cta__buttons .c-button {
	width: 100%;
	border: 1px solid #fff;
	border-radius: 5px;
	font-size: 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
	padding: 20px 0;
	font-weight: 500;
}

/*
 * ボタンが3つのとき（成婚実績ページ）。
 * 1つ目は横いっぱい、残り2つを左右に並べる。
 */
.p-cta__buttons--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.p-cta__buttons--split li:first-child {
	grid-column: 1 / -1;
}

.p-cta__buttons--split .c-button {
	/* 2段目は文字数が少ないので、左右の余白だけ詰める（文字サイズは同じ） */
	padding-inline: 12px;
}

/* SP では画像を表示しない */
.p-cta__image {
	display: none;
}

.p-cta__image .img-slot--empty,
.p-cta__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 14 / 9;
	border-radius: 8px;
	object-fit: contain;
}

/* --------------------------------------------------------------------------
   アニメーションを減らす設定への配慮
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.p-qa__q::after,
	.c-button::after {
		transition: none !important;
	}
}

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

	/* --- メインビジュアル --- */
	.p-first__mv {
		--mv-scale: 1;
		padding-bottom: 60px;
	}

	.p-first__mv-inner {
		padding: 48px var(--header-pad-pc) 0;
	}

	.p-first__mv-bg {
		width: min(880px, 71%);
	}

	.p-first__mv-bg--pc {
		display: block;
	}

	.p-first__mv-bg--sp {
		display: none;
	}

	.p-first__mv-bg--pc .img-slot--empty,
	.p-first__mv-bg--pc img {
		aspect-ratio: 880 / 569;
	}

	.p-first__mv-title {
		line-height: 1.4;
	}

	/* --- 悩みセクション --- */
	.p-first__worry {
		padding: 72px 0 0;
	}

	/* 幅・余白は SP と共通（--worry-pull で見出しへの寄せ量を調整する） */

	/* PC 用画像に切り替える */
	.p-worry__image--pc {
		display: block;
	}

	.p-worry__image--sp {
		display: none;
	}

	/* --- 安心の3つの理由 --- */
	.p-first__reasons {
		padding: 72px 0 88px;
	}

	/* SP で絞った幅を通常のコンテナに戻す */
	.p-first__reasons .l-section {
		width: 100%;
		padding-inline: var(--header-pad-pc);
	}

	.p-reasons {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
		margin-top: 48px;
	}

	.p-reasons__title {
		font-size: 17px;
	}

	/* --- 流れ --- */
	.p-first__flow {
		padding: 80px 0;
	}

	.p-flow {
		grid-template-columns: repeat(4, 1fr);
		/* 矢印をカードの間に置くため、余白を広めに取る */
		gap: 48px;
		margin-top: 48px;
	}

	/* PC では矢印「▶▶」を横向きにして、カード間へ配置する */
	.p-flow__step:not(:last-child)::before,
	.p-flow__step:not(:last-child)::after {
		position: absolute;
		top: calc(var(--flow-icon-size) / 2);   /* アイコンの中央 */
		margin: 0;
		transform: translateY(-50%);
		border-top: 9px solid transparent;
		border-bottom: 9px solid transparent;
		border-left: 12px solid var(--color-primary-light);
		border-right: 0;
	}

	/* right の値が小さいほど左側に来る。左＝薄いオレンジ、右＝オレンジ */
	.p-flow__step:not(:last-child)::before {
		right: -18px;
	}

	.p-flow__step:not(:last-child)::after {
		right: -34px;
		border-left-color: var(--color-primary);
	}

	.p-flow__label {
		font-size: 16px;
	}

	.p-flow__title {
		font-size: 17px;
		margin: 12px 0 10px;
	}

	/* カード本文・フロー説明・用語説明・リード文は PC / SP とも 16px のため、
	   ここでは打ち消さない（SP の指定がそのまま使われる）。 */

	/* --- 婚活用語ミニ辞典 --- */
	.p-first__glossary {
		padding-bottom: 88px;
	}

	.p-glossary {
		padding: 44px 48px;
	}

	/* PC は画像とテキストを横並びに戻す */
	.p-glossary__head {
		flex-direction: row;
		gap: 28px;
		text-align: left;
	}

	.p-terms {
		width: 100%;
	}

	.p-glossary__avatar {
		width: 185px;
	}

	.p-glossary__title {
		font-size: 23px;
	}


	.p-terms {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
		margin-top: 32px;
	}

	/* 枠は少し狭めて中央に置く */
	.p-glossary__note {
		width: 86%;
		margin: 40px auto 0;
		padding: 24px 32px;
		font-size: 16px;
	}

	/* 4カラムの一番右（成婚）の真下から吹き出しを出す。
	   枠を 86% に絞ったため、位置を計算し直している
	   （全体幅の 87.5% ＝ 枠の左端から 93.6%）。 */
	.p-glossary__note::before,
	.p-glossary__note::after {
		left: calc(93.6% - 12px);
	}

	.p-glossary__note-strong {
		font-size: 17px;
	}

	/* --- 体験談 --- */
	.p-first__stories {
		padding: 80px 0;
	}

	/* 1440px で 1360px。それ以下は左右 40px を空ける */
	.p-stories__banner {
		width: min(1360px, 100% - 80px);
	}

	.p-stories__head,
	.p-stories__body-area {
		width: 100%;
		padding-inline: var(--header-pad-pc);
	}

	.p-stories__head {
		padding-top: 60px;
		padding-bottom: 160px;
		text-align: left;
	}

	@media (min-width: 840px) {

		.p-stories__banner {
			/* ここは既存のまま */
		}
	
		.p-stories__banner > .img-slot,
		.p-stories__banner > img {
			position: absolute;
			top: 0;
			right: 0;
			width: auto;
			height: 100%;
			max-width: none;
		}
	
	}
	@media (max-width: 839px) {
		.p-stories__banner > .img-slot,
		.p-stories__banner > img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: auto;
			max-width: none;
		}
	}

	.p-stories__banner-image--sp {
		display: none;
	}

	/* 背景の下 100px 分にカードを重ねる */
	.p-stories__body-area {
		margin-top: -100px;
	}

	.p-stories {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
	}

	/* --- Q&A --- */
	.p-first__qa {
		padding: 80px 0;
	}

	.p-qa {
		margin-top: 36px;
	}

	.p-qa__q {
		padding: 22px 40px 22px 0;
		font-size: 16px;
	}

	.p-qa__a {
		gap: 12px;
		padding: 0 0 24px;
		font-size: 16px;
	}

	/* --- CTA --- */
	.p-cta {
		flex-direction: row;
		align-items: center;
		/* ボタン側と画像の間隔 */
		gap: 0px;
		padding: 56px var(--header-pad-pc);
	}

	/* ボタンの幅 500px にあわせてテキスト側の幅を固定する */
	.p-cta__text {
		flex: 0 0 550px;
		max-width: 550px;
	}

	/* 500px 幅に対して、1行 11文字程度でちょうど収まる大きさ。
	   文言が長いページでは 36〜40px に落とす */
	.p-cta__title {
		font-size: 35px;
	}

	/* PC は見出し・ボタンと同じく左揃え（会社概要ページの指定と揃える） */
	.p-cta__lead {
		margin-top: 16px;
		font-size: 14px;
		text-align: left;
	}

	.p-cta__buttons {
		margin-top: 32px;
	}

	.p-cta__buttons .c-button {
		font-size: 18px;
	}

	.p-cta__image {
		display: block;
		flex: 1 1 auto;
	}
}
.p-first__stories .c-heading {
    font-size: 36px;
	margin-top: 20px;
}
.p-first__stories .c-lead{
	font-size: 16px;
}
@media (max-width: 839px) {
	.p-first__stories .c-heading {
		font-size: 24px;
		margin-top: 0px;
	}
	.p-first__stories .c-lead{
		font-size: 14px;
	}

	.p-stories__head {
		padding-top: calc(28.4% + 24px);
		padding-bottom: 90px;
	}
}



/* 成婚ストーリー背景画像：SP / PC 切り替え */
.p-stories__banner-image--pc {
    display: none;
}

.p-stories__banner-image--sp {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.p-stories__banner-image--sp img {
    display: block;
    width: 100%;
    height: auto;
}


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

    .p-stories__banner-image--sp {
        display: none;
    }

    .p-stories__banner-image--pc {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        height: 100%;
        line-height: 0;
    }

    .p-stories__banner-image--pc img {
        display: block;
        width: auto;
        height: 100%;
        object-fit: contain;
    }
}