/* base.css
   - リセットに近いもの
   - カラーバリアント
   - タイポとリンク
   - スクロール関連
*/

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

:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: rgba(148, 163, 184, 0.25);
  --color-primary: #2563eb;
  --color-primary-soft: rgba(37, 99, 235, 0.1);
  --color-secondary: #0f766e;
  --color-emerald: #10b981;
  --color-slate-50: #f8fafc;
  --color-slate-100: #e2e8f0;
  --color-slate-200: #cbd5f5;
  --radius-xs: .5rem;
  --radius-sm: .75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, .04);
  --shadow-md: 0 20px 45px rgba(15, 23, 42, .08);
  --max-width-content: 72rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

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

a:hover {
  text-decoration: none;
}

ul,
ol {
  padding-left: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

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

.u-sm-only {
  display: inline;
}

@media (min-width: 768px) {
  .u-sm-only {
    display: none;
  }
}

/* 見出しのデフォルト余白を軽くしておく */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 .75em;
}
