@charset "UTF-8";

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* ============================
   Global Box Model
============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================
   Root / Scroll
============================ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* iOS文字拡大防止 */
}

/* reduced motion 対応 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================
   Body
============================ */

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

/* ============================
   Typography Reset
============================ */

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

dl,
dt,
dd {
  font-weight: inherit;
}

dt {
  font-weight: normal;
}

dd {
  margin-left: 0;
}

/* ============================
   Media Elements
============================ */

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================
   Form Elements
============================ */

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

textarea {
  resize: vertical; /* UX配慮 */
}

/* ============================
   Link Reset / Accessibility
============================ */

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* focus管理（アクセシビリティ最重要） */
a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 画像リンク */
a img {
  border: none;
  outline: none;
}

/* ============================
   Button Reset / Accessibility
============================ */

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

/* フォーカス可視化 */
button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================
   Interactive Elements
============================ */

[role="button"] {
  cursor: pointer;
}

/* タップ領域確保（SP UX向上） */
a,
button {
  touch-action: manipulation;
}

/* ============================
   Accessibility Helpers
============================ */

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 非表示だが読み上げさせない */
.is-hidden {
  display: none !important;
}

/* ============================
   Layout Base
============================ */

.header,
.hero,
.section,
.footer {
  width: 100%;
}
