@charset "utf-8";
body {
width:1200px;
font: 15px/2 "メイリオ", Meiryo, "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro";	/*文字サイズ、行間、フォント指定*/
}

#myAudio {
  position: fixed;
  bottom: 20px;   /* ページ下端から20px上 */
  left: 20px;
}

/* スクロールトップ */
  /* ボタン本体（丸＋フェードイン） */
  .pagetop {
    position: fixed;
    right: 28px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);  /* 半透明（40%不透明）*/
    backdrop-filter: blur(4px);            /* ◀オプション：背景をぼかすと綺麗 */
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
    z-index: 9999;

    /* 初期は見えない（フェードイン用） */
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 300ms ease,
                transform 300ms cubic-bezier(.2,.9,.3,1);
    pointer-events: none;
  }

  /* 表示中クラス */
  .pagetop.show {
    opacity: 1;
    transform: translateY(-2px) scale(1);
    pointer-events: auto;
  }

  /* 矢印（上向き）を CSS だけで描画 */
  .pagetop::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 24px;
    background: #3a3a3a;
    clip-path: polygon(
      50% 0%,
      0% 40%,
      35% 40%,
      35% 100%,
      65% 100%,
      65% 40%,
      100% 40%
    );

    left: 50%;
    top: 50%;

    /* 初期はかなり下の方に隠す */
    transform: translate(-50%, 20px);

    opacity: 0;
    transition: transform 380ms cubic-bezier(.25,.85,.35,1.2),
                opacity   250ms ease-out;
}

/* show で大きく上にスッと飛び出す */
.pagetop.show::before {
    transform: translate(-50%, -12px);
    opacity: 1;
}

  /* ホバー/フォーカス時のアクセント */
  .pagetop:focus,
  .pagetop:hover {
    outline: none;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  }

  .pagetop:focus-visible {
    box-shadow: 0 0 0 5px rgba(0,123,255,0.14);
  }

  /* モバイル位置調整 */
  @media (max-width:600px) {
    .pagetop {
      right: 16px;
      bottom: 18px;
      width: 56px;
      height: 56px;
    }
  }

