/* ===== 動くFV（モーショングラフィック） ===== */
.fv {
  --ease: cubic-bezier(.22,.61,.36,1);
  --gold: #C8A96A;
  position: relative;
  width: 100%;
  aspect-ratio: 948 / 1659;
  min-height: min(100svh, 980px);
  overflow: hidden;
  background: #160E0A;
  container-type: inline-size;
  isolation: isolate;
  color: #F3EEE4;
}
.fv > * { position: absolute; }

/* 光 */
.fv__glow {
  inset: 0; z-index: 0;
  background: radial-gradient(70% 45% at 52% 6%, rgba(255,228,170,.22), transparent 70%);
}

/* 写真（外側＝導入の引き、内側＝その後の呼吸） */
.fv__shot { inset: 0; z-index: 1; overflow: hidden; }
.fv__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fv__shot--a { z-index: 2; }
/* ケーキを少し上げ、下の文字と断面が重なりすぎないように */
.fv__shot--b { inset: -7% 0 7% 0; }
.fv { --pour-x: 47.6%; --pour-h: 44%; }

/* チョコの糸に走る光 */
.fv__pour {
  z-index: 3;
  left: var(--pour-x, 49.5%); width: 3.4%;
  top: 0; height: var(--pour-h, 44%);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255,236,200,0) 42%, rgba(255,236,200,.6) 50%, rgba(255,236,200,0) 58%, transparent 100%);
  background-size: 100% 300%;
  mix-blend-mode: screen;
  filter: blur(1.2px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
          mask: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
  opacity: 0;
}

/* 抹茶の粉の粒子 */
.fv__dust { inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* 背景の大きな漢字 */
.fv__kanji {
  z-index: 4;
  left: -4%; top: 15%;
  font-family: "Shippori Mincho", serif;
  font-size: 78cqw; line-height: 1;
  color: var(--gold);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

/* 下部の暗幕（文字を読みやすく） */
.fv__shade {
  inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,14,10,.55) 0%, rgba(22,14,10,0) 22%),
    linear-gradient(0deg, rgba(22,14,10,.96) 0%, rgba(22,14,10,.85) 17%, rgba(22,14,10,0) 34%);
}

