@import url("./font.css");
@import url("./loading.css");
@import url("./shutter.css");
@import url("./menu_button.css");
@import url("./humberger.css");
@import url("./apps/KanjiNinshiki.css");
@import url("./apps/KankenMode.css");

* {
    margin: 0px;
    padding: 0px;
    user-select: none; /* 画像や文字の選択がでk無くする */
}

html{
    /* background: url(../img/ETC/wall2.jpeg); */
    /* background-size: contain; */
    background: #666;
}

body{


    /* https://tech.drecom.co.jp/ac2021-pwa-for-ios/ */
    padding-bottom: env(safe-area-inset-bottom);


    /*background: radial-gradient(#7fffd4, transparent);*/
    /*-- 画面を下に引っ張ってリロードするのを防ぐ (下にスワイプするとリロードを防ぐ)--*/
    /*overscroll-behavior-y: none;*/
    overscroll-behavior-y: contain;
    overscroll-behavior: none;
    perspective: 3600px;

    /*
     アニメーションで横スライドすると横スクロールが出てしまうのを防ぐ 
    https://the-zombis.sakura.ne.jp/wp/blog/2020/08/11/post-4375/
    */
    overflow-x: hidden;

    /*
    display: flex;
    justify-content: center;
    height:100vh;
    min-height: var(--sp_height);
    flex-wrap: wrap;
    align-content: space-around;
    background:black;
    */
    font-family: "Noto Sans JP","游ゴシック Medium","Yu Gothic Medium","YuGothicWIN M","游ゴシック体",YuGothic,"游ゴシック","Yu Gothic","ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN","HiraKakuProN-W3","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Helvetica,"メイリオ",Meiryo,"Lucida Grande",Osaka,"ＭＳ Ｐゴシック","MS PGothic",Arial,"Lucida Sans Unicode",verdana,Sans-Serif; 
    /* font-family: "Klee One", "Noto Sans JP","游ゴシック Medium","Yu Gothic Medium","YuGothicWIN M","游ゴシック体",YuGothic,"游ゴシック","Yu Gothic","ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN","HiraKakuProN-W3","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Helvetica,"メイリオ",Meiryo,"Lucida Grande",Osaka,"ＭＳ Ｐゴシック","MS PGothic",Arial,"Lucida Sans Unicode",verdana,Sans-Serif;*/

}

h1{
    margin-top: 10px;
}


.offline{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 98;
    background: rgb(205, 248, 112);
    color:#333;
    display: none;
    justify-content: center;
    align-items: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.offline img{
    width:40px;
}


.ruby{
    display: inline-block;
    /*line-height: 3rem;*/
    line-height: 100%;
    
  }

  [data-rb] {
    position: relative;
  }

  [_data-rb]::before {
    content: attr(data-rb);
    position: absolute;
    /* top: -0.9em; */
    top: -0.3rem;
    left: -0.4rem;
    /* right: -0.7em; */
    right: -0.4rem;
    font-size: 0.5em;
    text-align: center;
    white-space: nowrap;
    /*line-height: 140%;*/
    line-height: 1rem;
    text-indent: 0;
}

  [data-rb]::before {
    content: attr(data-rb);
    position: absolute;
    /* top: -0.9em; */
    /*top: -0.2rem;*/
    top: -1rem;
    left: -0.4rem;
    /* right: -0.7em; */
    right: -0.4rem;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    /* line-height: 140%; */
    line-height: 1rem;
    text-indent: 0;
}

.start_shutter{
    pointer-events: none;
}
.start_shutter [data-rb]::before {
    /*
    content: attr(data-rb);
    position: absolute;
    */
    top: -2.8rem;
    left: 0;
    /*
    right: -0.4rem;
    font-size: 0.5em;
    text-align: center;
    white-space: nowrap;
    line-height: 1rem;
    text-indent: 0;
    */
  }

.icon_explanation{
    background: rgb(222,255,110);
    border: solid 1px #333;
    color: #333!important;
    position: absolute;
    padding: 0.3rem;
    margin-top: -100px!important;
    margin-left: -40px;
    width: 5rem;
    writing-mode: horizontal-tb;
    display: flex!important;
    justify-content: center;
    border-radius: 8px;
}

/*画像長押しでiPhone等スマホ独自メニューを出さない*/
img {
    /*pointer-events: none;*/
  }


/* 後でjsonから読み込むスタイルに変更するので削除する*/

/*
body{
    margin: 0;
}
html{
    margin: 0;
}
*/
#data_screen{
    box-shadow: -1px 0px 5px 0px rgb(0 0 0);
    /*width:100vw;*/
    width:100%;
    height:100dvh;/* 20230611 これを活かす*/
    /*background:orange;*/
    /*background:white;*/
    /*background: rgb(205,248,112);*/ /* 20230612*/
    overflow: scroll;

}
/*
div{
    margin:0px;
    padding:0px;
    display: inline-block;
}
*/

