@charset "utf-8";

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

@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: 0;
  bottom: 3%;
  width: 100%;
  z-index: 9;
}

.l-modal-close {
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 26px;
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #666;
  cursor: pointer;
}
.l-modal-close::before {
    position: absolute;
    top: 5px;
    left: 12px;
    width: 1px;
    height: 14px;
    content: "";
    background: #fff;
    transform: rotate(45deg);
}
.l-modal-close::after {
    position: absolute;
    top: 5px;
    right: 12px;
    width: 1px;
    height: 14px;
    content: "";
    background: #fff;
    transform: rotate(135deg);
}
.l-modal-close:hover {
  opacity: 0.7;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
}
.l-modal-card {
  margin: 0 auto;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  position: relative;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.16);
  width: 90%;
  background: #fff url(../png/bg_emag.png) repeat-x center top;
  background-size: auto 64px;
}
#emag .l-modal-card {
  padding: 10px 15px 15px 15px;
}

/* メルマガ */
.emag-card {}
.emag-ribbon {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 79px;
  height: 79px;
  overflow: hidden;
}
.emag-ribbon strong {
  display: inline-block;
  position: absolute;
  padding: 7px 0;
  right: -10px;
  top: 13px;
  width: 120px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 16px;
  background: #e61e0a;
  color: #fff;
  letter-spacing: 0.05em;
  -webkit-transform: rotate(315deg);
  transform: rotate(315deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.emag-ribbon strong:before,
.emag-ribbon strong:after {
  position: absolute;
  content: "";
  border-top: 4px solid #891511;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  top: 30px;
}
.emag-ribbon strong:before {
  left: 4px;
}
.emag-ribbon strong:after {
  right: 7px;
}
.emag-title {
  text-align: center;
}
.emag-title img {
  width: 170px;
}
.emag-description {
  margin: -5px 0 12px;
  color: #666;
  font-size: 1.3rem;
  line-height: 1.5;
}
.l-modal .btn-default {
  margin: 0;
  border-color: #42b860;
  height: 36px;
  background:  #42b860;
  font-size: 1.4rem;
}
.emag-form {
    display: none;
    overflow: hidden;
}
.emag-form.is-show {
    animation: 0.3s formOpen forwards;
}
@keyframes formOpen {
    0% {
        opacity: 0;
        height: 44px;
    }
    100% {
        opacity: 1;
        height: 480px;
    }
}

/* ウェビナー */
/*
.webinar-banner {}
.webinar-banner img {
  display: block;
  width: 100%;
}
*/

@media screen and (min-width: 768px), print {
  .l-modal {
    right: 38px;
    bottom: 30px;  
    width: auto;
  }
  .l-modal-card {
    width: 340px;
    background-size: 100% auto;
  }
  #emag .l-modal-card {
    padding: 6px 20px 18px 20px;
  }
  .l-modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }
  .l-modal-close::before {
    top: 5px;
    left: 14px;
    width: 2px;
    height: 20px;
  }
  .l-modal-close::after {
    top: 5px;
    right: 14px;
    width: 2px;
    height: 20px;
  }

  /* メルマガ */
  .emag-ribbon {
    top: -6px;
    left: -6px;
    width: 89px;
    height: 91px;
  }
  .emag-ribbon strong {
    right: -25px;
    top: 17px;
    width: 160px;
    font-size: 1.4rem;
  }
  .emag-ribbon strong:before {
    left: 17px;
  }
  .emag-ribbon strong:after {
    right: 20px;
  }
  .emag-title img {
    width: 250px;
  }
  .emag-description {
    margin-top: -7px;
    font-size: 1.5rem;
  }
  .l-modal .btn-default {
    height: 44px;
    font-size: 1.6rem;
  }
}
