/*
 * floating_banner.css
 *
 * PC  : 3 vertical tab buttons fixed to the right edge of the screen
 * SP  : fixed bottom bar with 3 orange buttons + phone reveal panel
 *
 * Color base: #FB9B3B (matches module.css / site orange)
 * Font base : Ryo Gothic PlusN (matches site base font)
 */

/* =========================================================
   SHARED
   ========================================================= */
.flb_wrap {
    position: relative;
    z-index: 9999;
}

/* =========================================================
   PC : right-side vertical tabs
   Visible from 768px and up (uses .only_pc)
   ========================================================= */
.flb_pc_tabs {
    position: fixed;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
       -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
         -o-transform: translateY(-50%);
            transform: translateY(-50%);
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.flb_tab {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 54px;
    height: 164px;
    padding: 5px 6px;
    color: #ffffff;
    text-decoration: none;
    gap: 3px;
    -webkit-transition: background 0.2s ease, opacity 0.2s ease;
            transition: background 0.2s ease, opacity 0.2s ease;
    -webkit-box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.18);
            box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.18);
    -webkit-border-radius: 5px 0px 0px 5px;
            border-radius: 5px 0px 0px 5px;
    box-sizing: border-box;
}

.flb_tab:hover {
    opacity: 1;
    color: #ffffff;
}

.flb_tab_icon {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 24px;
    height: 24px;
}

.flb_tab_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* make white SVG icons visible on orange bg */
    -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
}

.flb_tab_txt {
    font-family: Ryo Gothic PlusN, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    text-align: start;
    -webkit-writing-mode: vertical-rl;
        -ms-writing-mode: tb-rl;
            writing-mode: vertical-rl;
    letter-spacing: 0.18em;
    text-indent: -16px;
    padding-top: 20px;
}

/* Individual tab gradients */

