#custom-float-menu {
    position: fixed;
    display: flex;
    z-index: 9999;
}

/* PC時 */
@media screen and (min-width: 1001px) {
    #custom-float-menu {
        display: flex;
        gap: 10px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        right: -200px; /* 初期位置：画面外 */
        transition: right 0.5s ease;
    }

    #custom-float-menu.visible {
        right: 10px; /* 表示位置 */
    }
}



@media screen and (max-width: 1000px) {
    #custom-float-menu {
        bottom: 2rem;
        left: 0;
        right: 0;
        justify-content: space-around;
        animation: slideInUp 0.5s forwards;
    }

    .float-btn span {
        font-size: 0.9rem;
    }
}

@keyframes slideInRight {
    to {
        right: 10px;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.float-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48%;
    max-width: 320px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: #fff;
    transition: 0.3s;
}
@media screen and (min-width: 1001px) {
  .float-btn {
    width: 260px !important; /* PC時は固定サイズ */
  }

  #custom-float-menu {
    right: -320px; /* ← 非表示時。ボタン幅＋余白分で退避 */
  }

  #custom-float-menu.visible {
    right: 10px; /* ← 表示時。右ぴったり */
  }
}


.float-btn img {
    width: 100%;
    height: auto;
}

/* アイコン色に応じて背景色 */
.float-btn.tel {
    background-color: #8b1e24;
}

.float-btn.line {
    background-color: #00c300;
}

.float-btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.float-btn:hover {
    transform: scale(1.05);
}