@charset "utf-8";

.modal{
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 999;
}

.modal-bg{
  position: absolute;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content{
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: 3em auto;
  padding: 40px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: #fff;
  z-index: 999;
  margin: 0;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.close__btn {
  position: absolute;
  width: 50px;
  height: auto;
  top: -60px;
  right: 0;
}

.store__title {
  width: 100%;
  margin-bottom: 40px;
  padding: 0 0 5px 2em;
  font-size: 28px;
  font-weight: 500;
  border-bottom: #000 solid 3px;
}

.store__ebook {
  background-image: url(../img/common/sp.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
}

.store__net {
  background-image: url(../img/common/book.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
}

.store__area{
  width: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.store__item {
  margin-right: 2.5%;
  margin-bottom: 30px;
  -webkit-box-sizing:border-box;
          box-sizing:border-box;
  width: 18%;
}

.store__item:nth-child(5n) {
  margin-right: 0;
}

.store__item img {
  width: 100%;
  line-height: 0;
  margin: 0;
  border: #ccc solid 1px;
}

.store__btn__box {
  width: 100%;
  margin: 0 auto 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.btn_store a {
  display: block;
  width: 240px;
  padding: .6em 0;
  margin: 0 1em;
  text-align: center;
  color: #e63556;
  border: #e63556 solid 2px;
  font-size: 18px;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.btn_store a:hover {
  text-decoration: none;
  color: #fff;
  background-color: #e63556;
  border: #e63556 solid 2px;
}

.btn_store a:first-child {
  margin: 0 1em 1em;
}

@media screen and (min-width: 1px) and (max-width: 767px) {
  .modal-content{
    position: relative;
    width: 100%;
    height: 72%;
    padding: 30px 20px 0 20px;
    background: #fff;
    z-index: 999;
    margin: 0;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    overflow: scroll;
  }

  .store__title {
    font-size: 20px;
  }

  .store__item {
    margin-right: 2.8%;
    margin-bottom: 20px;
    width: 31%;
  }

  .store__item:nth-child(3n) {
    margin-right: 0;
  }

  .store__item:nth-child(5n) {
    margin-right: 2.8%;
  }

  .close__btn {
    position: absolute;
    width: 50px;
    height: auto;
    top: 10px;
    right: 10px;
  }

}
