@charset "UTF-8";

#data {
    padding: 10.4rem 0 0;

    @media screen and (max-width: 767px) {
        padding: 4rem 0 0;
    }

    .inner {
        max-width: 119.9rem;
    }

    .data-note {
        font-style: normal;
        font-weight: 400;
        font-size: 1.4rem;
        line-height: 1.6;
        letter-spacing: 0.04em;
        color: #9a9a9a;
        text-align: right;
        margin: 0 0 2.4rem;

        @media screen and (max-width: 767px) {
            font-size: 1.2rem;
            text-align: left;
            margin-bottom: 1.6rem;
        }
    }

    .data-cards {
        display: flex;
        flex-wrap: wrap;
        gap: 4rem;
        margin-bottom: 4rem;

        @media screen and (max-width: 767px) {
            gap: 1.6rem;
            margin-bottom: 1.6rem;
        }

        & img {
            display: block;
            width: 37.3rem;
            height: auto;

            @media screen and (max-width: 767px) {
                width: 100%;
            }
        }
    }

    .data-wide {
        margin-bottom: 4rem;
        line-height: 0;

        @media screen and (max-width: 767px) {
            margin-bottom: 1.6rem;
            line-height: normal;
        }

        &:last-child {
            margin-bottom: 0;
        }

        & > img {
            display: block;
            width: 100%;
            height: auto;
        }

        .data-wide-card {
            background-color: #ffffff;
            border-radius: 2rem;
            padding: 5.3rem 2rem 3rem;
            box-sizing: border-box;

            .data-wide-title {
                font-style: normal;
                font-weight: 700;
                font-size: 2rem;
                line-height: 1.4;
                letter-spacing: 0.04em;
                color: #006acd;
                text-align: center;
                margin: 0 0 2.4rem;
            }

            .data-wide-scroll-wrap {
                position: relative;
                margin: 0 -2rem 2.4rem;
                overflow: hidden;

                &::before {
                    content: "←";
                    position: absolute;
                    right: 2rem;
                    bottom: 0.8rem;
                    z-index: 1;
                    width: 40px;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 4px solid #006acd;
                    border-radius: 50%;
                    font-size: 20px;
                    color: #006acd;
                    pointer-events: none;
                    opacity: 1;
                    transition: opacity 0.3s ease-in-out;
                    animation: dataWideScrollHint 3s linear infinite;
                }

                &.scrolling {
                    &::before {
                        opacity: 0;
                    }
                }

                .data-wide-scroll {
                    overflow-x: auto;
                    overflow-y: hidden;
                    margin: 0;
                    padding: 0 2rem 0.8rem;
                    -webkit-overflow-scrolling: touch;
                    scrollbar-width: thin;
                    scrollbar-color: #c8c8c8 transparent;

                    &::-webkit-scrollbar {
                        height: 0.4rem;
                    }

                    &::-webkit-scrollbar-track {
                        background: transparent;
                    }

                    &::-webkit-scrollbar-thumb {
                        background: #c8c8c8;
                        border-radius: 0.2rem;
                    }

                    & img {
                        display: block;
                        width: auto;
                        height: calc((100vw - 4rem) * 1991 / 1497);
                        max-height: 26rem;
                        max-width: none;
                    }
                }
            }

            .data-wide-text {
                font-style: normal;
                font-weight: 400;
                font-size: 1.6rem;
                line-height: 1.8;
                letter-spacing: 0.04em;
                color: #000000;
                text-align: left;
                margin: 0;
            }
        }
    }
    .data-irregular {
        margin-bottom: 0;
        display: flex;
        gap: 4.2rem;
        @media screen and (max-width: 767px) {
            gap: 1.6rem;
            flex-direction: column;
        }
        .left {
            width: 78.7rem;
            @media screen and (max-width: 767px) {
                width: 100%;
            }
        }
        .right {
            width: 37.3rem;
            @media screen and (max-width: 767px) {
                width: 100%;
            }
        }
    }
}

#gallery {
    padding: 9rem 0 18rem;

    @media screen and (max-width: 767px) {
        padding: 6rem 0 8rem;
    }

    .inner {
        max-width: 119.9rem;
    }

    .data-gallery {
        width: 96rem;
        margin: 0 auto;

        @media screen and (max-width: 767px) {
            width: 100%;
        }

        .data-gallery-main {
            position: relative;
            margin-bottom: 2.1rem;

            @media screen and (max-width: 767px) {
                margin-bottom: 1.05rem;
            }

            .data-gallery-stage {
                position: relative;
                width: 100%;
                line-height: 0;
                overflow: hidden;

                .data-gallery-slide {
                    display: none;
                    width: 100%;

                    &.is-active {
                        display: block;
                    }

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

            .data-gallery-prev,
            .data-gallery-next {
                position: absolute;
                top: 50%;
                z-index: 2;
                width: 9rem;
                padding: 0;
                border: 0;
                background: transparent;
                transform: translateY(-50%);
                cursor: pointer;
                line-height: 0;

                @media screen and (max-width: 767px) {
                    width: 4rem;
                }

                & img {
                    display: block;
                    width: 100%;
                    height: auto;
                    pointer-events: none;
                }
            }

            .data-gallery-prev {
                left: -13.5rem;

                @media screen and (max-width: 767px) {
                    left: -1.5rem;
                }
            }

            .data-gallery-next {
                right: -13.5rem;

                @media screen and (max-width: 767px) {
                    right: -1.5rem;
                }

                & img {
                    transform: scaleX(-1);
                }
            }
        }

        .data-gallery-thumbs {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            -webkit-overflow-scrolling: touch;

            &::-webkit-scrollbar {
                display: none;
            }

            @media screen and (max-width: 767px) {
                gap: 0.5rem;
            }

            .data-gallery-thumb {
                flex: 0 0 18.4rem;
                width: 18.4rem;
                padding: 0;
                border: 0.2rem solid transparent;
                border-radius: 1rem;
                overflow: hidden;
                background: transparent;
                line-height: 0;
                cursor: pointer;
                box-sizing: border-box;
                opacity: 0.55;
                transition:
                    opacity 0.25s ease,
                    border-color 0.25s ease;

                @media screen and (max-width: 767px) {
                    flex: 0 0 9rem;
                    width: 9rem;
                    border-radius: 0.4rem;
                }

                &.is-active {
                    opacity: 1;
                    border-color: #006acd;
                }

                & img {
                    display: block;
                    width: 100%;
                    height: auto;
                    pointer-events: none;
                }
            }
        }
    }
}

@keyframes dataWideScrollHint {
    0% {
        right: 2rem;
    }

    100% {
        right: calc(100% - 2rem - 40px);
    }
}
