@charset "UTF-8";
/*
 * aa-clinic.net 独自のレイアウト調整（aacs.jp のCSSの後に読み込んで上書きする）
 *
 * - ヘッダー: バナー画像のみ（1160×150）。それより広い画面では拡大せず中央に置く。
 * - フッター: コピーライトと「ページ上部に戻る」ボタンのみ。
 */

/* ---------- ヘッダー（バナー） ---------- */
.blog-header {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 0 0;
  box-sizing: border-box;
}

.blog-header .blog-header__title {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  text-shadow: none;
  transform: none;
}

.blog-header .blog-header__title a {
  display: block;
  transition: opacity 0.2s;
}

.blog-header .blog-header__title a:hover {
  opacity: 0.85;
}

.blog-header img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* aacs.jp は固定ヘッダーの下に置くため 7rem 空けていた。バナーの直後なので詰める */
.blog-header + .contents-bread {
  margin-top: 2rem;
}

/* ---------- フッター ---------- */
section#copylight {
  margin-top: 4rem;
  border-top: 1px solid #e5e5e5;
}

/* ---------- 404・固定ページ ---------- */
.blog-404,
.blog-page {
  max-width: 960px;
  margin: 3rem auto;
  text-align: center;
}

.blog-404 h2 {
  margin-bottom: 2rem;
}

.blog-404 p {
  margin-bottom: 1rem;
}

@media only screen and (max-width: 768px) {
  .blog-header {
    padding: 0.75rem 3% 0;
  }

  .blog-header + .contents-bread {
    margin-top: 1.5rem;
  }

  /* aacs.jp はスマホ下部の固定ボタン（電話・LINE等）の分を空けていた。ボタンが無いので戻す */
  section#copylight {
    margin-bottom: 0;
    margin-top: 3rem;
  }

  section#pagetop a {
    bottom: 5vw;
  }

  .blog-404,
  .blog-page {
    width: 94%;
    margin: 2rem auto;
  }
}

/* ---------- 記事タイトル（h1） ---------- */
/*
 * 記事ページの h1。従来は h1 がヘッダーのバナー画像（全ページ共通）だったため、
 * 記事ごとの主題がマークアップ上どこにも無かった。
 * 本文の先頭にあった同じタイトルの h2 は XML変換で削除済みで、
 * その h2 の見た目は下の自動生成ブロックの .blog-entry__title が引き継ぐ。
 *
 * 注意: 元の h2 には <br> による改行指定が入っていたが the_title() では再現されない。
 * 長いタイトルは画面幅で自然に折り返す。
 */

/* ---------- 見出しの階層を繰り上げたことによる見た目の移植 ---------- */
/*
 * 2026-10-27、本文の見出し階層を1段繰り上げた（h4→h3、h5→h4.sub-note、旧h3→h4）。
 * 記事タイトルは本文の h2 を削除し、テーマが出す h1.blog-entry__title に置き換えた。
 *
 * 下のルールは**改修前の実ブラウザでの計算値**から機械生成している
 * （全11記事・153見出しを PC 1280px / SP 375px で実測。docs/baseline_true.json）。
 * このサイトのCSSは複数ファイルが重なっており、ファイルの記述を読むだけでは
 * 最終的な適用結果と一致しない（例: style-blog.css の「.blog-x-left, h5 {...}」）。
 *
 * **表示は改修前とまったく同じになる。** 変わるのはタグだけ。
 * 本文のHTML構造（コンテナのclass）を変えたら、ここも実測し直す必要がある。
 */

