:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-strong: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fbf6ec;
  --ink: #17181d;
  --ink-soft: #414049;
  --muted: #756f66;
  --subtle: #a0978b;
  --line: rgba(37, 34, 30, 0.12);
  --line-strong: rgba(37, 34, 30, 0.2);
  --gold: #c9932f;
  --gold-soft: #f4d27b;
  --red: #d9483f;
  --red-dark: #8e2327;
  --charcoal: #202027;
  --shadow: 0 24px 70px rgba(52, 42, 28, 0.14);
  --shadow-soft: 0 12px 34px rgba(52, 42, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 2%, rgba(217, 72, 63, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(244, 210, 123, 0.28), transparent 32rem),
    linear-gradient(180deg, var(--paper-strong) 0%, var(--paper) 48%, #f1eadf 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.82;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 34, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 30, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 38vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.62));
}

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(255, 250, 240, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.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(201, 147, 47, 0.42);
  background:
    linear-gradient(135deg, rgba(217, 72, 63, 0.18), transparent 48%),
    linear-gradient(160deg, #fff7e8, #eadcc7);
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--shadow-soft);
}

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

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

.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 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(217, 72, 63, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--red-dark);
  outline: none;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(66px, 8vw, 108px) 0;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(30px, 7vw, 84px) auto auto 0;
  width: min(540px, 58vw);
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold-soft), transparent);
  opacity: 0.78;
}

.hero::after {
  content: "GAME DESIGN / BATTLE / DATA";
  position: absolute;
  right: 0;
  bottom: clamp(24px, 6vw, 70px);
  color: rgba(32, 32, 39, 0.12);
  font-size: clamp(0.74rem, 1.5vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

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

.eyebrow,
.section-kicker,
.panel-label,
.status {
  color: var(--red-dark);
  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(3rem, 7.6vw, 6.6rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.18;
  text-wrap: balance;
}

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

.catch {
  margin-bottom: 18px;
  color: var(--red-dark);
  font-size: clamp(1.18rem, 2.3vw, 1.8rem);
  font-weight: 850;
  line-height: 1.55;
  text-wrap: balance;
}

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

.lead {
  max-width: 680px;
  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;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

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

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

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

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

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(32, 32, 39, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 240, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

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

.hero-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: 20px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(217, 72, 63, 0.14);
  transform: rotate(18deg);
  pointer-events: none;
}

.panel-number {
  position: relative;
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(4.3rem, 10vw, 7.8rem);
  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, 72px);
  border-top: 1px solid var(--line);
}

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

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

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.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);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 22px;
}

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

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

.credit-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 30px;
  height: 8px;
  border-right: 1px solid rgba(217, 72, 63, 0.24);
  border-bottom: 1px solid rgba(217, 72, 63, 0.24);
  pointer-events: none;
}

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

.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: 210px;
}

.work-card:hover,
.work-card:focus-within,
.credit-card:hover,
.product-card:hover {
  background: var(--surface);
}

.status {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 72, 63, 0.18);
  background: rgba(217, 72, 63, 0.06);
}

.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(217, 72, 63, 0.28);
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--surface);
  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(34px, 6vw, 56px);
  border: 1px solid rgba(217, 72, 63, 0.16);
  background:
    linear-gradient(135deg, rgba(217, 72, 63, 0.09), transparent 48%),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.contact-section::after {
  content: "CONTACT";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: 12px;
  color: rgba(32, 32, 39, 0.06);
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  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 var(--line);
  background: rgba(255, 250, 240, 0.8);
  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 var(--line);
  background: rgba(255, 250, 240, 0.74);
  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, 1120px);
    padding: 58px 0;
  }

  .hero {
    gap: 30px;
  }

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

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

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.15rem);
  }

  .catch {
    font-size: 1.16rem;
  }

  .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, 1120px);
    padding: 30px 18px;
  }

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

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