/*---------------------------------  20231030 一時的コメントアウト*/
#container::-webkit-scrollbar{
    display:none;
}
#data_screen::-webkit-scrollbar{
    display:none;
}
.result_mark_wrapper::-webkit-scrollbar{
    display:none;
}
*::-webkit-scrollbar{
    display:none;
}
/*----------------------------------------*/

#container{
    /*border: solid;*/
    /*box-shadow: 10px 10px 10px rgba(0,0,0,1);*/

    /* 20230317 -------------
    margin:0px;
    padding:0px;
    padding:0px;
    display: block;;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 0; 
    height:100%;
    ---------------- 20230317 */
    background:rgba(69,163,113,1);
}
#header{
 width:100%;
 height:8vh;
 font-size:1rem;

 display: flex;
 flex-direction: row;
 align-items: center;

 /*
 margin:0px;
 display:inline-block;
 position:fixed;
 top:0px;
 left:0px;
 border:solid 1px red;
 */
 /*background:rgba(240,240,240,0.8);*/
}

#main{
 width:100%;
 height:84vh;
 display:inline-block;
 font-size:1rem;
 /*
 margin:0px;
  display:inline-block;
 position:relative;
 border:solid 1px red;
 background:rgba(255,0,0,0.8);
 */
 /*background:rgba(255,240,240,0.8);*/

 background: rgba(78,78,78,1); /* 20230612 */
}

#footer{
 /*display:none;*/ /* 最初はnoneでloading後 flexに */
 display: flex;
 width:100%;
 font-size:1rem;
 align-items: center;
 justify-content: space-between;
}

#footer_left{
    display:flex;
}

#footer_right{
    display:flex;
    width:100%;
    flex-direction: row;
    justify-content: flex-end;
    margin-right: 3rem;
    align-items: center;
}

#footer_right > div > img{
    margin-right:2rem;
}

#cont_sound{
  position: relative;
  /*
  width:40px;
  height:40px;
  */
}
.cont_sound_off{
  position: relative;
  /*
  width:40px;
  height:40px;
  */
}

.cont_sound_off::after{
    position: absolute;
    top: 50%;
    margin-top: -3px;
    left: -5px;
    content: "";
    display: block;
    width: 40px;
    border-top: 5px solid #C00;
}

.cont_sound_off::after {
    transform: skewY(45deg);
  }
/*
.cont_sound_off::after{
    transform: skewY(-45deg);
}
*/

#user_name{
    min-width:100px;
    height:2.5rem;
    line-height:2.5rem;
    border-radius:1.5rem;
    border:solid 1px blue;
}


#main_header{
    /*background:rgba(240,240,255,0.8);*/
    background:rgba(69,163,113,1);
   /* background:blue;*/
    width:100%;
    height:10%;
 font-size:1rem;
}

#main_container{
    background: rgba(224 ,255, 255,0.8);
    width:100%;
    height:80%;
 font-size:1rem;
}

#main_footer{
    /*background:pink;*/
    /*background: rgba(240,240,255,0.8);;*/
    background:rgba(69,163,113,1);
    width:100%;
    height:10%;
 font-size:1rem;
}

#modal_mask {
    width: 100%;
    height: 300%;
    background: black;
    opacity: 0.5;
    position: absolute;
    top: 0;
    z-index: 20;
    display: none;
}


#humberger{
    /*background: #10154f;*/
    border-radius: 10px;
    padding: 15px 10px 10px 10px;
}


/* Edge スクロールバー非表示 */
/*----------- 20231030 一時的コメントアウト*/
#pageIndex::-webkit-scrollbar {
    display:none;
}
/*----------------------------*/







#top_menu_bar {
    /* height: 100%; */
    position: absolute;
    /*margin-top: 75px;*/ /* 20230614*/
    /*top: 0px;*/ /* 20230614*/
    /*left: -175px;*/  /* 20230614*/
    /*width: 200px;*/
    box-shadow: 0 1px 4px rgb(0 0 0 / 24%);
    /*
    background-color: #eb5f96;
    background: -webkit-linear-gradient(45deg, #f7c7c9 0%,#eb5f96 100%);
    background: -webkit-linear-gradient(45deg, #666 0%,rgba(240 240 255 0.8) 100%);
    */
    background: linear-gradient(45deg, #666 0%, #fff 100%);
    z-index: 99999;
    filter: alpha(opacity=25);
    -moz-opacity: 0.25;
    opacity: 0.25;
    /*--------
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
    --------*/
    /*border-radius: 0px 10px 10px 0px;*/
    bottom:5rem;  /* 20230614*/
    border-radius: 10px 0px 0px 10px;
    right: -175px;
;

}

