/*
 *  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 default mobile first theme
   ========================================================================== */

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  background-color: rgba(0, 0, 0, 0.8);
}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
  -webkit-animation-name: remodal-overlay-opening-keyframes;
  animation-name: remodal-overlay-opening-keyframes;
}

.remodal-overlay.remodal-is-closing {
  -webkit-animation-name: remodal-overlay-closing-keyframes;
  animation-name: remodal-overlay-closing-keyframes;
}

/* Default theme styles of the wrapper */

.remodal-wrapper {
/*  padding: 10px 10px 0;*/
  padding:2rem 4% 0;
  width: 92%;
}

/* Default theme styles of the modal dialog */
/*.remodal-pre{
  width: 100rem;
}*/
.remodal {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 10px;
  padding: 2rem;

  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  color: #fff; /*#2b2e38;*/
  /*background: #fff;*/
}
.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.remodal.remodal-is-opening {
  -webkit-animation-name: remodal-opening-keyframes;
  animation-name: remodal-opening-keyframes;
}

.remodal.remodal-is-closing {
  -webkit-animation-name: remodal-closing-keyframes;
  animation-name: remodal-closing-keyframes;
}

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
  vertical-align: middle;
}

/* Close button */

.remodal-close{
  position: fixed;
  z-index: 99;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  width: 6rem;
  height: 6rem;
/*  border-radius: 50%;
  border: #000;
  background-color: #000;*/
  padding: 0;
  margin: 0;
  transform: scale(0.7);
}
  
.remodal-close span{
    display: inline-block;
    position: absolute;
    height: 0.15rem;
    background-color: #fff;
    top: 50%;
    left: 22%;
    width: 56%;
  }

.remodal-close span:nth-of-type(1) {
    transform: rotate(-30deg);
}
.remodal-close span:nth-of-type(2){
    transform: rotate(30deg);
}


/*--------------------------------------------------------コンテンツデザイン-----*/
/*.remodal .modal-content{
  width: 100%;
  max-width: 100rem;
}
.remodal .explain{
  width: 100%;
}
*/

.remodal h2{
  padding: 5rem 0 2rem;
  margin: 0;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
}
.remodal .modal-exp h2 {
  padding: 4rem 0 0;
}

.remodal p{
  margin: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0;
  color: #fff;
}
.remodal .alignright{
  text-align: right;
}

/*--------------------------------------------------------コンテンツデザイン-----*/

/* Keyframes
   ========================================================================== */

@-webkit-keyframes remodal-opening-keyframes {
  from {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    -webkit-transform: none;
    transform: none;

    opacity: 1;

    -webkit-filter: blur(0);
    filter: blur(0);
  }
}

@keyframes remodal-opening-keyframes {
  from {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    -webkit-transform: none;
    transform: none;

    opacity: 1;

    -webkit-filter: blur(0);
    filter: blur(0);
  }
}

@-webkit-keyframes remodal-closing-keyframes {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 1;
  }
  to {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);

    opacity: 0;

    -webkit-filter: blur(0);
    filter: blur(0);
  }
}

@keyframes remodal-closing-keyframes {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 1;
  }
  to {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);

    opacity: 0;

    -webkit-filter: blur(0);
    filter: blur(0);
  }
}

@-webkit-keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

@media only screen and (min-width: 782px) {
  .remodal {
    /*max-width: 700px;
    max-width: 90rem;
    width: 80%;
    padding: 6rem;*/
  }
  .remodal-close{
    top: 2rem;
    right: 2rem;
    transform: scale(1);
  }
  .commercial-explain{
    padding-top: 3rem;
  }
  .remodal .commercial-explain tr{
    border-bottom: 2px dashed #000;
    grid-template-columns: 27rem auto;
  }
  .remodal .commercial-explain tr:first-child{
    border-top: 2px dashed #000;
  }

  .remodal .postage-explain tr * {
    padding: 2rem;
    width: 30%;
  }
  .remodal .postage-explain th {
    width: 24%;
  }
  
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 700px;
}
