:root {
  color-scheme: dark;
  --navy-950: #020c18;
  --navy-900: #041427;
  --navy-850: #071b32;
  --navy-800: #0a2440;
  --navy-700: #123557;
  --ink: #061b31;
  --ivory: #f7edd9;
  --ivory-soft: #fff8ea;
  --paper: #f3e4c8;
  --gold: #d8a53b;
  --gold-soft: #f0c86a;
  --sky: #0096ff;
  --sky-soft: #73c5ff;
  --white: #fffdf7;
  --muted: #b5c4d2;
  --line-dark: rgba(239, 198, 104, 0.22);
  --line-light: rgba(5, 27, 49, 0.15);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --content: min(1200px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.23;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0, 150, 255, 0.16), transparent 25%),
    radial-gradient(circle at 82% 34%, rgba(216, 165, 59, 0.1), transparent 22%);
}

a {
  color: inherit;
}

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

button,
summary {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--sky-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ivory-soft);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 15, 29, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  width: var(--content);
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(210px, 100%);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.site-nav > a,
.language-menu summary {
  color: rgba(255, 253, 247, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav > a:hover,
.language-menu summary:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 253, 247, 0.82);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.045);
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.language-menu[open] summary svg {
  transform: rotate(180deg);
}

.language-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 160px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #0a1d33;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.language-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
}

.language-panel a:hover,
.language-panel a[aria-current="page"] {
  background: rgba(115, 197, 255, 0.12);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(216, 165, 59, 0.2);
}

.button-primary:hover {
  background: var(--gold-soft);
}

.button-secondary {
  border-color: rgba(115, 197, 255, 0.42);
  color: var(--sky-soft);
  background: rgba(0, 150, 255, 0.07);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.app-store-badge:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.app-store-badge img {
  width: auto;
  height: 40px;
  max-width: none;
}

.app-store-badge-hero img,
.app-store-badge-final img {
  height: 54px;
}

.final-cta .app-store-badge {
  justify-content: center;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(64px, 8vw, 118px) 0 90px;
  background:
    linear-gradient(90deg, rgba(3, 15, 29, 0.98) 0%, rgba(3, 15, 29, 0.79) 52%, rgba(3, 15, 29, 0.3) 100%),
    radial-gradient(circle at 78% 38%, rgba(0, 150, 255, 0.2), transparent 31%);
}

.hero::before,
.route-band::before,
.privacy-band::before,
.final-cta::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(31deg, transparent 48.5%, rgba(216, 165, 59, 0.16) 49%, transparent 49.5%),
    radial-gradient(circle at 18% 65%, transparent 0 1px, rgba(216, 165, 59, 0.14) 2px, transparent 3px);
  background-size: 320px 180px, 155px 155px;
  mask-image: linear-gradient(to right, transparent, black 35%, black 80%, transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero h1,
.section-heading,
.legal-page h1,
.support-hero h1,
.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.9rem, 6.5vw, 7rem);
  line-height: 0.94;
}

html[lang="ja"] .hero h1 {
  font-size: clamp(3rem, 5.7vw, 6.2rem);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--gold);
  font-weight: inherit;
}

.hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: #c8d4df;
  font-size: clamp(1.06rem, 1.45vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-row {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 0;
  color: #9eb2c4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.brand-seal {
  position: absolute;
  z-index: 0;
  top: 110px;
  left: -45px;
  width: 430px;
  opacity: 0.77;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
}

.phone {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 48px;
  background: linear-gradient(145deg, #232b34, #020407 45%, #38424b);
  box-shadow: var(--shadow);
}

.phone::before {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 34%;
  height: 24px;
  border-radius: 20px;
  content: "";
  background: #020406;
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 39px;
  object-fit: cover;
}

.phone-main {
  top: 6px;
  right: 120px;
  width: 330px;
  transform: rotate(-3deg);
}

.phone-side {
  top: 98px;
  right: -48px;
  width: 292px;
  transform: rotate(7deg);
}

.app-icon-chip {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(4, 20, 39, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.app-icon-chip img {
  width: 54px;
  border-radius: 13px;
}

.app-icon-chip strong,
.app-icon-chip span {
  display: block;
}

.app-icon-chip strong {
  color: var(--white);
  font-size: 0.9rem;
}

.app-icon-chip span {
  color: var(--muted);
  font-size: 0.7rem;
}

.paper-band {
  position: relative;
  overflow: hidden;
  background-color: var(--ivory);
  color: var(--ink);
  background-image:
    radial-gradient(rgba(5, 27, 49, 0.055) 0.8px, transparent 0.8px),
    linear-gradient(90deg, rgba(216, 165, 59, 0.06), transparent 32%, rgba(216, 165, 59, 0.07));
  background-size: 6px 6px, auto;
}

.memory-band {
  padding: clamp(72px, 9vw, 128px) 0;
}

.memory-grid,
.section-grid,
.privacy-grid,
.unlock-grid,
.legal-layout,
.support-grid {
  width: var(--content);
  margin: 0 auto;
}

.memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.section-heading {
  font-size: clamp(3rem, 5vw, 5.7rem);
  line-height: 1.02;
}

html[lang="ja"] .section-heading {
  line-height: 1.25;
}

.section-heading em {
  color: #a66f07;
  font-weight: inherit;
}

.section-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: #34506a;
  font-size: 1.06rem;
}

.memory-stamps {
  position: relative;
  min-height: 340px;
}

.memory-ticket {
  position: absolute;
  width: min(360px, 74%);
  padding: 26px;
  border: 1px solid rgba(5, 27, 49, 0.24);
  border-radius: 7px;
  background: rgba(255, 250, 239, 0.82);
  box-shadow: 0 18px 46px rgba(5, 27, 49, 0.14);
}

.memory-ticket:nth-child(1) {
  top: 0;
  left: 6%;
  transform: rotate(-5deg);
}

.memory-ticket:nth-child(2) {
  top: 68px;
  right: 1%;
  transform: rotate(5deg);
}

.memory-ticket:nth-child(3) {
  right: 18%;
  bottom: 0;
  transform: rotate(-1.5deg);
}

.memory-ticket span,
.memory-ticket strong,
.memory-ticket small {
  display: block;
}

.memory-ticket span {
  color: #8b620d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.memory-ticket strong {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 2rem;
}

.memory-ticket small {
  color: #52677b;
}

.route-band {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 10vw, 144px) 0;
  background: var(--navy-900);
}

.route-band .section-grid {
  position: relative;
  z-index: 1;
}

.section-intro {
  max-width: 760px;
}

.section-intro .section-heading {
  color: var(--ivory-soft);
}

.section-intro .section-copy {
  color: var(--muted);
}

.steps {
  position: relative;
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.steps::before {
  position: absolute;
  top: 45px;
  right: 14%;
  left: 14%;
  border-top: 1px dashed rgba(216, 165, 59, 0.62);
  content: "";
}

.step {
  position: relative;
  z-index: 1;
  padding: 8px 20px 0 0;
}

.step-number {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 2.2rem;
  box-shadow: 0 0 0 9px var(--navy-900);
}

.step h3 {
  margin: 28px 0 8px;
  color: var(--ivory-soft);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
}

.step p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.screens-section {
  padding: clamp(84px, 10vw, 150px) 0;
}

.screens-heading-row {
  width: var(--content);
  margin: 0 auto 54px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.screens-heading-row .section-copy {
  max-width: 470px;
}

.rail-controls {
  display: flex;
  gap: 9px;
}

.rail-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  cursor: pointer;
}

.screenshot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 360px);
  gap: 28px;
  overflow-x: auto;
  padding: 15px max(24px, calc((100vw - 1200px) / 2)) 54px;
  scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(5, 27, 49, 0.26) transparent;
}

.screen-card {
  position: relative;
  scroll-snap-align: start;
}

.screen-device {
  padding: 8px;
  border: 1px solid rgba(5, 27, 49, 0.35);
  border-radius: 50px;
  background: #07101a;
  box-shadow: 0 24px 55px rgba(5, 27, 49, 0.22);
}

.screen-device img {
  width: 100%;
  border-radius: 42px;
}

.screen-card figcaption {
  padding: 19px 6px 0;
}

.screen-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
}

.screen-card span {
  display: block;
  margin-top: 4px;
  color: #486078;
  font-size: 0.88rem;
}

.personal-section {
  padding: clamp(84px, 10vw, 144px) 0;
  background: #06172a;
}

