.company_data {
    background: #e60012;
    width: 100%;
    padding: 8% 0;
    position: relative;
}
@media screen and (min-width: 768px) {
    .company_data {
        min-height: 540px;
    }
}
.company_data::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
     background-image: url(../img/office/office_honsya.jpg);
 background-repeat: no-repeat;
 background-size:contain;
    background-position: top right;
    opacity: 18%;
}

.company_data.honsya::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
     background-image: url(../img/office/office_honsya.jpg);
 background-repeat: no-repeat;
 background-size:contain;
    background-position: top right;
    opacity: 18%;
}
.company_data.higashisumiyoshi::after {
     background-image: url(../img/office/higashisumiyoshi/higashisumiyoshi_photo.jpg);
    opacity: 14%;
}
.company_data.katano::after {
     background-image: url(../img/office/katano/katano_photo.jpg);
    opacity: 14%;
}
.company_data.izumi::after {
     background-image: url(../img/office/izumi/izumi_photo.jpg);
    opacity: 14%;
}
.company_data.ibaraki::after {
     background-image: url(../img/office/ibaraki/ibaraki_photo.jpg);
    opacity: 14%;
}
.company_data.takarazuka::after {
     background-image: url(../img/office/takarazuka/takarazuka_photo.jpg);
    opacity: 14%;
}
.company_data.kakogawa::after {
     background-image: url(../img/office/kakogawa/kakogawa_photo.jpg);
    opacity: 14%;
}
.company_data.nara::after {
     background-image: url(../img/office/nara/nara_photo.jpg);
    opacity: 14%;
}
.company_data.omihachiman::after {
     background-image: url(../img/office/omihachiman/omihachiman_photo.jpg);
    opacity: 14%;
}
.company_data.construct::after {
     background-image: url(../img/office/construct/image_co.jpg);
    opacity: 14%;
}
.company_data.environment::after {
     background-image: url(../img/office/environment/image_envi.jpg);
    opacity: 14%;
}


.company_data_in {
    width: 66%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding-left: 12%;
}


.company_data_in .office_data {
    width: 48%;
    color: #fff;
}

.company_data_in .office_image {
    width: 48%;
    overflow: hidden;
}

.company_data_in .office_data h3 {
    font-size: clamp(34px, 4.8vw, 40px);
    margin-bottom: 10px;
    line-height: 100%;
}

.company_data_in .office_data ul {
    margin: 0;
    padding: 0;
}
.company_data_in .office_data ul li {
    font-size: min(2.8vw, 15px);
    border-bottom: 1px solid #fff;
    padding: 10px 0;
}

.company_data_in .office_data ul li:last-child {
    border-bottom: none;
}
.company_data_in .office_data ul.construct li:last-child {
    border-bottom: 1px solid #fff;
}

@media screen and (max-width: 1000px) {
    .company_data_in {
        padding-left: 0;
        width: 90%;
    }
}

@media screen and (max-width: 767px) {
    .company_data_in {
        flex-direction: column;
        padding-left: 0;
    }

    .company_data_in .office_data {
        width: 100%;
    }

    .company_data_in .office_image {
        width: 100%;
    }

    .company_data_in .office_data h3 {
        font-size: clamp(24px, 4.8vw, 30px);
        line-height: 100%;
    }

    .company_data_in .office_data ul {
        margin: 0;
        padding: 20px 0 40px;
    }

    .company_data_in .office_data ul li {
        font-size: clamp(13px, 3.5vw, 15px);
        border-bottom: 1px solid #fff;
    }

    .company_data_in .office_data ul li:last-child {
        border-bottom: none;
    }
}


.office_map {
    width: 100%;
    height: 75vh;
    min-height: 570px;
    margin-bottom: 50px;
    position: relative;
}

.office_map .map_cara {
    width: clamp(200px, 20%, 240px);
    position: absolute;
    top: auto;
    bottom: -12%;
    left: 50%;
    transform: translate(-50%, 0%);
}

.office_map .map_cara .cara_fukidashi {
    width: 100%;
    transform-origin: center bottom;
    animation: fukidashi_yurayura 2s linear infinite;
}

@keyframes fukidashi_yurayura {
  0% , 100%{
      transform: rotate(10deg);
  }
  50%{
      transform: rotate(-10deg);
  }
}



