/* --- Layout Colors --- */
:root {
    --primary-blue: #01408C;
    --accent-red: #843B5C;
    --white: #fff;
}

/* --- Reset CSS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@property --gradient-color {
    syntax: '<color>';
    initial-value: var(--accent-red);
    inherits: false;
}
body {    
    /* グラデーション背景 */
    /* background: linear-gradient(270deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb); */
    background: linear-gradient(135deg, var(--primary-blue) , var(--accent-red), var(--primary-blue) , var(--accent-red));
    background-size: 800% 800%;

    /* アニメーションの設定（30秒でループ） */
    animation: sliding-gradient 15s ease infinite;
}
@keyframes sliding-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(188 / 1440 * 100vw);
    @media (max-width: 896px) {
        padding-top: 24vw;
    }
}
.hero-copy {
    position: relative;
    z-index: 2;
    margin: -56px auto 0;
    width: calc(1310/1440*100vw);
    @media (max-width: 896px) {
        margin-top: -24px;
        /* transition-delay: 1s; */
    }
    img{
        width: 100%;
    }
}
.hero-subtext{
    font-size: 24px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: calc(.04/24*1em);
    @media (min-width: 897px) {
        width: max-content;
        margin-top: 82px;
        margin-left: calc(625/1440*100vw);
    }
    @media (max-width: 896px) {
        padding: 32px 5%;
        font-size: 18px;
    }
}

/* --- Concept Sections (Mission/Vision/Value) --- */
.concept {
    padding: 100px 0;
    color: var(--white);
    position: relative;
    @media (max-width: 896px) {
        padding: 60px 0 50px;
    }
}

/* 背景の巨大な透かし文字 */
.bg-text {
}

.concept-inner {
    position: relative;
    z-index: 2;
}

.concept-box {
    position: relative;
    z-index: 2;
    margin-top: -32px;
    @media (max-width: 896px) {
        margin-top: -16px;
    }
    .reveal-item{
        margin-left: calc(60/1440*100vw);
        margin-bottom: 80px;
        @media (max-width: 896px) {
            margin-left: 3%;
            margin-bottom: 16px;
        }
        &.mb0{
            margin-bottom: 0;
        }
    }
}

.concept-title {
    display: inline-block;
    padding: 14px 20px 10px;
    @media (max-width: 896px) {
        padding: 10px 12px 4px;
    }
}

.concept-flex {
    display: flex;
    align-items: flex-start;
}
.concept-flex.reverse {
    flex-direction: row-reverse;
}

.concept-desc {
    font-size: 24px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: calc(.04/100*1em);
    @media (max-width: 896px) {
        padding: 0 3.5% 0 6%;
        font-size: 16px;
    }
}

.mission{
    .reveal-item{
        @media (max-width: 896px) {
            width: 56%;
        }
    }
    .concept-img {
        width: calc(486/1440*100%);
        margin-top: 133px;
        margin-right: 130px;
        @media (max-width: 896px) {
            width: 70%;
            margin-top: 30px;
            margin-right: 0;
        }
    }
}
.vision{
    .reveal-item{
        @media (max-width: 896px) {
            width: 82%;
        }
    }
    .concept-img {
        width: calc(385/1440*100%);
        margin-top: 125px;
        margin-left: 115px;
        @media (max-width: 896px) {
            width: 70%;
            margin-top: 30px;
            margin-left: auto;
        }
    }
}
.value{
    .reveal-item{
        @media (max-width: 896px) {
            width: 80%;
            & + .reveal-item{
                width: 66%;
            }
        }
    }
    .concept-img {
        width: calc(364/1440*100%);
        margin-top: 90px;
        margin-right: 262px;
        @media (max-width: 896px) {
            width: 70%;
            margin-top: 30px;
            margin-right: 0;
        }
    }
}

