@charset "utf-8";

/* ------------------------------------------------------------------------------------------------
 スクロールページトップ
------------------------------------------------------------------------------------------------ */
/*
 * 矢印アイコン
 */
.arrow {
  color: #000;
  display: inline-block;
  padding: 0 0 0 16px;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
}

.arrow::after, .arrow::before {
  bottom: 0;
  content: "";
  left: 0;
  margin: auto;
  position: absolute;
  top: 0;
  vertical-align: middle;
}

.arrow_down::before,
.arrow_up::before {
  bottom: 0;
  border-right: 5px solid #fff;
  border-top: 5px solid #fff;
  height: 10px;
  left: auto;
  top: auto;
  transform: rotate(-45deg);
  width: 10px;
}

/*
 * ページトップに戻るボタン
 */
#btn-backtotop {
  bottom: 30px;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  position: fixed;
  right: 30px;
  transition: all 1s ease-out;
  transition: bottom 0.2s ease-out;
  z-index: 99999;
}

#btn-backtotop.fadein {
  opacity: 1;
}

#btn-backtotop.no-pointer {
  pointer-events: none;
}

.pc #btn-backtotop:hover {
  bottom: 34px;
  opacity: 0.9;
}

#btn-backtotop:hover::after {
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.2);
}

#btn-backtotop::after {
  background-color: #000;
  opacity: 0.8;
  color: #fff;
  content: "";
  display: block;
  height: 60px;
  padding: 4px;
  text-align: center;
  transition: all 0.3s;
  transition: background-color 0.5s ease-out;
  width: 60px;
}

#btn-backtotop .arrow {
  left: 5px;
  top: 44px;
}

#btn-backtotop .arrow::before {
  height: 20px;
  width: 20px;
  z-index: 1;
}

@media screen and (max-width: 640px) {
  .arrow_down::before,
  .arrow_up::before {
    border-right: 4px solid #fff;
    border-top: 4px solid #fff;
  }

  #btn-backtotop {
    bottom: 20px;
    right: 20px;
  }

  .pc #btn-backtotop:hover {
    bottom: 24px;
    opacity: 0.9;
  }

  #btn-backtotop:hover::after {
    box-shadow: none;
  }

  #btn-backtotop::after {
    height: 40px;
    width: 40px;
  }

  #btn-backtotop .arrow {
    left: -3px;
    top: 30px;
  }

  #btn-backtotop .arrow::before {
    height: 15px;
    width: 15px;
  }
}