.personal-section .section-heading {
  color: var(--ivory-soft);
}

.personal-section .section-copy {
  color: var(--muted);
}

.feature-spread {
  width: var(--content);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 0;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 15%, rgba(0, 150, 255, 0.14), transparent 32%),
    #0a2038;
}

.feature-panel:nth-child(2) {
  transform: translateY(38px);
}

.feature-panel h3 {
  margin: 0;
  color: var(--ivory-soft);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.feature-panel p {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-panel img {
  width: 83%;
  margin: auto auto -21% auto;
  border: 7px solid #050b12;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.privacy-band {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 11vw, 160px) 0;
  background: #02101e;
}

.privacy-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.privacy-emblem {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 165, 59, 0.45);
  border-radius: 50%;
  color: var(--gold-soft);
}

.privacy-emblem::before,
.privacy-emblem::after {
  position: absolute;
  border: 1px dashed rgba(216, 165, 59, 0.22);
  border-radius: 50%;
  content: "";
}

.privacy-emblem::before {
  inset: 22px;
}

.privacy-emblem::after {
  inset: 48px;
}

.lock-icon {
  position: relative;
  width: 82px;
  height: 67px;
  border: 5px solid currentColor;
  border-radius: 13px;
}

.lock-icon::before {
  position: absolute;
  bottom: 58px;
  left: 15px;
  width: 42px;
  height: 42px;
  border: 5px solid currentColor;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  content: "";
}

.privacy-copy .section-heading {
  color: var(--ivory-soft);
}

.privacy-copy .section-copy {
  color: var(--muted);
}

.privacy-points {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  position: relative;
  padding-left: 28px;
  color: #d3dee8;
  font-size: 0.93rem;
}

.privacy-points li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  content: "";
  transform: rotate(-45deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  color: var(--sky-soft);
  font-weight: 800;
  text-underline-offset: 4px;
}

.unlock-section {
  padding: clamp(84px, 10vw, 140px) 0;
}

.unlock-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.unlock-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(5, 27, 49, 0.18);
  border-radius: 22px;
  background: rgba(255, 250, 239, 0.72);
  box-shadow: 0 20px 52px rgba(5, 27, 49, 0.13);
}

.unlock-card::before {
  position: absolute;
  top: -85px;
  right: -75px;
  width: 220px;
  height: 220px;
  border: 20px double rgba(216, 165, 59, 0.24);
  border-radius: 50%;
  content: "";
}

.access-row {
  position: relative;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}

.access-row:first-child {
  padding-top: 0;
}

.access-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.access-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.access-row span {
  display: block;
  margin-top: 4px;
  color: #4d6275;
  font-size: 0.9rem;
}

.faq-section {
  padding: clamp(84px, 10vw, 140px) 0;
  background: var(--navy-900);
}

.faq-inner {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.faq-inner .section-heading {
  color: var(--ivory-soft);
  text-align: center;
}

.faq-list {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.faq-list summary {
  position: relative;
  padding: 23px 50px 23px 0;
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 8px;
  color: var(--gold);
  content: "+";
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 760px;
  margin: -4px 0 24px;
  color: var(--muted);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(95px, 12vw, 180px) 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 150, 255, 0.18), transparent 35%),
    var(--navy-950);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
}

.final-cta .section-heading {
  color: var(--ivory-soft);
}

.final-cta p {
  max-width: 620px;
  margin: 22px auto 32px;
  color: var(--muted);
}

.final-seal {
  width: 150px;
  margin: 0 auto 32px;
}

.site-footer {
  padding: 58px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #020b15;
}

.footer-grid {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 46px;
}

.footer-brand img {
  width: 190px;
}

.footer-brand p {
  max-width: 260px;
  margin: 16px 0 0;
  color: #869bad;
  font-size: 0.86rem;
}

.footer-column strong {
  display: block;
  margin-bottom: 13px;
  color: var(--ivory-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 8px 0;
  color: #91a5b7;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  width: var(--content);
  margin: 42px auto 0;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #71879a;
  font-size: 0.76rem;
}

.legal-hero,
.support-hero,
.not-found {
  padding: 86px 0 65px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.14), transparent 24%),
    var(--navy-900);
}

