:root {
    --fixed-bottom-height: 0;
}

@media only screen and (min-width: 961px) {
    .l-sticky-footer {
        display: none;
    }
}

@media only screen and (max-width: 960px) {
    :root {
        --fixed-bottom-height: 7rem;
    }

    .l-sticky-footer {
        position: fixed;
        bottom: 0;
        height: var(--fixed-bottom-height);
        width: 100%;
        max-width: 1920px;
        margin: 0 auto;
        z-index: 500;
        box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
        padding-top: 1rem;
        padding-bottom: 1rem;
        transition: transform var(--transition-main);
    }

    .l-page--scrolled-bottom .l-sticky-footer {
        transform: translateY(100%);
    }

    .l-sticky-footer .servnavi_box {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -ms-flex-pack: distribute;
        justify-content: space-around;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        height: 100%;

        max-width: 500px;
        margin: 0 auto;
    }

    .l-sticky-footer .servnavi_item {
        flex: 1;
    }

    .l-sticky-footer .servnavi_item>a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-flow: column nowrap;
        flex-flow: column nowrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        height: 100%;
    }

    .l-sticky-footer .bh-navigation-item-icon {
        font-size: var(--template-default-icon-size);
        margin-bottom: 7px;
    }

    .l-sticky-footer .bh-navigation-item-text {
        font-weight: 400;
        font-size: calc(1.2rem * var(--template-font-size-adjust));
        line-height: 1.1;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-align: center;
    }
}

@media only screen and (max-width: 600px) {
    .l-sticky-footer .bh-navigation-item-icon {
        margin-bottom: 5px;
    }

    .l-sticky-footer .bh-navigation-item-text {
        font-size: calc(1rem * var(--template-font-size-adjust));;
    }
}
