/* トップの FV（本番サイトで使われていた宗芯専用の CSS を引き継ぎ） */
.soshin-fv {
	position: relative;
	overflow: hidden;
	height: auto !important;
	min-height: 0;
	background: #fff;
}

.soshin-fv:before {
	display: none !important;
}

.soshin-fv-bg {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
}


/* -------------------------
   左側コピー
------------------------- */
.soshin-fv-copy {
	position: absolute;
	top: 19%;
	left: 13%;
	width: 40%;
	z-index: 5;
	color: #222;
	padding: 12px 18px 18px;
}

.soshin-fv-copy::before {
	content: "";
	position: absolute;
	top: -10px;
	right: -10px;
	bottom: -10px;
	left: -10px;
	background: rgba(255,255,255,.32);
	filter: blur(18px);
	border-radius: 24px;
	z-index: -1;
}

.soshin-fv-label {
	display: inline-block;
	margin: 0 0 12px;
	padding: 7px 14px;
	border-radius: 20px;
	background: rgba(255,255,255,.92);
	color: #3f8b2c;
	font-size: 15px;
	font-weight: 700;
}

.soshin-fv-title {
	margin: 0;
	font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
	             "Hiragino Mincho Pro", "Noto Serif JP", serif;
	font-size: clamp(36px, 3.4vw, 58px);
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: .04em;
	color: #222;
	text-shadow: 0 1px 1px rgba(255,255,255,.6);
}

.soshin-fv-title span {
	color: #459a2d;
}

.soshin-fv-description {
	margin: 22px 0 0;
	font-size: clamp(14px, 1.1vw, 18px);
	line-height: 1.9;
	font-weight: 500;
	color: #333;
}

.soshin-fv-cta {
	position: static;
	width: 300px;
	max-width: 100%;
	margin-top: 22px;
	text-align: center;
}

.soshin-fv-cta-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 7px 42px 7px 24px;

	border: none;
	border-radius: 999px;

	background: linear-gradient(135deg, #ff9b45, #ff7434);
	box-shadow: 0 6px 18px rgba(230,110,40,.22);

	color: #fff;
	text-decoration: none;
	transition: .25s ease;
}


.soshin-fv-cta-button::after {
	content: "›";
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);

	display: flex;
	align-items: center;
	justify-content: center;

	width: 31px;
	height: 31px;
	border-radius: 50%;

	background: rgba(255,255,255,.96);
	color: #ff7434;

	font-size: 21px;
	font-family: Arial, sans-serif;
	font-weight: 700;
	line-height: 1;
}

.soshin-fv-cta-main {
	display: block;
	font-size: 18px;
	font-weight: 400;
	white-space: nowrap;
	letter-spacing: .03em;
}

.soshin-fv-cta-sub {
	display: none;
}

.soshin-fv-cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 9px 22px rgba(210,105,45,.28);
}
/* -------------------------
   既存CONTACT画像
------------------------- */

.soshin-fv .p-main-banner-banner {
	z-index: 7;
}

.soshin-fv-title-sp {
	display: none;
}
/* -------------------------
   スマホ
------------------------- */

@media screen and (max-width: 767px) {

	/* <picture> に置き換えていないとき（エディターで画像を替えた場合など）だけ、スマホ用の画像に差し替える */
	.soshin-fv-bg:not(:has(picture)) {
		content: url("/wp-content/uploads/FVSP.png");
		width: 100%;
		height: auto;
	}

	.soshin-fv-copy {
	position: absolute;
	top: 17.5%;
	left: 4%;
	width: 60%;
	padding: 8px 10px 12px;
	z-index: 5;
	color: #222;
}

	.soshin-fv-copy::before {
		content: "";
		position: absolute;
		inset: -5px -7px;
		background: rgba(255,255,255,.30);
		filter: blur(8px);
		border-radius: 12px;
		z-index: -1;
	}

	.soshin-fv-label {
	display: inline-block;
	width: 175px;
	max-width: 175px;
	box-sizing: border-box;
	margin: 0 0 8px;
	padding: 4px 7px;
	border-radius: 14px;
	background: rgba(255,255,255,.9);
	color: #3f8b2c;
	font-size: 8px;
	line-height: 1.35;
	font-weight: 700;
}

	/* PC用タイトルを非表示 */
	.soshin-fv-title-pc {
		display: none;
	}

	/* スマホ用タイトルを表示 */
	.soshin-fv-title-sp {
		display: block;
		margin: 0;
		font-size: 26px;
		line-height: 1.45;
		letter-spacing: .01em;
	}

	.soshin-fv-description {
	margin-top: 12px;
	width: 100%;
	font-size: 11px;
	line-height: 1.7;
}

.soshin-fv-cta {
	width: 195px;
	max-width: 195px;
	margin-top: 9px;
}

.soshin-fv-cta-button {
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	padding: 3px 30px;
}


.soshin-fv-cta-button::after {
	right: 5px;
	width: 24px;
	height: 24px;
	font-size: 15px;
}

.soshin-fv-cta-main {
	font-size: 11px;
	letter-spacing: 0;
}

.soshin-fv-cta-sub {
	display: none;
}
	
}
		/* -------------------------
   FV 表示アニメーション
------------------------- */

