/*
    お問い合わせフォーム
*/


.from-h2{
    font-size: 19px;
    font-family: var(--mincho);
    line-height: 1.8;
    position: relative;
    letter-spacing: 0.06em;
    padding-bottom: 15px;
    margin-bottom: 70px;
    border-bottom: 2px solid #f3f1ec;
}
.from-h2::after{
    content: "";
    width: 220px;
    height: 2px;
    background-color: #134a49;
    position: absolute;
    bottom: -2px;
    left: 0;
}
.from-content{
    background-color: #e8efeb;
    padding: 60px 0;
    margin-bottom: 70px;
    border-radius: 20px;
}
.from-content-box{
    max-width: 680px;
    width: 94%;
    margin: 0 auto;
}
.termbox{
	position: relative;
}
.table_bottom_border{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
#mailform .table_bottom_border th{
    background: none;
    font-size: 18px;
    max-width: 200px;
    width: 30%;
    padding: 0;
    display: flex;
    align-items: center;
}
#mailform .table_bottom_border td{
    background: none;
    font-size: 18px;
    max-width: 470px;
    width: 68%;
    padding: 0;
}
#mailform .table_bottom_border input[type="text"], #mailform .table_bottom_border input[type="tel"], #mailform .table_bottom_border input[type="number"], #mailform .table_bottom_border input[type="email"]{
    border: none;
    margin: 0;
    padding: 10px 6px 10px 20px;
    box-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.1) inset;
    border-radius: 10px;
    font-size: 16px;
}
#mailform .table_bottom_border #mail, #mailform .table_bottom_border #tel{
    margin: 0;
    width: 100% !important;
}
#mailform .table_bottom_border textarea {
    font-size: 16px;
    margin: 0 !important;
    padding: 25px 25px;
    height: 100%;
    border: none;
    box-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.1) inset;
    border-radius: 10px;
    resize: none;
}
.required{
    background-color: #c25b0c;
    font-size: 14px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    display: block;
    margin-right: 10px;
}
span.required{
	color: #fff;
}
#mailform .table_bottom_border input::placeholder{
    color: #827c7c;
}
#mailform .gender-label{
    position: relative;
    padding-left: 30px;
    margin-top: 5px;
    font-size: 18px;
    margin-right: 20px;
}
#mailform .gender-label::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #345b58;
    position: absolute;
    top: 2px;
    left: 0;
}
#mailform input:checked + .gender-label:after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 3px;
    background: #345b58;
}
.table_bottom_border.naiyo{
    display: block;
}
#mailform .table_bottom_border.naiyo th,
#mailform .table_bottom_border.naiyo td{
    width: 100%;
    max-width: none;
}
#mailform .table_bottom_border.naiyo th{
    margin-bottom: 10px;
}
#mailform .table_bottom_border.naiyo td{
    width: 100%;
    /*height: 200px;*/
    line-height: 1.5;
    min-height: 200px;
    max-width: none;
    display: block;
}
#mailform label.checkbox {
    background-color: unset !important;
    font-size: 16px;
    text-align: left;
    line-height: 1.5;
    padding: 0 0 0 44px !important;
    margin: 0 !important;
}
#mailform label.checkbox .in-bk{
    display: inline-block;
}
#mailform label.checkbox:after{
    border: 2px solid #809a96 !important;
    background-color: #fff;
    border-radius: 0 !important;
    width: 20px !important;
    height: 20px !important;
    top:0 !important;
    left: 0 !important;
    margin-top: 0 !important;
}
#mailform .checkbox:before{
    border-right: 3px solid #809a96 !important;
    border-bottom: 3px solid #809a96 !important;
    top: 5px !important;
    left: 8px !important;
    z-index: 1 !important;
    margin-top: 0 !important;
}
#mailform .term2{
    border:1px solid #e97e2f !important;
    margin-bottom: 90px !important;
    max-height: 210px !important;
    padding: 35px 38px !important;
    font-size: 16px !important;
    line-height: 2 !important;
    overflow-y: scroll;
}
#mailform .term2::-webkit-scrollbar{
    background: #f1f1f1;
    width: 14px;
}
#mailform .term2::-webkit-scrollbar-thumb{
    background: #918b8b;
    border-radius: 20px;
}


