/* ============================================================
   KABUKI base.css
   リセット + タイポベース + レイアウトプリミティブ
   色・フォント値は必ず tokens.css の var() を参照する。
   ============================================================ */

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fs-16);
  font-weight: var(--fw-regular);
  line-height: var(--lh-jp);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

/* html.is-menu-open は SP メニュー展開中に main.js が付与する（背面スクロール抑止） */
html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
}

/* ---- Typography utilities ---- */

/* 英字混じりの見出し等（例: 「お問い合わせ / Contact」の Contact 部分）用 */
.u-font-en {
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  line-height: var(--lh-en);
}

/* ---- Accessibility utilities ---- */
.u-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;
}

/* ---- Layout primitives ---- */

/* コンテンツ幅コンテナ。max-width は tokens.css の --content-max（Figma CTA帯/採用帯実測 1200px で確定） */
.l-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-container-sp);
}

@media (min-width: 768px) {
  .l-container {
    padding-inline: var(--space-container-pc);
  }
}
