/* 共通css */
section{
    padding: 0;
}
.company{
    display: block;
}
.company-inner{
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    box-sizing: border-box;
}
.company-mv{
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}
.leaders .company-mv{
    background-image: url('../img/company/leader-mv.webp');
}
.philosophy .company-mv{
    background-image: url('../img/company/philosophy-mv.webp');
}
.outline .company-mv{
    background-image: url('../img/company/outline-mv.webp');
}
.office .company-mv{
    background-image: url('../img/company/office-mv.webp');
}
.group-company .company-mv{
    background-image: url('../img/company/group-company-mv.webp');
}
@media screen and (max-width: 768px) {
    .philosophy .company-mv{
        background-position: 60% 50%;
    }
}
    
.wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-9d6595d7.wp-block-columns-is-layout-flex {
    display: flex;
}
@media screen and (max-width: 768px) {
    .wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-9d6595d7.wp-block-columns-is-layout-flex {
        display: block;
    }
}
.company-mv-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    height: 160px;
    padding: 0 120px;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 24px;
}
.company-mv-title h1{
    color: #000;
    font-family: "Noto Sans JP";
    font-size: clamp(2rem, 1.757rem + 1.04vw, 3rem);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.company-con{
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 0 160px;
}
.company-con-title{
    text-align: left;
    margin-bottom: 80px;
}
.company-con-title h2{
    color: #E83A5A;
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}
.company-con-title span{
    color: #333;
    /* PC/NotoSansJP_H3 */
    font-family: "Noto Sans JP";
    font-size: 20px;
}



/* ===== leaders ===== */
#leader1{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.leaders-layout{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 80px;
}
.leaders-item-text{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.leaders-item-text::after{
    content: '';
    width: clamp(2rem, 1.575rem + 1.81vw, 3.75rem);
    aspect-ratio: 1/1;
    background-image: url('../img/company/leader-plus.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.leaders-item-text h3{
    color:#333;
    /* PC/NotoSansJP_H2 */
    font-family: "Noto Sans JP";
    font-size: clamp(1.5rem, 1.379rem + 0.52vw, 2rem);
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
}
.leaders-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 9990;
    pointer-events: none;
}
.leaders-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.leaders-modals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9991;
}
.leaders-modals:has(.is-active){
    background: rgba(0, 0, 0, 0.6);
}
.leader-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: min(760px, 92%);
    max-width: 95%;
    box-sizing: border-box;
    max-height: 80vh;
    overflow: visible;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
}
.leader-modal-content{
    max-height: calc(80vh - 136px);
    overflow-y: auto;
    padding-right: 8px;
    padding: 56px 80px 80px;
}
.leader-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.leader-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.leader-modal h3 {
    font-size: 22px;
    margin: 24px 0 ;
}
.leader-modal-body {
    font-size: 16px;
    line-height: 1.8;
}
.leaders-ceo-item{
    cursor: pointer;
}
.leaders-ceo-item:hover{
    transform: translateY(-20px);
    transition: transform 0.6s ease;
}
.leaders-item{
    cursor: pointer;
}
.leaders-item:hover{
    transform: translateY(-20px);
    transition: transform 0.6s ease;
}
/* ===== philosophy ===== */
.philosophy-item{
    display: flex;
    justify-content: space-between;
    align-items: start;
}
.philosophy-text{
    width: 60%;
    padding-bottom: 300px;
}
.philosophy-text h3{
    color: #333;
    font-family: "Noto Sans JP";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
    margin-bottom: 24px;
}
.philosophy-text p{
    font-size: 16px;
    line-height: 1.8;
}

