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 0;
    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;
}

.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: 80%;
}

.page-description div:not(:nth-child(2n)) {
    width: 10%;
    align-self: flex-end;
}

#contact-button {
    background-color: #DD2F7A;
    justify-content: center;
    align-items: center;
    column-gap: 15px;
    border: 1px solid #DD2F7A;
    border-radius: 15px;
    margin: 0 auto;
    width: 40%;
    transition: all 0.3s;
    color: #FFF;
    padding: 30px 20px;
}

#contact-button:hover {
    background-color: #fff;
    border: 1px solid #DD2F7A;
}

#contact-button:hover p {
    color: #DD2F7A;
}

#contact-button .img-default,
#contact-button .img-hover {
    max-width: 38px;
    width: 10%;
}

#contact-button .img-default {
    display: block;
}

#contact-button:hover .img-default {
    display: none;
}

#contact-button .img-hover {
    display: none;
}

#contact-button:hover .img-hover {
    display: block;
}

#contact-button p {
    color: #fff;
}

#contact-button p:nth-of-type(1) {
    font-size: 24px !important;
    font-weight: bold;
}

#contact-button p:last-child {
    font-size: 16px !important;
}

.md-lg-only {
    display: none;
}

@media (max-width: 1536px) {
    #contact-button {
        width: 45%;
    }
}

@media (max-width: 1280px) {
    #contact-button .img-default {
        min-width: 30px;
    }
    #contact-button .img-hover {
        min-width: 30px;
    }
    #contact-button {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .page-description p {
        font-size: 14px;
    }
}

@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 0;
    }
    #contact-button {
        box-sizing: border-box;
        padding: 30px 20px !important;
        width: 100%;
        margin-top: 30px;
    }
    #contact-button .img-default {
        width: 5%;
    }
    #contact-button .img-hover {
        width: 5%;
    }
    .page-description div:not(:nth-child(2n)) {
        width: 20%;
        align-self: end;
        margin-bottom: 5%;
    }
    .company-list > div {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    p {
        line-height: 1.6;
    }
    .address {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    main {
        padding: 40px 0 200px !important;
    }
    .page-description p:last-child {
        font-size: 14px;
    }
    #contact-button {
        padding: 20px 10px !important;
    }
    #contact-button .img-default,
        #contact-button .img-hover {
        min-width: 24px;
    }
    #contact-button p:last-child {
        font-size: 14px !important;
    }
    #contact-button p:nth-of-type(1) {
        font-size: 16px !important;
    }
}