.p-contact {
    margin-top: 60px;
    padding-top: 50px;
    padding-bottom: 161px;
    position: relative;
    z-index: 2;
}

.p-contact::before {
    background-color: #cbcbcb;
    content: '';
    height: 1px;
    left: 50%;
    position: absolute;
    top: 0;
    width: calc(100% - 80px);
    max-width: 1240px;
    transform: translate(-50%, 0px);
}

.p-contact::after {
    border-radius: 100vh;
    opacity: 0.3;
    background:#FFE294;
    filter: blur(150px);
    content: '';
    height: 535px;
    right: calc(50% + 258px);
    position: absolute;
    bottom: -67px;
    width: 535px;
}

.p-contact__inner {
    position: relative;
    z-index: 2;
}

.p-contact__txt {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
}

.p-contact__form {
    margin: 40px auto 0;
    max-width: 894px;
    padding: 70px;
    background-color: #fff;
    border-radius: 30px;
}

.p-contact__table {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: #acacac solid 1px;
}

.p-contact__table dl {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.p-contact__table dl dt {
    width: 170px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}
.p-contact__table dl.--radio dt {
    padding-top: 0;
}

.p-contact__table dl dt .--required {
    font-size: 12px;
    color: #f0562c;
    margin-left: 4px;
    transform: translate(0, -3px);
}

.p-contact__table dl dd {
    width: calc(100% - 170px);
    max-width: 498px;
}

.p-contact__table dl dd .wpcf7-form-control-wrap {
    width: 100%;
}

.p-contact__table dl dd input[type=text],
.p-contact__table dl dd input[type=tel],
.p-contact__table dl dd input[type=email],
.p-contact__table dl dd textarea {
    padding: 12px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #E8E8E8;
    background: #F8F8F8;
    width: 100%;
}

.p-contact__table dl dd textarea {
    resize: vertical;
    min-height: 236px;
}

.p-contact__table ::placeholder {
    color: #c3c3c3;
    font-weight: 400;
}

.p-contact__table dl.--radio dd .wpcf7-radio {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-contact__table dl.--radio dd label input[type=radio] {
    display: none;
}

.p-contact__table dl.--radio dd .wpcf7-list-item-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    position: relative;
    padding-left: 28px;
}

.p-contact__table dl.--radio dd .wpcf7-list-item-label::before {
    content: '';
    height: 18px;
    left: 0;
    position: absolute;
    top: 7px;
    width: 18px;
    border-radius: 100vh;
    border: #e0e0e0 solid 1px;
}

.p-contact__table dl.--radio dd .wpcf7-list-item-label::after {
    content: '';
    height: 10px;
    left: 4px;
    position: absolute;
    top: 11px;
    width: 10px;
    border-radius: 100vh;
    background-color: #303135;
    opacity: 0;
}

.p-contact__table dl.--radio dd label input:checked + .wpcf7-list-item-label::after {
    opacity: 1;
}

.p-contact__file {
    position: relative;
    height: 113px;
    border-radius: 6px;
    border: 1px dashed #CDCDCD;
    background: #F8F8F8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
}
.p-contact__file.is-dragover {
    border-color: #007aff;
    background: #eef6ff;
}

.p-contact__file--icon {
    width: 29px;
}

.p-contact__file--txt01 {
    color: #858585;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.p-contact__file--txt02 {
    color: #858585;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
}

.p-contact__file .wpcf7-form-control-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
}

