
/* ---------- Reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.rv.done {
  transition: transform .5s var(--ease), box-shadow .5s, opacity .5s;
  transition-delay: 0s;
}

.tilt.rv {
  transform: translateY(46px) rotate(calc(var(--r, 0deg) * 2));
}

.polaroid.rv {
  transform: rotate(-14deg) translateY(60px) scale(.9);
}

.polaroid.rv.in {
  opacity: 1;
  transform: rotate(-4deg);
}

.polaroid.rv.in:hover {
  transform: rotate(-1deg) scale(1.03);
}

.rphoto.rv {
  transform: translateY(50px) rotate(calc(var(--r, 3deg) * 3));
}

.rphoto.rv.in {
  transform: rotate(var(--r, 3deg));
}

.rphoto.rv.in:hover {
  transform: rotate(0) scale(1.03);
}

.grid .item.rv {
  transform: translateY(50px) scale(.95);
}

.grid .item.rv.in {
  transform: none;
}

/* ================= スクロール演出（スライド・背景・パララックス） ================= */
@property --page-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #f8f3ee;
}

body {
  background: var(--page-bg);
  transition: --page-bg 1.1s ease;
}

.fv {
  background: none;
}

.wrap {
  position: relative;
  z-index: 1;
}

.rv {
  translate: 0 0;
  transition-property: opacity, transform, translate;
  transition-duration: 1.25s;
  transition-timing-function: var(--ease);
}

.rv[data-sl="l"] {
  translate: -130px 0;
}

.rv[data-sl="r"] {
  translate: 130px 0;
}

.rv[data-sl="u"] {
  translate: 0 100px;
}

.rv.in {
  translate: 0 0;
}

/* 見出し：英字は左からスライド、日本語はせり上がり */
.st.rv {
  opacity: 1;
  transform: none;
  translate: 0 0;
  transition: none;
}

.st .script {
  opacity: 0;
  translate: -150px 0;
  transition: opacity 1.1s var(--ease), translate 1.5s var(--ease);
}

.st h2 {
  opacity: 0;
  translate: 0 46px;
  transition: opacity 1.1s .2s var(--ease), translate 1.3s .2s var(--ease);
}

.st.in .script,
.st.in h2 {
  opacity: 1;
  translate: 0 0;
}

.polaroid.rv {
  transform: rotate(-14deg) translateY(40px) scale(.9);
}

.coupon.rv {
  transform: rotate(1.6deg);
}

/* ギャラリー：左右からワイプ
   ※ 枠（.item）ではなく中の写真（img）を隠す。
     枠ごと clip-path で隠すと「見えていない」と判断されて、表示の合図(.in)が出ないため。 */
.grid .item.rv {
  transform: scale(1.1);
  transition: transform 1.7s var(--ease), opacity .5s;
}

.grid .item.rv img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.3s var(--ease), transform 1s var(--ease);
}

.grid .item.rv:nth-child(even) img {
  clip-path: inset(0 0 0 100%);
}

.grid .item.rv.in {
  transform: none;
  opacity: 1;
}

.grid .item.rv.in img {
  clip-path: inset(0 0 0 0);
}

/* 背景の装飾（パララックス） */
section {
  overflow-x: clip;
}

.par {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: translate;
}

.par.paw {
  fill: var(--card);
  opacity: .3;
}

.par.blob {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(236, 190, 148, .55), rgba(236, 190, 148, 0) 70%);
}

.bigword {
  position: absolute;
  left: -4vw;
  white-space: nowrap;
  font-family: "Mrs Saint Delafield", "Caveat", cursive;
  font-size: clamp(130px, 23vw, 340px);
  line-height: 1;
  color: rgba(201, 154, 107, .2);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: translate;
}

/* スクロール進捗（肉球が歩く） */
.progress {
  position: fixed;
  right: 16px;
  top: 110px;
  bottom: 110px;
  width: 2px;
  background: rgba(122, 90, 75, .18);
  z-index: 55;
  border-radius: 2px;
}

.progress svg {
  position: absolute;
  left: 50%;
  top: 0;
  width: 26px;
  margin-left: -13px;
  fill: var(--accent);
  translate: 0 calc(var(--t, 0) * (100vh - 246px));
  rotate: calc(var(--t, 0) * 900deg);
}

