/**
 * ページ上部に戻るボタン（全ページ共通）
 * functions.php の wp_footer フックで HTML を挿入。
 *  - 配色：テーマ primary teal (#00a0aa) / hover で少し濃く
 *  - PC 50×50 / SP 60×60（1:1）
 *  - 矢印は CSS で描画（細い白い ↑）
 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #00a0aa;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
    z-index: 9000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

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

.back-to-top:hover {
    background: #008c95;
}

.back-to-top:focus-visible {
    outline: 2px solid #00a0aa;
    outline-offset: 2px;
}

/* 上向き矢印（↑）— 縦線 + 三角の頭 */
.back-to-top__arrow {
    position: relative;
    display: inline-block;
    width: 13px;
        height: 18px;
}
.back-to-top__arrow::before {
    /* 縦線 */
    content: "";
    position: absolute;
    top: 1.5px;
    left: 50%;
    width: 2px;
    height: 14px;
    background: #fff;
    transform: translateX(-50%);
    border-radius: 1px;
}
.back-to-top__arrow::after {
    /* 矢じり */
    content: "";
    position: absolute;
    top: 1px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

@media screen and (max-width: 767px) {
    .back-to-top {
        right: 14px;
        bottom: 65px;
        width: 60px;
        height: 60px;
    }
    .back-to-top__arrow {}
    .back-to-top__arrow::before {
        height: 16px;
    }
    .back-to-top__arrow::after {
        width: 12px;
        height: 12px;
    }
}

/* 印刷時は出さない */
@media print {
    .back-to-top {
        display: none !important;
    }
}
