.m-modal .m-modal__content {
  margin: 0 auto !important;
  min-height: 100vh;
  text-align: center;
}

.p-goods {
  padding-bottom: 326px;
}

.p-goods_modal {
  padding: 4% 0;
}

.p-goods_modal__wrap {
  position: relative;
  z-index: 0;
  margin: 0 auto;
  width: 90vw;
  max-width: 1040px;
}

.p-goods_modal__txt {
  line-height: 1.5em;
  text-align: left;
}

.p-goods_modal__txt--name {
  font-size: 22px;
}

.p-goods_modal__txt--detail {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75em;
}

.p-goods_modal__img--inner {
  position: relative;
  border: 1px solid;
  -o-border-image: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
     border-image: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
  border-image-slice: 1;
  padding-top: 100%;
  width: 100%;
}

.p-goods_modal__img--inner figure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.p-goods_modal__img--switch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 20px;
}

.p-goods_modal__img--switch li {
  position: relative;
  cursor: pointer;
  margin-left: 2%;
  padding-top: 23.5%;
  width: 23.5%;
}

.p-goods_modal__img--switch li::before, .p-goods_modal__img--switch li::after {
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
  width: 100%;
  height: 100%;
  content: "";
}

.p-goods_modal__img--switch li::before {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  opacity: 0;
  background: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
}

.p-goods_modal__img--switch li::after {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  opacity: 1;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 1px solid;
  -o-border-image: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
     border-image: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
  border-image-slice: 1;
}

.p-goods_modal__img--switch li.is-current::before, .p-goods_modal__img--switch li.is-current::after {
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}

.p-goods_modal__img--switch li.is-current::before {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  opacity: 0.5;
}

.p-goods_modal__img--switch li.is-current::after {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  opacity: 0;
}

.p-goods_modal__img--switch li:nth-child(4n + 1) {
  margin-left: 0;
}

.p-goods_modal__img--switch li:nth-child(n + 5) {
  margin-top: 10px;
}

.p-goods_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 56px;
}

.p-goods_list__item {
  cursor: pointer;
  margin-left: 5%;
  width: 30%;
}

.p-goods_list__img {
  position: relative;
  border: 1px solid;
  -o-border-image: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
     border-image: linear-gradient(45deg, #ffd4e3 0%, #e2d1fe 50%, #acd7ff 100%);
  border-image-slice: 1;
  padding-top: 100%;
  width: 100%;
  overflow: hidden;
}

.p-goods_list__img figure {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
}

.p-goods_list__name {
  margin-top: 18px;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.4em;
}

.p-goods_caption {
  padding: 20px 0 0;
  font-size: 15px;
  line-height: 1.75em;
}

@media screen and (min-width: 769px) {
  .m-modal .m-modal__content {
    display: table;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    -webkit-transform: translate(0%, 0%) !important;
        -ms-transform: translate(0%, 0%) !important;
            transform: translate(0%, 0%) !important;
    height: 100vh !important;
  }
  .m-modal .m-modal__content_wrap {
    display: table-cell;
    vertical-align: middle;
  }
  .p-goods_modal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .p-goods_modal__txt {
    padding-left: 60px;
    width: calc(100% - 350px);
  }
  .p-goods_modal__img {
    width: 350px;
  }
  .p-goods_list__item:nth-child(3n + 1) {
    margin-left: 0;
  }
  .p-goods_list__item:nth-child(n + 4) {
    margin-top: 38px;
  }
}

@media screen and (max-width: 768px) {
  .p-goods {
    padding-bottom: 156px;
  }
  .p-goods_modal {
    padding: 100px 0 50px;
  }
  .p-goods_modal__txt {
    padding-top: 30px;
  }
  .p-goods_modal__txt--name {
    font-size: 16px;
    letter-spacing: 0.03em;
  }
  .p-goods_modal__txt--detail {
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: 0.025em;
    line-height: 1.6em;
  }
  .p-goods_modal__img--switch {
    margin-top: 12px;
  }
  .p-goods_modal__img--switch li:nth-child(n + 5) {
    margin-top: 8px;
  }
  .p-goods_list {
    margin-top: 18px;
  }
  .p-goods_list__item {
    margin-left: 4%;
    width: 48%;
  }
  .p-goods_list__item:nth-child(2n + 1) {
    margin-left: 0;
  }
  .p-goods_list__item:nth-child(n + 3) {
    margin-top: 28px;
  }
  .p-goods_list__name {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .p-goods_caption {
    padding-top: 15px;
    font-size: 14px;
  }
}
