@charset "utf-8";

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: initial !important;
}
.text-box {
    position: relative;
    box-sizing: border-box;
    border-radius: 13px;
    padding: 56px 15px 34px;
    border: solid 2px #000;
    background-color: #fff;
    width: 80%;
    margin-top: 100px;
    line-height: 160%;
    /* margin: 0 auto; */
}
.text-box img {
    display: block;
    position: absolute;
    left: 50%;
    top: -75px;
    margin-left: -55px;
    width: 150px;
}
.text-box p {
    margin: 30px auto;
}

div.content2{
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
}

#return-top-div.visible{
    opacity: 1;
    visibility: visible;
}

/* PC */
@media (min-width: 1024px) {

    body {
        background: #0cc0df url(../img/bg.png) no-repeat;
        background-size: cover;
        width: 100%;
        max-width: 60%;
        margin: 0 auto;
    }

    header {
        width: 100%;
        height: 330px;
        text-align: center;
    }

    main{
        width: 100%;
        height: 2500px;
    }

    footer{
        width: 100%;
        /*height: 600px;*/
        background: url(../img/footer_area.png) no-repeat;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
        padding: 30px 0;
    }

    img.header_img{
        margin-top: 5%;
        width: 85%;
    }

    .footer_img{
        height: 80px;
    }

    .image1{
        position: absolute;
        top: 0px;
        left: 20px;
        width: 50%;
        z-index: 1;
    }

    .image2{
        position: absolute;
        top: 0px;
        right: 20px;
        width: 40%;
    }

    .image3{
        position: absolute;
        top: 640px;
        left: 20px;
        width: 65%;
        z-index: -100;
    }

    .image4{
        position: absolute;
        top: 930px;
        right: 70px;
        width: 37%;
    }

    .image5{
        position: absolute;
        top: 1210px;
        right: 70px;
        width: 37%;
        z-index: -1;
    }

    .mail_img{
        height: 160px;
    }

    div.footer_txt{
        margin-top: 30px;
        margin-bottom: 30px;
        font-size: 35px;
        line-height: 120%;
        color: white;
        font-weight: bold;
    }

    .div_main{
        height: 1600px;
        position: relative;
    }

    .footer_title{
        height: 80px;
        width: 100%;
        text-align: center;
    }

    .footer_mail{
        height: 160px;
    }

    #return-top{

        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
    
        background-color: red;
        width: 150px;
        height: 150px;
        border-radius: 50%;
    }

    #return-img{
        width: 100px;
        margin-top: -5px;
    }

    #return-txt{
        color: white;
        font-size: 30px;
        font-weight: bold;
        margin-top: 10px;
    }

    #return-top-div{
        bottom: 30px;
        right: 60px;
        z-index: 100;
        position: fixed;

        opacity: 0;
        visibility: hidden;  
        transition: 0.9s;
    }
}

/* タブレット */
@media (min-width: 768px) and (max-width: 1024px) {

    body {
        background: #0cc0df url(../img/bg.png) no-repeat;
        background-size: cover;
    }

    header { 
        width: 100%;
        height: 160px;
        text-align: center;
    }

    main{
        width: 100%;
        height: 3600px;
    }

    footer{
        width: 100%;
        height: 370px;
        background: url(../img/footer_area.png) no-repeat;
        background-size: cover;

        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
    }

    img.header_img{
        margin-top: 5%;
        width: 90%;
    }

    .footer_img{
        height: 55px;
    }

    .image1{
        position: absolute;
        top: 0px;
        left: 15px;
        width: 70%;
        z-index: 1;
    }

    .image2{
        position: absolute;
        top: 400px;
        right: 15px;
        width: 60%;
    }

    .image3{
        position: absolute;
        top: 1000px;
        left: 50px;
        width: 90%;
        z-index: -100;
    }

    .image4{
        position: absolute;
        top: 1900px;
        right: 30px;
        width: 60%;
    }

    .image5{
        position: absolute;
        top: 2250px;
        left: 10px;
        width: 60%;
        z-index: -1;
    }

    .mail_img{
        height: 90px;
    }

    div.footer_txt{
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 35px;
        line-height: 120%;
        color: white;
        font-weight: bold;
    }

    .div_main{
        height: 2600px;
        position: relative;
    }

    .footer_title{
        height: 90px;
        width: 100%;
        text-align: center;
    }

    .footer_mail{
        height: 90px;
    }

    #return-img{
        display: none;
    }

    #return-top{
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
    
        background-color: red;
        width: 70px;
        height: 180px;
    }

    #return-txt{
        color: white;
        font-size: 50px;
        font-weight: bold;
        margin-top: 10px;
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    #return-top-div{
        bottom: 190px;
        right: 0px;
        z-index: 100;
        position: fixed;

        opacity: 0;
        visibility: hidden;  
        transition: 0.9s;
    }
}

/* スマホ */
@media (max-width: 767px) {

    body {
        background: #0cc0df url(../img/bg.png) no-repeat;
        background-size: cover;
    }

    header {
        width: 100%;
        height: 80px;
        text-align: center;
    }

    main{
        width: 100%;
        height: 2630px;
    }

    footer{
        width: 100%;
        height: 240px;
        background: url(../img/footer_area.png) no-repeat;
        background-size: cover;

        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
    }

    img.header_img{
        margin-top: 5%;
        width: 90%;
    }

    .footer_img{
        height: 35px;
    }

    .image1{
        position: absolute;
        top: 0px;
        left: 15px;
        width: 70%;
        z-index: 1;
    }

    .image2{
        position: absolute;
        top: 210px;
        right: 15px;
        width: 60%;
    }

    .image3{
        position: absolute;
        top: 530px;
        left: 20px;
        width: 90%;
        z-index: -100;
    }

    .image4{
        position: absolute;
        top: 980px;
        right: 30px;
        width: 60%;
    }

    .image5{
        position: absolute;
        top: 1150px;
        left: 10px;
        width: 60%;
        z-index: -1;
    }

    .mail_img{
        height: 47px;
    }

    div.footer_txt{
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 120%;
        color: white;
        font-weight: bold;
    }

    .div_main{
        height: 1380px;
        position: relative;
    }

    .footer_title{
        margin-top: 30px;
        height: 75px;
        width: 75%;
        text-align: center;
    }

    .footer_mail{
        height: 160px;
    }

    #return-img{
        display: none;
    }

    #return-top{
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
    
        background-color: red;
        width: 35px;
        height: 120px;
    }

    #return-txt{
        color: white;
        font-size: 30px;
        font-weight: bold;
        margin-top: 10px;
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    #return-top-div{
        bottom: 120px;
        right: 0px;
        z-index: 100;
        position: fixed;

        opacity: 0;
        visibility: hidden;  
        transition: 0.9s;
    }
}