/*
 * 発酵ノ雫 LP スタイル
 * 参照元: 発酵ノ雫_LP_プロトタイプ_PC_v1.1.html / 発酵ノ雫_LP_プロトタイプ_SP_v1.0.html
 * 860px を境に、PC版レイアウトとSP版レイアウトを単一のCSSで切り替える。
 */

:root {
	--offwhite: #FAF6F0;
	--offwhite-2: #F3EEE5;
	--greige: #C9BEAE;
	--greige-dark: #8B8071;
	--ink: #2A2520;
	--ink-soft: #55503F;
	--gold: #B8935A;
	--gold-soft: #D9BE8F;
	--line: rgba(42,37,32,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
	font-weight: 300;
	color: var(--ink-soft);
	background: var(--offwhite);
	line-height: 1.9;
	font-size: 15px;
	overflow-x: hidden;
}

.serif { font-family: "Zen Old Mincho", serif; }

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 32px;
}

section { position: relative; padding: 140px 0; }

h1, h2, h3 {
	font-family: "Zen Old Mincho", serif;
	color: var(--ink);
	font-weight: 600;
	letter-spacing: 0.02em;
}

h2 { font-size: 30px; line-height: 1.7; margin-bottom: 56px; }
h2 .en {
	display: block;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.28em;
	color: var(--gold);
	margin-bottom: 16px;
}

/* ===== スクロールでのreveal演出 ===== */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1.1s cubic-bezier(.16,.8,.28,1), transform 1.1s cubic-bezier(.16,.8,.28,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .12s; }
.reveal-delay-2.is-visible { transition-delay: .24s; }

/* ===== ヘッダー：ロゴとCTAのみ。グローバルナビは設置しない ===== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	padding: 26px 0;
	transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
	background: rgba(250,246,240,0.92);
	backdrop-filter: blur(10px);
	padding: 16px 0;
	box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: "Zen Old Mincho", serif; font-size: 18px; letter-spacing: 0.14em; color: var(--ink); }
.logo span { color: var(--gold); }
.header-cta {
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--ink);
	padding: 11px 24px;
	cursor: pointer;
	transition: background .3s ease, color .3s ease;
}
.header-cta:hover { background: var(--ink); color: var(--offwhite); }

/* ===== #fv ===== */
.hero {
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-top: 80px;
	background:
		radial-gradient(ellipse 900px 500px at 78% 18%, rgba(184,147,90,0.14), transparent 60%),
		radial-gradient(ellipse 700px 500px at 10% 90%, rgba(139,128,113,0.10), transparent 60%),
		var(--offwhite);
	overflow: hidden;
}
.hero .container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	grid-template-areas:
		"copy visual"
		"cta  visual";
	gap: 40px;
	align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-cta { grid-area: cta; justify-self: start; }
.hero-eyebrow {
	font-size: 11px; letter-spacing: 0.3em; color: var(--gold);
	margin-bottom: 24px;
}
.hero h1 {
	font-size: 46px;
	line-height: 1.75;
	margin-bottom: 28px;
}
.hero p.lead { font-size: 15px; color: var(--ink-soft); max-width: 380px; margin-bottom: 44px; }

.hero-visual {
	grid-area: visual;
	position: relative;
	height: 480px;
}
.hero-ring {
	position: absolute;
	width: 300px; height: 300px;
	border: 1px solid var(--line);
	border-radius: 50%;
	top: 40%; left: 50%;
	transform: translate(-50%, -50%);
}
.hero-ring.r2 { width: 380px; height: 380px; border-color: rgba(184,147,90,0.18); }

.scroll-cue {
	position: absolute;
	bottom: 40px; left: 50%;
	transform: translateX(-50%);
	font-size: 11px; letter-spacing: 0.2em; color: var(--ink-soft);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 28px; background: var(--ink-soft); position: relative; overflow: hidden; }
.scroll-cue .line::after {
	content: ""; position: absolute; inset: 0; background: var(--gold);
	animation: lineSlide 2.4s ease-in-out infinite;
}
@keyframes lineSlide { 0%{transform:translateY(-100%)} 50%{transform:translateY(0)} 100%{transform:translateY(100%)} }

