/* 全体安全対策 */
* {
  box-sizing: border-box;
}

/* 背景 */
body {
  margin: 0;
  background: #ffffff;
  font-family: "dotfont", sans-serif;
  font-size: 12px;
  overflow-x: hidden;
}

/* 白 */
.container {
  width: 100%;
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
}

/* タイトル */
h1 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* 名前 */
.name {
  margin-bottom: 20px;
}

/* メール */
.mail a {
  color: #929292;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.mail a:hover {
  color: #5aceff;
}

/* フォント */
@font-face {
  font-family: "dotfont";
  src: url("fonts/DotGothic16-Regular.ttf");
}

/* WORKSタイトル */
h2 {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 40px;
  margin-bottom: 10px;
}

/* WORKS中身 */
.works {
  margin: 0;
}

/* タブ */
.tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.tabs a {
  text-decoration: none;
  color: #919191;
  font-size: 12px;
  letter-spacing: 2px;
}

/* LINKの位置（PC用） */
.link-item {
  position: absolute;
}

.link-item a {
  color: #6c6c6c;
  text-decoration: none;
  display: inline-block;
  animation: shake 0.4s infinite;
}

.link-item a:hover {
  color: #5aceff;
}

/* 個別位置 */
 /* PC（今のまま） */
 .x {
  top: 300px;
  left: 50px;
 }

 .pixiv {
  top: 250px;
  left: 50px;
 }

 .insta {
  top: 180px;
  left: 350px;
 }

 .shop {
  top: 420px;
  left: 120px;
}

/* スマホ */
@media (max-width: 768px) {

  .container {
    position: relative;
  }

  .link-item {
    position: absolute;
  }

  .x {
    top: 300px;
    left: 50%;
  }

  .pixiv {
    top: 250px;
    left: 8%;
  }

  .insta {
    top: 180px;
    left: 58%;
  }

  .shop {
    top: 420px;
    left: 20%;
  }

}

/* アニメ */
@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}

.x a { animation-duration: 0.4s; }
.pixiv a { animation-duration: 0.6s; }
.insta a { animation-duration: 0.5s; }
.shop a { animation-duration: 0.7s; }

/* 星 */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  color: #cdcdcd;
  font-size: 12px;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100px);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh);
    opacity: 1;
  }
}

/* カーソル星 */
.cursor-star {
  position: fixed;
  pointer-events: none;
  font-size: 12px;
  z-index: 9999;
  animation: cursor-fall 3s forwards;
}

@keyframes cursor-fall {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, 80px);
    opacity: 0;
  }
}

/* お絵描き */
#drawCanvas {
  border: 1px solid #ccc;
  background: #fff;
  width: 100%;
  max-width: 600px;
  height: 400px;
  display: block;
  margin-bottom: 10px;
  touch-action: none;
}

#clearBtn,
#finishBtn {
  padding: 8px 16px;
  font-size: 12px;
  border: 1px solid #888;
  background: rgb(238, 238, 238);
  cursor: pointer;
}

/* キャラ */
#eguchi {
  position: fixed;
  right: -300px;
  bottom: 120px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 16px;
  transition: right 1.2s;
}

/* PC */
#eguchi.show {
  right: 220px;
}

/* スマホ */
@media (max-width: 768px) {
  #eguchi.show {
    right: 60px;
  }
}

#eguchi-img {
  width: 160px;
}

#eguchi-balloon {
  position: relative;
  background: white;
  border: 1px solid #000;
  padding: 6px 10px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

#eguchi.talk #eguchi-balloon {
  opacity: 1;
  transform: translateY(0);
}

#eguchi-balloon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}



/* スマホ調整 */
@media (max-width: 768px) {

  .container {
    margin: 20px auto;
    padding: 15px;
  }


