@charset "UTF-8";
body {
    background: #fff;
}
.office_wrap {
    padding: 180px 0 205px;
}
.office_lst {
    margin-top: 83px;
    display: flex;
    flex-wrap: wrap;
}
.office_lst li {
    margin-top: 26px;
    margin-right: 25px;
    width: 231px;
    height: 231px;
    overflow: hidden;
}
.office_lst li a {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}
.office_lst li source,
.office_lst li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .4s all;
}
.popup_wrap {
    display: none;
}
.popup_wrap.active {
    display: block;
}
.popup_in {
    height: 100vh;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999999;
}
.popup_bg {
    background: rgba(0, 0, 0, 0.4);
    height: 100vh;
    position: absolute;
    width: 100%;
    z-index: 999999;
}
.popup_cls {
    position: absolute;
    top: -24px;
    right: -24px;
    display: block;
    width: 48px;
    height: 48px;
    z-index: 99;
    padding: 16px;
    cursor: pointer;
    box-sizing: border-box;
}
.popup_cls:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #1a1a1a;
    border-radius: 50%;
    transition: transform .4s;
}
.popup_cls span {
    position: relative;
    margin: 8px 0 0;
    transform: rotate(45deg);
}
.popup_cls span,
.popup_cls span:before,
.popup_cls span:after {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
}
.popup_cls span:before,
.popup_cls span:after {
    position: absolute;
    content: "";
}
.popup_cls span:before {
    top: -12px;
}
.popup_cls span:after {
    top: 12px;
}
.popup_cls span:after {
    transform: translate(0px, -12px) rotate(-90deg);
}
.popup_cls span:before {
    transform: translate(0px, 12px) rotate(-90deg);
}
.popup_main {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 612px;
    box-sizing: border-box;
    z-index: 9999999;
}
.popup_box {
    display: none;
    text-align: center;
    transform: scale(1, 0);
    transform-origin: center;
    animation: headerfadeDown2 .4s cubic-bezier(0.39, 0.58, 0.57, 1) forwards;
}
.popup_box.is-open {
    display: block;
}
@media (min-width: 767px) {
    .office_lst li a:hover source ,
    .office_lst li a:hover img {
        transform: scale(1.1);
    }
    .popup_cls:hover:before {
        transform: scale(1.1429, 1.1429);
    }
}
@media (min-width: 1280px) {
    .office_lst li:nth-child(-n+4) {
        margin-top: 0;
    }
    .office_lst li:nth-child(4n) {
        margin-right: 0;
    }
}
@media screen and (min-width:1112px) and ( max-width:1280px) {
    .c-wrap {
        max-width: 1112px;
        padding: 0 56px;
    }
    .office_lst li:nth-child(-n+4) {
        margin-top: 0;
    }
    .office_lst li:nth-child(4n) {
        margin-right: 0;
    }
}
@media screen and (min-width:767px) and ( max-width:1111px) {
    .office_lst li {
        width: 27vw;
        height: 27vw;
        margin-right: 1.8vw;
    }
    .office_lst li:nth-child(-n+3) {
        margin-top: 0;
    }
    .office_lst li:nth-child(3n) {
        margin-right: 0;
    }
}
@media screen and (min-width:767px) and (max-width: 1024px) {
    .c-wrap {
        max-width: 84.766vw;
    }
}
/*sp*/
@media only screen and (max-width:767px) {
    .office_wrap {
        padding: 108px 0 97px;
    }
    .office_in {
        padding: 0 24px;
    }
    .office_lst {
        margin-top: 65px;
    }
    .office_lst li {
        width: 46.18%;
        height: 40.27vw;
        margin-top: 6.667vw;
        margin-right: 7.6%;
    }
    .office_lst li:nth-child(-n+2) {
        margin-top: 0;
    }
    .office_lst li:nth-child(2n) {
        margin-right: 0;
    }
    .popup_cls {
        top: -20px;
        right: -20px;
        width: 40px;
        height: 40px;
        padding: 14px 12px;
    }
    .popup_cls span {
        margin: 5px 0 0;
    }
    .popup_main {
        width: 78.7%;
        max-width: none;
    }
    .popup_box source,
    .popup_box img {
        width: 100%;
        height: auto;
    }
}
@media only screen and (max-width: 340px) {
}
@keyframes headerfadeDown2 {
    0% {
        opacity: 0;
        transform: scale(0.9, 0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}
