body {
    margin: 0;
    padding: 0;
    font-family: 'DotGothic16', monospace, sans-serif;
    background-color: white;
    color: #000;
    overflow-x: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    color: white;
    transition: opacity 0.5s ease;
}


.loading-text {
    font-size: 24px;
}

.blinker {
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}


#horizontal-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #caf6fe;
}

#background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cloud-layer {
    position: absolute;
    top: 0;
    width: 300%;
    height: 15%;
    background-repeat: repeat-x;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

#cloud-layer-fast {
    background-image: url('weather_cloudy_white.png');
    width: 400%;
    height: 130px;
    background-size: auto 150%;
    animation-name: background-scroll-fast;
    animation-duration: 180s;
    opacity: 1;
    z-index: 1;
}

#cloud-layer-slow {
    background-image: url('weather_cloudy_white.png');
    background-size: 170px auto;
    top: 70px;
    opacity: 0.6;
    animation-name: background-scroll-slow;
    animation-duration: 150s;
}

#ground-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 15%;
    background-image: url('maptile_jimen_sogen_02_center.png');
    background-repeat: repeat-x;
    background-size: 60px auto;
    /* 150px -> 75px に縮小 */
    animation-name: background-scroll-slow;
    animation-duration: 150s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes background-scroll-fast {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -100%;
    }
}

@keyframes background-scroll-slow {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -100%;
    }
}


#horizontal-wrap {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: 400%;
    z-index: 10;
}

.stage {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
}

.stage-content-wrap {
    text-align: center;
    max-width: 80%;
    padding: 40px;
    color: #000;
    z-index: 100;
}

.project-logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.typewriter-text {
    font-size: 2vw;
    color: #000;
    min-height: 3em;
    display: inline-block;
    text-align: left;
}

.cursor {
    display: inline-block;
    margin-left: 5px;
    animation: blink 1s steps(2, start) infinite;
}

.stage-content,
.vertical-title {
    font-size: 4vw;
    font-weight: bold;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    color: #000;
    text-shadow:
        -8px -8px 0 #fff,
        /* 左上 */
        8px -8px 0 #fff,
        /* 右上 */
        -8px 8px 0 #fff,
        /* 左下 */
        8px 8px 0 #fff,
        /* 右下 */
        -8px 0 0 #fff,
        /* 左 */
        8px 0 0 #fff,
        /* 右 */
        0 -8px 0 #fff,
        /* 上 */
        0 8px 0 #fff,
        /* 下 */

        -5px -5px 0 #fff,
        5px 5px 0 #fff,
        -5px 5px 0 #fff,
        5px -5px 0 #fff,

        -3px -3px 0 #fff,
        3px 3px 0 #fff,
        -3px 3px 0 #fff,
        3px -3px 0 #fff;
}

.vertical-title {
    font-size: 3vw;
    margin-bottom: 20px;
}


.stage-subtext {
    font-size: 1.5vw;
    margin-top: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    color: #333;
    text-shadow:
        -8px -8px 0 #98ddff,
        /* 左上 */
        8px -8px 0 #98ddff,
        /* 右上 */
        -8px 8px 0 #98ddff,
        /* 左下 */
        8px 8px 0 #98ddff,
        /* 右下 */
        -8px 0 0 #98ddff,
        /* 左 */
        8px 0 0 #98ddff,
        /* 右 */
        0 -8px 0 #98ddff,
        /* 上 */
        0 8px 0 #98ddff,
        /* 下 */
}

.vertical-subtitle {
    font-size: 1.2vw;
    margin-top: 10px;
    color: #666;
}


.vertical-section {
    background-color: #f0f0f0;
    color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

#vertical-content-section {
    background-color: #98ddff;
    color: #000;
}

#vertical-content-section0 {
    background-color: #ffffff;
}

.vertical-inner {
    width: 80vw;
    max-width: 1000px;
    text-align: center;
    padding: 20px;
}

.document-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.document-image {
    max-width: 800px;
    width: 90%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.log-entry {
    font-size: 1.2rem;
    margin: 10px 0;
    padding: 8px;
    border-bottom: 1px dashed #ccc;
    text-align: left;
}

.log-date {
    font-weight: bold;
    color: #98ddff;
    margin-right: 15px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.member-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 1;
}

.member-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
    margin-bottom: 10px;
    background-color: #fff;
}

.member-name {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 2px;
}

.member-role {
    font-size: 0.8rem;
    color: #666;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.link-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #000f;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
    min-height: 50px;
}

.link-box:hover {
    background-color: #98ddff;
    color: #fff;
}

.link-box i {
    margin-right: 10px;
}

#hud {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 20px;
    background-color: #fff;
    border-top: 2px solid #000;
    z-index: 1000;
    font-family: 'DotGothic16', monospace, sans-serif;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

#status-area {
    display: flex;
    align-items: center;
    width: 40%;
}

#progress-area {
    display: flex;
    align-items: center;
    width: 55%;
    justify-content: flex-end;
}

#current-stage-title {
    font-size: 1.1em;
    color: #000;
    margin-left: 10px;
}

#progress-bar-container {
    margin-left: 15px;
    width: 200px;
    height: 10px;
    background-color: #fff;
    border: 1px solid #000;
    position: relative;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background-color: #98ddff;
    transition: width 0.1s linear;
}

.animation-container {
    position: fixed;
    left: 30px;
    bottom: 70px;
    width: 200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.moving-gif {
    width: 100%;
    height: auto;
    display: block;
}

#hero-container {
    width: 20%;
    height: auto;
    bottom: 90px;
    height: 100px
}

#slime-container {
    display: none;
    opacity: 0;
}

@media (max-width: 768px) {
    .stage-content {
        font-size: 8vw;
    }

    .stage-subtext {
        font-size: 2vw;
    }

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

    .vertical-title {
        font-size: 6vw;
    }

    .vertical-subtitle {
        font-size: 3vw;
    }

    #hud {
        height: 50px;
        padding: 0 10px;
        font-size: 0.8em;
    }

    #progress-bar-container {
        width: 100px;
    }

    .animation-container {
        left: 10px;
        bottom: 60px;
        width: 100px;
    }

    #hero-container {
        left: 10px;
        bottom: 100px;
        width: 200px;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .document-image {
        max-width: 95%;
    }

    iframe {
        width: 90%;
        height: auto;
        aspect-ratio: 16/9;
      }

}