/*style.cssより移植*/

header {
    /* position: fixed; */
    position: absolute;
    /*20240409変更*/
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 1px 1px 4px #efefef;
    padding: 10px 0;
}

header .hd_top {
    padding: 30px 0 20px;
}

header .inner {
    width: 940px;
    margin: 0 auto;
}

header h1 {
    width: 38%;
}

header .hd_time {
    margin-bottom: 10px;
    max-width: 470px;
}

footer .footer_CTA {
    width: 100vw;
    position: fixed;
    background: #fff;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.16);
    z-index: 10;
}

@media screen and (max-width: 940px) {
    #main {
        margin-top: clamp(179px, 22.5vw, 21.4vw);
    }
}

@media screen and (max-width: 768px) {

    header .hd_tel {
        padding: 0;
    }

    .sp {
        display: block !important;
    }

    .pc {
        display: none;
    }

    img {
        width: 100%;
    }

    /*=====================
       header
    ======================*/
    header {
        /* position: fixed; */
        position: absolute;
        /*20240409変更*/
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.96);
        box-shadow: 1px 1px 4px #efefef;
        padding: 2% 0;
    }

    header .inner {
        width: 95%;
        margin: 0 auto;
    }

    header .hd_time {
        margin: 0 auto 1.333vw;
    }

    header .hd_time img {
        max-width: 470px;
    }

    header .flex_footer {
        position: relative;
        z-index: 191;
        display: -webkit-flex;
        display: flex;
        -ms-flex-pack: justify;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        background-color: #ffffff;
        box-shadow: 0 0 4px #c1c1c1;
        width: 100%;
        padding: 2% 0;
    }

    header .flex_footer h1 {
        width: 60%;
        margin: 0 !important;
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
    }

    header .flex_footer a {
        width: 38%;
        display: inline-block;
        vertical-align: middle;
    }

}

@media screen and (max-width: 768px) {
    header {
        padding: 2% 0 0;
    }

    #main>header>div.inner.flex.flex_between.hd_top.flex-start.pc>div.flex-start {
        width: 100%;
    }

    header .hd_top {
        padding: 0 0 12px;
    }

    #main {
        /* margin-top: calc(31.95vw); */
        margin-top: clamp(26.15vw, 31.95vw, 31.45vw);
    }

    .inner.flex.flex_between.hd_top.flex-start.pc {
        display: block;
    }

    .inner.flex.flex_between.hd_top.flex-start.pc .online {
        display: none;
    }

    header .hd_time {
        margin: 0 auto 0 5px;
        max-width: 100%;
    }

    footer {
        text-align: center;
        font-size: 2.667vw;
        padding: 2vw 0 10vw;
        margin-bottom: 27vw;
    }

}