:root {
  --white: #FAFAF7;
  --mist: #E6ECE8;
  --ink: #1F2328;
  --green: #36614F;        /* 08-cta.png のボタンの実測色 */
  --green-dark: #2A4D3F;
  --col: 560px;            /* PCで画像がいちばん綺麗に見える幅。広い画面では左右の余白を増やす */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---------- デモの断りと「動きを止める」 ---------- */
.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.demo-note p { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.motion-toggle {
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid rgba(250, 250, 247, .5);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.motion-toggle:hover { background: rgba(250, 250, 247, .12); }
.motion-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- 本体 ---------- */
.lp {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 40px rgba(31, 35, 40, .08);
  overflow: hidden;
}
.part { position: relative; margin: 0; container-type: inline-size; }
/* PC・タブレット：FV（縦横比1:1.75）が画面の高さに収まる幅にする。スマホは画面幅のまま */
@media (min-width: 768px) {
  :root { --col: clamp(420px, calc((100svh - 56px) / 1.75), 560px); }
}
.part img { display: block; width: 100%; height: auto; }

/* ---------- 各ページの出方（ページごとに変える） ---------- */
.js-motion .part[data-reveal] img { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-out); }
.js-motion .part[data-reveal="curtain"]:not(.is-in) img { clip-path: inset(0 0 100% 0); }
.js-motion .part[data-reveal="rise"]:not(.is-in) img { opacity: 0; transform: translateY(48px); }
.js-motion .part[data-reveal="wipe"]:not(.is-in) img { clip-path: inset(0 100% 0 0); }
.js-motion .part[data-reveal="zoom"]:not(.is-in) img { opacity: 0; transform: scale(1.08); }
.js-motion .part[data-reveal="curtain"].is-in img,
.js-motion .part[data-reveal="wipe"].is-in img { clip-path: inset(0 0 0 0); }
.js-motion .part[data-reveal="iris"]:not(.is-in) img { clip-path: circle(0% at 50% 30%); }
.js-motion .part[data-reveal="iris"].is-in img { clip-path: circle(150% at 50% 30%); }

/* ---------- CTA：画像のボタンの上に重ねる本物のボタン（08-cta.png 実測） ---------- */
.btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2.1cqw;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s ease, color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn__label { position: relative; z-index: 1; letter-spacing: .06em; }
.btn--primary {
  left: 8.01%; width: 83.89%;      /* x=82〜941px */
  top: 83.71%; height: 5.52%;      /* y=1500〜1599px */
  background: var(--green);
  color: #fff;
  font-size: 3.7cqw;
  box-shadow: 0 .6cqw 1.8cqw rgba(42, 77, 63, .22);
}
.btn--primary .btn__label { margin-right: 6cqw; }
.btn__arrow {
  position: absolute;
  right: 6.5cqw;
  width: 4.6cqw;
  height: auto;
  z-index: 1;
  animation: arrow-nudge 2.4s var(--ease-out) infinite;
}
.btn--secondary {
  left: 7.71%; width: 84.38%;      /* x=79〜943px */
  top: 90.35%; height: 5.07%;      /* y=1619〜1710px */
  background: var(--white);
  border: .2cqw solid var(--green);
  color: #2b2f33;
  font-size: 3.4cqw;
}

/* 光が横切る：申込ボタンと追従ボタンだけ */
.btn--primary::before,
.sticky-cta::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg) translateX(0);
  animation: shine 4.2s ease-in-out infinite;
  pointer-events: none;
}
/* ゆっくり呼吸するふち */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(54, 97, 79, .45);
  animation: breathe 2.8s ease-out infinite;
  pointer-events: none;
}