@media screen and (max-width: 767px) {
    .office_map .map_cara {
        width: clamp(160px, 30%, 200px);
    }
}

.office_map iframe {
    width: 100%;
    height: 100%;
}

.office_map iframe {
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
}

/* Office Navigation */
.office_nav {
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    padding: 20px 30px 20px 80px;
    overflow: hidden;
    z-index: 3;
}

.office_nav ul li {
    margin-bottom: 15px;
    position: relative;
}

.office_nav ul li a {
    font-size: min(2.8vw, 15px);
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 0 5px;
    z-index: 2;
    transition: all .6s ease;
}

.office_nav ul li.current a {
    color: #e60012;
    font-size: 120%;
    font-weight: 700;
}

.office_nav ul li.current::after {
    content: "";
    width: 80%;
    height: 2px;
    background: #e60012;
    position: absolute;
    right: 0;
    left: 50%;
    top: 49%;
    z-index: 1;
}

.office_nav ul li a:hover {
    color: #e60012;
}

.office_nav ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #e60012;
    position: absolute;
    right: 0;
    left: 50%;
    top: 49%;
    z-index: 1;
    transition: all .6s ease;
}

.office_nav ul li:hover::after {
    width: 80%;
}

/* Mobile Navigation */
.office_nav_mobile {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: -9999px;
}

@media screen and (max-width: 1000px) {
    .office_nav {
        border-radius: 20px;
        position: relative;
        left: auto;
        top: auto;
        padding: 0;
        margin: 0 auto 30px;
        width: 90%;
        display: block;
    }

    .office_nav ul {
        display: none;
    }

    .office_nav_mobile {
        display: block;
        padding: 20px 40px;
        visibility: visible;
        opacity: 1;
        position: relative;
        left: 0;
    }

    #nav_slider.slick-slider {
        position: relative;
        padding: 0 40px;
    }

    #nav_slider.slick-slider .slick-list {
        overflow: hidden;
        padding: 0 !important;
    }

    #nav_slider.slick-slider .slick-list::before {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
        right: 0;
        height: 1px;
        background: #000;
    }

    #nav_slider.slick-slider .nav_item {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        padding-bottom: 25px;
        width: 33.333%;
        position: relative;
    }

    #nav_slider.slick-slider .nav_item::after {
        background: #333;
        border-radius: 50%;
        bottom: 0;
        content: "";
        display: block;
        height: 16px;
        left: 50%;
        margin-top: 0;
        position: absolute;
        transform: translate(-50%, 0);
        width: 16px;
    }

    #nav_slider.slick-slider .nav_item.current::after {
        background: #e60012;
        width: 16px;
        height: 16px;
    }

    #nav_slider.slick-slider .office_name {
        color: #333;
        display: flex;
        align-items: center;
        font-size: clamp(12px, 2.8cqi, 16px);
        font-weight: bold;
        justify-content: center;
        line-height: 1.4;
        min-height: 2.8em;
        text-align: center;
    }

    #nav_slider.slick-slider .nav_item.current .office_name {
        color: #e60012;
    }

    .office_nav_mobile .slick-prev,
    .office_nav_mobile .slick-next {
        width: 30px;
        height: 30px;
        margin-top: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .office_nav_mobile .slick-prev:before,
    .office_nav_mobile .slick-next:before {
        color: #333;
        font-size: 30px;
    }

    .office_nav_mobile .slick-prev {
        left: 0px;
    }

    .office_nav_mobile .slick-next {
        right: 0px;
    }
}

@media screen and (max-width: 575px) {
    .office_nav_mobile {
        padding: 20px;
    }
    #nav_slider.slick-slider {
        padding: 0 30px;
    }
    .office_nav_mobile .slick-prev:before,
    .office_nav_mobile .slick-next:before {
        font-size: 24px;
    }
}

.staff_wrapp {
    width: 100%;
    padding: 80px 0 120px;
    backface-visibility: #fff;
}

.staff_wrapp h3 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 1.837rem + 0.82vw, 2.5rem);
    line-height: 140%;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
    .staff_wrapp h3 {
        line-height: 120%;
    }
}

.staff_wrapp h3 .jp {
    font-size: clamp(0.875rem, 0.793rem + 0.41vw, 1.125rem);
    position: relative;
    display: block;
}

