.contact-form-container {
    max-width: 700px;
    margin: auto;
}

.contact-form-container h3 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.contact-form-container label {
    margin: 30px 0px 10px;
    padding: 10px;
    border-left: 4px solid rgb(0, 232, 208);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}

.contact-form-container label.required:after {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    content: "必須";
    min-width: 34px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fefefe;
    color: #e01e5a;
    border: solid 1px #e01e5a;
    border-radius: 4px;
    padding-bottom: 2px;
    box-sizing: border-box;
}

.contact-form-container input,
.contact-form-container textarea {
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: -.01em;
    width: 100%;
    border: solid 1px #d6d3d0;
    border-radius: 6px;
    padding: 7px 11px;
}

.contact-form-container input#agree {
    width: fit-content;
    cursor: pointer;
}

.form-group.form-check label {
    border: unset;
    display: flex;
    gap: 1em;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    align-items: center;
    width: fit-content;
    margin: 30px auto 10px;
}

.form-check-label a {
    text-decoration: underline #00E8D0;
}

.form-send-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

button.submit-btn {
    text-align: center;
    border-radius: 4px;
    padding: 10px 0px;
    width: 50%;
    min-width: 10em;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    --transition-time-in: .1s;
    --transition-time-out: .5s;
    color: #fefefe;
    cursor: pointer;
    background: rgb(0, 218, 233);
    background: linear-gradient(90deg, rgba(0, 218, 233, 1) 0%, rgba(0, 232, 208, 1) 100%);
}

/****************
内容確認画面
****************/
p.confirm-text {
    margin: 10px 0px;
}

.confirm-page .form-send-btn {
    gap: 4%;
}

.confirm-page button.submit-btn {
    min-width: 8em;
    width: 30%;
}

/****************
お問い合わせ完了画面
****************/
.form-end-page .contact-form-container {
    text-align: center;
}

.form-end-page .contact-form-container p {
    line-height: 2;
}

.form-end-page .home-btn {
    margin-top: 40px;
}

.form-end-page .home-btn a {
    text-align: center;
    border-radius: 4px;
    padding: 10px 0px;
    width: 50%;
    min-width: 10em;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    --transition-time-in: .1s;
    --transition-time-out: .5s;
    color: #fefefe;
    cursor: pointer;
    background: rgb(0, 218, 233);
    background: linear-gradient(90deg, rgba(0, 218, 233, 1) 0%, rgba(0, 232, 208, 1) 100%);
}

/****************
*****************
画面幅が768px以下
*****************
****************/
@media screen and (max-width: 768px) {
    .contact-form-container h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-form-container label {
        margin: 20px 0px 10px;
        font-size: 14px;
        padding: 8px;
    }

    .contact-form-container input,
    .contact-form-container textarea {
        font-size: 14px;
        padding: 4px 8px;
        border-radius: 4px;
    }

    .contact-form-container label.required:after {
        font-size: 10px;
        border-radius: 3px;
        padding-bottom: 1px;
    }

    .form-group.form-check label {
        font-size: 12px;
    }

    button.submit-btn {
        width: 90%;
        min-width: 10em;
        font-size: 16px;
    }

    .confirm-page button.submit-btn {
        width: 48%;
        min-width: 6em;
        font-size: 14px;
    }

    .form-end-page .home-btn {
        margin-top: 20px;
    }

    .form-end-page .home-btn a {
        width: 90%;
        font-size: 16px;
    }
}