/* page-company.css */
.p-company {
    overflow: hidden;
}

.p-company__breadcrumb {
    padding-top: 0;
}

.p-company__breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    color: #6d7887;
    font-size: 1.1rem;
}

.p-company__breadcrumb li+li::before {
    margin-right: 0.7rem;
    color: #9ca5b2;
    content: ">";
}

.p-company__breadcrumb a {
    color: inherit;
}

.p-company__profile {
    padding-top: 15.5rem;
}

.p-company__profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 35rem;
    gap: 6.5rem;
    align-items: start;
}

.p-company__table {
    margin: 0;
}

.p-company__table-row {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: 5rem;
    padding: 2.1rem 0 1.45rem;
    border-bottom: 1px dotted #cccccc;
    font-size: 1.6rem;
    line-height: 1.5;
}

.p-company__table>.p-company__table-row:first-of-type {
    padding-top: 0;
}

.p-company__table dt {
    color: #202020;
    font-weight: 700;
}

.p-company__table dd {
    margin: 0;
    color: #4c4c4c;
}

.p-company__aside {
    display: grid;
    gap: 3.6rem;
}

.p-company__office-image {
    display: grid;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
    place-items: center;
    background: #edf2f7;
    color: #7c8794;
    font-size: 1.3rem;
}

.p-company__office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-company__message {
    position: relative;
    aspect-ratio: 350 / 220;
    min-height: 0;
    padding: 3.2rem 6.5rem 3.2rem 3.2rem;
    overflow: hidden;
    border-radius: 1rem;
    background: center / cover no-repeat url("../img/company/company-message-decoration.png");
}

@media screen and (min-resolution: 2dppx) {
    .p-company__message {
        background-image: url("../img/company/company-message-decoration@2x.png");
    }
}

.p-company__message h2 {
    margin: 0 0 1.1rem;
    color: #162187;
    font-size: 2.0rem;
}

.p-company__message p {
    margin: 0;
    color: #495563;
    font-size: 1.3rem;
    line-height: 2.0;
}

.p-company__access {
    padding-top: 14rem;
    padding-bottom: 19rem;
}

.p-company__access-header {
    position: relative;
    margin-bottom: 5.5rem;
    text-align: center;
}

.p-company__access-title-image {
    margin: 0;
}

.p-company__access-title-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.p-company__access-header h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.p-company__access-title-image+p {
    display: none;
}

.p-company__map {
    aspect-ratio: 1000 / 535;
    overflow: hidden;
}

.p-company__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.p-company__editorial {
    padding-bottom: 10rem;
}

@media screen and (max-width: 768px) {
    .p-company__profile {
        padding-top: 12rem;
    }

    .p-company__profile-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .p-company__aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .p-company__access {
        padding-top: 8rem;
        padding-bottom: 12rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 700px) {
    .p-company__message {
        aspect-ratio: auto;
        min-width: 0;
        min-height: 21rem;
        padding: 2rem 3.2rem 2rem 2.2rem;
        background-color: #e8f1fa;
        background-position: right bottom;
        background-size: 100% auto;
    }

    .p-company__message h2 {
        margin-bottom: 0.7rem;
        font-size: 1.7rem;
    }

    .p-company__message p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

@media screen and (max-width: 480px) {

    /* "ACCESS MAP / アクセスマップ" heading image: same height as the TOP page heading images (5rem), so the text sizes match. */
    .p-company__access-title-image img {
        width: auto;
        height: 5rem;
    }

    .p-company__profile {
        padding-top: 10rem;
    }

    .p-company__message {
        aspect-ratio: 350 / 200;
    }

    .p-company__table-row {
        grid-template-columns: 8rem minmax(0, 1fr);
        gap: 1.2rem;
        font-size: 1.2rem;
    }

    .p-company__aside {
        grid-template-columns: 1fr;
    }

    .p-company__access {
        padding-top: 6rem;
        padding-bottom: 10rem;
    }

    .p-company__map {
        aspect-ratio: 1.25 / 1;
    }

    .p-company__message {
        padding: 2rem 1.8rem;
    }

    .p-company__access-header {
        margin-bottom: 3.5rem;
    }
}