/* ================================================================
   MUSUBIYA LP — IMAGE-BASED LAYOUT
   ================================================================

   LAYOUT:
   PC (≥980px): content 980px centered, background tiles both sides
   SP (<980px):  content full width, no bg tiles, sticky footer CTA

   Each section = LP_x.jpg as background image
                + slide images overlaid on phone mockup area
                + CTA button images at bottom

   ================================================================ */

:root {
  --w: 980px;
  --c-green: #2D5A22;

  /* frame tuning */
  --sec1-top: 24.5%;
  --sec1-left: 9%;
  --sec1-width: 82%;
  --sec1-ar: 1031 / 1261;

  --sec3-top: 22%;
  --sec3-left: -10%;
  --sec3-width: 124%;
  --sec3-ar: 1031 / 1261;

  --sec4-top: 18%;
  --sec4-left: 9%;
  --sec4-width: 80%;
  --sec4-ar: 1031 / 1261;

  --slider-radius: 34px;
  --debug-outline: none;
  /* 2px dashed rgba(255,0,0,.6) */

  --sidebar-w: 140px;   
  --sidebar-gap: 10px; 
  --sidebar-edge: 10px; 


}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  display: block;
  text-decoration: none;
}

body {
  background: url('../img/background.jpg');
  overflow-x: hidden;
  font-family: sans-serif;
}


/* ================================================================
   PC-ONLY / SP-ONLY VISIBILITY
   ================================================================ */
.pc-only {
  display: none !important;
}

.sp-only {
  display: block;
}

@media (min-width: 980px) {
  .pc-only {
    display: block !important;
  }

  .sp-only {
    display: none !important;
  }
}




/* ================================================================
   FLOATING SIDEBARS  (PC only, outside 980px)
   ================================================================ */
.sidebar-l,
.sidebar-r{
  position: fixed;
  top: 80%;
  transform: translateY(-50%);
  z-index: 500;
}

/* Sidebar left */
.sidebar-l{
  right: min(
    calc(50% + var(--w)/2 + var(--sidebar-gap)),
    calc(100vw - var(--sidebar-w) - var(--sidebar-edge))
  );
}

/* Sidebar right */
.sidebar-r{
  left: min(
    calc(65% + var(--w)/2 + var(--sidebar-gap)),
    calc(100vw - var(--sidebar-w) - var(--sidebar-edge))
  );
}

/* ≤ 980px  */
@media (max-width: 980px){
  .sidebar-l,
  .sidebar-r{ display: none !important; }
}

.side-btns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 140px;
  height: 140px;
  background: var(--c-green);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
  transition: opacity .2s, transform .15s;
}

.side-btn {
  flex-direction: column;
  gap: 4px;
}

.side-btn__line {
  display: block;
}

.side-btn:hover {
  opacity: .85;
  transform: scale(1.05);
}

.side-banners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100px;
}

.side-banners a {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: transform .15s, opacity .15s;
}

.side-banners a:hover {
  transform: scale(1.03);
  opacity: .9;
}

.side-banners img {
  width: 100%;
}

/* ================================================================
   STICKY FOOTER CTA  (SP only)
   ================================================================ */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 44%;
  transform: translateX(-50%); 
  
  z-index: 900;
  padding: 8px 14px;
  background: linear-gradient(to top, rgba(245, 240, 232, .97) 65%, transparent);
  width: 92%;          
  max-width: 430px;
  display: flex;
  justify-content: center;
}

.sticky-footer a {
  display: block;
  margin: 0 auto;
  width: 100%; 
}

.sticky-footer img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

/* ================================================================
   PAGE LAYOUT
   ================================================================ */
.page-outer {
  display: flex;
  justify-content: center;
}

.page-wrap {
  width: 100%;
  max-width: var(--w);
}

/* ================================================================
   LP SECTION — base structure
   ================================================================ */
.lp-section {
  position: relative;
  width: 100%;
}

.section-bg {
  position: relative;
  width: 100%;
  z-index: 0;
}

.section-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

.section-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section-content a,
.section-content button {
  pointer-events: all;
}

/* ================================================================
   SLIDER OVERLAYS
   ================================================================ */
.slide-overlay {
  position: absolute;
  overflow: hidden;
}

/* Section 1 */
.slide-overlay--sec1 {
  top: 20.5%;
  left: 9%;
  width: 82%;
}

/* Section 2 */
.slide-overlay--sec2 {
  top: 2%;
  left: 8%;
  width: 67%;
}

/* Section 3 */
.slide-overlay--sec3 {
  top: 16%;
  left: 27%;
  width: 43%;
}

/* Slider inner */
.slider-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

@media (min-width: 980px) {
  .slider-wrap {
    border-radius: 20px;
  }
}

