/*
 * 配色・タイポグラフィ・ブラウザ初期化を担当する。
 * すべてのCSSより先に読み込み、共通の基準値を提供する。
 */
:root {
  --color-base: #f4f6f8;
  --color-surface: #ffffff;
  --color-text: #33475b;
  --color-accent: #7c99b4;
  --color-sage: #b9c8bd;
  --color-line: #dce3e8;
  --color-soft-text: #5c6d7d;
  --color-mist: #e9eef1;
  --ease-calm: cubic-bezier(.22, 1, .36, 1);
  --transition-ui: .3s var(--ease-calm);
  --space-section: clamp(128px, 15vw, 190px);
}

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

html {
  color-scheme: light;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 92px;
}

body {
  background: var(--color-base);
  color: var(--color-text);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  margin: 0;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: .035em;
}

h1 {
  font-size: 48px;
  line-height: 1.45;
}

h2 {
  font-size: 36px;
  line-height: 1.5;
}

h3 {
  font-size: 20px;
  line-height: 1.65;
}

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

a,
button,
select {
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition-duration: .3s;
  transition-property: outline-color;
  transition-timing-function: var(--ease-calm);
}

button,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline-color: var(--color-text);
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-sage);
  color: var(--color-text);
}
