/* ══════════════════════════════════════════════
   BERRY BLOOM LP — CSS
   3-Layer Parallax + Smooth Scroll + Floating
══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px}
body{
  font-family:'Josefin Sans',sans-serif;
  color:#fff;
  overflow-x:hidden;
  cursor:auto;
  background:#120005;
}

/* ── SMOOTH SCROLL WRAPPER ── */
#scroll-root{
  position:fixed;
  top:0;left:0;
  width:100%;
  will-change:transform;
}
#scroll-spacer{position:fixed;top:0;left:0;width:1px;pointer-events:none;visibility:hidden}

/* ══════════════════════════════════════════════
   GLOBAL SECTION BG (Gradient texture)
══════════════════════════════════════════════ */
#global-section-bg{
  position:absolute;
  top:0;left:0;
  width:100%;
  z-index:0;
  background-image:url('accets/images/bg3.png');
  background-size:100%;
  background-position:center;
  background-attachment:fixed;
  /* opacity:0.5; */
  pointer-events:none;
}

/* ══════════════════════════════════════════════
   FLOATING ANIMATION
══════════════════════════════════════════════ */
@keyframes floatA{
  0%,100%{transform:translateY(0px) rotate(var(--base-rot,0deg)) scale(1)}
  30%    {transform:translateY(-18px) rotate(calc(var(--base-rot,0deg) + 3deg)) scale(1.01)}
  70%    {transform:translateY(-8px)  rotate(calc(var(--base-rot,0deg) - 2deg)) scale(1.005)}
}
@keyframes floatB{
  0%,100%{transform:translateY(0px) rotate(var(--base-rot,0deg))}
  40%    {transform:translateY(-22px) rotate(calc(var(--base-rot,0deg) - 3deg))}
  80%    {transform:translateY(-10px) rotate(calc(var(--base-rot,0deg) + 1.5deg))}
}
@keyframes floatC{
  0%,100%{transform:translateY(0px) rotate(var(--base-rot,0deg))}
  50%    {transform:translateY(-14px) rotate(calc(var(--base-rot,0deg) + 4deg))}
}
.float-a{animation:floatA 6s ease-in-out infinite}
.float-b{animation:floatB 8s ease-in-out infinite;animation-delay:-2s}
.float-c{animation:floatC 5s ease-in-out infinite;animation-delay:-4s}

