.goods {
  width: 100%;
  margin: 0 0 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.goods-item {
  position: relative;
  width: 30%;
  margin: 0 3% 1.8rem 0;
  padding: 0.6rem;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.3);
}

.loupe {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 12%;
  z-index: 10;
}

.goods-name {
  width: 100%;
  aspect-ratio: 1 / 0.24;
  margin: .5em 0 .5em 0;
  font-size: 1vw;
  border-bottom: #6d411f solid 1px;
}

.goods-explan {
  width: 100%;
  aspect-ratio: 1 / 0.32;
  margin: 0 0 1em;
  font-size: 0.8vw;
}

.goods-btn a {
  display: block;
  width: 100%;
  padding: 0.5em 0;
  text-align: center;
  color: #fff;
  font-size: 1vw;
  text-decoration: none;
  background-image: url(../img/common/btn-arrow.png);
  background-repeat: no-repeat;
  background-position: center right 0.6em;
  background-size: auto 22%;
  background-color: #6d411f;
  transition: all 0.3s;
}

.goods-btn a:hover {
  background-color: #c01000;
}

.top-btn-outer {
  width: 30%;
}

.top-btn a {
  display: block;
  width: 100%;
  padding: 0.5em 0;
  text-align: center;
  color: #fff;
  font-size: 1vw;
  text-decoration: none;
  background-image: url(../img/common/btn-arrow-2.png);
  background-repeat: no-repeat;
  background-position: center left 0.6em;
  background-size: auto 22%;
  background-color: #6d411f;
  transition: all 0.3s;
}

.top-btn a:hover {
  background-color: #c01000;
}

.lity-content {
  max-width: 520px;
  padding: 2rem;
  background-color: #fff;
}

.goods-image {
  width: 100%;
  margin: 0 0 1rem;
  border: #ccc solid;
}

.goods-thumb {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.goods-thumb-item {
  width: 23%;
  margin: 0 2.65% 0 0;
  transition: all 0.3s;
  border: #ccc solid;
}

.goods-image img,
.goods-thumb-item img {
  width: 100%;
}

.goods-thumb-item:nth-child(4n) {
  margin: 0;
}

.goods-thumb-item.is-active {
  border: #000 solid;
  opacity: 1;
}

.goods-thumb-item img {
  width: 100%;
  display: block;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

.tag-outer {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

button.tag {
  display: inline-block;
  margin: 0 1.5% 1em 0;
  padding: 0.3em 1.8em 0.3em 1.2em;
  text-align: center;
  color: #6d411f;
  font-size: 0.9vw;
  text-decoration: none;
  background-image: url(../img/common/btn-arrow-3.png);
  background-repeat: no-repeat;
  background-position: center right 0.6em;
  background-size: auto 22%;
  border: #6d411f solid 2px;
  transition: all 0.3s;
}

/* 非表示用 */
.goods-item.is-hidden {
  display: none !important;
}

/* 指定の選択スタイル */
button.tag.active {
  display: inline-block;
  margin: 0 1.5% 1em 0;
  padding: 0.3em 1.8em 0.3em 1.2em;
  text-align: center;
  color: #fff;
  font-size: 0.9vw;
  text-decoration: none;
  background-image: url(../img/common/btn-arrow.png);
  background-repeat: no-repeat;
  background-position: center right 0.6em;
  background-size: auto 22%;
  background-color: #c01000;
  border: #c01000 solid 2px;
  transition: all 0.3s;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .mt-top {
    margin: 1rem 0 0 5%;
  }

  .goods {
    margin: 0 0 1rem;
    justify-content: space-between;
  }

  .goods-item {
    position: relative;
    width: 48%;
    margin: 0 0 1rem 0;
    padding: 0.4rem;
    text-align: left;
  }

  .loupe {
    top: .5rem;
    right: .5rem;
    width: 16%;
  }

  .goods-name {
    aspect-ratio: 1 / 0.3;
    margin: .5em 0 .5em 0;
    font-size: 2.93vw;
  }

  .goods-explan {
    aspect-ratio: 1 / 0.73;
    font-size: 2.4vw;
  }

  .goods-btn a {
    font-size: 2.93vw;
  }

  .top-btn-outer {
    width: 48%;
  }

  .top-btn a {
    font-size: 2.93vw;
  }

  .top-btn a:hover {
    background-color: #c01000;
  }

  .lity-content {
    max-width: 100%;
    padding: 1.5rem;
  }

  .ts {
    font-size: 58% !important;
  }

  .tag-outer {
    margin: 0 0 0.5em;
  }

  button.tag {
    margin: 0 1.8% .5em 0;
    font-size: 2.6vw;
    border: #6d411f solid 1px;
  }

  /* 指定の選択スタイル */
  button.tag.active {
    margin: 0 1.8% .5em 0;
    font-size: 2.6vw;
    border: #c01000 solid 1px;
  }

}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .mt-top {
    margin: 3rem 0 0 5%;
  }

  .goods-item:nth-child(3n) {
    margin: 0 3% 0 0;
  }

  .goods-name {
    aspect-ratio: 1 / 0.3;
    font-size: 1.88vw;
  }

  .goods-explan {
    aspect-ratio: 1 / 0.56;
    font-size: 1.61vw;
  }

  .goods-btn a {
    aspect-ratio: 1 / 0.2;
    font-size: 1.88vw;
  }

  .top-btn a {
    aspect-ratio: 1 / 0.2;
    font-size: 1.88vw;
  }

  .ts {
    font-size: 86% !important;
  }

  button.tag {
    font-size: 1.5vw;
  }

  button.tag.active {
    font-size: 1.5vw;
  }
}

@media screen and (min-width: 1025px) {

  .goods-item:nth-child(3n) {
    margin: 0 3% 0 0;
  }

  .goods-thumb-item:hover {
    opacity: 0.6;
  }

  button.tag:hover {
    color: #fff;
    background-image: url(../img/common/btn-arrow.png);
    background-color: #6d411f;
    transition: all 0.3s;
  }

  button.tag.active:hover {
    background-color: #6d411f;
    border: #6d411f solid 2px;
    transition: all 0.3s;
  }

}