html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);

  /* iOS Safariで意図せず文字が拡大されて表示されるのを回避 */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-base);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--font-size-init);
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.05em;
  overscroll-behavior-y: none;
}

:is(h1, h2, h3, h4, h5) {
  word-break: break-all;
}

html:not([lang='ja']) :is(h1, h2, h3, h4, h5) {
  word-break: initial;
}

picture {
  display: block;
}

img {
  display: flex;
  object-fit: cover;
  height: auto;
  width: 100%;
  max-width: 100%;
}

svg {
  display: block;
  height: auto;
  width: 100%;
}

p {
  text-align: justify;
}

html:not([lang='ja']) p {
  text-align: left;
}

a {
  color: inherit;
}

a:not([class]) {
  transition: opacity var(--duration-default) var(--ease-custom);
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  a:not([class]):hover {
    opacity: 0.5;
  }
}

strong {
  font-weight: var(--font-weight-bold);
}

button {
  background: none;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

th {
  text-align: left;
}

td {
  text-align: justify;
}

html:not([lang='ja']) td {
  text-align: left;
}

:is(input, textarea) {
  border-radius: 0;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
}

:is(input, textarea)::placeholder {
  color: var(--color-gray-300);
}

select {
  background: none;
  color: inherit;
}
