/* =========================================================
   Reset CSS (2026 実務向け・軽釁E
   - 余計な癖を消しつつ、アクセシビリチE��と実裁E�Eしやすさ重要E
   - 「完�Eに真っ白」ではなく、現場で“困りにくい”寁E��
   ========================================================= */

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

/* 2) Remove default margin */
* {
  margin: 0;
}

/* 3) Base settings */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  overflow-y: auto !important;
}

body {
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4) Media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
    width: 100%;
    height: auto;
}

/* 5) Form elements inherit font */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* 7) Link style (忁E��ならここを好みに変更) */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 8) List */
ul,
ol {
  padding-left: 1.25em; /* “完�EリセチE��”だと毎回面倒なので最低限残す */
}
li {
  list-style-position: outside;
}

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

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

/* 11) Optional: focus visible (忁E��なら有効匁E
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
*/
