/* Modal */
.modal-container {
  position: relative;
  z-index: 9999;
  display: none;
}
.modal-container .modal-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  left: 0;
  top: 0;
  cursor: pointer;
}
.modal-container .modal-viewport {
  width: auto;
  height: auto;
  background: #fff;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.modal-container .modal-viewport .modal-off {
  font-size: 1.24rem;
  color: #fff;
  padding: 7px 10px;
  background: #333;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  cursor: pointer;
}
.modal-container.active {
  display: block;
  animation: modalAction .4s ease 0s;
}

@keyframes modalAction {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* for More Search */
#moreSearch {
  width: 530px;
  height: auto;
  max-height: 80vh;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: auto;
  background: #eee;
  border: none;
  padding: 25px;
  margin: 0;
  border: 3px solid #333;
}
#moreSearch form input[type=text] {
  width: 100%;
  font-size: 1.3rem;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid #ddd;
}
#moreSearch form select {
  font-size: 1.3rem;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
}
#moreSearch form select[name=search_genre], #moreSearch form select[name=search_series] {
  width: 100%;
}
#moreSearch form label {
  cursor: pointer;
}
#moreSearch form .radios li {
  display: inline-block;
  margin-right: 10px;
}
#moreSearch form .btn {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
}
#moreSearch form .search_submit,
#moreSearch form .search_clear {
  width: 140px;
  font-size: 1.3rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 10px;
  background-color: #333;
  background-repeat: no-repeat;
  background-position: 8px center;
  -moz-background-size: 22px auto;
  -webkit-background-size: 22px auto;
  background-size: 22px auto;
  display: inline-block;
  margin: 5px;
}
#moreSearch form .search_submit {
  background-image: url(../images/common/modal_submit.png);
}
#moreSearch form .search_clear {
  background-color: #777;
}
#moreSearch form table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
#moreSearch form table th, #moreSearch form table td {
  text-align: left;
  padding: 2px 0;
  border: 1px solid transparent;
}
#moreSearch form table th {
  font-weight: normal;
  white-space: nowrap;
  padding-right: 10px;
}

@media all and (max-width: 768px) and (min-width: 481px) {
  #moreSearch {
    width: 340px;
  }
}
@media all and (max-width: 480px) {
  #moreSearch {
    width: 220px;
    padding: 10px;
  }
  #moreSearch form .radios li {
    display: block;
    margin: 0;
  }
  #moreSearch form .search_submit,
  #moreSearch form .search_clear {
    width: 160px;
    display: block;
    margin: 5px 0;
  }
  #moreSearch form table th, #moreSearch form table td {
    display: block;
    padding: 0;
  }
  #moreSearch form table th {
    white-space: normal;
    padding: 5px 0 2px;
  }
  #moreSearch form table td {
    padding: 0 0 5px;
  }
}
/* for More Shop */
#moreShop {
  min-width: 460px;
  border: 3px solid #333;
}
#moreShop ul {
  text-align: center;
  padding: 25px;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
#moreShop ul li {
  width: 33.333333333%;
  padding: 10px 5px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
#moreShop ul li a img {
  opacity: 1;
  transition: opacity .4s ease 0s;
}
#moreShop ul li a img:hover {
  opacity: .6;
}

@media all and (max-width: 480px) {
  #moreShop {
    width: 220px;
    min-width: initial;
    min-width: none;
  }
  #moreShop ul {
    padding: 10px;
  }
  #moreShop ul li {
    width: 50%;
    padding: 15px 5px;
  }
}
