/*! reset.css (modern + safe) | MIT License */

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

* {
  margin: 0;
}

/* -------------------------------------------------------
  2) Root defaults
------------------------------------------------------- */
html {
  font-size: 16px;
  line-height: 1.15; /* UA差のブレを抑える */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
}

/* -------------------------------------------------------
  3) Body defaults (iOS対策込み)
------------------------------------------------------- */
body {
  min-height: 100svh; /* 100vhより安全（iOS含む） */
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------
  4) Headings reset
------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* -------------------------------------------------------
  5) Lists
------------------------------------------------------- */
ul,
ol {
  padding: 0;
}

/* -------------------------------------------------------
  6) Links
------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

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

/* -------------------------------------------------------
  8) Form elements (WPテーマで崩れにくい設定)
------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

/* iOSのボタン/入力の見た目崩れを抑制 */
button,
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

/* ボタンの基本挙動を統一（必要ならテーマ側で装飾） */
button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

/* -------------------------------------------------------
  10) Misc
------------------------------------------------------- */
/* 連続する英数字の折返しで崩れにくく（長いURL等） */
p,
li,
td,
th {
  overflow-wrap: break-word;
}

/* -------------------------------------------------------
  11) Reduced motion (アニメ/トランジションのみ停止)
------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}