@charset "utf-8";
/* ===========================
   Modern Reset with Accessible Focus
   =========================== */

/* -------------------------
   Box sizing & Margin reset
   ------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* -------------------------
   Body & Typography
   ------------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%; /* prevent font scaling on iOS */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  background: #fff;
  color: #111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* Remove default margins on common elements */
main, nav, header, footer, section, article, aside, details {
  display: block;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

/* -------------------------
   Lists
   ------------------------- */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* -------------------------
   Links
   ------------------------- */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  outline: none;
  box-shadow: none;
}

/* -------------------------
   Images and media
   ------------------------- */
img, svg, picture, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -------------------------
   Tables
   ------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -------------------------
   Forms & Buttons
   ------------------------- */
button, input, select, textarea {
  font: inherit;
  margin: 0;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  appearance: none;
  outline: none;
  box-shadow: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

input::-ms-clear,
input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* -------------------------
   Keyboard focus visible (accessibility)
   ------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0,102,165,0.25); /* 好きな色に変更可 */
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------
   Reduced motion
   ------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------
   Utility for visually hidden content
   ------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hidden attribute */
[hidden] {
  display: none !important;
}

/* Abbreviation helper */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* Optional: reset default fieldset/legend styles */
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
