@charset "utf-8";

#maincat_v {
    background-image: url('../contact/img/main_sp.png');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: cover;
}

#contact h2 {
    font-weight: bold;
    margin: 10px 0 30px 0;
}

#contact h2 span {
    display: block;
    font-size: 0.8rem;
    margin: 10px 0 50px 0;
}

#contact p {
    margin-bottom: 50px;
}

#contact .form_btn {
    width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

#contact .form_btn .btn {
    flex: 1 1 0;
    width: auto;
    height: 60px;
    margin: 0;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
    transition: 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

#contact .form_btn .btn:hover,
#contact .form_btn .btn:focus {
    color: #fff;
    border-color: #e63e4b;
    background-color: #e63e4b;
    box-shadow: none;
}

#form_bg em{
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

dl {
    display: flex;
    flex-wrap: wrap;
}
dl dt {
    width: 100%;
}
dl dd {
    width: 100%;
}

em{
    color: red;
}

textarea{
    width: 100%;
}

#form_bg{
    background-color: #f0f4f8;
    padding: 20px;
    margin: 40px 0;
}

.thanks p{
    text-align: left;
}

. errors p{
    text-align: left; 
}

#contact form{
    display: block;
}

#contact .wpcf7-list-item {
    margin: 0 20px 8px 0;
}

#contact .wpcf7-form-control-wrap {
    display: block;
}

#contact .wpcf7-not-valid-tip,
#contact .wpcf7-response-output {
    text-align: left;
}

#contact .wpcf7-response-output {
    margin: 24px 0;
}

#contact .wpcf7-spinner {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    margin: 0 0 0 -12px;
}

.lc-confirm-table {
    width: 100%;
    margin: 30px 0 50px;
    border-collapse: collapse;
    text-align: left;
}

.lc-confirm-table th,
.lc-confirm-table td {
    padding: 16px;
    border: 1px solid #d8dfe6;
    vertical-align: top;
}

.lc-confirm-table th {
    width: 30%;
    background: #f0f4f8;
}

.lc-confirm-table td {
    white-space: pre-wrap;
}

.lc-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 50px auto;
    max-width: 600px;
}

#contact .lc-confirm-actions input {
    width: 48%;
    height: 60px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    transition: 0.3s;
}

#contact .lc-confirm-actions input:hover {
    color: #fff;
    border-color: #e63e4b;
    background-color: #e63e4b;
}

.inline input{
    background-color: #fff;
    border: 1px solid #000;
width: 300px;
    height: 60px;
    transition: 0.3s;
}

.inline input:hover{
    color: #fff;
    border: 1px solid #e63e4b;
    background-color: #e63e4b;
}

.confirm{
    text-align: center;
}

#conf_btn{
    margin: 80px 0 50px 0;
    text-align: center;
}

#conf_btn input{
    width: 100%;
}

.phonenumber{
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center!important;
}

.thanks h3{
    font-weight: bold;
    line-height: 1.4;
}

.bu_time{
    font-weight: bold!important;
    text-align: center!important;
}

.address a{
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

@media (min-width: 576px) {
    
    #maincat_v{
        background-image: url('../contact/img/main.png');
        background-position: bottom right;
        background-repeat: no-repeat;
        background-size: auto;
    }
    
    #form_bg{
        padding: 50px;
        margin: 20px 0;
    }
    
    .short input{
        width: 300px;
    }
    
    dl dt {
        width: 22%;
    }
    dl dd {
        width: 78%;
    }
    
    #contact .form_btn{
        max-width: 600px;
        margin: 0 auto;
    }
    
    .thanks p{
        text-align: center;
    }
    
    .errors p{
        text-align: center; 
    }
    
    #conf_btn{
        margin: 80px 0 50px 0;
        text-align: center;
    }

    #conf_btn input{
        width: 300px;
    }

}

@media (max-width: 575px) {
    .lc-confirm-table th,
    .lc-confirm-table td {
        display: block;
        width: 100%;
    }

    .lc-confirm-table td {
        border-top: 0;
    }
}