/* ══════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════ */
.sr{
  opacity:0;
  transition:opacity 0.9s cubic-bezier(0.16,1,0.3,1),
             transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.sr.up   {transform:translateY(50px)}
.sr.left {transform:translateX(-50px)}
.sr.right{transform:translateX(50px)}
.sr.scale{transform:scale(0.88)}
.sr.on   {opacity:1;transform:none}
.sd1{transition-delay:0.08s}.sd2{transition-delay:0.16s}.sd3{transition-delay:0.24s}
.sd4{transition-delay:0.32s}.sd5{transition-delay:0.40s}.sd6{transition-delay:0.50s}

/* ══════════════════════════════════════════════
   LOADING
══════════════════════════════════════════════ */
#loading{
  position:fixed;inset:0;z-index:9999;
  background:#120005;
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1.5rem;
  transition:opacity 0.9s ease,visibility 0.9s ease;
}
#loading.out{opacity:0;visibility:hidden}
.ld-logo{
  font-family:'Cormorant Garamond',serif;font-size:3rem;font-style:italic;font-weight:300;letter-spacing:0.25em;
  background:linear-gradient(90deg,#fff,#ffb3ec);-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  animation:ldPulse 1.6s ease-in-out infinite;
}
.ld-bar{width:200px;height:1px;background:rgba(255,179,236,0.15);overflow:hidden}
.ld-fill{height:100%;background:linear-gradient(90deg,#ff2222,#ffb3ec);animation:ldFill 1.6s ease-out forwards}
@keyframes ldFill{from{width:0}to{width:100%}}
@keyframes ldPulse{0%,100%{opacity:0.4}50%{opacity:1}}

/* ══════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════ */
.mq-band{
  position:relative;z-index:100;overflow:hidden;
  padding:1rem 0;
  background:rgba(255,34,34,0.09);
  border-top:1px solid rgba(255,34,34,0.18);
  border-bottom:1px solid rgba(255,34,34,0.18);
}
.mq-band.lt{background:rgba(255,179,236,0.06);border-color:rgba(255,179,236,0.12)}
.mq-inner{display:flex;white-space:nowrap;width:max-content}
.mq-fwd{animation:mqF 28s linear infinite}
.mq-rev{animation:mqR 28s linear infinite}
.mq-item{
  font-family:'Cormorant Garamond',serif;font-size:0.95rem;font-style:italic;font-weight:300;
  letter-spacing:0.1em;color:#ffb3ec;padding:0 3rem;flex-shrink:0;
}
.mq-dot{color:rgba(255,34,34,0.5);margin:0 0.8rem;font-size:0.6rem}
@keyframes mqF{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes mqR{from{transform:translateX(-50%)}to{transform:translateX(0)}}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-r{
  display:inline-block;
  background:linear-gradient(135deg,#ff2222,#ff5050);
  color:#fff;padding:0.85rem 2.4rem;border-radius:100px;
  font-size:0.72rem;letter-spacing:0.2em;text-transform:uppercase;
  text-decoration:none;border:none;cursor:pointer;
  box-shadow:0 8px 32px rgba(255,34,34,0.4);
  transition:transform 0.3s,box-shadow 0.3s;
  position:relative;z-index:1000;
}
.btn-r:hover{transform:translateY(-3px);box-shadow:0 14px 42px rgba(255,34,34,0.6)}
.btn-o{
  display:inline-block;
  background:transparent;color:#ffb3ec;
  padding:0.85rem 2.4rem;border-radius:100px;
  font-size:0.72rem;letter-spacing:0.2em;text-transform:uppercase;
  text-decoration:none;cursor:pointer;border:1px solid rgba(255,179,236,0.35);
  transition:background 0.3s,color 0.3s,transform 0.3s;
  position:relative;z-index:1000;
}
.btn-o:hover{background:#ffb3ec;color:#120005;transform:translateY(-3px)}

/* ══════════════════════════════════════════════
   IMAGE TILE
══════════════════════════════════════════════ */
.img-tile{
  border-radius:1.2rem;overflow:hidden;position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  background-size:cover;
  background-position:center;
}
.img-tile::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.07) 0%,transparent 55%);
  pointer-events:none;
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY HELPERS
══════════════════════════════════════════════ */
.eyebrow{font-size:0.9rem;letter-spacing:0.32em;text-transform:uppercase;color:#ffffff;margin-bottom:0.9rem}
.sec-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2.2rem,5.5vw,5rem);font-style:italic;font-weight:300;
  line-height:1.06;margin-bottom:1.5rem;letter-spacing:0.02em;
  position:relative;z-index:1000;
}
.sec-title em{color:#ffb3ec;font-style:italic}
.sec-body{
  font-family:'Noto Serif JP',serif;font-size:1.0rem;font-weight:200;
  line-height:2.5;color:rgb(255, 255, 255);letter-spacing:0.06em;
  max-width:500px;margin:0 auto 15px;
  position:relative;z-index:1000;
}
.p-no{font-size:0.62rem;letter-spacing:0.32em;text-transform:uppercase;color:#ffffff;margin-bottom:0.9rem}
.p-name{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2.5rem,6vw,5.5rem);font-weight:300;font-style:italic;
  line-height:0.92;margin-bottom:0.5rem;
  background:linear-gradient(110deg,#ff6464 0%,#fa6ad4 60%,#ff3dce 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.p-jp{font-family:'Noto Serif JP',serif;font-size:1.5rem;font-weight:200;letter-spacing:0.5em;color:#ffffff;margin-bottom:1.4rem}
.p-tags{margin-bottom:1.4rem}
.p-tag{
  display:inline-block;font-size:1.0rem;letter-spacing:0.18em;text-transform:uppercase;
  border:1px solid rgba(255,179,236,0.28);color:rgb(255, 255, 255);
  padding:0.22rem 0.85rem;border-radius:100px;margin-right:0.5rem;
}
.p-desc{
  font-family:'Noto Serif JP',serif;font-size:0.86rem;font-weight:200;
  line-height:2.4;color:rgb(255, 255, 255);margin-bottom:1.8rem;
  letter-spacing:0.04em;max-width:380px;
}
.p-price{font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:300;color:#ffb3ec}
.p-price small{font-size:0.8rem;color:rgba(255,255,255,0.4);margin-left:0.3rem}
.p-glass{
  background:rgba(255,255,255,0.035);
  border:1px solid rgba(255,179,236,0.13);
  backdrop-filter:blur(16px);
  border-radius:2rem;padding:2.8rem;
  position:relative;z-index:1000;
  margin:15px;
}
.divider{width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,179,236,0.18),transparent)}
.inner{max-width:1200px;margin:0 auto;padding:0 4vw}
.tc{text-align:center}
.prod-idx{
  position:absolute;
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(7rem,16vw,15rem);font-weight:300;font-style:italic;
  line-height:1;color:rgba(255,34,34,0.07);
  pointer-events:none;z-index:0;letter-spacing:-0.04em;user-select:none;
  top:-1rem;right:2vw;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hero{
  position:relative;
  height:100vh;min-height:640px;
  overflow:hidden;
  display:flex;align-items:flex-end;
  z-index:10;
}

/* Hero BG image - horizontal → vertical on mobile */
.hero-bg-img{
  position:absolute;inset:0;z-index:0;
  top: -50px;left: -50px;
  width: 110%;
  background-image:url('accets/images/main2.jpg');
  background-size:cover;
  background-position:center;
  will-change:transform;
}
@media(max-width:768px){
  .hero-bg-img{
    background-image:url('https://images.unsplash.com/photo-1488477181946-6428a0291777?w=900&h=1600&fit=crop&q=80');
  }
}

/* Overlay gradient for text readability */
.hero-bg-img::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(18,0,5,0.85) 0%,transparent 60%);
}

/* Hero text */
.hero-text{
  position:relative;z-index:1000;
  padding:0 0 5rem 5vw;
  max-width:560px;
  margin-bottom:15px;
}
.ht-eyebrow{
  display:inline-block;font-size:0.62rem;letter-spacing:0.32em;text-transform:uppercase;
  color:#ffb3ec;margin-bottom:1.2rem;
  animation:fromBottom 1s 0.4s both;
}
.ht-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(4.5rem,10vw,10.5rem);
  font-weight:300;font-style:italic;line-height:0.84;letter-spacing:-0.01em;
  margin-bottom:1.2rem;
  animation:fromBottom 1s 0.6s both;
}
.ht-t1{display:block;background:linear-gradient(100deg,#fff 0%,#ffddf5 70%,#ffb3ec 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.ht-t2{display:block;font-style:italic;background:linear-gradient(100deg,#ff2222 0%,#ffb3ec 60%,#fff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.ht-sub{
  font-family:'Noto Serif JP',serif;font-size:0.8rem;font-weight:200;
  letter-spacing:0.2em;color:rgb(255, 255, 255);
  line-height:2.2;margin-bottom:2.2rem;
  animation:fromBottom 1s 0.8s both;
}
.ht-cta{display:flex;gap:1rem;flex-wrap:wrap;animation:fromBottom 1s 1s both}
@media(max-width:900px){.hero-text{padding-bottom:3.5rem}.ht-cta{justify-content:flex-start}}

.hero-scroll{
  position:absolute;bottom:2rem;right:5vw;z-index:1000;
  display:flex;flex-direction:column;align-items:center;gap:0.6rem;
  animation:fadeIn 1s 1.6s both;
}
.hero-scroll span{font-size:0.56rem;letter-spacing:0.38em;text-transform:uppercase;color:rgba(255,255,255,0.32);writing-mode:vertical-rl}
.hs-line{width:1px;height:56px;background:linear-gradient(to bottom,#ffb3ec,transparent);animation:scPulse 2.2s ease-in-out infinite}
@keyframes scPulse{0%,100%{opacity:0.28;height:56px}50%{opacity:1;height:72px}}

/* ══════════════════════════════════════════════
   CAMPAIGN
══════════════════════════════════════════════ */
#campaign{
  position:relative;z-index:10;
  padding:9rem 0 0;overflow:hidden;
}

.camp-intro{
  text-align:center;padding:0 1.5rem;margin-bottom:5rem;
  position:relative;z-index:1000;
}

/* 4-tile irregular field */
.camp-visual{
  position:relative;
  height:70vmin;min-height:400px;max-height:600px;
  margin:0 2vw 3rem;z-index:100;
  overflow:visible;
}
.cv{
  position:absolute;border-radius:1.3rem;overflow:hidden;
  box-shadow:0 16px 50px rgba(0,0,0,0.45);
  will-change:transform;
}
.cv::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,0.07) 0%,transparent 55%);pointer-events:none}
.cv .cv-lb{
  position:absolute;bottom:1rem;left:1.2rem;
  font-family:'Cormorant Garamond',serif;font-style:italic;font-size:0.95rem;font-weight:300;
  color:rgba(255,255,255,0.9);text-shadow:0 2px 12px rgba(0,0,0,0.7);letter-spacing:0.08em;
  z-index:10;
}
.cv1{width:42%;height:75%;top:0;left:2%;--base-rot:-2deg}
.cv2{width:28%;height:48%;top:8%;right:4%;--base-rot:3deg}
.cv3{width:32%;height:58%;top:0;right:34%;--base-rot:-1.5deg}
.cv4{width:30%;height:52%;bottom:0;left:28%;--base-rot:2.5deg}

@media(max-width:768px){
  .camp-visual{height:auto;position:static;display:grid;grid-template-columns:1fr 1fr;gap:0.75rem;margin:0 1rem 3rem}
  .cv{position:static!important;width:100%!important;height:200px!important;border-radius:1rem}
}

/* ══════════════════════════════════════════════
   PRODUCT SECTIONS
══════════════════════════════════════════════ */
.prod-sec{
  position:relative;z-index:10;
  padding:6rem 0;overflow:hidden;
}
.prod-sec::before{
  content:'';position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,179,236,0.18),transparent);
}
.prod-content{position:relative;z-index:100}

