@charset "utf-8";

.modal-wrapper {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 10px;
  text-align: center
}

.modal-wrapper:not(:target) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.modal-wrapper:target {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility .4s;
}

.modal-wrapper::after {
  display: inline-block;
  height: 100%;
  margin-left: -.05em;
  vertical-align: middle;
  content: ""
}

.modal-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 1000px;
  border-radius: 2px;
  background-image: url(../image/nakushimono.jpg);
  background-color: rgba(255,255,255,0.8);
  background-blend-mode: lighten;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 1000px;
  box-shadow: 0 0 30px rgba(0, 0, 0, .6);
  vertical-align: middle
}

.modal-wrapper .modal-window .modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

.modal-wrapper .modal-window .modal-content .title {
  background: #00a89c;
  font-size: 22px;
  padding-bottom: 8px;
}

.modal-wrapper .modal-window .modal-content .flexStart > div {
  margin: 2em 0;
}

.modal-wrapper .modal-window .modal-content .flexStart > div > p:first-child {
  margin-bottom: 1em;
}

.modal-wrapper .modal-window .modal-content .flexStart > div.sns {
  width: 50%;
}

.modal-wrapper .modal-window .modal-content .flexStart > div.sns .flexCenter {
  height: calc(100% - 2em);
  flex-direction: column;
}

.modal-wrapper .modal-window .modal-content .flexStart > div.mail {
  width: calc(50% - 4em - 1px);
  padding: 0 2em;
  border-left: 1px solid #999;
}

.modal-wrapper .modal-window .modal-content .flexStart > .mail .txtLeft > p:not(:first-child) {
  margin-top: 2em;
}

.modal-wrapper .modal-window .modal-content .flexStart > .mail .txtLeft > p label {
  display: inline-block;
  margin-bottom: 0.5em;
}

.modal-overlay {
  z-index: 10;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .8)
}

.modal-overlay:hover {
  opacity: 1;
}

.modal-wrapper .modal-close {
  z-index: 20;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  color: #fefefe !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  text-indent: 0
}

.modal-wrapper .modal-close:hover {
  color: #ccc !important
}

/* 768px~1024px */
@media screen and (max-width: 1023px) {
  .modal-wrapper .modal-window {
    width: auto;
    background-size: cover;
  }
}
/* ~768px */
@media screen and (max-width: 767px) {
  .modal-wrapper .modal-window .modal-content {
    min-height: 80vh; 
  }
  .modal-wrapper .modal-window {
    min-width: 100%;
  }
  .modal-content .flexStart {
    flex-direction: column;
  }
  .modal-wrapper .modal-window .modal-content .flexStart > div.sns {
    width: 94%;
    margin: 2em auto 0;
    padding-bottom: 1.75em;
    border-bottom: 1px solid #999;
  }
  .modal-wrapper .modal-window .modal-content .flexStart > div.mail {
    width: 94%;
    margin: 1.5em auto 0;
    padding: 0;
    border-left: 0;
  }
}