/* ===================================================
   共通ベーススタイル（base.css）
   ai-insight-php / ai-compat-php の css/style.css で
   完全に一致していたCSS変数・基礎コンポーネントを集約したもの。
   ページ固有のスタイルは insight.css / compat.css を参照。
   ==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Noto+Serif+JP:wght@400;600;700&display=swap');

:root {
  --dark:    #1a1a2e;   /* 濃紺 */
  --accent:  #e91e8c;   /* ピンク */
  --gold:    #c9a84c;   /* ゴールド */
  --gold2:   #b8943c;
  --bg:      #f8f4ee;   /* クリーム */
  --purple:  #f0e6f4;   /* 薄紫 */
  --gray:    #666666;
  --white:   #ffffff;
  --border:  rgba(26,26,46,.13);
  --shadow:  0 4px 24px rgba(26,26,46,.10);
  --radius:  14px;
  --radius-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.7;
}

/* ── 共通コンポーネント ─────────────────────────────── */
.site-logo span { color: var(--gold); }

.site-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
  position: relative;
}

.glass-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.form-label {
  display: block;
  font-size: .78rem;
  color: var(--gray);
  margin-bottom: 5px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #d9d4cc;
  border-radius: 7px;
  color: var(--dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .95rem;
  padding: 9px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: #bbb; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--dark), #2e2a52);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 18px rgba(26,26,46,.3);
  margin-top: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,26,46,.4); }
.btn-submit:active { transform: translateY(0); }

/* ── 公式LINE誘導CTA（結果画面の主役ボタン）───────────── */
.line-cta {
  background: linear-gradient(135deg, #06C755, #04a648);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  text-align: center;
  box-shadow: 0 6px 24px rgba(6,199,85,.28);
}
.line-cta-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.line-cta-desc {
  color: rgba(255,255,255,.92);
  font-size: .85rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
.line-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: #06C755;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  letter-spacing: .04em;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.line-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); }

/* 主役CTAに格下げした補助リンク（別の方を鑑定する 等） */
.secondary-links { text-align:center; margin-top:16px; }
.secondary-links a {
  display: inline-block;
  margin: 4px 10px;
  color: var(--gray);
  font-size: .85rem;
  text-decoration: underline;
}

/* ── アニメーション ──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .45s ease both; }
.fade-in:nth-child(2) { animation-delay: .07s; }
.fade-in:nth-child(3) { animation-delay: .14s; }
.fade-in:nth-child(4) { animation-delay: .21s; }
.fade-in:nth-child(5) { animation-delay: .28s; }
.fade-in:nth-child(6) { animation-delay: .35s; }

/* ── 戻るリンク／フッター ─────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.back-link:hover { color: var(--white); }

.site-footer {
  background: var(--dark);
  text-align: center;
  padding: 24px 20px;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
  margin-top: 40px;
}
.site-footer a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
}
.site-footer a:hover { color: var(--white); }

/* ── 理論解説バナー（共通部分） ───────────────────── */
.theory-banner summary::after { content: ' ▼'; font-size: .7em; opacity: .6; }
.theory-banner[open] summary::after { content: ' ▲'; }
.theory-body { margin-top: 12px; }
.theory-body p { margin-bottom: 8px; }
