:root{
    --font-size-small: calc((22 / 1440) * 100vw);
    --font-size-normal: calc((24 / 1440) * 100vw);
    --font-size-middle: calc((50 / 1440) * 100vw);
    --font-size-large: calc((100 / 1440) * 100vw);

    --font-size-small_sp: calc((14 / 667) * 100vh);
    --font-size-normal_sp: calc((16 / 667) * 100vh);
    --font-size-middle_sp: calc((20 / 667) * 100vh);
    --font-size-large_sp: calc((48 / 667) * 100vh);

    --font-weight-bolder: 700;
    --font-weight-normal: 400;

    --letter-spacing-normal: calc((1.92 / 1440) * 100vw);
    --letter-spacing-short: calc((1.76 / 1440) * 100vw);

    --letter-spacing-normal_sp: calc((1.28 / 375) * 100vw);
    --letter-spacing-short_sp: calc((1.12 / 375) * 100vw);

    --z-index-large-card: 50;
    --z-index-avatar: 15;
    --z-index-meteor:12;
    --z-index-panel: 10;
    --z-index-planet: 5;
}
summary {
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}
.half-turn{
    transform: rotate(180deg);
}
main{
    background-image: url('/static/main/img/universe.png');
    background-repeat: repeat;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
}
canvas{
    position: absolute;
    top: 0;
    height: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    pointer-events: none;
    z-index: var(--z-index-meteor);
}
.top-icon-view{
    width: 100vw;
    height: 100vh;  
}
#top-icon{
    position: absolute;
    z-index: var(--z-index-avatar);
    transform : translate(-50%, -50%);
    top: 50%;
    left: 50%;
    pointer-events: none;
}
#top-arrow{
    position: absolute;
    top: calc((765 / 1024) * 100vh);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-middle);
}
.main-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    gap: calc((100 / 1024) * 100vh);
    margin-top: calc((110.5 / 1024) * 100vh);
}
.letter{
    font-family: PixelMplus10-Regular;
    color: #FFF;
}
.outline-view{
    display: flex;
    flex-direction: column;
    width: calc((1200 / 1440) * 100vw);
    gap: calc((40 / 1024) * 100vh);
    position: relative;
    z-index: var(--z-index-panel);

}
.large-card{
    display: none;
    /* width: calc((1200 / 1440) * 100vw); */
    width: 100vw;
    height: calc((910 / 1024) * 100vh);
    align-items: center;
    justify-content: center;
    z-index: var(--z-index-large-card);
    position: fixed;
    top: 0;
    left: 0;
}
.large-card > img{
    width: calc((900 / 1440) * 100vw);
}
.outline-group{
    display: flex;
    flex-direction: row;
    gap: calc((32 / 1440) * 100vw);
}
.outline-group-left-section{
    width: calc((416 / 1440) * 100vw);
    display: flex;
    flex-direction: column;
    gap: calc((32 / 1440) * 100vw);
}
.panel{
    background-color: #000000;
}
.profile-panel-wrapper, .sns-panel-wrapper, .sns-panel, .status-panel-wrapper, .personality_type-panel-wrapper{
    display: flex;
    flex-direction: column;
}
.sns-panel{
   gap: calc((16 / 1024) * 100vh);
   align-items: center;
   position: relative;
}
.sns-panel-title{
    position: relative;
    left: -50%;
    transform: translateX(100%);
}
.sns-panel-list{
    display: flex;
    flex-direction: row;
    gap: calc((24 / 1440) * 100vw);
}
.sns-panel-item > img{
    width: calc((40 / 1440) * 100vw);
}
.sns-panel-title{
    display: flex;
}
.panel-title{
    font-size: var(--font-size-normal);
    font-weight: var(--font-weight-bolder);
    line-height: 180%;
    letter-spacing: var(--letter-spacing-normal);
}
.panel-body{
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: 200%;
    letter-spacing: var(--letter-spacing-short);
}
.panel-value{
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bolder);
    line-height: 200%;
    letter-spacing: var(--letter-spacing-normal);
}
.profile-panel{
    border: #ffffff solid;
    border-width: 0 calc((4 / 1440) * 100vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc((16 / 1024) * 100vh);
    width: calc(((416 / 1440) * 100vw));
    box-sizing: border-box;
}
.outline-view-body-panel-border{
    display: flex;
    flex-direction: row;
}
.outline-view-top-left-body-panel-border-body{
    width: calc(((344 / 1440) * 100vw));
    display: flex;
    box-sizing: border-box;
}
.outline-view-top-right-body-panel-border-body{
    width: calc(((752 / 1440) * 100vw));
    display: flex;
    box-sizing: border-box;
}
.outline-view-bottom-left-body-panel-border-body{
    width: calc(((512 / 1440) * 100vw));
    display: flex;
    box-sizing: border-box;
}
.outline-view-bottom-right-body-panel-border-body{
    width: calc(((512 / 1440) * 100vw));
    display: flex;
    box-sizing: border-box;
}
.profile-panel-head-section{
    display: flex;
    flex-direction: row;
    gap: calc((32 / 1440) * 100vw);
}
.profile-avatar > img{
    width: calc(((100 / 1440) * 100vw));
}
.profile-panel-head-right-section{
    display: flex;
    flex-direction: column;
    gap: calc((8 / 1024) * 100vh);
}
.profile-panel-head-right-section-inline{
    display: flex;
    flex-direction: row;
}
.level{
    font-size: var(--font-size-normal);
    font-weight: var(--font-weight-normal);
    letter-spacing: var(--letter-spacing-normal);
    line-height: 200%;
}
.small-card{
    position: relative;
    width: 0;
    height: 0;
    right: calc((-75 / 1440) * 100vw);
    transform: rotate(8deg);
}
.small-card > img{
    width: calc((90 / 1440) * 100vw);
    height: calc((57.6 / 1024) * 100vh);
    cursor: pointer;
}
.profile-panel-foot-section{
    width: calc((336 / 1440) * 100vw);
}
/* ここ修正 */
.sns-panel{
    border: #ffffff solid;
    border-width: 0 calc((4 / 1440) * 100vw);
    display: flex;
    flex: 2;
}
.outline-group-right-section{
    width: calc((752 / 1440) * 100vw);
}
.career-panel{
    border: #ffffff solid;
    border-width: 0 calc((4 / 1440) * 100vw);
    padding: 0 calc((40 / 1440) * 100vw);
    display: flex;
    flex-direction: column;
}
.career-panel-description{
    margin-top: calc((8 / 1024) * 100vh);
}
.media-group{
    margin-top: calc((32 / 1024) * 100vh);
    display: flex;
    flex-direction: row;
}
.media-group-left-section, .media-group-right-section{
    flex-grow: 2;
}
.status-panel{
    border: #ffffff solid;
    border-width:  0 calc((4 / 1440) * 100vw);
    padding: 0 calc((40 / 1440) * 100vw);
    display: flex;
    flex-direction: column;
    gap: calc((8 / 1024) * 100vh);
}
.status-panel-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.status-panel-detail{
    align-items: flex-start;
    
}

.status-panel-detail-group{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: calc((16 / 1440) * 100vw);
}

.status-panel-detail-title{
    flex-grow: 1;
}
.status-panel-chart{
    width: calc((240 / 1440) * 100vw);
    height: calc((240 / 1440) * 100vw);
    overflow-y: hidden;
    display: flex;
    align-items: center;
}
.status-panel-chart > img{
    width: calc((240 / 1440) * 100vw);;
}
  
.personality_type-panel{
    border: #ffffff solid;
    border-width: 0 calc((4 / 1440) * 100vw);
    padding: 0 calc((40 / 1440) * 100vw);
}
.personality_type-panel-description-row{
    display: flex;
    flex-direction: row;
}
.personality_type-panel-description-row-title{
    flex: 1;
}
.personality_type-panel-description-row-bar{
    display: flex;
    align-items: center;
    flex: 2;
}
.bar{
    height: 80%;
}
#imaginer{
    width: 20%;
    background-color: #D9D9D9;
}
#harmonizer{
    width: 22%;
    background-color: #FDCDCB;
}
#joiner{
    width: 40%;
    background-color: #FFFF00;
}
#gambler{
    width: 60%;
    background-color: #FE0100;
}
#sinker{
    width: 70%;
    background-color: #0D6EB2;
}
#believer{
    width: 80%;
    background-color: #7030A0;
}
.directing-arrow-view{
    display: flex;
    flex-direction: column;
    width: calc((1200 / 1440) * 100vw);
    justify-content: center;
    align-items: center;
}
.directing-arrow-view > ul{
    list-style: none;
    margin: 0;
    padding: 0 ;
}
.directing-arrow-view > ul > li{
    font-size: var(--font-size-middle);
    font-weight: var(--font-weight-normal);
    line-height: 200%;
    letter-spacing: 4px;
}
.history-view{
    display: flex;
    flex-direction: column;
    width: calc((1200 / 1440) * 100vw);
    justify-content: center;
    align-items: center;
    gap: calc((56 / 1024) * 100vh);
    position: relative;
    z-index: var(--z-index-panel)
}
.history-view-title{
    font-size: var(--font-size-large);
    line-height: 180%;
    letter-spacing: 8px;
    font-family: PixelMplus10-Bold;
    color: #FFF;
}
.history-view-body{
    display: flex;
    flex-direction: column;
    gap: calc((40 / 1024) * 100vh);
}
.panel-start{
    align-items: start;
}
.panel-center{
    align-items: center;
}
.panel-end{
    align-items: end;
}
.history-view-body-section{
    width: calc((1200 / 1440) * 100vw);
    display: flex;
    flex-direction: column;
    z-index: var(--z-index-panel);
}
.history-view-body-section-wrapper{
    display: flex;
    flex-direction: column;
    gap: calc((40 / 1024) * 100vh);
    position: relative;
}
.history-view-body-panel-border{
    display: flex;
    flex-direction: row;
    width: calc((640 / 1440) * 100vw);
    box-sizing: border-box;
}
.history-view-body-panel-border > img, .outline-view-body-panel-border > img{
    width: calc((36 / 1440) * 100vw);
}
.top-right{
    transform: rotate(90deg);
}
.bottom-left{
    transform: rotate(-90deg);
}
.bottom-right{
    transform: rotate(180deg);
}
.history-view-body-panel-border-body{
    width: calc(((640 / 1440) * 100vw));
    display: flex;
    box-sizing: border-box;
}
.panel-top{
    border-top: #ffffff solid calc((4 / 1440) * 100vw);
}
.panel-bottom{
    border-bottom: #ffffff solid calc((4 / 1440) * 100vw);
}
.history-view-body-panel{
    width: calc((640 / 1440) * 100vw);
    display: flex;
    flex-direction: row;
    gap: calc((32 / 1440) * 100vw);
    background-color: #000000;
    padding: 0px 40px;
    box-sizing: border-box;
    border: #ffffff solid;
    border-width: 0 calc((4 / 1440) * 100vw);
}
.history-view-body-panel-icon > img{
    width: calc((100 / 1440) * 100vw);;
}
.history-view-body-panel-year-number{
    font-size: var(--font-size-normal);
    font-weight: var(--font-weight-bolder);
    line-height: 180%;
    letter-spacing: var(--letter-spacing-normal);
}
.history-view-body-panel-year-detail{
    font-size: var(--font-size-normal);
    font-weight: var(--font-weight-normal);
    line-height: 200%;
    letter-spacing: var(--letter-spacing-normal);
}
.history-view-body-panel-directing-arrow{
    text-align: center;
    cursor: pointer;
}
.icon{
    overflow: hidden;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-index-planet);
    height: calc((6904 / 1024) * 100vh);
    /* perspective: 1000px; */
}
.planet{
    position: absolute;
}
.planet > img{
    width: 100%;
    /* transform-style: preserve-3d; */
}
#moon{
    transform: translateY(-50%);
    left: calc((-327 / 1440) * 100vw);
}
#moon > img{
    height: calc((924 / 1024) * 100vh);
}
#saturn{
    top: calc(( -944.785 / 1024) * 100vh);
    transform: rotate(6.202deg); 
    right: calc((-357 / 1440) * 100vw);
}
#saturn > img{
    height: calc((944.785 / 1024) * 100vh);
}
#mercury{
    transform: translateY(-50%);
    left: calc((-162 / 1440) * 100vw);
}
#mercury > img{
    height: calc((663 / 1024) * 100vh);
}
#astronaut{
    top: calc(( -666 / 1024) * 100vh);
    right: calc((185 / 1440) * 100vw);
}
#astronaut > img{
    height: calc((333 / 1024) * 100vh);
}
#galaxy{
    top: calc((-1085 / 1024) * 100vh);
    left: calc((-126 / 1440) * 100vw);
    transform: rotate(-13.721deg); 
}
#galaxy > img{
    height: calc((542.449 / 1024) * 100vh);
}
#sun{
    transform: translateY(-50%);
    right: calc((-233 / 1440) * 100vw);
} 
#sun > img{
    height: calc((1119 / 1024) * 100vh);
}
.bottom-icon-view{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
#bottom-icon{
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    display: flex;
    z-index: 15;
}
#earth{
    top: calc((400 / 1024) * 100vh);
    position: relative;
    display: flex;
    z-index: 10;
}
#earth > img{
    height: calc((1882 / 1024) * 100vh);
}
#face-whole{
    position: absolute;
    bottom: calc((114 / 1024) * 100vh);
    z-index: 12;
}
#face-whole > img{
    height: calc((250 / 1024) * 100vh);
}
.invisible-icon{
    opacity: 0;
}
.sp{
    display: none;
}

