:root {
  --black: #0a0a0a;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --accent: #0a0a0a;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 14px;
  --font-latin: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Noto Sans JP", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="zh"] { --font-body: "Montserrat", "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.brand img { height: 38px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { color: #d4d4d4; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.header-nav a:hover { color: #fff; }
@media (max-width: 860px) { .header-nav .nav-link { display: none; } }
@media (max-width: 600px) { .header-inner { height: 68px; } .brand img { height: 28px; } }

.lang-select { position: relative; }
.lang-select select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: #fff;
  border: 1px solid #3a3a3a; border-radius: 999px;
  padding: 6px 32px 6px 14px;
  font: 500 13px var(--font-body); cursor: pointer;
}
.lang-select select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-select option { color: var(--ink); background: #fff; }
.lang-select::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 6px; height: 6px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { background: var(--black); color: #fff; padding: 56px 0 96px; overflow: hidden; }
.hero-eyebrow { font-family: var(--font-latin); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #9a9a9a; margin: 0 0 20px; }
.section h2, .service h3 { text-wrap: balance; word-break: auto-phrase; }

.game-banner {
  display: flex; align-items: center; justify-content: center;
  min-height: 440px; border-radius: 24px; background: #2a2a2a;
}
.game-banner p { margin: 0; font-size: 14px; letter-spacing: .2em; color: #a3a3a3; }
@media (max-width: 600px) {
  .hero { padding: 32px 0 64px; }
  .game-banner { min-height: 300px; border-radius: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section, .hero { scroll-margin-top: 84px; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 600px) { .section { padding: 72px 0; } }
.section-label { font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.35; margin: 0 0 16px; font-weight: 700; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 48px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
}
.service-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--black); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 18px; margin: 0 0 10px; line-height: 1.45; }
.service p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Company table ---------- */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 22px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-table th { width: 220px; font-weight: 600; color: var(--ink); }
.info-table td { color: #2b2b2b; }
.info-table .sub { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding: 18px 4px 2px; border-bottom: 0; font-size: 13px; color: var(--muted); }
  .info-table td { padding: 0 4px 18px; }
}

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 32px; } }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
@media (max-width: 600px) { .form { padding: 24px 20px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .req { color: var(--err); margin-left: 4px; font-weight: 500; font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff;
  padding: 12px 14px; font: 400 16px var(--font-body); color: var(--ink);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 24px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--black); flex-shrink: 0; }
.hidden { display: none !important; }
.form-status { margin-top: 18px; font-size: 14px; padding: 14px 16px; border-radius: 10px; }
.form-status.ok { background: #e8f5ee; color: var(--ok); }
.form-status.err { background: #fdecea; color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #a3a3a3; padding: 56px 0 40px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner img { height: 22px; width: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #d4d4d4; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { margin-top: 32px; font-size: 12px; color: #737373; }

/* ---------- Legal page ---------- */
.legal { padding: 72px 0 104px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 19px; margin: 44px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal p, .legal li { font-size: 15px; color: #2b2b2b; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .note { background: var(--bg-soft); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--muted); }

/* language blocks: only the active language is shown */
[data-lang-block] { display: none; }
html[lang="ja"] [data-lang-block="ja"],
html[lang="en"] [data-lang-block="en"],
html[lang="fr"] [data-lang-block="fr"],
html[lang="es"] [data-lang-block="es"],
html[lang="zh"] [data-lang-block="zh"] { display: block; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
