.hb-page-width-1008_heading {
  color: var(--color-blk, #141414);
  text-align: center;
  leading-trim: both;
  text-edge: cap;
  font-family: var(--font-body-family-b);
  font-size: 2.4rem;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  text-transform: uppercase;
  padding: 7rem 0;
  background: #dedede;

  @media screen and (min-width: 768px) {
    margin-top: -8.32rem !important;
    padding: 8.5rem 0 !important;
    padding-top: 15.32rem !important;
  }
}

.hb-page-width-1008_content {
  padding: 1.2rem 1.2rem 8rem;
  margin: 0 auto;
  background: var(--color-bgd_gray, #f9f9f9);

  @media screen and (min-width: 768px) {
    padding: 0.8rem 0rem 8rem;
    max-width: 100.8rem;
  }
}

:is(.hb-page-width-1008_content, .hb-page-width-1008_block-text) {


  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  th,
  td,
  blockquote,
  .rte--blockquote {
    color: var(--color-blk, #141414);
    font-family: var(--font-body-family-m);
    font-style: normal;
  }

  h4,
  h5,
  h6,
  p,
  li,
  th,
  td,
  blockquote,
  .rte--blockquote {
    leading-trim: both;
    text-edge: cap;
    font-size: 1.4rem;
    word-break: break-all;
  }

  h1,
  h2 {
    /* eng_M */
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 110%; /* 26.4px */
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 2.4rem;
  }

  h3 {
    /* jp_Mx */
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2.4rem;
  }

  h4 {
    font-family: var(--font-body-family-b);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2.4rem;
  }

  h5 {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2.4rem;
  }

  h6 {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2.4rem;
  }

  p,
  ul,
  ol,
  blockquote,
  .rte--blockquote,
  img {
    margin-bottom: 1.6rem;

    @media screen and (min-width: 768px) {
      margin-bottom: 1.8rem;
    }
  }

  p {
    /* jp_honbun */
    font-weight: 500;
    line-height: 175%;
  }

  li {
    /* jp_honbun */
    font-weight: 500;
    line-height: 175%;
    margin-left: 1.6em;
  }

  ul li {
    list-style-type: disc;
  }

  ol li {
    list-style-type: decimal;
  }

  blockquote,
  .rte--blockquote {
    /* jp_honbun */
    font-weight: 500;
    line-height: 175%;
    padding-left: 1.6rem;
    border-left: 1px solid var(--color-gray, #e8e8e8);
  }

  img {
    max-width: 100%;
    height: auto;
    border-radius: 0.4rem;
    display: block;
  }

  em,
  i {
    font-style: italic;
  }

  hr {
    border: 0;
    height: 1px;
    background: var(--color-gray, #e8e8e8);
    margin: 2.4rem 0;
  }

  table {
    width: 100%;
    box-shadow: none;
    background: var(--color-gray, #e8e8e8);
    margin-bottom: 1.6rem;

    @media screen and (min-width: 768px) {
      width: 100%;
      margin-bottom: 1.8rem;
    }
  }

  tbody {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  /* 構造1: 先頭行が th のみ（項目/内容）の場合は非表示 */
  tr:has(th):not(:has(td)) {
    display: none;
  }

  tr {
    display: flex;
    flex-direction: column;
    gap: 1px;

    &:last-child {
      border-bottom: 1px solid var(--color-gray, #e8e8e8);
    }

    @media screen and (min-width: 768px) {
      flex-direction: unset;
      gap: 0;
      background: var(--color-bg_gray1, #f7f7f7);

      &:nth-child(odd of tr:has(td)) {
        background: #fff;
      }
    }
  }

  th,
  td {
    padding: 1rem !important;
    border: 0px !important;

    @media screen and (min-width: 768px) {
      padding: 1.6rem !important;
    }
  }

  th,
  tr:not(:has(th)) td:first-child {
    /* jp_honbun */
    font-family: var(--font-body-family-b);
    font-weight: 700;
    line-height: 175%;
    display: flex;
    align-items: center;
    background: var(--color-wht, #fff);

    @media screen and (min-width: 768px) {
      min-width: 33rem;
      max-width: 33rem;
      background: transparent;
      border-right: 1px solid var(--color-gray, #e8e8e8) !important;
    }
  }

  td {
    font-weight: 500;
    line-height: 175%;
    background: var(--color-bg_gray1, #f7f7f7);

    @media screen and (min-width: 768px) {
      width: 100%;
      background: transparent;
    }
  }

  strong {
    font-family: var(--font-body-family-b);
    font-weight: 700;
  }

  iframe {
    border-radius: 0.4rem;
    width: 100%;
    height: auto;
    aspect-ratio: 167/94;

    @media screen and (min-width: 768px) {
      aspect-ratio: 16/9;
    }
  }

  p.hb-add-line {
    font-size: 0;
    width: 100%;
    height: 2.4rem;
    margin: 0;
    position: relative;

    &::before {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      content: "";
      display: block;
      width: 100%;
      height: 1px;
      background: var(--color-gray, #e8e8e8);
    }
  }

  /* h1 + p,
  h2 + p,
  h3 + p,
  h4 + p,
  h5 + p,
  h6 + p,
  ul + p,
  ol + p,
  blockquote + p,
  .rte--blockquote + p {
    margin-top: 2.4rem;
  } */

  /* タイトルの直前パターンの拡充: 他の要素（ol, blockquote, .rte--blockquote など）直後見出しも余白調整 */
  p + h1,
  p + h2,
  p + h3,
  p + h4,
  p + h5,
  p + h6,
  ul + h1,
  ul + h2,
  ul + h3,
  ul + h4,
  ul + h5,
  ul + h6,
  ol + h1,
  ol + h2,
  ol + h3,
  ol + h4,
  ol + h5,
  ol + h6,
  blockquote + h1,
  blockquote + h2,
  blockquote + h3,
  blockquote + h4,
  blockquote + h5,
  blockquote + h6,
  .rte--blockquote + h1,
  .rte--blockquote + h2,
  .rte--blockquote + h3,
  .rte--blockquote + h4,
  .rte--blockquote + h5,
  .rte--blockquote + h6 {
    margin-top: 2.4rem;
  }

  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul,
    ol,
    li,
    blockquote,
    .rte--blockquote,
    img,
    hr,
    table
  ):last-child {
    margin-bottom: 0;
  }

  a {
    text-decoration: underline;
  }
}

.hb-page-width-1008_content_inner {
  background: var(--color-wht, #fff);
  padding: 4rem 2.4rem;
  border-radius: 0.4rem;

  @media screen and (min-width: 768px) {
    padding: 4rem;
  }

  .hb-add-overview & {
    background: transparent;
    padding: 0;
  }
}

.section-hb-page-width-1008-padding {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.hb-header_pcRailTop {
  &.hb-mod-pc.hb-mod-notFixed {
    @media screen and (min-width: 768px) {
      background-color: #dedede;
    }
  }
}

body.hb-add-overview {
  th,
  td {
    width: 100% !important;
  }
}

.hb-page-width-1008 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
