/*==============================================================
Service
==============================================================*/

/*－－－－－－－－－－共通－－－－－－－－－－*/

/*－－－－－－－－－－メインコンテンツ－－－－－－－－－－*/
.service-main {
    padding: 80px 0px;
    background-color: #F5F1FB;
    margin-top: 64px;

    @media (max-width: 991px) {
        padding: 40px 16px;
        margin-top: 0px;
    }
}

.service-main-cont {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0px;

    @media (max-width: 991px) {}
}

.service-main-box {

    @media (max-width: 991px) {}
}

.main-ttl-box {
    position: relative;
}

.jpn-ttl {
    font-size: clamp(1.5rem, 0.5rem + 2.0833vw, 3rem);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.eng-ttl {
    color: #e8d8f27a;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, -1.6667rem + 7.6389vw, 7.5rem);
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

/*－－－－－－－－－－動画－－－－－－－－－－*/
.service-mv {
    margin-top: 64px;
    width: 100%;

    @media (max-width: 991px) {
        margin-top: 32px;
    }
}

.main-txt {
    max-width: 82%;
    margin: 80px auto 0;

    @media (max-width: 991px) {
        max-width: 100%;
        margin: 16px auto 0;
    }
}

.service-mv-box {
    width: 100%;
}

.introduction-txt {
    font-size: clamp(1.125rem, 0.875rem + 0.5208vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.introduction-txt::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 40%;
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(to right, #6A5ACD, #E8D8F2);

    @media (max-width: 991px) {
        height: 8px;
    }
}

.service-mv-img {
    width: 100%;
    display: flex;
    justify-content: center;
}

.service-mv-img img {
    width: 100%;
    max-width: 50%;
    border-radius: 10px;

    @media (max-width: 991px) {
        max-width: 100%;
    }
}



.service-mv-img {
    position: relative;
    width: 100%;
    margin: auto;
}

.service-mv-img img {
    width: 100%;
    display: block;
}

.video-overlay-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.video-overlay-play-btn::before {
    content: "";
    position: absolute;
    left: 39%;
    top: 35%;
    width: 0;
    height: 0;
    border-left: 22px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-overlay-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

/*－－－－－－－－－－流れ－－－－－－－－－－*/
.service-flow {
    padding: 80px 0;

    @media (max-width: 991px) {
        padding: 40px 0;
    }
}

.service-flow-box {
    flex-direction: column;
    gap: 24px;
}

.flow-ttl p {
    font-size: clamp(1.25rem, 0.4167rem + 1.7361vw, 2.5rem);
    font-weight: 600;
}

.service-item {
    align-items: center;
    gap: 24px;
    justify-content: center;

    @media (max-width: 991px) {
        flex-direction: column;
    }
}

.flow-txt-ttl {
    font-size: clamp(1rem, 0.8333rem + 0.3472vw, 1.25rem);
    font-weight: 600;

    @media (max-width: 991px) {
        font-size: 20px;
    }
}

.flow-item {
    flex-direction: column;
    gap: 8px;
}

.flow-icon img {
    @media (max-width: 991px) {
        width: 100%;
        max-width: 70%;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
}


.arrow-icon img {
    width: 100%;
    max-width: 64px;

    @media (max-width: 991px) {
        transform: rotate(90deg);
        width: 64px;
        height: 20px;
    }
}

.flow-content-cont {
    max-width: 1100px;
    margin: 80px auto 0;
    flex-direction: column;
    gap: 40px;
}

.flow-content-box {
    position: relative;
    gap: 64px;
    align-items: center;

    @media (max-width: 991px) {
        flex-direction: column;
        gap: 16px;
    }
}

.flow-content-txt.reverse {
    @media (max-width: 991px) {
        order: 02;
    }
}

.flow-content-number {
    position: absolute;
    top: 50%;
    left: -5%;

    @media (max-width: 991px) {
        top: 82%;
        left: 0%;
    }
}

.flow-content-number-02 {
    position: absolute;
    top: 50%;
    right: -5%;

    @media (max-width: 991px) {
        top: 82%;
        right: 0%;
    }
}

.flow-content-number-02 p,
.flow-content-number p {
    font-weight: 900;
    font-size: clamp(8.75rem, 7.0833rem + 3.4722vw, 11.25rem);
    color: #695acd18;
    line-height: 0;
}

.flow-content-txt {
    flex-direction: column;
    width: 70%;
    gap: 8px;

    @media (max-width: 991px) {
        width: 100%;
    }
}

.flow-content-img {
    flex: 1;

    @media (max-width: 991px) {
        width: 100%;
    }
}

.flow-content-img-wrap {
    position: relative;
    display: inline-block;
    z-index: 0;

    @media (max-width: 991px) {
        width: 100%;
    }
}

.flow-content-img-wrap img {
    border-radius: 5px;
}

.flow-content-img-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #4F4FB4, #BCA4E3);
    z-index: -1;
    transform: translate(-6px, 5px);
    border-radius: 5px;
    display: block;
    pointer-events: none;

    @media (max-width:991px) {
        transform: translate(0, 5px);
    }
}

.flow-content-txt-ttl {
    font-size: clamp(1.25rem, 0.4167rem + 1.7361vw, 2.5rem);
    font-weight: 600;

    @media (max-width:991px) {
        text-align: center;
    }
}

.diagram-cont {
    max-width: 1200px;
    margin: 0 auto;
}

.diagram-ttl p {
    font-size: clamp(1.5rem, 0.8333rem + 1.3889vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 32px;
}

.diagram-box {
    flex-direction: column;
    gap: 40px;
}

.diagram-item {
    flex-direction: column;
    gap: 16px;
}

.diagram-item-txt p {
    font-size: clamp(1.125rem, 0.875rem + 0.5208vw, 1.5rem);
    font-weight: 600;
}

.diagram-item-img {
    padding: 0 24px;

    @media screen and (max-width: 991px) {
        padding: 0;
    }
}



/* ホバーで少し拡大 */
.modal-trigger {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-trigger:hover {
    transform: scale(1.05);
}

/* モーダルスタイル */
#image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#image-modal img {
    max-width: 1000px;
    max-height: 100%;
    box-shadow: 0 0 10px #000;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

#image-modal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-modal.show {
    display: flex;
    opacity: 1;
}

@media screen and (max-width: 991px) {
    .diagram-item-img {
        overflow-x: auto;
    }

    .diagram-item-img::-webkit-scrollbar {
        height: 8px;
    }

    .diagram-item-img::-webkit-scrollbar-track {
        background: #eee;
        border-radius: 4px;
    }

    .diagram-item-img::-webkit-scrollbar-thumb {
        background-color: #aaa;
        border-radius: 4px;
    }

    .diagram-item-img img {
        display: inline-block;
        height: 200px;
        width: auto;
        min-width: 300px;
        margin-right: 16px;
    }
}


/*－－－－－－－－－－施工技術－－－－－－－－－－*/
.service-technology {
    padding: 80px 16px;
    margin-top: 64px;

    @media (max-width: 991px) {
        padding: 40px 16px;
        margin-top: 0px;
    }
}

.service-technology-cont {
    max-width: 1440px;
    margin: 0 auto;

    @media (max-width: 991px) {}
}

.service-technology-box {
    flex-direction: column;
    gap: 40px;

    @media (max-width: 991px) {}
}

.technology-txt {}

.technology-ttl {
    font-size: clamp(1.5rem, 0.5rem + 2.0833vw, 3rem);
    font-weight: 600;
    line-height: 1;
}

.technology-des {
    font-size: clamp(1.125rem, 0.625rem + 1.0417vw, 1.875rem);
    font-weight: 600;
    color: #E8D8F2;
    line-height: 1;
}

.technology-content {
    gap: 64px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    @media (max-width: 991px) {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

.technology-content-item {
    flex: 1;
    flex-direction: column;
    gap: 24px;
}

.technology-img {
    border-radius: 10px;
    overflow: hidden;
}

.technology-main-ttl {
    font-size: clamp(1.25rem, 0.75rem + 1.0417vw, 1.85rem);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.technology-main-ttl::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background: linear-gradient(to bottom, #FF8C00, #FFD700);
}

#land-construction {
    .technology-content {
        gap: 64px;
        display: flex;
        flex-direction: column;
    }

    .technology-img {
        gap: 40px;

        @media (max-width: 991px) {
            flex-direction: column;
            gap: 16px;
        }
    }

    .technology-img img {
        border-radius: 10px;
        overflow: hidden;
    }
}

/*－－－－－－－－－－工事実績－－－－－－－－－－*/
.service {
    .works-main {
        padding: 120px 16px;

        @media (max-width: 991px) {
            padding: 40px 16px;
        }
    }

    .works-main-ttl {
        margin-bottom: 64px;

        @media (max-width: 991px) {
            margin-bottom: 24px;
        }
    }
}


.more-link {
    width: 100%;
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #8A71B2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

.link-button:hover {
    color: #fff;
    background: #020266;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.link-button .link-icon img {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.link-button:hover .link-icon img {
    transform: translateX(3px);
}

.link-button:hover .arrow-icon {
    content: url('assets/img/common/btn-arrow-purple.svg');
}

@media screen and (max-width: 991px) {
    .works-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 16px;
        background-color: #f9f9f9;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    /* スクロールバーのスタイル（Webkit系ブラウザ向け） */
    .works-table-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .works-table-wrapper::-webkit-scrollbar-track {
        background: #eee;
        border-radius: 4px;
    }

    .works-table-wrapper::-webkit-scrollbar-thumb {
        background-color: #bbb;
        border-radius: 4px;
    }

    .works-table {
        min-width: 700px;
        border-collapse: collapse;
    }

    .works-table th,
    .works-table td {
        padding: 12px 16px;
        border: 1px solid #ddd;
        white-space: nowrap;
    }

    .works-table thead th {
        font-weight: bold;
    }
}

/*－－－－－－－－－－ほかの事業を見る－－－－－－－－－－*/
.other-service {
    padding: 40px 16px 0;
    margin-top: 64px;

    @media (max-width: 991px) {
        padding: 40px 16px;
        margin-top: 0px;
    }
}

.other-service-cont {
    max-width: 1200px;
    margin: 0 auto;

    @media (max-width: 991px) {}
}

.other-service-box {
    gap: 80px;

    @media (max-width: 991px) {
        flex-direction: column;
        gap: 16px;
    }
}

.other-service-ttl {
    margin-bottom: 24px
}

.other-service-ttl p {
    font-size: clamp(1.25rem, 0.75rem + 1.0417vw, 1.85rem);
    font-weight: 600;
}

.other-service-item {
    flex: 1;
    align-items: center;
    background: linear-gradient(135deg, #6A5ACD, #E8D8F2);
    border-radius: 10px;
    overflow: hidden;
}

.other-service-txt {
    width: 100%;
    max-width: 65%;
    text-align: center;
}

.other-service-txt p {
    font-size: 16px;
    font-weight: 600;

    @media (max-width: 991px) {
        font-size: 15px;
    }
}

.other-service-img {
    overflow: hidden;
    flex: 1;
}

.other-service-item {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-service-img img {
    transition: transform 0.3s ease;
}

.other-service-item:hover .other-service-img img {
    transform: scale(1.1);
}

.service-movie {
    margin-top: 24px;

    @media (max-width: 991px) {
        margin-top: 10px;
        justify-content: center;
        display: flex;
    }
}

.movie-link-cont {
    gap: 12px;
}

.movie-link-cont img {
    width: 100%;
    max-width: 30px;
}

#service-movie {
    scroll-margin-top: 100px;
}