@media screen and (max-width: 480px){
    .sp{
        display: flex;
    }
    #top-icon > img{
        width: calc((92 / 375) * 100vw);
    }
    #top-arrow{
        font-size: var(--font-size-middle_sp);
    }
    .main-container{
        margin-top: calc((80 / 667) * 100vh);
        gap: calc((24 / 667) * 100vh);
    }
    .outline-view{
        width: calc((339 / 375) * 100vw);
        margin: 0 calc((16 / 375) * 100vw);
    }
    .large-card{
        cursor: pointer;
    }
    .outline-group{
        flex-direction: column;
        gap: calc((16 / 667) * 100vh);
    }
    .outline-group-left-section{
        width: calc((339 / 375) * 100vw);
    }
    .profile-panel{
        width: calc((339 / 375) * 100vw);
        border-width: 0 calc((2 / 375) * 100vw);
        gap: calc((8 / 667) * 100vh);
    }
    .panel-top{
        border-top: #ffffff solid calc((2 / 375) * 100vw);
    }
    .outline-view-body-panel-border > img, .history-view-body-panel-border >img{
        width: calc((18 / 375) * 100vw);
    }
    .outline-view-top-left-body-panel-border-body, .outline-view-top-right-body-panel-border-body{
        width: calc((307 / 375) * 100vw);
    }
    .profile-panel-head-section{
        gap: calc((32 / 375) * 100vw);
        width: calc((291 / 375) * 100vw);
    }
    .profile-panel-head-right-section{
        flex-grow: 1;
        gap: calc((4 / 667) * 100vh);
    }
    .profile-avatar{
        width: calc((80 / 375) * 100vw);
        height: calc((80 / 375) * 100vw);
    }
    .profile-avatar > img{
        width: calc((80 / 375) * 100vw);
    }
    .panel-title{
        font-size: var(--font-size-normal_sp);
        letter-spacing: var(--letter-spacing-normal_sp);
    }
    .level{
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
        flex-grow: 1;
    }
    .small-card{
        right: calc((-3.5 / 375) * 100vw);
    }
     .small-card > img{
        width: calc((60 / 375) * 100vw);
        height: calc((38 / 667) * 100vh);
        transform: translateX(-100%);
     }
    .profile-panel-foot-section{
        width: calc((291 / 375) * 100vw);
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .sns-panel{
        border: none;
        padding: calc((8 / 667) * 100vh) 0;
    }
    .sns-panel-list{
        gap: calc((24 / 375) * 100vw);
    }
    .sns-panel-item > img{
        width: calc((24 / 375) * 100vw);
    }
    .outline-group-right-section{
        width: calc((339 / 375) * 100vw);
    }
    .career-panel{
        border-width: 0 calc((2 / 375) * 100vw);
        gap: 0;
        padding: 0 calc((16 / 375) * 100vw);
    }
    .career-panel-description{
        margin-top: calc((4 / 375) * 100vw);
        width: calc((307 / 375) * 100vw);
    }
    .panel-body{
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .media-group{
        flex-direction: column;
        margin-top: calc((16 / 667) * 100vh);
        gap: calc((16 / 667) * 100vh);
    }
    .media-group-left-section, .media-group-right-section{
        display: flex;
        flex-direction: column;
        gap: calc((4 / 667) * 100vh);
    }
    .outline-view-bottom-left-body-panel-border-body{
        width: calc((307 / 375) * 100vw);
    }
    .status-panel{
        border-width:0 calc((2 / 375) * 100vw);
        padding: 0 calc((16 / 375) * 100vw);
        gap: calc((4 / 667) * 100vh);
    }
    .status-panel-detail-group{
        gap: calc((16 / 375) * 100vw);
    }
    .panel-value{
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .status-panel-chart{
        width: calc((100 / 375) * 100vw);
        height: calc((100 / 375) * 100vw);
    }
    .status-panel-chart > img{
        width: calc((100 / 375) * 100vw);
    }
    .personality_type-panel-description{
        padding: calc((4 / 667) * 100vh) calc((18.5 / 375) * 100vw) 0 calc((18.5 / 375) * 100vw);
    }

    .outline-view-bottom-right-body-panel-border-body{
        width: calc((307 / 375) * 100vw);
    }
    .directing-arrow-view{
        width: calc((343 / 375) * 100vw);
    }
    .directing-arrow-view > ul >li{
        font-size: var(--font-size-middle_sp);
        letter-spacing: calc((1.6 / 375) * 100vw);
    }
    .history-view{
        width: calc((343 / 375) * 100vw);
        gap: calc((24 / 667) * 100vh);
    }
    .history-view-title{
        font-size: var(--font-size-large_sp);
        letter-spacing: calc((3.84 / 375) * 100vw);
    }
    .history-view-body{
        gap: calc((16 / 667) * 100vh);
    }
    .history-view-body-section{
        width: calc((307 / 375) * 100vw);
    }
    .history-view-body-panel-border{
        width: calc((343 / 375) * 100vw);
    }
    .history-view-body-panel-border-body{
        width: calc((307 / 375) * 100vw);
    }
    .history-view-body-panel{
        width: calc((343 / 375) * 100vw);
        border-width: 0 calc((2 / 375) * 100vw);
        gap: calc((10 / 375) * 100vw);
        padding: 0 calc((16 / 375) * 100vw);
    }
    .history-view-body-panel-icon > img{
        width: calc((48 / 375) * 100vw);
    }
    .history-view-body-panel-year-number{
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .history-view-body-panel-year-detail{
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .panel-title_sp{
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .panel-title-sub_sp{
        font-size: var(--font-size-small_sp);
        letter-spacing: var(--letter-spacing-short_sp);
    }
    .panel-start{
        align-items: center;
    }
    .panel-end{
        align-items: center;
    }
    .directing-arrow{
        width: calc((307 / 375) * 100vw);
        align-items: center;
        justify-content: center;
    }
    .directing-arrow > ul{
        list-style: none;
        margin: 0;
        padding: 0 ;
    }
    .directing-arrow > ul > li{
        font-size: var(--font-size-middle_sp);
        font-weight: var(--font-weight-normal);
        line-height: 200%;
        letter-spacing: calc((1.6 / 375) * 100vw);
    }
    #icon{
        /* height: calc((4609 / 667) * 100vh); */
    }
    #moon{
        top: calc((75 / 667) * 100vh);
        left: calc((-195 / 375) * 100vw);
    }
    #moon > img{
        width: auto;
        height: calc((448 / 667) * 100vh);
    }
    #saturn{
        top: calc((0 / 667) * 100vh);
        right: calc((-76 / 375) * 100vw);
        transform: rotate(9.51deg);
    }
    #saturn > img{
        width: auto;
        height: calc((283 / 667) * 100vh);
    }
    #mercury{
        /* top: calc((3287 / 667) * 100vh); */
        left: calc((-81 / 375) * 100vw);
    }
    #mercury > img{
        width: auto;
        height: calc((239 / 667) * 100vh);
    }
    #galaxy{
        /* top: calc((3793 / 667) * 100vh); */
        right: calc((-113 / 375) * 100vw);
        left: 0;
        transform: rotate(-11.192deg);
    }
    #galaxy > img{
        width: auto;
        height: calc((222 / 667) * 100vh);
    }
    #sun{
        /* top: calc((4210 / 667) * 100vh); */
        right: calc((-157 / 375) * 100vw);
        /* bottom: calc((272 / 667) * 100vh); */
        bottom: 0;
    }
    #sun > img{
        width: auto;
        height: calc((400 / 667) * 100vh);
    }
    /* 精密に計算する必要あり */
    #earth{
        top: calc((433 / 667) * 100vh);
    }
    #earth > img{
        height: calc((532 / 667) * 100vh);
    }
    #face-whole{
        position: absolute;
        bottom: calc((50 / 667) * 100vh);
    }
    #face-whole > img{
        height: calc((120 / 667) * 100vh);
    }
    .pc{
        display: none;
    }
}