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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(100vw / 19.2);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #E70012 #DDDDDD;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 768px) {
  html {
    font-size: calc(100vw / 7.5) !important;
  }
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--t1);
  background: var(--bg0);
  color-scheme: light;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

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

ul,
ol {
  list-style: none;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus,
:focus-visible {
  outline: none;
}

input,
textarea {
  border-radius: var(--r-input);
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: none;
  box-shadow: none;
}

::placeholder {
  color: var(--t3);
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: #DDDDDD;
}

::-webkit-scrollbar-thumb {
  background: #E70012;
  border-radius: 5px;
}

@media (max-width: 768px) {
  :root {
    --fs-70: 30px;
    --fs-52: 24px;
    --fs-50: 30px;
    --fs-48: 24px;
    --fs-42: 24px;
    --fs-36: 20px;
    --fs-28: 18px;
    --fs-24: 16px;
    --fs-20: 14px;
    --fs-18: 14px;
    --fs-16: 14px;
    --fs-14: 12px;
    --pad-x: 20px;
    --sec-top: 0.8rem;
    --sec-top-lg: 0.8rem;
    --sec-bottom: 0.8rem;
  }
}
