@charset "UTF-8";

/* Reset */
html{color:#333333;background:#FFFFFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,xmp{padding:0;margin:0;}table{border-spacing:0;border-collapse:collapse;}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q::before,q::after{content:''}abbr,acronym{font-variant:normal;border:0;}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}legend{color:#333333}*,*::before,*::after{box-sizing:border-box}input,select,textarea,button{outline:none;}*{box-sizing: border-box;font-size:100%;}body{color:#333333;-webkit-text-size-adjust:100%;}img{max-width:100%;}

/* ------------------------------------------------------ */
body{
  font-family : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #333333;
  margin: 0;
  overflow: hidden;
}
a{
  color: #337ab7;
  text-decoration : none;
}
a:link{
  color: #337ab7;
  text-decoration : none;
}
a:visited{
  color: #337ab7;
  text-decoration : underline;
}
a:hover{
  color: #337ab7;
  text-decoration : underline;
}

/* head
================================================ */
/*
#head {
  position : fixed;
  top : 0;
  left : 0;
  display : flex;
  justify-content : space-between;
  width : 100vw;
  height : 40px;
  padding : 0.5rem 1rem;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.5);
}

#reset_wrap{
  display: flex;
  align-items: center;
}
#reset{
  color: #337ab7;
  background: transparent;
  border-color: transparent;
}
#reset:hover{
  text-decoration: underline;
  cursor: pointer;
}
*/
/* loading
================================================ */
#loading{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

#dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  color: #584F5B;
  background-color: #584F5B;
  border-radius: 5px;
  animation: dot_flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}
#dot-flashing::before, #dot-flashing::after {
  position: absolute;
  top: 0;
  display: inline-block;
  content: "";
}
#dot-flashing::before {
  left: -15px;
  width: 10px;
  height: 10px;
  color: #584F5B;
  background-color: #584F5B;
  border-radius: 5px;
  animation: dot_flashing 1s infinite alternate;
  animation-delay: 0s;
}
#dot-flashing::after {
  left: 15px;
  width: 10px;
  height: 10px;
  color: #584F5B;
  background-color: #584F5B;
  border-radius: 5px;
  animation: dot_flashing 1s infinite alternate;
  animation-delay: 1s;
}
@keyframes dot_flashing {
  0% {
    background-color: #584F5B;
  }
  50%, 100% {
    background-color: rgba(88, 79, 91, 0.2);
  }
}


/* foot
================================================ */

#foot{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding : 0.5rem 1rem;
/*  color: #337ab7;*/
  background: rgba(255, 255, 255, 1);
}

#note {
  cursor: pointer;
}

/* lil-gui*/
.lil-gui {
  --width: 30%!important;
  background-color: rgba(0,0,0,0.3)!important;
  font-size: 0.9em;
}

.widget input {
  font-size: 14px;
}

@media screen and (max-width: 820px) {
  .lil-gui {
    --width: 40%!important;
  }
}

@media screen and (max-width: 420px) {
  .lil-gui {
    --width: 80%!important;
  }
}

#lil-gui-name-1 {
  font-size: 16px;
}

/*解説ボタン設定モーダル*/

.modal2 {
  display: none;
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999999;
}

.close-btn{
  text-align: right;
  text-decoration: none;
  font-size: 1.8rem;
  color: #666;
}

.modal2-bg {
  background: rgba(0,0,0,0.7);
  height: 100vh;
  position: absolute;
  width: 100%;
  }

.modal2-box {
  background: #fff;
  left: 50%;
  padding: 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 55%;
  max-height: 80vh!important;
  overflow-y: scroll!important;
  }

.modal2 form {
  margin-top: 0;
}

.btn-select label,
.txt-select label,
.img-select label {
  display: inline-block;
  width: 49%;
  text-indent: 4em;
  margin-top: 1%;
}

.btn-select label input,
.txt-select label input,
.img-select label input,
.input-target label input,
.btxtcolor label input {
  margin-right: 1%;
}

.input-url,
.input-target {
  display: none;
}

.bname label,
.bname input,
.input-txt label,
.input-txt textarea,
.input-img label,
.input-img input,
.input-url label,
.input-url input,
.bcolor label,
.bcolor input {
  display: block;
  width: 100%;
}

.modal2 form p {
  margin-top: 2%;
}

.input-target label,
.btxtcolor label {
  display: inline-block;
  width: 49%!important;
  margin-top: 0;
}

#modal2-start {
  margin-top: 2%;
  width: 100%;
}

@media screen and (max-width: 820px) {
  .modal2-box {
    width: 80%;
  }
}

@media screen and (max-width: 420px) {
  .modal2-box {
    width: 95%;
  }

  .btn-select label,
  .txt-select label,
  .img-select label {
    text-indent: 0;
  }
}

/*操作説明モーダル*/
/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 0;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
  opacity: 1;
  visibility: visible;
}

/*モーダル枠の指定*/
.modal-body{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 500px;
  width: 90%;
}
/*モーダルを閉じるボタンの指定*/
.modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.modal-content{
  background: transparent;
  padding: 0;
}

.modal-content img {
  width: 100%;
  max-width: 600px;
}

.descbtn,
.descbtn-link {
  position: absolute;
  bottom: 10%;
  left: 2%;
  padding: 1%;
  border-radius: 5px;
  background: rgba(65,200,112,1);
  border: 1px solid #ccc;
  color: #fff;
  cursor: pointer;
}

/*解説モーダル*/
/*モーダル本体の指定 + モーダル外側の背景の指定*/
.desc-modal-container{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 0;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.desc-modal-container::before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.desc-modal-container.active{
  opacity: 1;
  visibility: visible;
}

/*モーダル枠の指定*/
.desc-modal-body{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: auto;
  max-width: 80%;
}
/*モーダルを閉じるボタンの指定*/
.desc-modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.desc-modal-content{
  background: #fff;
  padding: 3%;
  max-height: 600px;
  overflow-y: auto;
}

.desc-modal-content p{
  text-align: left;
}

.desc-modal-content a {
  color: #337ab7;
}

.desc-modal-content img {
  width: 100%;
  max-width: 600px;
}
