:root {
  --color-bg: #eff7ff;
  --color-surface: #ffffff;
  --color-surface-soft: #edf5ff;
  --color-text: #10203a;
  --color-muted: #4a5c79;
  --color-dominant: #0e74ff;
  --color-dominant-deep: #034ab1;
  --color-accent: #20c4ff;
  --color-line: #c5daf7;
  --shadow-soft: 0 16px 44px rgba(12, 76, 170, 0.16);
  --shadow-strong: 0 24px 54px rgba(16, 64, 138, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.95), transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(32, 196, 255, 0.18), transparent 34%),
    radial-gradient(circle at 75% 70%, rgba(14, 116, 255, 0.12), transparent 35%),
    linear-gradient(146deg, #e8f4ff 0%, #f8fbff 48%, #e9f2ff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(239, 247, 255, 0.78);
  border-bottom: 1px solid rgba(3, 74, 177, 0.12);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 62, 151, 0.24);
}

.brand-name {
  margin: 0;
  font: 900 1.1rem/1.2 "M PLUS Rounded 1c", sans-serif;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 255, 0.92));
  border: 1px solid rgba(4, 83, 190, 0.16);
  box-shadow: var(--shadow-soft);
}

.badge {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--color-dominant), var(--color-accent));
  font: 700 0.82rem/1 "M PLUS Rounded 1c", sans-serif;
  letter-spacing: 0.03em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.52rem, 3vw, 2.26rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.34rem);
}

.hero-copy p {
  margin: 16px 0 0;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font: 700 0.96rem/1 "M PLUS Rounded 1c", sans-serif;
  letter-spacing: 0.01em;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn {
  min-height: 46px;
  padding: 0 22px;
}

.store-button {
  min-height: 40px;
  padding: 0 18px;
}

.btn:hover,
.store-button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.store-button {
  color: #fff;
  background: linear-gradient(120deg, var(--color-dominant), var(--color-dominant-deep));
  box-shadow: 0 8px 20px rgba(3, 74, 177, 0.28);
}

.store-button.store-button-apple {
  color: var(--color-dominant-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(3, 74, 177, 0.26);
  box-shadow: none;
}

.store-button.store-button-apple:hover {
  background: #fff;
}

.btn-ghost {
  color: var(--color-dominant-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(3, 74, 177, 0.28);
}

.hero-facts {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.hero-facts li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(12, 90, 196, 0.14);
}

.hero-facts span {
  display: block;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.hero-facts strong {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
}

section + section {
  margin-top: 34px;
}

.showcase,
.swipe-demo,
.feature-grid,
.gallery,
.store-info,
.cta {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(9, 99, 215, 0.14);
  box-shadow: var(--shadow-soft);
}

.section-lead {
  margin: 10px 0 20px;
  color: var(--color-muted);
}

.showcase-image {
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(2, 51, 120, 0.2);
}

.swipe-demo {
  display: grid;
  grid-template-columns: 0.94fr 1fr;
  gap: 22px;
}

.swipe-copy ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
}

.demo-panel {
  display: grid;
  gap: 16px;
}

.counter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.counter-row > div {
  border-radius: 14px;
  border: 1px solid var(--color-line);
  background: var(--color-surface-soft);
  text-align: center;
  padding: 8px;
}

.counter-row span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.counter-row strong {
  font: 800 1.25rem/1.2 "M PLUS Rounded 1c", sans-serif;
}

.phone-frame {
  margin: 0 auto;
  width: min(330px, 100%);
  aspect-ratio: 0.56;
  border-radius: 34px;
  background: linear-gradient(145deg, #fafdff 0%, #dbeeff 100%);
  border: 1px solid rgba(1, 58, 142, 0.18);
  padding: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84), 0 12px 30px rgba(3, 50, 128, 0.24);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  transition: transform 360ms ease, opacity 320ms ease;
}

.phone-frame img.animate-delete {
  transform: translateX(-40%) rotate(-14deg);
  opacity: 0;
}

.phone-frame img.animate-hold {
  transform: translateY(-38%) scale(0.9);
  opacity: 0;
}

.phone-frame img.animate-keep {
  transform: translateX(42%) rotate(14deg);
  opacity: 0;
}

.swipe-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.swipe-buttons button {
  min-height: 42px;
  border: 1px solid rgba(1, 80, 193, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--color-dominant-deep);
  font: 700 0.9rem/1 "M PLUS Rounded 1c", sans-serif;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease;
}

.swipe-buttons button:hover {
  transform: translateY(-2px);
  background: #f3f9ff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  background: #fff;
  border: 1px solid rgba(6, 88, 197, 0.14);
  border-radius: 16px;
  padding: 18px;
}

.feature-grid p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.gallery-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(6, 88, 197, 0.14);
  border-radius: 16px;
  padding: 10px;
}

.gallery figure img {
  border-radius: 12px;
}

.gallery figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.store-info dl {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
}

.store-info dt {
  font-weight: 700;
}

.store-info dd {
  margin: 0;
  color: var(--color-muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(136deg, rgba(255, 255, 255, 0.92), rgba(221, 241, 255, 0.95));
}

.cta p {
  margin-top: 10px;
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  padding: 18px 20px 34px;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero,
  .swipe-demo {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .header-inner,
  main {
    width: min(100%, calc(100% - 24px));
  }

  .header-inner {
    padding: 10px 0;
    align-items: flex-start;
  }

  .site-header {
    position: static;
  }

  .brand-sub {
    display: none;
  }

  .store-links {
    gap: 8px;
  }

  .store-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .showcase,
  .swipe-demo,
  .feature-grid,
  .gallery,
  .store-info,
  .cta,
  .hero {
    padding: 18px;
    border-radius: 18px;
  }

  .swipe-buttons {
    grid-template-columns: 1fr;
  }

  .store-info dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .store-info dd {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
