input {
  visibility: hidden;
  position: absolute;
}
/* ポップアップwindow部分 */
#overlay {
  opacity: 0;
  display: none;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  /* visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease-in-out; */
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
}
/* オーバーレイの背景部分 */
#bg_gray {
  background: rgba(0,0,0,0.85);
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
}
/* ウィンドウ部分 */
#window {
  width: 800px;
  height: 85vh;
  padding: 64px 48px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6);
  z-index: 10000;
  opacity: 0;
}
@media only screen and (max-width: 767px) {
  #window {
    padding: 1vw 0.8vw;
    width: 92vw;
    height: 90vh;
  }
}
/* 閉じるボタン */
#btn_cloth {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222;
  border-radius: 5px;
  z-index: 1000;
  cursor: pointer;
}
#btn_cloth:hover {
  opacity: 0.7;
}
#btn_cloth span,
#btn_cloth span::before {
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #fff;
}
#btn_cloth span {
  transform: rotate(45deg);
}
#btn_cloth span::before {
  content: "";
  position: absolute;
  bottom: 0;
  transform: rotate(-90deg);
}
/* クリックで表示 */
#qr-popup:checked ~ #overlay {
  opacity: 1;
  display: block;
  pointer-events: auto;
}
#qr-popup:checked ~ #overlay #window {
  animation: fadein 500ms forwards;
  animation-timing-function: ease-in-out;
}
@keyframes fadein {
  100% {
      opacity: 1;
  }
}
#msg {
  height: 100%;
  overflow: scroll;
}
