t@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-kerning: auto;
  font-kerning: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  cursor: default;
  overflow: hidden;
}

h1 {
  margin: 0;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 1);
  height: 100vh;
  font-size: 1.5rem;
  font-family: "Noto Sans JP", sans-serif;
}

.title {
  opacity: 0.5;
  transition: opacity 0.5s ease-out;
}

.title:hover {
  opacity: 1;
}

.cursor {
  --mouse-x: 0;
  --mouse-y: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 16px; /* Smaller cursor size */
  height: 16px;
  transform: translate3d(var(--mouse-x), var(--mouse-y), 0);
  pointer-events: none;
  z-index: 1000;
  opacity: 0; /* Start with 0% opacity */
  transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

.pointer {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1); /* White color */
  border-radius: 50%;
}

/* Set opacity to 100% when the cursor is moved */
body:hover .cursor,
body:focus-within .cursor {
  opacity: 1;
}

body:not(:hover) .cursor {
  opacity: 0; /* Hide the cursor when the mouse is off the canvas */
}

.content-canvas {
  position: fixed;
  top: 0;
  left: 0;
}
