/* ===== 動くFV（翠に、寄り道。） =====
   上：写真の舞台（アーチのショーケース・茶筅の丸窓・手前の皿）は比率固定
   下：見出し〜ボタンは文字の流れで組む（どの幅でも文字が詰まらない） */
.fv {
  --ease: cubic-bezier(.22,.61,.36,1);
  --gold: #C8A96A;
  --leaf: #A3C255;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #120B08;
  container-type: inline-size;
  isolation: isolate;
  color: #F3EEE4;
}

/* 縦溝の木の壁と、上からの灯り */
.fv__wall {
  position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 1px, rgba(255,214,160,.035) 1px 2px, transparent 2px 2.6cqw),
    linear-gradient(180deg, #3A2418 0%, #2A1A12 30%, #20140E 55%, #160E0A 72%, #140C09 100%);
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.35) 80%, rgba(0,0,0,.2) 100%);
          mask: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.35) 80%, rgba(0,0,0,.2) 100%);
}
.fv__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 16% at 50% 0%, rgba(255,214,150,.38), transparent 70%),
    radial-gradient(60% 32% at 50% 30%, rgba(255,196,120,.12), transparent 75%);
}

/* ---- 上：写真の舞台 ---- */
.fv__visual { position: relative; z-index: 1; aspect-ratio: 1024 / 1110; }
.fv__visual > * { position: absolute; }

.fv__head { left: 0; right: 0; top: 3.4%; text-align: center; z-index: 6; }
.fv__logo {
  margin: 0;
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: 7.4cqw; letter-spacing: .3em; line-height: 1;
  padding-left: .3em;
  color: var(--gold);
}
.fv__logo span { font-family: "Shippori Mincho", serif; letter-spacing: 0; }
.fv__en {
  margin: 1.8cqw 0 0;
  padding-left: .42em;
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: 2.5cqw; letter-spacing: .42em; line-height: 1.2;
  color: rgba(200,169,106,.85);
  white-space: nowrap;
}

/* 右上の大きな「翠」の透かし */
.fv__kanji {
  z-index: 1;
  left: 72%; top: 6.5%;
  font-family: "Shippori Mincho", serif;
  font-size: 30cqw; line-height: 1;
  color: var(--gold);
  opacity: .14;
  pointer-events: none; user-select: none;
}

/* アーチ（金の二重線）の中のショーケース */
.fv__arch {
  z-index: 2;
  left: 14.6%; width: 67.8cqw; top: 16.6%;
  aspect-ratio: 694 / 763;
}
.fv__arch > * { position: absolute; }
.fv__arch-photo {
  inset: 2.3% 2.3% 1.6%;
  overflow: hidden;
  border-radius: 32.3cqw 32.3cqw 0 0;
  background: #1C120C;
}
.fv__arch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* 棚の灯りに走る光 */
.fv__arch-light {
  inset: 2.3% 2.3% 1.6%;
  border-radius: 32.3cqw 32.3cqw 0 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,226,170,.28) 46%, rgba(255,240,210,.42) 50%, rgba(255,226,170,.28) 54%, transparent 70%);
  background-size: 260% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  opacity: 0;
}
.fv__arch-line { inset: 0; width: 100%; height: 100%; overflow: visible; }
.fv__arch-line path { fill: none; stroke: var(--gold); stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.fv__arch-line .o { stroke-width: 1.6; }
.fv__arch-line .i { stroke-width: 1; opacity: .75; }

/* 左上の茶筅の丸窓（アーチの縁にかかる） */
.fv__whisk {
  z-index: 4;
  left: 4.4%; top: 15.8%;
  width: 27.6cqw; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 .9cqw rgba(20,12,9,.9), 0 0 0 calc(.9cqw + 1px) rgba(200,169,106,.45), 0 12px 30px rgba(0,0,0,.5);
  background: #160E0A;
}
.fv__whisk img { width: 100%; height: 100%; object-fit: cover; }

/* 手前の皿（アーチの下の縁をまたぐ） */
.fv__cake {
  z-index: 3;
  left: 17%; width: 66cqw; top: 48.2%;
  aspect-ratio: 1;
  pointer-events: none;
}
.fv__cake-in { position: absolute; inset: 0; }
.fv__cake img {
  width: 100%; height: 100%;
  /* 素材は、ケーキと皿だけを残して地を透明にしてある（fv-b-cake-cut） */
}
/* 鏡面に走る光 */
.fv__cake-sheen {
  position: absolute;
  left: 30%; width: 40%; top: 28%; height: 42%;
  border-radius: 18% / 12%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,240,.5) 48%, rgba(255,255,240,0) 60%);
  background-size: 300% 100%;
  background-position: 150% 0;
  mix-blend-mode: screen;
  opacity: 0;
}

