:root {
  --brand: #ff385c;
  font: 16px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #20262e;
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.site-nav {
  position: fixed; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 48px), 1200px); padding: 9px 12px 9px 18px;
  display: flex; align-items: center; gap: 26px; border-radius: 40px;
  color: white; background: #74133050; backdrop-filter: blur(16px);
  transition: max-width .3s, background .3s, color .3s;
  max-width: 1200px;
}
.site-nav.scrolled { max-width: 900px; background: #fffffff0; color: #242934; box-shadow: 0 4px 24px #18213118; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; font-size: 1.18rem; font-weight: 750; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-action, .action { border-radius: 100px; background: white; color: #232731; font-weight: 650; }
.nav-action { padding: 8px 20px; }
.scrolled .nav-action { background: #252a32; color: white; }
.hero {
  color: white; position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 89% 30%, #ff9b9c 0%, transparent 46%),
    linear-gradient(115deg, #8f183e 0%, #b72049 38%, var(--brand) 75%, #fd737d 100%);
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  padding: 105px max(6vw, calc((100vw - 1200px)/2)) 48px;
  min-height: min(840px, 94svh);
}
.intro { position: relative; z-index: 1; }
h1 { font-size: clamp(3.8rem, 6.7vw, 7rem); line-height: 1.13; font-weight: 800; letter-spacing: -.055em; }
.intro p { margin: 22px 0 30px; color: #fff6f7; font-size: clamp(1rem, 1.5vw, 1.24rem); }
.store-actions { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; }
.store-actions [data-miniapp] { grid-column: 1 / -1; justify-self: stretch; }
.action { border: 0; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; min-height: 48px; }
.store-download { gap: 7px; background: #000; color: #fff; }

.action:hover, .nav-action:hover { box-shadow: 0 0 0 3px #ffe0e6a8; }
figure { min-width: 0; }
#miniapp { width: min(320px, calc(100% - 32px)); padding: 48px 24px 26px; border: 0; border-radius: 24px; color: #232731; box-shadow: 0 18px 72px #3e102540; }
#miniapp::backdrop { background: #31101fa8; }
#miniapp img { display: block; width: min(100%, 216px); height: auto; margin: 0 auto; }
#miniapp figcaption { display: block; margin-top: 16px; text-align: center; }
#miniapp strong { display: block; font-size: 1.15rem; }
.close-dialog { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: #505862; font-size: 1.55rem; }

canvas { display: block; width: 100%; aspect-ratio: 1; touch-action: pan-y; cursor: grab; }
canvas:active { cursor: grabbing; }

footer { font-size: .9rem; display: flex; justify-content: space-between; padding: 20px max(6vw, calc((100vw - 1200px)/2)); color: #505862; }
:focus-visible { outline: 3px solid #ffadc0; outline-offset: 4px; }
@media (max-width: 720px) {
  .site-nav { width: calc(100% - 28px); top: 10px; gap: 15px; padding: 6px 8px 6px 12px; }
  .brand img { width: 30px; height: 30px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 106px 20px 28px; gap: 8px; }
  h1 { font-size: clamp(3.1rem, 11vw, 4.8rem); }
  .store-actions { justify-content: center; grid-template-columns: repeat(2, minmax(0, max-content)); }
  .intro p { margin: 12px 0 18px; }
  canvas { max-height: 46svh; }

}
@media (max-width: 400px) {
  .store-download { padding-inline: 10px; font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .site-nav { transition: none; }
}

#language {
  -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center;
  font: inherit; color: inherit; background: transparent; cursor: pointer;
  border: 1px solid currentColor; border-radius: 22px; padding: 5px 8px;
}
#language option { color: #232731; background: white; }
html:lang(ja) h1 { font-size: clamp(2.6rem, 4.7vw, 5.2rem); }
@media (max-width: 720px) {
  .site-nav { gap: 8px; }
  .nav-action { padding: 7px 12px; }
  #language { font-size: .9rem; }
  html:lang(ja) h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); }
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: 5px; }
  .nav-action, #language { font-size: .84rem; padding-inline: 6px; }
  .store-download span { min-width: 0; }
}
