/* ==========================================================================
   LP Design Harness — Base
   ==========================================================================
   リセット + ベーススタイル。tokens/core.css の後に読み込む。
   ========================================================================== */

/* --- リセット --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-loose);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

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

/* --- 見出し --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* --- フォーカスリング(キーボード操作時のみ) --- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- テキスト選択 --- */
::selection {
  background-color: var(--color-primary-soft);
}

/* --- スクロール位置調整(固定ヘッダー分) --- */
[id] {
  scroll-margin-top: 5rem;
}
