/* ロードアニメーション */
.loading-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 9999999999;
    opacity: 1;
    transition: opacity 1.5s ease-out;
}

.loading-area.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', '游ゴシック Medium', YuGothic, YuGothicM, 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, sans-serif;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #202f55;
    letter-spacing: 0.3em;
}

@media screen and (max-width: 768px) {
    .loading-text {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        letter-spacing: 0.2em;
    }

    .loading-text::before {
        font-size: inherit;
    }
}

.loading-text::before {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    width: 0;
    color: #202f55;
    animation: textSlide 5s ease-out infinite;
    content: "株式会社D.val";
    white-space: nowrap;
    display: inline-block;
    font-size: inherit;
}

@keyframes textSlide {
    0% {
        -webkit-text-stroke: 1px black;
        width: 0;
    }

    50% {
        -webkit-text-stroke: 1px black;
        width: 100%;
    }

    100% {
        width: 100%;
        -webkit-text-stroke: 1px black;
    }
}

main {
    width: 100%;

    .hero-section {
        position: relative;
        height: 134vh;
        min-height: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: url('/src/images/top/top_image.svg') no-repeat;
        background-size: cover;
        color: white;
    }


    .left-triangle {
        width: 100%;
        height: 100px;

        /* background-color: #FF7227; */
        img {
            width: 100%;
            height: 100px;
            object-fit: cover;
        }
    }

    .right-triangle {
        width: 100%;

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

    .hero-content {
        max-width: 1200px;
        /* width: 65%; */
        margin: 0 auto;
        padding: 0 20px;
        margin-top: 25vh;
    }

    .hero-title {
        font-family: 'Archivo', sans-serif;
        font-size: 9rem;
        font-weight: 700;
        margin-bottom: 2rem;
        text-transform: uppercase;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 3rem;
        line-height: 1.6;
        width: 80%;
        margin: 0 auto;
        font-weight: bold;
        text-align: center;
    }

    .hero-subtitle span {
        border-bottom: 3px solid #FF7227;
        font-weight: bold;
    }

    .hero-text {
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 3rem;
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-bottom-text {
        font-family: 'Archivo', sans-serif;
        font-size: 9rem;
        font-weight: 700;
        text-transform: uppercase;
        text-align: center;
        margin-top: 2rem;
    }

    /* レスポンシブ対応 */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 2rem;

        }

        .hero-subtitle {
            font-size: 1rem;
        }

        .hero-description {
            font-size: 1rem;
        }

        .hero-bottom-text {
            font-size: 1rem;
        }
    }

    /* topコンテンツ */
    .background-color-1 {
        background-color: #FF7227;
        width: 80%;
        margin: 0 auto;

        .top-content-area {
            background-image: url("/src/images/top/top_img.png");
            background-size: cover;
            transform: skewY(-8deg);
            position: relative;
            z-index: auto;

            &::before,
            &::after {
                content: "";
                position: absolute;
                width: 100%;
                height: 20px;
                background-color: white;
                z-index: -1;
            }

            .top-content {
                .top-content-text {

                    margin: 0 auto;
                    transform: skewY(8deg);

                    h1 {
                        font-size: 150px;
                        margin-top: 50px;
                        font-weight: 800;
                    }


                    .top-content-sub-text {
                        margin-top: 20px;
                        margin-left: 50px;
                        font-size: 50px;
                        font-weight: 1000;

                        span {
                            text-decoration: underline;
                            text-decoration-color: #FF5900;
                            text-underline-offset: 10px;
                        }
                    }

                    .top-content-mini-text {
                        margin-top: 20px;
                        margin-left: 50px;
                        font-size: 18px;
                        font-weight: 700;
                    }

                    .top-content-left {
                        margin-left: 80px;
                    }
                }
            }
        }
    }

    /* メッセージコンテンツ */
    .background-color-2 {
        background-color: #FF7227;

        .message-content-area {
            width: 90%;
            margin: 0 auto;
            display: flex;
            max-width: 1200px;

            .message-content {
                color: #fff;
                width: 80%;
                margin: 110px auto 0;

                .message-content-title {
                    h2 {
                        font-size: 75px;
                        font-weight: 900;
                    }

                    .message-content-sub-title {
                        font-weight: 1000;
                        margin-top: 80px;
                        font-size: 35px;
                    }
                }

                .message-content-text-area {
                    .message-content-text {
                        width: 80%;
                        margin-top: 30px;
                        line-height: 1.8;
                        font-size: 18px;
                        font-weight: bold;

                    }
                }
            }

            .message-content-img {
                display: flex;
                flex-direction: column;

                .top-img {
                    display: flex;
                    gap: 20px;

                    .sp {
                        display: block;
                    }


                    .img-1 {
                        img {
                            width: 100%;
                            display: block;
                            object-fit: cover;
                        }
                    }

                    .img-2 {
                        img {
                            width: 100%;
                            display: block;
                            margin-top: 60px;
                            object-fit: cover;
                        }
                    }
                }



                .img-3 {
                    img {
                        margin-top: 40px;
                        width: 100%;
                        display: block;
                        object-fit: cover
                    }
                }
            }
        }
    }

    .background-triangle {
        width: 100%;

        img {
            width: 100%;
            height: 55vh;
            object-fit: cover;
        }
    }

    .background-color-white {

        /* サービスコンテンツ */

        .service-area {
            position: relative;

            &::before {
                content: '';
                position: absolute;
                height: 100%;
                overflow: hidden;
                top: 0;
                left: 0;
                right: 0;
                background-color: #fff;
                transform: skewY(8deg);
                z-index: -1;
            }


            .service-content-area {
                margin-top: -80px;
                display: flex;
                flex-direction: column;
                align-items: flex-end;

                .service-title {
                    font-size: 50px;
                    font-weight: 900;
                    width: 50%;

                    .service-content-sub-title {
                        font-size: 40px;
                        font-weight: 1000;

                    }
                }

                .service-content {
                    width: 70%;
                    margin: 0 auto;

                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 40px;

                        li {
                            width: 45%;
                            margin: auto;

                            .service-number {
                                font-size: 50px;
                                font-weight: 800;
                            }

                            .service-img {
                                img {
                                    display: block;
                                    object-fit: cover;
                                    width: 100%;
                                }
                            }

                            .service-content-title {
                                font-size: 35px;
                                font-weight: 1000;
                                margin-top: 20px;
                            }

                            .service-text {
                                margin-top: 20px;
                                font-size: 18px;
                                font-weight: 700;
                            }
                        }

                        .top-img-up {
                            margin-top: -150px;
                        }
                    }
                }
            }
        }

        /* 悩み */
        .question-area {
            width: 100%;
            position: relative;
            padding-top: 185px;
            padding-bottom: 80px;
            margin-top: 130px;

            &::before {
                content: '';
                position: absolute;
                top: -130px;
                bottom: 0;
                left: 0;
                right: 0;
                background-color: #151E35;
                transform: skewY(-8deg) translateY(150px);
                z-index: -1;
            }


            .question-content-area {

                .question-content-title {
                    h4 {
                        color: #fff;
                        font-size: 40px;
                        text-align: center;
                        text-decoration: underline;
                        text-decoration-color: #E39870;
                        text-underline-offset: 18px;
                    }
                }

                .question-content-box-area {
                    width: 80%;
                    margin: 120px auto;

                    ul {
                        display: flex;
                        justify-content: center;
                        flex-wrap: wrap;
                        gap: 50px;

                        li {
                            background-color: #fff;
                            padding: 20px 60px;
                            text-align: center;

                            .question-content-box {
                                .question-title {
                                    font-weight: 900;
                                    font-size: 16px;
                                    line-height: 1.8;
                                }

                                .question-text {
                                    margin-top: 15px;
                                    font-weight: 700;
                                    font-size: 20px;
                                    color: #E39870;
                                }
                            }
                        }
                    }
                }

                .question-text-flex-area {
                    width: 80%;
                    margin: 0 auto;
                    margin-top: 100px;
                    display: flex;
                    margin-top: 100px;

                    .question-text-flex-img {
                        display: block;
                        width: 55%;

                        img {
                            width: 80%;
                            margin: 0 auto;
                            display: block;
                        }
                    }

                    .question-text-flex {
                        width: 35%;
                        margin: 0 auto;
                        color: #fff;
                        font-weight: 700;
                        line-height: 1.6;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;

                        .question-text-flex-title {
                            font-size: 25px;
                            margin-bottom: 15px;
                        }

                        .question-text-flex-sub-title {
                            margin-top: 30px;
                            font-size: 15px;
                            line-height: 2;
                        }
                    }
                }
            }
        }
    }
}