@charset "UTF-8";

/* CSS Document */

/* header */
header {
    position: fixed;
    box-sizing: border-box;
    width: 100%;
    padding: 40px 15px;
    z-index: 100;
}

.header_inner {
    max-width: 1290px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
}

.header_logo {
    width: 250px;
}

.header_list {
    display: flex;
    align-items: center;
}

.header_list_item {
    margin-right: 20px;
}

.header_list_link {
    color: #333;
    display: block;
    font-size: 14px;
    line-height: 1em;
    font-weight: bold;
}

.header_list_item_btn {
    margin-left: 10px;
}

.header_list_link_btn {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 190px;
    color: #333;
    font-size: 18px;
    line-height: 1em;
    font-weight: bold;
    padding: 15px 25px;
    border: 1px solid #333;
    border-radius: 5px;
}

.header_list_link_btn::after {
    position: absolute;
    content: "";
    background: #333;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    right: 20px;
}

header.fixed {
    padding: 15px;
    background: #fff;
    box-shadow: 0 0 40px rgba(59, 131, 175, .1);
    transition: 0.9s;
    z-index: 100;
}

@media screen and (max-width:1440px) {
    header {
        padding: 2.77vw 1.04vw;
    }

    .header_logo {
        width: 17.36vw;
    }

    .header_list_item {
        margin-right: 1.38vw;
    }

    .header_list_link {
        font-size: 0.97vw;
    }

    .header_list_item_btn {
        margin-left: 0.69vw;
    }

    .header_list_link_btn {
        width: 13.19vw;
        font-size: 1.25vw;
        padding: 1.04vw 1.73vw;
        border-radius: 0.34vw;
    }

    .header_list_link_btn::after {
        width: 0.41vw;
        height: 0.41vw;
        border-radius: 0.2vw;
        right: 1.38vw;
    }

    header.fixed {
        padding: 1.04vw;
    }
}

@media screen and (max-width:767px) {
    header {
        padding: 0;
    }

    .header_inner {
        display: block;
    }

    .header_flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        padding-left: 20px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px) brightness(1.5);
    }

    .header_flex.on {
        backdrop-filter: revert;
    }

    .header_logo {
        width: 180px;
        height: auto;
        padding-top: 5px;
    }

    .header_list {
        flex-direction: column;
        justify-content: center;
        gap: 30px;

        background-image: url(../img/hamburger_back.png);
        background-size: cover;

        position: fixed;
        top: -500px;
        right: 0;
        left: 0;
        bottom: 0;

        visibility: hidden;
        opacity: 0;
        transition: 0.5s ease;
    }

    .header_list.on {
        visibility: visible;
        opacity: 1;
        top: 0;
    }

    .header_list_item {
        margin: 0;
    }

    .header_list_link {
        color: #fff;
        font-size: 22px;
    }

    .header_list_item_btn {
        display: none;
    }

    header.fixed {
        background: revert;
        padding: 0;
        transition: 0.9s;
    }
}

/* hamburger */
.hamburger_back {
    display: none;
    background: linear-gradient(#21B527, #9CDD69);
    width: 70px;
    height: 70px;
    border-radius: 0 0 0 20px;
}

#hamburger {
    display: none;
    width: 40px;
    height: 14px;
    position: relative;
}

#hamburger span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 20px;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

#hamburger span:nth-of-type(1) {
    top: 0
}

#hamburger span:nth-of-type(2) {
    width: 75%;
    bottom: 0;
    right: 0;
}

@media screen and (max-width: 767px) {
    .hamburger_back {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger_back.on {
        z-index: 100;
        background: none;
    }

    #hamburger {
        display: block;
    }

    #hamburger.on span:nth-child(1),
    #hamburger.on span:nth-child(2) {
        transition: transform .3s;
    }

    #hamburger.on span:nth-child(1) {
        width: 75%;
        transform: rotate(45deg);
        top: 50%;
        right: 0;
    }

    #hamburger.on span:nth-child(2) {
        transform: rotate(-45deg);
        top: 50%;
    }
}

/* ページ内リンク */
/* 元々のsectionのpadding + ヘッダー分の高さ + 余白 */
#service {
    padding-top: calc(60px + 80px + 20px);
    margin-top: -80px;
}

#about {
    padding-top: calc(100px + 80px + 20px);
    margin-top: -80px;
}

#online {
    padding-top: calc(0px + 80px + 20px);
    margin-top: -80px;
}

#news {
    padding-top: calc(0px + 80px + 20px);
    margin-top: -80px;
}

@media screen and (max-width:1440px) {
    #service {
        padding-top: calc(4.16vw + 5.55vw + 1.38vw);
        margin-top: -5.55vw;
    }

    #about {
        padding-top: calc(6.94vw + 5.55vw + 1.38vw);
        margin-top: -5.55vw;
    }

    #online {
        padding-top: calc(0vw + 5.55vw + 1.38vw);
        margin-top: -5.55vw;
    }

    #news {
        padding-top: calc(0vw + 5.55vw + 1.38vw);
        margin-top: -5.55vw;
    }
}

@media screen and (max-width: 767px) {
    #service {
        padding-top: calc(0px + 70px + 20px);
        margin-top: -70px;
    }

    #about {
        padding-top: calc(0px + 70px + 20px);
        margin-top: -70px;
    }

    #online {
        padding-top: calc(100px + 70px + 20px);
        margin-top: -70px;
    }

    #news {
        padding-top: calc(0px + 70px + 20px);
        margin-top: -70px;
    }
}
