/* ========================================
   エルフォート整体院
   固定予約ボタン
   2026.12.01
======================================== */


/* パソコンではLINEボタンを非表示 */
header #header_reservation_area #header_line {
    display: none;
}


/* ========================================
   スマートフォン用（660px以下）
======================================== */

@media screen and (max-width: 660px) {

    /* 固定予約エリア */
    header #header_reservation_area {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        gap: 3px;
        padding: 3px;
        padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        z-index: 99999;
    }


    /* ボタンの横幅・表示設定 */
    header #header_reservation_area > span {
        display: block !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0;
    }

    /* ネット予約：30% */
    header #header_reservation_area #reservation {
        flex: 3 1 0% !important;
    }

    /* 電話：30% */
    header #header_reservation_area #header_tel {
        flex: 3 1 0% !important;
    }

    /* 公式LINE：40% */
    header #header_reservation_area #header_line {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 4 1 0% !important;
    }


    /* ボタン共通デザイン */
    header #header_reservation_area a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        height: 76px;
        padding: 8px 2px;
        border: none;
        border-radius: 7px;
        color: #fff;
        font-family: inherit;
        font-weight: 500;
        font-size: 12px;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }


    /* ネット予約：黄色 */
    header #header_reservation_area #reservation a {
        background: linear-gradient(
            180deg,
            #FFE48A 0%,
            #F2BF36 100%
        );
    }

    /* 電話：水色 */
    header #header_reservation_area #header_tel a {
        background: linear-gradient(
            180deg,
            #B5E5F9 0%,
            #60B9E3 100%
        );
        font-size: clamp(9px, 2.8vw, 12px);
    }

    /* 公式LINE：黄緑 */
    header #header_reservation_area #header_line a {
        background: linear-gradient(
            180deg,
            #D4EDA0 0%,
            #91C94C 100%
        );
    }


    /* アイコン共通設定 */
    header #header_reservation_area a > span.icon {
        display: block;
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        margin: 0 auto 8px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }


    /* LINEアイコン */
    header #header_reservation_area #header_line a > span.icon {
        position: relative;
        background: none;
    }

    /* LINEの吹き出し */
    header #header_reservation_area #header_line a > span.icon::before {
        content: "LINE";
        position: absolute;
        top: 2px;
        left: 0;
        width: 30px;
        height: 24px;
        border-radius: 50%;
        background: #fff;
        color: #91C94C;
        font-family: Arial, sans-serif;
        font-size: 9px;
        font-weight: bold;
        line-height: 24px;
        text-align: center;
    }

    /* 吹き出しの先端 */
    header #header_reservation_area #header_line a > span.icon::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10px;
        border-top: 8px solid #fff;
        border-right: 7px solid transparent;
    }

}
/* ========================================
   症状別ページ・ネット予約ページ専用
   電話40%・公式LINE60%
======================================== */

@media screen and (max-width: 660px) {

    /* ネット予約を非表示 */
    body:has(.symptom_container)
    header #header_reservation_area #reservation,
    header #header_reservation_area.contact_reservation #reservation {
        display: none !important;
    }

    /* 電話：40% */
    body:has(.symptom_container)
    header #header_reservation_area #header_tel,
    header #header_reservation_area.contact_reservation #header_tel {
        flex: 4 1 0% !important;
    }

    /* 公式LINE：60% */
    body:has(.symptom_container)
    header #header_reservation_area #header_line,
    header #header_reservation_area.contact_reservation #header_line {
        flex: 6 1 0% !important;
    }
}
