/* 文字の大きさ */
h1,
h2,
h3,
h4 {
    margin: 0;
    padding: 0;
}

.submit {
    display: flex;
    justify-content: center;
}

.contact-btn {
    border: 2px solid #aaa;
    background-color: #F8F8F8;
    width: 160px;
    cursor: pointer;
    font-size: 18px;
    padding: 8px 18px;
    display: block;
    margin: 6% 0;
    border-radius: 5px;
}


.form-container {
    width: 85%;
    margin: 5% auto;
    padding: 20px;
}

.form-container h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.form-container p {
    font-size: 18px;
}

label {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: bold;
}

.required::before {
    content: "必須";
    color: #fff;
    font-size: 12px;
    background-color: #e74c3c;
    padding: 4px 6px;
    margin-right: 1%;
    border-radius: 3px;
}

input,
textarea {
    width: 95%;
    border: #F8F8F8;
    border-radius: 4px;
    font-size: 18px;
    background-color: #F8F8F8;
}

textarea {
    resize: none;
}

.form-group :focus {
    border: 2px solid orange;
    outline: none;
}

::placeholder {
    color: #aaa;
    opacity: 0.6;
}

.submit-btn {
    border: 2px solid #aaa;
    background-color: #F8F8F8;
    width: 10%;
    height: 100%;
    cursor: pointer;
    font-size: 18px;
    display: block;
    margin: 0 10%;
    border-radius: 5px;
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 8%;
}

.submit-btn p {
    margin: 0;
    padding: 10%;
}


form {
    margin: 5% 0;
}

.complete-container {
    width: 92%;
    margin: 5% auto 10%;
}

.complete-container p {
    font-size: 18px;
}

.complete-container .submit-btn {
    width: 16%;
    text-align: center;
    padding: 10px;
    margin: 5% auto;
}


.form-group {
    display: flex;
    justify-content: flex-start;
}

.form-label {
    width: 22%;
    font-size: 20px;
    font-weight: bold;
}

.form-value {
    font-size: 18px;
    width: 760px;
}

/* 画像サイズ */
#TopTriangle {
    position: absolute;
    top: -3%;
    left: -2%;
}

.wpcf7-previous {
    display: inline-block !important;
}

/* アニメーション */
.svg-wrapper {
    top: -39%;
    left: -1%;
}

@keyframes infinity-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100vw);
    }
}

#Form,
#Complete {
    position: relative;
}

.wpcf7-spinner {
    display: none !important;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {

    #TopView-Text {
        bottom: -10%;
        left: 3%;
    }

    .Top-title h2 {
        font-size: 48px;
    }

    .Top-title h3 {
        font-size: 35px;
    }

    .form-container h2 {
        font-size: 22px;
    }

    .form-container p {
        font-size: 16px;
    }

    form {
        width: 95%;
        margin: 10% auto;
    }


    .form-group {
        flex-direction: column;
    }

    .form-label {
        font-size: 18px;
        width: 150%;
    }

    .form-value {
        font-size: 17px;
        width: 95%;
        margin: 3% 0 0 3%;
    }

    .required {
        font-size: 20px;
    }

    .required::before {
        margin-right: 4%;
        padding: 5px 20px;
    }

    .submit-btn {
        width: 260px;
        font-size: 16px;
        margin: 8% auto;
    }

    .complete-container p {
        font-size: 17px;
    }

    #TopView {
        position: relative;
        height: 300px;
    }

    .back-ground-logo {
        width: 120px !important;
    }


    .form-container,
    .complete-container {
        width: 95%;
        margin: 15% auto;
        padding: 0;
        position: relative;
        z-index: 1;
    }


    input,
    textarea {
        font-size: 18px;
    }

    .submit-btn {
        width: 100px;
        font-size: 18px;
        margin: 3% auto;
    }

    .submit-btn p {
        padding: 7%;
    }

    .complete-container {
        width: 90%;
        margin: 10% auto;
    }

    .complete-container h1 {
        font-size: 18px;
    }

    .complete-container .submit-btn {
        width: 150px;
        margin: 10% auto;
        padding: 10px 15px;
    }

    .svg-wrapper {
        top: -60%;
        left: -15%;
    }

    #Form .wave {
        top: -95%;
        transform: scale(3.4);
    }

    #Complete .wave {
        top: -100%;
        transform: scale(4.4);
    }
}