/*z-indexは必ずここに記述*/
#closeBtn {
    display: none;
}
#river {
    position: absolute;
    width:70%;
    top: 30%;
    left: 17%;
}
#bridge {
    position: absolute;
    width:70%;
    top: 30%;
    left: 14.5%;
}
#orihiko,#orihiko2,#orihiko3 {
    position: absolute;
    width:70%;
    top: 30%;
    left: 14.5%;
}

/*プログレスバー*/
.barDIV1{
    width: 71%;
    padding: 1%;
    margin: 1% auto 0 auto;
    /* background-color: #eceded; */
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.barDIV2{
    background-color: #faf3e3;
    width: 100%;
    height: 10px;
    border-radius: 10px;
}
#bar1{
    background-color: #29c4d8;
    width: 0;
    min-width: 20px;/*角丸を維持するために最小幅を設定してあります*/
    opacity: 0;/*最小幅を設定してあるため1フレーム目はバーが見えないようにしてあります*/
    height: 10px;
    border-radius: 10px;/*ボーダーの角丸は縦幅の50%です*/
}
@keyframes bar1{
      5%{opacity: 1;}
      100%{width: 100%;opacity: 1;}
 }

#loadingView{
    background-color: #FFF;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    margin: auto;
    max-height: 100vh;
    aspect-ratio: 256 / 155;
    position: relative;
}
/*指定のandroidタブレットの場合にのみ適用*/
@media (min-width: 1280px) and (max-height: 800px) and (min-height: 700px){
    #loadingView{
        height: 100vh;
        width: 100%;
        aspect-ratio: initial;
    }
    .modal1BTN{
        margin-top:45px !important;
    }
    .window1BTN{
        margin-top:20% !important;
    }
    .window1BTN2{
        top: 77% !important;
    }
    .btnGanbaru{
        top: 65.2% !important;
    }
    .btnGanbaruBlinking{
        top: 57% !important;
    }
}

 /*ローディング関連
    */
    .fadein {
        animation : fadeIn 500ms;
        animation-fill-mode: both;
      }
      @keyframes fadeIn {
        0% {
          display: block;
          opacity: 0;
        }
        100% {
          opacity: 1;
        }
      }
      .fadeout {
        animation : fadeOut 500ms;
        animation-fill-mode: both;
      }
      @keyframes fadeOut {
        0% {
          opacity: 1;
        }
        100% {
          opacity: 0;
          display: none;
        }
      }
  
      #loadingtxt1 {
        width: 55.6%;
        position: absolute;
        top: 5.2%;
        left: 21.5%;
      }
      #loadingtxt2 {
       width: 31.6%;
        position: absolute;
        top: 17.7%;
        left: 34%;
      }
      #loadingIMG {
        width: 18.4%;
        position: absolute;
        top: 29.5%;
        left: 40.5%;
      }


/*閉じるボタン*/
.btnCloseTopRight{
    z-index: 100;
}
/*しまじろう、ゲスト*/
.shimajiro ,.guest{
    z-index: 90;
}

.disabled {
    opacity: 0.4;
}

#holder {
    display: none;
    background-color: #000;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index:1;
}
#holder canvas{
    vertical-align: middle;
    text-align: center;
    width: 100%;
    margin: auto;
    max-height: 100vh;
    aspect-ratio: 256 / 155;
    position: relative;
}

#cover {
    display: none;
    background-color: #FFF;
    position: absolute;
    width: 100%;
    height: 3000px;
    z-index:100;
}
#cover2 {
    background-color: #FFF;
    position: absolute;
    width: 100%;
    height: 3000px;
    z-index:101;
}

/* ブルブル　*/
.buruburu {
    display: inline-block;
    animation: hurueru .4s  infinite;
}

@keyframes hurueru {
    0% {transform: translate(0px, 0px) rotateZ(0deg)}
    25% {transform: translate(0px, 6px) rotateZ(0deg)}
    50% {transform: translate(0px, 4px) rotateZ(0deg)}
    75% {transform: translate(1px, 0px) rotateZ(0deg)}
    100% {transform: translate(0px, 0px) rotateZ(0deg)}
}


/*モーダルウィンドウ*/
.modal1{
    z-index: 80;
}
/*半透明ウィンドウ*/
.window1{
    z-index: 70;
}
/*がんばるパワー*/
.btnGanbaru{
    z-index: 60;
}
/*コックピット（宇宙船の壁）*/
.bgCockpit{
    z-index: 50;

}
/*宇宙船の外*/
.outer{
    z-index: 10;
}





