:root {
  --color-bg: #0b0b0d;
  --color-fg: #f5f5f5;
  --color-muted: #9a9a9a;
  --color-accent: #4dd2ff;
  --gap: 6px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.hero p {
  color: var(--color-muted);
  margin: 0;
  font-size: 1rem;
}

/* タイルグリッド本体 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  padding: var(--gap);
}

.video-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a1a1d;
  /* GSAPで transform/opacity を操作するため will-change でGPUレイヤーを確保 */
  will-change: transform, opacity;
}

.video-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1a1d;
}

.video-tile__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: var(--color-fg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.video-tile--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

footer {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.8rem;
}
