/*
 * base.css
 * リセット、タイポグラフィ、カラーパレット
 * 富士にミサイルやめて！の会
 */

/* ========================================
   CSS Reset
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222222;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   タイポグラフィ
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: #222222;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2c6e49;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e4d33;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   カラーパレット（CSS変数）
   ======================================== */

:root {
  /* メインカラー（富士ブルー） */
  --color-primary: #4A90A4;
  --color-primary-dark: #3A7287;
  --color-primary-light: #6BB7E0;

  /* アクセントカラー（グリーン） */
  --color-accent: #2c6e49;
  --color-accent-dark: #1e4d33;

  /* テキストカラー */
  --color-text: #222222;
  --color-text-light: #666666;
  --color-text-muted: #999999;

  /* 背景カラー */
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-dark: #333333;

  /* ボーダーカラー */
  --color-border: #eeeeee;
  --color-border-dark: #cccccc;

  /* シャドウ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);

  /* レイアウト */
  --max-width: 1100px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-xxl: 60px;

  /* ボーダー半径 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* トランジション */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ========================================
   ユーティリティ
   ======================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}
