/*
  page-generic.css
  ------------------------------------------------------------------
  page.php（専用デザインを持たない固定ページ用の汎用テンプレート）でだけ読み込む補助CSS。
  movie / guide / gastroscopy / emr / online / exam / notice / shingrix /
  evening-egd など、移行前のWordPressに既存の固定ページ（今回のリデザイン対象外）を
  想定し、WP管理画面の通常のエディタ本文（the_content()）に出てくる素のHTML要素
  （見出し・リンク・リスト・画像・表・引用・ボタン・ギャラリーなど）を、
  SCSSビルドのデザイントークンと同じ配色・フォントで最低限整えるためのもの。
  functions.php の css/<slug>.css のように自動生成はしておらず、手書きの固定ファイル。
*/

.c-page-generic {
  margin-left: auto;
  margin-right: auto;
}

.c-page-generic h2,
.c-page-generic h3,
.c-page-generic h4 {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #333333;
  line-height: 1.5;
  margin: 2em 0 0.8em;
}
.c-page-generic h2 { font-size: 22px; border-bottom: 2px solid #7FBF34; padding-bottom: 0.4em; }
.c-page-generic h3 { font-size: 18px; }
.c-page-generic h4 { font-size: 16px; }
.c-page-generic > *:first-child { margin-top: 0; }

.c-page-generic p { margin: 0 0 1.4em; }

.c-page-generic a {
  color: #7FBF34;
  text-decoration: underline;
  text-decoration-color: rgba(127, 191, 52, .45);
  text-underline-offset: 2px;
}
.c-page-generic a:hover { text-decoration-color: currentColor; }

.c-page-generic ul,
.c-page-generic ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.c-page-generic li { margin-bottom: 0.4em; }

.c-page-generic blockquote {
  margin: 0 0 1.4em;
  padding: 0.8em 1.2em;
  border-left: 4px solid #7FBF34;
  background: #FFFAF2;
  color: #555555;
}

.c-page-generic figure { margin: 0 0 1.6em; }
.c-page-generic img { border-radius: 8px; }
.c-page-generic figcaption {
  margin-top: 0.5em;
  font-size: 13px;
  color: #555555;
  text-align: center;
}

.c-page-generic table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 15px;
}
.c-page-generic th,
.c-page-generic td {
  border: 1px solid #e3ddcf;
  padding: 0.6em 0.8em;
  text-align: left;
}
.c-page-generic th { background: #FFFAF2; font-weight: 700; }

.c-page-generic .wp-block-button__link,
.c-page-generic .wp-block-file__button {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: 999px;
  background: #46721C;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-weight: 700;
}

.c-page-generic .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}
.c-page-generic .wp-block-gallery img { width: 100%; height: auto; }

.c-page-generic hr {
  margin: 2.4em 0;
  border: none;
  border-top: 1px solid #e3ddcf;
}
