/* =========================================================
   base.css — リセット・素地・タイポグラフィ基本
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--bg-3);
  color: var(--ink);
  font-family: var(--ff-ja);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  /* 日本語の折り返し品質（1文字孤立・行頭禁則の抑制）
     overflow-wrap は anywhere でなく break-word。
     anywhere は min-content 幅を1文字まで縮めるため、
     グリッド/フレックス内で不要な早期折り返しを誘発する。 */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---- 見出しは明朝・本文はゴシック ---- */
/* word-break:auto-phrase＝日本語を文節単位で折り返す（対応ブラウザのみ）。
   「〜ませ／ん。」のような1〜2文字の孤立を構造的に防ぐ。 */
h1, h2, h3, p, li, dd,
.h2, .h3, .fv__title {
  word-break: auto-phrase;
}

.h2 {
  font-family: var(--ff-mincho);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .08em;
}

.h3 {
  font-family: var(--ff-mincho);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .06em;
}

/* ---- 欧文ラベル ---- */
.label-en {
  font-family: var(--ff-en);
  font-size: var(--fs-label);
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead {
  font-size: var(--fs-sm);
  line-height: 2.1;
  color: var(--ink-2);
}

.note {
  font-size: var(--fs-note);
  line-height: 1.8;
  color: var(--ink-3);
  letter-spacing: .01em;
}

/* ---- アクセシビリティ ---- */
:focus-visible {
  outline: 2px solid var(--cv);
  outline-offset: 3px;
}

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

/* ---- 動きを減らす設定を尊重 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
