@charset "utf-8";
/* CSS Document */

/* -------------------------------------------------

css

------------------------------------------------- */

.modal_trigger {
  margin: 20px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.modal_trigger li {
  cursor: pointer;
  color: #333333;
  max-width: 250px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.modal_trigger li img {
  width: 100%;
  height: auto;
}
.modal_trigger li img:hover {
  opacity:0.8;
  filter: alpha(opacity=80 style=0);
  -moz-opacity:0.8;
}

.modal_trigger li::before {
  content: '';
  display: inline-block;
  width: 100%;
  height: 100%;
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
  position: absolute;
  left: -20px;
  top: 100%;
  z-index: -1;
  opacity: 0;
}

.modal_trigger li:hover {
  color: #333333;
}

.modal_trigger li:hover::before {
  -webkit-animation: slideRightBg ease .2s forwards;
          animation: slideRightBg ease .2s forwards;
}

.modal_trigger li + li {
  margin-left: 20px;
}

@-webkit-keyframes slideRightBg {
  0% {
    opacity: 0;
    left: -50%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes slideRightBg {
  0% {
    opacity: 0;
    left: -50%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

.modal_box {
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.modal_bg {
  background-color: rgba(30, 30, 30, 0.9);
  height: 100%;
  width: 100%;
}

.modal_inner {
  background-color: #fff;
  left: 50%;
  padding: 40px;
  position: absolute;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  max-width: 900px;
}

.modal_close {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 2rem;
}

.modal_block span {
  /*color: #AA0000;*/
}

@media screen and (max-width: 768px) {
  .modal_trigger {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .modal_trigger li {
    width: 47.5%;
    margin-top: 20px;
    max-width: inherit;
  }
  .modal_trigger li + li {
    margin-left: 0;
  }
  .modal_inner {
    width: 90%;
    padding: 25px;
  }
  .modal_close {
    top: 5px;
    font-size: 2.2rem;
  }
  .modal_block p {
    font-size: 13px;
  }
}

@media screen and (max-width: 500px) {
  .modal_trigger {
    margin: 0 0 20px;
  }
  .modal_block p {
    font-size: 11px;
  }
}