:root {
  color: #111827;
  background: #f3f4f6;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #111827;
  --muted: #6b7280;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --teal: #1c9a8a;
  --lp-width: 390px;
  --desktop-bg: #f3f4f6;
  --header-bg: #ffffff;
  --header-color: #111827;
  --cta-bg: #1c9a8a;
  --cta-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--desktop-bg);
}

html.is-swipe-lp,
body.is-swipe-lp {
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
}

a {
  color: inherit;
}

.lp-shell:empty {
  display: contents;
}

.lp-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
}

.desktop-blur-bg {
  position: fixed;
  inset: -28px;
  z-index: 0;
  background-position: top center;
  background-size: cover;
  filter: blur(22px);
  transform: scale(1.05);
  opacity: 0.32;
}

.desktop-blur-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(249, 250, 251, 0.72);
}

.phone-canvas {
  position: relative;
  z-index: 1;
  width: min(100vw, var(--lp-width));
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.18);
}

.has-fixed-footer .phone-canvas {
  padding-bottom: 76px;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #1c9a8a;
  color: #fff;
  font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.header-logo {
  max-width: 120px;
  max-height: 32px;
  object-fit: contain;
}

.image-stack {
  width: 100%;
  background: #fff;
}

.lp-image-frame {
  margin: 0;
  background: #fff;
}

.image-map {
  position: relative;
  width: 100%;
  aspect-ratio: var(--image-aspect-ratio, 2 / 3);
  background: #fff;
}

.image-map > img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.phone-canvas.is-swipe-mode {
  min-height: 100dvh;
}

.has-fixed-footer .phone-canvas.is-swipe-mode {
  padding-bottom: 0;
}

.is-swipe-stack {
  width: 100%;
}

.is-swipe-stack .lp-image-frame {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.is-swipe-stack .image-map {
  width: 100%;
  max-width: var(--lp-width);
}

.lp-hotspot {
  position: absolute;
  z-index: 8;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(28, 154, 138, 0);
  cursor: pointer;
  appearance: none;
  text-decoration: none;
}

.lp-hotspot.cta-anim-pulse {
  animation: hotspotPulse 1.8s ease-in-out infinite;
}

.lp-hotspot.cta-anim-bounce {
  animation: hotspotBounce 1.6s ease-in-out infinite;
}

.lp-hotspot.cta-anim-blink {
  animation: hotspotBlink 1.4s ease-in-out infinite;
}

.lp-hotspot.cta-anim-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: hotspotShine 2.2s ease-in-out infinite;
}

.lp-hotspot:focus-visible {
  outline: 2px solid rgba(28, 154, 138, 0.86);
  outline-offset: 2px;
  background: rgba(28, 154, 138, 0.12);
}

.swipe-hint {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: calc(var(--swipe-hint-bottom, 86px) + env(safe-area-inset-bottom, 0px));
  width: min(calc(var(--lp-width) - 24px), calc(100vw - 24px));
  max-width: 360px;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, var(--swipe-hint-bg-alpha, 0.82));
  color: rgba(17, 24, 39, 0.78);
  box-shadow: 0 10px 36px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(12px);
  pointer-events: none;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0;
  transition: bottom 160ms ease, opacity 140ms ease, transform 140ms ease;
}

.phone-canvas.is-swipe-shifting-down .swipe-hint {
  opacity: 0.72;
  transform: translate(-50%, 5px);
}

.phone-canvas.is-swipe-shifting-up .swipe-hint {
  opacity: 0.72;
  transform: translate(-50%, -5px);
}

.phone-canvas.is-swipe-shifting-down .image-map,
.phone-canvas.is-swipe-shifting-up .image-map {
  animation: swipePageSettle 180ms ease-out;
}

.phone-canvas.is-swipe-shifting-down .image-map {
  --swipe-settle-offset: 8px;
}

.phone-canvas.is-swipe-shifting-up .image-map {
  --swipe-settle-offset: -8px;
}

