/* 「うえへ」ボタン（全ページ共通）：右下に かな が立っていて、おすとページのいちばん上へ戻る。
   ボタンそのものは うえへボタン.js が作る。画像は2列（上を指さす・ジャンプ）で、矢印をのせる／おすとジャンプする。
   ページごとにCSSが別なので、色はページの変数に頼らずここに直接書く。 */
.page-top {
  position: fixed; right: clamp(8px, 2vw, 20px); bottom: clamp(10px, 2vw, 20px); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0; border: 0; background: none; color: #26241f; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.page-top.show { opacity: 1; visibility: visible; transform: none; }
.page-top:focus-visible { outline: 3px solid #26241f; outline-offset: 4px; border-radius: 12px; }
.page-top-label {
  padding: 1px 10px; background: #fff; border: 2px solid #26241f; border-radius: 999px;
  box-shadow: 2px 2px 0 #26241f; white-space: nowrap;
  font: 400 13px/1.7 "Mochiy Pop One", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
}
html[lang="en-US"] .page-top-label { font: 700 13px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; }
.page-top-char {
  width: 56px; height: 84px;
  background: url("img/キャラ/かな_上へ.webp") 0 0 / 200% 100% no-repeat;
  animation: pageTopBob 1.6s ease-in-out infinite;
}
.page-top:hover .page-top-char, .page-top:active .page-top-char {
  background-position-x: 100%;
  animation: pageTopJump .55s ease-out infinite;
}
@keyframes pageTopBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes pageTopJump {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .page-top { transition: none; }
  .page-top-char, .page-top:hover .page-top-char, .page-top:active .page-top-char { animation: none; }
}
@media print { .page-top { display: none; } }
