:root {
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --text: #f3f3ef;
  --muted: #9c9c96;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --primary: #f1f1ea;
  --accent: #8f939b;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(119, 130, 150, 0.12), transparent 22%),
    linear-gradient(180deg, #090909 0%, #030303 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 92%);
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-footer {
  margin-top: 72px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 11, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.button {
  text-decoration: none;
}

.brand {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.section {
  padding: 56px 0;
}

.hero {
  display: block;
  min-height: calc(100vh - 190px);
}

.hero-copy,
.panel,
.work-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.eyebrow,
.card-label,
.work-index {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 8vw, 7rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.hero-text,
.panel p,
.work-card p,
.contact-card p,
.hero-note p {
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  max-width: 36rem;
  margin: 28px 0 0;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  border: 1px solid var(--line-strong);
  background: var(--primary);
  color: #080808;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffffff;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface);
}

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

.about-grid,
.works-grid {
  display: grid;
  gap: 20px;
}

.about-grid,
.works-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-panel {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.feature-panel h3 {
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.panel,
.work-card,
.contact-card {
  padding: 28px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.work-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.06) 100%),
    var(--surface);
}

.work-card h3 {
  font-size: 1.5rem;
}

.contact-section {
  padding-bottom: 0;
}

.contact-card {
  text-align: center;
  padding: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

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

.link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.link-chip:hover,
.link-chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}


.hero-note-text {
  margin: 22px 0 0;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
}

.step-note {
  margin: 20px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.step-note strong {
  color: var(--text);
  font-weight: 500;
}

.step-list .step-num {
  flex: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.app-shot {
  margin: 28px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.app-shot figcaption {
  margin-top: 14px;
  padding: 0 6px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.motion-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

.delay-3 {
  transition-delay: 320ms;
}

@media (max-width: 920px) {
  .about-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 24px, 1120px);
    padding-top: 12px;
  }

  .site-header {
    top: 12px;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .work-card,
  .contact-card {
    border-radius: 24px;
  }

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

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }
}
