/* 黒く磨いた床に文字が映り込む場面なので 地は黒に固定する */
:root {
  --bg: #08090b;
  --raise: #121418;
  --line: rgba(236, 238, 242, 0.1);
  --fg: #eceef2;
  --muted: #9a9ea8;
  --accent: #7fe3d0;
  --display: "Unbounded", "Zen Kaku Gothic New", sans-serif;
  --text: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  scrollbar-color: #2a2d33 var(--bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  line-height: 1.75;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fg); color: var(--bg); }

a, button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.3em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 var(--pad);
  background: rgba(8, 9, 11, 0.92);
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.top nav { display: flex; gap: 4px; }

.top nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.top nav a:hover { color: var(--fg); }

/* 文字は画面の上寄りに置き 下半分を床の映り込みに使う */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto 1.15fr auto;
  min-height: min(calc(100svh - 64px), 900px);
  padding: 32px var(--pad) 24px;
  overflow: hidden;
  isolation: isolate;
}

.mirror {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  touch-action: pan-y;
}

.lead {
  grid-row: 1;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
}

.brand {
  grid-row: 3;
  margin: 0 0 0 -0.04em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 16vw, 15.5rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

/* VRChatのミラーにある画質切り替えを そのまま実際の操作として置く */
.panel {
  grid-row: 5;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.panel-label {
  padding: 0 8px 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.panel button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 500 0.875rem var(--text);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.panel button:hover { color: var(--fg); background: rgba(236, 238, 242, 0.06); }
.panel button:active { transform: scale(0.97); }
.panel button[aria-pressed="true"] { color: var(--bg); background: var(--accent); }

.make,
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 32px;
  padding: clamp(80px, 10vw, 144px) var(--pad);
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.make-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.make-list li {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.make-list li:first-child { padding-top: 0; }

.about dl { margin: 0; max-width: 40rem; }
.about dl div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.about dl div:first-child { padding-top: 0; }
.about dt { color: var(--muted); }
.about dd { margin: 0; font-weight: 500; }

.bottom {
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.bottom p { margin: 0; }

@media (max-width: 760px) {
  .make, .about { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 62svh; grid-template-rows: auto 1fr auto 0.8fr auto; }
  .panel { justify-self: stretch; justify-content: space-between; }
  .panel button { flex: 1; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}