@charset "UTF-8";
html{
    overflow: auto;
}
body{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: serif;
    color: #000;
    background-color: #fff;
}
#screen{
    position: relative;
/*  width: 900px; 640 */
/*  height: 675px; 980 */
    width: 480px;  /* 480 */
    height: 735px;  /* 735 */
    margin: 10px auto;
    background-color: #000;
    overflow: hidden;
}

#bgimg{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;     /* 最背面に表示 */
    object-fit: cover;  /* アスペクト比を維持 */
}

.charaposition{
    position: absolute;
    width: 480px;
    height: 735px; 
}

#chara1{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;     /* 最背面から２番目に表示 */
    object-fit: cover;  /* アスペクト比を維持 */
}

#charaposition1{/*一人、三人表示*/
/*    left: 240px; */
    left: 0;
    right: 0;
}
#charaposition2{/*二人表示*/
    left: 140px;
}
#charaposition3{/*二人表示*/
    left: 460px;
}
#charaposition4{/*三人表示*/
    left: 0;
}
#charaposition5{/*三人表示*/
    left: 600px;
}

/***** メッセージボックス ******/
#messbox{
    position: absolute;
    opacity: 0.6;
    /* width: 850px; */
    width: 450px;
    height: 100px;
/*    top: 580px;  */
    top: 530px;
    left: 0px;
    right: 0px;
    bottom: 5px;
    margin: auto;
    background-color: #fff;
    border: double 10px #000;
    z-index: 3;
}

#textbox{
    width: 400px;
    height: 140px;
    margin: -10px auto;
}

#text{
    color: #000;
    font-size: 1.1rem;
    /* font-family: serif; */
    font-family: Gothic;
}

.selectBox{
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
    z-index: 10;
    display: none;
}

.show{
    display: block;
    z-index: 10;
}
.none{
    display: none;
}

.select{
    position: absolute;
    width: 300px;
    height: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #000;
    border: solid 5px #fff;
    border-radius: 20px 50px;
    box-shadow: inset -2px -2px 4px 4px rgba(0,0,0,.5),2px 2px 4px 4px rgba(0,0,0,.5);
}

#select1{
    top: 50px;
}
#select2{
    top: 200px;
}
#select3{
    top: 350px;
}

.selectText{
    margin: 15px auto;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
}


/***** アニメーション フェードイン ******/
/*フェードイン*/
@keyframes fadein{
    0%{
        opacity: 0;
    }100%{
        opacity: 1;
    }
}
.fadein{
    animation-name: fadein;   /*どのアニメーションを使用するか*/
    animation-fill-mode: forwards;   /*アニメーションの最後の値を保持するか（今回は保持する）*/
    animation-duration: .5s;      /*アニメーション1回あたりの再生時間（今回は0.5秒）*/
    animation-timing-function: ease;    /*アニメーションの再生方法（今回は均一な速度で再生される）*/
}

/*フェードアウト*/
@keyframes fadeout{
    0%{
        opacity: 1;


    }100%{
        opacity: 0;
    }
}
.fadeout{
    animation-name: fadeout;
    animation-fill-mode: forwards;
    animation-duration: .5s;
    animation-timing-function: ease;
}

/*フェードアウトイン*/
@keyframes fadeoutin{
    0%{
        opacity: 1;
    }50%{
        opacity: 0;
    }100%{
        opacity: 1;
    }
}
fadeoutin{
    animation-name: fadeoutin;
    animation-fill-mode: forwards;
    animation-duration: 3s;
    animation-timing-function: ease;
}
