/* ===== モーダル共通 ===== */
.uk-modal-body {
  font-size: 1rem;
  line-height: 1.4;
  padding: 16px;
}

/* dlスタイル */
.block-goods-comment5 dl {
  margin-top: 1rem;
}
.block-goods-comment5 dl dt {
  font-weight: bold;
  color: #333;
}
.block-goods-comment5 dl dd {
  margin-bottom: 1rem;
  color: #666;
}

/* テーブルスタイル */
.goodscomment2_accordion-item-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  text-align: center;
}
.goodscomment2_accordion-item-body table th,
.goodscomment2_accordion-item-body table td {
  text-align: center;
  border: 1px solid #ddd;
  padding: 8px;
}
.goodscomment2_accordion-item-body table th:first-child {
  font-weight: 600;
  background: #f9f8f6;
}

/* 閉じるボタン */
.uk-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* スマホ用調整 */
@media screen and (max-width: 767px) {
  .uk-modal-body {
    font-size: 0.9rem;
    padding: 12px;
  }

  .goodscomment2_accordion-item-body table {
    font-size: 0.8rem;
  }
}

.block-goods-comment5 dl {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.block-goods-comment5 dl dt {
  width: 30%; /* 左側幅 */
  font-weight: bold;
  color: #333;
}

.block-goods-comment5 dl dd {
  width: 70%; /* 右側幅 */
  margin: 0;
  color: #666;
}
@media screen and (max-width: 767px) {
  .block-goods-comment5 dl {
    display: block;
  }
  .block-goods-comment5 dl dt,
  .block-goods-comment5 dl dd {
    width: 100%;
  }
}
.goodscomment2_accordion-item-body-tablecaption {
  text-align: right;
  font-size: 0.6rem;
}

/* ===== 製品仕様（dlブロック）の整形 ===== */
.block-goods-comment5 dl {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  row-gap: 1.8rem; /* dt+dd の上下にゆとり */
}

.block-goods-comment5 dl dt {
  width: 28%;
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
  padding-top: 4px;
}

.block-goods-comment5 dl dd {
  width: 72%;
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* dd 内の複数項目のまとまり感アップ */
.block-goods-comment5 dl dd p {
  margin-bottom: 1.2rem;
}
.block-goods-comment5 dl dd p:last-child {
  margin-bottom: 0;
}

/* スマホ */
@media (max-width: 767px) {
  .block-goods-comment5 dl {
    display: block;
  }
  .block-goods-comment5 dl dt,
  .block-goods-comment5 dl dd {
    width: 100%;
  }
  .block-goods-comment5 dl dt {
    margin-bottom: 0.3rem;
  }
  .block-goods-comment5 dl dd p {
    margin-bottom: 1rem;
  }
}

/* サイズ表画像大きさの調整 */
/* 共通 */
.size-figure img {
  width: 100%;
  height: auto;
  display: block;
}

p.goodscomment2_accordion-item-body-title {
  margin: 20px 0;
}
/* PC（768px以上） */
@media screen and (min-width: 768px) {
  .size-figure-wrap {
    display: flex;
    justify-content: center; /* 中央寄せ */
    gap: 30px; /* 画像同士の間隔 */
  }

  .size-figure img {
    width: 100%;
  }

  .size-figure {
    width: 50%;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 768px) {
  .size-figure-wrap {
    margin-bottom: 30px;
  }
  .size-figure img {
    margin-bottom: 30px;
  }
}

/* サイズ表タイトル（男性着用時／女性着用時） */
.size-figure__title {
  text-align: center; /* センタリング */
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 4px; /* 画像との間 */
  color: #777; /* 少し控えめな色 */
}

/* PCではほんのり大きくしてもOK */
@media screen and (min-width: 768px) {
  .size-figure__title {
    font-size: 13px;
  }
}

@media screen and (max-width: 767.98px) {
  .size-figure img {
    margin-bottom: 20px;
  }
}

/* ========================================
   スリープトップ 商品情報テーブル専用
======================================== */

.sleep-top-product-info {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* テーブル本体 */
.sleep-top-product-info table.p-product-table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* セル共通 */
.sleep-top-product-info table.p-product-table th,
.sleep-top-product-info table.p-product-table td {
  position: static !important;
  float: none !important;
  height: auto !important;
  margin: 0 !important;
  border: none !important;
  border-top: 1px solid #d0d0d0 !important;
  padding: 26px 28px !important;
  background: #fff !important;
  color: #222 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-align: left !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* 左側：項目名 */
.sleep-top-product-info table.p-product-table th.p-product-table__th {
  width: 30% !important;
  padding-left: 28px !important;
  padding-right: 20px !important;
  white-space: normal !important;
}

/* 右側：内容 */
.sleep-top-product-info table.p-product-table td.p-product-table__td {
  width: 70% !important;
  padding-left: 28px !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* 最終行の下線 */
.sleep-top-product-info table.p-product-table tbody tr:last-child th,
.sleep-top-product-info table.p-product-table tbody tr:last-child td {
  border-bottom: 1px solid #d0d0d0 !important;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  .sleep-top-product-info table.p-product-table th,
  .sleep-top-product-info table.p-product-table td {
    padding: 18px 12px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .sleep-top-product-info table.p-product-table th.p-product-table__th {
    width: 32% !important;
    padding-left: 10px !important;
    padding-right: 8px !important;
  }

  .sleep-top-product-info table.p-product-table td.p-product-table__td {
    width: 68% !important;
    padding-left: 12px !important;
    padding-right: 8px !important;
  }
}
