p[class^="item-detail_description_"] {
    margin: 8em 0 !important;
}

p[class^="item-detail_description_"] h1,
p[class^="item-detail_description_"] h2, 
p[class^="item-detail_description_"] h3 {
  color: #2c3e50;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3em;
  margin-bottom: 0.5em;
}
p[class^="item-detail_description_"] h4 {
  color: #2c3e50;
  margin: 0.5em 0;
}

p[class^="item-detail_description_"] h1 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 1em;
}
p[class^="item-detail_description_"] ul {
  margin: 0.5em 0 1.5em 1.5em;
}
p[class^="item-detail_description_"] li {
  margin-bottom: 0.3em;
}
p[class^="item-detail_description_"] .card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5em;
  margin: 1.5em 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

/* 必須ラベル */
.badge-required {
  display: inline-block;
  font-size: 0.75em;
  font-weight: bold;
  color: #fff;
  background-color: #d32f2f; /* 赤系 */
  border-radius: 12px;
  padding: 0.2em 0.6em;
  margin-right: 0.5em;
  white-space: nowrap;
  }
p[class^="item-detail_description_"] .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* スワイプが滑らか */
  border-radius: 8px;
}
/* 表のスタイル */
p[class^="item-detail_description_"] table {
  border-collapse: collapse;
/* width: max-content;
white-space: nowrap; */
  table-layout: auto;        /* 自然な列幅 */
  margin: 1em 0;
}
p[class^="item-detail_description_"] th,
p[class^="item-detail_description_"] td {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  text-align: left;
}
p[class^="item-detail_description_"] th {
  background-color: #f5f5f5;
}