#top_menu_bar p {
    margin-left: 0.5rem;
    margin-top: 10px;
    width: 170px;
    background-color: white;
    text-align: center;
   /* background-image: url(../img/kirikae.png);*/
    background-repeat: no-repeat;
    background-position: left center;
    /*
    margin-bottom: 10px;
    height: 30px;
    padding-top: 14px;
    padding-right: 3px;
    padding-bottom: 3px;
    padding-left: 3px;
    border-radius: 0px 5px 5px 0px;
    */
    border-radius: 5px 0px 0px 5px ;
}

#top_menu_bar ul {
    border: solid 0px red;
    list-style: none none outside;
    color: blue;
    margin: 2px;
    padding:10px;
    width: 180px;
    margin: 0;
    padding: 2px;
}

#top_menu_bar li {
    width: 170px;
    list-style-type: none;
    background-color: white;
    margin: 10px 0 1rem 0.5rem;
    border-radius: 5px 0px 0px 5px;
}

#top_menu_bar li a{
    display: flex;
    text-decoration: none;
    color: black;
    justify-content: center;
    height: 3rem;
    align-items: center;
}


.today_now{
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-left:1rem;
  color:rgb(200,222,97);
}

.month_day{
    font-size:2rem;
}
.week{
    font-size:1.4rem;
}
.time{
    font-size:2rem;
    display: flex;
}

#user_name{
    text-align: center;
    padding: 0 1.5rem 0 1.5rem;
    font-weight: bold;
    font-size:1.3rem;
    border:solid 1px rgb(131,131,131); 
    color:rgb(61,112,57);
    /*background: linear-gradient(rgb(231,231,231),rgb(231,231,231),rgb(131,131,131));*/
    background: linear-gradient(rgb(231,231,231),rgb(231,231,231));
}


.clock_flash{
  animation: clock_flash 1s linear; 
  animation-iteration-count: 1;
}
@keyframes clock_flash {
    0%,100% {
      opacity: 1;
    }
    /*
    90%{
      opacity: 0;
    } 
    */
    80% {
      opacity: 0;
    }
  }


 #now_question_number{
    position: relative;
    width: 20%;
    height: 60%;
    background: rgb(37,53,46);
    display: flex;
    justify-content: center;
    color: rgb(235,255,113);
    /* font-size: 1.5rem; */
    font-size: 0.8rem;
    text-align: center;
    align-items: center;
    margin-left: 8%;
    border-radius: 20px;
    font-weight: bold;
    border: solid 4px rgb(118,224,97);
    letter-spacing: 0em;
    font-family: auto;
}

.panel_active:hover,.next_p_btn:hover{
  opacity:0.6; 
} 



.keisyou{
    color:white;
    display: flex;
    line-height: 2.4rem;
    /* align-items: flex-end; */
    vertical-align: bottom;
}
.keisyou span{
    height: 1.4rem;
}



.notification {
    position: relative;
    cursor: pointer;
    padding: 1rem;
}

.notification i {
    font-size: 2rem;
    color:white; /* 20230612*/
}

.notification-badge {
    position: absolute;
    top: 0.5rem;
    left: 2.2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E93F33;
    color: white;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    /*
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    border-radius: 50%;
    background-color: #E93F33;
    color: white;
    font-size: 19px;
    justify-content: center;
    align-items: center;
    */
}


.label_wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width:1.5rem;
    
    /*margin-left:-40px;*/
    /*bottom: 4rem;*/
    /*
    position:relative;*
    bottom: 13rem;
    */
}

.learn_mode{
   /* position: absolute;*/
  /*  bottom: 4.2rem; */ /* 20230612 */
    padding: 0.5rem 0 0.5rem 0;
    background: rgb(205, 248, 112);
    border-radius: 0 0.4rem 0.4rem 0;
    writing-mode: vertical-rl;

    /*margin-bottom: 130px; */ /* 20230612 */
   /* margin-bottom: 45rem;*/ /* 20230614 */
    /*height: 4.1rem;*/
    height:25%;
    min-height : 4rem;
    text-align: center;
    position: relative;
    margin-bottom:2px;
}

.kind_label{
    /*
    color: white;
    font-size: 1.2rem;
    width: 10rem;
    position: absolute;
    right: 0;
    margin-top: 100px;
    height:35px;
    border-radius: 0px 0px 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    */

    /*display:none;*/


    border-radius: 0 0.4rem 0.4rem 0;
    writing-mode: vertical-rl;
   /* height: 33rem;*/
    /*height:65%;*/
    height:4.8rem;
    width:21px;
    margin-top:0rem;
    text-align: center;
    position: relative;
   /* color: #666;*/
   /*
    background: rgb(200 200 200);
    color: rgba(0, 0, 0, 0.3);
    */
    margin-bottom:1px;
    display:none;
}

.kind_this{
    position: absolute;
    margin-left: 1.8rem;
    color: yellow;
    font-size : 0.5rem;
    display:none;
}