/* ふわふわ上下に動く */
.updown{
  animation-name:updown1;
  animation-delay:0s;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes updown1 {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0);
}
}

.updown02{
  animation-name:updown2;
  animation-delay:0s;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes updown2 {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
100% {
transform: translateY(0);
}
}

.updown03{
  animation-name:updown3;
  animation-delay:0s;
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes updown3 {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
100% {
transform: translateY(0);
}
}



/* シーソーのように中心を軸にゆらゆら */
.seesaw{
  transition: 0.5s;
	animation: seesaw_a 1s infinite;
}
@keyframes seesaw_a {
    0% {transform: translate(0px, 0)}
    50% {transform: translate(0px, 0) rotateZ(5deg)}
}
.seesaw02{
  transition: 0.5s;
	animation: seesaw_b 1s infinite;
}
@keyframes seesaw_b {
    0% {transform: translate(0px, 0)}
    50% {transform: translate(0px, 0) rotateZ(10deg)}
}
.seesaw03{
  transition: 0.5s;
	animation: seesaw_c 0.5s infinite;
}
@keyframes seesaw_c {
    0% {transform: translate(0px, 0)}
    50% {transform: translate(0px, 0) rotateZ(10deg)}
}

/* ぴょんぴょん跳ねる */
.pyonpyon {
  animation: bounceUpDown 1.2s ease-in-out infinite;
  opacity: 1;
}

@keyframes bounceUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-15px); /* 上にジャンプ */
  }
  50% {
    transform: translateY(0);     /* 着地 */
  }
  70% {
    transform: translateY(-8px);  /* 少し跳ね返り */
  }
  85% {
    transform: translateY(0);     /* 再着地 */
  }
}


/* 横に動く */
.yurayura {
  animation: yurayura_a 2s ease-in-out infinite;
  opacity: 1;
}
@keyframes yurayura_a {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}


/* 星がキラキラしている */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,229,129,0.8) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    filter: blur(0.5px);
    animation: flare 4s ease-in-out infinite;
  }

  /* 十字のフレア光 */
  .star::before,
  .star::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to right, transparent, rgba(255,255,180,0.8), transparent);
    opacity: 0.7;
  }

  .star::before {
    width: 20px;
    height: 2px;
  }

  .star::after {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(255,229,129,0.8), transparent);
  }

  /* ✨派手なフレアアニメーション */
  @keyframes flare {
    0%, 100% {
      opacity: 0;
      transform: scale(0);
      filter: blur(0.5px);
    }
    10% {
      opacity: 1;
      transform: scale(1.6);
      filter: blur(0);
    }
    20% {
      opacity: 0.8;
      transform: scale(2.4);
      filter: blur(1px);
    }
    40% {
      opacity: 0;
      transform: scale(3);
      filter: blur(2px);
    }
  }