/* ファーストビュー「THE BIG FAVOLA」
 * 位置はすべてロゴの枠（.fv__visual。ロゴ SVG の viewBox 1075×427 と同じ比率）に対する % で決める。
 * フォーク写真は「パスタの塊（写真の縦 22〜64%・横 9〜88%）」が O（ロゴの横 53〜73%・縦 2〜70%）の中に収まる大きさ・位置。
 */

.fv {
	/* ロゴの横幅：画面幅の 92% か、縦に「ヘッダー・罫・ロゴ・下の行」が収まる大きさの小さい方 */
	--lw: min(92vw, calc((100svh - 310px) / .3972), 1480px);
	position: relative;
	z-index: 1;
	color: var(--charcoal);
}

.fv__pin {
	position: relative;
	height: 100svh;
	min-height: 600px;
	overflow: hidden;
	background: var(--cream);
}

.fv__stage {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: calc(var(--notice-h) + var(--header-h) + 4px) var(--gutter) clamp(20px, 3.4vh, 40px);
}

/* 古い広告の欄外のような二重罫 */
.fv__rule {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0 7px;
	border-top: 4px double var(--red);
	border-bottom: 1px solid var(--red);
	color: var(--red);
	font: 600 10px/1 var(--f-label);
	letter-spacing: .28em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fv__main {
	flex: 1;
	display: grid;
	place-items: center;
	min-height: 0;
	padding-top: 30px; /* 「ファヴォラ」の行。フォークの先は上の罫にかかってよい（枠から飛び出して見える） */
}

.fv__lockup {
	position: relative;
	width: var(--lw);
}

.fv__kana {
	position: absolute;
	left: 2.6%;
	bottom: calc(100% + .7em);
	color: var(--red);
	font: 500 clamp(11px, 1.15vw, 17px)/1 var(--f-jp);
	letter-spacing: .5em;
}

.fv__visual {
	position: relative;
	aspect-ratio: 1075 / 427;
}

.fv__logo {
	position: absolute;
	inset: 0;
	margin: 0;
	color: var(--red);
}
.fv-logo { width: 100%; height: 100%; overflow: hidden; }

/* フォーク：外側＝スクロールの拡大、中間＝ホバーの傾き、内側の img＝登場 */
.fv__fork {
	position: absolute;
	left: 52.8%;
	top: -16.2%;
	width: 21.8%;
	z-index: 2;
	transform-origin: 48.5% 43%;
	pointer-events: none;
}
.fv__fork-tilt { transform-origin: 48.5% 43%; }
.fv__fork-img {
	width: 100%;
	/* 写真の柄の切れ目を、ロゴの下端までに溶かす */
	-webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 95%);
	mask-image: linear-gradient(to bottom, #000 74%, transparent 95%);
}

/* O の下側の弧だけを手前に重ねる（柄が O の後ろをくぐる） */
.fv__logo-front {
	position: absolute;
	inset: 0;
	z-index: 3;
	color: var(--red);
	pointer-events: none;
	clip-path: inset(61.5% 0 0 0);
}
.fv__logo-front .fv-logo__l:not([data-letter="O"]) { display: none; }

.fv__tagline {
	position: absolute;
	top: calc(100% + .9em);
	left: 27.6%;
	color: var(--red);
	font: 400 clamp(10px, 1.32vw, 19px)/1 var(--f-label);
	letter-spacing: .36em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fv__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.fv__copy-en {
	font: 500 clamp(22px, 2.3vw, 34px)/1.02 var(--f-display);
	letter-spacing: -.01em;
}
.fv__copy-ja {
	margin-top: .9em;
	font: 500 13px/1.6 var(--f-jp);
	letter-spacing: .16em;
}

.fv__actions {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 48px);
}

.fv__cta {
	display: block;
	width: clamp(96px, 8.6vw, 132px);
	color: var(--red);
	border-radius: 50%;
}
.fv__stamp { width: 100%; height: auto; overflow: visible; }
.fv__stamp-disc { fill: var(--cream); stroke: currentColor; stroke-width: 2; transition: fill .4s var(--ease-out); }
.fv__stamp-ring { transform-origin: 100px 100px; }
.fv__stamp-ring text { fill: currentColor; font: 600 15px/1 var(--f-label); letter-spacing: .1em; transition: fill .4s var(--ease-out); }
.fv__stamp-inner { fill: var(--red); transition: transform .6s var(--ease-out); transform-origin: 100px 100px; }
.fv__stamp-arrow { fill: none; stroke: var(--cream); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); transform-origin: 100px 100px; }
.fv__cta:hover .fv__stamp-disc { fill: var(--red); }
.fv__cta:hover .fv__stamp-ring text { fill: var(--cream); }
.fv__cta:hover .fv__stamp-inner { fill: var(--cream); transform: scale(1.06); }
.fv__cta:hover .fv__stamp-arrow { stroke: var(--red); transform: rotate(45deg); }

