/* 下ごしらえと文字 — Figma の Text Styles に対応する */

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

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

body {
  margin: 0;
  background: var(--paper-tint);
  color: var(--ink-black);
  font-family: var(--stack-ja);
  font-size: var(--size-body);
  line-height: 1.95;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;  /* 約物は YakuHanJP に任せる. palt と併用しない */
}

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

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

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

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

/* ⚠️ ボタンはブラウザの既定で**グレーの立体的な枠**が付く. 罫は自分で引くので消す.
 * 書体も継がないので明示する（継がないと OS の UI 書体になる）.
 * 枠が要るところは各セクションで引き直す（問い合わせの送信ボタンなど） */
button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* 文字スタイル — Figma の Text Styles と同名 */

.display-hero {
  font-family: var(--stack-mincho);
  font-weight: 400;
  font-size: var(--size-display);
  line-height: 1.83;
  letter-spacing: 0.02em;
}

.heading-section {
  font-family: var(--stack-ja);
  font-weight: 700;
  font-size: var(--size-h2);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.heading-panel {
  font-family: var(--stack-ja);
  font-weight: 500;
  font-size: var(--size-h3);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.body-default {
  font-size: var(--size-body);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.body-small {
  font-size: var(--size-small);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.number-stat {
  font-weight: 900;
  font-size: var(--size-stat);
  line-height: 1;
  letter-spacing: 0;
}

.label-en {
  font-family: var(--family-en);
  font-weight: 400;
  font-size: var(--size-label);
  line-height: 1.2;
  letter-spacing: 0.22em;
}

.nav-item {
  font-weight: 500;
  font-size: var(--size-nav);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* 読み上げだけに出す */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
