/* ------------------------------------------------------------
   1. BOX SIZING
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ------------------------------------------------------------
   2. MARGINS / PADDINGS
   ------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
}


/* ------------------------------------------------------------
   3. DOCUMENT & BODY
   ------------------------------------------------------------ */
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "BIZ UDPGothic",
    "Meiryo",
    sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}


/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: keep-all;
  line-break: strict;
}

p, li, dt, dd, blockquote {
  overflow-wrap: break-word;
  word-break: break-all;
  line-break: strict;
  text-align: justify;
}

ul, ol {
  list-style: none;
}


/* ------------------------------------------------------------
   5. LINKS
   ------------------------------------------------------------ */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

a:not([class]) {
  text-decoration: underline;
}


/* ------------------------------------------------------------
   6. MEDIA (画像・動画)
   ------------------------------------------------------------ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  font-style: italic;
  font-size: 0.875em;
}


/* ------------------------------------------------------------
   7. FORMS
   ------------------------------------------------------------ */
input,
button,
textarea,
select,
optgroup {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

textarea {
  resize: vertical;
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}


/* ------------------------------------------------------------
   8. TABLE
   ------------------------------------------------------------ */
table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ------------------------------------------------------------
   9. INTERACTIVE & FOCUS
   ------------------------------------------------------------ */

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* details / summary */
summary {
  cursor: pointer;
}


/* ------------------------------------------------------------
   10. REDUCED MOTION（アクセシビリティ）
   ------------------------------------------------------------ */
@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;
  }
}


/* ------------------------------------------------------------
   11. PRINT
   ------------------------------------------------------------ */
@media print {
  body {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