/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
*:where(:not(iframe, canvas, img, svg, video):not(svg *)){
    all: unset;
    display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after{
    box-sizing: border-box;
}

/* Remove list styles (bullets/numbers) */
ol, ul {
    list-style: none;
}

/* For images to not be able to exceed their container */
img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* removes spacing between cells in tables */
table{
    border-collapse: collapse;
}
.pointer{
    cursor: pointer;
}
html,body{
  font-family:'GJShinMGo-Bold',sans-serif;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: table;
    background-color: #0c1346;
}
body{
    background-color: #33468B;
}
#wrap{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 100%;
}
.container{
    margin: auto;
    padding: 0;
    /*ここからスマホのアドレスバーなどを含めた上で100vhにする記述。再現のためにJSとも連携しています*/
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    /*ここまでスマホのアドレスバーなどを含めた上で100vhにする記述。再現のためにJSとも連携しています*/
    max-height: 100vh;
    aspect-ratio: 256 / 155;
    position: relative;
    overflow: hidden;
}
#spGuide{
    display: none;
}
/*599px以下の場合に適用*/
@media (max-width: 599px) {
    #wrap{
        display: block;
    }
    #spGuide{
        display: block;

    }
    .container{
        height: initial;
    }
    #scene6 .guest,
    #scene6-2 .guest,
    #scene7 .guest{
        position: absolute;
        top: 100%;
        width: 20.2%;
        left: 1%;
    }
    #debug, #debugwindow {
        position:absolute;
        background-color: #ccc;
        text-align: center;
        width: 100px !important;
        height: 40px !important;
        z-index: 20000;
        font-size:0.5em;
        padding-top: 5px;
      }
}

#debug, #debugwindow {
    position:absolute;
    background-color: #ccc;
    text-align: center;
    width: 200px;
    height: 70px;
    z-index: 20000;
  }


.bgSpace{
    
    background-image:url(../images/bg-space.jpg);

    
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.bgCockpit{
    width: 100%;
    height: 100%;
    position: relative;
    background-image:url(../images/bg-cockpit.png);
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.btnGanbaru{
    width: 20.3%;
    position: absolute;
    top: 64.2%;
    left: 39.9%;
}
.btnGanbaru img{
    width: 100%;
    height: auto;
    display: block;
}


.btnCloseTopRight{
    position: absolute;
    top: 0;
    width: 5%;
    right: 2%;
}
.window1{
    background-image:url(../images/window.png);
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    
    width: 0%;
    height: 0%;
    transition: all 0.5s ease;
    padding: 0 0;
}

.window1Open{
    transition: all 0.5s ease;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    padding: 9% 8.5%;
}

.selectPanel{
    width: 38.2%;
    height: 33.8%;
    position: absolute;
}
.selectPanelActive{
}
#selectPanelL{
    top: 35%;
    left: 13.2%;
}
#selectPanelR{
    top: 35%;
    left: 49.6%;
}
.selectPanel img{
    /*width: 120%;
    height: 120%;
    object-fit: contain;*/
}
.selectPanelHidden{
    display: none;
    /*opacity: 0でも良いかも*/
}
.selectPanelKotae{
    top: 30% !important;
    left: 30.3% !important;
}

/*window1が予め開いている状態*/
.window1opened{
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    transition: initial !important;
    padding: 9% 8.5%;

}
.window1BTN{
    width: 26%;
    display: block;
    margin: 22% auto 0 auto;
}
.window1BTNloading{
    width: 100%;
    display: block;
    margin: 22% auto 0 auto;
}
.window1BTN2{
    width: 21.5%;
    height: auto;
    display: block;
    margin: 0 auto 0 auto;
    position: absolute;
    top: 74%;
    left: 50%;
    transform: translateX(-50%);
}
.window1P1{
    font-size: 2.45vw;
    color: #85fef6;
    line-height: 1.5em;
    text-align: center;
    font-weight: normal;
    letter-spacing: 0.2vw;
    margin: 1% 0 0 0;
}
.window1P1 rt{
    font-size: 30%;
}
.modal1{
    width: 0%;
    height: 0%;
    background-color: rgba(255,255,255,1);
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 3vw;
    transition: all 0.3s ease;
    padding: 0;

}
.modal1Open{
    transition: all 0.3s ease;
    width: 73%;
    height: 89%;
    top: 5.5%;
    left: 13.5%;
    
    padding: 2.5%;
    
}
.modal1Inner{
    background-image:url(../images/modal_inner01.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #555;
    width: 100%;
    height: 82.2%;
}
.modal1BTN{
    width: 32%;
    height: auto;
    display: block;
    margin: 3.25% auto 0 auto;
}
/*がんばるパワー周りの光*/
.btnGanbaruFlash{
    position: absolute;
    top: 21%;
    left: 18%;
    width: 64%;
    animation:12s linear infinite rotation1;
}
@keyframes rotation1{
  0%{ transform:rotate(0);}
  100%{ transform:rotate(360deg); }
}
.btnGanbaruFlashBack{
    position: absolute;
    top: 21%;
    left: 18%;
    width: 64%;
}
.outer{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.outersp{
    position: absolute;
    margin-top: 30px;
}


.btnGanbaruBlinking{
    width: 29.60%;
    position: absolute;
    top: 56.5%;
    left: 35.25%;
    z-index: 999;
}
.btnGanbaruBlinking img{
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;

    animation:0.4s linear infinite btnGanbaruBlinking;
}
@keyframes btnGanbaruBlinking{
  0%{ opacity: 1;}
  50%{ opacity: 0;}
  100%{ opacity: 1; }
}



/*しまじろうの各画面の位置情報*/
#scene1-1 .shimajiro{
    display: none;
}
#scene2-3 .shimajiro{
    position: absolute;
    top: 55.2%;
    width: 25.5%;
    left: 62%;
}
#scene1-2 .shimajiro,
#scene2-1 .shimajiro,
#scene2-2 .shimajiro,
#scene2-4 .shimajiro,
#scene3 .shimajiro,
#scene4 .shimajiro,
#scene4-2 .shimajiro,
#scene5 .shimajiro,
#scene9-2 .shimajiro{
    position: absolute;
    top: 55.2%;
    width: 25.5%;
    left: 74.3%;
}

