/* =====================================================
   AI-ProfileMaker ブログ 共通スタイル
   全記事・ページで読み込む共通CSS
   ===================================================== */

/* ===== カラー・変数 ===== */
:root {
  --pink:       #e05c8a;
  --pink-light: #fce8f0;
  --pink-dark:  #c03a6a;
  --purple:     #7c4daa;
  --gold:       #f0a500;
  --text:       #333;
  --text-sub:   #666;
  --border:     #eee;
  --bg:         #fff;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);

  --max-width:  760px;
}

/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #2d1a3d; }

/* ===== レイアウト ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== サイトヘッダー ===== */
.site-header {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.site-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

/* スマホでナビを折りたたむ */
@media (max-width: 480px) {
  .site-nav { display: none; }
}

/* ===== サイトフッター ===== */
.site-footer {
  background: #2d1a3d;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 36px 20px;
  font-size: 0.82rem;
  margin-top: 80px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-sub);
  padding: 12px 0;
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb span { margin: 0 6px; }

/* ===== CTAボタン ===== */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(224,92,138,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none !important;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224,92,138,0.5);
}
.btn-cta-wrap { text-align: center; margin: 28px 0; }
.btn-cta-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
  text-align: center;
  margin-top: 8px;
}

/* ===== 記事見出し ===== */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d1a3d;
  border-bottom: 3px solid var(--pink);
  padding-bottom: 10px;
  margin: 56px 0 24px;
  line-height: 1.4;
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--purple);
}
.article-body p { margin-bottom: 16px; }
.article-body section { margin-bottom: 56px; }

/* ===== 目次 ===== */
.toc {
  background: var(--pink-light);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0 40px;
}
.toc-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--pink-dark);
}
.toc ol { padding-left: 20px; }
.toc li { margin: 6px 0; font-size: 0.92rem; }

/* ===== NG/OKボックス ===== */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 560px) { .compare-wrap { grid-template-columns: 1fr; } }
.ng-box, .ok-box { border-radius: var(--radius); padding: 20px; }
.ng-box { background: #fff0f0; border: 2px solid #f5b3b3; }
.ok-box { background: #f0fff4; border: 2px solid #86efb3; }
.box-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 10px; }
.ng-box .box-label { color: #c0392b; }
.ok-box .box-label { color: #27ae60; }
.ng-box p, .ok-box p { font-size: 0.9rem; margin: 0; }

/* ===== チェックリスト ===== */
.checklist { list-style: none; margin: 16px 0 24px; }
.checklist li {
  padding: 10px 14px 10px 40px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 12px; color: var(--pink); font-weight: 700; }

/* ===== ポイントボックス ===== */
.point-box {
  background: var(--pink-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.point-box strong { color: var(--pink-dark); }

/* ===== 統計カード ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.stat-card {
  background: linear-gradient(135deg, var(--pink-light), #ede0f8);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .stat-label { font-size: 0.82rem; color: #555; }

/* ===== 機能カード ===== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.feature-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--pink); box-shadow: var(--shadow); }
.feature-card .card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-card .card-title { font-weight: 700; font-size: 1rem; color: #2d1a3d; margin-bottom: 8px; }
.feature-card .card-desc { font-size: 0.85rem; color: var(--text-sub); }

/* ===== ステップ ===== */
.steps { margin: 24px 0; }
.step { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body .step-title { font-weight: 700; margin-bottom: 4px; }
.step-body .step-desc { font-size: 0.9rem; color: var(--text-sub); }

/* ===== 中間CTA ===== */
.mid-cta {
  background: linear-gradient(135deg, #2d1a3d, #4a1a5e);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
}
.mid-cta .mid-cta-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.mid-cta .mid-cta-desc { font-size: 0.92rem; opacity: 0.85; margin-bottom: 20px; }
.mid-cta .free-badge {
  display: inline-block;
  background: var(--gold);
  color: #2d1a3d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.mid-cta .btn-cta { background: #fff; color: var(--pink) !important; }

/* ===== 最終CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 24px;
  padding: 48px 28px;
  text-align: center;
  color: #fff;
  margin: 48px 0;
}
.final-cta .free-tag {
  display: inline-block;
  background: var(--gold);
  color: #2d1a3d;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.final-cta h2 {
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 10px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.final-cta p { opacity: 0.9; font-size: 0.95rem; margin-bottom: 6px; }
.final-cta .btn-cta { background: #fff; color: var(--pink) !important; margin-top: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ===== スクショ差し替えプレースホルダー ===== */
.screenshot-block {
  background: #f8f8f8;
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
  color: #999;
  font-size: 0.85rem;
}
.screenshot-block .sc-title { font-weight: 700; font-size: 0.95rem; color: #666; margin-bottom: 6px; }

/* ===== 記事カード（一覧ページ用） ===== */
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none !important;
  color: var(--text) !important;
  display: block;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card-thumb {
  background: linear-gradient(135deg, var(--pink-light), #ede0f8);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.article-card-body { padding: 20px; }
.article-card-category {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.article-card-title { font-size: 1rem; font-weight: 700; color: #2d1a3d; line-height: 1.5; margin-bottom: 8px; }
.article-card-meta { font-size: 0.78rem; color: var(--text-sub); }

/* ===== 区切り線 ===== */
.divider { border: none; border-top: 2px dashed var(--border); margin: 48px 0; }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .article-body h2 { font-size: 1.3rem; }
  .mid-cta { padding: 28px 18px; }
  .final-cta { padding: 36px 18px; }
  .stat-card .stat-num { font-size: 1.8rem; }
  .btn-cta { padding: 14px 28px; font-size: 0.95rem; }
}
