:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #6f6b63;
  --line: #d9d4ca;
  --accent: #2f5d50;
  --accent-soft: #dfeae5;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a:hover { color: var(--accent); }

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 96px 0;
}

.hero-copy { max-width: 800px; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; }

h1 {
  margin: 18px 0 24px;
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: -.05em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -.035em;
}

h3 { font-size: 22px; }

.lead {
  max-width: 700px;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-weight: 650;
}

.button.primary {
  background: var(--text);
  color: white;
}

.button.secondary:hover { background: var(--surface); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }

.section { padding: 96px 0; }
.section.alt { background: var(--surface); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head p { max-width: 560px; color: var(--muted); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.card.featured {
  background: linear-gradient(145deg, #edf3ef, var(--surface));
  border-color: #b8cbc2;
}

.card .meta,
.mini-card .meta {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.card p { color: var(--muted); }
.card:hover { transform: translateY(-2px); transition: .18s ease; }

.page-hero {
  padding: 112px 0 72px;
}

.page-hero h1 { font-size: clamp(42px, 7vw, 76px); }

.prose {
  max-width: 760px;
  font-size: 18px;
}

.prose p { margin: 0 0 1.4em; }

.product-visual {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  color: var(--muted);
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.work-hero { padding-bottom: 64px; }

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.title-row h1 { margin-right: 8px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.game-intro { max-width: 520px; }
.game-intro p { color: var(--muted); }

.play-steps {
  margin: 28px 0;
  padding-left: 1.5em;
}

.play-steps li { margin-bottom: 12px; }

.small-note {
  font-size: 14px;
  color: var(--muted);
}

.game-shell {
  width: min(100%, 430px);
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #b9b2a5;
  border-radius: 28px;
  background: #111b1d;
  box-shadow: 0 28px 70px rgba(34, 38, 34, .18);
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111b1d;
}

.work-copy { max-width: 900px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 72px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--surface);
}

.mini-card h3 { margin: 12px 0; }
.mini-card p { font-size: 15px; color: var(--muted); }

.note-box {
  margin: 40px 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 14px 14px 0;
}

.note-box p {
  margin: 8px 0 0;
  color: #41544d;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-intro { max-width: 700px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 64px; }
  .nav { gap: 12px; font-size: 13px; }
  .grid { grid-template-columns: 1fr; }
  .section-head, .footer-inner { display: block; }
  .section { padding: 72px 0; }
  .page-hero { padding: 88px 0 56px; }
  .title-row { gap: 4px 12px; }
  .title-row h1 { width: 100%; margin-bottom: 4px; }
  .game-shell { border-radius: 20px; }
}
