/*
  Reset CSS
  A minimalist CSS reset to reduce inconsistencies across browsers.
  Based on a combination of ideas from Eric Meyer's reset, Normalize.css, and modern best practices.
*/

/* Box sizing defaults to border-box */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding from common elements */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
figure,
fieldset,
legend,
hr,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
}

/* Set default font and line-height for body */
body {
    font-family: "M PLUS Rounded 1c", "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", HG丸ｺﾞｼｯｸM-PRO, HGMaruGothicMPRO;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* Improves text rendering on macOS */
    -moz-osx-font-smoothing: grayscale;
    /* Improves text rendering on macOS */
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
    list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    display: block;
    /* Removes extra space below images */
}

/* Inherit fonts for form elements */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and scroll-behavior for people that prefer not to see them */
@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;
    }
}

/* Remove text decoration from links by default */
a {
    text-decoration: none;
    color: inherit;
    /* Inherit color from parent */
}

/* Improve consistency of table styling */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Make sure quotes are rendered correctly */
blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

/* Remove default button styles */
button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Improve fieldset and legend styling */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

/* Allow selection of text within pre and code elements */
pre,
code {
    font-family: monospace, monospace;
}

/* Focus outline for accessibility */
:focus-visible {
    outline: 2px solid #007bff;
    /* Example focus outline */
    outline-offset: 2px;
}