/**
 * CSS Reset
 *
 * modern-normalize ベースの軽量リセット。
 * ブラウザ間の挙動差異を埋め、Design System v1.2 のベースラインを揃える。
 *
 * @package JobJepang
 */

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

/* Remove default margin */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove list styles where role="list" or default lists in components */
[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Avoid text overflows */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Set core root defaults */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Respect user's reduced motion preference */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Anchors get color from base.css; reset underline strategy here */
a {
  background-color: transparent;
  text-decoration-skip-ink: auto;
}

/* Buttons reset (colors / spacing in components.css) */
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Form elements that should fill their container by default */
input,
textarea,
select {
  border: 1px solid var(--jj-border-medium);
  background: var(--jj-bg-white);
}

/* Hidden attribute */
[hidden] {
  display: none !important;
}
