/* ============================================================
   SEO解説ページ共通スタイル（style.css の変数・ナビ・フッターを継承）
   対象: youtube-shorts-views.html / youtube-ai-automation.html / shorts-posting-time.html
   ============================================================ */

/* HERO */
.seo-hero {
  padding: 132px 0 56px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(99,102,241,0.22), transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(168,85,247,0.14), transparent 50%),
    var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.seo-hero-inner { max-width: 860px; }
.seo-breadcrumb { margin-bottom: 20px; }
.seo-breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
}
.seo-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.seo-breadcrumb a { color: var(--accent-light); }
.seo-breadcrumb a:hover { text-decoration: underline; }
.seo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.35);
  color: var(--accent-light);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 18px;
}
.seo-hero h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.6rem);
  font-weight: 800; line-height: 1.4; margin-bottom: 18px;
}
.seo-lead {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.95; max-width: 760px; margin-bottom: 28px;
}
.seo-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.seo-cta-note {
  margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.7;
}

/* MAIN */
.seo-main { padding: 56px 0 80px; background: var(--bg-primary); }
.seo-article { max-width: 820px; margin: 0 auto; }

.seo-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 28px;
}
.seo-summary h2 {
  font-size: 1rem !important; margin: 0 0 10px !important;
  padding: 0 !important; border: none !important; color: var(--accent-light);
}
.seo-summary p { margin-bottom: 0; }

.seo-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 22px 28px; margin-bottom: 8px;
}
.seo-toc-title { font-size: 0.85rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.seo-toc ol { list-style: decimal; padding-left: 1.3em; }
.seo-toc li { font-size: 0.9rem; line-height: 2; color: var(--text-secondary); }
.seo-toc a { color: var(--accent-light); }
.seo-toc a:hover { text-decoration: underline; }

.seo-article h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800; line-height: 1.5;
  margin: 56px 0 18px; padding-left: 14px;
  border-left: 4px solid var(--accent);
  scroll-margin-top: 90px;
}
.seo-article h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--accent-light);
  margin: 30px 0 10px; line-height: 1.6;
}
.seo-article p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.95; margin-bottom: 16px;
}
.seo-article strong { color: var(--text-primary); }
.seo-article a.seo-inline { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.seo-article ul { list-style: disc; padding-left: 1.4em; margin-bottom: 16px; }
.seo-article ol.seo-steps { list-style: decimal; padding-left: 1.4em; margin-bottom: 16px; }
.seo-article ul li, .seo-article ol.seo-steps li {
  font-size: 0.93rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 8px;
}

/* チェックリスト */
.seo-checklist { list-style: none !important; padding-left: 0 !important; }
.seo-checklist li {
  position: relative; padding: 12px 16px 12px 44px; margin-bottom: 10px !important;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.seo-checklist li::before {
  content: "✓"; position: absolute; left: 16px; top: 12px;
  color: var(--green); font-weight: 900;
}

/* テーブル */
.seo-table-wrap {
  overflow-x: auto; margin-bottom: 20px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.seo-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.88rem; }
.seo-table th, .seo-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border-light); color: var(--text-secondary); line-height: 1.7;
}
.seo-table th { background: var(--bg-card); color: var(--text-primary); font-weight: 700; white-space: nowrap; }
.seo-table tr:last-child td { border-bottom: none; }

/* カード */
.seo-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.seo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
}
.seo-card .seo-card-icon { font-size: 1.3rem; color: var(--accent-light); margin-bottom: 10px; }
.seo-card h3 { margin: 0 0 8px; font-size: 0.98rem; color: var(--text-primary); }
.seo-card p { font-size: 0.86rem; margin-bottom: 0; line-height: 1.8; }

/* 注意書き */
.seo-note {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0;
}
.seo-note p { font-size: 0.85rem !important; margin: 0 !important; color: #fbbf24 !important; line-height: 1.8; }

/* FAQ */
.seo-faq details {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
.seo-faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); list-style: none; position: relative; padding-right: 44px;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--accent-light); font-size: 1.2rem; font-weight: 400;
}
.seo-faq details[open] summary::after { content: "−"; }
.seo-faq details p { padding: 0 20px 18px; margin: 0; font-size: 0.9rem; }

/* 関連ページ */
.seo-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 0; }
.seo-related a {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; transition: var(--transition);
}
.seo-related a:hover { border-color: var(--accent); transform: translateY(-2px); }
.seo-related .seo-related-label { font-size: 0.7rem; color: var(--accent-light); font-weight: 800; letter-spacing: 0.1em; }
.seo-related .seo-related-title { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-top: 4px; line-height: 1.6; }

/* 最終CTA */
.seo-final-cta {
  margin: 56px 0 0; text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(168,85,247,0.1));
  border: 1px solid var(--border); border-radius: 20px; padding: 40px 28px;
}
.seo-final-cta h2 {
  margin: 0 0 12px !important; padding: 0 !important; border: none !important;
  font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
}
.seo-final-cta p { max-width: 560px; margin-left: auto; margin-right: auto; }
.seo-final-cta .seo-cta-row { justify-content: center; }

/* フッター補助リンク */
.seo-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.seo-footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.seo-footer-links a:hover { color: var(--accent-light); }
.seo-footer .footer-bottom { flex-wrap: wrap; gap: 8px 16px; }

/* MOBILE */
@media (max-width: 768px) {
  .seo-hero { padding: 104px 0 40px; }
  .seo-main { padding: 36px 0 60px; }
  .seo-card-grid, .seo-related { grid-template-columns: 1fr; }
  .seo-summary, .seo-toc { padding: 18px 18px; }
  .seo-cta-row .btn { width: 100%; justify-content: center; }
  .seo-final-cta { padding: 30px 18px; }
  .seo-article h2 { margin-top: 44px; }
}
