main {
    /* background-color: #FFEFF7; */
    background-image: url("../img/company-back-pc.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 0 300px;
    width: 100%;
}

section {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.text-on-img {
    width: 400px;
    aspect-ratio: 2 / 1 ;
    font-size: 2rem;
    color: #FFF;
    font-weight: bold;
    background-image: url("../img/page-title-back-01.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.text-on-img > h1 {
    font-weight: 500 !important;
    font-size: 1rem !important;
}

.company-list-container {
    background-color: #fff;
    border-radius: 15px;
    margin-bottom: 100px;
}

.company-list {
    padding: 40px;
}

.company-list > div {
    margin-bottom: 10px;
    padding: 20px;
    column-gap: 4%;
}

.company-list > div:not(:nth-last-child(-n+2)) {
    border-bottom: 1px solid #EC91B8;
}

.flex-row {
    display: flex;
}

dt {
    width: 120px;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    color: #DD2F7A;
}
dd {
    margin: 0;
    font-weight: 500;
    color: #DD2F7A;
}

.page-description {
    margin-bottom: 40px;
    width: min(100%, 960px);
    justify-content: center;
}

.page-description p {
    color: #DD2F7A;
    text-align: center;
    font-weight: 500;
}

.page-description p:nth-child(1) {
    font-weight: 700;
    font-size: 20px;
}

.page-description div {
    width: 53%;
}

.page-description div:not(:nth-child(2n)) {
    width: 10%;
    align-self: flex-end;
}
/* Contact Form 7 */
.wpcf7-container {
    background-color: #fff;
    border-radius: 15px;
    margin-bottom: 100px;
    position: relative;
    padding: 40px;
}

.wpcf7-container img {
    position: absolute;
    top: 99%;
    left: 1%;
    width: 300px;
}

.form-wrapper > div:not(:last-child) {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.form-label {
    width: 20%;
    color: #DB2473;
    margin-bottom: 6px;
    font-weight: 700;
}

.form-label p {
    font-size: 20px;
}

.form-input {
    width: 80%;
}

.wpcf7-radio {
    display: flex;
    justify-content: space-evenly;
}

.select-prompt {
    color: #cacaca;
    font-size: 20px;
    font-weight: 500;
}

.wpcf7-list-item {
    margin: 0 !important;
}

.wpcf7-list-item-label {
    color: #DB2473 !important;
    font-weight: 700;
    font-size: 20px;
}

/*------ラジオボタン-----*/
.wpcf7-list-item label input[type=radio]{
    display: none;
}

/* チェックボックス枠 */
.wpcf7-list-item-label {
    position: relative;
}
label:has(input[type="radio"]) .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: #FFEFF7;
    border-radius: 5px;
    transition: .2s;
    margin-top: 2px;
    border: 1px solid;
    color: #DB2473 !important;
}
/* ✓マーク */
label:has(input[type="radio"]) .wpcf7-list-item-label::after {
    content: "✓";
    position: absolute;
    left: -20px;
    top: 0px;
    font-size: 16px;
    font-weight: 900;
    color: #DB2473;
    transform: scale(0);
    transition: .2s;
}
/* checked時 */
.wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::before {
background: #ffdcee;
}
.wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::after {
transform: scale(1);
}

/*------ラジオボタン-----*/
.wpcf7-list-item label input[type=checkbox]{
    display: none;
}

/* チェックボックス枠 */
.wpcf7-list-item-label {
    position: relative;
}
label:has(input[type="checkbox"]) .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: #FFEFF7;
    border-radius: 5px;
    transition: .2s;
    margin-top: 2px;
    border: 1px solid;
    color: #DB2473 !important;
}
/* ✓マーク */
label:has(input[type="checkbox"]) .wpcf7-list-item-label::after {
    content: "✓";
    position: absolute;
    left: -20px;
    top: 0px;
    font-size: 16px;
    font-weight: 900;
    color: #DB2473;
    transform: scale(0);
    transition: .2s;
}
/* checked時 */
.wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
background: #ffdcee;
}
.wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
transform: scale(1);
}

.form-footer p {
    text-align: center;
}

.privacy-policy-checkbox {
    accent-color: #FFEFF7;
    border: #DB2473;
}

.privacy-policy span {
    color: #cacaca;
}

.privacy-policy a {
    color: #289BD4 !important;
}

.wpcf7-text {
    background-color: #FFEFF7;
    border: none;
    outline: none;
    border-radius: 5px;
    width: 100%;
    padding: 10px 20px;
    font-size: 20px;
}

