:root {
  color-scheme: dark;
  --base: #101612;
  --surface: #18221a;
  --ink: #f4f7ee;
  --muted: #b3beb3;
  --accent: #c3f16f;
  --line: #344437;
  --gutter: clamp(18px, 5vw, 76px);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans CJK JP", Meiryo, sans-serif;
  background: var(--base);
  color: var(--ink);
}

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

body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: min(1376px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 8px auto auto 8px;
  padding: 10px 14px;
  background: var(--base);
  transform: translateY(calc(-100% - 12px));
}

.skip-link:focus { transform: none; }

.site-header {
  background: #101612;
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-inner { min-height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: "Geist", "Inter", system-ui, sans-serif;
  font-weight: 850;
  font-size: clamp(.87rem, 1.9vw, 1.5rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.header-inner nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(11px, 2.85vw, 38px);
}

.header-inner nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: clamp(.74rem, 1.3vw, .98rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-inner nav a:hover,
.credits a:hover,
.image-label:hover { color: var(--accent); }

.hero {
  --hero-height: clamp(570px, 48vw, 755px);
  position: relative;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 18%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 16%);
}

.hero-visual img {
  position: absolute;
  inset: -5% auto auto -16%;
  width: 116%;
  height: 109%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, var(--base) 0%, rgba(16, 22, 18, .28) 17%, transparent 46%),
    linear-gradient(90deg, var(--base) 13%, rgba(16, 22, 18, .97) 25%, rgba(16, 22, 18, .74) 42%, rgba(16, 22, 18, .12) 74%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-height);
  padding-block: 64px 92px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 5.85rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.067em;
}

.hero h1 span { color: var(--accent); }

.hero-copy > p {
  max-width: 26em;
  margin-block: 23px 27px;
  color: #dce6dc;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  gap: 18px;
  padding: 11px 19px;
  border-radius: 6px;
  background: var(--accent);
  color: #142012;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover { background: #ddffa4; }

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbe3d8;
  font-size: .75rem;
  line-height: 1.4;
}

.image-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.image-label::before {
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
}

.world {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 10fr);
  align-items: center;
  gap: clamp(25px, 5vw, 80px);
  padding-block: clamp(42px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  font-weight: 850;
  line-height: 1.24;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.world h2 { font-size: clamp(2.1rem, 4.4vw, 4.2rem); }
.world-copy > p { margin-top: 18px; max-width: 28em; }

.screenshot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.screenshot:hover { border-color: var(--accent); }
.screenshot img { width: 100%; height: auto; }

.world figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.65;
}

.world figcaption strong { color: var(--accent); font-size: .92rem; }

.play {
  border-top: 1px solid var(--line);
  padding-block: clamp(38px, 5.5vw, 84px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin-top: clamp(20px, 2.5vw, 37px);
}

.feature h3 {
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.world-copy > p,
.feature p,
.faq-list p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: anywhere;
}

.image-note {
  margin-top: 17px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.65;
}

.faq {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(12em, 1fr) minmax(0, 2.4fr);
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(30px, 4.8vw, 72px);
}

.faq h2 { padding-top: 8px; }
.faq-list details + details { border-top: 1px solid var(--line); }

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 11px 1px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(.95rem, 1.5vw, 1.12rem);
  font-weight: 750;
  line-height: 1.5;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}

.faq-list details[open] summary::after { background-size: 14px 2px, 0 0; }
.faq-list details p { padding: 0 22px 14px 1px; }

.site-footer {
  align-items: flex-start;
  padding-block: 24px 34px;
}

.site-footer .brand { font-size: 1.05rem; }
.credits {
  max-width: 56em;
  padding-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.75;
}

.credits a { text-underline-offset: 3px; }
.error-page { padding-block: 72px; }
.error-page h1 { margin-bottom: 22px; }

@media (max-width: 820px) {
  .hero { --hero-height: 665px; }
  .hero-inner { justify-content: flex-start; padding-block: 48px 65px; }
  .hero h1 { font-size: clamp(2.45rem, 7.8vw, 4.2rem); }
  .hero-visual {
    inset: auto 0 0;
    height: 60%;
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }
  .hero-visual img { inset: 0; width: 100%; height: 100%; object-position: 72% center; }
  .hero::after {
    background: linear-gradient(180deg, var(--base) 40%, rgba(16, 22, 18, .82) 49%, transparent 65%, transparent 74%, var(--base) 100%);
  }
  .hero-caption { bottom: 14px; }
  .world { grid-template-columns: 1fr; }
  .world h2 br { display: none; }
  .world-copy > p { max-width: 36em; margin-top: 13px; }
  .faq-inner { grid-template-columns: 1fr; gap: 12px; }
}

@media (min-width: 601px) and (max-width: 820px) {
  .hero { --hero-height: 720px; }
  .hero-visual img { inset: -4% auto auto -15%; width: 115%; height: 108%; }
}

@media (max-width: 600px) {
  .header-inner { min-height: 62px; gap: 8px; }
  .header-inner .brand { gap: 6px; }
  .header-inner .brand img { width: 25px; height: 25px; }
  .hero-inner { padding-top: 41px; }
  .hero-copy > p { margin-block: 16px 19px; }
  .features { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { flex-direction: column; gap: 0; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { --hero-height: 620px; }
  .header-inner .brand { font-size: .78rem; }
  .header-inner nav { gap: 9px; }
}