.p-contact__file .wpcf7-form-control-wrap input[type=file] {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.p-contact__file--name {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.p-contact__file--name figure {
    width: 12px;
    cursor: pointer;
    display: flex;
    padding-top: 2px;
}

.p-contact__file--name p {
    font-size: 14px;
    line-height: 1.4;
}

.p-contact__file--caution {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.7;
}

.p-contact__agreement {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
}

.p-contact__agreement a {
    text-decoration: underline;
    color: #858585;
}

.p-contact__agreement label {
    cursor: pointer;
}

.p-contact__agreement label input[type=checkbox] {
    display: none;
}

.p-contact__agreement label .wpcf7-list-item-label {
    position: relative;
    padding-left: 27px;
}

.p-contact__agreement label .wpcf7-list-item-label::before {
    border-radius: 3px;
    border: 1px solid #E8E8E8;
    background: #F8F8F8;
    content: '';
    height: 15px;
    left: 0;
    position: absolute;
    top: 9px;
    width: 15px;
}

.p-contact__agreement label .wpcf7-list-item-label::after {
    background: url('../img/contact/check.svg') no-repeat center center/contain;
    content: '';
    height: 15px;
    left: 0;
    position: absolute;
    top: 9px;
    width: 15px;
    opacity: 0;
}

.p-contact__agreement label input[type=checkbox]:checked + .wpcf7-list-item-label::after {
    opacity: 1;
}

.p-contact__btn {
    margin-top: 30px;
    text-align: center;
}

.p-contact__btn input[type=submit] {
    width: 277px;
    height: 62px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background:#303135;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.p-contact__btn .wpcf7-spinner {
    display: none;
}

.p-contact .wpcf7-list-item {
    margin: 0 !important;
}

@media screen and (min-width: 901px) {
    .p-contact__btn input[type=submit] {
        transition: opacity .6s 0s cubic-bezier(.44,.14,.09,1.02);
    }

    .p-contact__btn input[type=submit]:hover {
        opacity: .73;
    }
}

@media screen and (max-width: 900px) {
    .p-contact {
        margin-top: 30px;
        padding-top: 30px;
        padding-bottom: 89px;
    }

    .p-contact::before {
        width: calc(100% - 40px);
        max-width: 500px;
    }

    .p-contact::after {
        filter: blur(95px);
        height: 341px;
        right: calc(50% - 72px);
        bottom: -65px;
        width: 341px;
    }

    .p-contact__txt {
        text-align: left;
        font-size: 14px;
        line-height: 1.8;
        letter-spacing: .06em;
    }

    .p-contact__form {
        margin: 30px auto 0;
        padding: 25px 25px 40px;
        border-radius: 20px;
    }

    .p-contact__table {
        gap: 25px;
        padding-bottom: 25px;
    }

    .p-contact__table dl {
        display: block;
    }

    .p-contact__table dl dt {
        width: 100%;
        padding-top: 0;
        font-size: 15px;
    }

    .p-contact__table dl dd {
        width: 100%;
        max-width: unset;
        margin-top: 8px;
    }
    .p-contact__table dl.--radio dd {
        margin-top: 12px;
    }

    .p-contact__table dl dd input[type=text],
    .p-contact__table dl dd input[type=tel],
    .p-contact__table dl dd input[type=email],
    .p-contact__table dl dd textarea {
        padding: 11px;
        font-size: 15px;
    }

    .p-contact__table dl dd textarea {
        min-height: 244px;
    }

    .p-contact__table dl.--radio dd .wpcf7-list-item-label {
        font-size: 14px;
        padding-left: 20px;
    }

    .p-contact__table dl.--radio dd .wpcf7-list-item-label::before {
        height: 15px;
        top: 6px;
        width: 15px;
    }

    .p-contact__table dl.--radio dd .wpcf7-list-item-label::after {
        height: 9px;
        left: 3px;
        top: 9px;
        width: 9px;
    }

    .p-contact__file {
        height: 164px;
        flex-direction: column;
        gap: 10px;
    }

    .p-contact__file--icon {
        width: 29px;
    }

    .p-contact__file--txt01 {
        font-size: 14px;
        text-align: center;
        line-height: 1.48;
    }

    .p-contact__file--txt02 {
        margin-top: 4px;
        text-align: center;
    }

    .p-contact__file--name {
        margin-top: 7px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .p-contact__file--name figure {
        width: 12px;
        cursor: pointer;
        display: flex;
        padding-top: 2px;
    }

    .p-contact__file--name p {
        font-size: 14px;
        line-height: 1.4;
    }

    .p-contact__file--caution {
        margin-top: 10px;
        font-size: 10px;
    }

    .p-contact__agreement {
        margin-top: 25px;
        font-size: 14px;
    }

    .p-contact__agreement label .wpcf7-list-item-label {
        position: relative;
        padding-left: 20px;
    }

    .p-contact__agreement label .wpcf7-list-item-label::before {
        height: 13px;
        top: 7px;
        width: 13px;
    }

    .p-contact__agreement label .wpcf7-list-item-label::after {
        height: 13px;
        top: 7px;
        width: 13px;
    }

    .p-contact__btn {
        margin-top: 22px;
    }

    .p-contact__btn input[type=submit] {
        width: 100%;
        max-width: 277px;
    }
}