:root {
  color-scheme: dark;
  --bg: #031344;
  --panel: #071f5c;
  --panel-soft: #0b2e79;
  --text: #ffffff;
  --muted: #bfd1ef;
  --accent: #45f1d1;
  --accent-dark: #0ba9cf;
  --yellow: #ffe83f;
  --pink: #ff7ac7;
  --line: rgba(88, 225, 255, 0.22);
  --max: 1180px;
  font-family:
    Inter, "SF Pro Display", "Hiragino Sans", "Noto Sans JP", system-ui,
    -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(35, 224, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 8% 54%, rgba(53, 109, 255, 0.22), transparent 32rem),
    linear-gradient(rgba(78, 191, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 191, 255, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.lang-en {
  display: none;
}

html[data-lang="en"] .lang-ja {
  display: none;
}

html[data-lang="en"] .lang-en {
  display: initial;
}

.store-image-en {
  display: none !important;
}

html[data-lang="en"] .store-image-ja {
  display: none !important;
}

html[data-lang="en"] .store-image-en {
  display: block !important;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 19, 68, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.app-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(89, 226, 255, 0.58);
  border-radius: 9px;
  box-shadow:
    0 0 18px rgba(35, 224, 255, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.28);
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.language-switch button {
  width: 38px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  color: #031344;
  background: var(--accent);
}

main > section {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  min-height: min(820px, calc(100svh - 76px));
  padding: 72px 0;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 6.5vw, 6.2rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 1.02;
  text-shadow: 0 5px 0 rgba(0, 26, 84, 0.65);
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-description,
.section-heading > p:not(.eyebrow),
.color-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 36px;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 750;
}

.button.primary {
  color: #06164b;
  background: var(--yellow);
  box-shadow: 0 12px 34px rgba(255, 232, 63, 0.24);
}

.button.primary:hover {
  transform: translateY(-2px);
  background: #fff17a;
}

.availability {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border: 2px solid rgba(69, 241, 209, 0.76);
  border-radius: 24px;
  box-shadow:
    0 0 0 6px rgba(28, 114, 233, 0.2),
    0 0 50px rgba(35, 224, 255, 0.28),
    0 40px 100px rgba(0, 0, 0, 0.55);
}

.glow {
  position: absolute;
  top: 15%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(35, 224, 255, 0.3);
  filter: blur(80px);
}

.showcase {
  padding: 110px 0 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  margin-bottom: 50px;
  gap: 60px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -35px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-shadow: 0 4px 0 rgba(0, 21, 73, 0.7);
}

.store-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 18px;
}

.store-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 2px solid rgba(81, 231, 255, 0.65);
  border-radius: 18px;
  background: #092464;
  box-shadow:
    0 0 28px rgba(35, 224, 255, 0.13),
    0 24px 50px rgba(0, 0, 0, 0.32);
}

.store-gallery figure:nth-child(even) {
  margin-top: 34px;
}

.store-gallery img {
  display: block;
  width: 100%;
}

.device-wide,
.color-visual {
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(140deg, #123888, #061743);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
}

.device-wide img,
.color-visual img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 80px 0 130px;
  gap: 1px;
}

.feature-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(10, 47, 124, 0.86), rgba(4, 25, 76, 0.9));
}

.feature-card:first-child {
  border-radius: 16px 0 0 16px;
}

.feature-card:last-child {
  border-radius: 0 16px 16px 0;
}

.feature-number {
  display: block;
  margin-bottom: 70px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: var(--yellow);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.color-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  padding: 70px 0 140px;
  gap: 70px;
}

.color-copy h2 {
  margin-bottom: 28px;
}

.final-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  padding: 110px 0;
  border-top: 1px solid var(--line);
  gap: 60px;
}

.cta-note {
  color: var(--muted);
  line-height: 1.7;
}

.coming-soon {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 7px;
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 700;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 130px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  gap: 28px;
}

footer > p {
  margin: 0;
  text-align: right;
}

.footer-brand {
  color: var(--text);
}

.footer-brand .app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.legal-page {
  width: min(calc(100% - 40px), 800px);
  min-height: calc(100svh - 206px);
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal-page h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.legal-page h2 {
  margin: 48px 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.85;
}

.legal-page li + li {
  margin-top: 8px;
}

.notice {
  padding: 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(145deg, var(--panel-soft), var(--panel));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 0.7fr;
    gap: 30px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:first-child {
    border-radius: 16px 0 0 0;
  }

  .feature-card:nth-child(2) {
    border-radius: 0 16px 0 0;
  }

  .feature-card:nth-child(3) {
    border-radius: 0 0 0 16px;
  }

  .feature-card:last-child {
    border-radius: 0 0 16px 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 66px;
  }

  .site-header nav > a {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 64px 0 90px;
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(78vw, 390px);
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .section-heading,
  .color-section,
  .final-cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading .eyebrow {
    margin-bottom: -10px;
  }

  .showcase {
    padding-top: 80px;
  }

  .device-wide,
  .color-visual {
    padding: 6px;
    border-radius: 14px;
  }

  .device-wide img,
  .color-visual img {
    border-radius: 9px;
  }

  .store-gallery {
    width: calc(100vw - 20px);
    margin-left: -10px;
    padding: 8px 10px 32px;
    grid-template-columns: repeat(4, minmax(76vw, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .store-gallery::-webkit-scrollbar {
    display: none;
  }

  .store-gallery figure,
  .store-gallery figure:nth-child(even) {
    margin-top: 0;
    scroll-snap-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding: 60px 0 90px;
    gap: 10px;
  }

  .feature-card,
  .feature-card:first-child,
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:last-child {
    min-height: auto;
    border-radius: 12px;
  }

  .feature-number {
    margin-bottom: 30px;
  }

  .color-section {
    padding-bottom: 100px;
  }

  .final-cta {
    padding: 80px 0;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 32px 0;
    text-align: center;
  }

  footer > p {
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
