:root {
  --bg: #fff4e8;
  --ink: #3a2e2a;
  --ink-soft: #5c4a42;
  --muted: #9b8c85;
  --accent: #e85d2f;
  --accent-deep: #c94a20;
  --gold: #b8862e;
  --gold-bright: #d9a441;
  --orb-mid: #ff8c5a;
  --card-line: rgba(58, 46, 42, 0.12);
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 8% -12%, rgba(232, 93, 47, 0.22), transparent 58%),
    radial-gradient(900px 520px at 100% 0%, rgba(217, 164, 65, 0.2), transparent 52%),
    radial-gradient(700px 480px at 70% 110%, rgba(232, 93, 47, 0.12), transparent 55%),
    linear-gradient(180deg, #fff8ef 0%, #f7e7d4 42%, #f0dcc6 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.steam {
  position: absolute;
  width: 42vw;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite;
}

.steam-a {
  top: 6%;
  left: -8%;
}

.steam-b {
  top: 38%;
  right: -14%;
  animation-delay: -4s;
  animation-duration: 18s;
}

.steam-c {
  bottom: 2%;
  left: 28%;
  animation-delay: -8s;
  animation-duration: 16s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(3%, -4%, 0) scale(1.08);
    opacity: 0.8;
  }
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 5rem);
}

.hero-copy {
  max-width: 34rem;
}

.lang-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin: 0;
  padding: 0.85rem clamp(1.25rem, 5vw, 5rem) 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.lang-bar a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lang-bar [aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 8.2vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

html[lang="en"] .hero-brand {
  white-space: normal;
  font-size: clamp(1.35rem, 6.2vw, 3.4rem);
  max-width: 16ch;
}

.hero-line {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--accent-deep);
}

.hero-line .soft {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85em;
}

.hero-support {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid var(--card-line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.72);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.store-btn:not(.is-disabled):hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(232, 93, 47, 0.55);
}

.store-btn.is-disabled {
  opacity: 0.78;
  cursor: not-allowed;
}

.store-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.store-note {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: min(62vh, 520px);
}

.gaman-stage {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1;
}

.gaman-orb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  cursor: default;
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, var(--orb-mid), var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 18px 36px rgba(232, 93, 47, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  animation: breathe 3.2s ease-in-out infinite;
  padding: 1.5rem;
}

.gaman-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
}

.gaman-caption {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.gaman-yen {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.float-yen {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, 0);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
}

.float-yen.is-active {
  animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -90px) scale(1.35);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 5vw, 5rem) 4rem;
  max-width: 720px;
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--card-line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
}

.section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.25rem, 5vw, 5rem) 3rem;
  border-top: 1px solid var(--card-line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.foot-warn {
  max-width: 36rem;
}

.foot-links {
  margin-top: 0.35rem;
}

.foot-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.doc-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 5rem) 0.5rem;
}

.doc-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.doc-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.doc-nav a[aria-current="page"] {
  color: var(--accent-deep);
  font-weight: 700;
}

.doc-nav a:not([aria-current="page"]) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.doc-main {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem) 3rem;
}

.doc-main h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.02em;
}

.doc-meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-section {
  margin: 0 0 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-line);
}

.doc-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.doc-section h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.05rem;
}

.doc-section p,
.doc-section li {
  color: var(--ink-soft);
}

.doc-section p {
  margin: 0 0 0.75rem;
}

.doc-section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.doc-section a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.doc-mail {
  font-size: 1.15rem;
  font-weight: 700;
}

.doc-divider {
  border: 0;
  border-top: 1px solid var(--card-line);
  margin: 2rem 0;
}

.page-404 {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem;
}

.not-found {
  text-align: center;
  max-width: 28rem;
}

.not-found-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
}

.not-found h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.5rem;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
    order: 1;
  }

  html[lang="en"] .hero-brand {
    margin-inline: auto;
  }

  .hero-visual {
    order: 0;
    min-height: auto;
  }

  .hero-support {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .gaman-stage {
    width: min(68vw, 260px);
  }

  .gaman-icon {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steam,
  .gaman-orb,
  .reveal,
  .float-yen.is-active {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