/* ── P1 Chocolate ── */
.p1-layout{max-width:1200px;margin:0 auto;padding:0 4vw;position:relative;min-height:560px}
.p1-main{position:absolute;left:0;top:0;width:50%;height:480px;--base-rot:-1.5deg;z-index:2;margin:15px}
.p1-text{position:relative;z-index:1000;margin-left:50%;padding-top:3rem}
.p1-s1{position:absolute;width:20%;height:180px;top:-2rem;right:92%;--base-rot:3.5deg;z-index:100;margin:15px}
@media(max-width:900px){
  .p1-layout{min-height:auto;padding:0 1.5rem}
  .p1-main{position:relative;width:100%;height:300px;margin-bottom:2rem}
  .p1-text{margin-left:0;padding-top:0}
  .p1-s1{display:none}
}

/* ── P2 Mousse ── */
.p2-panorama{
  position:relative;
  width:calc(100% - 6vw);margin:0 3vw;
  height:55vh;min-height:340px;
  border-radius:1.6rem;overflow:hidden;
  box-shadow:0 24px 72px rgba(0,0,0,0.5);
  z-index:100;
  margin-bottom:15px;
}
.p2-overlay-gradient{
  position:absolute;inset:0;z-index:2;
  background:linear-gradient(to right,rgba(18,0,5,0.7) 0%,transparent 58%);
}
.p2-overlay{
  position:absolute;bottom:2.5rem;left:3rem;z-index:1000;
  max-width:420px;
  padding:1.5rem 2rem 1.5rem 0;border-radius:0.5rem;
}
.p2-sub{display:flex;gap:0.8rem;margin:1.2rem 3vw 0;z-index:100;position:relative}
.p2-sub .img-tile{flex:1;height:160px;margin:15px}
.p2-text{max-width:1200px;margin:2rem auto 0;padding:0 4vw;position:relative;z-index:1000}
@media(max-width:768px){
  .p2-panorama{width:calc(100% - 2rem);margin:0 1rem 15px}
  .p2-overlay{bottom:1.5rem;left:1.5rem}
  .p2-sub{margin:0.75rem 1rem 0}
  .p2-text{padding:0 1.5rem}
}

