/* ========================================
   CSS Reset & Base Styles
   ======================================== */

/* Box sizing reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Image defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Form elements inherit font */
input,
textarea,
select,
button {
  font: inherit;
}

/* Remove textarea resize handle */
textarea {
  resize: vertical;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body defaults */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP',
               'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: var(--leading-normal);
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent double-tap zoom on iOS while allowing scroll */
  touch-action: manipulation;
}
