@charset "utf-8";

:root {
    --color_01: #85682D;
}

body {
    font-family: 'Yuji Syuku', serif;
    font-size: 16px;
}

html,
body {
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-y: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../images/background_future.png') no-repeat center center;
    background-size: cover;
    z-index: -100;
}

main {
    color: var(--color_01);
}

.container {
    max-width: 1600px;
    min-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.fade-in {
    animation: fadeIn 1.2s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.article__header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__clock {
    width: 140px;
    height: auto;
    margin-bottom: 30px;
}

.header__clock-img {
    width: 100%;
    animation: header__clock-img 120s linear infinite;
}

@keyframes header__clock-img {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
}

.arrow {
    width: 110px;
    height: auto;
}

.arrow__img {
    width: 100%;
    height: auto;
    margin-top: -4%;
    animation: arrow 2.4s ease-in-out infinite;
}

.arrow__img-01 {
    animation-delay: -1.2s;
}

.arrow__img-02 {
    animation-delay: -0.6s;
}

.arrow__img-03 {
    animation-delay: 0s;
}

@keyframes arrow {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.fixed__img-left {
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    border-right: 8px solid var(--color_01);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed__img-right {
    z-index: 100;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    border-left: 8px solid var(--color_01);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-img {
    z-index: 300;
    height: 100vh;
    width: auto;
    transition: transform 0.7s ease-in-out;
}

.fixed-img:hover {
    transform: translateX(0px) rotateY(180deg) scale(0.99);
}

.fixed-img-bg-left {
    position: fixed;
    top: 0;
    left: 0;
    height: 102vh;
    width: auto;
}

.fixed-img-bg-right {
    position: fixed;
    top: 0;
    right: 0;
    height: 102vh;
    width: auto;
}

.guide__future {
    position: fixed;
    right: 7vw;
    bottom: 15px;
}

.guide__warpper {
    display: flex;
    align-items: center;
    gap: 1px;
    color: var(--color_01);
}

.guide__circle {
    font-size: 1.3rem;
    padding-top: 3.1px;
    animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }

    60% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.guide__txt {
    font-size: 1.2rem;
}

.kern-guide-txt {
    letter-spacing: 0.06em;
}

.section_bone {
    height: 350vh;
    position: relative;
    padding-top: 100px;
}

.bone__wrapper {
    position: sticky;
    top: 0px;
    width: 100%;
    transition: opacity 1.5s ease-out;
}

.bone__body {
    max-width: 100%;
    height: auto;
}

.bone__face {
    display: flex;
    max-width: 38.2%;
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bone__face__left,
.bone__face__right {
    width: 100%;
    height: auto;
    transform-origin: bottom center;
}

.bone__face__left {
    position: relative;
    left: 5%;
}

.bone__face__right {
    position: relative;
    left: -5%;
}

.section__death__poem {
    margin-top: -110vh;
    height: 1350px;
    position: relative;
}

.death__poem__wrapper {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease-in;
}

.death__poem__txt {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 80px;
    position: relative;
}

.death__poem__txt-txt {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 4.5rem;
    letter-spacing: 0.2rem;
}

.death__poem__name {
    position: absolute;
    left: 16.5vw;
    bottom: 0;
}

.death__poem__name-source,
.death__poem__name-name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.4rem;
}

.death__poem__name-name span {
    letter-spacing: .25rem;
}

.section__explain {
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20vh;
}

.section__explain__wrapper {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    margin-top: -50vh;
    margin-bottom: -20vh;
    display: flex;
    justify-content: center;
}

.explain__txt p {
    font-size: 2.4rem;
    line-height: 4rem;
    text-align: center;
}

.section__image__wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0vh;
}

.image__content {
    width: 38vh;
    height: auto;
}

.image__txt {
    margin-top: 15px;
}

.image__txt-name {
    font-size: 1rem;
}

.image__txt-txt {
    font-size: 1rem;
    margin-top: 10px;
    line-height: 1.4rem;
}

.image__content img {
    width: 100%;
}

.section__image-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.section__image-right {
    width: 50%;
}

.image__content-01 {
    margin: -10vh 0vw 0 0;
    animation: parallax-01 linear;
    animation-timeline: scroll();
}

@keyframes parallax-01 {
    from {
        transform: translateY(-0vh);
    }

    to {
        transform: translateY(80vh);
    }
}

.image__content-02 {
    margin: 75vh 0 0 12vw;
}

.image__content-03 {
    margin: 90vh 8vw 0 0;
    animation: parallax-03 linear;
    animation-timeline: scroll();
}

@keyframes parallax-03 {
    from {
        transform: translateY(500px);
    }

    to {
        transform: translateY(-380px);
    }
}

.image__content-04 {
    margin: 30vh 0 0 5vw;
    animation: parallax-04 linear;
    animation-timeline: scroll();
}

@keyframes parallax-04 {
    from {
        transform: translateY(-50vh);
    }

    to {
        transform: translateY(0vh);
    }
}

.image__content-05 {
    margin: -9vh 12vw 0 0;
    animation: parallax-05 linear;
    animation-timeline: scroll();
}

@keyframes parallax-05 {
    from {
        transform: translateY(100px);
    }

    to {
        transform: translateY(-0px);
    }
}

.image__content-06 {
    margin: -40vh 0 0 8vw;
    animation: parallax-06 linear;
    animation-timeline: scroll();
}

@keyframes parallax-06 {
    from {
        transform: translateY(-70vh);
    }

    to {
        transform: translateY(80vh);
    }
}

.image__content-07 {
    margin: 22vh 2vw 0 0;
    animation: parallax-07 linear;
    animation-timeline: scroll();
}

@keyframes parallax-07 {
    from {
        transform: translateY(-1200px);
    }

    to {
        transform: translateY(100px);
    }
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 27vh;
}

.footer__btn {
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer__btn-click {
    width: 100%;
    margin-bottom: 15px;
}

.footer__btn-clock {
    width: 100%;
}

.rotateClock {
    animation: rotateClock 60s linear infinite;
}

.rotateClock:hover {
    transform: scale(1.05) !important;
    animation-play-state: paused;
}

@keyframes rotateClock {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.footer__txt {
    width: 84vw;
    padding-top: 160px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__txt-img {
    width: 100%;
}

@media (min-width: 1200px) {
    .section__sp {
        display: none;
    }
}

@media (max-width: 1200px) {

    .loading-screen,
    .header,
    .article,
    .footer {
        display: none;
    }

    .section__sp-active {
        display: block;
    }

    .section__sp {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sp__wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 1.8%;
    }

    .sp__img-hukidashi-1200 {
        width: 30%;
    }

    .sp__img-hukidashi-500 {
        display: none;
    }

    .sp__img-child {
        width: 15%;
        padding-top: 8%;
    }

    .sp__img-hukidashi-img-1200,
    .sp__img-hukidashi-img-500 {
        width: 100%;
    }

    .sp__img-child-img {
        width: 100%;
        animation: jumpKid 1.1s ease-in-out infinite;
        transform-origin: bottom center;
    }

    @keyframes jumpKid {

        0%,
        100% {
            transform: scaleY(1) translateY(0);
        }

        40% {
            transform: scaleY(0.9) translateY(0);
        }

        60% {
            transform: scaleY(1.1) translateY(-15px);
        }
    }
}

@media (max-width: 500px) {
    .sp__img-hukidashi-1200 {
        display: none;
    }

    .sp__img-hukidashi-500 {
        display: block;
        width: 30%;
    }
}