/* 浮かせると下の画像のボタンの縁がのぞくので、位置は動かさず色と影で反応させる */
.btn--primary:hover { box-shadow: 0 1.4cqw 3cqw rgba(42, 77, 63, .34); background: var(--green-dark); }
.btn--secondary:hover { background: var(--green); color: #fff; }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* CTA に入ったとき、ボタンが下から順に立ち上がる */
.js-motion #cta:not(.is-in) .btn { opacity: 0; transform: translateY(3cqw); }
.js-motion #cta .btn { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), box-shadow .35s, background-color .3s, color .3s; }
.js-motion #cta.is-in .btn--primary { transition-delay: .45s, .45s, 0s, 0s, 0s; }
.js-motion #cta.is-in .btn--secondary { transition-delay: .6s, .6s, 0s, 0s, 0s; }
.js-motion #cta.is-in .btn:hover { transition-delay: 0s; }
.js-motion #cta.is-in .btn:active { transition-duration: .1s; transition-delay: 0s; }

@keyframes shine {
  0%, 55% { transform: skewX(-18deg) translateX(0); }
  85%, 100% { transform: skewX(-18deg) translateX(560%); }
}
@keyframes breathe {
  0% { box-shadow: 0 0 0 0 rgba(54, 97, 79, .45); }
  70%, 100% { box-shadow: 0 0 0 2.4cqw rgba(54, 97, 79, 0); }
}
@keyframes arrow-nudge {
  0%, 60%, 100% { transform: translateX(0); }
  75% { transform: translateX(1.2cqw); }
}

.foot {
  max-width: var(--col);
  margin: 0 auto;
  padding: 24px 16px 96px;
  background: var(--white);
  font-size: 13px;
  text-align: center;
}
.foot p { margin: 0; }

/* ---------- スマホ：画面下に追従する申込ボタン（FVを過ぎてから出す） ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 140%);
  width: min(calc(100% - 32px), calc(var(--col) - 48px));
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 35, 40, .18);
  transition: transform .5s var(--ease-out), opacity .35s ease, visibility 0s linear .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}
.sticky-cta.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.sticky-cta:hover { background: var(--green-dark); }
.sticky-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sticky-cta::before { width: 22%; animation-name: shine-wide; }
@keyframes shine-wide {
  0%, 55% { transform: skewX(-18deg) translateX(0); }
  85%, 100% { transform: skewX(-18deg) translateX(780%); }
}

.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  text-align: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.toast.is-shown { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- 動きを止める（OSの設定 または ボタン） ---------- */
html.no-motion { scroll-behavior: auto; }
.no-motion *, .no-motion *::before, .no-motion *::after {
  animation: none !important;
  transition: none !important;
}
.no-motion .part img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.no-motion #cta .btn { opacity: 1 !important; transform: none !important; }
.no-motion .btn--primary::before, .no-motion .sticky-cta::before, .no-motion .btn--primary::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; transition: none !important; }
  html:not(.motion-on) .fv__ripple, html:not(.motion-on) .fv__light { display: none; }
  html:not(.motion-on) .part img { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  html:not(.motion-on) #cta .btn { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   FV：写真（画像）＋文字（HTML）。位置は 01-fv-photo.png（1024×1792）の実測％、
   文字の大きさは画面幅に比例（cqw）なので、どの幅でも写真との位置関係が崩れない
   ========================================================= */
.fv { aspect-ratio: 1024 / 1792; overflow: hidden; color: var(--ink); }
.fv__photo { position: absolute; inset: 0; overflow: hidden; }
.fv__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 40%; animation: fv-settle 2.8s var(--ease-out) both; }

/* 窓からの光がゆっくり揺れる */
.fv__light {
  position: absolute; inset: -10% -30% 30% 20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 250, 235, .35) 48%, transparent 60%);
  mix-blend-mode: soft-light;
  animation: fv-light 9s ease-in-out 1s infinite alternate both;
  pointer-events: none;
}

