#main-wrap {
  margin-top: 50px;
}

.contents-img {
  width: var(--width, 100%);
  max-width: 100%;
  margin: 10px auto 0;
}

.minor-title {
  color: #fff;
}

/*購入ガイド*/
.caution-list {
  counter-reset: caution;
}

.caution-text {
  width: 100%;
  margin: 10px auto 0;
  padding-left: 2.5em;
  text-indent: -2.1em;
  font-size: 24px;
  line-height: 1.5;
}

.caution-text::before {
  counter-increment: caution;
  content: "※" counter(caution);
  margin-right: 0.5em;
}

.caution-text:nth-child(2) {
  color: #ffa500;
}

/* 第一タブ */
.tabs.tab1,
.tabs.tab2 {
  width: 98%;
  margin: 0 auto;
}

.tabs button {
  max-width: 300px;
  width: 100%;
}

/* 第三タブ：基本設定（1～3個） */
.tabs.tab3 {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* 各ボタン */
.tabs.tab3 > .tab-btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 300px;
}

/* 4個：2列2行 */
.tabs.tab3.is-four {
  display: grid;
  grid-template-columns: repeat(2, 244px);
  justify-content: center;
  gap: 10px 12px;
}

.tabs.tab3.is-four .tab-btn {
  width: 244px; /* 2列用に少し広め */
}

.tabs.tab2,
.tabs.tab3,
.product-image-wrap {
  margin-top: 20px;
}

.btn-product-buy-wrap {
  bottom: 3%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.btn-product-buy-wrap > .btn-product-buy,
.btn-product-buy-wrap > .btn-product-spec {
  position: relative;
  inset: auto;
  margin: 0;
}

#btn-cs-buy {
  bottom: 3%;
}

/*メディア掲載*/
.contents-text + .contents-list-wrap {
  margin-top: 40px;
}

@media screen and (max-width: 414px) {
  #main-wrap {
    margin-top: 20px;
  }

  .product-info-wrap.contents-item {
    margin-top: 20px;
  }

  .tabs.tab3 > .tab-btn {
    width: 30%;
  }

  .tabs.tab3.is-four .tab-btn {
    width: 100%;
  }

  .tabs.tab3 {
    gap: 10px;
  }

  .tabs.tab3.is-four {
    grid-template-columns: repeat(2, 120px);
    gap: 5px 6px;
  }

  .tabs.tab2,
  .tabs.tab3,
  .product-image-wrap {
    margin-top: 10px;
  }

  .btn-product-buy-wrap,
  #btn-cs-buy {
    position: relative;
    margin: 10px auto 0;
  }

  #btn-cs-buy {
    display: block;
  }

  .btn-product-buy,
  .btn-product-spec,
  #btn-cs-buy {
    padding: 1px;
    border: 1px solid #fff;
  }
}
