@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

html {
    cursor: none;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #BED7DC;
}

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

.OPAnime {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 100;
}

.leftBG,
.centerBG,
.rightBG {
    width: 33vw;
    height: 100vh;
    background-color: #BED7DC;
    transform-origin: bottom;
}

.centerBG {
    width: 34vw;
}

.percent {
    position: absolute;
    top: calc((100vh - 6vw - 15vw) / 2);
    left: calc((100vw - 20vw) / 2);
    width: 20vw;
    margin: auto;
    text-align: center;
    font-family: "Noto Serif JP", serif;
    font-size: 5vw;
    font-weight: 900;
    font-style: normal;
    color: #ffffff;
}

.countUp {
    display: inline-block;
    width: 11vw;
}

.load {
    position: absolute;
    top: calc((100vh - 5vw) / 2);
    left: calc((100vw - 40vw) / 2);
    width: 40vw;
    height: 5vw;
    border: solid 0.5vw #ffffff;
    border-radius: 10vw;
    box-sizing: border-box;
    overflow: hidden;
}

.meter {
    position: relative;
    top: 0.5vw;
    width: 38vw;
    height: 3vw;
    margin: auto;
    border-radius: 10vw;
    background: repeating-linear-gradient(45deg, #00000000, #00000000 1vw, #ffffff 0, #ffffff 2vw);
    opacity: 0;
    transform-origin: left;
}

.mouse {
    width: 1.5vw;
    height: 1.5vw;
    background: #00000000;
    border: solid 0.4vw #ffffff;
    border-radius: 50%;
    mix-blend-mode: difference;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

h1 {
    margin: 3vw 0;
    text-align: center;
    font-family: "Noto Serif JP", serif;
    font-size: 6vw;
    font-weight: 900;
    font-style: normal;
    color: #ffffff;
}

.flex {
    display: flex;
}

.loopBox {
    position: relative;
    height: 10vw;
    margin: 3vw 0;
    z-index: 1;
}

.loop:first-child {
    animation: loop 60s -30s linear infinite;
}

.loop:last-child {
    animation: loop2 60s linear infinite;
}

.revLoop:first-child {
    animation: loop 60s -30s linear infinite;
    animation-direction: reverse;
}

.revLoop:last-child {
    animation: loop2 60s linear infinite;
    animation-direction: reverse;
}

@keyframes loop {
    0% {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes loop2 {
    0% {
        transform: translateX(0);
    }

    to {
        transform: translateX(-200%);
    }
}

.loopContents {
    margin: 0 2vw;
    border-radius: 1vw;
    box-shadow: 1vw 1vw 1vw #00000070;
    transition: transform .3s ease;
    cursor: none;
}

.loopContents:hover {
    transform: scale(1.1);
}

.loopContents img {
    width: 10vw;
}

.tabBox {
    display: none;
    margin: 3vw auto;
}

.tab {
    position: relative;
    display: none;
    width: 70vw;
    margin: 0 15vw;
    flex-shrink: 0;
    border-radius: 3vw;
    background: #BED7DC;
    box-shadow: 3vw 3vw 6vw #a2b7bb, -3vw -3vw 6vw #dbf7fd;
}

.active {
    display: block;
}

.tabContents {
    padding: 3vw 4vw;
}

.tabContents img {
    width: 20vw;
    transform: scaleX(0);
    transform-origin: left;
    animation: slide 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    animation-delay: 1s;
}

@keyframes slide {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.tabContents .text {
    margin-left: 5vw;
    overflow: hidden;
}

.text h2 {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 2vw;
    font-style: normal;
    color: #ffffff;
    opacity: 0;
    animation: slideText 1.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    animation-delay: 1.5s;
    word-break: keep-all;
}

.text p {
    margin: 1vw 0;
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-size: 1.5vw;
    font-style: normal;
    color: #ffffff;
    opacity: 0;
    animation: slideText 1.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    animation-delay: 2s;
    word-break: keep-all;
}

@keyframes slideText {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5vw;
    margin-top: 0.5vw;
    padding: 0.2vw 3vw;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    border: 0.1vw solid #ffffff;
    outline: none;
    transition: ease .2s;
    opacity: 0;
    animation: slideText 1.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    animation-delay: 2.5s;
    cursor: none;
}

.btn span {
    position: relative;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 1.2vw;
    z-index: 3;
    color: #ffffff;
}

.btn:hover span {
    color: #BED7DC;
}

.bgleft:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    height: 101%;
    transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
    transform: scale(0, 1);
    transform-origin: right;
}

.bgleft:hover:before {
    transform-origin: left;
    transform: scale(1, 1);
}


@media screen and (max-width : 1179px) {
    .mouse {
        display: none;
    }

    h1 {
        font-size: 10vw;
    }

    .loopBox {
        height: 25vw;
        margin: 0;
        overflow-x: hidden;
    }

    .loopContents {
        margin: 2vw;
    }

    .loopContents:hover {
        transform: scale(1);
    }

    .loopContents img {
        width: 21vw;
    }

    .tab {
        width: 90vw;
        margin: 0 5vw;
    }

    .tabContents {
        align-items: center;
    }

    .tabContents img {
        width: 30vw;
        height: 30vw;
    }

    .text h2 {
        font-size: 4vw;
    }

    .text p {
        font-size: 3vw;
    }

    .btn {
        width: 10vw;
        margin-top: 2vw;
        font-size: 2.5vw;
    }

    .btn span {
        font-size: 2.5vw;
    }
}