﻿.page-top2 {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  opacity: 0;           /* 最初は隠す */
  visibility: hidden;   /* クリックできないようにする */
  transition: 0.3s;     /* フワッと出すためのアニメーション */
  display: block;       /* ← ブラウザの強制 display: none を打ち消す */
}

.page-top2 a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(191, 230, 191, 0.7);
  color: #2f5f2f;
  width: 50px;
  height: 50px;
  text-decoration: none;
  border-radius: 50%;
}

/* JavaScriptでこのクラスがついた時に表示させる */
.page-top2.is-show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .page-top2 a {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .page-top2 {
    right: 14px;
    bottom: 14px;
  }
}
