:root {
  color-scheme: light;
  --font-sans: "Space Grotesk", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", "Noto Sans Arabic", sans-serif;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f0f2f6;
  --text: #161a23;
  --text-muted: #5e6677;
  --line: #d8deea;
  --line-strong: #c6cedd;
  --accent: #1f66ff;
  --accent-soft: #eaf0ff;
  --shadow: 0 20px 42px rgba(17, 28, 44, 0.09);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060606;
  --surface: #111111;
  --surface-soft: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #adadad;
  --line: #2b2b2b;
  --line-strong: #3a3a3a;
  --accent: #cfcfcf;
  --accent-soft: #232323;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.5;
  background: radial-gradient(circle at 12% -8%, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 42%),
    radial-gradient(circle at 100% -10%, color-mix(in srgb, var(--accent) 8%, var(--bg)), var(--bg) 50%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1060px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: 0.8rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.app-header-inner {
  justify-content: space-between;
}

.control-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.27rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}

.privacy-lang-switch {
  max-width: min(70vw, 28rem);
  overflow-x: auto;
  scrollbar-width: thin;
}

.privacy-lang-switch .lang-btn {
  width: auto;
  min-width: 2.1rem;
  padding: 0 0.5rem;
}

.lang-btn,
.icon-btn,
.back-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.back-btn {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  background: var(--accent-soft);
}

.icon-btn {
  font-size: 1.05rem;
}

main {
  padding-bottom: 4rem;
}

.privacy-main {
  padding-top: 5rem;
  padding-bottom: 2.8rem;
}

.privacy-first {
  margin-top: 0;
}

.privacy-title {
  margin: 0.55rem 0 0;
  font-size: clamp(1.8rem, 5.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.privacy-card {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.privacy-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.privacy-label {
  margin: 0.55rem 0 0;
  font-weight: 700;
}

.privacy-card p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.hero-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-top: 2rem;
}

.hero-logo {
  width: clamp(6.2rem, 14vw, 8.3rem);
  height: clamp(6.2rem, 14vw, 8.3rem);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-strong);
}

.borderless-app-icon {
  border: 0;
  box-shadow: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.1vw, 1.2rem);
  max-width: 44ch;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  line-height: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-link:hover,
.app-store-link:focus-visible {
  transform: translateY(-1px);
  opacity: 0.94;
}

.app-store-link-static {
  pointer-events: none;
}

.app-store-link-static:hover,
.app-store-link-static:focus-visible {
  transform: none;
  opacity: 1;
}

.app-store-badge {
  display: block;
  width: clamp(10.5rem, 24vw, 13rem);
  height: auto;
}

.scroll-cue {
  margin-top: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  box-shadow: var(--shadow);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section {
  margin-top: 4.7rem;
}

.kicker {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  margin: 0.6rem 0 0;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.availability-platform {
  margin: 0.8rem 0 1rem;
  color: var(--text-muted);
}

.feature-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-card,
.name-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.feature-card h3,
.name-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.feature-card p,
.name-card p {
  margin: 0.52rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.name-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.name-card.is-current {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface));
}

.shot-stack {
  margin-top: 1.2rem;
  display: grid;
  gap: 2.2rem;
}

.shot-gallery {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: center;
}

.shot-row.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.shot-row.reverse .shot-copy {
  order: 2;
}

.shot-row.reverse .shot-frame {
  order: 1;
}

.shot-copy h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.shot-copy p {
  margin: 0.56rem 0 0;
  color: var(--text-muted);
  max-width: 40ch;
}

.shot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-frame img {
  display: block;
  width: 100%;
}

.shot-frame-small {
  width: clamp(6.8rem, 16vw, 8.8rem);
}

.site-footer {
  margin-top: 3.3rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 60%, transparent);
}

.home-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: 4.6rem;
}

.home-gallery {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.home-app-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease;
}

.home-app-link:hover,
.home-app-link:focus-visible {
  transform: scale(1.03);
}

.home-app-icon {
  display: block;
  width: clamp(6.2rem, 14vw, 8.3rem);
  height: clamp(6.2rem, 14vw, 8.3rem);
  border-radius: 1.5rem;
}

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

  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
  }

  .shot-row.reverse .shot-copy,
  .shot-row.reverse .shot-frame {
    order: initial;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1060px, calc(100% - 1.2rem));
  }

  .site-header {
    padding-top: 0.62rem;
  }

  .header-inner {
    justify-content: flex-end;
  }

  .app-header-inner {
    justify-content: space-between;
  }

  .privacy-lang-switch {
    max-width: min(68vw, 16rem);
  }

  .section {
    margin-top: 3.8rem;
  }

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