/* アンカーリスト */
.archive_cat_list--anchor {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.ui_btn--anchor {
    position: relative;
    background: #f2f2f2;
    border-radius: 4px;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    color: var(--bland);
    width: 100%;
    height: 100%;
}

.ui_btn--anchor::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #4abcf2;
    border-right: 2px solid #4abcf2;
    transform: translateY(-65%) rotate(135deg);
    transition: 0.4s;
}

@media only screen and (min-width: 0) and (max-width: 767px) { /*SP*/
    .archive_cat_list--anchor {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 50px;
    }
    .ui_btn--anchor {
        padding: 15px 10px;
        height: 100%;
        font-size: 0.938rem;
    }

    .ui_btn--anchor::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 15px;
        width: 5px;
        height: 5px;
        border-top: 2px solid #4abcf2;
        border-right: 2px solid #4abcf2;
        transform: translateY(-65%) rotate(135deg);
        transition: 0.4s;
    }
}

.ttl--lv2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bland);
    text-align: center;
}

.office_list {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    column-gap: 30px;
}

@media only screen and (min-width: 0) and (max-width: 767px) { /*SP*/
    .office_list {
        grid-template-columns: repeat(1, 1fr);
    }
}

.office_list_item:first-child {
    border-top: solid 1px #dbdbdb;
}

@media only screen and (min-width: 768px) { /*pc*/
    .office_list_item:nth-child(-n+2) {
        border-top: solid 1px #dbdbdb;
    }
}

.office_list_item {
    border-bottom: solid 1px #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em;
}

.office_list_item .ui_font_b {
    font-size: 1.125rem;
}

.office_list_item p {
    font-size: 1rem;
}

.office_list_item .ui_btn {
    font-size: 0.875rem;
    padding: 3px 30px;
}

@media only screen and (min-width: 0) and (max-width: 767px) { /*SP*/
    .office_list_item .ui_btn {
        font-size: 0.688rem;
        padding: 5px 15px;
    }
}

/* 詳細 */

@media screen and (min-width:768px) { /* PC */
    .sp {
        display: none !important;
    }
}

@media only screen and (min-width: 0) and (max-width: 767px) { /* SP */
    .pc {
        display: none !important;
    }
}

.container {
    display: flex;
    margin-bottom: 135px;
    gap: 50px;
}

@media only screen and (min-width: 0) and (max-width: 767px) { /* SP */
    .container {
        flex-direction: column;
    }
}

.container .main {
    flex: 3;
}

.office_nav {
    flex: 1;
    padding-right: 0.035rem;
}

.office_nav_title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.office_nav_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.office_nav_btn {
    background-color: var(--bland);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 7px 15px;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    text-align: left;
}

.office_nav_btn:hover {
    opacity: .6;
}

.office_nav_item {
    margin-bottom: 10px;
}
.office_nav_btn .icon {
    font-weight: bold;
    transition: transform 0.2s;
}

.office_nav_btn .toggle-icon::before,
.office_nav_btn .toggle-icon::after {
    background-color: white;
}

.office_nav_item.open .toggle-icon::after,
.office_nav_item.current .toggle-icon::after {
    transform: translate(-50%, -50%) scaleX(0);
}