.legal-hero-inner,
.support-hero-inner,
.not-found-inner {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-page h1,
.support-hero h1,
.not-found h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 1;
}

.legal-updated,
.support-hero p,
.not-found p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
}

.legal-page {
  background: var(--ivory-soft);
  color: var(--ink);
}

.legal-layout {
  padding: 74px 0 110px;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: 70px;
}

.legal-toc {
  position: sticky;
  top: 115px;
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid rgba(216, 165, 59, 0.5);
}

.legal-toc a {
  display: block;
  margin: 8px 0;
  color: #52677b;
  font-size: 0.83rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-content {
  font-size: 1rem;
}

.legal-summary {
  margin: 0 0 42px;
  padding: 25px;
  border: 1px solid rgba(5, 27, 49, 0.15);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #f8ecd4;
  font-weight: 650;
}

.legal-content section {
  margin-top: 48px;
}

.legal-content section:first-of-type {
  margin-top: 0;
}

.legal-content h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  color: #314b61;
}

.legal-content a,
.support-content a {
  color: #006bb5;
  text-underline-offset: 3px;
}

.legal-content li + li {
  margin-top: 8px;
}

.support-page {
  background: var(--ivory-soft);
  color: var(--ink);
}

.support-grid {
  padding: 70px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 62px;
}

.support-content h2 {
  margin: 46px 0 10px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
}

.support-content h2:first-child {
  margin-top: 0;
}

.support-content p {
  color: #314b61;
}

.support-card {
  position: sticky;
  top: 115px;
  align-self: start;
  padding: 30px;
  border: 1px solid rgba(5, 27, 49, 0.16);
  border-radius: 18px;
  background: #f7e8cc;
  box-shadow: 0 18px 45px rgba(5, 27, 49, 0.1);
}

.support-card img {
  width: 72px;
  border-radius: 17px;
}

.support-card h2 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: 1.8rem;
}

.support-card p {
  color: #41596f;
  font-size: 0.9rem;
}

