/* ページトップボタンのスタイル */
.page-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* ボタンが表示される状態 */
.page-top-button.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ホバー時の効果 */
.page-top-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

/* アイコン（矢印）のスタイル */
.page-top-button::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffffff;
}

/* タッチデバイス用の調整 */
@media (max-width: 768px) {
  .page-top-button {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .page-top-button::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #ffffff;
  }
}

/* 高齢者向けのアクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
  .page-top-button {
    transition: none;
  }
}

/* フォーカス時のスタイル（キーボードナビゲーション対応） */
.page-top-button:focus {
  outline: 2px solid #007acc;
  outline-offset: 2px;
}
