:root {
  --text: #222;
  --muted: #666;
  --accent-green: #0b3d2e;
  --accent-gold: #cfa94a;
  --soft-bg: #fafaf7;
  --section-pad: 72px;
  --max-width: 1100px;
  --radius: 10px;
}

/* ページ全体 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

.wrapper {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

/* -----------------------
   ヒーロー
----------------------- */
.egg-hero {
    background-color: var(--soft-bg);
    text-align: center;
    padding: calc(var(--section-pad) * 0.85 + 80px) 0 72px 0;
    border-bottom: 1px solid #efefef;
}

.egg-hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-green);
}

.egg-hero p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--muted);
    margin: 0;
}

/* -----------------------
   セクション
----------------------- */
.egg-section {
    padding: var(--section-pad) 0;
    background: #fff;
}

.egg-section h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    color: var(--accent-green);
    margin-bottom: 18px;
    font-weight: 600;
}

.egg-section p {
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    color: #444;
    margin-bottom: 18px;
}

/* -----------------------
   CTAボタン
----------------------- */
.egg-cta {
    text-align: center;
    padding: 48px 0;
}

.egg-cta .btn-gold {
    display: inline-block;
    min-width: auto;      /* テキストに合わせる */
    max-width: 100%;      /* 親幅に収める */
    padding: 10px 30px;   /* 横パディングで幅を確保 */
    white-space: nowrap;  /* 折り返さない */
    text-align: center;
}

.egg-cta .btn-gold:hover,
.egg-cta .btn-gold:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(199,155,50,0.18);
}

/* -----------------------
   ヒーロー（トップ見出し）
----------------------- */
/* Heroセクション全体 */
.egg-hero {
    position: relative; /* 重要：absoluteだとパンくずが隠れる */
    z-index: 1;         /* story.cssと同じくらいに設定 */
    overflow: visible;  /* hiddenだとパンくずがカットされる可能性 */
    padding-top: 40px;  /* 上部余白。header高さ分を確保 */
}

/* Hero内のテキストラッパー */
.egg-hero .wrapper {
    position: relative; /* 中身は相対位置でOK */
    z-index: 2;         /* Heroテキストは前面に */
}

/* パンくずリストに影響を与えそうなセクション */
.egg-section {
    position: relative; /* 必要に応じて追加 */
    z-index: 1;
}
/* トップ見出し補正用 */
.top-heading {
    display: block;
    position: relative;
}

/* アンカーリンク対策 */
.top-heading::before {
    content: "";
    display: block !important;
    height: 90px !important;             /* story.css のまま */
    margin-top: -90px !important;
    visibility: hidden !important;
}

/* -----------------------
   レスポンシブ
----------------------- */
@media (max-width: 768px) {
  :root { --section-pad: 48px; }
  .wrapper { width: 94%; }

  /* 上部余白調整 */
  .egg-hero {
    padding-top: 40px !important; /* スマホ用余白 */
    margin-top: 0 !important;
    padding-bottom: 36px !important;
  }

  .egg-hero + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .scroll-spacer {
    display: none !important;
    height: 0 !important;
  }

  .egg-section { padding: 48px 12px; }
  .egg-hero h1 { font-size: 1.9rem; }
  .egg-section h2 { font-size: 1.4rem; }

  .top-heading::before {
    height: 0 !important;
    margin-top: 0 !important;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  .cta-group {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .cta-group .btn-gold {
    width: auto;
    max-width: 220px;
    padding: 12px 20px;
    white-space: nowrap;
  }
}