.office_sublist {
    background-color: #f2fafe;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
.office_sublist li {
    padding: 0 1em;
}
.office_sublist li.current {
    background-color: #d4f1ff;
}
.office_sublist li a {
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: solid 1px #dbdbdb;
    font-size: 0.95rem;
    padding: 13px 9px;
    display: block;
    position: relative;
}
.office_sublist li a .ico.ico-arrow-r {
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
}
.office_sublist li a .ico.ico-arrow-r::after {
    content: "";
    font-size: smaller;
    display: block;
    margin-left: 10px;
    border-top: 0.12em solid var(--bland);
    border-right: 0.12em solid var(--bland);
    width: 0.4em;
    height: 0.4em;
    transform: rotate(45deg);
}

.office_nav_item.open .office_sublist {
    display: block;
}

.office_sec {
    margin-bottom: 60px;
}

.office_sec_p {
    font-size: 0.875rem;
}

.page_category_title {
    font-weight: bold;
    font-size: 2rem;
    color: var(--bland);
    border-bottom: solid 1px #e6e6e6;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.page_title {
    font-size: 1.625rem;
    margin-bottom: 0.5em;
}

.office_sec_title {
    color: var(--bland);
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.office_info {
    display: flex;
    gap: 40px;
    margin-bottom: 52px;
}

.office_info_address {
    font-size: 1.125rem;
    margin-bottom: 1em;
}

.office_info_tel {
    position: relative;
    font-size: 1.75rem;
    font-weight: bold;
    color: #1a1a1a;
    padding-left: 1em;
    text-decoration: none;
}

.office_info_tel::before {
    content: "";
    width: 25px;
    height: 29px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(../img/icon/icon_tel.svg) no-repeat center center / contain;
}
.office_info_img img {
    display: block;
    max-width: 300px;
}
@media only screen and (min-width: 768px) { /*pc*/
    .office_info_tel {
        pointer-events: none;
    }
}

@media only screen and (min-width: 0) and (max-width: 767px) { /* SP */
    .office_sec {
        margin-bottom: 50px;
        padding-bottom: 50px;
    }
    .page_category_title {
        font-size: 1.875rem;
    }

    .page_title {
        font-size: 1.438rem;
    }
    .office_sec_title {
        font-size: 1.25rem;
    }
    .office_info {
        flex-direction: column;
    }
    .office_info_address {
        font-size: 1rem;
    }
    .office_info_img img {
        max-width: unset;
    }
}


.office_info_map iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 7/4;
}

.office_btn_mail {
    color: white;
    display: inline-flex;
    font-size: 0.875rem;
    position: relative;
    padding: 1em 17px 1em 45px;
    line-height: 1;
    text-decoration: none;
    border-radius: 32px;
    background: linear-gradient(-40deg, rgba(17, 139, 252, 0.85) 0%, rgba(78, 191, 242, 0.85) 90%);
}

.office_btn_mail::before {
    content: "";
    position: absolute;
    left: 15px;
    background: url(../img/business/common/ico_mail.svg) no-repeat center / cover;
    height: 14px;
    width: 22px;
}
@media only screen and (min-width: 0) and (max-width: 767px) { /* SP */
    .office_btn_mail {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
    }
    .office_btn_mail::before {
        position: initial;
        margin-right: 0.5em;
    }
}
.office_info_time {
    font-size: 0.875rem;
    margin-bottom: 25px;
}

.office_sec .archive_list {
    margin-bottom: 0;
}

/* モーダル */
.modal-close {
    display: none;
}

@media only screen and (min-width: 0) and (max-width: 767px) {

    /*モーダルを開くボタン*/
    .modal-open {
        border-radius: 2em;
        width: 100%;
        background: var(--bland);
        color: #fff;
        cursor: pointer;
        border: none;
        outline: none;
        display: block;
        text-align: center;
        padding: 1em;
        position: relative;
    }

    .modal-open .toggle-icon {
        position: absolute;
        right: 1em;
        top: 50%;
        transform: translateY(-50%)
    }

    .modal-open .toggle-icon::before,
    .modal-open .toggle-icon::after {
        background-color: white;
    }

    /*モーダル本体の指定 + モーダル外側の背景の指定*/
    .modal-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 50%);
        padding: 10px;
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        box-sizing: border-box;
    }

    /*モーダル本体の擬似要素の指定*/
    .modal-container:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        height: 100%;
    }

    /*モーダル本体に「active」クラス付与した時のスタイル*/
    .modal-container.active {
        opacity: 1;
        visibility: visible;
        z-index: 9999;
    }

    /*モーダル枠の指定*/
    .modal-body {
        position: relative;
        display: inline-block;
        vertical-align: middle;
        max-width: 500px;
        width: 98%;
        height: 500px;
        overflow: scroll;
    }

    /*モーダルを閉じるボタンの指定*/
    .modal-close {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 5px;
        right: 5px;
        width: 60px;
        height: 60px;
        font-size: 40px;
        color: #000;
        cursor: pointer;
    }

    /*モーダル内のコンテンツの指定*/
    .modal-content {
        background: #fff;
        text-align: left;
        padding: 20px;
    }
}