@charset "UTF-8";

/*
 * 最小限のモダンなリセット
 * Josh W. Comeau「A Modern CSS Reset」と Andy Bell「A (more) Modern CSS Reset」をもとに調整（MIT）。
 * 見出し・リストの見た目は消さない（the_content の本文をそのまま読めるようにするため）。
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* role="list" を付けたリストだけ装飾を外す（本文のリストは残す） */
:where(ul, ol)[role="list"] {
    padding: 0;
    list-style: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

:target {
    scroll-margin-block: 5ex;
}

@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;
    }
}
