/* =========================================================
   SEO対策記事 共通スタイル
   設置場所：/wp-content/themes/wearttheme/css/seo-article.css
   各記事の本文冒頭の <link> タグから読み込みます。
   （すべて .seo-article 内だけに効くため、他のページには影響しません）
   CSSを更新したら、記事側の ?ver=1.0 の数字も上げてください（キャッシュ対策）
   ========================================================= */

.seo-article {
  --seo-accent: #1a73e8;       /* メインカラー（見出し・リンク・ボタン） */
  --seo-accent-soft: #eef4fd;  /* 薄い背景色 */
  --seo-text: #333;
  --seo-border: #dde3ea;
  --seo-cta-bg: #fff8ec;       /* CTAボックスの背景 */
  --seo-cta-accent: #f08c00;   /* CTAボタンの色 */
  color: var(--seo-text);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}

.seo-article p { margin: 0 0 1.4em; }
.seo-article strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, #fff0a8 62%);
}
.seo-article a { color: var(--seo-accent); }

/* ---- 見出し ---- */
.seo-article h2 {
  margin: 2.8em 0 1.1em;
  padding: .7em 1em;
  font-size: 1.35em;
  line-height: 1.5;
  color: #fff;
  background: var(--seo-accent);
  border: none;
  border-radius: 6px;
  scroll-margin-top: 80px; /* 固定ヘッダーがある場合の目次ジャンプ位置調整 */
}
.seo-article h2::before,
.seo-article h2::after { display: none; } /* テーマ側の装飾を打ち消し */

/* ---- 目次 ---- */
.seo-article .seo-toc {
  --seo-toc-color: #1e40af;    /* 目次の文字色 */
  margin: 2em 0;
  padding: 1.2em 1.4em;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 10px;
}
.seo-article .seo-toc__title {
  margin: 0 0 .6em;
  font-weight: 700;
  color: var(--seo-toc-color);
}
.seo-article .seo-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}
.seo-article .seo-toc li {
  margin: 0;
  padding: .35em 0;
  border-bottom: 1px dashed var(--seo-border);
  font-size: .95rem;
  line-height: 1.6;
}
.seo-article .seo-toc li:last-child { border-bottom: 0; }
.seo-article .seo-toc a {
  color: var(--seo-toc-color);
  text-decoration: none;
}
.seo-article .seo-toc a:hover { text-decoration: underline; }

/* ---- 箇条書き ---- */
.seo-article ul {
  margin: 0 0 1.6em;
  padding: 1em 1.2em 1em 2.4em;
  background: #f7f9fb;
  border-radius: 6px;
}
.seo-article ul li { margin: .3em 0; }

/* ---- 注記（関連記事の案内） ---- */
.seo-article .seo-note {
  padding: .9em 1.2em;
  font-size: .93em;
  background: #f5f5f5;
  border-left: 4px solid #999;
  border-radius: 4px;
}

/* ---- 表（スマホでは横スクロール） ---- */
.seo-article .seo-table-wrap {
  margin: 0 0 1.8em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seo-article .seo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .93em;
  line-height: 1.6;
}
.seo-article .seo-table th,
.seo-article .seo-table td {
  padding: .75em .9em;
  border: 1px solid var(--seo-border);
  vertical-align: top;
  text-align: left;
}
.seo-article .seo-table th {
  background: var(--seo-accent-soft);
  font-weight: 700;
  white-space: nowrap;
}
.seo-article .seo-table tbody tr:nth-child(even) td { background: #fafbfc; }

/* ---- コード（構造化データの例） ---- */
.seo-article .seo-code {
  margin: 0 0 1.8em;
  padding: 1.1em 1.3em;
  overflow-x: auto;
  font-size: .85em;
  line-height: 1.6;
  color: #e6edf3;
  background: #1f2430;
  border-radius: 6px;
}
.seo-article .seo-code code {
  font-family: Menlo, Consolas, "Courier New", monospace;
  background: none;
  color: inherit;
  padding: 0;
}

/* ---- CTA（ロボSEO） ---- */
.seo-article .seo-cta {
  margin: 3.5em 0 1em;
  padding: 1.8em 1.6em 1.4em;
  background: var(--seo-cta-bg);
  border: 2px solid var(--seo-cta-accent);
  border-radius: 10px;
  scroll-margin-top: 80px;
}
.seo-article .seo-cta__label {
  display: inline-block;
  margin: 0 0 .6em;
  padding: .15em .9em;
  font-size: .85em;
  font-weight: 700;
  color: #fff;
  background: var(--seo-cta-accent);
  border-radius: 999px;
}
.seo-article .seo-cta .seo-cta__title {
  margin: 0 0 1em;
  padding: 0 0 .6em;
  font-size: 1.25em;
  color: var(--seo-text);
  background: none;
  border-bottom: 2px dashed var(--seo-cta-accent);
  border-radius: 0;
}
.seo-article .seo-cta__points {
  background: #fff;
  list-style: none;
  padding: 1em 1.2em;
}
.seo-article .seo-cta__points li::before {
  content: "✓";
  margin-right: .5em;
  font-weight: 700;
  color: var(--seo-cta-accent);
}
.seo-article .seo-cta__banner { text-align: center; }
.seo-article .seo-cta__banner img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.seo-article .seo-cta__btn-wrap {
  margin: 1.2em 0;
  text-align: center;
}
.seo-article .seo-cta__btn {
  display: inline-block;
  min-width: 260px;
  padding: 1em 2em;
  font-weight: 700;
  font-size: 1.05em;
  color: #fff;
  text-decoration: none;
  background: var(--seo-cta-accent);
  border-radius: 999px;
  box-shadow: 0 4px 0 #b86a00;
  transition: transform .15s, box-shadow .15s;
}
.seo-article .seo-cta__btn:hover {
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b86a00;
}
.seo-article .seo-cta__note {
  margin: 0;
  font-size: .8em;
  color: #777;
}

/* ---- スマートフォン ---- */
@media (max-width: 600px) {
  .seo-article { font-size: 15px; }
  .seo-article h2 { font-size: 1.2em; padding: .6em .8em; }
  .seo-article .seo-toc,
  .seo-article .seo-cta { padding: 1.2em 1em; }
  .seo-article .seo-cta__btn { min-width: 0; width: 100%; box-sizing: border-box; }
}