.swipe-hint.is-small {
  padding: 7px 12px;
  font-size: 12px;
}

.swipe-hint.is-medium {
  padding: 9px 14px;
  font-size: 14px;
}

.swipe-hint.is-large {
  padding: 12px 18px;
  font-size: 16px;
}

.lp-footer {
  position: fixed;
  z-index: 12;
  left: 50%;
  width: min(100vw, var(--lp-width));
  bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-revealed .lp-footer {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.footer-revealed .lp-footer.cta-anim-blink {
  animation: footerBlink 720ms ease 1;
}

.footer-revealed .lp-footer.cta-anim-pulse .primary-cta,
.footer-revealed .lp-footer.cta-anim-pulse .image-cta {
  animation: ctaPulse 1.8s ease-in-out infinite;
}

.footer-revealed .lp-footer.cta-anim-bounce .primary-cta,
.footer-revealed .lp-footer.cta-anim-bounce .image-cta {
  animation: ctaBounce 1.7s ease-in-out infinite;
}

.footer-revealed .lp-footer.cta-anim-shine .primary-cta,
.footer-revealed .lp-footer.cta-anim-shine .image-cta {
  position: relative;
}

.footer-revealed .lp-footer.cta-anim-shine .primary-cta::after,
.footer-revealed .lp-footer.cta-anim-shine .image-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.44) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: ctaShine 2.2s ease-in-out infinite;
}

.primary-cta,
.image-cta {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.primary-cta {
  padding: 12px 18px;
  background: var(--cta-bg);
  color: var(--cta-color);
  font-weight: 700;
  font-size: 15px;
}

.image-cta {
  background: transparent;
  min-height: 0;
}

.image-cta img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 220px);
  object-fit: contain;
}

.is-rounded {
  border-radius: 8px;
}

.is-pill {
  border-radius: 999px;
}

.is-square {
  border-radius: 0;
}

.lp-error,
.no-script {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.lp-error p,
.no-script p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.lp-error h1,
.no-script h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}

.empty-state,
.missing-image {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.missing-image span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.missing-image p {
  margin: 0;
  font-size: 13px;
  word-break: break-all;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(6px);
}

.lp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.24);
}

.lp-modal-panel h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.lp-modal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.lp-modal-eyebrow {
  color: var(--teal) !important;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lp-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.lp-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lp-exit-popup-panel {
  position: relative;
  z-index: 1;
  width: min(100%, var(--lp-width));
  max-width: 430px;
  border-radius: 10px;
  background: transparent;
  animation: exitPopupIn 180ms ease-out;
}

.lp-exit-popup-image {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.28);
}

.lp-exit-popup-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

@media (max-width: 700px) {
  body {
    background: #fff;
  }

  .lp-stage {
    display: block;
  }

  .desktop-blur-bg {
    display: none;
  }

  .phone-canvas {
    width: 100%;
    min-height: 100vh;
    box-shadow: none;
  }

  .lp-footer {
    width: 100%;
  }
}

@keyframes exitPopupIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes footerBlink {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  42% {
    opacity: 0.45;
  }
  65% {
    opacity: 1;
  }
  82% {
    opacity: 0.72;
  }
  100% {
    opacity: 1;
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes ctaBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-4px);
  }
}

@keyframes ctaShine {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes hotspotPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(28, 154, 138, 0);
  }
  50% {
    box-shadow: inset 0 0 0 999px rgba(28, 154, 138, 0.08);
  }
}

@keyframes hotspotBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-3px);
  }
}

@keyframes hotspotBlink {
  0%,
  100% {
    background: rgba(28, 154, 138, 0);
  }
  50% {
    background: rgba(28, 154, 138, 0.08);
  }
}

@keyframes hotspotShine {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes swipePageSettle {
  0% {
    opacity: 0.88;
    transform: translateY(var(--swipe-settle-offset, 8px));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
