@charset "utf-8";

.l-modal {
  display: none;
  opacity: 0;
}
.l-modal.fade {
  animation: 0.8s fadein forwards;
  display: block;
}
.l-modal.fadeout {
  animation: 0.8s fadeout forwards;
  display: block;
}

@keyframes fadein {
  0% {
    transform: translate3d(0,-20px,0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0,0,0);
    opacity: 1;
  }
}
@keyframes fadeout {
  0% {
    transform: translate3d(0,0,0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0,-20px,0);
    opacity: 0;
  }
}
.l-modal {
  position: fixed;
  right: 30px;
  bottom: 130px;
  width: 300px;
  height: auto;
  z-index: 9;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.4);
}
.l-modal .c-img {
  width: 100%;
  height: auto;
  display: block;
}
.l-modal a:hover {
  opacity: 1 !important;
}

.l-modal-close {
  border-radius: 50%;
  position: absolute;
  z-index: 1;
  top: -16px;
  right: -16px;
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #666;
  cursor: pointer;
}
.l-modal-close::before {
  position: absolute;
  top: 5px;
  left: 14px;
  width: 2px;
  height: 20px;
  content: "";
  background: #fff;
  transform: rotate(45deg);
}
.l-modal-close::after {
  position: absolute;
  top: 5px;
  right: 14px;
  width: 2px;
  height: 20px;
  content: "";
  background: #fff;
  transform: rotate(135deg);
}
.l-modal-close:hover {
  opacity: 0.7;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
}
.replace_img {
  width: 300px;
}
.replace_img.sp {
  display: none;
}


@media screen and (max-width: 767px), print {
  .l-modal {
    position: fixed;
    right: 50%;
    bottom: 0;
    width: 320px;
    height: auto;
    margin-right: -160px;
    z-index: 9;
  }
  .l-modal-close {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    appearance: none;
  }
  .l-modal-close::before {
    position: absolute;
    top: 5px;
    left: 11px;
    width: 2px;
    height: 14px;
    content: "";
    background: #fff;
    transform: rotate(45deg);
  }
  .l-modal-close::after {
      position: absolute;
      top: 5px;
      right: 11px;
      width: 2px;
      height: 14px;
      content: "";
      background: #fff;
      transform: rotate(135deg);
  }
}
