/* -- バック -- */
.setchat-wrapper {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 10px 0;
  text-align: center;
}

/* -- 表示 -- */
.setchat-wrapper:not(:target) {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.setchat-wrapper:target {
  opacity: 1;
  visibility: visible;
  transition: opacity 0s, visibility 0s;
  padding: 0;
}

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

.setchat-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 70%;
  max-width: 600px;
  padding: 30px 30px 15px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  vertical-align: middle
}

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

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

.setchat-wrapper .modal-close,
.setchat-wrapper .modal-close1,
.setchat-wrapper .modal-close2 {
  z-index: 9999999;
  font-size: 30px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  text-indent: 0
}

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

.setchat-wrapper .modal-close1 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  font-size: 30px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  text-indent: 0
}

.setchat-wrapper .modal-close2 {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 710px;
  font-size: 30px;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
}

.setchat-wrapper .modal-close1:hover,
.setchat-wrapper .modal-close2:hover {
  color: #2b2e38 !important
}

@media only screen and (max-width: 767px) {
  .setchat-wrapper .modal-close1 {
    position: absolute;
    top: 4vw;
    right: 0vw;
    width: calc(90 / 750 * 100vw);
    font-size: 30px;
    line-height: 45px;
  }

  .setchat-wrapper .modal-close2 {
    position: absolute;
    bottom: 20vh;
    right: 4vw;
    width: calc(520 / 750 * 100vw);
    font-size: 30px;
    line-height: 40px;
  }
}