:root {
  color-scheme: dark;
  --bg: #0f0d0a;
  --bg-warm: #181410;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F0E8;
  --text-muted: rgba(245, 240, 232, 0.68);
  --accent: #E8A84C;
  --accent-soft: rgba(232, 168, 76, 0.22);
  --accent-subtle: #4A6741;
  --shadow-deep: 0 38px 90px rgba(0, 0, 0, 0.48);
  --radius-xl: 36px;
  --radius-lg: 26px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(232, 168, 76, 0.13), transparent 52%),
    linear-gradient(180deg, #1a1612 0%, var(--bg) 50%);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "Hiragino Sans",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.38;
  z-index: 0;
}

.ambient-left {
  width: 52vw;
  height: 52vw;
  left: -18vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(232, 168, 76, 0.26), transparent 68%);
}

.ambient-right {
  width: 36vw;
  height: 36vw;
  right: -10vw;
  top: 22vw;
  background: radial-gradient(circle, rgba(139, 156, 117, 0.18), transparent 66%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 128px);
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.language-switch__link {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.language-switch__link:hover {
  color: var(--text);
}

.language-switch__link.is-active {
  background: rgba(232, 168, 76, 0.16);
  color: var(--text);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(232, 168, 76, 0.22);
  border-radius: 999px;
  background: rgba(232, 168, 76, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* [hidden] は UA より .hero-status の display が勝って空のピルが出るのを防ぐ */
.hero-status[hidden] {
  display: none;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 26px 0 0;
  max-width: 460px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 2;
}

.page-shell.is-shared .lead {
  max-width: 520px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 184px;
  padding: 17px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.store-button:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.14);
}

.store-button.is-primary {
  background: linear-gradient(145deg, rgba(232, 168, 76, 0.32), rgba(232, 168, 76, 0.14));
  border-color: rgba(232, 168, 76, 0.32);
}

.store-button.is-disabled {
  cursor: default;
  opacity: 0.58;
}

.store-button.is-disabled:hover {
  transform: none;
}

.store-label {
  font-size: 15px;
  font-weight: 700;
}

.store-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.store-note {
  margin: 16px 0 0;
  color: rgba(245, 240, 232, 0.48);
  font-size: 12px;
  line-height: 1.7;
}

.hero-stage {
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  width: min(324px, 100%);
  padding: 12px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 62%),
    rgba(22, 19, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    var(--shadow-deep),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.device-camera {
  width: 106px;
  height: 25px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #8a8679;
  aspect-ratio: 9 / 19;
}

.screen-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    url("./assets/hedgehog-poster.png") center center / cover no-repeat;
  transform: scale(1.18);
  filter: blur(32px) saturate(0.65);
  opacity: 0.38;
  pointer-events: none;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  padding: 30px 24px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  z-index: 1;
  pointer-events: none;
}

.scene-wrap {
  position: absolute;
  top: 30px;
  right: 24px;
  bottom: 154px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scene-shadow {
  position: absolute;
  width: 208px;
  height: 208px;
  border-radius: 48px;
  background: rgba(72, 66, 56, 0.24);
  filter: blur(38px);
  transform: translateY(22px);
  pointer-events: none;
}

.scene-frame {
  position: relative;
  width: 224px;
  aspect-ratio: 1;
  overflow: hidden;
  clip-path: polygon(50% 0%, 91% 25%, 91% 75%, 50% 100%, 9% 75%, 9% 25%);
  border-radius: 22px;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.09),
    0 0 0 14px rgba(0, 0, 0, 0.03);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.timer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: auto;
}

.timer-readout {
  color: rgba(255, 255, 255, 0.9);
  font-family:
    "SF Pro Rounded",
    "SF Pro Display",
    ui-rounded,
    system-ui,
    sans-serif;
  font-size: 62px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.end-button {
  min-width: 132px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 122, 118, 0.68);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  cursor: pointer;
}

.bgm-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(28, 24, 20, 0.86);
  color: rgba(245, 240, 232, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

.bgm-fab svg {
  width: 18px;
  height: 18px;
}

.bgm-fab.is-active {
  background: rgba(232, 168, 76, 0.18);
  border-color: rgba(232, 168, 76, 0.32);
}

.hero-cta-mobile {
  display: none;
}

.bgm-inline {
  display: none;
}

.download-fab {
  display: none;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100vw - 32px, 640px);
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .language-switch {
    justify-content: center;
  }

  .lead {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row--desktop,
  .store-note--desktop {
    display: none;
  }

  .hero-cta-mobile {
    display: block;
    text-align: center;
  }

  .bgm-fab {
    display: none;
  }

  .device-frame {
    width: min(330px, 100%);
    transform: none;
  }

  .bgm-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(330px, 100%);
    margin-top: 18px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(28, 24, 20, 0.72);
    color: rgba(245, 240, 232, 0.92);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  .bgm-inline svg {
    width: 18px;
    height: 18px;
  }

  .bgm-inline.is-active {
    background: rgba(232, 168, 76, 0.18);
    border-color: rgba(232, 168, 76, 0.32);
  }

  .hero-cta-mobile .store-note {
    max-width: 330px;
    margin-inline: auto;
    margin-top: 14px;
    margin-bottom: 0;
  }

  .hero-cta-mobile .download-fab {
    margin-top: 22px;
  }

  .download-fab {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: min(330px, 100%);
    margin-inline: auto;
    display: grid;
    gap: 10px;
  }

  .download-fab[hidden] {
    display: none;
  }

  .download-fab__button {
    display: grid;
    gap: 3px;
    padding: 16px 20px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(145deg, rgba(232, 168, 76, 0.32), rgba(232, 168, 76, 0.14));
    border: 1px solid rgba(232, 168, 76, 0.32);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .download-fab__button.is-disabled {
    background: rgba(28, 24, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.82;
    pointer-events: none;
  }

  .download-fab__eyebrow {
    color: rgba(245, 240, 232, 0.68);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .download-fab__label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  .download-fab__note {
    margin: 0;
    padding: 0 6px;
    color: rgba(245, 240, 232, 0.58);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100vw - 24px);
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .lead {
    font-size: 15px;
    line-height: 1.9;
    max-width: 304px;
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
  }

  .store-button {
    min-width: auto;
  }

  .device-frame {
    width: min(304px, 100%);
    padding: 10px;
  }

  .screen-overlay {
    padding: 24px 19px 28px;
  }

  .scene-wrap {
    top: 24px;
    right: 19px;
    bottom: 136px;
    left: 19px;
  }

  .scene-frame {
    width: 220px;
  }

  .timer-stack {
    bottom: 28px;
  }

  .timer-readout {
    font-size: 56px;
  }

  .bgm-fab {
    display: none;
  }

  .bgm-inline {
    width: min(304px, 100%);
  }

  .hero-cta-mobile .store-note {
    max-width: 304px;
  }

  .download-fab {
    width: min(304px, 100%);
  }

  .download-fab__button {
    padding: 15px 18px;
  }

  .download-fab__label {
    font-size: 15px;
  }
}

/* LP footer + legal pages */
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  align-items: center;
}

.site-footer__nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__copy {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(245, 240, 232, 0.38);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-page {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.legal-page__header {
  margin-bottom: 36px;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-page__back:hover {
  text-decoration: underline;
}

.legal-page__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legal-page__meta {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal-prose {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.legal-prose h2 {
  margin: 40px 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose h3 {
  margin: 28px 0 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-prose h2 + h3 {
  margin-top: 18px;
}

.legal-prose p {
  margin: 0 0 16px;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.legal-prose li {
  margin-bottom: 8px;
}

.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: #f0c078;
}

.legal-prose .legal-placeholder {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(232, 168, 76, 0.12);
  color: var(--text);
  font-weight: 600;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 34%;
  min-width: 120px;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 920px) {
  .site-footer {
    width: min(100vw - 32px, 640px);
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .legal-page {
    width: min(100vw - 32px, 640px);
    padding-top: 28px;
    padding-bottom: 56px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    width: calc(100vw - 24px);
  }

  .legal-page {
    width: calc(100vw - 24px);
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .legal-table td {
    padding-top: 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-table tr:last-child td {
    border-bottom: 0;
  }
}
