/* ==========================================================================
   base.css — リセット & 共通ベース（トンマナ非依存。色/フォントは theme.css 変数）
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  /* 追従CTAぶんの下部余白（form.js/style.css で上書き可） */
  padding-bottom: env(safe-area-inset-bottom);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, p { margin: 0; }

input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* iOSズーム防止 */
  color: var(--c-ink);
}

/* 数字・英字は欧文寄りフォント（上野ルール: 数字英語は欧文フォント） */
.num, .en { font-family: var(--f-num); font-feature-settings: "tnum"; }

/* 本文1カラム共通コンテナ（KV/header/footer は対象外＝全幅） */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}

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