.philosophy-img{
    width: 40%;
    position: relative;
    transform: translateY(20%);
}
.philosophy-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.philosophy-mission{
    position: relative;
    display: flex;
    justify-content: left;
    align-items: start;
    gap: 24px;
    border-radius: 16px;
    background: #F6F6F6;
    padding: 24px 40px 40px 40px;
}
.philosophy-mission h3{
    color:#C1C1C1;
    /* PC/Montserrat_H3 */
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
    margin-bottom: 24px;
}
.mission-text{
    width: 70%;
}
.mission-text h4{
    color: #333;
    /* PC/NotoSansJP_H3 */
    font-family: "Noto Sans JP";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
    margin-bottom: 24px;
}
.mission-text p{
    color: #333;
    /* PC/NotoSansJP_p */
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 170%; /* 27.2px */
}
.mission-img{
    width: 28%;
    max-width: 180px;
    aspect-ratio: 180/301;
    position: absolute;
    right: 40px;
    bottom: 0;
}
.mission-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* office slider */
.office-slider{
    width: 100vw;
    max-width: none;
    margin: 24px 0 64px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.office-slider-track{
    display: flex;
    align-items: center;
    gap: 0;
    transition: transform 0.8s ease;
}

.office-slide-item{
    position: relative;
    flex: 0 0 80vw;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.office-absolute{
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 24px;
    right: 24px;
    width: fit-content;
    height: 50px;
    padding: 0 24px;
    border-radius: 25px;
    background: linear-gradient(90deg, #E83A5A 0%, #F4519F 100%);
    z-index: 1;
}
.office-slide-item.is-active .office-absolute{
    display: flex;
    opacity: 1;
    visibility: visible;
}
.office-absolute span{
    color: #FFF;
    /* PC/NotoSansJP_H3 */
    font-family: "Noto Sans JP";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
}
.office-slide-item img{
    width: 100%;
    object-fit: cover;
    display: block;
}

.office-slide-item.is-active{
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.office-dots{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.office-dot{
    width: 8px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #D0D7DE;
    transition: all 0.2s ease;
}

.office-dot.is-active{
    width: 16px;
    background: #E83A5A;
}
.office-map > .wp-block-group{
    padding: 16px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
    margin-top: 24px;
}
.office-map h3{
    color: #333;
    /* PC/NotoSansJP_H3 */
    font-family: "Noto Sans JP";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
    border-bottom: 3px solid #333;
    padding-bottom: 8px;
    margin-bottom: 24px;
}
.office-map iframe {
    height: 180px;
    width: 100%;
    border: none;
}
.outline-item .wp-block-separator{
    margin: 40px 0;
    color: #E4E4E4;
    border-top: 1px solid;
}
.outline.company{
    overflow: hidden;
}
.outline .company-con{
    position: relative;
}
.outline .company-con::before{
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    transform: translateX(-100%);
    width: 270px;
    aspect-ratio: 270/1107;
    background-image: url('../img/company/outline1.webp');
    background-size: cover;
    background-position: center;
}

.outline .company-con::after{
    content: '';
    position: absolute;
    bottom: 0;
    right: -5%;
    transform: translateX(100%);
    width: 270px;
    aspect-ratio: 270/1107;
    background-image: url('../img/company/outline2.webp');
    background-size: cover;
    background-position: center;
}
.service-item a::before{
    background: none ;
}

.group-company .company-con{
    padding: 60px 0 160px !important;
}
@media screen and (max-width: 1024px){
    .office-slide-item{ flex: 0 0 80vw; }
    .office-slide-item img{ height: 220px; }
}

@media screen and (max-width: 768px){
    .office-slide-item{ flex: 0 0 80vw; }
    .office-slide-item img{ height: 200px; }
}

.sp-only{
    display: none;
}

@media screen and (max-width: 940px) {
    .sp-only{
        display: block;
    }
    .company-mv{
        height: 300px;
    }
    .company-mv-title{
        padding: 0 40px;
        height: 100px;
    }
    .company-mv-title h1{
        white-space: nowrap;
    }
    .company-con{
        width: 90%;
    }
    .company-con-title{
        margin-bottom: 40px;
    }


    .leaders-layout{
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 40px;
    }
    .leaders-item-text h3{
        font-size: 18px;
    }
    .leaders-item-text::after{
        width: 30px;
    }
    .leader-modal-content{
        max-height: calc(80vh - 120px);
        padding: 56px 32px 32px;
    }
    .philosophy-item{
        flex-direction: column;
        gap: 40px;
    }
    .philosophy-text{
        width: 100%;
        padding-bottom: 0;
    }
    .philosophy-text h3{
        font-size: 28px;
    }
    .philosophy-img{
        width: 100%;
        transform: translateY(0);
    }
    .philosophy-mission{
        flex-direction: column;
        gap: 24px;
        padding-bottom: 0;
        margin-top: 80px;
        padding: 40px 24px 0 24px;
    }
    .mission-text{
        width: 100%;
    }
    .mission-img{
        position: static;
        width: 40%;
        margin:0 auto;
    }
    .office-absolute{
        top: 16px;
        right: 16px;
        padding: 0 16px;
        height: 32px;
    }
    .office-absolute span{
        font-size: 14px;
    }

    .service-list{
        gap: 40px;
    }
}
