/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
}

/* ============================================================
   Section base
   ============================================================ */
.sec {
  max-width: 480px;
  margin: 0 auto;
}

.sec img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Layer (重ね表示)
   ============================================================ */
.layer-wrap {
  position: relative;
  overflow: hidden;
}

.layer-base {
  width: 100%;
  height: auto;
  display: block;
}

.layer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.layer-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Video
   ============================================================ */
.video-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.video-wrap video {
  width: 100%;
  display: block;
}

.video-wrap--221 video {
  aspect-ratio: 393 / 221;
  object-fit: cover;
}

.video-wrap--240 video {
  aspect-ratio: 393 / 240;
  object-fit: cover;
}

.video-wrap--263 video {
  aspect-ratio: 393 / 263;
  object-fit: cover;
}

/* ============================================================
   GIF
   ============================================================ */
.gif-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.gif-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   CTA
   ============================================================ */
.sec--cta {
  max-width: 480px;
  margin: 0 auto;
  background: #151515;
}

.cta-inner {
  position: relative;
}

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

.cta-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sec--cta.is-visible .cta-content {
  opacity: 1;
}

.cta-btn {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) scale(1);
  display: block;
  width: 70%;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
  animation: ctaScale 2s ease-in-out infinite;
  animation-play-state: paused;
}

.sec--cta.is-visible .cta-btn {
  opacity: 1;
  animation-play-state: running;
}

.cta-btn img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes ctaScale {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.07);
  }
}

/* ============================================================
   Color groups
   ============================================================ */
.color-group {
  max-width: 480px;
  margin: 0 auto;
}

.color-group--dark {
  background: #111111;
}

.color-group--light {
  background: #ebebeb;
}

/* ============================================================
   Fade-up animation (point section / color groups)
   ============================================================ */
.js-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#section-15,
#section-16,
#section-17 {
  margin-top: 40px;
}

#section-19 {
  padding-bottom: 64px;
}

#section-21 {
  padding-top: 26px;
  background: #232323;
}

.separator {
  display: block;
  width: 240px;
  height: 1px;
  background: #D9D9D9;
  border: none;
  margin: 64px auto;
}

/* ============================================================
   Floating CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, 430px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-cta a {
  display: block;
}

.floating-cta img {
  width: 100%;
  height: auto;
  display: block;
}
