/* =========================================================
   💥 完全リセットCSS（デフォルトスタイルを徹底排除）
   - ほぼすべてのブラウザデフォルトをリセット
   - margin/padding/line-height/list-style など完全初期化
   - box-sizing を統一
   - font, border, 背景, outline, appearance を無効化
   ========================================================= */

/* すべての要素と疑似要素を対象に box-sizing を統一 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  text-decoration: none;
  outline: none;
  list-style: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* HTML, BODY の初期化 */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
  line-height: 1.5;
}
html, body {
  height: 100%;
  width: 100%;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ブロック要素の明示的表示 */
main, header, footer, section, article, aside, nav, figure, figcaption {
  display: block;
}

/* 見出しタグのデフォルトサイズを消去（完全フラット） */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
}

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

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

/* テーブル */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th, td {
  vertical-align: middle;
}

/* メディア要素 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

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

/* ボタン類 */
button, [type="button"], [type="submit"], [role="button"] {
  cursor: pointer;
  background: none;
}
button:disabled, [disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

/* プレースホルダー */
::placeholder {
  color: #aaa;
  opacity: 1;
}

/* フォーカス可視化（必要なら消してもOK） */
:focus {
  outline: 2px solid rgba(0, 120, 255, 0.6);
  outline-offset: 2px;
}

/* 引用・アドレスなど */
blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

/* スクロールバー（Webkit用） */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* 表示制御ユーティリティ */
.hidden, [hidden] {
  display: none !important;
}
.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  border: 0;
}

/* HTML5要素の初期化 */
details, summary {
  display: block;
}
summary::-webkit-details-marker {
  display: none;
}

/* iframe, embed, object も初期化 */
iframe, embed, object {
  border: none;
}

/* 印刷用の最低限リセット */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
