*{
    font-family:sans-serif;
}
body{
    margin:0;
    padding:0;
    overflow-x: hidden;
}
h1{
    font-family:'Righteous';
    margin:0;
    padding:0;
    line-height:1em;
    font-size:30px;
    margin-left:30px;
    margin-bottom:10px;
}
/* input[type="file"],droparea*/
#filearea{
    position:fixed;
    top:0;
    width:100%;
    height:200px;
    padding:0;
    margin:0;
    padding-top:20px;
    background:#fff;
    z-index:1;
}
form,#droparea,input[type="file"]{
    position:relative;
    left:50%;
    transform: translateX(-50%);
    margin:0;
    padding:0;
    overflow: hidden;
    cursor:pointer;
    width:98%;
}
input[type="file"]{
    background:rgba(0,0,0,0);
    width:98%;
    padding:15px 25px;
    text-align:center;
    color:#ccc;
    z-index:2;
}
input[type="file"]::first-letter{
    font-weight:600;
    font-family:'Font Awesome 5 Free';
    text-align: center;
    font-size:32px;
}
input[type="file"]:before{
    content:'\e4ee \Aファイルをドラッグ＆ドロップしてください。\A\Aまたは　';
    color:#ccc;
    font-size:20px;
}
.over input[type="file"],.over input[type="file"]:before{
    color:#000;
}
.out{
    background:#fff;
    border:#ccc 3px dotted;
}
.over{
    background:#ccc;
    border:#333 3px dotted;
    color:#000;
}
.drop{
    background:#fff;
    border:#000 3px solid;
    color:#000;
}
input[type="file"].read{
    color:#000;
}
input[type="file"].read:before{
    content:'\f058 \Aファイルの読み込みが完了しました。\Aファイルを変更する場合はドラッグ＆ドロップしてください。\A\Aまたは　';
    color:#000;
    font-size:16px;
}
/* main~result */
#main{
    position:absolute;
    top:250px;
    margin-left:40px;
}
#outputbody{
    border:1px solid #ccc;
    height:200px;
    width:80%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
