/* =====================================================================
 *  Look & feel — generated by the LP builder, safe to leave as-is
 * ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@700;800&family=Zen+Old+Mincho:wght@700;900&display=swap');

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

:root {
  --accent: #e8734a;
  /* CTA footer height scales with viewport height, matching cp-conple's
   * actual ~20dvh footer, with a floor/ceiling so it never gets too
   * cramped or too tall. */
  --cta-zone: calc(clamp(130px, 19dvh, 190px) + env(safe-area-inset-bottom));
}

html, body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Noto Sans JP", sans-serif;
}

/* Fix the width to a phone size (centered vertically-long layout even on PC) */
#lp {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
#lp::-webkit-scrollbar { display: none; }
#lp { -ms-overflow-style: none; scrollbar-width: none; }

/* One screen = one slide */
.slide {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Keep the background color visible in the letterbox, and reserve room at
 * the bottom of every slide for the persistent CTA footer. */
.slide {
  background: #fff;
  padding-bottom: var(--cta-zone);
}
.slide-fg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Dot indicator ---------------------------------------------------- */
#dots {
  position: fixed;
  top: 50%;
  right: max(calc(12px + env(safe-area-inset-right)), calc((100% - 480px)/2 + 12px));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.4vw, 10px);
  z-index: 50;
}
#dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  box-shadow: 0 0 4px rgba(0,0,0,.4);
  transition: all .25s;
  cursor: pointer;
}
#dots .dot.active {
  background: #fff;
  transform: scale(1.45);
}

/* Persistent CTA footer --------------------------------------------- */
#cta-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
}
.cta-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 14px 20px 14px 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-light, var(--accent)) 0%, var(--accent) 55%, var(--accent-dark, var(--accent)) 100%);
  border: 4px solid #d9c48a;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  text-decoration: none;
}
.cta-pill.no-badge {
  padding-left: 22px;
}
.cta-badge-medal {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f5eeda;
  border: 3px solid #d9c48a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
.cta-badge-medal span {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 13px;
  font-weight: 800;
  color: #7a5a2a;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.cta-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-pill.no-badge .cta-copy {
  text-align: center;
}
.cta-subhead {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(12.5px, 3.6vw, 14.5px);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  line-height: 1.3;
}
.cta-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(24px, 8vw, 34px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
}
.cta-action span:first-child {
  white-space: nowrap;
}
.cta-pill.no-badge .cta-action {
  justify-content: center;
}
.cta-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: 0 0 auto;
}

/* Swipe-up hint on the first slide ----------------------------------- */
.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--cta-zone) + 22px);
  transform: translateX(-50%);
  z-index: 10;
  opacity: .9;
  transition: opacity .35s;
  pointer-events: none;
}
.swipe-hint.swipe-hint-hidden { opacity: 0; }
.swipe-hint-arrow {
  display: block;
  width: 26px;
  height: 26px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 0 0 0 4px;
  transform: rotate(135deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  animation: swipe-hint-bounce 1.4s ease-in-out infinite;
}
@keyframes swipe-hint-bounce {
  0%, 100% { transform: rotate(135deg) translate(0, 0); }
  50% { transform: rotate(135deg) translate(-6px, -6px); }
}