@media (max-width:900px) {
  .progress {
    display: none;
  }
  .rv[data-sl="l"] {
    translate: -70px 0;
  }
  .rv[data-sl="r"] {
    translate: 70px 0;
  }
  .rv[data-sl="u"] {
    translate: 0 70px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .rv,
  .st .script,
  .st h2 {
    translate: 0 0 !important;
    opacity: 1;
  }
  .grid .item.rv {
    transform: none;
  }
  .grid .item.rv img {
    clip-path: none;
  }
  .par,
  .bigword,
  .progress {
    display: none;
  }
}

/* ================= シーン演出（写真→ボールがピュン→広がって情報） ================= */
#problem {
  background: #f7d8b8;
}

.reasons {
  background: #dce8c8;
}

.reasons .wave {
  display: none;
}

.reasons .pad {
  padding: 120px 0 130px;
}

#item {
  background: #fbeeb8;
}

#voice {
  background: #f6d5d3;
}

.scene {
  position: relative;
  height: 250vh;
  z-index: 2;
  --pw: min(calc(100vw - 28px), 1100px);
}

.scene-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: repeating-linear-gradient(-72deg, var(--sc2) 0 24px, rgba(255, 255, 255, .92) 24px 32px, var(--sc2) 32px 84px);
}

.scene-photo {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: var(--pw);
  translate: -50% 0;
  overflow: hidden;
  background: url(../images/w.png) center/cover no-repeat;
}

.scene-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: scale;
}

.scene-photo.cut {
  background: radial-gradient(120% 90% at 50% 100%, var(--sc3) 0, var(--sc2) 100%);
}

.scene-photo.cut::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sc3);
  translate: -50% 0;
  opacity: .85;
}

.scene-photo.cut img {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  height: 78%;
  width: auto;
  max-width: 94%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(74, 49, 40, .25));
}

.scene-title {
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% -50%;
  width: var(--pw);
  padding: 0 9%;
  color: #fff;
  font-size: clamp(64px, 13vw, 150px);
  line-height: .95;
  text-shadow: 0 4px 26px rgba(40, 20, 10, .38);
  rotate: -5deg;
  pointer-events: none;
  opacity: 0;
}

.cutscene .scene-title {
  color: var(--brown);
  text-shadow: none;
  top: 19%;
}

.scene-cover {
  position: absolute;
  inset: 0;
  background: var(--sc);
  clip-path: circle(0px at 50% 120%);
  will-change: clip-path;
}

.scene-ring {
  position: absolute;
  left: 50%;
  top: 120%;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 10px 26px rgba(40, 20, 10, .3);
  translate: -50% -50%;
  opacity: 0;
  pointer-events: none;
  box-sizing: content-box;
}

.scene-paw {
  position: absolute;
  left: 50%;
  top: 120%;
  width: 30px;
  translate: -50% -50%;
  fill: #fff;
  opacity: 0;
  pointer-events: none;
}

.scene-teaser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
  opacity: 0;
  pointer-events: none;
  color: var(--brown);
}

.scene-teaser .script {
  font-size: clamp(46px, 8vw, 84px);
  line-height: 1;
  color: var(--sc2);
  filter: brightness(.82) saturate(1.2);
  rotate: -4deg;
  margin-bottom: 18px;
}

.scene-teaser p {
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.7;
  letter-spacing: .1em;
  font-weight: 500;
}

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

/* ================= 境目：波＋透け感グラデ／スマホの切れ修正 ================= */
.rv.in[data-sl] {
  translate: 0 0;
}

@media (max-width:900px) {
  .rv[data-sl="l"]:not(.in) {
    translate: -26px 0;
  }
  .rv[data-sl="r"]:not(.in) {
    translate: 26px 0;
  }
  .rv[data-sl="u"]:not(.in) {
    translate: 0 50px;
  }
}

#about {
  background: #f8f3ee;
}

#offer {
  background: #f4e6d4;
}

#gallery {
  background: #f4efe6;
}

#flow {
  background: #edf0e2;
}

#faq {
  background: #f8f3ee;
}

.divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(50px, 7vw, 90px);
  pointer-events: none;
  z-index: 0;
  display: block;
}

.divider .w1 {
  animation: waveMove 9s ease-in-out infinite alternate;
}

.divider .w2 {
  animation: waveMove 12s ease-in-out infinite alternate-reverse;
}

.scene-edge {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: clamp(70px, 9vw, 120px);
  z-index: 5;
  pointer-events: none;
  display: block;
}

.scene-edge .w1 {
  animation: waveMove 9s ease-in-out infinite alternate;
}

.scene-edge .w2 {
  animation: waveMove 12s ease-in-out infinite alternate-reverse;
}

.fv .divider {
  z-index: 1;
}

