/* ==========================================================================
   base.css — リセット・ボディ・基本スタイル
   ========================================================================== */

/* ------------------------------------------------------------------
   リセット
------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ------------------------------------------------------------------
   コンテナ
------------------------------------------------------------------ */

.container {
  max-width: var(--container-max);
  padding: var(--container-padding);
  margin: 0 auto;
  width: 100%;
}

/* ------------------------------------------------------------------
   セクション基本
------------------------------------------------------------------ */

.section {
  padding: var(--section-py-sm) 0;
}

.section--surface {
  background: var(--color-surface);
}

.section--bg {
  background: var(--color-bg);
}

/* ------------------------------------------------------------------
   ユーティリティ
------------------------------------------------------------------ */

.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;
}
