* {
    color: #222222;
    padding: 0;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow: hidden-x;
}

p,
li.div,
a.img {
    margin: 0;
    padding: 0;
}

h1 {
    margin-block-start: 0;
    margin-block-end: 0;
}

body {
    font-family: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
}


header {
    height: 65px;
    width: 100svw;
    background-color: #fff;
    position: fixed;
    top: 0;
    z-index: 99999999;

    h1 {
        max-width: 590px;
        width: 100%;
        margin: 0 auto 0 auto;
        margin-top: 10px;
        padding-right: 10px;
        padding-left: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    img {
        max-height: 50px;
    }

    div:nth-child(1) {
        justify-self: start;
    }

    div:nth-child(2) {
        justify-self: end;
        padding-right: 10px;
    }
}

@media screen and (max-width:600px) {
    header {

        height: 50px;

        img {
            max-height: 35px;
        }

        div:nth-child(2) {
            padding-right: 30px;
        }

        h1 {
            margin-top: 6px;
        }

    }
}


section#top {
    margin: 0 auto 0 auto;
    display: block;
}

#top .container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 0 auto;
}

#top img {
    max-width: 100%;
    width: 100%;
}


footer {
    background-color: #e6e6e6;
    width: 100%;
    height: 95px;
    position: fixed;
    bottom: 0;
    margin: 0 auto 0 auto;

    .container {
        max-width: 550px;
        width: 90%;
        display: grid;
        grid-template-columns: 1fr 0.73fr;
        margin: -2px auto 0 auto;
        justify-content: center;
        align-items: center;
        height: 108px;
    }

    img {
        height: 73px;
        width: 100%;
    }

    div:nth-child(1) {
        justify-self: end;
        padding-right: 10px;
    }

    div:nth-child(2) {
        justify-self: start;
        padding-left: 10px;
    }
}


@media screen and (max-width:500px) {

    footer {
        height: 80px;

        img {
            width: 100%;
            height: 65px;
        }

        .container {
            height: 90px;
        }
    }
}

.secbg {
    background-color: #ffffdd;
    background-image: linear-gradient(180deg, rgba(255, 240, 210, 1) 0%, rgba(255, 255, 255, 1) 100%);
}


.mainsec {
    max-width: 600px;
    margin: 0 auto 0 auto;
    width: 100%;
    margin-top: -80px;

    img {
        max-width: 100%;
    }
}

.contentssec {
    background-image: linear-gradient(180deg, rgba(255, 241, 230, 1) 90%, rgba(255, 255, 255, 1) 100%);
    width: 100%;
    margin-top: -1px;

    .container {
        max-width: 600px;
        width: 100%;
        margin: 0 auto 0 auto;
    }

    img {
        max-width: 100%;
    }
}


.contentssecbefore {
    background-image: url(../images/wave.svg);
    background-repeat: repeat-x;
    height: 20px;
    background-position: 0% 100%;

}

.sechd {
    margin-top: 0px;
}



.msec1 {
    margin-top: -15px;
}

.mseci1 {
    position: relative;
    height: 582px;

    div:nth-child(1) {
        position: absolute;
        top: 0;
        left: 0;
    }

    div:nth-child(2) {
        position: absolute;
        top: 77%;
    }
}

@media screen and (max-width:600px) {
    .mseci1 {
        height: calc(600px - (600px - 100svw) *1.05);


        div:nth-child(2) {

            top: 77%;
        }
    }
}


.msec2 {
    margin-top: -13px;
}

.mseci2 {
    position: relative;
    height: 582px;

    div:nth-child(1) {
        position: absolute;
        top: 0;
        left: 0;
    }

    div:nth-child(2) {
        position: absolute;
        top: 73%;
    }
}

@media screen and (max-width:600px) {
    .mseci2 {
        height: calc(600px - (600px - 100svw) *1.05);
    }
}


.msec3 {
    margin-top: -3px;
    margin-bottom: 30px;
}

.mseci3 {
    position: relative;
    height: 582px;

    div:nth-child(1) {
        position: absolute;
        top: 0;
        left: 0;
    }

    div:nth-child(2) {
        position: absolute;
        top: 81%;
    }
}

@media screen and (max-width:600px) {
    .mseci3 {
        height: calc(600px - (600px - 100svw) *1.05);

            div:nth-child(2) {
        position: absolute;
        top: 82%;
    }
    }
}


.contentsfsec {
    background-color: #ffffff;
    width: 100%;
    margin-top: -1px;

    .container {
        max-width: 600px;
        width: 100%;
        margin: 0 auto 0 auto;
    }

    img {
        max-width: 100%;
    }
}

.contentsftsec {
    background-color: #fff1e6;
    margin-bottom: 50px;
    width: 100%;
    margin-top: -1px;

    .container {
        max-width: 600px;
        width: 100%;
        margin: 0 auto 0 auto;
    }

    img {
        max-width: 100%;
    }
}


@media screen and (max-width:600px) {
    .mainsec {
        margin-top: calc(-80px + (600px - 100svw) / 8);
    }
}




#cboxOverlay {
    background: #000;
}

#cboxLoadedContent {
    background: #fff;
}

#cboxLoadedContent {
    padding: 0;
    overflow: auto;
    -moz-box-shadow: 0px 1px 10px #000000;
    -webkit-box-shadow: 0px 1px 10px #000000;
    box-shadow: 0px 1px 10px #000000;
}

#cboxPrevious,
#cboxNext,
#cboxSlideshow,
#cboxClose,
#cboxTitle {
    top: -30px;
}

#colorbox,
#cboxOverlay,
#cboxWrapper {
    overflow: visible;
}

#cboxTitle {
    color: #fff;
}

#inline-content {
    /* インラインを使用する時のみ */
    margin: 20px;
}

#ajax-wrap {
    /* ajaxを使用する時のみ */
    margin: 20px;
}

.ftcom {
    text-align: center;
    padding-bottom: 50px;
    color: #333;

    div:nth-child(1) {
        padding-bottom: 5px;

    }

    div:nth-child(2) {
        font-weight: 700;
        font-size: 130%;
        padding-bottom: 5px;
    }

    div:nth-child(3) {
        padding-top: 10px;
        padding-bottom: 25px;
        font-size: 90%;
    }

    div:nth-child(4) {
        font-size: 70%;
        padding-bottom: 25px;
    }

    a {
        text-decoration: none;

    }
}


@media screen and (max-width:600px) {
    .ftcom {

        font-size: 80%;
        padding-bottom: 30px;

        div:nth-child(4) {
            font-size: 80%;
        }
    }
}

.maxfreeimg {
    max-width: 330px !important;
    width: 80%;
}

.maxcorpkimg {
    max-width: 180px !important;
    width: 60%;
}


@media screen and (max-width:500px) {
    .maxcorpkimg {

        width: 37%;
    }

    .maxfreeimg {

        width: 65%;
    }


}