/* =============================================================================
   base.css / 全ページ共通のベーススタイル
   - カラー変数・フォント変数
   - ユニバーサルリセット
   - 画像・動画のレスポンシブデフォルト
   - html / body のベース挙動
   - フィルムグレインの全画面オーバーレイ
   =============================================================================
   ※ ページ固有スタイルは各HTML内の <style> に残す */

:root {
  /* ===== カラー：ダーク／海系 ===== */
  --midnight:   #091726;
  --deep-sea:   #0d2137;
  --ocean:      #1b4965;
  --teal:       #3d8b9e;
  --turquoise:  #5ec4b6;

  /* ===== カラー：暖色／サンド系 ===== */
  --coral:       #e07850;
  --coral-light: #f09a70;
  --amber:       #f0b860;
  --sand:        #f4ead5;
  --sand-light:  #faf5ec;
  --cream:       #fffdf8;

  /* ===== カラー：ニュートラル ===== */
  --stone:       #a09888;
  --stone-light: #c8bfb0;
  --ink:         #2c2418;
  --ink-light:   #5a4e3c;

  /* ===== フォント ===== */
  --ff-display: 'Cormorant Garamond', serif;        /* 見出し装飾（英字） */
  --ff-body:    'Zen Kaku Gothic New', sans-serif;  /* 本文（和文） */
  --ff-label:   'Josefin Sans', sans-serif;         /* ラベル・ナビ（英字） */
  --ff-number:  'DM Sans', sans-serif;              /* 数値表示 */
}

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

img, video, svg:not(.g-logo-img):not(.hero-logo) {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 全画面にフィルムグレインを重ねて、印刷物のような質感を出す */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* アクセシビリティ：視認性確保のためのフォーカスリング（キーボード操作時のみ） */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
}
