:root {
  --ink: #24180f;
  --paper: #fff6e8;
  --gold: #f4d35e;
  --blood: #c44536;
  --wood: #5c361c;
  --night: #120814;
  --dusk: #2a1018;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
  line-height: 1.65;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; height: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(18, 8, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 211, 94, 0.22);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 22px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(244, 211, 94, 0.45);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-weight: 800;
  font-size: 14px;
}

.store-official {
  display: inline-flex;
  line-height: 0;
  flex: 0 0 auto;
}
.store-official img {
  height: 40px;
  width: auto;
  display: block;
}
.store-official-lg img {
  height: 52px;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 8, 20, 0.15) 20%, rgba(18, 8, 20, 0.88) 78%, var(--night) 100%),
    linear-gradient(90deg, rgba(18, 8, 20, 0.35), transparent 40%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  padding: 0 8px 48px;
  text-align: center;
}
.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.kicker {
  margin: 12px 0 0;
  letter-spacing: 0.28em;
  font-weight: 800;
  color: var(--gold);
}
.hero h1,
header h1 {
  margin: 4px 0 8px;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.28em;
  font-size: clamp(48px, 10vw, 84px);
}
.lead {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
}
.sub, .section-lead {
  margin: 0 0 18px;
  color: #f0d9b8;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 18px 48px;
}
.legal-page main { max-width: 720px; }

.hidden { display: none !important; }
.stats-login {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.stats-login .muted-kicker {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: #d7c4a0;
}
.stats-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  background: #fff;
  color: #24180f;
  font-weight: 800;
}
.stats-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.stats-logout {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 211, 94, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.stats-note {
  color: #d7c4a0;
  font-size: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 16px 0 28px;
  list-style: none;
}
.stat {
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255, 246, 232, 0.08);
  border: 1px solid rgba(244, 211, 94, 0.28);
}
.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--gold);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 32px;
  font-size: 14px;
}
.stats-table th,
.stats-table td {
  padding: 8px 6px;
  text-align: right;
  border-bottom: 1px solid rgba(244, 211, 94, 0.18);
}
.stats-table th:first-child,
.stats-table td:first-child {
  text-align: left;
}

h2 {
  margin: 0 0 10px;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.16em;
  font-size: 32px;
  text-align: center;
}

.units, .cards, .scene, .cta {
  margin: 56px 0;
}
.unit-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.unit-row li {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  background: linear-gradient(180deg, #fff6e8, #f0d9b8);
  color: var(--ink);
  border-radius: 18px;
  border: 2px solid var(--blood);
  font-weight: 900;
}
.unit-row img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cards article {
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255, 246, 232, 0.08);
  border: 1px solid rgba(244, 211, 94, 0.28);
}
.cards h3 {
  margin: 0 0 8px;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.scene img {
  width: 100%;
  border-radius: 22px;
  border: 3px solid var(--blood);
  object-fit: cover;
  min-height: 280px;
}
.scene h2 { text-align: left; }
.scene ol {
  margin: 0;
  padding-left: 1.2em;
  font-weight: 800;
}
.scene li { margin: 8px 0; }

.cta {
  text-align: center;
  padding: 36px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(196, 69, 54, 0.2), rgba(18, 8, 20, 0.2)),
    #1a0c12;
  border: 3px solid var(--blood);
}
.cta img { image-rendering: pixelated; }

.legal {
  white-space: pre-wrap;
  background: rgba(18, 10, 16, 0.72);
  border: 1px solid rgba(244, 211, 94, 0.35);
  border-radius: 16px;
  padding: 20px;
  font-size: 15px;
}

.inquiry-form {
  margin: 28px 0 12px;
  text-align: left;
}
.inquiry-field { margin: 0 0 16px; }
.inquiry-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #f0d9b8;
}
.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(244, 211, 94, 0.35);
  border-radius: 10px;
  background: rgba(18, 10, 16, 0.72);
  color: var(--paper);
  font: inherit;
}
.inquiry-field textarea {
  min-height: 140px;
  resize: vertical;
}
.inquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.inquiry-submit {
  background: var(--blood);
  color: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.inquiry-submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.inquiry-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}
.inquiry-status.ok { color: #8ee0a8; }
.inquiry-status.err { color: #ff8a7a; }

footer {
  padding: 28px 18px 36px;
  text-align: center;
  color: #d7c4a0;
  font-size: 13px;
  border-top: 1px solid rgba(244, 211, 94, 0.18);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .top nav { display: none; }
  .cards, .scene { grid-template-columns: 1fr; }
  .scene h2 { text-align: center; }
  .unit-row { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 78vh; }
}
