@charset "UTF-8";



.h_container,
.text-contact {
    width: 80%;
    margin: 0 auto;
}

/* .wrapper_contct {
    background-image: url(../image/contact-top.png), url(../image/contact-botom.png);
    background-position: center top, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% auto, 100% auto;
    background-color: #BDE1DA;
    padding: 150px 0;
    box-sizing: border-box;
    background-size: 100%;
}  */

.contact-main-wrapper {
    background-image: url(../image/contact_top1.png);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-color: #BDE1DA;
    /* padding: 100px 0; */
    box-sizing: border-box;
    background-size: 100%;
}


/* 中身を中央に寄せる */
.contact-main-wrapper {
    margin: 0 auto;
}


.allwrap {
    overflow-x: hidden;
    width: 100%;
}


.sab-contact {
    margin-top: 100px;
    /* margin-bottom: 60px; */
    text-align: center;

}

.text-contact {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    margin-top: 40px;
    padding: 20px 20px;
}


form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    padding: 30px 20px;
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}



label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: #333;
    text-align: left;
}


input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #6EDBC8;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

p.submit {
    text-align: center;
}

input[type="submit"] {
    background-color: #ffff;
    color: black;
    margin: 30px;
    padding: 10px 25px;
    font-size: 16px;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}


input[type="submit"]:hover {
    background-color: #6EDBC8;
}

.flag_contact {
    background-image: url(../image/contact-botom.png);
    background-size: cover;
    padding-top: 100px;

}




@media(max-width:768px) {

    .h_container,
    .text-contact {
        width: 90%;
        margin: 0 auto;
    }

    .wrapper_contct {
        background-size: contain, contain;
        background-position: center top, center bottom;
    }



    .contact-main {
        width: 90%;
        margin: 0 auto;
        background-size: contain;
        background-position: top;
        background-repeat: no-repeat;
    }


    .sab-contact {
        width: 90%;
        margin: 0 auto;
        margin-top: 50px;
        margin-bottom: 30px;
        text-align: center;

    }

    .text-contact {
        font-size: 15px;
        padding: 100px 16px 0 16px;
        line-height: 1.7;
    }

    .text-contact,
    input,
    textarea,
    select {
        font-size: 16px;
    }


    form {
        width: 95%;
        padding: 0 20px 30px 20px;
    }

    p.submit {
        text-align: center;
    }

    input[type="submit"] {
        display: inline-block;
        margin: 30px auto;
    }


}