:root {
  color-scheme: light;
  --ink: #090909;
  --muted: #666;
  --paper: #fafaf8;
  --line: #dcdcd8;
  --shell: min(1180px, calc(100vw - 48px));
  font-family: Inter, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); }
body, button, a { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.desktop-only { display: initial; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  padding: 12px 16px; border-radius: 999px; background: #111; color: #fff;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  transition: height .25s, background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled {
  height: 66px; background: rgba(250, 250, 248, .9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04); backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; width: max-content;
  text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: -.02em;
}
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: #fff; }
.header-brand-viewport {
  position: relative; display: block; width: 150px; aspect-ratio: 1500 / 270; overflow: hidden;
}
.header-brand-viewport img {
  position: absolute; left: 0; top: 50%; width: 100%; height: auto;
  border-radius: 0; background: transparent; transform: translateY(-50%);
}
.language-switcher {
  display: inline-flex; align-items: center; justify-self: end; padding: 3px;
  border: 1px solid #111; border-radius: 999px;
}
.language-switcher a {
  min-width: 60px; padding: 7px 10px; border-radius: 999px; color: #555;
  font-size: 10px; font-weight: 700; line-height: 1; text-align: center; text-decoration: none;
}
.language-switcher a:hover, .language-switcher a:focus-visible { color: #111; }
.language-switcher a[aria-current="page"] { background: #111; color: #fff; }

.concept-hero {
  --grid-minor: #e3e3dd;
  --grid-major: #cfcfc8;
  --grid-cell: 24px;
  position: relative; isolation: isolate; display: grid; min-height: 100svh;
  padding: 112px 0 56px; overflow: hidden; background: var(--paper);
}
.concept-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size:
    calc(var(--grid-cell) * 5) calc(var(--grid-cell) * 5),
    calc(var(--grid-cell) * 5) calc(var(--grid-cell) * 5),
    var(--grid-cell) var(--grid-cell),
    var(--grid-cell) var(--grid-cell);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse at 62% 48%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 62% 48%, #000 18%, transparent 72%);
}
.concept-layout {
  display: grid; grid-template-columns: minmax(330px, .82fr) minmax(480px, 1.18fr);
  grid-template-areas: "copy stage"; align-items: center; gap: 36px;
}
.concept-copy { grid-area: copy; position: relative; z-index: 2; }
.concept-copy h1 {
  margin: 0; font-size: clamp(29px, 3.8vw, 48px); line-height: 1.08;
  letter-spacing: -.075em; font-weight: 650; white-space: nowrap;
}
html[lang="en"] .concept-copy h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.055em; }
.hero-copy { margin: 30px 0 34px; color: var(--muted); font-size: 15px; line-height: 1.9; }

.concept-stage {
  grid-area: stage; position: relative; width: 100%; max-height: calc(100svh - 132px);
  aspect-ratio: 1.04 / 1; margin: 0; overflow: hidden;
}
.concept-canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; }
.concept-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 10px; margin: 0; text-align: center;
}
.concept-fallback span { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .24em; color: #888; }
.concept-fallback strong { font-size: clamp(18px, 2.2vw, 28px); letter-spacing: -.03em; }
.concept-fallback small { color: #777; font-size: 12px; }
.concept-stage[data-state="ready"] .concept-fallback { display: none; }
.concept-legend {
  position: absolute; left: 22px; bottom: 20px; display: grid; gap: 7px; margin: 0;
  pointer-events: none; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em; color: #6f6f6a;
}
.concept-legend b { display: inline-block; width: 22px; color: #111; }
.concept-corner { position: absolute; width: 28px; height: 28px; border-color: #111; pointer-events: none; }
.corner-a { left: 18px; top: 18px; border-left: 1px solid; border-top: 1px solid; }
.corner-b { right: 18px; bottom: 18px; border-right: 1px solid; border-bottom: 1px solid; }

.store-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 12px;
}
.store-badge { display: block; line-height: 0; text-decoration: none; }
.store-badge img { display: block; width: auto; height: 48px; }
.store-badge:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

.site-footer { padding: 32px 0; border-top: 1px solid #2a2a2a; background: #0a0a0a; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px 24px; }
.site-footer nav a { color: #aaa; font-size: 13px; line-height: 1.5; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #fff; }
.site-footer small { justify-self: end; color: #777; font-size: 10px; }
.store-trademarks {
  grid-column: 1 / -1; max-width: 920px; margin: -12px 0 0;
  color: #666; font-size: 9px; line-height: 1.6;
}

/* 法務・サポートページ */
.legal-page { background: var(--paper); }
.legal-main { padding: 132px 0 96px; }
.legal-shell { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.legal-page-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 52px;
}
.legal-page-nav a {
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px;
  color: #555; font-size: 11px; font-weight: 650; text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.legal-page-nav a:hover, .legal-page-nav a:focus-visible { border-color: #111; color: #111; }
.legal-page-nav a[aria-current="page"] { border-color: #111; background: #111; color: #fff; }
.legal-intro { padding-bottom: 52px; }
.legal-intro h1 {
  margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.12;
  letter-spacing: -.06em; font-weight: 650;
}
.legal-meta { margin: 18px 0 0; color: #777; font-size: 11px; }
.legal-summary { max-width: 720px; margin: 26px 0 0; color: #4f4f4b; font-size: 17px; line-height: 1.85; }
.legal-content section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 16px; font-size: 21px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.9; }
.legal-content p { margin: 10px 0; }
.legal-content ul { margin: 12px 0; padding-left: 22px; }
.legal-content a { text-underline-offset: 3px; }
.license-list { display: grid; gap: 9px; padding: 0 !important; list-style: none; }
.license-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.license-list summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.license-list pre {
  overflow-x: auto; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #e7e7e2;
  white-space: pre-wrap; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .75, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .site-header { padding-inline: 18px; }
  .concept-hero { min-height: 0; padding: 124px 0 76px; }
  .concept-hero::before {
    -webkit-mask-image: radial-gradient(ellipse at 50% 58%, #000 16%, transparent 76%);
    mask-image: radial-gradient(ellipse at 50% 58%, #000 16%, transparent 76%);
  }
  .concept-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "stage"; gap: 38px; }
  .concept-copy { text-align: center; }
  .concept-copy h1 { margin-inline: auto; }
  .concept-stage { max-height: none; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .site-footer nav { justify-content: center; }
  .site-footer small { justify-self: center; }
  .store-trademarks { grid-column: auto; margin-top: -8px; text-align: center; }
  .legal-main { padding-top: 116px; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  .desktop-only { display: none; }
  .site-header { height: 64px; }
  .site-header.is-scrolled { height: 60px; }
  .brand { font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  .header-brand-viewport { width: 136px; }
  .header-brand-viewport img { width: 100%; height: auto; }
  .language-switcher a { min-width: 52px; padding: 7px 8px; font-size: 9px; }
  .concept-hero { padding: 112px 0 56px; }
  .hero-copy { margin: 22px 0 28px; font-size: 13px; }
  .concept-layout { gap: 24px; }
  .concept-stage { aspect-ratio: 1 / 1.08; }
  .concept-fallback { padding-inline: 28px; }
  .concept-fallback small { max-width: 230px; line-height: 1.6; }
  .concept-legend { left: 14px; bottom: 14px; gap: 5px; font-size: 8px; }
  .hero-store-actions { justify-content: center; }
  .site-footer nav { gap: 12px 16px; }
  .legal-main { padding: 102px 0 72px; }
  .legal-shell { width: calc(100% - 32px); }
  .legal-page-nav {
    flex-wrap: nowrap; gap: 7px; margin: 0 -16px 38px; padding: 0 16px 8px;
    overflow-x: auto; scrollbar-width: none;
  }
  .legal-page-nav::-webkit-scrollbar { display: none; }
  .legal-page-nav a { flex: 0 0 auto; }
  .legal-intro { padding-bottom: 42px; }
  .legal-intro h1 { font-size: 32px; }
  .legal-summary { font-size: 15px; }
  .legal-content section { padding: 28px 0; }
  .legal-content h2 { font-size: 19px; }
  .legal-content p, .legal-content li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
