#popup {
  display: none; /* label でコントロールするので input は非表示に */
}
.popup-open {
  cursor: pointer; 
}
.popup-overlay {
  display: none; /* input にチェックが入るまでは非表示に */
}
#popup:checked ~ .popup-overlay {
  display: block;
  z-index: 99999;
  background-color: rgb(0 0 0 / 70%);
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

.popup-window {
/*width: 90vw;
  max-width: 370px;*/
  padding: 5px;
  background-color: #ffffff;
  border-radius: 6px;
  position: fixed;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.popup-text {
  margin: 0;
  width:270px;
  background-color: #000;
  text-align: center;
}

.popup-inner {
  height:800px;
  background-color: #000;
  text-align: center;
/*overflow-y: scroll;*/
}

.popup-content {
  box-sizing: border-box;
  width: 270px;
  padding:0;
  margin: 0;
}
.popup-content-top {
  width: 100%;
  padding:0;
  margin: 0;
}
.popup-content-top img {
  width: 100%;
}
.popup-content-bottom img {
  padding: 10px;
  width: 24%;
}
.for-sp {
  display: none;
}
/*.popup-text:not(:last-of-type) {
  margin-bottom: 1em
}*/
.popup-close {
  cursor: pointer;
  position: absolute;
  top: -20px;
  right: 0;
}

@media screen and (max-width: 800px) {
.popup-content {
  width: 100%;
}
.popup-inner {
  height:auto;
}
}
@media (orientation: portrait) {
.popup-content {
  width: 100%;
}
.popup-inner {
  height: auto;
}  
}
@media (orientation: landscape) and (max-device-width: 1024px)  {
.popup-inner {
  height: 85svh;
  overflow-y: scroll;
} 
.for-sp {
  display: block;
  text-align: center;
  font-size: 90%;
  background-color: #00a23f;
  color: #fff;
}
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {
.popup-inner {
  height: auto;
}
.popup-content {
  width: 370px;
}
}