.all{
    text-align: center;
}

#charactor{
    position: relative;
    padding-bottom: 5%;
}

#full{
    display: inline-block;
    vertical-align: top;
    height: 800px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#full.hide{
    opacity: 0;
}

#full > img{
    width: auto;
    height: 100%;
    filter: drop-shadow(0 0 5px);
}

#about{
    display: inline-block;
    padding: 3rem;
    padding-right: 0;
    width: 650px;
    text-align: left;
}

#name{
    display: inline-block;
}

#name h2 {
    font-family: 'YuGothic', 'Yu Gothic', sans-serif;
    text-align: left;
    margin: 0;
    color: #fff;
    font-size: 180%;
    padding-bottom: 0;
    line-height: 1.3rem;
}

#CN{
    font-family: 'YuGothic', 'Yu Gothic', sans-serif;
    font-weight: bolder;
    color: #fff;
    margin: 0 0 1em 0;
    font-size: 150%;
}

#ruby{
    color: #fff;
    margin: 0 0 2em 0;
}

#sheet{
    display: inline-block;
}

#alt-button{
    display: inline-block;
    width: 50px;
    height: 50px;
    transform: rotate(45deg) translateY(-100%);
    text-align: center;
    border: #fff solid;
    text-decoration: none;
}

#alt-button p{
    font-weight: bold;
    font-size: 150%;
    line-height: 50px;
    transform: rotate(-45deg);
    margin: 0;
}

#text{
    width: 650px;
}

#profile{
    display: inline-block;
    color: #fff;
    width: 40%;
}

.item{
    display: flex;
    align-items: center;
}

.title{
    min-width: 8rem;
    position: relative;
    overflow: hidden;
    margin-right: 0.5em;
}

.title > span{
    background-color: rgb(63, 63, 80);
    padding-right: 0.5em;
}

.title::after{
    content: "";
    position: absolute;
    margin: 0 3px;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px dotted #fff;
    border-width: 0 0 2px;
    transform: translateY(-50%);
    z-index: -1;
}

#history{
    display: inline-block;
    vertical-align: top;
    color: #fff;
    margin: 0;
    margin-left: 2em;
    white-space: normal;
    width: 45%;
    overflow: hidden;
}

#caption{
    display: inline-block;
    vertical-align: top;
    color: #fff;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
    margin-bottom: 5%;
}

#caption.hide{
    opacity: 0;
}

#logs > h2{
    font-size: larger;
    font-weight: normal;
    padding: 1px;
    margin-bottom: 3%;
    position: relative;
    text-align: center;
}

#logs h2::before,
#logs h2::after{
    background-image: linear-gradient(
        to right, transparent, #fff 50%, transparent
    );
    background-repeat: no-repeat;
    content: '';
    height: 2px;
    width: 100%;
    max-width: 15rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    position: absolute;
}

#logs h2::after{
    top: 0;
}

#logs h2::before{
    bottom: 0;
}

#logs > p{
    margin-top: 0;
}

#up{
    display: inline-block;
    width: 400px;
    filter: drop-shadow(0 0 5px);
    position: absolute;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#up.hide{
    opacity: 0;
}

#up > img{
    width: 100%;
}

#movie{
    margin: 0;
    padding: 0;
    margin-top: 5%;
}

#movie h2{
    color: #fff;
    position: relative;
}

#movie h2::before,
#movie h2::after{
    background-image: linear-gradient(
        to right, transparent, #fff 50%, transparent
    );
    background-repeat: no-repeat;
    content: '';
    height: 2px;
    width: 100%;
    max-width: 15rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    position: absolute;
}

#movie h2::after{
    top: 0;
}

#movie h2::before{
    bottom: 0;
}

iframe{
    max-width: 384px;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#name-mobile{
    display: none;
}

#up-mobile{
    display: none;
}

#sheet-mobile{
    display: none;
}

#alt-button-mobile{
    display: none;
}

/*1224px以下*/
@media screen and (max-width: 1224px){

    #charactor{
        padding-bottom: 300px;
        margin-bottom: 2em;
    }

    #about{
        width: 50%;
        position: relative;
    }

    #alt-button{
        position: absolute;
        top: 100px;
        right: 0;
    }

    #text{
        width: 100%;
    }

    #profile{
        width: 100%;
        margin-bottom: 2em;
    }

    #history{
        width: 100%;
        margin-left: 0;
    }
}


/*920px以下*/
@media screen and (max-width: 920px){

    #charactor{
        padding-bottom: 350px;
    }
    
    #sheet{
        margin: 0;
        margin-bottom: 2em;
    }
}

/*821px以下*/
@media screen and (max-width: 821px){

    #charactor{
        padding: 0;
        text-align: center;
    }
    
    #name-mobile{
        text-align: center;
        display: inline-block;
    }

    #name-mobile h2{
        font-family: 'YuGothic', 'Yu Gothic', sans-serif;
        margin: 0;
        color: #fff;
        font-size: 180%;
        padding-bottom: 0;
        line-height: 1.5rem;
    }

    #name{
        display: none;
    }

    #sheet-mobile{
        display: block;
    }

    #sheet{
        display: none;
    }

    #up{
        position: static;
        right: 50%;
        margin: auto auto;
        margin-bottom: 5em;
    }

    #full{
        align-items: flex-end;
    }

    #alt-button-mobile{
        display: inline-block;
        width: 50px;
        height: 50px;
        transform: rotate(45deg) ;
        text-align: center;
        align-items: flex-end;
        border: #fff solid;
        text-decoration: none;
        margin-bottom: 3em;
    }
    
    #alt-button-mobile p{
        font-weight: bold;
        font-size: 150%;
        line-height: 50px;
        transform: rotate(-45deg);
        margin: 0;
    }

    #alt-button{
        display: none;
    }

    #about{
        width: auto;
        padding-left: 0;
    }

    #profile{
        width: auto;
        text-align: left;
    }

    #caption{
        text-align: left;
    }

    #text{
        text-align: center;
        line-height: 1.8rem;
    }
}

/*604px以下*/
@media screen and (max-width: 604px){
    #name-mobile,
    #name-mobile h2,
    #ruby{
        text-align: center;
    }

    #up{
        max-width: 100%;
        height: auto;
    }

    iframe{
        max-width: 100%;
        height: auto;
    }
}

/*569px以下*/
@media screen and (max-width: 569px){

    #full{
        max-width: 100%;
        height: auto;
    }

    #full > img{
        width: 100%;
    }
}