/* Modern & Accessible CSS Reset
  Based on Josh W. Comeau & Andy Bell's resets
*/

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 水平スクロールバーのスペースを常に確保する（レイアウトの安定化） */
  scrollbar-gutter: stable;
}

html,
body {
  height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere; /* 収まらない場合に折り返す */
  word-break: normal; /* 単語の分割はデフォルトに依存 */
  line-break: strict; /* 禁則処理を厳格に適用 */
}

img,
picture,
video,
canvas,
svg {
  vertical-align: bottom;
  line-height: 1;
  max-width: 100%;
}

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

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

/* 注意: ul, ol の list-style: none; はここには含めません。
  Safari(VoiceOver)のバグで、list-styleを消すとリスト要素として
  読み上げられなくなる問題があるため。
  role="list" が明示的に付与されている場合のみ、リストスタイルをリセットする */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 10. 【重要】アニメーションを減らす設定（アクセシビリティ）
  OS設定で「視差効果を減らす」をオンにしているユーザーへの配慮 
*/
@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;
  }
}

/**

  * ここからはHOBONICHI

**/

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #071d49;
  outline-offset: 2px;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  appearance: none;
}