.not-found {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found img {
  width: 160px;
  margin: 0 auto 28px;
}

html[data-theme="light"] body {
  background: var(--ivory);
  color: var(--ink);
}

html[data-theme="light"] body::before {
  opacity: 0.34;
}

html[data-theme="light"] .site-header {
  border-color: rgba(5, 27, 49, 0.12);
  background: rgba(255, 248, 234, 0.9);
}

html[data-theme="light"] .site-nav > a,
html[data-theme="light"] .language-menu summary {
  color: rgba(5, 27, 49, 0.78);
}

html[data-theme="light"] .site-nav > a:hover,
html[data-theme="light"] .language-menu summary:hover {
  color: var(--ink);
}

html[data-theme="light"] .language-menu summary,
html[data-theme="light"] .theme-toggle {
  border-color: rgba(5, 27, 49, 0.18);
  background: rgba(255, 255, 255, 0.52);
  color: rgba(5, 27, 49, 0.8);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(5, 27, 49, 0.3);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

html[data-theme="light"] .menu-button {
  color: var(--ink);
}

html[data-theme="light"] .language-panel {
  border-color: rgba(5, 27, 49, 0.14);
  background: var(--ivory-soft);
  box-shadow: 0 16px 42px rgba(5, 27, 49, 0.18);
}

html[data-theme="light"] .language-panel a {
  color: var(--ink);
}

html[data-theme="light"] .language-panel a:hover,
html[data-theme="light"] .language-panel a[aria-current="page"] {
  background: rgba(0, 150, 255, 0.1);
}

html[data-theme="light"] .hero {
  background:
    linear-gradient(90deg, rgba(255, 248, 234, 0.99) 0%, rgba(255, 248, 234, 0.86) 52%, rgba(247, 237, 217, 0.4) 100%),
    radial-gradient(circle at 78% 38%, rgba(0, 150, 255, 0.18), transparent 31%);
}

html[data-theme="light"] .hero h1 {
  color: var(--ink);
}

html[data-theme="light"] .hero-lede {
  color: #34506a;
}

html[data-theme="light"] .trust-row {
  color: #52677b;
}

html[data-theme="light"] .button-secondary {
  border-color: rgba(0, 107, 181, 0.38);
  background: rgba(0, 107, 181, 0.07);
  color: #006bb5;
}

html[data-theme="light"] .text-link {
  color: #006bb5;
}

html[data-theme="light"] .app-icon-chip {
  border-color: rgba(5, 27, 49, 0.16);
  background: rgba(255, 248, 234, 0.9);
  box-shadow: 0 16px 40px rgba(5, 27, 49, 0.18);
}

html[data-theme="light"] .app-icon-chip strong {
  color: var(--ink);
}

html[data-theme="light"] .app-icon-chip span {
  color: #52677b;
}

html[data-theme="light"] .route-band,
html[data-theme="light"] .privacy-band,
html[data-theme="light"] .faq-section {
  background: #eaf3f7;
}

html[data-theme="light"] .personal-section {
  background: #f1e5ce;
}

html[data-theme="light"] .section-intro .section-heading,
html[data-theme="light"] .personal-section .section-heading,
html[data-theme="light"] .privacy-copy .section-heading,
html[data-theme="light"] .faq-inner .section-heading,
html[data-theme="light"] .final-cta .section-heading {
  color: var(--ink);
}

html[data-theme="light"] .section-intro .section-copy,
html[data-theme="light"] .personal-section .section-copy,
html[data-theme="light"] .privacy-copy .section-copy,
html[data-theme="light"] .faq-list p,
html[data-theme="light"] .final-cta p {
  color: #3d586f;
}

html[data-theme="light"] .step-number {
  background: #eaf3f7;
  color: #8b620d;
  box-shadow: 0 0 0 9px #eaf3f7;
}

html[data-theme="light"] .step h3,
html[data-theme="light"] .privacy-points li,
html[data-theme="light"] .faq-list summary {
  color: var(--ink);
}

html[data-theme="light"] .step p {
  color: #486078;
}

html[data-theme="light"] .feature-panel {
  border-color: rgba(5, 27, 49, 0.15);
  background:
    radial-gradient(circle at 90% 15%, rgba(0, 150, 255, 0.11), transparent 32%),
    rgba(255, 248, 234, 0.84);
}

html[data-theme="light"] .feature-panel h3 {
  color: var(--ink);
}

html[data-theme="light"] .feature-panel p {
  color: #486078;
}

html[data-theme="light"] .faq-list,
html[data-theme="light"] .faq-list details {
  border-color: rgba(5, 27, 49, 0.15);
}

html[data-theme="light"] .final-cta {
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 150, 255, 0.16), transparent 35%),
    #f5ead5;
}

html[data-theme="light"] .site-footer {
  border-color: rgba(5, 27, 49, 0.12);
  background: #efe1c7;
}

html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-column a,
html[data-theme="light"] .footer-bottom {
  color: #52677b;
}

html[data-theme="light"] .footer-column strong {
  color: var(--ink);
}

html[data-theme="light"] .footer-column a:hover {
  color: var(--ink);
}

html[data-theme="light"] .footer-bottom {
  border-color: rgba(5, 27, 49, 0.12);
}

html[data-theme="light"] .legal-hero,
html[data-theme="light"] .support-hero,
html[data-theme="light"] .not-found {
  border-color: rgba(5, 27, 49, 0.12);
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.13), transparent 24%),
    #eaf3f7;
  color: var(--ink);
}

