/* ==========================================================================
   reset.css — modern reset for GRIT WORKS site
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol {
  list-style: none;
}

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

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 日本語禁則・改行制御 */
body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

h1, h2, h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p {
  max-width: 38em;
}

/* フォーカスリングは消さない */
:focus-visible {
  outline: 2px solid var(--color-secondary, #f5a623);
  outline-offset: 2px;
  border-radius: 2px;
}