#mailform .term2 .title{
    font-size: 23px;
    text-align: left;
    font-weight: bold;
    font-family: var(--mincho);
    padding-left: 14px;
    border-left: 5px solid #c55c0b;
    line-height: 1.2;
    margin-bottom: 20px;
}
#submitBtn, #backBtn, #closeBtn{
    border: none !important;
    box-shadow:none !important;
    border-radius: 100px !important;
    color: #fff !important;
    background: linear-gradient(to right, rgba(201,139,90,1) 0%,rgba(134,74,57,1) 100%);
    display: block;
    width: 450px !important;
    appearance: none;
    height: 90px !important;
    font-size: 22px !important;
    font-family: var(--mincho);
    font-weight: 500;
}
#submitBtn img{
    width: auto;
    height: 0.9em;
    display: inline-block;
    margin-right: 5px;
    position: relative;
    top:0;
}
#mailform .seal{
    margin: 30px auto 0 !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
#mailform .seal a {
    display: inline-block !important;
    width: 70px !important;
    margin: 0 !important;
}
#mailform .seal p {
    display: inline-block !important;
    margin: 0 0 0 20px !important;
    text-align: left !important;
    font-size: 14px !important;
    width: auto;
    max-width: 400px;
    line-height: 1.5;
}
#mailform .seal p .br{
    display: block;
}
#mailform .seal a img {
    max-width: 100% !important;
    margin: 0 !important;
}
#mailform #backBtn{
    margin: 80px auto 0 !important;
}
@media screen and (max-width: 1365px){
    .from-h2{
        max-width: 800px;
        margin: 0 auto 50px;
    }
}
@media screen and (max-width: 1024px){
    .from-h2{
        font-size: 18px;
    }
}
@media screen and (max-width: 767px){
    .from-h2{
        font-size: 16px;
        margin: 0 auto 40px;
    }
    .from-content {
        padding: 40px 0;
        margin-bottom: 50px;
        border-radius: 10px;
    }
    .from-content-box{
        max-width: none;
    }
    #mailform .table_bottom_border th{
        font-size: 16px;
        max-width: none;
        width: 100%;
    }
    .required {
        font-size: 12px;
        padding: 3px 6px;
        border-radius: 4px;
        margin-right: 6px;
    }
    #mailform .table_bottom_border td {
        font-size: 16px;
        max-width: none;
        width: 100%;
    }
    #mailform label.checkbox{
        font-size: 14px;
        padding: 0 0 0 35px !important;
    }
    #mailform label.checkbox:after{
        width: 18px !important;
        height: 18px !important;
    }
    #mailform .checkbox:before{
        top: 3px !important;
        left: 7px !important;
    }
    #mailform .term2{
        margin-bottom: 60px !important;
        max-height: 160px !important;
        padding: 25px 28px !important;
        font-size: 14px !important;
    }
    #mailform .term2 .title{
        font-size: 18px;
        padding-left: 10px;
        border-left: 4px solid #c55c0b;
        margin-bottom: 10px;
    }
    #submitBtn{
        width: 300px !important;
        height: 70px !important;
        font-size: 18px !important;
    }
    #mailform .seal p{
        font-size: 12px !important;
        margin: 0 0 0 10px !important;
    }
    #mailform .seal a{
        width: 50px !important;
    }
    #mailform #backBtn {
        width: 300px !important;
        height: 70px !important;
        font-size: 18px !important;
        margin-top: 60px !important;
    }
}
@media screen and (max-width: 399px){
    .from-h2{
        font-size: 4vw;
    }
    #mailform .term2{
        padding: 15px 18px !important;
        font-size: 12px !important;
    }
    #mailform .term2 .title{
        font-size: 16px;
    }
    #submitBtn{
        width: 280px !important;
        height: 62px !important;
    }
    #mailform #backBtn {
        width: 280px !important;
        height: 62px !important;
        margin-top: 50px !important;
    }
}

/*
    完了ページ
*/
section{
    padding-bottom: 100px;
}
.from-h2.thanks-h2{
    font-size: 36px;
    max-width: none;
}
.input_btn.backbtn{
    width: 260px;
    height: 50px;
    border-radius: 100px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto 0;
    font-size: 18px;
    font-family: var(--mincho);
    font-weight: bold;
    position: relative;
}
.input_btn.backbtn::after{
    content: "";
    display: inline-block;
    background-image: url(../img/common/icon-arrow-right--white.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    /*position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 13px;
    z-index: 1;*/
    margin-left: 8px;
    transition: 0.3s;
}
@media screen and (max-width: 1365px){
    .from-h2.thanks-h2{
        font-size: 30px;
    }
}
@media screen and (max-width: 767px){
    .from-h2.thanks-h2{
        font-size: 24px;
    }
}
@media screen and (max-width: 399px){
    .from-h2{
        font-size: 6vw;
    }
}