.staff_wrapp .staff_in {
    margin-inline: auto;
    max-width: 1500px;
    width: 100%;
    @media screen and (min-width: 768px) {
        width: 90%;
    }
}

.staff_cards.swiper {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
    @media screen and (min-width: 768px) {
        
    }
}

/* スタッフ紹介カード */
.staff_cards .swiper-slide {
    height: auto;
    width: 100%;
}

.staff_cards .swiper-pagination {
    position: absolute;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    z-index: 10;
}

.staff_cards .swiper-pagination-bullet-active {
    background-color: #666;
}

.staff_cards .swiper-button-prev,
.staff_cards .swiper-button-next {
    color: #333;
    top: calc(50% - 20px); /* swiper paddingの高さの半分 */
    width: calc(var(--swiper-navigation-size) / 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
}

@media screen and (min-width: 768px) {
    .staff_cards.swiper {
        overflow: visible;
        padding-bottom: 0;
    }

    /* 工事部のみアイテムが2枚なので中央ぞろえにするための措置 */
    .staff_cards.staff_cards--construct.swiper {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 20px;
    }
    
    .staff_cards .swiper-pagination,
    .staff_cards .swiper-button-prev,
    .staff_cards .swiper-button-next {
        display: none;
    }
    
    .staff_cards .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        transform: none !important;
        width: 100% !important;
    }

    /* 工事部のみアイテムが2枚なので中央ぞろえにするための措置 */
    /* アイテムが2枚の時の想定のみ、3枚の時が出てきたらgrid-columnを6等分にするなどして対応 */
    .staff_cards.staff_cards--construct .swiper-wrapper {
        grid-template-columns: subgrid;
        grid-column: 2 / 4;
    }
    
    .staff_cards .swiper-slide {
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }

}

.staff_card {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    container-type: inline-size;
    container-name: staff-card;
    @media screen and (min-width: 768px) {
        padding: 30px 20px;
    }
    @media screen and (min-width: 1200px) {
        padding: 40px 20px;
    }
}

.staff_card--1 {
    background-color: #FF5C5B;
}

.staff_card--2 {
    background-color: #F4AF17;
}

.staff_card--3 {
    background-color: #66AED9;
}

.staff_card--4 {
    background-color: #AED660;
}

.staff_card--5 {
    background-color: #F4AF17;
}

.staff_card--6 {
    background-color: #66AED9;
}

.staff_card--7 {
    background-color: #AED660;
}

.staff_card--8 {
    background-color: #FF5C5B;
} 

.staff_card--9 {
    background-color: #AED660;
}

.staff_card--10 {
    background-color: #FF5C5B;
}

.staff_card--11 {
    background-color: #F4AF17;
}

.staff_card_image {
    aspect-ratio: 260/278;
    overflow: hidden;
    filter: grayscale(100%);
    margin-bottom: 10px;
    margin-inline: auto;
    max-width: 260px;
    transition: all 1.4s ease-out;
    transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
}

.staff_card--1 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 91%, 50% 100%);
}

.staff_card--2 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 50%, 50% 50%, 0 50%, 50% 50%);
}

.staff_card--3 .staff_card_image {
       clip-path: polygon(50% 10%, 50% 50%, 50% 50%, 50% 100%, 50% 50%);
}

.staff_card--4 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 50%, 50% 50%, 0 50%, 50% 50%);
}

.staff_card--5 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 50%, 50% 50%, 0 50%, 50% 50%);
}

.staff_card--6 .staff_card_image {
       clip-path: polygon(50% 10%, 50% 50%, 50% 50%, 50% 100%, 50% 50%);
}

.staff_card--7 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 50%, 50% 50%, 0 50%, 50% 50%);
}

.staff_card--8 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 91%, 50% 100%);
} 

.staff_card--9 .staff_card_image {
        clip-path: polygon(50% 0, 50% 9%, 50% 100%, 50% 100%, 50% 50%);
}

.staff_card--10 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 50%, 50% 50%, 0 50%, 50% 50%);
}

.staff_card--11 .staff_card_image {
    clip-path: polygon(50% 0, 50% 50%, 50% 91%, 50% 100%);
}

