/* ============================================================
   life-common.css — 人生シミュレーター 全ツール共通スタイル
   ============================================================ */

/* ---------- CSS変数 ---------- */
.life-main, .life-hero, .life-form-section,
.life-result, .life-article, .life-site-header,
.life-site-footer, .life-ad, .life-index-section,
.life-about {
  --life-black:    #0f0f0f;
  --life-white:    #fafafa;
  --life-gray-100: #f5f5f5;
  --life-gray-200: #e8e8e8;
  --life-gray-500: #888;
  --life-gray-700: #444;
  --life-accent:   #e63946;
  --life-accent-2: #457b9d;
  --life-warn:     #f4a261;
  --life-good:     #2a9d8f;
  --life-radius:   12px;
  --life-shadow:   0 4px 24px rgba(0,0,0,0.08);
}

/* ---------- リセット（スコープ内のみ） ---------- */
.life-main * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- ベース ---------- */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--life-white);
  color: var(--life-black);
  line-height: 1.7;
}

/* ---------- コンテナ ---------- */
.life-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.life-container--narrow {
  max-width: 660px;
}

/* ---------- メイン ---------- */
.life-main {
  min-height: 100vh;
}

/* ---------- ヒーロー ---------- */
.life-hero {
  background: var(--life-black);
  color: var(--life-white);
  padding: 64px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.life-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.life-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.life-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--life-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.life-hero__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.3;
  margin-bottom: 20px;
}
.life-hero__accent {
  color: var(--life-accent);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2em;
}
.life-hero__sub {
  color: var(--life-gray-500);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- 広告スペース ---------- */
.life-ad {
  margin: 24px auto;
  max-width: 760px;
  padding: 0 20px;
}
.life-ad__placeholder {
  background: var(--life-gray-100);
  border: 1px dashed var(--life-gray-200);
  color: var(--life-gray-500);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  border-radius: var(--life-radius);
}

/* ---------- レスポンシブ（共通） ---------- */
@media (max-width: 600px) {
  .life-site-header__nav { display: none; }
  .life-site-footer__inner { flex-direction: column; text-align: center; }
}
