@charset "UTF-8";

/* main {
    margin-top: 100px !important;
} */

.head_banner {
    max-width: 1600px;
    margin-bottom: 32px;
}

.serviceList {
    .serviceListImages {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 32px;
        div {
            display: block;
            width: calc(100% / 3);
            max-width: 300px;
            aspect-ratio: 3/2;
            background-size: contain;
            &:nth-of-type(1) {
                background-image: url('../img/index/servicelist01.jpg');
            }
            &:nth-of-type(2) {
                background-image: url('../img/index/servicelist02.jpg');
            }
            &:nth-of-type(3) {
                background-image: url('../img/index/servicelist03.jpg');
            }
        }
    }
    dl {
        width: 688px;
        div {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 16px;
            dt,
            dd {
                line-height: 2;
            }
            dt {
                width: 170px;
                background-color: #fff100;
                text-align: center;
                margin-right: 16px;
            }
            dd {
                width: calc(100% - 186px);
            }
        }
    }
}

.company {
    dl {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 16px;
        div {
            width: 100%;
            display: flex;
            margin-bottom: 16px;
            dt {
                color: #004097;
                width: 240px;
                font-weight: bold;
            }
            dd {
                width: 100%;
                padding: 0 0 15px 112px;
                border-bottom: 1px solid #ccc;
            }
        }
    }
}


.contact {
    max-width: 1000px;
    background-color: #f0f0f0;
    padding: 32px 0 0;
    margin: 0;
    .inner {
        align-items: center;
        margin: 0;
        padding: 0 16px;
        .wpcf7 {
            width: 100%;
            form {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
        }
    }

    .sectionTitle {
        color: #2b2b2b;
    }

    .sectionTitle::before,
    .sectionTitle::after {
        content: none;
    }

    .nameAndMail {
        display: flex;
        width: 100%;
        max-width: 636px;
        justify-content: space-between;
    }

    label {
        display: flex;
        flex-direction: column;
    }

    textarea {
        width: 100%;
    }

    .cf7_confirm {
        max-width: 636px;
        display: flex;
        flex-direction: column;
        div {
            margin-bottom: 16px;
            dd {
                margin-left: 16px;
            }
        }
        + .previous_submit {
            display: flex;
            margin-bottom: 24px;
            justify-content: space-evenly;
            width: 100%;
            input {
                margin: 0;
                &.wpcf7-previous {
                    background: #969696;
                    &:hover {
                        background: #42a5eb;
                    }
                }
            }
        }

    }

}


@media only screen and (max-width: 767px) {
    .contact {
        .nameAndMail {
            flex-direction: column;
        }
        label {
            display: flex;
            flex-direction: column;
        }
        textarea {
            width: 100%;
        }
        input[type="submit"],
        input[type="button"] {
            max-width: 300px;
        }
    }

    .serviceList {
        dl {
            width: 100%;
            div {
                flex-direction: column;
                padding: 0 16px;
                dt,
                dd {
                    width: 100%;
                    margin-right: 0;
                    text-align: center;
                }
            }
        }
    }

    .company {
        dl {
            div {
                flex-direction: column;
                padding: 0 16px;
                dt,
                dd {
                    width: 100%;
                    padding-left: 16px;
                }
            }
        }
    }
}
/* このとじカッコは消さないこと */

@media only screen and (max-width: 660px) {
    .cf7_confirm {
        + .previous_submit {
            flex-direction: column;
            align-items: center;
            input.wpcf7-previous {
                margin-bottom: 16px;
            }
        }

    }

}