@charset "utf-8";

/* =========================================================
   WordPress管理コンテンツ（/contents/{slug}）の本文スタイル

   ブロックエディタが出力する素の要素（h2〜h4 / p / ul / ol / table / img）に
   最低限の体裁を与える。編集者がクラス名を意識せずに書けるようにするため。

   既存の .text__reg 等のクラスを使った本文もそのまま動作する
   （content.css の .otherWrap 配下の定義が効く）。
   ========================================================= */

.wpContent{
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* ---- 見出し ---- */
.wpContent h2{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 40px 0 16px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--accent);
}
.wpContent h3{
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 32px 0 12px;
}
.wpContent h4{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 24px 0 10px;
}
.wpContent > :first-child{
  margin-top: 0;
}

/* ---- 本文 ---- */
.wpContent p{
  margin: 0 0 20px;
}
.wpContent a{
  color: var(--accent);
  text-decoration: underline;
}
.wpContent a:hover{
  text-decoration: none;
}
.wpContent strong{
  font-weight: 700;
}

/* ---- リスト ---- */
.wpContent ul,
.wpContent ol{
  margin: 0 0 20px;
  padding-left: 1.5em;
}
.wpContent li{
  margin: 0 0 8px;
}

/* ---- 画像 ---- */
.wpContent img{
  max-width: 100%;
  height: auto;
}
.wpContent figure{
  margin: 0 0 20px;
}
.wpContent figcaption{
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- テーブル ---- */
.wpContent table{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
.wpContent th,
.wpContent td{
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.wpContent th{
  background: #f8f8f8;
  font-weight: 700;
  white-space: nowrap;
}
/* 横幅の広い表は本文内で横スクロールさせる */
.wpContent .wp-block-table{
  overflow-x: auto;
}

/* ---- 引用・区切り ---- */
.wpContent blockquote{
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--lightg);
  color: var(--muted);
}
.wpContent hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