/* 上：ロゴと英字 */
.fv__head { z-index: 6; left: 6%; top: 3.2%; right: 30%; }
.fv__logo {
  margin: 0;
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: 7.4cqw; letter-spacing: .32em; line-height: 1;
  color: var(--gold);
}
.fv__logo span { font-family: "Shippori Mincho", serif; font-size: .74em; letter-spacing: 0; color: #F3EEE4; margin-left: .1em; }
.fv__en {
  margin: 2.2cqw 0 0 -1cqw;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 300;
  font-size: 17.5cqw; line-height: .95; letter-spacing: -.01em;
  background: linear-gradient(100deg, #9C7F45 0%, #E9D3A0 45%, #B8975A 60%, #E9D3A0 80%, #9C7F45 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.fv__en-sub {
  margin: 1.6cqw 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6cqw; letter-spacing: .32em; line-height: 1.2;
  color: rgba(200,169,106,.9);
  white-space: nowrap;
}

/* 右：縦書きのコピー */
.fv__copy {
  z-index: 6;
  right: 4.5%; top: 4%;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho", serif; font-weight: 400;
  font-size: 7.6cqw; line-height: 1.25; letter-spacing: .08em;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  display: flex; gap: .15em;
}
.fv__col { display: block; }
.fv__col--1 { font-size: 1em; }
.fv__col--2 { margin-top: 1.6em; }
.fv__big { font-size: 2.05em; line-height: 1.05; letter-spacing: 0; }
.fv__copy .ch { display: inline-block; }

/* 下：補助コピーとボタン */
.fv__foot { z-index: 7; left: 6%; right: 6%; bottom: 2.4%; text-align: center; }
.fv__rule {
  position: static; display: block;
  height: 1px; margin: 0 0 3.4cqw;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform-origin: 50% 50%;
}
.fv__sub {
  margin: 0 0 4.6cqw;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 300;
  font-size: clamp(15px, 4cqw, 21px); line-height: 1.75; letter-spacing: .06em;
}
.fv__line { display: block; }
.fv__line--gold { color: #E3CC98; font-family: "Shippori Mincho", serif; font-weight: 400; margin-top: .25em; }
.fv__btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 14px 16px;
  background: linear-gradient(100deg, #B8975A, #D9BF86 50%, #B8975A);
  background-size: 200% 100%;
  color: #160E0A; text-decoration: none;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 500;
  font-size: clamp(15px, 4.1cqw, 20px); letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(200,169,106,.18);
}
.fv__btn:focus-visible { outline: 2px solid #F3EEE4; outline-offset: 3px; }
.fv__btn:hover { filter: brightness(1.06); }
.fv__btn-tag {
  position: absolute; left: 3.4%; top: 0; transform: translateY(-62%);
  padding: 2px 10px;
  background: #F3EEE4; color: #2A1A12;
  font-size: 12px; letter-spacing: .1em; font-weight: 500;
}
.fv__arrow { font-family: "Cormorant Garamond", serif; font-size: 1.3em; line-height: 1; }
.fv__note {
  margin: 2.6cqw 0 0;
  font-size: 12px; color: rgba(243,238,228,.62); letter-spacing: .06em;
}
.fv__replay {
  margin-left: .8em; padding: 2px 8px;
  min-height: 28px;
  border: 1px solid rgba(200,169,106,.5); background: transparent;
  color: rgba(243,238,228,.75); font: inherit; font-size: 11px; letter-spacing: .06em;
  cursor: pointer; border-radius: 2px;
}
.fv__replay:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== タイムライン（.is-play で開始） ===== */
.fv .fv__glow, .fv .fv__shot--a, .fv .fv__shot--b, .fv .fv__head > *, .fv .fv__copy .ch,
.fv .fv__rule, .fv .fv__line, .fv .fv__btn, .fv .fv__note { opacity: 0; }

.fv.is-play .fv__glow { animation: fvFade 1.4s var(--ease) 0s both, fvBreath 6s ease-in-out 1.4s infinite alternate; }

.fv.is-play .fv__shot--a { animation: fvShotA 3.2s var(--ease) .25s both; }
.fv.is-play .fv__shot--a img { animation: fvPullA 3.2s var(--ease) .25s both; }

.fv.is-play .fv__shot--b { animation: fvShotB 1.6s var(--ease) 2.1s both; }
.fv.is-play .fv__shot--b img { animation: fvPullB 2.6s var(--ease) 2.1s both, fvDrift 14s ease-in-out 4.7s infinite alternate; }

.fv .fv__shade { opacity: 0; }
.fv.is-play .fv__shade { animation: fvFade 1.4s ease 4.4s both; }
.fv.is-static .fv__shade { opacity: 1; }
.fv.is-play .fv__kanji { animation: fvKanji 2.4s var(--ease) 2.7s both; }
.fv.is-play .fv__pour { animation: fvFade .8s ease 3.2s both, fvPour 3.4s ease-in-out 3.2s infinite; }

.fv.is-play .fv__logo { animation: fvUp .9s var(--ease) 2.9s both; }
.fv.is-play .fv__en { animation: fvWipe 1.4s var(--ease) 3.0s both, fvSheen 7s linear 4.4s infinite; }
.fv.is-play .fv__en-sub { animation: fvTrack 1.2s var(--ease) 3.6s both; }

.fv.is-play .fv__copy .ch { animation: fvChar .9s var(--ease) calc(3.5s + var(--i) * .11s) both; }
.fv.is-play .fv__big .ch { animation: fvCharBig 1.2s var(--ease) calc(3.5s + var(--i) * .11s) both; }

.fv.is-play .fv__rule { animation: fvRule 1.1s var(--ease) 5.0s both; }
.fv.is-play .fv__line:nth-child(1) { animation: fvUp .9s var(--ease) 5.25s both; }
.fv.is-play .fv__line:nth-child(2) { animation: fvUp .9s var(--ease) 5.45s both; }
.fv.is-play .fv__line:nth-child(3) { animation: fvUp .9s var(--ease) 5.75s both; }
.fv.is-play .fv__btn  { animation: fvBtn 1s var(--ease) 6.1s both, fvBtnSheen 5s linear 7.2s infinite; }
.fv.is-play .fv__note { animation: fvFade .8s ease 6.6s both; }

@keyframes fvFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fvBreath { from { opacity: 1; } to { opacity: .7; } }
@keyframes fvShotA  { 0% { opacity: 0; } 18% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fvPullA  { from { transform: scale(1.22); } to { transform: scale(1.04); } }
@keyframes fvShotB  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fvPullB  { from { transform: scale(1.14); filter: brightness(.7); } to { transform: scale(1); filter: brightness(1); } }
@keyframes fvDrift  { from { transform: scale(1); } to { transform: scale(1.035) translateY(-.6%); } }
@keyframes fvKanji  { from { opacity: 0; transform: translateY(3%) scale(1.04); } to { opacity: .085; transform: none; } }
@keyframes fvPour   { from { background-position: 0 100%; } to { background-position: 0 0%; } }
@keyframes fvUp     { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fvWipe   {
  from { opacity: 1; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); filter: blur(3px); }
  to   { opacity: 1; -webkit-clip-path: inset(0 0 0 0);    clip-path: inset(0 0 0 0);    filter: blur(0); }
}
@keyframes fvSheen  { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes fvTrack  { from { opacity: 0; letter-spacing: .7em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes fvChar   { from { opacity: 0; transform: translateY(-.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fvCharBig{ 0% { opacity: 0; transform: scale(1.25); filter: blur(10px); color: #E3CC98; } 60% { color: #F7EBCB; } 100% { opacity: 1; transform: none; filter: blur(0); color: #FFFFFF; } }
@keyframes fvRule   { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes fvBtn    { from { opacity: 0; transform: translateY(18px); box-shadow: 0 0 0 rgba(200,169,106,0); } to { opacity: 1; transform: none; } }
@keyframes fvBtnSheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* 完成形で止める（動きを止める・reduced-motion・読み込み失敗時） */
.fv.is-static *, .fv.is-static { animation: none !important; }
.fv.is-static .fv__glow, .fv.is-static .fv__shot--b, .fv.is-static .fv__head > *,
.fv.is-static .fv__copy .ch, .fv.is-static .fv__rule, .fv.is-static .fv__line,
.fv.is-static .fv__btn, .fv.is-static .fv__note { opacity: 1; }
.fv.is-static .fv__shot--a, .fv.is-static .fv__pour { opacity: 0; }
.fv.is-static .fv__kanji { opacity: .085; }
.fv.is-static .fv__dust { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fv__replay { display: none; }
}
