/* =============================================
   DESIGN SYSTEM — design-system.css
   ジュニアキャンプナビ 統一デザインルール
   ============================================= */

/* ===== タイポグラフィ ===== */
:root {
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;

  /* フォントサイズ */
  --text-h1:   clamp(40px, 5vw, 56px);
  --text-h2:   clamp(26px, 3vw, 38px);
  --text-h3:   clamp(18px, 2vw, 26px);
  --text-body: 16px;
  --text-sm:   14px;
  --text-xs:   12px;

  /* 行間 */
  --lh-heading: 1.35;
  --lh-body:    1.9;
  --lh-tight:   1.5;

  /* カラー */
  --color-primary:   #03045E;
  --color-secondary: #0077B6;
  --color-accent:    #E63946;
  --color-line:      #16b553;
  --color-text:      #333;
  --color-muted:     #666;
  --color-light:     #888;
  --color-border:    #e0e6ef;
  --color-bg:        #f7f8fc;
  --color-white:     #fff;

  /* 余白 */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;

  /* カード */
  --card-radius:  14px;
  --card-padding: 28px 24px;
  --card-shadow:  0 2px 10px rgba(0,0,0,0.05);
  --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.10);

  /* ボタン */
  --btn-height:  52px;
  --btn-radius:  10px;
  --btn-padding: 13px 36px;
  --btn-font:    16px;
  --btn-weight:  700;

  /* Hero */
  --hero-height-page: 480px;
  --hero-overlay: linear-gradient(110deg, rgba(3,4,94,0.75) 0%, rgba(3,4,94,0.45) 50%, rgba(3,4,94,0.15) 100%);
}

/* ===== ① 統一Hero — コンテンツページ共通 ===== */
.page-hero {
  position: relative;
  height: var(--hero-height-page);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: heroZoom 10s ease-out forwards;
  transform-origin: center top;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 0 80px;
  width: 100%;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.page-hero-title {
  font-size: var(--text-h1);
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  text-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.20);
}
.page-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: var(--lh-body);
}

/* パンくず — 全ページ共通 */
.page-breadcrumb {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.page-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0;
}
.page-breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
}
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb span { margin: 0 8px; color: #bbb; }
.page-breadcrumb .current { color: #333; font-weight: 500; }

/* ===== ② セクションタイトル統一 ===== */
.section-heading {
  font-size: var(--text-h2);
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-family: var(--font-serif);
  line-height: var(--lh-heading);
}
.section-heading-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.section-heading-line::before,
.section-heading-line::after {
  content: '';
  flex: 0 0 40px;
  height: 2px;
  background: var(--color-secondary);
  opacity: 0.4;
}
.section-sub {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: -28px;
  margin-bottom: var(--space-lg);
  line-height: var(--lh-body);
}

/* ===== ③ カード統一 ===== */
.ds-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ds-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* ===== ⑧ ボタン統一 ===== */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-height);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font);
  font-weight: var(--btn-weight);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.ds-btn-line {
  background: var(--color-line);
  color: #fff;
}
.ds-btn-line:hover {
  background: #129a47;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22,181,83,0.35);
}
.ds-btn-primary {
  background: var(--color-secondary);
  color: #fff;
}
.ds-btn-primary:hover {
  background: #005f8e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,119,182,0.30);
}
.ds-btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.ds-btn-outline:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,119,182,0.25);
}
.ds-btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.ds-btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* LINE アイコンバッジ */
.ds-line-badge {
  background: #fff;
  color: var(--color-line);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ===== ⑦ 本文・共通テキスト ===== */
body {
  line-height: var(--lh-body);
  font-size: var(--text-body);
  color: var(--color-text);
}
p { line-height: var(--lh-body); }

/* ===== CTA共通 ===== */
.ds-cta-section {
  background: #f0f4fb;
  padding: var(--space-xl) 0;
}
.ds-cta-inner {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  min-height: 260px;
}
.ds-cta-left {
  flex: 1;
  padding: 52px 40px 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ds-cta-title {
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: var(--lh-heading);
}
.ds-cta-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: var(--lh-body);
}
.ds-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ds-cta-right {
  flex: 0 0 360px;
  overflow: hidden;
}
.ds-cta-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% top;
  display: block;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  :root {
    --text-h1: 34px;
    --text-h2: 22px;
    --text-h3: 18px;
    --text-body: 15px;
    --hero-height-page: 320px;
    --card-padding: 20px 18px;
    --btn-padding: 13px 24px;
  }
  .page-hero-content { padding: 0 16px; }
  .ds-cta-inner { flex-direction: column; }
  .ds-cta-left { padding: 32px 20px; }
  .ds-cta-right { flex: none; width: 100%; height: 180px; }
  .ds-cta-btns { flex-direction: column; }
  .ds-btn { justify-content: center; width: 100%; }
}