.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
.entry-content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 1.15rem;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 3em 0 1.5em;
  padding: 0 0 4px;
  padding-left: 0;
  border-bottom: 2px solid var(--color_htag, var(--color_text));
  background: none;
}

.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
.entry-content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
  counter-increment: section-h2;
  content: counter(section-h2, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 2rem;
  padding: 3px 6px;
  margin-top: 0;
  margin-right: 0.1rem;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--color_htag, var(--color_text));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  position: static;
  left: auto;
  top: auto;
  transform: none;
  pointer-events: none;
}

.post_content h2.has-text-align-center,
.entry-content h2.has-text-align-center {
  justify-content: center;
}

.post_content h2.has-text-align-right,
.entry-content h2.has-text-align-right {
  justify-content: flex-end;
}

.post_content h3,
.entry-content h3 {
  font-size: 1.28rem;
  line-height: 1.4;
}

.post_content h4,
.entry-content h4 {
  font-size: 1.12rem;
  line-height: 1.4;
}

.post_content h5,
.entry-content h5 {
  font-size: 1.02rem;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
  .entry-content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
    column-gap: 0.9rem;
    font-size: 1.36rem;
  }

  .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
  .entry-content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
    min-width: 1.9rem;
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .post_content h3,
  .entry-content h3 {
    font-size: 1.16rem;
  }

  .post_content h4,
  .entry-content h4 {
    font-size: 1.03rem;
  }

  .post_content h5,
  .entry-content h5 {
    font-size: 0.96rem;
  }
}
