/* Youtube埋め込み動画のレスポンシブ化 */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9比率 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* pタグの上下余白を削除 */
p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* 商品詳細テーブル内の段落/ブロック余白をゼロ */
.item-detail table td p,
.item-detail table td div,
.item-detail .detail-table td p,
.item-detail .detail-table td div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 先頭・末尾の保険 */
.item-detail table td > *:first-child { margin-top: 0 !important; }
.item-detail table td > *:last-child  { margin-bottom: 0 !important; }

/* pre-wrap指定ブロックの余白も念のためゼロ */
.item-detail [style*="white-space: pre-wrap"] {
  margin: 0 !important;
  padding: 0 !important;
}

.item-detail [data-bcart-textblock] {
  white-space: pre-wrap;
  margin: 0 !important;
  padding: 0 !important;
}


/* 商品説明欄の余白調整 */
.item-detail p:first-child,
.item-detail div:first-child {
  margin-top: 0 !important;
}

/* pre-wrap指定のブロックも余白ゼロに */
.item-detail [style*="white-space: pre-wrap"]:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


.item-detail p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.item-detail [style*="white-space: pre-wrap"] {
  margin: 0 !important;
  padding: 0 !important;
}

.item-detail [style*="white-space: pre-wrap"]:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}