/*
 * OSTEO Brand Design System
 * 全ページ共通のブランドカラー・フォント・変数定義
 * =====================================================
 */

/* ─── Google Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables（全ページ共通） ───────────────── */
:root {
  /* ── カラーパレット ── */
  --color-deep-green:   #0b3a1e;   /* メイン深緑 */
  --color-dark-green:   #0d2e15;   /* さらに暗い緑（ヘッダー背景など） */
  --color-mid-green:    #1a5c32;   /* 中間緑（ホバー・アクセント） */
  --color-light-green:  #2d7a48;   /* 明るめ緑（バッジ・タグ） */
  --color-gold:         #c8972f;   /* メインゴールド */
  --color-gold-light:   #ddb74f;   /* ホバー用ゴールド */
  --color-gold-pale:    #f0e0b0;   /* 薄いゴールド（背景アクセント） */
  --color-beige:        #f5f0e8;   /* メイン背景ベージュ */
  --color-beige-dark:   #ede8dd;   /* 少し濃いベージュ（カード背景） */
  --color-beige-light:  #faf8f4;   /* 薄いベージュ（セクション交互） */
  --color-white:        #ffffff;
  --color-black:        #0a0a0a;
  --color-text-primary: #1a1a1a;   /* メイン文字色 */
  --color-text-secondary: #4a4a4a; /* サブ文字色 */
  --color-text-muted:   #888888;   /* 補足文字色 */
  --color-border:       #d8d0c0;   /* ボーダー */
  --color-border-l:     rgba(216, 208, 192, 0.45); /* 薄いボーダー */
  --color-border-gold:  #c8972f40; /* ゴールド薄ボーダー */

  /* ── タイポグラフィ ── */
  --font-heading: 'Lora', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --font-body:    'Noto Serif JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', monospace;

  /* ── フォントサイズ（fluid typography） ── */
  --text-xs:   clamp(0.70rem, 1.5vw, 0.75rem);
  --text-sm:   clamp(0.80rem, 1.8vw, 0.875rem);
  --text-base: clamp(0.90rem, 2vw, 1rem);
  --text-md:   clamp(1rem,    2.2vw, 1.125rem);
  --text-lg:   clamp(1.1rem,  2.5vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 3vw,   1.5rem);
  --text-2xl:  clamp(1.5rem,  4vw,   2rem);
  --text-3xl:  clamp(1.8rem,  5vw,   2.5rem);
  --text-4xl:  clamp(2.2rem,  6vw,   3.25rem);
  --text-5xl:  clamp(2.8rem,  7vw,   4.5rem);

  /* ── 行間・字間 ── */
  --leading-tight:  1.3;
  --leading-normal: 1.75;
  --leading-loose:  2.0;
  --tracking-tight: -0.02em;
  --tracking-wide:  0.08em;
  --tracking-wider: 0.15em;

  /* ── スペーシング ── */
  --space-xs:  0.5rem;   /*  8px */
  --space-sm:  0.75rem;  /* 12px */
  --space-md:  1.25rem;  /* 20px */
  --space-lg:  2rem;     /* 32px */
  --space-xl:  3rem;     /* 48px */
  --space-2xl: 5rem;     /* 80px */
  --space-3xl: 8rem;     /* 128px */

  /* ── ボーダー半径 ── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* ── シャドウ ── */
  --shadow-sm:  0 2px 8px rgba(10, 10, 10, 0.06);
  --shadow-md:  0 6px 24px rgba(10, 10, 10, 0.10);
  --shadow-lg:  0 16px 48px rgba(10, 10, 10, 0.14);
  --shadow-xl:  0 32px 80px rgba(10, 10, 10, 0.18);
  --shadow-gold: 0 8px 32px rgba(200, 151, 47, 0.25);

  /* ── トランジション ── */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ── コンテナ幅 ── */
  --container-sm:  640px;
  --container-md:  800px;
  --container-lg:  1100px;
  --container-xl:  1280px;
}

/* ─── ベースリセット ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-beige);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─── コンテナ ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--xl  { max-width: var(--container-xl); }

/* ─── セクション共通 ───────────────────────────────── */
.section {
  padding-block: var(--space-2xl);
}

.section--beige       { background-color: var(--color-beige); }
.section--beige-light { background-color: var(--color-beige-light); }
.section--dark        { background-color: var(--color-deep-green); color: var(--color-white); }
.section--darker      { background-color: var(--color-dark-green); color: var(--color-white); }

/* ─── セクションヘッダー共通 ────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-deep-green);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-md);
}

.section--dark .section-title,
.section--darker .section-title {
  color: var(--color-white);
}

.section-desc {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-inline: auto;
  line-height: var(--leading-loose);
}

.section--dark .section-desc,
.section--darker .section-desc {
  color: rgba(255,255,255,0.75);
}

/* ─── ゴールドデバイダー ────────────────────────────── */
.gold-divider {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

/* ─── ユーティリティ ────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
