:root {
  color-scheme: dark;
  --bg: #050609;
  --bg-deep: #08090d;
  --bg-soft: #101217;
  --panel: #151820;
  --panel-strong: #1b1d25;
  --panel-warm: #211b18;
  --text: #f7f2e8;
  --muted: #c7bdad;
  --subtle: #8b8173;
  --line: rgba(244, 201, 93, 0.2);
  --line-soft: rgba(255, 255, 255, 0.09);
  --gold: #f4c95d;
  --gold-deep: #b9852e;
  --red: #df4a42;
  --red-dark: #8b2428;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(139, 36, 40, 0.24) 0%, transparent 28%),
    linear-gradient(245deg, rgba(244, 201, 93, 0.11) 0%, transparent 24%),
    linear-gradient(180deg, #050609 0%, #0a0b10 42%, #07080c 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 201, 93, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 201, 93, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  opacity: 0.48;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(5, 6, 9, 0.82);
  border-bottom: 1px solid rgba(244, 201, 93, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 201, 93, 0.45);
  background:
    linear-gradient(135deg, rgba(223, 74, 66, 0.72), transparent 48%),
    linear-gradient(160deg, #16100d, #2a2116);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.34);
}

.brand-ja,
.brand-en {
  display: block;
  line-height: 1.25;
}

.brand-ja {
  font-weight: 800;
}

.brand-en {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(244, 201, 93, 0.22);
  background: rgba(244, 201, 93, 0.07);
  color: var(--gold);
  outline: none;
}

.section {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 370px);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  min-height: calc(100vh - 76px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(28px, 7vw, 88px) auto auto clamp(-20px, -2vw, -8px);
  width: min(520px, 62vw);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
  opacity: 0.7;
}

.hero::after {
  content: "GAME DESIGN / BATTLE / DATA";
  position: absolute;
  right: 0;
  bottom: clamp(24px, 6vw, 72px);
  color: rgba(244, 201, 93, 0.12);
  font-size: clamp(0.74rem, 1.6vw, 1rem);
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: 790px;
}

.eyebrow,
.section-kicker,
.panel-label,
.status {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 8.2vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.16;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.catch {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: clamp(1.22rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.55;
  text-wrap: balance;
}

.lead,
.section-heading p,
.text-block,
.contact-copy p {
  color: var(--muted);
  font-size: 1.03rem;
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f05a4f, var(--red-dark));
  color: #fff;
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.22) 44%, transparent 62% 100%);
  transform: translateX(-115%);
}

.button-primary:hover::after,
.button-primary:focus-visible::after {
  transform: translateX(115%);
}

.button-ghost {
  border-color: rgba(244, 201, 93, 0.24);
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button,
.card,
.link-card,
.brand-mark,
.hero-panel,
.contact-section,
.contact-purposes li {
  border-radius: 8px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(244, 201, 93, 0.26);
  background:
    linear-gradient(135deg, rgba(223, 74, 66, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(244, 201, 93, 0.09), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(244, 201, 93, 0.16);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: 24px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(244, 201, 93, 0.16);
  transform: rotate(18deg);
  pointer-events: none;
}

.panel-number {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: clamp(4.5rem, 11vw, 8.3rem);
  font-weight: 950;
  line-height: 1;
}

.panel-copy {
  position: relative;
  margin: 14px 0 0;
  color: var(--muted);
}

.split-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 76px);
  border-top: 1px solid rgba(244, 201, 93, 0.12);
}

.split-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.text-block p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.credit-grid,
.work-grid,
.product-row {
  display: grid;
  gap: 16px;
}

.credit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-grid,
.product-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.link-card {
  position: relative;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(244, 201, 93, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow-soft);
}

.card::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.card {
  padding: 23px;
}

.credit-card {
  min-height: 150px;
}

.credit-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 8px;
  border-right: 1px solid rgba(244, 201, 93, 0.24);
  border-bottom: 1px solid rgba(244, 201, 93, 0.24);
  pointer-events: none;
}

.credit-card h3,
.work-card h3,
.product-card h3 {
  color: var(--text);
}

.credit-card p,
.work-card p,
.product-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.rights-note {
  margin: 24px 0 0;
  color: var(--subtle);
  font-size: 0.82rem;
}

.work-card {
  min-height: 218px;
}

.work-card:hover,
.work-card:focus-within,
.credit-card:hover,
.product-card:hover {
  background:
    linear-gradient(145deg, rgba(244, 201, 93, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024));
}

.status {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 4px 10px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  background: rgba(244, 201, 93, 0.09);
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 20px;
  text-decoration: none;
}

.link-card span {
  font-weight: 900;
}

.link-card small {
  color: var(--muted);
}

.link-card:hover,
.link-card:focus-visible,
.card:hover {
  border-color: rgba(244, 201, 93, 0.46);
}

.link-card:hover,
.link-card:focus-visible {
  background:
    linear-gradient(90deg, rgba(139, 36, 40, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024));
  outline: none;
}

.contact-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(42px, 6vw, 72px);
  padding: clamp(36px, 6vw, 58px);
  border: 1px solid rgba(244, 201, 93, 0.28);
  background:
    linear-gradient(120deg, rgba(139, 36, 40, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(244, 201, 93, 0.06), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.contact-section::after {
  content: "CONTACT";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: 12px;
  color: rgba(244, 201, 93, 0.08);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.contact-copy p {
  margin-bottom: 18px;
}

.contact-purposes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-purposes li {
  padding: 6px 10px;
  border: 1px solid rgba(244, 201, 93, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(244, 201, 93, 0.12);
  background: rgba(5, 6, 9, 0.68);
  color: var(--subtle);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .hero::after {
    position: static;
    display: block;
    margin-top: -24px;
  }

  .credit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid,
  .product-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    display: grid;
  }

  .contact-button {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  body::before {
    background-size: 52px 52px;
  }

  .site-header {
    position: static;
    padding: 16px 20px;
  }

  .brand {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    gap: 7px;
    font-size: 0.84rem;
  }

  .site-nav a {
    min-height: 38px;
    padding: 6px 9px;
  }

  .section {
    width: min(100% - 28px, 1140px);
    padding: 58px 0;
  }

  .hero {
    gap: 30px;
  }

  .hero::before {
    width: 74%;
  }

  .hero::after {
    margin-top: -10px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.35rem);
  }

  .catch {
    font-size: 1.18rem;
  }

  .hero-actions,
  .button,
  .link-card {
    width: 100%;
  }

  .button {
    min-height: 52px;
  }

  .hero-panel,
  .card {
    padding: 20px;
  }

  .credit-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-section {
    width: min(100% - 28px, 1140px);
    padding: 30px 18px;
  }

  .contact-section::after {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .button-primary::after,
  .card,
  .link-card,
  .site-nav a {
    transition:
      border-color 180ms ease,
      transform 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease;
  }
}
