/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
  overflow: hidden;

  touch-action: none;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
  display: none;
}

/* Necessary styles of the overlay */

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;

  display: none;
}

/* Necessary styles of the wrapper */

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: none;
  overflow: auto;

  text-align: center;

  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;

  height: 100%;
  margin-left: -0.05em;

  content: "";
}

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
  backface-visibility: hidden;
}

.photo_inner {
  overflow: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
  position: relative;

  outline: none;

  text-size-adjust: 100%;
}

.remodal-is-initialized {
  /* Disable Anti-FOUC */
  display: inline-block;
}

@media (max-width: 767px) {
  .remodal {
    box-sizing: border-box;
    transform: translate3d(0, 0, 0);
  }
  .achievement_link:nth-child(1), .achievement_link:nth-child(4), .achievement_link:nth-child(7) {
    margin-left: 30px;
  }
  .achievement_link {
    margin-bottom: 30px;
  }
}

/*

SCONNECT MODAL

*/

.remodal {
  max-width: unset;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.remodal {
  max-width: unset;
  height: auto;
  width: 73.52941176470588vw;
}

.remodal .news_ttl_wrap {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: solid 1px #b7b7b7;
}

.remodal span.post__time {
  color: #B7B7B7;
  display: block;
}

.remodal h3.post__h3 {
  margin-left: 0;
  font-size: 18px;
}



.modal_detail {
  position: relative;
  color: #212121;
  background: #fff;
  width: 64.70588235294117vw;
  padding: 4.411764705882353vw;
  border-radius: 20px;
}

.modal_detail img {
  max-width: 350px;
}

.remodal-close:before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  width: 2.574vw;
  height: 2.574vw;
  content: "";
  background: url(../img/common/mo_close.svg);
  background-size: contain;
  background-repeat: no-repeat;
  text-align: center;
}

.remodal-close {
  position: absolute;
  top: 1.324vw;
  right: 1.324vw;
  width: 2.574vw;
  height: 2.574vw;
}

@media(max-width:767px) {

  .remodal {
    max-width: unset;
    width: 94vw;
  }

  .modal_detail {
    color: #212121;
    background: #fff;
    width: 90vw;
    padding: 6vw 4vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  p.voice_message_all {
    font-size: 3.5443037974683547vw;
  }

  .remodal-close {
    position: absolute;
    top: 1.324vw;
    right: 1.324vw;
    width: 6.574vw;
    height: 6.574vw;
  }

  .remodal-close:before {
    width: 6.574vw;
    height: 6.574vw;
  }
}


/*

LIFIX VOICE MODAL

*/