.popup {
  display: none;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-end;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
}
@media screen and (min-width: 640px) {
  .popup {
    align-items: center;
    align-content: center;
  }
}
.popup:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.popup .wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  max-height: 100vh;
  background: #FFFFFF;
  overflow: auto;
  z-index: 10;
}
@media screen and (min-width: 640px) {
  .popup .wrap {
    width: 650px;
    max-height: 80vh;
  }
}
.popup .cross {
  display: block;
  width: 20px;
  height: 20px;
  line-height: 30px;
  vertical-align: middle;
  text-align: center;
  background-image: url('images/icon-close.svg');
  background-size: 100% 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 100;
}
@media screen and (min-width: 640px) {
  .popup .cross {
    width: 30px;
    height: 30px;
    right: 30px;
  }
}
.popup h1 {
  color: #FFFFFF;
  background: #996533;
  font-weight: 500;
  font-size: 1.3rem;
  text-align: left;
  padding: 20px 60px 20px 20px;
  margin: 0;
}
@media screen and (min-width: 640px) {
  .popup h1 {
    font-size: 1.5rem;
    padding-left: 30px;
  }
}
@media screen and (min-width: 1200px) {
  .popup h1 {
    font-size: 1.7rem;
  }
}
.popup .content {
  overflow: hidden;
}
.popup .content_main {
  font-size: 0.95em;
  line-height: 160%;
  padding: 20px;
}
@media screen and (min-width: 640px) {
  .popup .content_main {
    padding: 30px;
  }
}
.popup .button {
  float: right;
  margin: 0 20px 20px 0;
}
@media screen and (min-width: 640px) {
  .popup .button {
    margin: 0 30px 30px 0;
  }
}
.popup-show .popup {
  display: flex;
}
