/* SEO記事生成ツール スタイル */
header { background: linear-gradient(135deg, #92400e, #b45309, #d97706); color: white; padding: 20px 24px 16px; }
header h1 { font-size: 22px; }
header p  { font-size: 13px; opacity: .8; margin-top: 4px; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; background: #451a03; padding: 20px 24px; flex-wrap: wrap; }
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat-accent .hero-num { color: #fcd34d; }
.hero-num  { font-size: 40px; font-weight: 800; color: white; line-height: 1; }
.hero-unit { font-size: 18px; font-weight: 600; margin-left: 2px; }
.hero-label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; }
.hero-divider { width: 1px; height: 48px; background: rgba(255,255,255,.15); margin: 0 16px; }
@media(max-width:600px){ .hero-divider { display:none; } .hero-stats { gap:16px; } }

.tab-nav { display: flex; background: #b45309; padding: 0 24px; overflow-x: auto; }
.tab { padding: 10px 20px; color: rgba(255,255,255,.65); font-size: 14px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: white; }
.tab.active { color: white; border-bottom-color: white; font-weight: bold; }

.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.box { background: white; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.box h2 { font-size: 15px; color: #1e293b; margin-bottom: 14px; font-weight: 700; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full-col { grid-column: 1 / -1; }
@media(max-width:640px){ .form-grid-2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; font-weight: 600; }
.req { color: #dc2626; font-size: 10px; background: #fee2e2; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

.btn-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-primary  { background: #d97706; color: white; }
.btn-primary:hover { background: #b45309; }
.btn-secondary{ background: #f1f5f9; color: #475569; }

.progress-wrap { margin-top: 14px; }
.progress-bar  { background: #fef3c7; border-radius: 8px; height: 8px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, #d97706, #fbbf24); height: 100%; transition: width .4s; width: 0%; }
.progress-text { font-size: 12px; color: #92400e; margin-top: 6px; }

/* ── アウトライン ── */
.outline-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.meta-pill { font-size: 11px; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 2px 9px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
.outline-meta-desc { font-size: 12px; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.6; }
.outline-meta-desc::before { content: "📌 Meta: "; color: #d97706; font-weight: bold; }

.section-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.section-card:hover { border-color: #fcd34d; background: #fffbeb; }
.section-h2 { font-size: 14px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.section-num { font-size: 11px; background: #d97706; color: white; padding: 1px 7px; border-radius: 10px; font-weight: bold; }
.section-purpose { font-size: 11px; color: #94a3b8; margin-bottom: 6px; }
.section-h3s { display: flex; gap: 6px; flex-wrap: wrap; }
.h3-tag { font-size: 10px; background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; padding: 2px 8px; border-radius: 8px; }

.outline-faq { margin-top: 14px; }
.outline-faq h3 { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.faq-item { font-size: 12px; color: #64748b; padding: 5px 0 5px 12px; border-left: 2px solid #fcd34d; margin-bottom: 5px; }

/* ── 記事本文 ── */
.article-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.char-count { font-size: 12px; color: #64748b; display: block; margin-top: 4px; }
.article-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

.article-markdown {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 600px;
  overflow-y: auto;
}

.article-preview {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.9;
  max-height: 600px;
  overflow-y: auto;
}
.article-preview h1 { font-size: 22px; font-weight: 800; margin: 0 0 16px; color: #0f172a; border-bottom: 3px solid #d97706; padding-bottom: 8px; }
.article-preview h2 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: #1e293b; border-left: 4px solid #d97706; padding-left: 10px; }
.article-preview h3 { font-size: 14px; font-weight: 700; margin: 16px 0 8px; color: #475569; }
.article-preview p  { margin-bottom: 14px; }
.article-preview ul, .article-preview ol { padding-left: 24px; margin-bottom: 14px; }
.article-preview li { margin-bottom: 6px; }
.article-preview strong { color: #b45309; }

.reading-meta { font-size: 13px; color: #64748b; display: flex; gap: 24px; flex-wrap: wrap; }
.reading-meta span strong { color: #1e293b; }

.ai-note { font-size: 11px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin-top: 12px; line-height: 1.6; }
