@charset "UTF-8";

/* ==========================================================================
   cclight Theme - Modern Reset CSS (Optimized for Block Editor & AIO)
   ========================================================================== */

/* 1. ボックスサイズの算出を直感的にする（必須） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 不要なデフォルトマージンを削除 */
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

/* 3. list-styleの削除（role="list"がある場合のみ。アクセシビリティ配慮） */
ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 4. スムーススクロールの基本設定 */
html:focus-within {
  scroll-behavior: smooth;
}

/* 5. bodyの基本設定（モバイルの表示領域に配慮した 100dvh） */
body {
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 6. 画像やメディアがコンテナをはみ出さないようにする */
img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

/* 7. フォーム要素のフォントを継承させる */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. リンクのアンダーラインが文字（ディセンダー）に被らないようにする */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* 9. 【重要】AOSアニメーションとアクセシビリティの考慮
   「視差効果を減らす」設定をしているユーザーにはアニメーションを無効化する
   （AIO/SEOにおけるアクセシビリティ評価の向上に直結します） */
@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;
  }
}