/* 自前ホストの欧文ディスプレイ書体（出典・ライセンスは assets/fonts/README.md）。CSP: 'self' */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/Poppins-ExtraBold.ttf") format("truetype");
}

/* リセット + 基本タイポ + アクセシビリティ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 見出し（DESIGN.md §3） ----------
   欧文は Poppins、和文は後続のシステム書体（和欧混植）。palt で和文の字間を詰め、
   text-wrap: balance と word-break: auto-phrase で1〜2字だけの孤立行を防ぐ（Chrome 系で有効。
   非対応ブラウザでは通常の折り返しになるだけで、内容は同じ）。 */
h1, h2, h3,
.page-head__title, .hero__title, .lp-block__title, .teaser__name, .price-card__price {
  font-family: var(--font-display);
  font-feature-settings: var(--ff-heading);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  text-wrap: balance;
}
@supports (word-break: auto-phrase) {
  h1, h2, h3,
  .page-head__title, .hero__title, .lp-block__title, .teaser__name, .price-card__price { word-break: auto-phrase; }
}

/* 本文の改行: 句の切れ目で折り返し（語の途中で切れにくくする）、短い最終行を避ける。
   Chrome 系で有効。非対応ブラウザでは通常の折り返しになるだけで、内容は同じ。 */
:where(p, li, dd, summary, blockquote, figcaption) { text-wrap: pretty; }
@supports (word-break: auto-phrase) {
  :where(p, li, dd, summary, blockquote, figcaption) { word-break: auto-phrase; }
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: normal;      /* palt なし（MUJI 方針） */
  font-kerning: auto;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}

h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-text); color: #fff; text-decoration: none;
}
.skip:focus { top: var(--sp-2); }