/* Tab 01 : 紹介状をお持ちの方 — orange gradient */
.flb_tab_01 {
    background: #FF9655;
    background: -webkit-linear-gradient(top, #FF9655 0%, #E85900 100%);
    background:    -moz-linear-gradient(top, #FF9655 0%, #E85900 100%);
    background:      -o-linear-gradient(top, #FF9655 0%, #E85900 100%);
    background:         linear-gradient(to bottom, #FF9655 0%, #E85900 100%);
}

/* Tab 02 : 受診のご案内 — teal/green gradient */
.flb_tab_02 {
    background: #4DC8A0;
    background: -webkit-linear-gradient(top, #2ECD8D 0%, #0F724B 100%);
    background:    -moz-linear-gradient(top, #2ECD8D 0%, #0F724B 100%);
    background:      -o-linear-gradient(top, #2ECD8D 0%, #0F724B 100%);
    background:         linear-gradient(to bottom, #2ECD8D 0%, #0F724B 100%);
}

/* Tab 03 : ご予約の方「事前問診」 — amber/dark-orange gradient */
.flb_tab_03 {
    background: #FFBE55;
    background: -webkit-linear-gradient(top, #1EA9C8 0%, #0F5B6C 100%);
    background:    -moz-linear-gradient(top, #1EA9C8 0%, #0F5B6C 100%);
    background:      -o-linear-gradient(top, #1EA9C8 0%, #0F5B6C 100%);
    background:         linear-gradient(to bottom, #1EA9C8 0%, #0F5B6C 100%);
}

/* =========================================================
   SP : fixed bottom bar  (max-width: 767px, .only_sp)
   ========================================================= */
.flb_sp_bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* --- 3-button row --- */
.flb_sp_btns {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 12.021vw; /* ~50px at 384px viewport */    
    gap: .08rem;
}

.flb_sp_btn {
    -webkit-flex: 1 1 0;
        -ms-flex: 1 1 0;
            flex: 1 1 0;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 0.2rem;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2vw 1vw;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: background-color 0.15s ease;
            transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
    border-radius: .08rem .08rem 0 0;
}

.flb_sp_btn_01 {
    background: #FF9655;
    background: -webkit-linear-gradient(top, #FF9655 0%, #E85900 100%);
    background:    -moz-linear-gradient(top, #FF9655 0%, #E85900 100%);
    background:      -o-linear-gradient(top, #FF9655 0%, #E85900 100%);
    background:         linear-gradient(to bottom, #FF9655 0%, #E85900 100%);
}

/* Tab 02 : 受診のご案内 — teal/green gradient */
.flb_sp_btn_02 {
    background: #4DC8A0;
    background: -webkit-linear-gradient(top, #2ECD8D 0%, #0F724B 100%);
    background:    -moz-linear-gradient(top, #2ECD8D 0%, #0F724B 100%);
    background:      -o-linear-gradient(top, #2ECD8D 0%, #0F724B 100%);
    background:         linear-gradient(to bottom, #2ECD8D 0%, #0F724B 100%);
}

/* Tab 03 : ご予約の方「事前問診」 — amber/dark-orange gradient */
.flb_sp_btn_03 {
    background: #FFBE55;
    background: -webkit-linear-gradient(top, #1EA9C8 0%, #0F5B6C 100%);
    background:    -moz-linear-gradient(top, #1EA9C8 0%, #0F5B6C 100%);
    background:      -o-linear-gradient(top, #1EA9C8 0%, #0F5B6C 100%);
    background:         linear-gradient(to bottom, #1EA9C8 0%, #0F5B6C 100%);
}

.flb_sp_btn:last-child {
    border-right: none;
}

.flb_sp_btn:active,
.flb_sp_btn.is_active {
    background: #FB9B3B;
}

.flb_sp_btn_icon {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 5.208vw;   /* ~20px */
    height: 5.208vw;
}

.flb_sp_btn_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
}

.flb_sp_btn_txt {
    font-family: Ryo Gothic PlusN, sans-serif;
    font-size: 2.865vw;   /* ~11px */
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
    text-align: center;
}

/* --- Phone reveal panel --- */
.flb_tel_panel {
    position: absolute;
    bottom: 100%; /* sits just above the button bar */
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 3px solid #FB9B3B;
    -webkit-box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.14);
            box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.14);
    /* slide-up animation */
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0s linear 0.35s;
            transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0s linear 0.35s;
    visibility: hidden;
}

.flb_tel_panel.is_open {
    max-height: 50vw;
    visibility: visible;
    -webkit-transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0s linear 0s;
            transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0s linear 0s;
}

.flb_tel_inner {
    position: relative;
    padding: 3.5vw 4.167vw 3.5vw 4.167vw;
}

/* Each phone row: number on left, hours on right */
.flb_tel_row {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
    text-align: left;
}

.flb_tel_left {
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
}

.flb_tel_right {
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    text-align: right;
    padding-left: 2vw;
}

/* divider between the two phone blocks */
.flb_tel_divider {
    height: 1px;
    background: #e8e8e8;
    margin: 2.5vw 0;
}

/* close × button */
.flb_tel_close {
    position: absolute;
    top: 1vw;
    right: 1vw;
    width: 5.5vw;
    height: 5.5vw;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 1.75vw;
}

.flb_tel_close_bar {
    display: block;
    width: 100%;
    height: 0.52vw;
    background: #888888;
    border-radius: 2px;
}

.flb_tel_close_bar:first-child {
    -webkit-transform: rotate(45deg) translateY(0.12rem);
            transform: rotate(45deg) translateY(0.12rem);
}

.flb_tel_close_bar:last-child {
    -webkit-transform: rotate(-45deg) translateY(-0.12rem);
            transform: rotate(-45deg) translateY(-0.12rem);
}

/* label: "予約電話番号" in orange */
.flb_tel_label {
    font-family: Ryo Gothic PlusN, sans-serif;
    font-size: 2.865vw;
    font-weight: bold;
    color: #FB9B3B;
    line-height: 1;
    margin-bottom: 1.2vw;
}

/* sub-label: 《予約変更・確認・キャンセル専用》 */
.flb_tel_sub_label {
    font-family: Ryo Gothic PlusN, sans-serif;
    font-size: 2.604vw;
    color: #666666;
    line-height: 1;
    margin-bottom: 1.2vw;
}

a.flb_tel_number {
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 1.563vw;
    font-family: futura-pt, sans-serif;
    font-size: 6.771vw;
    font-weight: 300;
    color: #333333;
    text-decoration: none;
    line-height: 1;
}

.flb_tel_ph_icon {
    width: 4.688vw;
    height: 4.688vw;
    object-fit: contain;
}

.flb_tel_number:hover {
    opacity: 0.85;
}

.flb_tel_hours {
    font-family: Ryo Gothic PlusN, sans-serif;
    font-size: 2.604vw;
    color: #666666;
    line-height: 1.6;
    text-align: right;
    margin-right: .5rem;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */

/* Tablet / PC — hide SP bar */
@media only screen and (min-width: 768px) {
    .flb_sp_bar {
        display: none !important;
    }
    .flb_pc_tabs {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
}

/* SP — hide PC tabs */
@media only screen and (max-width: 767px) {
    .flb_pc_tabs {
        display: none !important;
    }
    .flb_sp_bar {
        display: block;
    }

    /* Prevent page content from being hidden behind the bar */
    body {
        padding-bottom: 13.021vw;
    }

    .flb_sp_btn_txt {
        font-size: .24rem;
    }
}

/* Larger SP screens — cap sizes */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    .flb_sp_btns {
        height: 62px;
    }
    .flb_sp_btn_icon {
        width: 22px;
        height: 22px;
    }
    .flb_sp_btn_txt {
        font-size: 11px;
    }
    .flb_tel_panel.is_open {
        max-height: 200px;
    }
    .flb_tel_inner {
        padding: 14px 20px 14px 20px;
    }
    .flb_tel_divider {
        margin: 10px 0;
    }
    .flb_tel_label {
        font-size: 11px;
        margin-bottom: 5px;
    }
    .flb_tel_sub_label {
        font-size: 10px;
        margin-bottom: 5px;
    }
    .flb_tel_number {
        font-size: 26px;
        gap: 6px;
    }
    .flb_tel_ph_icon {
        width: 18px;
        height: 18px;
    }
    .flb_tel_hours {
        font-size: 10px;
    }
    .flb_tel_close {
        width: 22px;
        height: 22px;
        top: 8px;
        right: 12px;
        gap: 4px;
    }
    .flb_tel_close_bar {
        height: 2px;
    }
    .flb_tel_close_bar:first-child {
        -webkit-transform: rotate(45deg) translateY(3px);
                transform: rotate(45deg) translateY(3px);
    }
    .flb_tel_close_bar:last-child {
        -webkit-transform: rotate(-45deg) translateY(-3px);
                transform: rotate(-45deg) translateY(-3px);
    }
    body {
        padding-bottom: 62px;
    }
}