:root {
  color-scheme: dark;
  --bg: #101418;
  --surface: #171d23;
  --surface-soft: #1d242b;
  --line: rgba(232, 238, 242, 0.12);
  --text: #f4f7f8;
  --muted: #aeb8bf;
  --subtle: #7f8c95;
  --accent: #78d8c6;
  --accent-strong: #b8f0e2;
  --link: #9cd8ff;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(120, 216, 198, 0.04), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 20, 24, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a {
  min-width: 76px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero,
.page-hero,
.section,
.game-showcase,
.contact-grid {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 72px 0 86px;
  gap: clamp(30px, 6vw, 70px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}

.lead,
.page-hero p,
.game-details p,
.split-section p,
.contact-card p,
.feature-card p,
.unit-grid p,
.work-card p,
.studio-card p {
  color: var(--muted);
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgba(120, 216, 198, 0.45);
  border-radius: 8px;
  background: rgba(120, 216, 198, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  border-color: rgba(184, 240, 226, 0.72);
  background: rgba(120, 216, 198, 0.18);
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(120, 216, 198, 0.45);
  background: rgba(120, 216, 198, 0.12);
  color: var(--accent-strong);
}

.button-ghost {
  color: var(--accent-strong);
}

.hero-visual {
  justify-self: stretch;
}

.studio-card,
.work-card,
.game-showcase,
.feature-card,
.unit-grid article,
.contact-card,
.video-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  box-shadow: var(--shadow);
}

.studio-card {
  padding: 28px;
}

.game-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  border-radius: 18px;
}

.game-icon.small {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 14px;
}

.studio-card h2 {
  margin-bottom: 12px;
}

.section {
  padding: 68px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
}

.work-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 45%;
}

.work-card h3 {
  margin-bottom: 12px;
}

.video-panel {
  padding: 10px;
}

.video-panel video {
  width: 100%;
  max-height: 680px;
  border-radius: 6px;
  background: #000;
}

.unit-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.unit-grid article,
.contact-card {
  min-height: 208px;
  padding: 24px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.split-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 42px;
  border-block: 1px solid var(--line);
}

.split-section div {
  max-width: 760px;
}

.text-link {
  color: var(--link);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.page-hero {
  padding: 88px 0 54px;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.page-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: 1.06rem;
}

.game-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 5vw, 38px);
}

.game-art img {
  aspect-ratio: 9 / 16;
  width: min(280px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.game-details p {
  margin: 18px 0 0;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.spec-list div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.spec-list dt {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

.unit-grid {
  width: auto;
  margin: 0;
}

.screenshot-grid {
  --screenshot-width: clamp(180px, 22vw, 268px);
  display: flex;
  gap: 18px;
  margin-inline: calc((100vw - min(1120px, calc(100vw - 36px))) / -2);
  padding: 4px calc((100vw - min(1120px, calc(100vw - 36px))) / 2) 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: calc((100vw - min(1120px, calc(100vw - 36px))) / 2);
  scroll-snap-type: x mandatory;
}

.screenshot-grid img {
  flex: 0 0 var(--screenshot-width);
  width: var(--screenshot-width);
  max-width: none;
  height: calc(var(--screenshot-width) * 16 / 9);
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  scroll-snap-align: start;
}

.contact-hero {
  min-height: 34vh;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 86px;
}

.contact-card .button {
  margin-top: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .split-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
  }

  .hero,
  .work-card,
  .game-showcase,
  .unit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .game-art img {
    width: min(300px, 100%);
  }

  .screenshot-grid img {
    --screenshot-width: min(64vw, 268px);
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.95rem;
  }

  .hero,
  .page-hero,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .unit-grid article,
  .contact-card,
  .studio-card {
    min-height: auto;
    padding: 22px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }
}
