@charset "UTF-8";

/* ==========================================================================
   page-top.css — フローティングのページトップボタン
   --------------------------------------------------------------------------
   but_render_page_top() を呼んだテンプレートでのみロード。
   var(--m-*, fallback) 方式 — テーマで変数を定義すればアクセント色追従。
   ========================================================================== */

.c-page-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--m-accent, #1A1A1A);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.c-page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-page-top:hover,
.c-page-top:focus {
  opacity: 0.85;
}

.c-page-top__arrow {
  width: 16px;
  height: 16px;
  display: block;
}
