/* マージン調整 */
.mgt1m {
  margin-top: 1em;
}

.mgb1b {
  margin-bottom: 1em;
}

.mgl1m {
  margin-left: 1em;
}

.mg100 {
  margin: 100px 0;
}

.mg30 {
  margin: 30px 0;
}

.pd-fav-item button span {
  margin-left: 2px;
}

form {
  margin: 0;
}

h2.pd-name {
  font-size: 1.7em;
  margin: 10px 0;
}

.pd-price {
  font-size: 1.5em;
  margin: 0.5em 0;
}

.pd-price .font-m {
  font-size: 0.6em;
}

.pd-naire {
  width: 100%;
}

/* オプション1で表形式縦並びの場合 */
.o12 .table-bordered {
  border-top: none;
}

.product-order-exp {
  margin: 30px 0;
}

.together-items {
  margin-top: 30px;
}

.together-items .product-item-card {
  margin-bottom: 0;
}

.pd-fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-fav-item button {
  border: 1px solid #eee;
  background-color: transparent;
}

.pd-fav-item button.is-added {
  color: #ff7979;
}

.pd-fav-item svg {
  vertical-align: top;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* レビューの星 */
.fa-star,
.fa-star-half-alt {
  color: #ffdc00;
}

.fa-star.star-gray {
  color: #eee;
}

.p-posted-review__star.is-color {
  fill: #ffdc00;
}

svg:not(:root) {
  overflow: hidden;
}

.p-posted-review__star {
  width: 18px;
  height: 18px;
  vertical-align: -.3em;
  fill: currentColor;
  fill: #ddd;
}

.pd-model {
  font-family: oswald, san-serif;
  margin: 10px 0;
}

/* プルダウンのデザイン変更 */
#product select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#product select::-ms-expand {
  display: none;  /*IE10以上で矢印を消している*/
}

.opt-select-wrap {
  position: relative;
}

/* selectには疑似要素が付かないので親要素を用意した */
.opt-select-wrap:after {
  position: absolute;
  display: block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f078';
  top: 2px;
  right: 4px;
  color: #999;
  background-color: #fff;
  margin: 3px 6px 2px;
  pointer-events: none;  /* クリック出来るよう */
}

/* グループ（タグ化）  */
.caption_box {
  position: relative;
  margin-top: 1em;
  padding: 0.5em 0;
  border-bottom: 1px solid black;
  z-index: -1;
}

.caption_box .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1em;
  padding: 0 1em;
  margin: 0;
  background-color:
    white;
  transform: translateY(50%) translateX(1em);
}

.product_belong_lists {
  display: inline-block;
  margin: 0;
  list-style: none;
}

.product_belong_lists li.product_belong_list {
  padding: 1px 10px;
  margin-right: 2.5px;
  margin-bottom: 5px;
  border-radius: 2px;
  background-color: #eee;

}

/* 商品情報 */
input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 0;
  -webkit-appearance: none;
  padding: 4px 6px;
  height: 30px;
}

#product select {
  border-radius: 0;
  height: 30px;
}

input.product-order-form {
  width: calc(100% - 14px);
}

input.product-cart-init-num {
  float: left;
  width: 3em;
}

/* 数量 */
.product-qty {
  display: flex;
  align-items: center;
  margin: 1em 0;
}

.product-qty-name {
  padding: 5px 5px 5px 0;
}

/* 商品単位 */
.product-unit {
  float: left;
  padding: 5px;
}

#product .pure-button {
  font-size: 1.2em;
  margin: 0.5em 0 1em;
  padding: 1em 0;
  width: 100%;
  height: auto;
}

#product .pure-button-black {
  background-color: #333;
  color: #fff;
}

/* お気に入りボタン */
.pd-fav-item button {
  padding: 1em 0;
  cursor: pointer;
  transition: .3s;
  color: #999;
  border: 0;
  outline: none;
}

.favorite-button i {
  margin-right: 5px;
}

#product .pure-button-gray {
  background-color: #eee;
  color: #666;
}


/* スライドショー slick */
.slick,
.slick-thumb {
  opacity: 0;
  transition: opacity .3s linear;
}

.slick.slick-initialized,
.slick-thumb.slick-initialized {
  opacity: 1;
}

/*画像を拡大するか、しないか*/
.slick-slide img {
  width: 100%;
}

.product-image-sub img {
  transition: 0.3s;
}

.product-image-sub img:hover {
  cursor: pointer;
  opacity: 0.75;
}

#product .slick-slider {
  margin-bottom: 0;
}

.slick button {
  height: 100%;
  position: absolute;
  top: 0;
  background-color: transparent;
  border: none;
  width: 40px;
}

.product-image-sub .slick-slide {
  padding: 0;  /*サムネ間隔。計算の端数で等間隔にならないので基本空けない*/
}

.product-image-sub {
  margin-top: 5px;
  padding: 0 40px;
}

svg.slick-prev {
  left: -40px;
}

svg.slick-next {
  right: -40px;
}

svg.slick-prev,
svg.slick-next {
  margin-top: 0;
  background-color: rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 40px;
  transition: .3s;
  padding: 0 7px;
}

svg.slick-prev:hover,
svg.slick-next:hover {
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 0.75;
}

svg.slick-prev:hover,
svg.slick-prev:focus,
svg.slick-next:hover,
svg.slick-next:focus {
  opacity: 0.75;
}

/* サムネが6枚以下の場合のslickスタイル */
#product .slick-dots {
  display: flex!important;
  justify-content: center;
  position: static;
  bottom: 0;
  margin: 5px 0;
}
#product .slick-dots li {
  width: 16.6666%;
  height: auto;
  margin: 0;
}

/* md */
@media (min-width: 768px) {
  .product-info-wrapper {
    padding-left: 30px;
  }
  .pd-model, h2.pd-name {
    margin-top: 0; 
  }
  /* サムネスライドショー */
  /*
  .product-image-sub {
    padding: 0 10%;
  }
  
  svg.slick-prev {
    left: -12.5%;
  }

  svg.slick-next {
    right: -12.5%;
  }

  svg.slick-prev, svg.slick-next {
    margin-top: 0; 
    background-color: rgba(0, 0, 0, 0.1);
    width: calc(12.5% - 10px);
    transition: .3s;
  }*/
}

/* 関連商品の表示 */
.product-item-card {
  display: block;
}

/* スマホ表示: 3番目以降のアイテムを非表示 */
@media (max-width: 767px) {
  .product-item-card:nth-child(n+3) {
    display: none;
  }
}

/* PC表示: 5番目以降のアイテムを非表示 */
@media (min-width: 768px) {
  .product-item-card:nth-child(n+5) {
    display: none;
  }
}