/* ── P3 Ice Cream ── */
.p3-layout{max-width:1200px;margin:0 auto;padding:0 4vw;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;position:relative}
.p3-imgs{position:relative;height:560px}
.p3-i1{position:absolute;width:76%;height:62%;top:0;right:0;--base-rot:2deg;z-index:2;margin:15px}
.p3-i2{position:absolute;width:54%;height:50%;bottom:0;left:0;--base-rot:-2.5deg;z-index:3;margin:15px}
@media(max-width:768px){
  .p3-layout{grid-template-columns:1fr;gap:2rem;padding:0 1.5rem}
  .p3-imgs{height:300px}
  .p3-i1{width:70%;height:100%}.p3-i2{width:45%;height:70%;bottom:0}
}

/* ── P4 Donut ── */
.p4-scene{max-width:1200px;margin:0 auto;padding:0 4vw;position:relative;min-height:540px}
.p4-big{position:absolute;left:0;top:0;width:48%;height:480px;--base-rot:-1deg;border-radius:1.2rem;z-index:2;margin:15px}
.p4-sm1{position:absolute;left:-15%;top:20rem;width:18%;height:180px;--base-rot:3.5deg;z-index:100;margin:15px}
.p4-text{position:relative;z-index:1000;margin-left:48%;padding-top:2rem}
@media(max-width:900px){
  .p4-scene{min-height:auto;padding:0 1.5rem}
  .p4-big{position:relative;left:0;width:100%;height:300px;margin-bottom:2rem}
  .p4-sm1{display:none}
  .p4-text{margin-left:0;padding-top:0}
}