html[data-theme="light"] .legal-updated,
html[data-theme="light"] .support-hero p,
html[data-theme="light"] .not-found p {
  color: #3d586f;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  :root {
    --content: min(940px, calc(100% - 40px));
  }

  .header-inner {
    grid-template-columns: 170px 1fr auto;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav > a {
    font-size: 0.79rem;
  }

  .hero {
    min-height: 710px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 6.8vw, 5.6rem);
  }

  .hero-visual {
    min-height: 560px;
  }

  .brand-seal {
    width: 340px;
  }

  .phone-main {
    right: 70px;
    width: 292px;
  }

  .phone-side {
    right: -50px;
    width: 258px;
  }

  .feature-panel {
    min-height: 540px;
    padding: 24px 24px 0;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 70px;
    grid-template-columns: 160px 1fr auto;
  }

  .menu-button {
    display: block;
  }

  .app-store-badge-header {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #06182b;
  }

  html[data-theme="light"] .site-nav {
    border-color: rgba(5, 27, 49, 0.12);
    background: var(--ivory-soft);
  }

  .site-nav[data-open] {
    display: grid;
  }

  .site-nav > a {
    padding: 10px 0;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 62px;
  }

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

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 590px;
    margin-top: 10px;
  }

  .phone-main {
    right: 28%;
    width: 300px;
  }

  .phone-side {
    right: 7%;
    width: 270px;
  }

  .brand-seal {
    top: 100px;
    left: 15%;
  }

  .memory-grid,
  .privacy-grid,
  .unlock-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .memory-stamps {
    max-width: 620px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .steps::before {
    top: 40px;
    bottom: 40px;
    left: 43px;
    border-top: 0;
    border-left: 1px dashed rgba(216, 165, 59, 0.62);
  }

  .step {
    min-height: 100px;
    padding: 0 0 0 125px;
  }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step h3 {
    margin-top: 0;
  }

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

  .feature-panel,
  .feature-panel:nth-child(2) {
    min-height: 680px;
    transform: none;
  }

  .feature-panel img {
    width: min(380px, 78%);
  }

  .privacy-emblem {
    width: 270px;
    margin: 0 auto;
  }

  .unlock-card {
    max-width: 650px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
    columns: 2;
  }

  .support-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  :root {
    --content: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    width: calc(100% - 28px);
    grid-template-columns: minmax(120px, 140px) 1fr auto;
    gap: 7px;
  }

  .header-actions {
    gap: 5px;
  }

  .language-menu summary {
    min-height: 40px;
    padding: 7px 9px;
  }

  .theme-toggle,
  .menu-button {
    width: 40px;
    height: 40px;
  }

  .language-panel {
    min-width: 152px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 35px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(2.55rem, 11.8vw, 4rem);
  }

  .hero-lede {
    margin-top: 22px;
  }

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

  .hero-actions .app-store-badge {
    justify-self: start;
  }

  .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
  }

  .hero-visual {
    min-height: 480px;
    margin-top: 35px;
  }

  .brand-seal {
    top: 90px;
    left: -35px;
    width: 265px;
  }

  .phone {
    padding: 6px;
    border-radius: 36px;
  }

  .phone img {
    border-radius: 31px;
  }

  .phone::before {
    top: 13px;
    height: 17px;
  }

  .phone-main {
    right: 34%;
    width: 218px;
  }

  .phone-side {
    top: 68px;
    right: 0;
    width: 198px;
  }

  .app-icon-chip {
    right: auto;
    bottom: 2px;
    left: 0;
  }

  .app-icon-chip img {
    width: 45px;
  }

  .memory-band,
  .route-band,
  .screens-section,
  .personal-section,
  .privacy-band,
  .unlock-section,
  .faq-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
  }

  html[lang="ja"] .section-heading {
    font-size: clamp(2.35rem, 10.5vw, 3.7rem);
  }

  .memory-grid {
    gap: 40px;
  }

  .memory-stamps {
    min-height: 380px;
  }

  .memory-ticket {
    width: 84%;
    padding: 22px;
  }

  .screens-heading-row {
    align-items: start;
  }

  .rail-controls {
    display: none;
  }

  .screenshot-rail {
    grid-auto-columns: 78vw;
    gap: 18px;
    padding-right: 16px;
    padding-left: 16px;
    scroll-padding-inline: 16px;
  }

  .feature-spread {
    margin-top: 42px;
  }

  .feature-panel {
    min-height: 580px;
    padding: 25px 22px 0;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .privacy-emblem {
    width: 220px;
  }

  .unlock-card {
    padding: 27px 23px;
  }

  .faq-inner,
  .legal-hero-inner,
  .support-hero-inner,
  .not-found-inner {
    width: calc(100% - 32px);
  }

  .faq-inner .section-heading {
    text-align: left;
  }

  .final-cta-inner {
    width: calc(100% - 32px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .legal-hero,
  .support-hero,
  .not-found {
    padding-top: 64px;
  }

  .legal-page h1,
  .support-hero h1,
  .not-found h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .legal-layout,
  .support-grid {
    padding-top: 52px;
  }

  .legal-toc {
    columns: 1;
  }
}

@media (max-width: 350px) {
  .header-inner {
    grid-template-columns: 132px 1fr auto;
    gap: 4px;
  }

  .language-current {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
