:root{
    --messageHaikei:rgb(200, 238, 247);
    --button:rgb(47, 169, 250);
    --buttonBorder:rgb(110, 193, 248);
    --buttonMoji:white;
    --buttonShadow:rgb(139, 165, 171);

    --buttonHover:rgb(10, 105, 168);
    --buttonHoverBorder:rgb(31, 114, 169);
    --buttonHoverMoji:rgb(185, 184, 184);

    --buttonDis:rgb(86, 86, 86);
    --buttonDisBorder:rgb(145, 144, 144);
    --buttonDisMoji:rgb(198, 196, 196);

    --send:rgba(250, 220, 216, 0.6);
    --userSend:rgb(251, 174, 164);
    --sendBorder:rgba(253, 187, 178, 0.6);
    --sendFocus:rgb(252, 205, 198);

    --soshin:rgba(251, 141, 126, 0.6);

    --soshinBorder:rgba(251, 174, 164, 0.6);
    --topic:rgb(16, 132, 210);
    --fonts:sans-serif;
    /*--fonts:"DotGothic16", sans-serif;*//*左のにすると字がカクカクになる*/
}

@keyframes ppFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.anime{
    font-family: var(--fonts);
    animation: ppFade 0.4s ease-in-out forwards;
}

#splash-screen {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color:#000000;
    /* 背景色 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    /* 一番手前に */
    transition: opacity 0.8s ease;
    /* 消える時のフェード用 */
}

.splash-logo {
    width: 400px;
    /* ロゴの大きさ */
    animation: logo-fade 1.5s ease-out forwards;
    text-align: center;
    vertical-align: middle;
    /* 待機中のふわふわ感 */
}

.tarminal{
    font-family: "DotGothic16",sans-serif;
    text-align: left;
    color: rgb(224, 239, 96);
    position: fixed;
    left: 3em;
    bottom:0;
    white-space: pre;
}
#kidou{
    text-align: left;
    white-space: pre;
}

.main{
    font-family: var(--fonts);
}

.loaded {
    opacity: 0;
    pointer-events: none;
    /* 下のボタンなどを押せるようにする */
}

@keyframes logo-fade {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

html {
    /*font-size: min(max(3vh, 3vw, 20px), 25px);*/
    font-size: max(calc(8px + 1vw), calc(5px + 2.8vh));;
    text-align: center;
    height: 100vh;
        /* 100%ぴったり */
    width: 100vw;
        /* 画面幅ぴったり */
    overflow: hidden;
        /* 全体のスクロールを禁止 */
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--messageHaikei);
    height: 100vh;
    /* 100%ぴったり */
    width: 100vw;
    /* 画面幅ぴったり */
    overflow: hidden;
    /* 全体のスクロールを禁止 */
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none;
}

.img{
    width: 70%;
}

.messagesArea::before{
    content:"";
    display: block;
    height: 100vh;
}

.messagesArea {
    height: 100vh;
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    background-color: var(--messageHaikei);
    text-align: left;
    padding: 0 min(3em, 5vw) 0 min(3em, 5vw);
    -webkit-overflow-scrolling: touch;
}

.messagesArea::after {
    content: "";
    display: block;
    height: 8em;
}

.finishTopic{
    position:fixed;
    bottom:calc( 6vh + 3rem );
    right: 10vw;
}

.menu{
    background-color: var(--userSend);
    padding:0 0.3em 0 0.3em;
    border-radius: 100vmax;
    position:fixed;
    top :1em;
    right: 1em;
    z-index: 10000;
}

em{
    font-style: normal;
    font-weight: 700;
}

/*.sumaho{
    width: 90vw;
    text-align: center;
    margin: auto;
}*/

.rogo{
    z-index: 10001;
    width: min(10em,30vw);
    height: auto;
    margin-left: 1em;
    margin-right: auto;
    position: fixed;
    left: 0;
}

.sendButton{
    font-family: var(--fonts);
    margin:2px 5px 2px 5px;
    padding: 2px 10px 2px 10px;
    border-radius: 100vmax; 
    border: 0.2em solid var(--buttonBorder);
    background-color: var(--button);
    color: var(--buttonMoji);
    font-weight: 500;
    vertical-align: middle;
    font-size: 0.7rem;
    height: 1.5rem;
    /*min-height: 20px;*/
    box-shadow: 0 3px 0 var(--buttonShadow);
        /* ボタンの縁と同じ色の影を下に3px出す */
    transition: all 0.1s;
        /* 動きを滑らかにする */

}

.sendButton:active:enabled {
    transform: translateY(2px);
    transform: translateY(2px);
            /* 2px沈む */
    box-shadow: 0 1px 0 var(--buttonShadow);
            /* 影を1pxに縮める */
}

.select{
    border-radius: 100vmax;
    margin-top: 1em;
}

.sendButton:hover{
    border: 0.2em solid var(--buttonHover);
    background-color: var(--buttonHoverBorder);
    color: var(--buttonHoverMoji);
}

.video{
    border : 2px solid black
}



.sendButton:disabled{
    background-color: var(--buttonDis);
    border:0.2em solid var(--buttonDisBorder);
    color:var(--buttonDisMoji);
    box-shadow: none;
        /* 影を消して平坦にする */
    opacity: 0.6;
        /* 少し薄くする */
}

.topic{
    font-size: 0.8em;
    vertical-align: middle;
    text-align: left;
    color:var(--topic)
    /*border: 1px solid var(--topicBorder);*/
}

.sendText{
    font-family: var(--fonts);
    height: 1.5rem;
    /*height: 3vh;*/
    width:35vw; 
    /*margin:auto auto auto 10px;*/
    border-radius: 100vmax;
    background-color: var(--send);
    border: 2px solid var(--sendBorder);
    text-indent: 0.2rem;
    margin:2px 0px 2px 5px;
    padding: 2px 1rem 2px 1rem;
    font-size: 1rem;
    z-index: 10000;
}

.sendText:focus{
    outline: none;
    border: 2px solid var(--sendBorder);
    background-color: var(--sendFocus);
}


.soshin{
    background-color: var(--soshin);
    height: fit-content;
    width: 80vw;
    /*text-align: center;*/
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    position:fixed;
    bottom: 6vh;
    /*margin-bottom: 6vh;*/
    border-radius: 100vmax;
    padding : 0.2rem 0.5rem 0.2rem 0.5rem;
    border: 2px solid var(--soshinBorder);
}


.userText{
    border-radius: 100vmax 0px 100vmax 100vmax;
    padding: 0.1rem 0.5rem 0.1rem 0.5rem;
    font-size: 1rem;
    vertical-align: bottom;
    font-weight: 500;
    width: fit-content;
    margin-top: 3em;
}

.byNyuryoku{
    border: 0.1em solid var(--sendBorder);
    background-color: var(--userSend);
}

.byButton{
    border: 0.1em solid var(--buttonBorder);
    background-color: var(--button);
    color: var(--buttonMoji);
}



h2{
    color:black;
    font-size: 2rem;
}
h3{
    color:blueviolet;
    font-size: 1.5rem;
}
h4{
    color: black;
    font-size: 1rem;
}
p{
    white-space: pre-wrap;
    font-size: 0.9rem;
    margin:0.5em 1em 0.5em auto;
}

hr{
    border-color: blueviolet;
    width: 98%;
    text-align: left;
    margin : 1em 0 2em 0
}

table{
    border: 3px solid blueviolet;
    border-collapse: collapse;
}

td{
    border: 1px solid blueviolet;
    padding: 0 0.5em 0 0.5em;
}

