/*
  A Modern CSS Reset
  出典: https://piccalil.li/blog/a-modern-css-reset/
*/

/* Box sizing rules */
/*
  1. すべての要素で、より直感的なボックスモデルを使用するように設定します。
     - box-sizing を **border-box** に設定し、padding や border が width/height に含まれるようにします。
     - これにより、要素のサイズ計算が容易になり、レイアウト崩れを防ぎます。
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* HTML縺ｮ繝懊ャ繧ｯ繧ｹ繝｢繝�Ν繧� border-box 縺ｫ險ｭ螳� */
html {
  box-sizing: border-box; 
  -webkit-text-size-adjust: 100%; 
  word-break: normal; 
  -moz-tab-size: 4;
  tab-size: 4;
}

/* Prevent font size inflation */
/*
  フォントサイズの自動調整を無効化します。
*/
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin */
/*
  デフォルトのマージンをリセットします。
  - ブラウザが提供するデフォルトのマージン（特に body や見出し、段落など）を削除し、レイアウトを一から制御できるようにします。
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

/*
  3. `role="list"`が設定されたリスト要素のデフォルトのリストスタイル（マーカーや数字）を削除します。
     - リストをカスタムスタイリングする際に便利です。
*/

ul[role="list"],
ol[role="list"] {
  list-style: none;
}
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Set core root defaults */
/*
  4. ルート要素（html）にフォーカスが当たった際のスクロール動作を設定します。
     - :focus-within 擬似クラスを使用し、ページ内リンクなどでスムーズなスクロールを実現します。
*/

html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
/*
  5. コアの body 要素のデフォルト設定を行います。
     - **min-height: 100vh**： bodyの最小高さをビューポート全体（画面の高さ）に設定します。
     - **text-rendering: optimizeSpeed**： テキスト描画速度を優先します。（ただし、モダンなブラウザでは `optimizeLegibility`の方が推奨されることもあります）
     - **line-height: 1.5**： 読みやすさのために、行の高さを標準的な値に設定します。
*/

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
    display:block;
} /*

/* A elements that don't have a class get default styles */
/*
  6. クラスが設定されていない `<a>` 要素（リンク）のデフォルトスタイルを設定します。
     - **text-decoration-skip-ink: auto**： 下線が文字を横切る際に、インクが途切れるようにします（読みやすさ向上）。
*/
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
/*
  7. 画像要素を扱いやすくします。
     - **max-width: 100%**： 画像が親要素からはみ出すのを防ぎます（レスポンシブデザインの基本）。
     - **display: block**： インライン要素として扱われることで生じる、画像下部の意図しない余白（ベースライン）を削除します。
*/

img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
/*
  8. フォーム要素のフォントを親要素（通常は body）から継承するようにします。
     - これにより、すべてのテキストが一貫したフォントを使用します。
*/
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
/*
  9. アクセシビリティ対応： モーション低減（アニメーションやトランジションの削減）を要求するユーザー設定を尊重します。
     - **@media (prefers-reduced-motion: reduce)**： OS設定などでアニメーションを減らす設定が有効な場合に適用されます。
     - **scroll-behavior: auto**： スムーズスクロールを無効化します。
     - **animation/transition-duration: 0.01ms !important**： アニメーションとトランジションの時間をほぼゼロに設定し、動きを実質的に無効化します。
*/
@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;
  }
}

/* General elements */

hr {
  overflow: visible;
  height: 0;
  color: inherit;
  display: block;
	border: 0;
	padding: 0;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}