/* =====================================================================
   ファーストビュー（A案・B案 共通）
   - 動きは CSS を主体にし、JS が無くても最終状態は必ず表示される
   - prefers-reduced-motion では一切動かさない
   ===================================================================== */
.bmkfv {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #FBFAF6;
	isolation: isolate;
}
.bmkfv-wrap {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(56px, 7vw, 104px) clamp(20px, 3vw, 40px);
}
.bmkfv-inner { max-width: 720px; }

.bmkfv-eyebrow {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: #3C5A22;
	margin: 0 0 26px;
}
.bmkfv-h1 {
	font-family: 'Noto Serif JP', serif;
	font-weight: 700;
	font-size: clamp(32px, 4.4vw, 60px);
	line-height: 1.42;
	letter-spacing: .04em;
	color: #3C5A22;
	margin: 0 0 30px;
	/* 「解剖／学」のように語の途中で折れないようにする */
	word-break: keep-all;
	overflow-wrap: normal;
	line-break: strict;
}
.bmkfv-h1 span { display: block; }
@media (min-width: 901px) {
	/* 「解剖学」と「から、」の間で折れないよう、1行を1かたまりとして扱う */
	.bmkfv-h1 span { white-space: nowrap; }
}
.bmkfv-lead {
	font-size: 17px;
	line-height: 1.95;
	color: #1F2A18;
	margin: 0 0 38px;
	max-width: 30em;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.bmkfv-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.bmkfv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 30px;
	border: 1px solid #3C5A22;
	color: #3C5A22;
	background: transparent;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .08em;
	border-radius: 3px;
	transition: background .25s, color .25s;
}
.bmkfv a.bmkfv-btn { color: #3C5A22; }
.bmkfv a.bmkfv-btn--fill { background: #3C5A22; color: #FBFAF6; }
.bmkfv a.bmkfv-btn:hover { background: #538B36; border-color: #538B36; color: #FBFAF6; }

/* ---- 文字の立ち上がり（読み込み直後に一度だけ） ---- */
@keyframes bmkfv-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
.bmkfv [data-r] { animation: bmkfv-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.bmkfv [data-r="1"] { animation-delay: .10s; }
.bmkfv [data-r="2"] { animation-delay: .26s; }
.bmkfv [data-r="3"] { animation-delay: .46s; }
.bmkfv [data-r="4"] { animation-delay: .64s; }

/* ---- スクロール誘導 ---- */
.bmkfv-scroll {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Cormorant Garamond', serif;
	font-size: 12px;
	letter-spacing: .28em;
	color: #3C5A22;
	opacity: .8;
}
.bmkfv-scroll span {
	display: block;
	width: 52px;
	height: 1px;
	background: #3C5A22;
	transform-origin: left center;
	animation: bmkfv-sweep 2.6s ease-in-out infinite;
}
@keyframes bmkfv-sweep {
	0%   { transform: scaleX(.2); opacity: .3; }
	45%  { transform: scaleX(1);  opacity: .9; }
	100% { transform: scaleX(.2); opacity: .3; }
}

/* =====================================================================
   A案：実写のクローズアップに、線が引かれる
   ===================================================================== */
.bmkfv--a .bmkfv-stage { position: absolute; inset: 0; z-index: 1; }
.bmkfv-cut {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.bmkfv-cut.is-on { opacity: 1; }
.bmkfv-cut picture {
	position: absolute;
	inset: 0;
	display: block;
}
/* 親テーマの body.home img { height: auto }（0,1,2）に勝たせる必要がある */
.bmkfv .bmkfv-cut img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transform: scale(1.03);
	transition: transform 9s linear;
}
.bmkfv .bmkfv-cut.is-on img { transform: scale(1.08); }

/* 線 */
.bmkfv-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bmkfv-lines .ln {
	fill: none;
	stroke: #538B36;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-dasharray: 2600;
	stroke-dashoffset: 2600;
	opacity: .92;
	filter: drop-shadow(0 0 6px rgba(251,250,246,.55));
}
.bmkfv-lines .vt rect {
	fill: rgba(251,250,246,.25);
	stroke: #3C5A22;
	stroke-width: 2;
	opacity: 0;
}
.bmkfv-lines .dot { fill: #BF993D; opacity: 0; }
.bmkfv-lines .ring {
	fill: none;
	stroke: #BF993D;
	stroke-width: 1.6;
	stroke-dasharray: 6 8;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}
@keyframes bmkfv-draw { to { stroke-dashoffset: 0; } }
@keyframes bmkfv-pop  { from { opacity: 0; transform: translateY(4px); } to { opacity: .95; transform: none; } }
@keyframes bmkfv-ring { from { opacity: 0; transform: scale(.82) rotate(0deg); } to { opacity: .8; transform: scale(1) rotate(180deg); } }

.bmkfv-cut.is-on .ln-1 { animation: bmkfv-draw 2.0s cubic-bezier(.3,.7,.3,1) .35s both; }
.bmkfv-cut.is-on .ln-2 { animation: bmkfv-draw 2.2s cubic-bezier(.3,.7,.3,1) .70s both; }
.bmkfv-cut.is-on .ln-3 { animation: bmkfv-draw 2.2s cubic-bezier(.3,.7,.3,1) .95s both; }
.bmkfv-cut.is-on .vt rect { animation: bmkfv-pop .5s ease both; }
.bmkfv-cut.is-on .vt rect:nth-child(1) { animation-delay: 1.05s; }
.bmkfv-cut.is-on .vt rect:nth-child(2) { animation-delay: 1.17s; }
.bmkfv-cut.is-on .vt rect:nth-child(3) { animation-delay: 1.29s; }
.bmkfv-cut.is-on .vt rect:nth-child(4) { animation-delay: 1.41s; }
.bmkfv-cut.is-on .vt rect:nth-child(5) { animation-delay: 1.53s; }
.bmkfv-cut.is-on .vt rect:nth-child(6) { animation-delay: 1.65s; }
.bmkfv-cut.is-on .vt rect:nth-child(7) { animation-delay: 1.77s; }
.bmkfv-cut.is-on .dot  { animation: bmkfv-pop .6s ease 1.9s both; }
.bmkfv-cut.is-on .ring { animation: bmkfv-ring 1.4s cubic-bezier(.2,.7,.2,1) 1.0s both; }

/* 写真の上に置く、左から効かせるオフホワイトの膜 */
.bmkfv-veil {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(90deg,
			rgba(251,250,246,.97) 0%,
			rgba(251,250,246,.93) 30%,
			rgba(251,250,246,.62) 52%,
			rgba(251,250,246,.10) 78%,
			rgba(251,250,246,0) 100%),
		linear-gradient(0deg, rgba(251,250,246,.35) 0%, rgba(251,250,246,0) 40%);
}

/* カットの説明（右下・小さく） */
.bmkfv-cap {
	position: absolute;
	right: clamp(16px, 3vw, 34px);
	bottom: clamp(52px, 6vw, 68px);
	z-index: 3;
	margin: 0;
	text-align: right;
	font-size: 12px;
	line-height: 1.7;
	color: #1F2A18;
	text-shadow: 0 1px 10px rgba(251,250,246,.9);
	opacity: 0;
	transition: opacity .8s ease .6s;
}
.bmkfv-cut.is-on .bmkfv-cap { opacity: .92; }
.bmkfv-cap b {
	display: block;
	font-family: 'Noto Serif JP', serif;
	font-size: 14px;
	font-weight: 600;
	color: #3C5A22;
	letter-spacing: .06em;
}

/* 切り替えのドット */
.bmkfv-nav {
	position: absolute;
	right: clamp(16px, 3vw, 34px);
	bottom: clamp(22px, 3vw, 30px);
	z-index: 4;
	display: flex;
	gap: 10px;
}
.bmkfv-nav button {
	width: 26px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(60,90,34,.28);
	cursor: pointer;
	transition: background .3s;
}
.bmkfv-nav button.is-on { background: #3C5A22; }

/* =====================================================================
   B案：抽象背景の上に、代表が立つ
   ===================================================================== */
.bmkfv--b { background: #FBFAF6; }
.bmkfv--b .bmkfv-bg { position: absolute; inset: 0; z-index: 1; }
.bmkfv--b .bmkfv-bg picture { position: absolute; inset: 0; display: block; }
.bmkfv--b .bmkfv-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% center;
	display: block;
	opacity: .88;
	animation: bmkfv-drift 26s ease-in-out infinite alternate;
}
@keyframes bmkfv-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.10) translate3d(-1.6%, -1.2%, 0); }
}
.bmkfv-arc { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.bmkfv-arc .ln {
	fill: none;
	stroke: #7BBE35;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-dasharray: 2600;
	stroke-dashoffset: 2600;
	opacity: .55;
	animation: bmkfv-draw 2.6s cubic-bezier(.3,.7,.3,1) .5s both;
}
.bmkfv-arc .ln-2 { animation-delay: .85s; opacity: .3; }
.bmkfv-arc .dot { fill: #BF993D; opacity: 0; animation: bmkfv-pop .7s ease 2.4s both; }

.bmkfv-wrap--split {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.bmkfv-portrait {
	position: relative;
	margin: 0;
	justify-self: end;
	width: min(100%, 470px);
	isolation: isolate;
}
.bmkfv-portrait::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -8% -6% 0;
	background: linear-gradient(180deg,
		rgba(251,250,246,0) 0%,
		rgba(251,250,246,.55) 34%,
		rgba(251,250,246,.85) 72%,
		rgba(251,250,246,.95) 100%);
}
.bmkfv-portrait img {
	display: block;
	width: 100%;
	height: auto;
	/* 写真の四角い縁を出さず、光の中に立っているように見せる */
	-webkit-mask-image: radial-gradient(82% 70% at 50% 42%,
		#000 46%, rgba(0,0,0,.75) 66%, rgba(0,0,0,.25) 84%, transparent 100%);
	mask-image: radial-gradient(82% 70% at 50% 42%,
		#000 46%, rgba(0,0,0,.75) 66%, rgba(0,0,0,.25) 84%, transparent 100%);
}

/* =====================================================================
   モバイル
   ===================================================================== */
@media (max-width: 900px) {
	.bmkfv { min-height: 92vh; }
	.bmkfv-wrap--split { grid-template-columns: 1fr; gap: 20px; }
	.bmkfv-portrait { justify-self: center; width: min(78%, 340px); order: 2; }
	.bmkfv--b .bmkfv-inner { order: 1; }
}
@media (max-width: 760px) {
	.bmkfv-veil {
		background:
			linear-gradient(180deg,
				rgba(251,250,246,.985) 0%,
				rgba(251,250,246,.97) 46%,
				rgba(251,250,246,.86) 60%,
				rgba(251,250,246,.20) 84%,
				rgba(251,250,246,.06) 100%);
	}
	.bmkfv--a .bmkfv-wrap { padding-top: clamp(40px, 9vw, 72px); align-self: start; }
	.bmkfv-cap { display: none; }
	.bmkfv-lead { font-size: 16px; }
}

/* =====================================================================
   キャッチの切り替え（2026-09-25）
   呼びかけ → 見出し → サブ の3段。見出しとサブは ?c=1〜3 で変わる。
   ===================================================================== */
.bmkfv-to {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin: 0 0 26px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: .1em;
	color: #3C5A22;
}
.bmkfv-to-sep {
	display: block;
	width: 32px;
	height: 1px;
	background: #BF993D;
}
.bmkfv-sub {
	margin: 0 0 38px;
	font-family: 'Noto Serif JP', serif;
	font-weight: 600;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.8;
	letter-spacing: .08em;
	color: #1F2A18;
}
/* 「技術を磨く。」のように、ひとまとまりの途中では折らない */
.bmkfv-sub span { display: inline-block; margin-right: .7em; }
.bmkfv-sub span:last-child { margin-right: 0; }

/* B案は右に人物が立つぶん、文字の幅が狭い（1440px で 596px）。
   いちばん長い行（10文字）でも人物に届かない大きさに抑える。 */
.bmkfv--b .bmkfv-h1 { font-size: clamp(32px, 3.6vw, 52px); }

@media (max-width: 760px) {
	.bmkfv-to {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		margin-bottom: 20px;
		font-size: 14px;
		letter-spacing: .06em;
	}
	.bmkfv-to-sep { display: none; }
	.bmkfv-sub { font-size: 17px; margin-bottom: 30px; }
}

/* =====================================================================
   動きを減らす設定のとき
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.bmkfv *, .bmkfv *::before, .bmkfv *::after {
		animation: none !important;
		transition: none !important;
	}
	.bmkfv [data-r] { opacity: 1; transform: none; }
	.bmkfv-lines .ln, .bmkfv-arc .ln { stroke-dashoffset: 0; }
	.bmkfv-lines .vt rect, .bmkfv-lines .dot, .bmkfv-lines .ring, .bmkfv-arc .dot { opacity: .9; }
	.bmkfv-cut.is-on .bmkfv-cap { opacity: .92; }
	.bmkfv .bmkfv-cut img { transform: none; }
}