/* ===== #problem ===== */
.problem { text-align: center; }
.problem .container { max-width: 620px; }
.problem p { font-size: 16px; margin-bottom: 14px; color: var(--ink-soft); }
.problem .mark { color: var(--ink); font-family: "Zen Old Mincho", serif; font-size: 20px; }

/* ===== #concept ===== */
.concept { background: var(--offwhite-2); }
.concept .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.ferment-visual { position: relative; width: 100%; height: 340px; }
.bubble {
	position: absolute;
	border-radius: 50%;
	border: 1px solid var(--gold-soft);
	animation: bubbleRise 6s ease-in-out infinite;
}
.bubble.b1 { width: 90px;  height: 90px;  left: 10%; bottom: 0;   animation-duration: 7s; }
.bubble.b2 { width: 46px;  height: 46px;  left: 42%; bottom: 8%;  animation-duration: 5.2s; animation-delay: .8s; background: rgba(184,147,90,0.08); }
.bubble.b3 { width: 130px; height: 130px; left: 55%; bottom: -20px; animation-duration: 8.4s; animation-delay: .3s; }
.bubble.b4 { width: 30px;  height: 30px;  left: 20%; bottom: 40%; animation-duration: 4.6s; animation-delay: 1.4s; background: rgba(184,147,90,0.10); }
@keyframes bubbleRise {
	0%,100% { transform: translateY(0); opacity: .55; }
	50%     { transform: translateY(-18px); opacity: 1; }
}
.concept h2 { margin-bottom: 24px; }
.concept p { margin-bottom: 14px; font-size: 15px; }

/* ===== #ingredients ===== */
.ingredients .cols3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.ing-card { text-align: left; }
.ing-mark {
	width: 52px; height: 52px;
	border: 1px solid var(--gold-soft);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: "Zen Old Mincho", serif; color: var(--gold); font-size: 18px;
	margin-bottom: 24px;
}
.ing-card h3 { font-size: 16px; margin-bottom: 10px; font-weight: 500;}
.ing-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ===== #experience（演出の見せ場：波紋に到達するまでピン留めするスクロールスクラブ） ===== */
.experience {
	background: var(--ink);
	color: var(--offwhite);
	text-align: center;
	padding: 0;
	min-height: 300vh;
}
.experience-sticky {
	position: sticky;
	top: 0;
	height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.experience-sticky .container { width: 100%; }
.experience h2 { color: var(--offwhite); }
.experience h2 .en { color: var(--gold-soft); }
.experience p.lead { color: rgba(250,246,240,0.7); max-width: 460px; margin: 0 auto 60px; font-size: 14.5px; }

.oil-stage {
	position: relative;
	height: 420px;
	max-width: 520px;
	margin: 0 auto;
	--progress: 0;
}
.oil-pool {
	position: absolute;
	left: 50%; bottom: 40px;
	transform: translateX(-50%);
	width: 260px; height: 60px;
	background: radial-gradient(ellipse at center, rgba(184,147,90,0.55), rgba(184,147,90,0.05) 70%);
	border-radius: 50%;
	filter: blur(2px);
	opacity: var(--progress);
	transition: opacity .1s linear;
}
.oil-stream {
	position: absolute;
	top: 0; left: 50%;
	width: 3px; height: 300px;
	transform: translateX(-50%) scaleY(var(--progress));
	transform-origin: top center;
	background: linear-gradient(to bottom, transparent, var(--gold-soft) 30%, var(--gold) 90%);
	opacity: .8;
	transition: transform .1s linear;
}
.oil-ripple {
	position: absolute;
	left: 50%; bottom: 60px;
	transform: translateX(-50%);
	border: 1px solid rgba(217,190,143,0.4);
	border-radius: 50%;
}
.oil-ripple.r1 {
	width: calc(30px + var(--progress) * 270px);
	height: calc(10px + var(--progress) * 80px);
	opacity: calc(1 - var(--progress));
}
.oil-ripple.r2 {
	width: calc(30px + max(0, var(--progress) - 0.25) * 270px);
	height: calc(10px + max(0, var(--progress) - 0.25) * 80px);
	opacity: calc(1 - max(0, var(--progress) - 0.25));
}
.scroll-more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
	animation: chevronBounce 1.6s ease-in-out infinite;
}
.scroll-more .chevron {
	width: 12px; height: 12px;
	border-right: 1px solid var(--gold-soft);
	border-bottom: 1px solid var(--gold-soft);
	transform: rotate(45deg);
}
@keyframes chevronBounce {
	0%, 100% { transform: translateY(0); opacity: .45; }
	50%      { transform: translateY(8px); opacity: 1; }
}
.exp-note {
	margin-top: 16px;
	font-size: 12px;
	color: rgba(250,246,240,0.55);
	letter-spacing: 0.04em;
}

