/**
 * .c-floating-menu-sp 左上の閉じるボタン(×)
 * JS（floating-menu-close.js）で動的に挿入される .floating-menu-close を装飾
 */

.c-floating-menu-sp {
    position: fixed;  /* 元から position:fixed のはずだが念のため上書き */
}

/* 「×」で閉じた後はスクロールで .is-visible が付け直されても表示しない */
.c-floating-menu-sp.is-closed,
.c-floating-menu-sp.is-closed.is-visible {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.floating-menu-close {
    position: absolute;
    top: -40px;
    left: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.floating-menu-close:hover {
    background: #555;
}

.floating-menu-close:focus-visible {
    outline: 2px solid #00a0aa;
    outline-offset: 2px;
}

.floating-menu-close > span {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

/* 印刷時は出さない */
@media print {
    .floating-menu-close {
        display: none !important;
    }
}
