.officeGroupWrapper {
    display: grid;
    row-gap: 80px;
}

@media screen and (max-width: 1080px) {
    .officeGroupWrapper {
        row-gap: 40px;
    }
}

.officeGroup {
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.3s, opacity 0.3s;
}

.officeGroup.is-active {
    opacity: 1;
    transform: translateY(0);
}

.officeGroup__title {
    align-items: center;
    color: #6dc5ca;
    display: flex;
    font-size: 24px;
    font-weight: 700;
    height: 243px;
    justify-content: center;
    position: relative;
    width: 280px;
}

.officeGroup__title::before {
    background: rgba(109, 197, 202, 0.1);
    clip-path: polygon(25% 0%, 74% 0, 100% 51%, 75% 100%, 25% 100%, 0 50%);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 280px;
}

.officeGroup__title.is-kanto {
    color: var(--c-primary);
}

.officeGroup__title.is-kanto::before {
    background: rgba(27, 47, 154, 0.1);
}

.officeGroup__area {
    column-gap: calc(8px * 5);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-left: calc(8px * 15);
    margin-top: calc(-8px * 6);
    position: relative;
    row-gap: calc(8px * 10);
}

.officeGroup__kyushu::after {
    background: #d9d9d9;
    bottom: calc(8px * 5);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 50%;
    width: 100%;
}

.officeGroup__item {
    position: relative;
}

.officeGroup__item:not(:last-child):after {
    border-right: 1px dashed #d9d9d9;
    content: "";
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
}

.officeGroup__item:nth-of-type(3)::after,
.officeGroup__item:nth-of-type(5)::after {
    display: none;
}

.officeGroup__item--title {
    font-size: 18px;
    font-weight: 700;
}

.officeGroup__item--map {
    align-items: center;
    column-gap: 6px;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    margin-top: calc(8px * 2);
}

@media (any-hover: hover) {
    .officeGroup__item--map a {
        color: var(--c-link);
        text-decoration: underline;
    }
}

.officeGroup__item--map::before {
    content: url("../../images/common/icon-location.svg");
    height: 16px;
    width: 13px;
}

.officeGroup__item--address {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: calc(8px * 2);
}

.officeGroup__item--contact {
    display: grid;
    margin-top: 8px;
    row-gap: 4px;
}

.officeGroup__item--tel,
.officeGroup__item--fax {
    align-items: center;
    column-gap: 8px;
    display: grid;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 500;
    grid-template-columns: auto auto auto;
    justify-content: start;
    letter-spacing: 0.085em;
    line-height: 1;
    margin-top: calc(8px * 1);
}

.officeGroup__item--tel span,
.officeGroup__item--fax span {
    font-size: 13px;
    letter-spacing: 0.06em;
}

.officeGroup__item--tel::before {
    content: url("../../images/common/icon-phone.svg");
    height: 15px;
    width: 15px;
}

.officeGroup__item--fax::before {
    content: url("../../images/common/icon-phone.svg");
    height: 15px;
    width: 15px;
}

@media screen and (max-width: 1080px) {
    .officeGroup {
        margin-top: calc(8px * 6);
    }

    .officeGroup__title {
        font-size: 18px;
        height: 120px;
        width: 140px;
    }

    .officeGroup__title::before {
        width: 140px;
    }

    .officeGroup__area {
        column-gap: 16px;
        grid-template-columns: 1fr 1fr;
        margin-left: calc(8px * 0);
        margin-top: calc(8px * 4);
        row-gap: calc(8px * 5);
    }

    .officeGroup__kyushu::after {
        display: none;
    }

    .officeGroup__item::after {
        display: none;
    }

    .officeGroup__item {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        position: relative;
        row-gap: 0;
    }

    .officeGroup__item--title {
        font-size: 17px;
        line-height: 1.5;
    }

    .officeGroup__item--map {
        font-size: 15px;
    }

    .officeGroup__item--address {
        font-size: 15px;
    }

    .officeGroup__item--tel,
    .officeGroup__item--fax {
        column-gap: 4px;
        font-family: "Montserrat", sans-serif;
        font-size: 17px;
        font-weight: 500;
        margin-top: calc(8px * 1);
    }

    .officeGroup__item--tel span,
    .officeGroup__item--fax span {
        font-size: 15px;
    }
}

@media screen and (max-width: 767px) {
    .officeGroup__item--tel span,
    .officeGroup__item--fax span {
        display: none;
        margin-left: 0;
        margin-right: 8px;
    }

    .officeGroup__item--tel,
    .officeGroup__item--fax {
        display: flex;
        flex-wrap: wrap;
        font-size: 14px;
        row-gap: 6px;
    }
}