@keyframes soshinFadeDown {
	0% {
		opacity: 0;
		transform: translateY(-45px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ① 上の地域ラベル */
.soshin-fv-label {
	animation: soshinFadeDown .7s ease-out .1s both;
}

/* ② メインキャッチコピー */
.soshin-fv-title {
	animation: soshinFadeDown .9s cubic-bezier(.22, 1, .36, 1) .25s both;
}

/* ③ 説明文 */
.soshin-fv-description {
	animation: soshinFadeDown .8s ease-out .5s both;
}

/* ④ CTA */
.soshin-fv-cta {
	animation: soshinFadeDown .8s ease-out .7s both;
}

/* FV 画像（<picture>：画面幅に合わせて PC 用／スマホ用のどちらか 1 枚だけ読み込む） */
.soshin-fv-bg picture, .soshin-fv-bg picture img { display: block; width: 100%; height: auto; }
/* -------------------------
   画面幅に比例して拡大縮小（どの幅でも同じ構図）
   ・768px 以上：横長の画像。1280px の画面での見た目を基準に vw で指定
   ・767px 以下：縦長の画像。375px の画面での見た目を基準に vw で指定
   ・文字は小さくなりすぎないよう下限あり。ヘッダーに隠れないよう上の位置も下限あり
------------------------- */
@media screen and (min-width: 768px) {
	.soshin-fv-copy {
		top: max(15%, calc(var(--s-header) + 10px));
		left: 11%;
		width: 43%;
		padding: .78vw 1.17vw 1.09vw;
	}
	.soshin-fv-copy::before { inset: -10px; filter: blur(18px); border-radius: 24px; }
	.soshin-fv-label {
		margin: 0 0 max(5px, .63vw);
		padding: max(3px, .39vw) max(8px, .78vw);
		border-radius: 20px;
		font-size: max(9px, .86vw);
	}
	.soshin-fv-title {
		font-size: 3.2vw;
		line-height: 1.35;
	}
	.soshin-fv-description {
		margin-top: max(8px, 1.09vw);
		font-size: max(10.5px, 1.02vw);
		line-height: 1.65;
	}
	.soshin-fv-cta {
		width: max(190px, 21.9vw);
		margin-top: max(8px, 1.09vw);
	}
	.soshin-fv-cta-button {
		min-height: max(34px, 3.44vw);
		padding: .39vw max(34px, 3.44vw);
	}
	.soshin-fv-cta-button::after {
		right: max(5px, .55vw);
		width: max(24px, 2.34vw);
		height: max(24px, 2.34vw);
		font-size: max(15px, 1.56vw);
	}
	.soshin-fv-cta-main { font-size: max(11px, .94vw); }
}
@media screen and (max-width: 767px) {
	.soshin-fv-copy { top: 17.5%; left: 4%; width: 60%; padding: 2.13vw 2.67vw 3.2vw; }
	.soshin-fv-label {
		width: 46.7vw;
		max-width: none;
		margin: 0 0 2.13vw;
		padding: 1.07vw 1.87vw;
		border-radius: 3.73vw;
		font-size: max(7px, 2.13vw);
	}
	.soshin-fv-title-sp { font-size: 6.93vw; }
	.soshin-fv-description { margin-top: 3.2vw; font-size: max(10px, 2.93vw); }
	.soshin-fv-cta { width: 52vw; max-width: none; margin-top: 2.4vw; }
	.soshin-fv-cta-button { min-height: 9.6vw; padding: .8vw 8vw; }
	.soshin-fv-cta-button::after { right: 1.33vw; width: 6.4vw; height: 6.4vw; font-size: 4vw; }
	.soshin-fv-cta-main { font-size: max(10px, 2.93vw); }
}

/* -------------------------
   ラベル・説明文・ボタンの間隔
   （3 つとも段落なので、トップ全体の「段落の余白 0」に負けないよう .soshin-fv を付ける）
------------------------- */
@media screen and (min-width: 768px) {
	.soshin-fv .soshin-fv-label { margin: 0 0 .63vw; }
	.soshin-fv .soshin-fv-description { margin: 1.09vw 0 0; }
	.soshin-fv .soshin-fv-cta { margin: 1.8vw 0 0; }
}
@media screen and (max-width: 767px) {
	.soshin-fv .soshin-fv-label { margin: 0 0 2.13vw; }
	.soshin-fv .soshin-fv-description { margin: 3.2vw 0 0; }
	.soshin-fv .soshin-fv-cta { margin: 5.3vw 0 0; }
}
/* 小さめの横長（768〜1199px）：タイトルが 3 行にならないよう段を少し広く */
@media screen and (min-width: 768px) and (max-width: 1199px) {
	.soshin-fv-copy { width: 47%; }
}
/* 768〜1099px：ヘッダーに隠れる分で縦の余裕がないため、小さな地域ラベルは出さない（下のメダルに重ならないように） */
@media screen and (min-width: 768px) and (max-width: 1099px) {
	.soshin-fv .soshin-fv-label { display: none; }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
	.soshin-fv-copy { top: max(15%, calc(var(--s-header) + 2px)); }
	.soshin-fv .soshin-fv-title { line-height: 1.25; }
}