/* --- Message Banner --- */
.message-banner {
    position: relative;
    background: linear-gradient(90deg, #2A70C6 19%, #E72726 95% );
    padding: 80px 0 90px;
    text-align: center;
    color: #fff;
    transform: translate(-100%,0);
    @media (max-width: 896px) {
        padding: 50px 0 60px;
    }
    &:before{
        content: "";
        position: absolute;
        top: 0;
        right: 10%;
        width: calc(632/1440*100vw);
        height: calc(670/1440*100vw);
        clip-path: polygon(38% 0, 0% 100%, 100% 0);
        background: linear-gradient(90deg, #2A70C6 19%, #E72726 95% );
        transform: scale(0);
        transform-origin: top;
        transition: .4s ease .3s;
        @media (max-width: 896px) {
            width: 60%;
            height: 120%;
        }
    }
    &.is-active{
        transform: translate(0,0);
        &:before{
            transform: scale(1);
        }
        .message-head{
            clip-path: inset(0 0 0 0);
            &:before{
                clip-path: inset(0 0 0 0);
            }
        }
        .message-txt{
            clip-path: inset(0 0 0 0);
        }
        .baseLinkbtn{
            opacity: 1;
            transform: translate(-50%,50%);
        }
    }

    .message-head{
        position: relative;
        z-index: 2;
        font-weight: 700;
        clip-path: inset(0 100% 0 0);
        transition: .4s ease .3s;
        @media (min-width: 897px) {
            width: max-content;
            padding: 0 130px 32px;
            margin: 0 auto 32px;
            font-size: 88px;
        }
        @media (max-width: 896px) {
            width: 92%;
            padding: 0 0 16px;
            margin: 0 auto 12px;
            font-size: 36px;
        }
        &:before{
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #fff;
            clip-path: inset(0 100% 0 0);
            transition: .4s ease .5s;
            @media (min-width: 897px) {
                height: 4px;
            }
            @media (max-width: 896px) {
                height: 2px;
            }
        }
    }
    .message-txt{
        position: relative;
        z-index: 2;
        font-size: 20px;
        font-weight: 600;
        line-height: 2;
        letter-spacing: .02em;
        clip-path: inset(0 100% 0 0);
        transition: .6s ease .8s;
        @media (max-width: 896px) {
            padding: 0 4%;
            font-size: 14px;
            letter-spacing: .01em;
        }
    }

    .baseLinkbtn{
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%,75%);
        z-index: 2;
        opacity: 0;
        transition: .4s ease 1.2s;
    }
}

/* --- service Section --- */
.service{
    padding-bottom: 100vh;
    margin-top: calc(260/1440*100vw);
    @media (max-width: 896px) {
        margin-top: 110px;
    }
    .service_head{
        p{
            text-align: center;
        }
        .ja{
            font-size: 42px;
            font-weight: 700;
            @media (max-width: 896px) {
                font-size: 22px;
            }
        }
        .en{
            img{
                @media (min-width: 897px) {
                    width: max-content;
                    margin: -32px auto 0;
                }
                @media (max-width: 896px) {
                    margin: -16px auto 0;
                }
            }
        }
    }
    .scroll-wrapper {
        /* スクロール用の長さを確保（3スライド分） */
        height: 500vh; 
    }

    .sticky-container {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .dot-nav {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 100;
    }
    
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        transition: all 0.5s ease;
        background: #fff;
    }
    
    /* カレント（アクティブ）な状態 */
    .dot.active {
        background: linear-gradient(90deg, #003F8C, #D71918);
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        &.is-active{
            z-index: 10;
        }
        @media (min-width: 897px) {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    /* 画像の初期状態: 下側に隠れている */
    .slide-image {
        width: calc(100% - 620px);
        /* height: 100%; */
        clip-path: inset(100% 0 0 0); /* 下から上に表示するため、最初は100% */
        transition: clip-path 0.1s linear;
        @media (max-width: 896px) {
            width: 100%;
            margin-top: 18vw;
        }
    }

    /* 最初のスライドだけは表示しておく */
    .slide-1 .slide-image {
        clip-path: inset(0% 0 0 0);
    }

    /* テキストの初期状態 */
    .slide-text {
        /* position: absolute;
        bottom: 50px;
        left: 0; */
        width: 560px;
        margin-left: -60px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
        @media (max-width: 896px) {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            margin-left: 0;
        }
    }

    /* アクティブな時のスタイル */
    .slide.is-active .slide-text {
        opacity: 1;
        transform: translateY(0);
    }

    .service-inner{
        position: relative;
        @media (max-width: 896px) {
            margin-top: 32px;
        }
        .content{
            @media (min-width: 897px) {
                /* position: absolute;
                bottom: 0;
                left: 0; */
                /* width: 100%; */
                /* display: flex;
                align-items: flex-start;
                justify-content: center;
                gap: 0 80px; */
            }
            @media (max-width: 896px) {
                padding: 0 5%;
                margin-top: -48px;
            }
            .head_area{
                .concept-title{
                    padding: 4px 12px 6px;
                    .highlight{
                        font-size: 57px;
                        letter-spacing: .04em;
                        @media (max-width: 896px) {
                            font-size: 24px;
                            letter-spacing: .02em;
                        }
                    }
                }
                .sub-ttl{
                    padding: 8px 12px 4px;
                    .highlight{
                        font-size: 25px;
                        letter-spacing: .04em;
                        @media (max-width: 896px) {
                            font-size: 18px;
                            letter-spacing: .02em;
                        }
                    }
                }
                .highlight{
                    background: linear-gradient(90deg, #003F8C, #D71918);
                    -webkit-background-clip: text;
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                    color: transparent;
                }
            }
            .txt{
                margin-top: 32px;
                font-size: 20px;
                font-weight: 700;
                line-height: 2;
                @media (min-width: 897px) {
                    width: 490px;
                }
                @media (max-width: 896px) {
                    margin-top: 16px;
                    font-size: 14px;
                }
            }
            .sub_area{
                padding: 4px 24px;
                margin-top: 32px;
                border: 1px solid #fff;
                border-width: 0 1px;
                @media (max-width: 896px) {
                    padding: 4px 12px;
                    margin-top: 12px;
                }
                .head_txt{
                    font-size: 24px;
                    margin-top: 0;
                    line-height: 1.45;
                    @media (max-width: 896px) {
                        font-size: 18px;
                    }
                }
                .other_link{
                    display: inline-block;
                    margin-top: 4px;
                    padding-bottom: 4px;
                    padding-right: 36px;
                    background-image: url(../img/common/icon_arrow_service.svg);
                    background-size: 18px;
                    background-repeat: no-repeat;
                    background-position: calc(100% - 6px) center;
                    border-bottom: 1px solid #fff;
                    font-size: 16px;
                    @media (max-width: 896px) {
                        font-size: 14px;
                    }
                }
            }
        }
    }
}

/* --- Company Section --- */
.company {
    margin-top: calc(260/1440*100vw);
    color: #fff;
    text-align: center;
    .company_head{
        p{
            text-align: center;
        }
        .ja{
            font-size: 42px;
            font-weight: 700;
            @media (max-width: 896px) {
                font-size: 22px;
            }
        }
        .en{
            img{
                @media (min-width: 897px) {
                    width: max-content;
                    margin: -32px auto 0;
                }
                @media (max-width: 896px) {
                    margin: -16px auto 0;
                }
            }
        }
    }
    .company-list {
        display: grid;
        max-width: 1100px;
        text-align: left;
        @media (min-width: 897px) {
            margin: 48px auto 0;
            grid-template-columns: .6fr 2fr;
        }
        @media (max-width: 896px) {
            grid-template-columns: 1fr 1fr;
            width: 94%;
            margin: 24px auto 0;
        }
    }
    .company-list dt,
    .company-list dd {
        padding: 15px;
        @media (max-width: 896px) {
            font-size: 14px;
        }
    }
    .company-list dt{
        @media (max-width: 896px) {
            padding-left: 0;
            white-space: nowrap;
        }
    }
    .company-list dd {
        border-left: 1px solid #fff;
        @media (min-width: 897px) {
            padding-left: 84px;
            font-size: 20px;
        }
        @media (max-width: 896px) {
            padding-left: 20px;
        }
    }
    .company-list dd a {
        display: block;
        width: max-content;
        background-image: url(../img/common/icon_x.svg);
        background-size: 14px;
        background-position: 18px center;
        background-repeat: no-repeat;
        border: 1px solid #fff;
        border-radius: 20px;
        font-size: 14px;
        text-decoration: none;
        @media (min-width: 897px) {
            padding: 10px 16px 10px 42px;
            margin-top: 12px;
            transition: .4s ease;
            &:hover{
                background-color: #01408C;
            }
        }
        @media (max-width: 896px) {
            padding: 10px 24px 10px 45px;
            margin-top: 8px;
        }
    }
}
.recruit{
    position: relative;
    margin-top: calc(160/1440*100vw);
    @media (max-width: 896px) {
        margin-top: 64px;
    }
    .bg{
        @media (max-width: 896px) {
            margin-top: -32px;
        }
    }
    .recruit_textarea{
        @media (min-width: 897px) {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            width: 100%;
        }
    }
    .recruit_head{
        p{
            text-align: center;
        }
        .ja{
            font-size: 42px;
            font-weight: 700;
            @media (max-width: 896px) {
                font-size: 22px;
            }
        }
        .en{
            img{
                @media (min-width: 897px) {
                    width: max-content;
                    margin: -32px auto 0;
                }
                @media (max-width: 896px) {
                    margin: -16px auto 0;
                }
            }
        }
    }
    .textarea{
        max-width: 540px;
        margin-top: 160px;
        @media (min-width: 897px) {
            margin-left: calc(182/1440*100vw);
        }
        @media (max-width: 896px) {
            padding: 0 5%;
            margin-top: -32px;
        }
        .copy{
            .line{
                display: inline-block;
                padding: 0 8px;
                background-color: #fff;
                b{
                    background: linear-gradient(90deg, #003F8C, #D71918);
                    -webkit-background-clip: text;
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                    color: transparent;
                    font-size: 42px;
                    font-weight: bold;
                    letter-spacing: calc(8/100*1em);
                    @media (max-width: 896px) {
                        font-size: 24px;
                    }
                }
            }
        }
        .txt{
            margin-top: 32px;
            font-size: 20px;
            font-weight: 600;
            line-height: 2;
            letter-spacing: calc(4/100*1em);
            @media (max-width: 896px) {
                margin-top: 16px;
                font-size: 16px;
            }
        }
    }
}

/* --- Responsive --- */
@media (max-width: 896px) {
    .concept-flex, .concept-flex.reverse {
        flex-direction: column-reverse;
    }
}