#diceResult,#otherType{
    display:relative;
}
.targetTAB,.targetMEM{
    display:inline-block;
    font-weight:bold;
}
.targetTAB:after{
    content:'';
    margin-right:2em;
}
.targetMEM:after{
    content:'：';
}
.targetTXT{
    display:block;
}
.targetCHAT{
    margin-bottom:1.5em;
}
#diceResult,#otherType,#reOutput textarea,#grow02{
    width:50vw;
    height:15em;
    border:solid 2px #000;
}
/* checkbox */
input[type="checkbox"]{
    cursor:pointer;
}
/* button */
button[type="button"]{
    border:none;
    outline:none;
    padding:5px 15px;
    cursor:pointer;
    background:#efefef;
}
#outputBtn:hover,#growBtn:hover{
    background:#000;
    color:#fff;
}
.copy:hover{
    background:#0066ff;
    color:#fff;
}
.disco{
    background:#535fee !important;
    color:#fff !important;
}
.disco:hover{
    background:#000 !important;
    color:#959df3 !important;
}
.backed{
    background:#a3a3a3 !important;
    color:#fff !important;
}
.backed:hover{
    background:#434343 !important;
    color:#c3c3c3 !important;
}
#toggleType:hover{
    background:#000;color:#ccc;
}
.inline-memo{
    display:inline-block !important;
}
/* select */
select{
    border:none;
    outline:none;
    border-bottom:solid 2px #000;
    margin-right:1em;
    width:18.5em;
}
.requied{
    border-bottom:solid 2px #ff4500 !important;
}
/* textarea class */
.copied{
    border:solid 2px #0066ff !important;
    background:#b8d0f3 !important
}
/* add contents */
#outputA,#outputB{
    margin:0;
    padding:0;
    margin-left:0.5em;
}
#outputA:before,#outputB:before{
    content:'（';
}
#outputA:after,#outputB:after{
    content:'）';
}
/* grow */
#growArea{
    display:flex;
    flex-direction: column;
    margin-bottom:0.8em;
}
#growArea div{
    margin:5px 0;
}
#growArea div label{
    display:inline-block;
    width:8em;
}
#growArea div input[type="text"]{
    border:none;
    outline:none;
    border-bottom:solid 2px #ccc;
    margin-left:1em;
    width:17em;
}
#growArea div input[type="text"]:focus{
    border-bottom:solid 2px #000;
}
/* memo */
p.info{
    font-size:small;
    color:#888;
}
p.has-memo span.help{
    cursor:help;
}
p.has-memo span.help:after{
    content:'\f059';
    font-family:'Font Awesome 5 Free';
    margin-left:0.5em;
}
.info-memo{
    background:rgba(0,0,0,0.8);
    color:#fff;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 12px;
    width: 90%;
    position: absolute;
    margin-left:35vw;
    z-index:999;
}
.info-memo:before{
    content:'\f05a\A';
    font-family:'Font Awesome 5 Free';
    white-space: pre-wrap;
    font-size:16px;
    padding:3px;
    font-weight:600;
}
.ex{
    margin:0.5em 1em;
    border-left:3px solid rgba(255,255,255,0.5);
    padding-left:0.5em;
    font-size:12px;
    color:#ccc;
}
/* link */
a:link,a:visited{
    color:#003cff;
    text-decoration:none;
}
a.tw:link,a.tw:visited{
    color:#333;
    text-decoration:none;
}
a.link:link,a.link:visited{
    color:#ccc;
    text-decoration:none;
}
a:hover,a.tw:hover,a.link:hover{
    color:#000;
}
.hide-form:before{ content:'ファイル選択ボックスを開く'; }
.show-form:before{ content:'ファイル選択ボックスを閉じる'; }
.no-top-margin{top:100px !important;}
.min-form{height:80px !important;}
#close-file{margin-left:30px;}
#close-file span{cursor:pointer;opacity:0.5;}
#close-file span:hover{opacity:1;}
#close-file span:after{content:'';font-family:'Font Awesome 5 Free';font-weight:600;margin-left:1em;}
.hide-form:after{ content:'\f078' !important; }
.show-form:after{ content:'\f077' !important; }
/* loading */
#loading{
    position:fixed;
    margin:0;
    padding:0;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    overflow:hidden;
    z-index:999;
    background:rgba(255,255,255,0.9);
    cursor:url(me.cur), wait;
}
#loading div{
    position:fixed;
    margin:0;
    padding:0;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    background:rgba(0,0,0,0);
    color:#000;
    letter-spacing: 1em;
    font-family:'Darumadrop One',sans-serif !important;
    font-size:30px;
    font-weight:bold;
    animation:2s load infinite;
}
/* preSelect */
#preSelect{
    margin:15px 0 30px;
    width:100%;
    overflow: hidden;
    display:flex;
}
.item{
    display:flex;
    margin-left:1em;
}
#on-off{
    width:4em;
}
#on-off-btn{
    display:inline-block;
    width:50px;
    height:20px;
    padding:2.5px;
    border-radius:25px;
    background:#ccc;
    transition:0.2s;
    cursor:pointer;
}
.on{
    background:#0066ff !important;
}
#on-off-pointer{
    width:10px;
    height:10px;
    padding:5px;
    border-radius:25px;
    display:inline-block;
    background:#fff;
}
.point-right{
    margin-left:28px;
    display:inline-block;
}
label{
    cursor:pointer;
}
#newGrowBtn{
    background:#0066ff;
    color:#fff;
}
#newGrowBtn:hover{
    background:#000;
}
/* footer */
#footer{
    font-size:smaller;
}
#footer p{
    font-size:10px;
}
@keyframes load{
    0%{
        opacity:0;
    }
    50%{
        opacity:1;
    }
    100%{
        opacity:0;
    }
}
/* for portrait */
@media only screen and (orientation: portrait){
    #result{
        margin-left:10px;
        margin-right:10px;
        white-space: wrap;
    }
    p.info{
        width:95%;
    }
    input[type="file"]:before{
        content:'\e4ee \Aファイルをドラッグ＆ドロップ\Aしてください。\A\Aまたは　';
        color:#ccc;
        font-size:12px;
    }
    input[type="file"].read:before{
        content:'\f058 \Aファイルの読み込みが完了しました。\Aファイルを変更する場合は\Aドラッグ＆ドロップしてください。\A\Aまたは　';
        color:#000;
        font-size:12px;
    }
    #preSelect{
        flex-direction: column;
    }
    .item{
        margin-left:0.5em;
    }
    #on-off{
        width:3em;
    }
    #on-off-description{
        font-size:12px;
        padding-top:2px;
    }
    #main{
        margin-left:1em;
        margin-right:1.5em;
    }
    h1{
        margin-left:0;
        text-align: center;
    }
}