@charset "UTF-8";
/* ==========================================================================
   reset.css
   ブラウザごとの初期スタイルの差をなくし、同じ見え方に揃えるための基本設定
   （modern-normalize / destyle の考え方をベースに調整）
   ========================================================================== */

/* ボックスサイズの計算方法を統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 全要素の余白・枠線を初期化 */
* {
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  /* iOS・Androidで横向き時に文字サイズが自動拡大されるのを防ぐ */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* タップ時のハイライトを消す */
  -webkit-tap-highlight-color: transparent;
  tab-size: 4;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  /* Mac・iOSで文字の太さを揃える */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* HTML5要素をブロック表示に統一（古いブラウザ対策） */
main,
article,
aside,
footer,
header,
nav,
section,
figure,
figcaption,
details,
summary {
  display: block;
}

/* 見出し・段落 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

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

/* リスト */
ul,
ol {
  list-style: none;
}

/* リンク */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* 強調 */
b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

/* 画像・メディア */
img,
picture,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
  border-style: none;
  vertical-align: middle;
}

svg {
  overflow: hidden;
}

/* フォーム要素：OS標準の見た目を解除して継承させる */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background-color: transparent;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
  cursor: default;
}

/* Firefoxのボタン内側の点線・余白を除去 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

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

/* hidden属性を確実に非表示にする */
[hidden] {
  display: none !important;
}

/* キーボード操作時のみフォーカス枠を表示 */
:focus:not(:focus-visible) {
  outline: none;
}

/* 動きを減らす設定のユーザーにはアニメーションを抑える */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}
