@charset "utf-8";

/* ------------------------------------------------------------ */
/* リセットCSS */
/* !importantは使用せず、後から読み込むcssで上書きできるようにしています。 */
/* （prefers-reduced-motionの指定のみ、アクセシビリティ上の定石として!importantを残しています） */
/* ------------------------------------------------------------ */

/* 基本設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

/* 見出し・テキスト要素 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

dl {
  margin: 0;
}

dt,
dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

blockquote,
q {
  margin: 0;
  padding: 0;
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

address {
  font-style: normal;
}

/* リスト */
ol {
  padding-inline-start: 0;
}

ol,
ul {
  padding: 0;
}

li {
  list-style: none;
}

ol[role="list"],
ul[role="list"] {
  list-style: none;
}

/* リンク */
a {
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

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

/* 画像・メディア */
img {
  border-style: none;
  vertical-align: top;
  font-size: 0;
  line-height: 0;
}
img,
video,
picture {
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

svg {
  vertical-align: top;
}

iframe {
  border: none;
}

figure {
  margin: 0;
}

/* テーブル */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th {
  text-align: left;
  font-weight: normal;
}

/* 罫線 */
hr {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #ccc;
}

/* フォーム要素 */
button,
input,
select,
textarea {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

legend {
  padding: 0;
  margin-bottom: 0;
}

label {
  display: inline-block;
}

/* アクセシビリティ：モーション抑制設定への対応 */
@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;
  }
}
