/**
 * フッターフロートメニュー - デフォルトパターンスタイル
 */

/* PC表示では非表示 */
.footer-float-menu {
    display: none;
}

/* スマホ・タブレット表示（1000px以下） */
@media not all and (min-width: 1000px) {
    /* フッターに余白を追加 */
    .l-footer {
        padding-bottom: 4em;
    }
    
    /* 既存のページトップボタンの位置調整 */
    .p-fixBtnWrap {
        bottom: 1%;
        right: 5%;
    }
    
    .c-fixBtn {
        opacity: 1;
    }
    
    /* フッターフロートメニュー基本スタイル */
    .footer-float-menu {
        display: block;
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 9;
        width: 100%;
        box-shadow: 0px 0px 15px -5px #777777;
    }
    
    /* リストコンテナ */
    .footer-float-menu__list {
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    /* 項目数に応じた幅調整（CSS変数とcalc使用） */
    .footer-float-menu--items-1 { --item-count: 1; }
    .footer-float-menu--items-2 { --item-count: 2; }
    .footer-float-menu--items-3 { --item-count: 3; }
    .footer-float-menu--items-4 { --item-count: 4; }
    
    .footer-float-menu__item {
        width: calc(100% / var(--item-count));
        list-style: none;
    }
    
    /* リンク・ボタン共通スタイル */
    .footer-float-menu__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0.5em 0;
        text-decoration: none;
        transition: opacity 0.3s ease;
        border: none;
        background: none;
        cursor: pointer;
        font-family: inherit;
    }
    
    
    /* アイコン */
    .footer-float-menu__icon {
        font-size: 1.5em;
        margin-bottom: 0.2em;
    }
    
    /* テキスト */
    .footer-float-menu__text {
        font-size: 0.8em;
        line-height: 1.2;
    }
    
    /* ページトップボタン固有のスタイル */
    .footer-float-menu__link--pagetop {
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}