/* app/assets/styles/floating.css */

/* === Floating buttons (右下固定) === */
.floating-buttons {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    z-index: 999;
}

/* 🎨 右下フローティングボタン（ガラス風） */
.floating-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background:
        radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.9), rgba(248, 113, 22, 0.96));
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform .12s ease-out,
        box-shadow .12s ease-out,
        filter .12s ease-out,
        background .12s ease-out;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.floating-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .45);
    filter: brightness(1.03);
}

.floating-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .4);
    filter: brightness(.97);
}

.floating-btn:focus-visible {
    outline: 2px solid #fed7aa;
    outline-offset: 2px;
}

/* メニュー(TRIGGER)＋内容 */
.menu-wrapper {
    position: relative;
}

.menu-content {
    display: none;
    position: absolute;
    bottom: 52px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    padding: .5rem .75rem;
    font-size: .85rem;
    min-width: 140px;
}

.menu-content a {
    display: block;
    padding: .35rem .1rem;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.menu-content a:last-child {
    border-bottom: none;
}

.menu-content a:hover {
    background: #fce7f3;
}

/* ★ メニュー展開中に表示 */
.menu-wrapper.open .menu-content {
    display: block;
}

/* モバイル対応 */
@media (max-width: 575.98px) {
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .35);
    }

    .menu-content {
        font-size: .8rem;
    }
}