/* ══════════════════════════════════════════════
   QUALITY
══════════════════════════════════════════════ */
#quality{position:relative;z-index:10;padding:7rem 0}

.q-band{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin:4rem auto;
  max-width:1100px;
  padding:0 2vw;
}
.q-tile{
  border-radius:1rem;overflow:hidden;position:relative;
  will-change:transform;
  height:280px;
  margin:15px;
}
@media(max-width:768px){
  .q-band{grid-template-columns:1fr;height:auto}
  .q-tile{height:200px}
}

.q-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;max-width:1100px;margin:0 auto;padding:0 2vw}
@media(max-width:700px){.q-cards{grid-template-columns:1fr;gap:1rem}}
.q-card{
  border:1px solid rgba(255,179,236,0.1);border-radius:1.6rem;
  padding:2rem 1.8rem;background:rgba(255,255,255,0.025);backdrop-filter:blur(12px);
  transition:transform 0.4s,border-color 0.4s;
  position:relative;z-index:1000;
  margin:15px;
}
.q-card:hover{transform:translateY(-7px);border-color:rgba(255,179,236,0.32)}
.q-icon{font-size:2.4rem;margin-bottom:1rem}
.q-card h3{font-family:'Cormorant Garamond',serif;font-size:1.45rem;font-weight:300;font-style:italic;margin-bottom:0.7rem;color:#ffdaf5}
.q-card p{font-family:'Noto Serif JP',serif;font-size:0.84rem;font-weight:200;line-height:2.2;color:rgba(255,255,255,0.55)}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer{
  position:relative;z-index:1000;
  height:85px;
  background:#0a0003;
  display:flex;align-items:center;justify-content:center;
  border-top:1px solid rgb(255, 5, 5);
}
.footer-content{text-align:center}
.footer-copy{
  font-size:0.72rem;letter-spacing:0.12em;color:rgb(255, 255, 255);
  margin-bottom:0.3rem;
}
.footer-tagline{
  font-family:'Noto Serif JP',serif;font-size:0.68rem;font-weight:200;
  letter-spacing:0.15em;color:rgb(255, 255, 255);
}

/* ══════════════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════════════ */
.back-to-top{
  position:fixed;
  bottom:2rem;right:2rem;
  z-index:9000;
  width:50px;height:50px;
  border-radius:50%;
  background:linear-gradient(135deg,#ff2222,#ff5050);
  border:none;
  box-shadow:0 6px 24px rgba(255,34,34,0.4);
  color:#fff;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s,visibility 0.3s,transform 0.3s,box-shadow 0.3s;
}
.back-to-top.show{
  opacity:1;
  visibility:visible;
}
.back-to-top:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 32px rgba(255,34,34,0.6);
}
@media(max-width:768px){
  .back-to-top{bottom:1.5rem;right:1.5rem;width:44px;height:44px}
}

/* ══════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════ */
@keyframes fromBottom{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