.slide-track {
  display: flex;
  will-change: transform;
  transition: transform .45s cubic-bezier(.25, .46, .45, .94);
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  display: block;
}

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding-top: 5px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(0, 0, 0, .2);
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}

.dot.active {
  background: var(--c-green);
  border-color: var(--c-green);
}

@media (min-width: 980px) {
  .dot {
    width: 9px;
    height: 9px;
  }
}

/* ================================================================
   CTA BUTTON IMAGES
   ================================================================ */
.section-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  max-width: 540px;
  cursor: pointer;
}

.section-cta:hover {
  filter: brightness(1.05);
}

.section-cta:active {
  transform: translateX(-50%) scale(.98);
}

.section-cta img {
  width: 100%;
  border-radius: 50px;
}

.section-cta--sec1 {
  bottom: 3%;
}

.section-cta--sec3 {
  bottom: 2.5%;
}

.section-cta--sec4 {
  bottom: 2.5%;
}

.section-cta--sec5 {
  bottom: 11%;
}

/* ================================================================
   SPACING FOR SP STICKY FOOTER
   ================================================================ */
@media (max-width: 979px) {
  .lp-section--last {
    padding-bottom: 56px;
  }
}

/* ================================================================
   FADE-IN ANIMATION
   ================================================================ */
.lp-section {
  animation: fadeIn .4s ease both;
}

.lp-section:nth-child(1) {
  animation-delay: 0s;
}

.lp-section:nth-child(2) {
  animation-delay: .06s;
}

.lp-section:nth-child(3) {
  animation-delay: .10s;
}

.lp-section:nth-child(4) {
  animation-delay: .14s;
}

.lp-section:nth-child(5) {
  animation-delay: .17s;
}

.lp-section:nth-child(6) {
  animation-delay: .20s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ================================================================
   SP SLIDER (Swipe left/right) — 1 frame, N images
   ================================================================ */
.slide-overlay {
  outline: var(--debug-outline);
}

.slide-overlay--sec1 {
  top: var(--sec1-top);
  left: var(--sec1-left);
  width: var(--sec1-width);
  --frame-ar: var(--sec1-ar);
}

.slide-overlay--sec3 {
  top: var(--sec3-top);
  left: var(--sec3-left);
  width: var(--sec3-width);
  --frame-ar: var(--sec3-ar);
}

.slide-overlay--sec4 {
  top: var(--sec4-top);
  left: var(--sec4-left);
  width: var(--sec4-width);
  --frame-ar: var(--sec4-ar);
}

/* Slider root */
.sp-slider {
  position: relative;
  width: 100%;
  pointer-events: auto;
}

/* Viewport */
.sp-slider__viewport {
  width: 100%;
  overflow: hidden;
  border-radius: var(--slider-radius);
  aspect-ratio: var(--frame-ar);
  background: transparent;
}

@media (min-width: 980px) {
  .sp-slider__viewport {
    border-radius: 44px;
  }
}

/* Track + slide */
.sp-slider__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .45s cubic-bezier(.25, .46, .45, .94);
}

.sp-slider__slide {
  flex: 0 0 100%;
  height: 100%;
}

.sp-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Dots */
.sp-slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 6px;
}

.sp-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(0, 0, 0, .2);
  padding: 0;
  cursor: pointer;
  transition: transform .15s, background .2s;
}

.sp-slider__dot:hover {
  transform: scale(1.1);
}

.sp-slider__dot.is-active {
  background: var(--c-green);
  border-color: var(--c-green);
}

@media (min-width: 980px) {
  .sp-slider__dot {
    width: 9px;
    height: 9px;
  }
}

/* Arrows (optional) */
.sp-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sp-slider__arrow--prev {
  left: 22px;
}

.sp-slider__arrow--next {
  right: 8px;
}

@media (hover: hover) {
  .sp-slider__arrow {
    opacity: .0;
    transition: opacity .2s;
  }

  .sp-slider:hover .sp-slider__arrow {
    opacity: 1;
  }
}

.sp-slider__viewport {
  pointer-events: auto;
  touch-action: pan-y;
}

.sp-slider {
  pointer-events: auto;
}

.slide-overlay {
  pointer-events: auto;
}


/* ========== Drag/Swipe feel ========== */
.sp-slider__viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.sp-slider__viewport:active {
  cursor: grabbing;
}

.sp-slider__track {
  display: flex;
  will-change: transform;
  transition: transform .35s cubic-bezier(.25, .46, .45, .94);
}

.sp-slider.is-dragging .sp-slider__track {
  transition: none;
}

.sp-slider__slide {
  flex: 0 0 100%;
}

.sp-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}