/*リンクの形状*/
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #af9c83;
  border-radius: 5px;
  width: 50px;
  height: 50px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.3rem;
  transition: all 0.3s;
  font-size: 1em;
}
/*リンクを右下に固定*/
#page-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  /*はじめは非表示*/
  opacity: 0;
  transform: translateY(100px);
}

@media (min-width: 600px) {
  /*リンクを右下に固定*/
  #page-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    /*はじめは非表示*/
    opacity: 0;
    transform: translateY(100px);
  }

  #page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #af9c83;
    border-radius: 5px;
    width: 100px;
    height: 100px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.3s;
    font-size: 1em;
  }

  #page-top a:hover {
    background: #d3c193;
  }

  /*　上に上がる動き　*/
  #page-top.UpMove {
    animation: UpAnime 0.5s forwards;
  }

  @keyframes UpAnime {
    from {
      opacity: 0;
      transform: translateY(100px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /*　下に下がる動き　*/
  #page-top.DownMove {
    animation: DownAnime 0.5s forwards;
  }
  @keyframes DownAnime {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 1;
      transform: translateY(200px);
    }
  }
}