.wpcf7-text:focus {
    background-color: #ffdcee;
}

.wpcf7-text::placeholder {
    color: #cacaca;
    font-weight: 500;
}

.wpcf7-textarea {
    background-color: #FFEFF7;
    border: none;
    outline: none;
    border-radius: 5px;
    width: 100%;
    padding: 10px 20px;
}

.wpcf7-textarea:focus {
    background-color: #ffdcee;
}

.wpcf7-textarea::placeholder {
    color: #cacaca;
    font-size: 20px;
    font-weight: 500;
}

.submit-btn-wrap {
    margin-top: 30px;
}

.submit-btn-wrap p button {
    border: 1px solid #DB2473;
    background-color: #DB2473;
    color: #FFF;
    padding: 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 20px;
    width: 30%;
}

.submit-btn-wrap p button:hover {
    background-color: #fff;
    border: 1px solid #DB2473;
    color: #DB2473;
}

.md-lg-only {
    display: none;
}

.screen-reader-response {
    display: none;
}

.wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7-response-output {
    display: none;
}

.error-message {
    color: red;
    display: none;
    font-size: 14px;
}

.error:has(.wpcf7-not-valid-tip) {
    .error-message {
        display: block;
    }
}

.error-message-privacy-policy {
    color: red;
    display: none;
    font-size: 14px;
}

.error-message-privacy-policy.has-text {
    display: block;
}

.wpcf7-spinner {
    display: none !important;
}


@media (max-width: 1536px) {

}

@media (max-width: 1280px) {
    .form-label p {
        font-size: 17px;
    }
    .wpcf7-text {
        font-size: 18px;
    }
    .wpcf7-list-item-label {
        font-size: 18px;
    }
    .select-prompt {
        font-size: 18px;
    }
    .wpcf7-textarea::placeholder {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {

}

@media (max-width: 960px) {
    main {
        background-image: url("../img/company-back-sp.webp");
    }
    .text-on-img {
        width: 300px;
        height: 170px;
        font-size: 1.8rem;
        font-weight: 700;
    }
    .pc_only {
        display: none;
    }
    .sp_only {
        display: block;
    }
    .xl-only {
        display: none;
    }
    .company-list {
        padding: 20px;
    }
    .company-list > div {
        margin-bottom: 0px;
        margin-top: 20px;
    }
    .company-list > div:not(:last-child){
        flex-direction: column;
        padding: 10px;
    }
    .page-description div:not(:nth-child(2n)) {
        width: 20%;
        align-self: end;
        margin-bottom: 5%;
    }
    .company-list > div {
        padding: 10px;
    }
    .wpcf7-container {
        padding: 20px;
    }
    .page-description-sp {
        margin-bottom: 30px;
    }
    .form-wrapper > div:not(:last-child) {
        margin-bottom: 20px;
    }
    .form-row {
        flex-direction: column;
    }
    .form-label {
        width: 100%;
    }
    .form-input {
        width: 100%;
    }
    .wpcf7-text {
        padding: 10px;
    }
    .wpcf7-checkbox {
        justify-content: flex-start;
        flex-direction: column;
    }
    .wpcf7-radio {
        justify-content: flex-start;
        flex-direction: column;
    }
    .submit-btn-wrap {
        margin-top: 20px;
    }
    .submit-btn-wrap p button {
        width: 80%;
    }
    .wpcf7-list-item {
        padding-left: 24px;
    }
    label:has(input[type="radio"]) .wpcf7-list-item-label::after {
        top: -1px;
    }
    label:has(input[type="checkbox"]) .wpcf7-list-item-label::after {
        top: -1px;
    }
    .form-label p {
        font-size: 20px;
    }
    .wpcf7-text {
        font-size: 20px;
    }
    .wpcf7-list-item-label {
        font-size: 20px;
    }
    .select-prompt {
        font-size: 20px;
    }
    .wpcf7-textarea::placeholder {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    p {
        line-height: 1.6;
    }
    .wpcf7 img {
        left: 3%;
        width: 200px;
    }
    label:has(input[type="radio"]) .wpcf7-list-item-label::after {
        top: 2px;
    }
    label:has(input[type="checkbox"]) .wpcf7-list-item-label::after {
        top: 2px;
    }
}

@media (max-width: 640px) {
    .page-description p:last-child {
        font-size: 14px;
    }
    main {
        padding: 40px 0 270px !important;
    }
}