/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
  background: #ffffff;
}

/* Container - Snap Scrolling */
#container {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* iOS Safari対応 */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

#container::-webkit-scrollbar {
  display: none;
}

/* Slides */
.slide {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* iOS Safari対応 */
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  padding-bottom: 60px;
}

.slide-image {
  width: 100%;
  max-width: 500px;
  height: 100%;
  object-fit: contain;
  display: block; /* iOS Safari対応：inline要素による余白を削除 */
}

/* Instagram Link on Slide 4 */
.instagram-link {
  position: absolute;
  right: 32px;
  top: 421px;
  width: 120px;
  height: 120px;
  background-image: url("https://storage.googleapis.com/studio-design-asset-files/projects/xPORkVm0qr/s-960x960_v-fs_webp_83df864e-0c22-40a7-9d76-680f9016eb87_small.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* CTA Buttons */
.cta-buttons {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 1000;
}

.cta-button {
  width: 50%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  opacity: 0.9;
}

.cta-pink {
  background: linear-gradient(90deg, #ff79a7ff 0%, rgb(255, 45, 118) 50%, #ff8cd1ff 90%);
  font-size: 20px;
  line-height: 1;
  padding: 10px;
}

.cta-green {
  background: linear-gradient(90deg, #b3ff79ff 0%, rgb(11, 222, 0) 50%, #d0ff8cff 100%);
  font-size: 18px;
  line-height: 1;
  padding: 10px;
}

/* Responsive Design */
@media screen and (max-width: 540px) {
  .slide-image {
    max-width: 100%;
  }

  .cta-buttons {
    max-width: 100%;
  }

  .cta-pink {
    font-size: 18px;
  }

  .cta-green {
    font-size: 16px;
  }
}
