/* ============================================================
   base.css — リセット・CSS変数・共通レイアウト・共通コンポーネント
   全ページで読み込む
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS変数 ── */
:root {
  --navy:         #1a2744;
  --salmon:       #e8725a;
  --salmon-hover: #d45e45;
  --salmon-light: #fdf2ef;
  --white:        #ffffff;
  --off-white:    #f8f7f5;
  --gray-light:   #f1eff0;
  --gray-mid:     #e0dedf;
  --gray-text:    #6b6868;
  --text-body:    #3a3a3a;
  --border:       rgba(26,39,68,0.11);
  --green:        #2d8653;
}

:root {
  /* タイプスケール（6段階のみ） */
  --text-xs:   11px;   /* 注記・ラベル */
  --text-sm:   13px;   /* 補足・tag */
  --text-base: 15px;   /* 本文（現13〜14pxから引き上げ） */
  --text-md:   18px;   /* リード文 */
  --text-lg:   22px;   /* h3・サブ見出し */
  --text-xl:   clamp(24px, 6vw, 38px); /* h2 */
  --text-hero: clamp(28px, 8vw, 52px); /* h1のみ */
}

/* line-height 3種のみに統一 */
:root {
  --lh-tight:  1.4;   /* 見出し */
  --lh-normal: 1.75;  /* 本文 */
  --lh-loose:  1.9;   /* リード・キャッチ */
}

p    { line-height: var(--lh-body); font-size: 15px; }   /* スマホ */
.sec-lead { line-height: var(--lh-lead); font-size: 16px; }
h2   { line-height: var(--lh-heading); }

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 共通レイアウト ── */
.inner      { max-width: 860px;  margin: 0 auto; }
.inner-wide { max-width: 1060px; margin: 0 auto; }
.text-center { text-align: center; }

/* ── 共通タイポグラフィ ── */
h1, h2, h3 { font-family: 'Noto Serif JP', serif; color: var(--navy); }
h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 18px;
}
h2 em { font-style: normal; color: var(--salmon); }

.sec-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 14px;
  display: block;
}
.sec-lead {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.9;
  margin-bottom: 52px;
  max-width: 620px;
}

/* ── NAV（共通） ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: #1a2744;
  padding: 0 5%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.nav-cta {
  background: var(--salmon);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--salmon-hover); }

/* NAV：診断ページ戻るリンク */
.nav-back {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-back:hover { color: var(--white); }
.nav-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── 共通ボタン ── */
.btn-primary {
  background: var(--salmon);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 16px 40px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--salmon-hover); transform: translateY(-2px); }

.btn-large {
  background: var(--salmon);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 18px 48px;
  font-size: 17px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  z-index: 1;
}
.btn-large:hover { background: var(--salmon-hover); transform: translateY(-2px); }

.btn-ghost {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--white); }

/* ── フェードアップアニメーション ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── フッター（共通） ── */
footer {
  background: #0f1828;
  padding: 36px 5%;
  text-align: center;
}
footer p { font-size: 13px; color: rgba(255,255,255,0.28); }
footer a { color: rgba(255,255,255,0.45); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ── セクション共通 padding ── */
section { padding: 96px 5%; }

/* ── CTA セクション（共通） ── */
#cta {
  background: var(--navy);
  text-align: center;
  padding: 110px 5%;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(232,114,90,0.06);
  pointer-events: none;
}
#cta h2 { color: var(--white); margin-bottom: 18px; }
#cta .sec-lead { color: rgba(255,255,255,0.58); margin: 0 auto 44px; text-align: center; }
.cta-subnote {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  position: relative;
  z-index: 1;
}

/* ── レスポンシブ（共通） ── */
@media (max-width: 768px) {
  section { padding: 68px 6%; }
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 18px 0;
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto;
  }
}