/* 抹茶の粉と金の粒 */
.fv__dust { inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* ---- 下：見出し〜ボタン ---- */
.fv__body {
  position: relative; z-index: 7;
  margin-top: -1cqw;
  padding: 0 6cqw 3.6cqw;
  text-align: center;
}
.fv__copy {
  margin: 0;
  font-family: "Shippori Mincho", serif; font-weight: 400;
  font-size: max(32px, 10.4cqw); line-height: 1.25; letter-spacing: .06em;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
  white-space: nowrap;
}
.fv__copy .ch { display: inline-block; }
.fv__accent { color: var(--leaf); }
.fv__sub {
  margin: 3cqw 0 0;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 300;
  font-size: max(14px, 3.3cqw); line-height: 1.75; letter-spacing: .12em;
}
.fv__line { display: block; }
.fv__sub em { font-style: normal; color: #E3CC98; }

.fv__strip {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 5cqw 0 0; padding: 0;
  list-style: none;
}
.fv__strip::before, .fv__strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(200,169,106,.2), var(--gold) 12%, var(--gold) 88%, rgba(200,169,106,.2));
  transform-origin: 50% 50%;
}
.fv__strip::before { top: 0; }
.fv__strip::after { bottom: 0; }
.fv__strip li {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1.6cqw;
  padding: 3.2cqw 0 3cqw;
}
.fv__strip li + li::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: rgba(200,169,106,.7);
  transform-origin: 50% 50%;
}
.fv__strip svg {
  width: 8.4cqw; height: 8.4cqw; min-width: 28px; min-height: 28px;
  fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.fv__strip span {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 400;
  font-size: max(11px, 2.75cqw); letter-spacing: .04em; line-height: 1.3;
  white-space: nowrap;
}

.fv__btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  margin-top: 4.6cqw;
  min-height: 56px; padding: 14px 16px;
  border-radius: 3px;
  background: linear-gradient(100deg, #B8975A, #DCC48E 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: max(15px, 4.1cqw); 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__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: .6em; 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; }

@container (max-width: 400px) {
  .fv__strip span { letter-spacing: 0; }
}

/* ===== タイムライン（.is-play で開始） ===== */
.fv .fv__wall, .fv .fv__glow, .fv .fv__head > *, .fv .fv__arch-photo, .fv .fv__whisk, .fv .fv__cake-in,
.fv .fv__copy .ch, .fv .fv__line, .fv .fv__strip li, .fv .fv__btn, .fv .fv__note { opacity: 0; }
.fv .fv__kanji { opacity: 0; }
.fv .fv__arch-line path { stroke-dashoffset: 1; }
.fv .fv__strip::before, .fv .fv__strip::after { transform: scaleX(0); }
.fv .fv__strip li + li::before { transform: scaleY(0); }

/* 0〜1.5s 灯りがともり、アーチの線が描かれる */
.fv.is-play .fv__wall { animation: fvLight 1.6s ease-out 0s both; }
.fv.is-play .fv__glow { animation: fvLight 1.8s ease-out .2s both, fvBreath 6s ease-in-out 2s infinite alternate; }
.fv.is-play .fv__arch-line .o { animation: fvDraw 1.8s var(--ease) .3s both; }
.fv.is-play .fv__arch-line .i { animation: fvDraw 1.8s var(--ease) .6s both; }
.fv.is-play .fv__logo { animation: fvUp 1s var(--ease) .5s both; }
.fv.is-play .fv__en { animation: fvTrack 1.3s var(--ease) .8s both; }

/* 1〜3s ショーケースの灯りがともる */
.fv.is-play .fv__arch-photo { animation: fvShow 2.2s var(--ease) 1s both; }
.fv.is-play .fv__arch-photo img { animation: fvPull 2.6s var(--ease) 1s both, fvDrift 16s ease-in-out 3.6s infinite alternate; }
.fv.is-play .fv__arch-light { animation: fvSweep 1.8s ease-in-out 2.2s both, fvSweepLoop 9s ease-in-out 7s infinite; }

/* 2.5〜4s 皿のケーキが手前に寄り、枠をまたいで止まる */
.fv.is-play .fv__cake-in { animation: fvCake 1.6s var(--ease) 2.5s both, fvCakeBreath 5s ease-in-out 4.6s infinite alternate; }
.fv.is-play .fv__cake-sheen { animation: fvSheen 1.4s ease-in-out 3.9s both, fvSheenLoop 7s ease-in-out 8s infinite; }

/* 3〜4s 茶筅の丸窓と「翠」の透かし */
.fv.is-play .fv__whisk { animation: fvCircle 1.2s var(--ease) 3s both; }
.fv.is-play .fv__whisk img { animation: fvPull 2s var(--ease) 3s both; }
.fv.is-play .fv__kanji { animation: fvKanji 2s var(--ease) 3.3s both; }

/* 4〜5.5s 見出しを1文字ずつ */
.fv.is-play .fv__copy .ch { animation: fvChar .9s var(--ease) calc(4s + var(--i) * .12s) both; }
.fv.is-play .fv__accent .ch { animation: fvCharLeaf 1.3s var(--ease) 4s both; }

/* 5.5〜7s 補助 → 帯 → ボタン */
.fv.is-play .fv__line:nth-child(1) { animation: fvUp .9s var(--ease) 5.2s both; }
.fv.is-play .fv__line:nth-child(2) { animation: fvUp .9s var(--ease) 5.4s both; }
.fv.is-play .fv__strip::before { animation: fvRuleX 1s var(--ease) 5.7s both; }
.fv.is-play .fv__strip::after  { animation: fvRuleX 1s var(--ease) 5.8s both; }
.fv.is-play .fv__strip li { animation: fvUp .8s var(--ease) calc(5.95s + var(--n, 0) * .12s) both; }
.fv.is-play .fv__strip li + li::before { animation: fvRuleY .7s var(--ease) calc(6s + var(--n, 0) * .12s) both; }
.fv.is-play .fv__btn  { animation: fvBtn 1s var(--ease) 6.5s both, fvBtnSheen 5s linear 7.6s infinite; }
.fv.is-play .fv__note { animation: fvFade .8s ease 7s both; }
.fv__strip li:nth-child(2) { --n: 1; }
.fv__strip li:nth-child(3) { --n: 2; }
.fv__strip li:nth-child(4) { --n: 3; }

@keyframes fvFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fvLight  { 0% { opacity: 0; } 30% { opacity: .55; } 38% { opacity: .35; } 100% { opacity: 1; } }
@keyframes fvBreath { from { opacity: 1; } to { opacity: .72; } }
@keyframes fvDraw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fvShow   { from { opacity: 0; filter: brightness(.25); } to { opacity: 1; filter: brightness(1); } }
@keyframes fvPull   { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes fvDrift  { from { transform: scale(1); } to { transform: scale(1.04) translateY(-.8%); } }
@keyframes fvSweep  { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes fvSweepLoop { 0%, 70% { opacity: 0; background-position: 130% 0; } 75% { opacity: .7; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes fvCake   {
  from { opacity: 0; transform: translateY(-9%) scale(.8); filter: blur(6px) brightness(.6); }
  60%  { opacity: 1; filter: blur(0) brightness(1); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes fvCakeBreath { from { transform: scale(1); } to { transform: scale(1.012) translateY(-.3%); } }
@keyframes fvSheen  { 0% { opacity: 0; background-position: 150% 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: -50% 0; } }
@keyframes fvSheenLoop { 0%, 72% { opacity: 0; background-position: 150% 0; } 78% { opacity: .9; } 100% { opacity: 0; background-position: -50% 0; } }
@keyframes fvCircle {
  from { opacity: 1; -webkit-clip-path: circle(0% at 50% 50%); clip-path: circle(0% at 50% 50%); }
  to   { opacity: 1; -webkit-clip-path: circle(75% at 50% 50%); clip-path: circle(75% at 50% 50%); }
}
@keyframes fvKanji  { from { opacity: 0; transform: translateY(4%) scale(1.06); } to { opacity: .14; transform: none; } }
@keyframes fvUp     { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fvTrack  { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .42em; } }
@keyframes fvChar   { from { opacity: 0; transform: translateY(-.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fvCharLeaf { 0% { opacity: 0; transform: scale(1.35); filter: blur(10px); text-shadow: 0 0 0 rgba(163,194,85,0); } 60% { text-shadow: 0 0 28px rgba(163,194,85,.7); } 100% { opacity: 1; transform: none; filter: blur(0); text-shadow: 0 4px 24px rgba(0,0,0,.6); } }
@keyframes fvRuleX  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fvRuleY  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fvBtn    { from { opacity: 0; transform: translateY(18px); } 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, .fv.is-static *::before, .fv.is-static *::after { animation: none !important; }
.fv.is-static .fv__wall, .fv.is-static .fv__glow, .fv.is-static .fv__head > *, .fv.is-static .fv__arch-photo,
.fv.is-static .fv__whisk, .fv.is-static .fv__cake-in, .fv.is-static .fv__copy .ch, .fv.is-static .fv__line,
.fv.is-static .fv__strip li, .fv.is-static .fv__btn, .fv.is-static .fv__note { opacity: 1; }
.fv.is-static .fv__kanji { opacity: .14; }
.fv.is-static .fv__arch-line path { stroke-dashoffset: 0; }
.fv.is-static .fv__strip::before, .fv.is-static .fv__strip::after,
.fv.is-static .fv__strip li + li::before { transform: none; }
.fv.is-static .fv__arch-light, .fv.is-static .fv__cake-sheen { opacity: 0; }
.fv.is-static .fv__dust { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fv__replay { display: none; }
}
