/* =========================================================
   Minimal Reset for WordPress Custom Theme
   情報モラル啓発セミナー2026
   ========================================================= */

/* --------------------------------
   Box sizing
-------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------
   Document
-------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------
   Basic margins
   ※ リストや見出しの見た目自体は壊さない
-------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* --------------------------------
   Media
-------------------------------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
picture {
  height: auto;
}

/* --------------------------------
   Forms
-------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* --------------------------------
   Links
-------------------------------- */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* --------------------------------
   Accessibility
-------------------------------- */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* --------------------------------
   Smooth scroll
-------------------------------- */
html:focus-within {
  scroll-behavior: smooth;
}

/* --------------------------------
   Reduced motion
-------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* transition-duration: 0.01ms !important; */
    scroll-behavior: auto !important;
  }
}