/* ===== #voice ===== */
.voice .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.voice-card { padding: 44px 36px; background: var(--offwhite-2); position: relative; }
.voice-card p.comment { font-size: 15px; color: var(--ink); margin-bottom: 20px; }
.voice-card p.who { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ===== #price ===== */
.price { background: var(--offwhite-2); text-align: center; }
.price-card {
	max-width: 460px;
	margin: 0 auto;
	background: var(--offwhite);
	padding: 56px 48px;
	border: 1px solid var(--line);
}
.price-tag {
	display: inline-block;
	font-size: 11px; letter-spacing: 0.2em; color: var(--gold);
	border: 1px solid var(--gold-soft);
	padding: 6px 16px;
	margin-bottom: 24px;
}
.price-card h3 { font-size: 20px; margin-bottom: 20px; }
.price-num { font-family: "Zen Old Mincho", serif; font-size: 34px; color: var(--ink); margin-bottom: 8px; }
.price-num .unit { font-size: 13px; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--ink-soft); }
.price-card .desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 36px; }
.cta-button {
	display: inline-block;
	width: 100%;
	padding: 18px;
	background: var(--ink);
	color: var(--offwhite);
	font-size: 13.5px;
	letter-spacing: 0.1em;
	border: none;
	cursor: pointer;
	transition: background .3s ease;
}
.cta-button:hover { background: var(--gold); }
.modal-hint { margin-top: 16px; font-size: 11.5px; color: var(--ink-soft); }

/* ===== #faq ===== */
.faq .container { max-width: 680px; }
.faq-item { border-top: 1px solid var(--line); padding: 26px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	font-size: 15px; color: var(--ink);
}
.faq-q .plus { font-family: "Zen Old Mincho", serif; font-size: 18px; color: var(--gold); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .4s ease, padding-top .4s ease;
	font-size: 13.5px; color: var(--ink-soft);
}
.faq-item.open .faq-a { max-height: 160px; padding-top: 16px; }

/* ===== #cta ===== */
.final-cta {
	text-align: center;
	background:
		radial-gradient(ellipse 700px 400px at 50% 0%, rgba(184,147,90,0.12), transparent 65%),
		var(--offwhite);
}
.final-cta h2 { margin-bottom: 40px; }
.final-cta .cta-button { width: auto; padding: 20px 64px; }

/* ===== フッター ===== */
.site-footer { padding: 48px 0; text-align: center; border-top: 1px solid var(--line); }
.site-footer p { font-size: 11.5px; color: var(--ink-soft); }