/***ON**/
@media screen and (min-width:768px) {
.staff_card--1.on .staff_card_image {
    clip-path: polygon(17% 0, 100% 22%, 94% 91%, 0% 100%);
}

.staff_card--2.on .staff_card_image {
    clip-path: polygon(92% 0, 83% 42%, 100% 93%, 25% 100%, 0 64%, 12% 4%);
}

.staff_card--3.on .staff_card_image {
    clip-path: polygon(17% 0, 95% 9%, 97% 80%, 22% 100%, 0 42%);
}

.staff_card--4.on .staff_card_image {
    clip-path: polygon(94% 6%, 87% 42%, 100% 94%, 0 100%, 9% 61%, 0 0);
}

.staff_card--5.on .staff_card_image {
    clip-path: polygon(92% 0, 83% 42%, 100% 93%, 25% 100%, 0 64%, 12% 4%);
}

.staff_card--6.on .staff_card_image {
    clip-path: polygon(17% 0, 95% 9%, 97% 80%, 22% 100%, 0 42%);
}

.staff_card--7.on .staff_card_image {
    clip-path: polygon(94% 6%, 87% 42%, 100% 94%, 0 100%, 9% 61%, 0 0);
}

.staff_card--8.on .staff_card_image {
    clip-path: polygon(17% 0, 100% 22%, 94% 91%, 0% 100%);
} 

.staff_card--9.on .staff_card_image {
    clip-path: polygon(17% 0, 95% 9%, 97% 80%, 22% 100%, 0 42%);
}

.staff_card--10.on .staff_card_image {
    clip-path: polygon(94% 6%, 87% 42%, 100% 94%, 0 100%, 9% 61%, 0 0);
}

.staff_card--11.on .staff_card_image {
    clip-path: polygon(17% 0, 100% 22%, 94% 91%, 0% 100%);
}
}

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

.staff_card--1.swiper-slide-active .staff_card_image {
    clip-path: polygon(17% 0, 100% 22%, 94% 91%, 0% 100%);
}

.staff_card--2.swiper-slide-active .staff_card_image {
    clip-path: polygon(92% 0, 83% 42%, 100% 93%, 25% 100%, 0 64%, 12% 4%);
}

.staff_card--3.swiper-slide-active .staff_card_image {
    clip-path: polygon(17% 0, 95% 9%, 97% 80%, 22% 100%, 0 42%);
}

.staff_card--4.swiper-slide-active .staff_card_image {
    clip-path: polygon(94% 6%, 87% 42%, 100% 94%, 0 100%, 9% 61%, 0 0);
}

.staff_card--5.swiper-slide-active .staff_card_image {
    clip-path: polygon(92% 0, 83% 42%, 100% 93%, 25% 100%, 0 64%, 12% 4%);
}

.staff_card--6.swiper-slide-active .staff_card_image {
    clip-path: polygon(17% 0, 95% 9%, 97% 80%, 22% 100%, 0 42%);
}

.staff_card--7.swiper-slide-active .staff_card_image {
    clip-path: polygon(94% 6%, 87% 42%, 100% 94%, 0 100%, 9% 61%, 0 0);
}

.staff_card--8.swiper-slide-active .staff_card_image {
    clip-path: polygon(17% 0, 100% 22%, 94% 91%, 0% 100%);
} 

.staff_card--9.swiper-slide-active .staff_card_image {
    clip-path: polygon(17% 0, 95% 9%, 97% 80%, 22% 100%, 0 42%);
}

.staff_card--10.swiper-slide-active .staff_card_image {
    clip-path: polygon(94% 6%, 87% 42%, 100% 94%, 0 100%, 9% 61%, 0 0);
}

.staff_card--11.swiper-slide-active .staff_card_image {
    clip-path: polygon(17% 0, 100% 22%, 94% 91%, 0% 100%);
} 
    
}


.staff_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff_card_in {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.staff_card_name_en {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: min(2.5rem, 14cqi);
    line-height: 1.2;
    margin-bottom: 5px;
}

.staff_card_status {
    font-size: clamp(10px, 6cqi, .875rem);
    line-height: 1.4;
    margin-bottom: 4px;
}

.staff_card_name_ja {
    font-size: clamp(.8125rem, 7cqi, 1.125rem);
    line-height: 1.4;
}

.company_data_mobile {
    display: none;
}

@media screen and (max-width: 1000px) {
    .company_data_mobile {
        display: block;
        width: 100%;
        position: relative;
    }
}
