@charset "UTF-8";
/* ==========================================================================
   hiroshima-naishikyo.com ブログ記事用スタイル  v3（2026-09-10）
   対象: 投稿ページ本文（.single-body）内のみ。他ページ・テーマ本体には影響しない。
   v2変更点: ①box-sizing追加（ボタンのはみ出し＝横スクロール防止）
             ②4列以上の表をスマホで表内横スクロール化
   v3変更点: ③FAQ開閉（details.faq）のスタイル
             ④リスト3種（通常/チェック ul.check/丸数字 ol.num）
   ========================================================================== */

/* ---- 本文ベース ---- */
.single-body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  overflow-wrap: break-word;
}
/* width:100%＋padding指定のボタン等がはみ出さないように（横スクロール防止） */
.single-body,
.single-body * {
  box-sizing: border-box;
}
.single-body > :first-child {
  margin-top: 0;
}

/* ---- 見出し ---- */
.single-body h2 {
  margin: 48px 0 24px;
  padding: 12px 16px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2d3d;
  background: #f2f7fb;
  border-left: 5px solid #1a6db5;
  border-radius: 0 6px 6px 0;
}
.single-body h3 {
  margin: 36px 0 18px;
  padding: 0 0 8px 2px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f2d3d;
  border-bottom: 2px solid #cfe0ef;
}
.single-body h4 {
  margin: 28px 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2d3d;
}

/* ---- 段落・リスト ---- */
.single-body p {
  margin: 0 0 1.5em;
}
.single-body ul,
.single-body ol {
  margin: 0 0 1.8em;
  padding-left: 1.6em;
}
.single-body li {
  margin-bottom: 0.6em;
}
.single-body li:last-child {
  margin-bottom: 0;
}
.single-body li > ul,
.single-body li > ol {
  margin: 0.6em 0 0;
}
/* 通常リスト・番号付きリスト：マーカーをブランド色に */
.single-body ul:not(.check) > li::marker {
  color: #1a6db5;
}
.single-body ol > li::marker {
  color: #1a6db5;
  font-weight: 700;
}
/* チェックマークリスト：<ul class="check"> */
.single-body ul.check {
  list-style: none;
  padding-left: 0.2em;
}
.single-body ul.check > li {
  position: relative;
  padding-left: 1.9em;
}
.single-body ul.check > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.35em;
  height: 1.35em;
  background: #1a6db5;
  color: #fff;
  border-radius: 50%;
  font-size: 0.82em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 丸数字の番号付きリスト：<ol class="num"> */
.single-body ol.num {
  list-style: none;
  counter-reset: num;
  padding-left: 0.2em;
}
.single-body ol.num > li {
  position: relative;
  padding-left: 2em;
  counter-increment: num;
}
.single-body ol.num > li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.5em;
  height: 1.5em;
  background: #1a6db5;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- 表 ---- */
.single-body table {
  margin: 0 0 1.8em;
}
.single-body table:has(+ figcaption) {
  margin-bottom: 0;
}
.single-body figcaption {
  margin: 6px 0 1.8em;
  font-size: 13px;
  color: #666;
}

/* ---- リンク（CTAボタンはインラインstyleが優先されるため影響なし） ---- */
.single-body a {
  color: #1a6db5;
  text-decoration: underline;
}
.single-body a:hover {
  opacity: 0.8;
}

/* ---- 画像・その他 ---- */
.single-body img {
  max-width: 100%;
  height: auto;
  margin: 0 0 1.5em;
}
.single-body blockquote {
  margin: 0 0 1.8em;
  padding: 14px 18px;
  background: #f7f9fb;
  border-left: 4px solid #ccd7e0;
  color: #555;
}
.single-body hr {
  margin: 2.5em 0;
  border: none;
  border-top: 1px solid #e5e5e5;
}

/* ---- FAQ開閉（<details class="faq">＋<summary>） ---- */
.single-body details.faq {
  margin: 0 0 12px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.single-body details.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 14px 42px 14px 16px;
  font-weight: 700;
  color: #1f2d3d;
  background: #f6f9fc;
}
.single-body details.faq summary::-webkit-details-marker {
  display: none;
}
.single-body details.faq summary::after {
  content: "＋";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #1a6db5;
  font-weight: 700;
  font-size: 18px;
}
.single-body details.faq[open] summary::after {
  content: "−";
}
.single-body details.faq summary h3 {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 16px;
  color: inherit;
}
.single-body details.faq .faq-a {
  padding: 14px 16px 2px;
}
.single-body details.faq .faq-a p {
  margin: 0 0 1.2em;
}

/* ---- 表：列数の多い表はスマホで横スクロール ---- */
/* 記事側のインライン style="min-width:900px" 等に勝つため min-width は !important */
@media (max-width: 767px) {
  .single-body table:has(tr > :nth-child(4)) {
    display: block;
    max-width: 100%;
    min-width: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .single-body table:has(tr > :nth-child(4)) th,
  .single-body table:has(tr > :nth-child(4)) td {
    min-width: 8em;
  }
}

/* ---- スマホ ---- */
@media (max-width: 600px) {
  .single-body {
    font-size: 15px;
  }
  .single-body h2 {
    margin: 40px 0 20px;
    padding: 10px 12px;
    font-size: 20px;
  }
  .single-body h3 {
    margin: 30px 0 15px;
    font-size: 17px;
  }
  .single-body h4 {
    font-size: 16px;
  }
}
