/* シェアポケット 記事ページ共通スタイル */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #1a1a1a; line-height: 1.9; background: #fff;
}
a { color: #A8490A; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid #FDF1E7;
  position: sticky; top: 0; background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 40;
}
.topbar img { width: 32px; height: 32px; border-radius: 8px; }
.topbar a { font-weight: 800; color: #5C2A06; text-decoration: none; font-size: 15px; }

.article-hero {
  /* ★ 2026-09-05: トップと OG 画像に合わせてブランドの橙へ（docs/82）。
     以前は #5C2A06 → #B24F05 で、白文字の対比は satisfy していたが茶色く見えていた。
     白との対比: #C24200 = 5.16:1 / #E65100 = 3.79:1。
     ★ h1 は 30px/800 なので「大きい文字」= 3:1 で足りる。
       p は 15px のままだと通常文字扱いで 4.5:1 が要り、この地色では満たせない。
       → p を 19px/700 にして「大きい文字」の基準に乗せた。**サイズを戻すと対比が落ちる。** */
  background: linear-gradient(140deg, #C24200 0%, #E65100 100%);
  color: #fff; padding: 56px 20px 48px; text-align: center;
}
.article-hero h1 { font-size: 30px; font-weight: 800; line-height: 1.5; letter-spacing: -0.4px; }
.article-hero p { margin-top: 14px; font-size: 19px; font-weight: 700; color: #FFFFFF; }

main { max-width: 760px; margin: 0 auto; padding: 48px 20px 90px; }
main h2 {
  font-size: 22px; font-weight: 800; margin: 44px 0 14px;
  padding-left: 12px; border-left: 5px solid #C25708; line-height: 1.5;
}
main h2:first-of-type { margin-top: 8px; }
main h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
main p { margin-bottom: 16px; font-size: 15.5px; }
main ul, main ol { margin: 0 0 20px 1.4em; }
main li { margin-bottom: 8px; font-size: 15.5px; }
main strong { font-weight: 700; }

.note {
  background: #FDF1E7; border: 1px solid #F6DCC6;
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
  font-size: 14.5px;
}
.note h3 { margin-top: 0; font-size: 15px; }

table.cmp {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
  display: block; overflow-x: auto; white-space: nowrap;
}
table.cmp th, table.cmp td { border: 1px solid #FDF1E7; padding: 10px 12px; text-align: left; }
table.cmp th { background: #FDF1E7; font-weight: 700; }

.cta-box {
  margin: 44px 0 8px; padding: 30px 22px; text-align: center;
  background: linear-gradient(160deg, #FDF1E7 0%, #FFFFFF 100%);
  border-radius: 18px;
}
.cta-box h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 20px; }
.cta-box p { color: #555; font-size: 14px; margin-bottom: 18px; }
.cta-box a.btn {
  display: inline-block; padding: 15px 32px;
  background: #C25708; color: #fff; border-radius: 14px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(194,87,8,0.4);
}
.cta-box a.btn:hover { text-decoration: none; }

.related { margin-top: 44px; padding-top: 24px; border-top: 1px solid #FDF1E7; }
.related h2 { border: 0; padding: 0; font-size: 17px; margin-bottom: 12px; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin-bottom: 10px; }

.faq-list details {
  background: #FDF1E7; border: 1px solid #F6DCC6;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
}
.faq-list summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq-list details p { margin: 10px 0 0; font-size: 14.5px; color: #555; }

footer {
  padding: 34px 20px; text-align: center;
  background: #1a1a1a; color: #aaa; font-size: 13px;
}
footer a { color: #ccc; margin: 0 10px; }
footer .copyright { margin-top: 14px; color: #666; }

@media (max-width: 600px) {
  .article-hero { padding: 40px 18px 36px; }
  .article-hero h1 { font-size: 23px; }
  /* ★ モバイルでも 19px/700 を保つ（小さくすると 4.5:1 が要求され、満たせなくなる） */
  .article-hero p { font-size: 19px; }
  main { padding: 34px 18px 70px; }
  main h2 { font-size: 19px; }
  main p, main li { font-size: 15px; }
}

/* ★ docs/79: 記事の途中に置く軽い CTA。
   本文末まで導線が無いと、読み終える前に離れた人に何も残らない。
   記事の冒頭には出さない（検索意図への答えを少し示してから出す）。 */
.inline-cta {
  margin: 28px 0;
  padding: 16px 18px;
  background: #FDF8F3;
  border: 1px solid #F6DCC6;
  border-left: 4px solid #C25708;
  border-radius: 10px;
}
.inline-cta p { margin: 0 0 10px; font-size: 15px; }
.inline-cta a {
  display: inline-block;
  background: #C25708; color: #fff;
  padding: 11px 20px; border-radius: 9px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
}
.inline-cta a:hover { text-decoration: none; opacity: .92; }

/* ★ モバイルの固定バー。index.html にしか無かったので記事にも入れる */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid #FDF1E7;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a {
  display: block; text-align: center;
  background: #C25708; color: #fff;
  padding: 14px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(194,87,8,0.32);
}
.sticky-cta a:hover { text-decoration: none; }
@media (min-width: 901px) { .sticky-cta { display: none; } }
/* ★ 固定バーの分の余白は **body** に付ける（Codex 指摘）。
   HTML は </main> → .sticky-cta → <footer> の順なので、main に付けても
   本文とフッターの間が空くだけで、**フッターが固定バーに隠れる**。 */
@media (max-width: 900px) { body { padding-bottom: 96px; } }


/* ★ 補足の囲み。cta-box（中央寄せ・グラデーション）とは別物。
   2026-09-04、節を移したときに cta-box の開始タグだけ一緒に動いてしまい、
   記事の中盤 72 行が CTA の中に入って表示が崩れた。役割ごとに分ける。 */
.note-box {
  margin: 30px 0;
  padding: 20px 22px;
  background: #FDF8F3;
  border: 1px solid #F6DCC6;
  border-radius: 12px;
}
.note-box h2 { margin-top: 0; }