@media only screen and (min-width: 769px) {
  /* ===== PC（only screen and (min-width: 769px)） ===== */

  /* 旧 h3 ← .contents-blog .blog-btn .line */
  .contents-blog .blog-btn .line h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog .blog-btn .mail */
  .contents-blog .blog-btn .mail h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h5 ← .contents-blog .blog-flex .w-50 .taisyo */
  .contents-blog .blog-flex .w-50 .taisyo h4.sub-note {
    color: rgb(0, 120, 6);
    text-align: center;
    font-size: 20.8px;
    line-height: 20.8px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog .blog-flex .w-50 */
  .contents-blog .blog-flex .w-50 h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 17.6px;
    line-height: 25.6px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 22.3984px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-btn .line */
  .contents-blog-bg .blog-btn .line h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-btn .mail */
  .contents-blog-bg .blog-btn .mail h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg .blog-faq */
  .contents-blog-bg .blog-faq h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 32px;
    line-height: 40px;
    margin-top: 16px;
    margin-bottom: 32px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-flex .w-33 */
  .contents-blog-bg .blog-flex .w-33 h4:not(.sub-note) {
    color: rgb(255, 100, 100);
    text-align: left;
    font-size: 20.8px;
    line-height: 25.6px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg .blog-flex .w-33 */
  .contents-blog-bg .blog-flex .w-33 h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 17.6px;
    line-height: 25.6px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 14.3984px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-flex .w-50 .blog-flex .w-50 */
  .contents-blog-bg .blog-flex .w-50 .blog-flex .w-50 h4:not(.sub-note) {
    color: rgb(255, 100, 100);
    text-align: left;
    font-size: 20.8px;
    line-height: 25.6px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h5 ← .contents-blog-bg .blog-flex .w-50 .taisyo */
  .contents-blog-bg .blog-flex .w-50 .taisyo h4.sub-note {
    color: rgb(0, 120, 6);
    text-align: center;
    font-size: 20.8px;
    line-height: 20.8px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg .blog-flex .w-50 */
  .contents-blog-bg .blog-flex .w-50 h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 17.6px;
    line-height: 25.6px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 22.3984px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .check */
  .contents-blog-bg .check h4:not(.sub-note) {
    color: rgb(16, 88, 158);
    text-align: left;
    font-size: 20.8px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg */
  .contents-blog-bg h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 32px;
    line-height: 40px;
    margin-top: 16px;
    margin-bottom: 32px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h2 ← .contents-blog */
  .contents-blog .blog-entry__title {
    color: rgb(51, 51, 51);
    text-align: center;
    font-size: 32px;
    line-height: 40px;
    margin-top: 48px;
    margin-bottom: 32px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog */
  .contents-blog h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 32px;
    line-height: 40px;
    margin-top: 48px;
    margin-bottom: 32px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

}

@media only screen and (max-width: 768px) {
  /* ===== SP（only screen and (max-width: 768px)） ===== */

  /* 旧 h3 ← .contents-blog .blog-btn .line */
  .contents-blog .blog-btn .line h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog .blog-btn .mail */
  .contents-blog .blog-btn .mail h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h5 ← .contents-blog .blog-flex .w-50 .taisyo */
  .contents-blog .blog-flex .w-50 .taisyo h4.sub-note {
    color: rgb(0, 120, 6);
    text-align: center;
    font-size: 28.8px;
    line-height: 28.8px;
    margin-top: 16px;
    margin-bottom: 8px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog .blog-flex .w-50 */
  .contents-blog .blog-flex .w-50 h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 19.2px;
    line-height: 32px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 13.2734px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-btn .line */
  .contents-blog-bg .blog-btn .line h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-btn .mail */
  .contents-blog-bg .blog-btn .mail h3 {
    color: rgb(50, 165, 185);
    text-align: left;
    font-size: 32px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg .blog-faq */
  .contents-blog-bg .blog-faq h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 19.2px;
    line-height: 32px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 11.25px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-flex .w-33 */
  .contents-blog-bg .blog-flex .w-33 h4:not(.sub-note) {
    color: rgb(255, 100, 100);
    text-align: center;
    font-size: 19.2px;
    line-height: 24px;
    margin-top: 32px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg .blog-flex .w-33 */
  .contents-blog-bg .blog-flex .w-33 h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 19.2px;
    line-height: 32px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 13.8203px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .blog-flex .w-50 .blog-flex .w-50 */
  .contents-blog-bg .blog-flex .w-50 .blog-flex .w-50 h4:not(.sub-note) {
    color: rgb(255, 100, 100);
    text-align: center;
    font-size: 19.2px;
    line-height: 24px;
    margin-top: 32px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h5 ← .contents-blog-bg .blog-flex .w-50 .taisyo */
  .contents-blog-bg .blog-flex .w-50 .taisyo h4.sub-note {
    color: rgb(0, 120, 6);
    text-align: center;
    font-size: 28.8px;
    line-height: 28.8px;
    margin-top: 16px;
    margin-bottom: 8px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg .blog-flex .w-50 */
  .contents-blog-bg .blog-flex .w-50 h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 19.2px;
    line-height: 32px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 13.8203px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h3 ← .contents-blog-bg .check */
  .contents-blog-bg .check h4:not(.sub-note) {
    color: rgb(16, 88, 158);
    text-align: left;
    font-size: 19.2px;
    line-height: 24px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 8px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog-bg */
  .contents-blog-bg h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 19.2px;
    line-height: 32px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 11.25px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h2 ← .contents-blog */
  .contents-blog .blog-entry__title {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 24px;
    line-height: 27.2px;
    margin-top: 48px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

  /* 旧 h4 ← .contents-blog */
  .contents-blog h3 {
    color: rgb(16, 88, 158);
    text-align: center;
    font-size: 19.2px;
    line-height: 25.6px;
    margin-top: 16px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 600;
    padding: 0;
  }

}