.fv-btn {
  z-index: 2;
}

/* スマホのはみ出し修正 */
.offer-box>* {
  min-width: 0;
}

.coupon {
  min-width: 0;
}

@media (max-width:980px) {
  .offer-box {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn-paw .pad {
    min-width: 0;
    padding: 22px 30px 24px;
    font-size: 15px;
    gap: 12px;
  }
  .coupon .btn-paw {
    max-width: 100%;
  }
  .letter .pic {
    right: 8px;
  }
}

@media (max-width:520px) {
  .btn-paw .pad {
    padding: 20px 22px 22px;
    font-size: 14px;
    letter-spacing: .04em;
  }
  .coupon {
    padding: 30px 20px 26px;
  }
  .code {
    font-size: 24px;
    letter-spacing: .1em;
  }
}

/* ---------- FV: スマートフォンだけ高さと画像の見え方を拡大 ---------- */
@media (max-width:700px) {
  .fv {
    padding-top: 62px;
  }

  .fv-stage {
    height: min(82svh, 820px);
    min-height: 560px;
  }

  .fv-img,
  .fv-img img {
    width: 100%;
    height: 100%;
  }

  .fv-img img {
    object-fit: cover;
    object-position: center center;
  }
}

/* お悩み→About：透け感のある縦グラデーション／最後の波は無し */
#problem {
  background: linear-gradient(to bottom, #f7d8b8 0, #f7d8b8 calc(100% - clamp(170px, 24vw, 300px)), #f8f3ee 100%);
  padding-bottom: clamp(200px, 26vw, 320px);
}

#about {
  padding-top: 30px;
}

section.final {
  padding-top: 120px;
}

/* ---------- Responsive ---------- */
@media (max-width:980px) {
  nav {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    width: min(86%, 460px);
  }
  .hero {
    padding-top: 96px;
  }
  .scroll {
    display: none;
  }
  .about-grid,
  .offer-box,
  .p-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .p-grid {
    gap: 60px;
  }
  .harrow {
    margin-left: 0;
    transform: rotate(60deg) scale(.7);
    width: 120px;
    margin-bottom: -10px;
  }
  .rrow,
  .rrow:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rrow:nth-child(even) .rtxt {
    order: 0;
  }
  .rs {
    gap: 90px;
  }
  .i-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .letters {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .letter:nth-child(2) {
    margin-top: 0;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .spath {
    display: none;
  }
  .step:nth-child(3) {
    margin-top: 0;
  }
  .faq-grid {
    gap: 30px;
  }
  .faq-grid .st {
    position: static;
  }
  .offer-box {
    padding: 60px 30px;
  }
  .sticky {
    display: flex;
  }
  .stamp {
    left: -6px;
    width: 104px;
    height: 104px;
  }
  .stamp-in strong {
    font-size: 28px;
  }
  .sec-pad {
    padding: 80px 0;
  }
  .reasons .pad {
    padding: 130px 0 120px;
  }
  .final {
    padding: 140px 0 110px;
  }
  .always {
    right: 0;
    top: -8%;
  }
  .hd-cta {
    display: none;
  }
  .st .script {
    margin-bottom: -16px;
  }
}

@media (max-width:520px) {
  header {
    padding: 14px 18px;
  }
  .wrap {
    padding: 0 20px;
  }
  .hero-grid {
    padding: 0 20px;
  }
  .i-grid {
    gap: 30px 14px;
  }
  .i-card {
    padding: 10px 10px 18px;
  }
  .i-body {
    padding: 14px 2px 0;
  }
  .i-card:nth-child(2n) {
    margin-top: 30px;
  }
  .memo {
    padding: 40px 20px 28px 60px;
  }
  .memo::after {
    left: 42px;
  }
  .memo li {
    font-size: 17px;
  }
  .letter {
    padding: 44px 22px 24px;
  }
  .ans p {
    padding-left: 6px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv,
  .fade-up,
  .stamp {
    opacity: 1;
    transform: none;
  }
  .tilt.rv.in,
  .rphoto.rv.in {
    transform: rotate(var(--r, 0deg));
  }
  .polaroid.rv {
    transform: rotate(-4deg);
  }
  .catch .line span {
    transform: none;
  }
  .frame {
    clip-path: none;
  }
  .frame img {
    transform: none;
  }
  .memo li svg path,
  .harrow path {
    stroke-dashoffset: 0;
  }
  .hero h1 em,
  .p-right .big span {
    background-size: 100% 100%;
  }
}