/* ===== 申込モーダル：PCは中央ポップアップ型 ===== */
.modal-overlay {
	display: none;
	position: fixed; inset: 0;
	background: rgba(42,37,32,0.55);
	z-index: 100;
	align-items: center; justify-content: center;
	padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
	background: var(--offwhite);
	max-width: 460px; width: 100%;
	max-height: 88vh; overflow-y: auto;
	padding: 48px 44px;
	position: relative;
}
.modal-close {
	position: absolute; top: 22px; right: 22px;
	background: none; border: none;
	font-size: 20px; color: var(--ink-soft); cursor: pointer;
	font-family: "Zen Old Mincho", serif;
}
.modal-box h3 { font-size: 19px; margin-bottom: 8px; }
.modal-box .sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 28px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 7px; letter-spacing: .03em; }
.form-input {
	background: var(--offwhite-2);
	height: 46px;
	display: flex; align-items: center;
	padding: 0 16px;
	font-size: 13px; color: var(--greige-dark);
	border: 1px solid transparent;
}
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-submit {
	width: 100%; margin-top: 8px; padding: 17px;
	background: var(--ink); color: var(--offwhite);
	border: none; font-family: inherit; font-size: 13.5px; letter-spacing: .06em;
	cursor: pointer; transition: background .3s ease;
}
.modal-submit:hover { background: var(--gold); }
.modal-note { margin-top: 16px; font-size: 10.5px; color: var(--ink-soft); text-align: center; }

/* ===== 写真プレースホルダー：質感トーンに馴染む上品な枠 =====
   --photo-src はテンプレート側で実写真パスが渡された場合のみ設定される。
   画像が存在しない/読み込めない間は下のグラデーション層がそのまま見える。 */
