﻿@charset "utf-8";
/* CSS Document */

/* =========================================
   reset.css (modern, minimal & safe)
   -----------------------------------------
   ① ボックスモデルの統一
   ② 余白・タイポまわりの初期化
   ③ リスト/見出し/アンカーの初期化
   ④ 画像・メディアの初期化
   ⑤ フォーム要素の初期化
   ⑥ 表組みの初期化
   ⑦ 補助ユーティリティ
   ========================================= */

/* ① ボックスモデルの統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ② 余白・タイポまわりの初期化 */
html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.15; /* iOS等での過剰な行高を抑える */
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

/* ③ リスト/見出し/アンカーの初期化 */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol, menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 見出しのデフォルトサイズ・太字をリセット（必要に応じて後で指定） */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* アンカーの装飾は最小限に（色は継承） */
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  text-decoration-skip-ink: auto;
}

/* ④ 画像・メディアの初期化 */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

img, svg, video {
	width: 100%;
  height: auto;
}

/* ⑤ フォーム要素の初期化（強すぎない範囲で） */
button, input, select, textarea {
  margin: 0;
  font: inherit;     /* フォントを継承 */
  color: inherit;    /* 色を継承 */
}

textarea {
  resize: vertical;  /* 予期せぬ横リサイズを防ぐ */
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:where(input, textarea, select) {
  outline: none;     /* 独自フォーカスを後から付与しやすく */
}

/* ⑥ 表組みの初期化 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ⑦ 補助ユーティリティ */
[hidden] {
  display: none !important;
}

:focus {
  outline: 2px solid transparent; /* 独自フォーカスリング実装のための下地 */
  outline-offset: 2px;
}
