:root {
  --paper: #F7F4EE;
  --sepia: #3B3230;
  --ai: #2F4A6B;
  --wash: #A9BFD3;
  --hai: #7E766E;
  --max: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ECE7DE;
  color: var(--sepia);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

#lp {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 40px rgba(59, 50, 48, .08);
}

/* サンプル共通の注意書き（FV の上の細い黒帯） */
.notice {
  background: #141414;
  color: #CFC9BF;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
  padding: 7px 14px;
}
.notice a { color: #C9A25A; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.part { margin: 0; padding: 0; }
.frame { position: relative; display: block; line-height: 0; overflow: hidden; }
.frame img { display: block; width: 100%; height: auto; }

/* 画像の中のボタンの位置に重ねる、実際に押せる領域 */
.hot {
  position: absolute;
  display: block;
  color: transparent;
  font-size: 1px;
  text-decoration: none;
  border-radius: 8px;
  outline-offset: 3px;
}
.hot:focus-visible { outline: 3px solid var(--ai); }
.hot-fv  { left: 5.6%; top: 87.2%; width: 88.9%; height: 6.5%; }
.hot-cta { left: 4.6%; top: 84.4%; width: 90.8%; height: 7.6%; }

/* 一番の見せ場：FV の窓のにじみが、紙に水が広がるように少しだけ外へ広がる（1回だけ） */
.bloom {
  position: absolute;
  left: 2%; top: 19%;
  width: 96%; height: 50%;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(ellipse at 50% 50%, rgba(169,191,211,0) 52%, rgba(169,191,211,.34) 64%, rgba(169,191,211,.12) 74%, rgba(169,191,211,0) 84%);
  mix-blend-mode: multiply;
  filter: blur(6px);
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}
.is-ready .bloom { animation: bloom 2.2s ease-out .2s forwards; }
@keyframes bloom {
  0%   { opacity: 0;   transform: scale(.94); }
  45%  { opacity: 1;   transform: scale(1.0); }
  100% { opacity: .55; transform: scale(1.03); }
}

/* スクロールで各パートが静かに浮く */
.part { opacity: 0; transform: translateY(14px); transition: opacity .7s ease-out, transform .7s ease-out; }
.part.is-in, .part-fv { opacity: 1; transform: none; }

.foot {
  padding: 28px 20px 110px;
  background: var(--paper);
  border-top: 1px solid rgba(59, 50, 48, .15);
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
}
.foot-note { margin: 0 0 10px; color: var(--hai); }
.foot-note a { color: var(--ai); }
.foot-brand { margin: 0; letter-spacing: .2em; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }

/* 追従ボタン（スマホ） */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(247,244,238,.97), rgba(247,244,238,.88));
  border-top: 1px solid rgba(59, 50, 48, .12);
  transform: translateY(110%);
  transition: transform .35s ease-out;
  z-index: 10;
}
.sticky.is-on { transform: none; }
.sticky-btn {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--ai);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .06em;
  border-radius: 8px;
  text-decoration: none;
}

@media (min-width: 900px) {
  .sticky { display: none; }
  .foot { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .part, .sticky { transition: none; }
  .part { opacity: 1; transform: none; }
  .is-ready .bloom { animation: none; opacity: .55; transform: none; }
}
