/**
 * テーマ追補 CSS（本番は style.css を再コンパイルせずここで上書き）
 * - ③ news/13470 SP 文字重なり（キャプション幅・float）
 * - ③ news/13971・14112 テーブル height:24px による文字重なり
 * - ① strong 内 span の太字打ち消し修正
 */

/* ① 太字: .textarea span { font-weight: normal } が strong 配下まで効いて見えなくなる */
.textarea strong,
.textarea strong b {
  font-weight: bold;
}

.textarea strong span,
.textarea strong u {
  font-weight: bold;
}

.textarea table strong,
.textarea table strong span {
  font-weight: bold;
}

/*
 * ③ エディタが table/tr/td に height:24px を付けると、
 * 導入文がはみ出し、直後の見出しと重なる（news/13971 で再現・確定）
 */
.textarea table,
.textarea table tr,
.textarea table th,
.textarea table td {
  height: auto !important;
}

.textarea table + p,
.textarea table + h2,
.textarea table + h3 {
  clear: both;
}

.textarea h2,
.textarea h3 {
  position: static;
  float: none;
  clear: both;
}

@media only screen and (max-width: 768px) {
  .textarea .wp-caption {
    width: auto !important;
    max-width: 100%;
  }

  .textarea .alignright,
  .textarea .alignleft {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 1.7em 0 !important;
    clear: both;
  }

  .textarea .alignright + h2,
  .textarea .alignleft + h2,
  .textarea .alignright + h3,
  .textarea .alignleft + h3,
  .textarea .alignright + p,
  .textarea .alignleft + p {
    clear: both;
    margin-top: 1em !important;
  }

  .textarea img.alignright + p,
  .textarea img.alignleft + p {
    margin-top: 1em !important;
  }
}
