@charset "utf-8";

/* すべての要素に適用 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== 全体 ===== */
body {
    margin: 0;
    background: #0b1d2a;
    overflow: hidden;
}





/* ===== 背景 ===== */
.sky,
.stars,
.sun-moon {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            #6ec6ff 0%,
            #bfe9ff 65%,
            #ffffff 100%);
    animation: skyToNight 8s ease-in-out infinite;
}

@keyframes skyToNight {
    0% {
        background: linear-gradient(#6ec6ff, #bfe9ff);
    }

    50% {
        background: linear-gradient(#1a237e, #000000);
    }

    100% {
        background: linear-gradient(#6ec6ff, #bfe9ff);
    }
}


.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 1.5px, transparent 1.5px),
        radial-gradient(white 2px, transparent 2px);
    background-size:
        40px 40px,
        80px 80px,
        140px 140px;
    opacity: 0;
    animation: starsFade 8s ease-in-out infinite;
}

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

    25% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.sun-moon {
    position: absolute;
    top: 8vh;
    left: 50%;
    width: 32vw;
    height: 32vw;
    max-width: 180px;
    max-height: 180px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #fff176 0%, #ffca28 60%);
    box-shadow: 0 0 8vw rgba(255, 200, 80, 0.8);
    animation: eclipse 8s ease-in-out infinite;
}

@keyframes eclipse {
    0% {
        background: radial-gradient(circle, #fff176, #ffca28);
        box-shadow: 0 0 8vw rgba(255, 200, 80, 0.8);
    }

    50% {
        background: radial-gradient(circle, #e0e0e0, #9e9e9e);
        box-shadow: 0 0 6vw rgba(200, 200, 200, 0.6);
    }

    100% {
        background: radial-gradient(circle, #fff176, #ffca28);
        box-shadow: 0 0 8vw rgba(255, 200, 80, 0.8);
    }
}


.reel {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 430px;
    max-height: 844px;
    /* スマホ最大幅 */
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

.inner {
    max-width: 430px;
    max-height: 844px;
    min-height: 710px;
    /* スマホ最大幅 */
    border: solid 2px red;
    margin: 4.2rem 1rem 8.375rem 1rem;
    z-index: 16;
}




/* サムネイル */
.reel-thumb {
    max-width: 430px;
    max-height: 844px;
    margin: 12rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
    overflow: hidden;
}

/* メインタイトル */
.title {
    z-index: 12;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.05em;
    animation: subtitleFade 5s ease-out forwards;
    /* animation-delay: 0.25s; */
}



/* サブタイトル */
.subtitle {
    z-index: 12;
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    opacity: 0;
    /* animation: subtitleFade 1s ease-out forwards; */
    animation: subtitleFade 5s ease-in-out;
    animation-delay: 0.35s;
}

/* アニメーション */
@keyframes titlePop {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(6px);
    }

    25% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(0);
    }

    50% {
        transform: scale(1.05);
    }

    75% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(6px);
    }
}

@keyframes subtitleFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    25% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    75% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
        filter: blur(4px);
    }
}




.text-layer {
    width: 300px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 14px 22px;
    font-size: 20px;
    font-weight: 1000;
    letter-spacing: 0.05em;
    /* color: rgb(255, 255, 255); */
    text-align: center;
    background: rgba(0, 0, 0, 0.645);
    backdrop-filter: blur(6px);
    border-radius: 100px;
    /* text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 255, 255, 0.2); */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    animation: textFadeUp 1.2s ease forwards;
}



.text-layer0 {
    bottom: 70vh;
    width: 330px;
    color: rgb(255, 255, 255);
    font-size: 30px;
    font-weight: bold;
    animation-delay: 5s;
    background: rgb(0, 0, 0);



}


.text-layer1 {
    bottom: 60vh;
    animation-delay: 6s;
    color: rgb(255, 255, 255);
}

.text-layer2 {
    bottom: 50vh;
    animation-delay: 7s;
    color: rgb(255, 255, 255);
}

.text-layer3 {
    bottom: 40vh;
    animation-delay: 8s;
    color: rgb(255, 255, 255);
}

.text-layer4 {
    bottom: 30vh;
    animation-delay: 9s;
    color: rgb(255, 255, 255);
}

.text-layer5 {
    bottom: 20vh;
    animation-delay: 10s;
    color: rgb(255, 255, 255);
}



@keyframes textFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}






.final-text {
    width: 330px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    bottom: 65vh;
    opacity: 0;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    background: none;
    padding: 0px 0px;
    border-radius: 999px;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 30;
    text-align: center;
}

/* 表示状態 */
.final-text.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 縦位置ずらし */
.final2 {
    bottom: 55vh;
}

.final3 {
    bottom: 45vh;
}

.final4 {
    bottom: 35vh;

}
.final5 {
    bottom: 25vh;

}




.triangle-wrap {
    position: fixed;
    bottom: 7vh;
    /* 画面下から少し上 */
    left: 65%;
    transform: translateX(-42%);
    display: flex;
    gap: 0px;
    justify-content: center;
    z-index: 20;
    /* 背景より前に */
    opacity: 0;
    animation: textFadeUp 1.2s ease forwards;
}

/* 本体 */
.triangle {
    z-index: 11;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #fff;
    /* 立体感 */
    transform: perspective(600px) rotateX(8deg);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -6px 12px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.4);
    animation:
        float 4s ease-in-out infinite,
        glow 3s ease-in-out infinite;


}

/* 表面レイヤー 透明な艶感出してます*/
.triangle::before {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);


}

/* テキスト */
.triangle span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 色 */
.triangle.html {
    background: linear-gradient(145deg, #ff7043, #ff9100);
    border-radius: 50%;
}

.triangle.css {
    background: linear-gradient(145deg, #42a5f5, #1565c0);
    animation-delay: 0.4s;
    border-radius: 50%;
}

.triangle.js {
    background: linear-gradient(145deg, #fdd835, #f9a825);
    color: #222;
    animation-delay: 0.8s;
    border-radius: 50%;
}

/* 浮遊 */
@keyframes float {
    0% {
        transform: perspective(600px) rotateX(8deg) translateY(0);
    }

    50% {
        transform: perspective(600px) rotateX(8deg) translateY(-8px);
    }

    100% {
        transform: perspective(600px) rotateX(8deg) translateY(0);
    }
}
























.footer-line {
    max-width: 100%;
    min-width: 100%;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: start;
    position: fixed;
    top: 40rem;
    z-index: 10;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
    /* border-top: 1px solid #ddd; */
    /* border-bottom: 1px solid #ddd; */

}