/* ========================================
   共通アニメーション
======================================== */

@media (prefers-reduced-motion: no-preference) {
  .js-fade.is-show {
    animation: section-fade-in 0.85s ease-out 0.12s backwards;
  }
}

@keyframes section-fade-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateAnimation {
  from {
    transform: translate(0, -50%) rotate(0deg);

    /* 最初は0度の位置から */
  }

  to {
    transform: translate(0, -50%) rotate(360deg);

    /* 終わりは360度の位置まで */
  }
}

@media screen and (max-width: 768px) {
  @keyframes rotateAnimation {
    from {
      transform: translate(-50%, 0%) rotate(0deg);
    }

    to {
      transform: translate(-50%, 0%) rotate(360deg);
    }
  }
}

@keyframes movementAnimation {
  0% {
    transform: translate(-3px, 0) rotate(-10deg);
  }

  50% {
    transform: translate(3px, 0) rotate(10deg);
  }

  100% {
    transform: translate(-3px, 0) rotate(-10deg);
  }
}

@media screen and (max-width: 768px) {
  @keyframes movementAnimation {
    0% {
      transform: translate(-3px, 0) rotate(-10deg);
    }

    50% {
      transform: translate(3px, 0) rotate(10deg);
    }

    100% {
      transform: translate(-3px, 0) rotate(-10deg);
    }
  }
}

/* ========================================
   表示・非表示
======================================== */

.u-pc {
  display: none;
}

@media screen and (max-width: 768px) {
  .u-pc {
    display: block;
  }
}

.u-sp {
  display: block;
}

@media screen and (max-width: 768px) {
  .u-sp {
    display: none;
  }
}

/* ========================================
   共通メニューの操作要素
======================================== */

.p-header__hamburger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
