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

html {
  /* ===== フォント基準 ===== */
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.5;

  /* ===== グレーの階調 ===== */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  
  /* ===== 色 ===== */
  --color-bg: var(--gray-50);
  --color-surface: var(--gray-100);
  --color-surface-dark: var(--gray-200);
  --color-border: var(--gray-200);
  --color-border-dark: var(--gray-300);
  --color-hover: var(--gray-300);
  --color-backdrop: rgba(0, 0, 0, 0.228);
  
  --color-text: var(--gray-800);
  --color-text-light: var(--gray-500);
  --color-text-white: #ffffff;

  --color-danger: #ff3b30;

  /* ===== 余白 ===== */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* ===== 角丸 ===== */
  --radius-xs: 2px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
}

body {
  background: var(--color-text);
  
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
  
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1.0rem; }
h6 { font-size: 0.9rem; }

a {
  text-decoration: none;
  font: inherit;
  color: var(--color-text);
}

input, select, textarea {
  font: inherit;
  color: var(--color-text);
}

button {
  all: unset;
  font: inherit;
  color: var(--color-text);
}

table {
  width: 100%;
  border-collapse: collapse;
  font: inherit;
  color: var(--color-text);
}

th, td {
  font: inherit;
  color: var(--color-text);
}