/*
===============================================
CSS Reset for FujiwaraOffice Website
株式会社ふじわらOffice コーポレートサイト用CSSリセット
===============================================
*/

/* CSS Reset based on modern best practices */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Remove default styling from common elements */
ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Remove default form styling */
input, textarea, select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Improve readability */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: normal;
}

p, li, dt, dd {
  max-width: 65ch;
}

/* Remove focus outline for mouse users but keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* Ensure consistent table styling */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Hide visually but keep accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}