:root{
    --font-size-large:calc((60 / 1440) * 100vw);
    --font-size-normal:calc((24 / 1440) * 100vw);
    --font-size-small:calc((16 / 1440) * 100vw);

    --font-size-large_sp:calc((32 / 375) * 100vw);
    --font-size-normal_sp:calc((24 / 375) * 100vw);
    --font-size-small_sp:calc((14 / 375) * 100vw);

    --font-weight-normal:700;
    --font-weight-middle:600;
    --font-weight-lighter:500;

    --letter-spacing-normal: calc((1.4 / 375) * 100vw);
}
canvas{
    width: 0;
    height: 0;
}
.background{
    background-image: url('/static/main/img/rainbow-sky.jpg');
    background-size: 100vw 100vh;
    width: 100vw;
    height: 100vh;
    position: fixed;
}
.cloud{
    position: absolute;
}
.cloud > img{
    width: 100%;
}
#cloud-1{
    width: calc((562 / 1440) * 100vw);
}
.face-view{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.face-element > img{
    height: 100%;
}
.face-top{
    height: calc((486.111 / 1024) * 100vh);
    position: absolute;
    top: calc((170 / 1024) * 100vh);
    z-index: 15;
}
.spirit-view{
    z-index: 20;
    display: flex;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
}
.spirit{
    position: absolute;
    transform-origin: center center;
    display: none;
    cursor: pointer;
}
#spirit-1{
    transform: rotate(-8.354deg);
    top: calc((330 / 1024) * 100vh);
    right: calc((75.1 / 1440) * 100vw);
}
#spirit-1 > img{
    width: calc((675.299 / 1440) * 100vw);
}
#spirit-2{
    top: calc((169 / 1024) * 100vh);
    left: calc((206 / 1440) * 100vw);
}
#spirit-2 > img{
    width: calc((225 / 1440) * 100vw);
}
#spirit-3{
    top: calc((407 / 1024) * 100vh);
    left: calc((187 / 1440) * 100vw);
}
#spirit-3 > img{
    width: calc((201 / 1440) * 100vw);
}
#spirit-4{
    transform: rotate(6.495deg);
    top: calc((22 / 1024) * 100vh);
    right: calc((114 / 1440) * 100vw);
}
#spirit-4 > img{
    width: calc((346.879 / 1440) * 100vw);
}
#spirit-5{
    top: calc((102 / 1024) * 100vh);
    left: calc((482 / 1440) * 100vw);
}
#spirit-5 > img{
    width: calc((359 / 1440) * 100vw);
}
.spirit-cards{
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    z-index: 25;
    width: 100vw;
    height: calc((910 / 1024) * 100vh);
    pointer-events: none;
}
.spirit-icon{
    position: relative;
    left: 50%; 
    top: 0;
    width: 0;
    height: 0;
}
.spirit-icon > img{
    transform: translate(-50%, -100%);
}
#spirit-icon-1{
    transform: rotate(-6.696deg);
}
#spirit-icon-1 > img{
    /* width: calc((621.198 / 1440) * 100vw); */
    height: calc((327.93 / 1024) * 80vh);
}
#spirit-icon-2{
    transform: rotate(6.088deg);
}
#spirit-icon-2 > img{
    /* width: calc((356 / 1440) * 100vw); */
    height: calc((356 / 1024) * 80vh);
}
#spirit-icon-3{
    transform: rotate(-12.271deg);
}
#spirit-icon-3 > img{
    /* width: calc((349 / 1440) * 100vw); */
    height: calc((349 / 1024) * 80vh);
}
#spirit-icon-4{
    transform:translate(-50%, 0) rotate(6.495deg);
}
#spirit-icon-4 > img{
    /* width: calc((346.879 / 1440) * 100vw); */
    height: calc((346.879 / 1024) * 80vh);
}
#spirit-icon-5{
    transform: rotate(-4.529deg);
}
#spirit-icon-5 > img{
    /* width: calc((359 / 1440) * 100vw); */
    height: calc((359 / 1024) * 80vh);
}
/* 画面から飛び出すのはoverflow scrollでするのかそれともサイズを変更するのか */
.spirit-card-wrapper{
    background: linear-gradient(225deg,
    #FF0FE7 16.6%, 
    #D41717 16.6%,
    #D41717 33.3%, 
    #0029FF 33.3%, 
    #0029FF 50%,
    #00FFFF 50%, 
    #00FFFF 66.6%, 
    #52FF00 66.6%, 
    #52FF00 83.3%, 
    #FFF500 83.3%, 
    #FFF500 100%
    );
    /* padding: calc((16 / 1024) * 100vh) calc((16 / 1440) * 100vw); */
    padding: calc((16 / 1024) * 100vh);
    /* border-radius:calc((90 / 1024) * 100vh) calc((90 / 1440) * 100vw); */
    border-radius:calc((90 / 1024) * 100vh);
    display: none;
    position: relative;
}
.spirit-card{
    /* padding: calc((34 / 1024) * 100vh) calc((34 / 1440) * 100vw); */
    padding: calc((34 / 1024) * 100vh);
    /* border-radius:calc((90 / 1024) * 100vh) calc((90 / 1440) * 100vw); */
    border-radius:calc((90 / 1024) * 100vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
}
.cross-button-wrapper{
    display: flex;
    justify-content: end;
    width: 100%;
}
.cross-button{
    /* width: calc((60 / 1440) * 100vw);
    height: calc((60 / 1440) * 100vw); */
    width: calc((60 / 1024) * 100vh);
    height: calc((60 / 1024) * 100vh);
    border-radius: 50%;
    border: rgba(0, 0, 0, 0.6) solid;
    background: rgba(232, 232, 232, 1);
    position: relative;
    z-index: 100;
    cursor: pointer;
}
.cross-button::before, .cross-button::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc((5 / 1440) * 100vw);
    height: calc((30 / 1024) * 100vh);
    background-color: rgba(0, 0, 0, 0.6);
}
.cross-button::before{
    transform: translate(-50%,-50%) rotate(45deg);
}
.cross-button::after{
    transform: translate(-50%,-50%) rotate(-45deg);
}
.spirit-card-header{
    display: flex;
    flex-direction: row;
    gap: calc((40 / 1440) * 100vw);
    margin-top: calc((80 / 1024) * 100vh);
    position: relative;
}
.spirit-card-title{
    font-size: var(--font-size-large);
    font-family: "Hiragino Sans";
    font-weight: var(--font-weight-normal);
    line-height: 1;
}
.spirit-card-value{
    font-size: var(--font-size-large);
    font-family: "Hiragino Sans";
    font-weight: var(--font-weight-normal);
    line-height: 1;
}
.spirit-card-value::after{
    content: '/5';
    font-size: var(--font-size-middle);
    font-family: Poppins;
    font-weight: var(--font-weight-lighter);
}
.spirit-card-body{
    width: calc((832 / 1440) * 100vw);
    font-size: var(--font-size-normal);
    font-family: "Hiragino Sans";
    font-weight: var(--font-weight-normal);
    line-height: 200%;
    letter-spacing: 2px;
    margin:  calc((70 / 1024) * 100vh) calc((80 / 1440) * 100vw) calc((40 / 1024) * 100vh) calc((80 / 1440) * 100vw);
}
.color-pink{
    color: #FA16FF;
}
.color-red{
    color: #FF1616;
}
.color-sky{
    color: #00A3FF;
}
.color-green{
    color: #00D23B;
}
.color-blue{
    color: #0046CE;
}
.icon{
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.face-inside{
    display: none;
    height: calc((277.778 / 1024) * 100vh);
    position: fixed;
    top: calc((391 / 1024) * 100vh);
}
.face-body{
    height: calc((643.056 / 1024) * 100vh);
    position: fixed;
    top: calc((521 / 1024) * 100vh);
}
.sp{
    display: none; 
}
@media screen and (max-width: 480px) {
    .sp{
        display: flex;
    }
    .tv-view-title{
        font-size: calc((12 / 375) * 100vw);
    }
    .face-top{
        height: calc((156 / 667) * 100dvh);
        top: calc((358 / 667) * 100dvh);
    }
    #spirit-1{
        transform: rotate(-7.054deg);
        top: calc((234 / 667) * 100vh);
        right: calc((-5.9 / 375) * 100vw);
    }
    #spirit-1 > img{
        width: calc((331.88 / 375) * 100vw);
    }
    #spirit-2{
        transform: rotate(-5.634deg);
        top: calc((87.2 / 667) * 100vh);
        left: calc((147 / 375) * 100vw);
    }
    #spirit-2 > img{
        width: calc((146 / 375) * 100vw);
    }
    #spirit-3{
        transform: rotate(16.267deg);
        top: calc((336 / 667) * 100vh);
        left: calc((-39 / 375) * 100vw);
    }
    #spirit-3 > img{
        width: calc((166 / 375) * 100vw);
    }
    #spirit-4{
        transform: rotate(16.267deg);
        top: calc((44 / 667) * 100vh);
        right: calc((200 / 375) * 100vw);
    }
    #spirit-4 > img{
        width: calc((136 / 375) * 100vw);
    }
    #spirit-5{
        transform: rotate(-6.91deg);
        top: calc((188 / 667) * 100vh);
        left: calc((53 / 375) * 100vw);
    }
    #spirit-5 > img{
        width: calc((139 / 375) * 100vw);
    }

    #spirit-icon-1{
        transform: rotate(-7.054deg);
    }
    #spirit-icon-1 > img{
        /* width: auto;
        height: calc((136 / 667) * 100vh); */
        width: calc((257 / 375) * 100vw);
        height: auto;
    }
    #spirit-icon-2{
        transform: rotate(6.088deg);
    }
    #spirit-icon-2 > img{
        /* width: auto;
        height: calc((84 / 667) * 100vh); */
        width: calc((113 / 375) * 100vw);
        height: auto;
    }
    #spirit-icon-3{
        transform: rotate(-12.271deg);
    }
    #spirit-icon-3 > img{
        /* width: auto;
        height: calc((103 / 667) * 100vh); */
        width: calc((102 / 375) * 100vw);
        height: auto;
    }
    #spirit-icon-4{
        transform:translate(-50%, 0) rotate(6.495deg);
    }
    #spirit-icon-4 > img{
        /* width: auto;
        height: calc((95 / 667) * 100vh); */
        width: calc((94 / 375) * 100vw);
        height: auto;
    }
    #spirit-icon-5{
        transform: rotate(-4.529deg);
    }
    #spirit-icon-5 > img{
        /* width: auto;
        height: calc((89 / 667) * 100vh); */
        width: calc((88 / 375) * 100vw);
        height: auto;
    }
    .spirit-cards{
        height: calc((603 / 667) * 100dvh);
    }
    .spirit-card-wrapper{
        padding: calc((8 / 375) * 100vw);
        border-radius: calc((40 / 375) * 100vw);
        flex-direction: column;
    }
    .spirit-card{
        padding: 0;
        position: relative;
        border-radius: calc((40 / 375) * 100vw);
    }
    .cross-button-wrapper{
        justify-content: center;
        position: relative;
        height: 0;
        top: calc((18 / 375) * 100vw);
    }
    .cross-button{
        width: calc((60 / 375)* 100vw);
        height: calc((60 / 375)* 100vw);
    }
    .cross-button::before, .cross-button::after{
        width: calc((5 / 375) * 100vw);
        height: calc((30 / 667) * 100vh);
    }
    .spirit-card-header{
        /* margin-top: calc((80 / 667) * 100vh); */
        margin-top: calc((80 / 375) * 100vw);
    }
    .spirit-card-title{
        font-size: var(--font-size-large_sp);
    }
    .spirit-card-value{
        font-size: var(--font-size-large_sp);
    }
    .spirit-card-value::after{
        font-size: var(--font-size-normal_sp);
        font-weight: var(--font-weight-middle);
    }
    .spirit-card-body{
        width: calc((258 / 375) * 100vw);
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-normal);
        margin:  calc((24 / 375) * 100vw) calc((24 / 375) * 100vw) calc((40 / 375) * 100vw) calc((24 / 375) * 100vw);
    }
    .icon{
        overflow: hidden;
        height: 100vh;
    }
    /* デザインとずれているが、デザインがフレームによって異なっているので誤差で計算 */
    .face-inside{
        height: calc((88 / 667) * 100dvh);
        top: calc((432.8 / 667) * 100dvh);
    }
    .face-body{
        height: calc((204 / 667) * 100dvh);
        top: calc((471 / 667) * 100dvh);
    }
    .pc{
        display: none;
    }
}