/*
 *  Remodal - v1.1.1
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

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

/* Hide scroll bar */

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

  -ms-touch-action: none;
  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 {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
  position: relative;
  outline: none;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.remodal_banner-pc.remodal {
  margin: 50px 0;
  background-color: #00b9ef;
  border-radius: 20px;
  border: solid 5px #fff;
}

.remodal_banner-sp.remodal {
  margin: 70px 0 50px 0;
  background-color: #00b9ef;
  border-radius: 20px;
  border: solid 5px #fff;
  padding: 0;
}

.remodal_banner-pc .modalCloseBottom {
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.remodal_banner-sp .modalCloseBottom {
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
}

.remodal_banner-pc .modalCloseTop {
  position: relative;
  cursor: pointer;
}

.remodal_banner-sp .modalCloseTop {
  position: relative;
  cursor: pointer;
}

.remodal_banner-pc .modalCloseTop .modalCloseBgColor {
  color: #fff;
  background-color: #fff;
  text-decoration: none;
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  top: -50px;
  right: -50px;
  line-height: 1;
  line-height: 38px;
  font-size: 25px;
}

.remodal_banner-sp .modalCloseTop .modalCloseBgColor {
  color: #fff;
  background-color: #fff;
  text-decoration: none;
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  top: -70px;
  right: 0;
  line-height: 1;
  line-height: 38px;
  font-size: 25px;
}

.remodal_banner-pc .modalCloseTop .modalCloseBgColor img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.remodal_banner-sp .modalCloseTop .modalCloseBgColor img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) scale(.5);
}

.remodal_banner-pc .modal-img-1 {
  margin-top: -90px;
}

.remodal_banner-sp .modal-img-sp {
  margin-top: -35px;
  width: 100%;
}

.remodal_banner-pc .modal-title {
  margin: 40px 0 30px 0;
}

.remodal_banner-sp .modal-title-sp {
  margin: 20px 0 15px 0;
  width: 100%;
}

.remodal_banner-sp .modal-area {
  padding: 0 15px;
}

.remodal_banner-pc .modalContent ul {
  list-style: none;
  margin: 0;
  padding: 0 0 30px 0;
  display: flex;
  justify-content: space-between;
}

.remodal_banner-sp .modalContent ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.remodal_banner-sp .modalContent ul li {
  width: 48%;
  margin-bottom: 4%;
}

.remodal_banner-sp .modalContent ul img {
  width: 100%;
}

.remodal_banner-sp .modalCloseBottom {
  padding: 10px 0 20px 0;
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
  .remodal {
    max-width: 1020px;
  }
}