.fv__scroll {
	position: relative;
	padding-bottom: 46px;
	font: 600 10px/1 var(--f-label);
	letter-spacing: .3em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}
.fv__scroll::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1px;
	height: 38px;
	background: currentColor;
	transform-origin: top;
	animation: fv-scroll 2.2s var(--ease-out) infinite;
}
@keyframes fv-scroll {
	0% { transform: scaleY(0); transform-origin: top; }
	45% { transform: scaleY(1); transform-origin: top; }
	55% { transform: scaleY(1); transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- B 案の画面転換（JS が動くときだけ使う） ---- */

.fv__curtain {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: var(--red);
	clip-path: circle(0% at 50% 50%);
	pointer-events: none;
}

.fv__statement {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: grid;
	place-content: center;
	gap: clamp(24px, 4vh, 44px);
	padding: calc(var(--notice-h) + var(--header-h)) var(--gutter) 0;
	color: var(--cream);
	text-align: center;
	visibility: hidden;
}
.fv__statement span { display: block; }
.fv__statement-en {
	font: 500 clamp(48px, 10.5vw, 168px)/.92 var(--f-display);
	letter-spacing: -.02em;
}
.fv__statement-ja {
	font: 500 clamp(13px, 1.2vw, 16px)/2.1 var(--f-jp);
	letter-spacing: .18em;
	/* 折り返すのは文節の区切り（<wbr>）だけにし、行の長さもそろえる（1 文字だけ次の行に残さない） */
	word-break: keep-all;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* ---- 登場前（ちらつき防止。JS が始まると外れ、動かない場合も 4 秒で外れる） ---- */

.fv-motion [data-fv-fade],
.fv-motion .fv-logo__l,
.fv-motion [data-fv-fork-img],
.fv-motion [data-fv-stamp] { opacity: 0; }

/* ---- スマホ・タブレット ---- */

/* スマホ・縦長のタブレット：縦長の画面に合わせて構図を切り替える。
 * フォークを画面の高さいっぱいに立てて「ロゴの後ろ」に置き、パスタがロゴの上に乗るように見せる
 * （ロゴは欠けずに読め、料理は大きく見せられる）。柄は O の真後ろを通るので文字のすき間から見えない。
 * フォークの高さ（--fh）は、70% の位置がロゴの中央に来て、先端が上の罫の下に収まる大きさ。 */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
	.fv { --lw: calc(100vw - var(--gutter) * 2); }
	.fv__rule-mid { display: none; }
	.fv__main { place-items: end center; padding: 0 0 46px; }
	.fv__kana { font-size: 11px; bottom: calc(100% + 1em); }
	.fv__logo { z-index: 1; }
	.fv__fork {
		--fh: min(calc((100svh - 320px - var(--lw) * .1986) / .7), 190vw);
		z-index: 0;
		top: auto;
		bottom: calc(50% - var(--fh) * .3);
		left: 63.3%;
		width: calc(var(--fh) * .4522);
		margin-left: calc(var(--fh) * .4522 * -.485);
	}
	.fv__logo-front { display: none; }
	/* 柄はロゴの下端（フォークの 81%）を過ぎたらすぐ消す（下のタグラインと重ねない） */
	.fv__fork-img {
		-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 84%);
		mask-image: linear-gradient(to bottom, #000 72%, transparent 84%);
	}
	.fv__tagline { left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .3em; top: calc(100% + 1.3em); }
	.fv__foot { align-items: center; gap: 16px; }
	.fv__copy-en { font-size: clamp(26px, 7.6vw, 34px); }
	.fv__copy-ja { font-size: 12px; letter-spacing: .1em; }
	.fv__cta { width: 92px; flex: none; }
	.fv__scroll { display: none; }
}

/* 横長で背の低い画面（ノート PC など）：日本語の一行は赤い面の言葉に任せて、ロゴを大きく保つ */
@media (min-width: 768px) and (max-height: 700px) and (min-aspect-ratio: 4/5) {
	.fv { --lw: min(92vw, calc((100svh - 260px) / .3972), 1480px); }
	.fv__copy-ja { display: none; }
	.fv__copy-en { font-size: clamp(20px, 2vw, 28px); }
}

@media (prefers-reduced-motion: reduce) {
	.fv__scroll::after { animation: none; }
}