.photo {
	position: relative;
	--photo-src: none;
	background-image: var(--photo-src), linear-gradient(150deg, var(--offwhite-2) 0%, #E7DFD1 100%);
	background-size: cover, cover;
	background-position: center, center;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.photo::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at 30% 20%, rgba(184,147,90,0.10), transparent 60%);
}
.photo span {
	position: relative;
	z-index: 1;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	color: var(--greige-dark);
	text-align: center;
	padding: 0 20px;
}
.photo.dark {
	background-image: var(--photo-src), linear-gradient(150deg, #3a352d 0%, #262119 100%);
}
.photo.dark span { color: rgba(250,246,240,0.55); }

.photo-hero { height: 480px; }
.photo-concept { height: 340px; }
.photo-ingredient { height: 180px; margin-bottom: 24px; }
.photo-avatar { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px; }
.photo-cta { height: 460px; margin-bottom: 40px; }

/* ============================================================
   SP（〜860px）：発酵ノ雫_LP_プロトタイプ_SP_v1.0.html 準拠
   ============================================================ */
@media (max-width: 860px) {
	.container { padding: 0 24px; }
	section { padding: 88px 0; }

	h2 { font-size: 22px; line-height: 1.65; margin-bottom: 40px; }
	h2 .en { font-size: 10px; letter-spacing: 0.26em; margin-bottom: 14px; }

	.site-header { padding: 16px 0; }
	.site-header.scrolled { padding: 12px 0; }
	.logo { font-size: 15px; letter-spacing: 0.12em; }
	.header-cta { font-size: 11px; padding: 9px 16px; }

	/* #fv：本文 → 画像 → CTA の縦積み（CTAは全幅） */
	.hero { padding-top: 64px; }
	.hero .container {
		grid-template-columns: 1fr;
		grid-template-areas:
			"copy"
			"visual"
			"cta";
	}
	.hero-eyebrow { font-size: 10px; letter-spacing: 0.26em; margin-bottom: 18px; }
	.hero h1 { font-size: 28px; line-height: 1.6; margin-bottom: 20px; }
	.hero p.lead { font-size: 13.5px; max-width: none; margin-bottom: 32px; }
	.hero-visual { height: 260px; margin-bottom: 36px; }
	.hero-cta { justify-self: stretch; width: 100%; padding: 14px; }
	.hero-ring { width: 180px; height: 180px; top: 6%; left: auto; right: -40px; transform: none; }
	.hero-ring.r2 { width: 230px; height: 230px; top: -10%; right: -70px; }
	.scroll-cue { bottom: 24px; }

	.problem p { font-size: 14.5px; margin-bottom: 12px; }
	.problem .mark { font-size: 17px; }

	/* #concept：画像→テキストの縦積み */
	.concept .container { display: flex; flex-direction: column; gap: 40px; }
	.ferment-visual { height: 220px; }
	.concept h2 { margin-bottom: 18px; }
	.concept p { margin-bottom: 12px; font-size: 14px; }
	.bubble.b1 { width: 56px; height: 56px; }
	.bubble.b2 { width: 30px; height: 30px; left: 46%; }
	.bubble.b3 { width: 78px; height: 78px; left: 58%; bottom: -14px; }
	.bubble.b4 { display: none; }

	/* #ingredients：1カラム縦積み */
	.ingredients .cols3 { grid-template-columns: 1fr; gap: 36px; }
	.ing-mark { width: 44px; height: 44px; font-size: 16px; margin-bottom: 18px; }
	.ing-card h3 { font-size: 15px; margin-bottom: 8px; }
	.ing-card p { font-size: 13px; }

	/* #experience：表現を簡略化しつつ、スクロール連動の核は維持 */
	.experience { min-height: 260vh; }
	.experience p.lead { max-width: none; margin: 0 auto 44px; font-size: 13.5px; }
	.oil-stage { height: 260px; max-width: 320px; }
	.oil-pool { bottom: 24px; width: 160px; height: 40px; }
	.oil-stream { height: 180px; }
	.oil-ripple { bottom: 36px; }
	.oil-ripple.r1 { width: calc(20px + var(--progress) * 170px); height: calc(8px + var(--progress) * 48px); }
	.oil-ripple.r2 { width: calc(20px + max(0, var(--progress) - 0.25) * 170px); height: calc(8px + max(0, var(--progress) - 0.25) * 48px); }
	.exp-note { margin-top: 36px; font-size: 11px; }

	/* #voice：縦積み */
	.voice .cols2 { grid-template-columns: 1fr; gap: 20px; }
	.voice-card { padding: 32px 28px; }
	.voice-card p.comment { font-size: 14px; margin-bottom: 16px; }
	.voice-card p.who { font-size: 11px; }
	.photo-avatar { width: 44px; height: 44px; margin-bottom: 16px; }

	.price-card { padding: 40px 26px; }
	.price-tag { font-size: 10px; padding: 5px 14px; margin-bottom: 20px; }
	.price-card h3 { font-size: 17px; margin-bottom: 16px; }
	.price-num { font-size: 27px; }
	.price-num .unit { font-size: 12px; }
	.price-card .desc { font-size: 12px; margin-bottom: 28px; }
	.cta-button { font-size: 13px; padding: 16px; }

	.faq-item { padding: 20px 0; }
	.faq-q { font-size: 13.5px; }
	.faq-q .plus { font-size: 16px; }
	.faq-a { font-size: 12.5px; }
	.faq-item.open .faq-a { max-height: 160px; padding-top: 12px; }

	.final-cta h2 { margin-bottom: 28px; }
	.final-cta .cta-button { width: 100%; padding: 16px; }
	.photo-cta { height: 200px; margin-bottom: 28px; }

	.form-row-split { grid-template-columns: 1fr; }

	.photo-hero { height: 260px; }
	.photo-concept { height: 220px; }
	.photo-ingredient { height: 150px; margin-bottom: 18px; }

	/* 申込モーダル：SPは下からせり上がるフルスクリーン型 */
	.modal-overlay { align-items: unset; justify-content: unset; padding: 0; }
	.modal-overlay.is-open { display: block; }
	.modal-box {
		position: fixed;
		left: 0; right: 0; bottom: 0; top: auto;
		max-width: none; width: 100%;
		max-height: 88svh;
		padding: 32px 24px 40px;
		border-radius: 20px 20px 0 0;
		transform: translateY(100%);
		transition: transform .4s cubic-bezier(.16,.8,.28,1);
	}
	.modal-overlay.is-open .modal-box { transform: translateY(0); }
	.modal-close { top: 18px; right: 20px; font-size: 18px; }
	.modal-box h3 { font-size: 17px; margin-top: 14px; }
	.modal-box .sub { font-size: 11.5px; margin-bottom: 24px; }
	.form-row label { font-size: 11px; }
	.form-input { height: 44px; padding: 0 14px; font-size: 12.5px; }
	.modal-submit { padding: 16px; font-size: 13px; }
	.modal-note { font-size: 10px; }
}
