/*! reset.css (modern + safe + WP-friendly) | MIT License */

/* -------------------------------------------------------
  1) Box sizing + margin reset
------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

/* -------------------------------------------------------
  2) Root defaults
  - 100% = ユーザーの文字サイズ設定を尊重（アクセシビリティ）
------------------------------------------------------- */
html {
  font-size: 100%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

/* -------------------------------------------------------
  3) Body defaults (iOS含む)
------------------------------------------------------- */
body {
  min-height: 100svh;
  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 {
  list-style: none;
  padding: 0;
}

/* -------------------------------------------------------
  6) Links
------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* -------------------------------------------------------
  7) Media elements
------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* imgだけは高さauto（svgにautoを強制しない） */
img {
  height: auto;
}

/* -------------------------------------------------------
  8) Form elements (WPテーマで崩れにくい設定)
------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

/* iOSのフォームUIを一律に潰すのは副作用が出やすいので、
   ボタンに限定して整える（input/selectまで消すと崩れることがある） */
button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* -------------------------------------------------------
  9) Tables
------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -------------------------------------------------------
  10) Misc
------------------------------------------------------- */
p,
li,
td,
th {
  overflow-wrap: break-word;
}

/* ルビ・上付き下付き等のズレを抑える（日本語サイトで地味に効く） */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

/* -------------------------------------------------------
  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;
  }
}