/* 背景のスクロールを停止 */
#bodymodal.fix {
  overflow: hidden;
}

/*1. デオフォルト非表示にする*/
.modal {
  display: none;
  z-index: 1010;
}
/*2. 内部リンククリックで適用する*/
.modal.show{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  top: calc(20vh);
}
/*3. メッセージBOX（テキスト部）*/
.modal .message-box {
  position: relative;
  background-color: #ffffff;
  cursor: default;
  border-radius: 15px;
  border: solid 1px #666666;
  padding: 50px 50px 10px;
  text-align: center;
  height: 92vh;
}

/*4. 閉じる領域のためのアンカー*/
.message-wrapper{position: relative;}
.message-wrapper::after{
  display: block;
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  top: 0;
  left: 0;
  z-index: -1;
}


.modal a:hover{opacity: 1;}
/*6. 閉じるボタン*/
.modal .close {
  display: block;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 10px;
  top:10px;
  z-index: 3;
  cursor: pointer;

}
.modal .close::before, .modal .close::after { /* 共通設定 */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 30px;
  background: #999999;
  border-radius: 5px;
} 
.modal .close::before {transform: translate(-50%,-50%) rotate(45deg);}
.modal .close::after {transform: translate(-50%,-50%) rotate(-45deg);}

  @keyframes waiting{
    0% {
      transform:rotate(0deg);
     
    }
    100% {
      transform:rotate(720deg);
     
    }
  }

  .waiting {
    animation-timing-function: linear;
    animation-name: waiting;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-direction: normal;
    animation-iteration-count: infinite;
  }

  .dlgimg{
    width: 100px;
    margin-bottom: 40px;
    user-select: none;
  }

  @media (max-width:550px) {
    .modal .message-box {
      padding: 50px 14px 10px;
    }
  }