/* ============================
   親子MBTI相性レポート（有料）
   child-top.html 統一デザイン
============================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: #fff7ec;
  color: #111827;
  line-height: 1.9;
  min-height: 100vh;
}

/* ===== ページヘッダー（フル幅） ===== */
.paid-header {
  background: #fbead4;
  padding: 36px 16px 30px;
  text-align: center;
}

.paid-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.paid-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.8;
}

.paid-combo-img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
}

.paid-combo-img .combo-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.paid-type-img {
  width: 120px;
  height: auto;
  display: block;
}

.paid-combo-img .combo-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.paid-combo-img .combo-x {
  font-size: 24px;
  font-weight: 800;
  color: #f6b24a;
  line-height: 1;
  flex-shrink: 0;
}

/* ===== コンテナ ===== */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

/* ===== 無料まとめセクション ===== */
.paid-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.paid-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid #f6b24a;
}

#paid-teaser {
  font-size: 15px;
  color: #37445e;
  line-height: 2;
  margin: 0;
  white-space: pre-line;
  display: block;
}

/* ===== 相性グラフ ===== */
.compat-section { padding-bottom: 24px; }

.compat-total {
  text-align: center;
  background: linear-gradient(135deg, #fff7ec 0%, #fde9c5 100%);
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 4px;
}

.compat-total-label {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.compat-total-tag {
  display: inline-block;
  background: #f6b24a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  margin: 0;
}

.compat-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 20px 0 16px;
}

.compat-row {
  margin: 14px 0;
}

.compat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}

.compat-label-left b,
.compat-label-right b {
  color: #111827;
}

.compat-label-right {
  text-align: right;
}

.compat-bar-wrap {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
}

.compat-bar-left {
  background: #f6b24a;
  height: 100%;
  border-radius: 999px 0 0 999px;
  transition: width 0.6s ease;
}

.compat-bar-right {
  background: #93c5fd;
  height: 100%;
  border-radius: 0 999px 999px 0;
  transition: width 0.6s ease;
}

/* ===== あるある ===== */
.aruaru-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aruaru-item {
  background: #fff7ec;
  border-left: 4px solid #f6b24a;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}

.aruaru-item::before {
  content: "✓ ";
  color: #f6b24a;
  font-weight: 700;
}

/* ===== 目次チラ見せ ===== */
.toc-preview {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 2px dashed #f6b24a;
}

.toc-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toc-free {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 600;
}

.toc-lock {
  background: #f9fafb;
  color: #6b7280;
}

.toc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.toc-badge-free {
  background: #dcfce7;
  color: #15803d;
}

/* ===== CTAナッジ ===== */
.cta-nudge {
  text-align: center;
  margin-bottom: 8px;
}

.cta-nudge-text {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.8;
  margin: 0;
}

/* ===== 区切り線 ===== */
.paid-divider {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #9ca3af;
  margin: 24px 0 16px;
  letter-spacing: 0.04em;
}

/* ===== 購入ボックス ===== */
.purchase-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 2px solid #fde68a;
}

.purchase-lead {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

.purchase-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
}

.purchase-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 10px;
}

/* ===== クーポン案内 ===== */
.coupon-note-box {
  background: #fff7e8;
  border: 1px solid #f3d7a6;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px auto 20px;
  max-width: 360px;
  text-align: center;
}

.coupon-note-title {
  font-size: 14px;
  font-weight: 700;
  color: #d97706;
  margin: 0 0 6px;
}

.coupon-note-text {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.7;
}

/* ===== 有料コンテンツカード ===== */
.paid-content {
  display: none;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px;
  margin-top: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

#paid-full-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3e8d8;
}

/* ===== 有料本文のセクションカード（診断結果ページに統一） ===== */
#paid-full-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paid-section-card {
  border-radius: 16px;
  padding: 20px;
  border-left: 4px solid transparent;
}

.paid-section-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}

.paid-section-card p {
  font-size: 15px;
  color: #37445e;
  line-height: 2;
  margin: 0 0 12px;
}

.paid-section-card p:last-child {
  margin-bottom: 0;
}

/* 特徴（青） */
.paid-section-feature {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.paid-section-feature .paid-section-card-title {
  color: #1d4ed8;
}

/* 気をつけたいポイント（赤） */
.paid-section-caution {
  background: #fef2f2;
  border-left-color: #f97373;
}

.paid-section-caution .paid-section-card-title {
  color: #dc2626;
}

/* より良い関わり方（緑） */
.paid-section-grow {
  background: #ecfdf3;
  border-left-color: #22c55e;
}

.paid-section-grow .paid-section-card-title {
  color: #15803d;
}

/* ===== 保存案内 ===== */
.save-notice {
  display: none;
  background: #eff6ff;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  border-left: 4px solid #3b82f6;
}

.save-notice h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

.save-notice p {
  font-size: 14px;
  color: #37445e;
  line-height: 1.8;
  margin: 0 0 8px;
}

.save-notice p:last-child {
  margin-bottom: 0;
}

/* ===== 戻るリンク ===== */
.back-link {
  text-align: center;
  margin-top: 32px;
}

.back-link a {
  color: #5b7cff;
  text-decoration: none;
  font-weight: 600;
}

.back-link a:hover {
  text-decoration: underline;
}

/* ===== 購入後の表示制御 ===== */
body.paid .purchase-box,
body.paid .paid-divider {
  display: none !important;
}

body.paid stripe-buy-button {
  display: none !important;
}

body.paid .paid-content,
body.paid .save-notice {
  display: block !important;
}

/* ===== スマホ対応 ===== */
@media (max-width: 640px) {
  .paid-combo-img {
    gap: 8px;
  }

  .paid-type-img {
    width: 80px;
  }

  .paid-header {
    padding: 24px 16px;
  }

  .paid-header h1 {
    font-size: 19px;
  }

  .paid-section,
  .purchase-box,
  .paid-content {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .purchase-lead {
    font-size: 18px;
  }

  #paid-full-body p {
    font-size: 14.5px;
    padding: 12px 12px;
  }
}