#scene6 .shimajiro,
#scene6-2 .shimajiro,
#scene7 .shimajiro,
#scene7-2 .shimajiro,
#scene7-3 .shimajiro{
    position: absolute;
    top: 100%;
    width: 17.2%;
    left: 81.55%;
}

#scene9 .shimajiro{
    position: absolute;
    top: 100%;
    width: 25.5%;
    left: 40.8%;
}

/*ゲストキャラ*/
#scene6 .guest,
#scene6-2 .guest,
#scene7 .guest{
    position: absolute;
    top: 172%;
    width: 20.2%;
    left: 1%;
}

#scene6-2 #guestcontainer img {
    top: 300%;
    width: 170%;
    left: 1%;
}

/*1行のウィンドウテキスト*/
.windowText1gyou{
    position: relative;
    height: auto;
    width: 90.5%;
    top: 7.5%;
    display: block;
    margin: auto;
}
/*2行のウィンドウテキスト大*/
.windowText2gyouL{
    position: relative;
    height: auto;
    width: 90.5%;
    top: 0%;
    display: block;
    margin: auto;
}
/*2行のウィンドウテキスト*/
.windowText2gyou{
    position: relative;
    height: auto;
    width: 90.5%;
    top: 5%;
    display: block;
    margin: auto;
}
/*上下中央寄せテキスト*/
.windowTextCenter{
    position: absolute;
    height: auto;
    width: 76.0%;
    display: block;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}


/*各画面固有のcss*/
/*2-1*/
.windowOBJ2-1 {
    position: absolute;
    width: 75%;
    top: 36%;
    left: 12%;
}
/*2-2*/
.windowOBJ2-2 {
    position: absolute;
    width: 46.2%;
    top: 30%;
    left: 27%;
}


/*3-1*/
.outer3-1warp{
    width: 107%;
    height: 107%;
    position: absolute;
    top: -44.5%;
    left: -3.5%;
}
#outer3-1WarpBlue{
    width: 100%;
    opacity: 0.3;
    position: absolute;
    top: 0%;
    left: 0%;
}
#outer3-1WarpWhite{
    width: 100%;
    opacity: 1;
    position: absolute;
    top: 0%;
    left: 0%;
}

/*4*/
#outer4OBJ {
    position: absolute;
    width: 35.2%;
    top: 18%;
    left: 32.5%;
}

/*4-2*/
#outer4-2OBJ {
    position: absolute;
    width: 54.6%;
    top: 16%;
    left: 19.5%;
}

/*5*/
.outer5,.outersp {
}
#outer5OBJ {
    position: absolute;
    width: 28.4%;
    top: -40%;
    left: 35.7%;
}

/*7-2*/
#OBJ7-2orihime{
    position: absolute;
    width: 8%;
    top: 49%;
    left: 18.2%;
}
#OBJ7-2hikoboshi{
    position: absolute;
    width: 7.6%;
    top: 48.5%;
    left: 74.5%;
}
#OBJ7-2hashi{
    position: absolute;
    width: 54.6%;
    top: 43%;
    left: 22.8%;
}
#OBJ7-2amanogawa{
    position: absolute;
    width: 48.5%;
    top: 39%;
    left: 17.8%;
}
/*7-3*/
#OBJ7-3oriHiko{
    position: absolute;
    width: 15.5%;
    top: 34%;
    left: 42.8%;
}