/* 小皿の波紋（しょうゆが落ちる位置：x=515px, y=940px） */
.fv__ripple {
  position: absolute; left: 50.3%; top: 52.5%;
  width: 30cqw; height: auto; transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.fv__ripple ellipse {
  fill: none; stroke: rgba(255, 246, 228, .75); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: ripple 3.3s ease-out infinite;
}
.fv__ripple ellipse:nth-child(2) { animation-delay: 1.1s; }
.fv__ripple ellipse:nth-child(3) { animation-delay: 2.2s; }

/* 縦書きの見出し：1文字ずつ、しょうゆが落ちる速さで上から現れる */
.fv__title {
  position: absolute; left: 7.5%; top: 5.5%;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: 5.3cqw;
  line-height: 1.25;
  letter-spacing: .06em;
  color: #1F2328;
}
.fv__line { display: inline; }
.fv__line--big { font-size: 12cqw; letter-spacing: 0; }
.fv__title .ch { display: inline-block; animation: ch-in .9s var(--ease-out) both; animation-delay: calc(.5s + var(--i, 0) * .11s); }
.fv__line--big .ch { animation-duration: 1.4s; }

/* 丸い印：線が描かれてから文字が出る */
.fv__seal {
  position: absolute; left: 31%; top: 5.5%;
  width: 17cqw; aspect-ratio: 1; margin: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(250, 250, 247, .72);
  backdrop-filter: blur(2px);
  animation: fade-in .6s ease both 2s;
}
.fv__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fv__seal circle { fill: none; stroke: #2E5A4C; stroke-width: 1.2; stroke-dasharray: 296; stroke-dashoffset: 0; animation: draw 1.4s var(--ease-out) both 2.1s; }
.fv__seal-text {
  position: relative;
  font-family: "Shippori Mincho", serif; font-size: 3.1cqw; line-height: 1.35;
  color: #2E5A4C; text-align: center;
  animation: fade-in .8s ease both 2.9s;
}

/* 補助コピーとラベル（左下の空いた天板の上） */
.fv__copy { position: absolute; left: 6%; top: 59%; width: 54%; }
.fv__sub {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; font-weight: 300;
  font-size: 3.1cqw; line-height: 1.75; letter-spacing: .02em;
}
.fv__sub-line { display: block; white-space: nowrap; animation: rise-in .9s var(--ease-out) both; }
.fv__sub-line:nth-child(1) { animation-delay: 2.2s; }
.fv__sub-line:nth-child(2) { animation-delay: 2.32s; }
.fv__sub-line:nth-child(3) { animation-delay: 2.44s; }
.fv__sub-line:nth-child(4) { animation-delay: 2.56s; }
.fv__chip {
  display: inline-block; margin: 1.6cqw 0 0;
  padding: .7cqw 2.2cqw;
  border-radius: 999px;
  background: rgba(230, 236, 232, .92);
  color: #2E5A4C;
  font-size: max(10px, 2.6cqw); line-height: 1.6; letter-spacing: .04em; white-space: nowrap;
  animation: rise-in .9s var(--ease-out) both 2.8s;
}

/* 無地のラベルに、商品名を書き入れる（瓶ごとの実測中心） */
.fv__label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: "Shippori Mincho", serif; font-size: max(9.5px, 2.3cqw); line-height: 1; letter-spacing: .12em;
  color: rgba(31, 35, 40, .82); white-space: nowrap;
  animation: fade-in 1s ease both;
}
.fv__label--soy, .fv__label--mirin, .fv__label--dashi { writing-mode: vertical-rl; }
.fv__label--soy { left: 64.4%; top: 79.2%; animation-delay: 3.0s; }
.fv__label--mirin { left: 76.2%; top: 79.9%; animation-delay: 3.12s; }
.fv__label--dashi { left: 88.5%; top: 80.6%; animation-delay: 3.24s; }
.fv__label--miso { left: 50.5%; top: 84.7%; animation-delay: 2.88s; }

/* 下の帯：下からせり上がる */
.fv__band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10%;
  padding: 0 6%;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 4cqw;
  background: #2E5A4C; color: #FAFAF7;
  animation: band-up 1.1s var(--ease-out) both 1.6s;
}
.fv__brand { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: 8.4cqw; line-height: 1; letter-spacing: .22em; }
.fv__brand-sub { margin: 0; font-weight: 300; font-size: 2.8cqw; letter-spacing: .06em; }
.fv__note { grid-column: 1 / -1; margin: -1.4cqw 0 0; font-size: max(10px, 2.1cqw); }

@keyframes fv-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fv-light { from { transform: translateX(-6%); opacity: .6; } to { transform: translateX(6%); opacity: 1; } }
@keyframes ripple {
  0% { transform: scale(.25); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@keyframes ch-in {
  from { opacity: 0; transform: translateY(-.5em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(2.4cqw); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 296; } to { stroke-dashoffset: 0; } }
@keyframes band-up { from { transform: translateY(100%); } to { transform: none; } }

/* 動きを止めたとき：波紋と光は消し、ほかは完成した状態で見せる */
.no-motion .fv__ripple, .no-motion .fv__light { display: none; }
