* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-white: #ffffff;
  --color-text: #000000;
  --color-blue: #2e479b;
  --color-purple: #c71b79;
  --color-violet: #564a9c;
  --color-gray: #e4e0df;
  --color-shadow: #e0dcdb;
  --icon-down: '\e900';
  --icon-left: '\e901';
  --icon-outerlink: '\e902';
  --icon-pokeball: '\e903';
  --icon-right: '\e904';
  --icon-up: '\e905';
  --icon-pager: '\e906';
  --icon-lang-ja: '\e907';
  --icon-lang-sc: '\e909';
  --icon-lang-tc: '\e90a';
  --icon-lang-ko: '\e908';
  --icon-close: '\e90b';
}

@font-face {
  font-family: "icon";
  src: url("../font/icon.woff?v1") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:where(html) {
  font-size: 16px;
  font-weight: 500;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
  min-width: 320px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
  overscroll-behavior: none;
  scroll-padding-top: 20px;
}

:where(html)[lang=ja] {
  font-family: "Noto Sans JP", sans-serif;
}

:where(html)[lang=zh-cmn-Hans] {
  font-family: "Noto Sans SC", sans-serif;
}

:where(html)[lang=zh-cmn-Hant] {
  font-family: "Noto Sans TC", sans-serif;
}

:where(html)[lang=ko] {
  font-family: "Noto Sans KR", sans-serif;
}

:where(body) {
  overflow: clip;
}

:where(button) {
  all: unset;
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

:where(button):focus-visible {
  outline: auto;
}

:where(input, button, textarea, select) {
  font: inherit;
  color: inherit;
}

:where(textarea) {
  resize: vertical;
  resize: block;
}

:where(button, label, select, summary, [role=button], [role=option]) {
  cursor: pointer;
}

:where(a) {
  color: inherit;
  text-decoration: none;
}

:where(table) {
  border-collapse: collapse;
}

:where(svg, video, canvas, iframe) {
  display: block;
}

:where(img) {
  vertical-align: top;
}

ul,
ol {
  list-style: none;
}

.trim {
  margin-block: calc((1em - 1lh) * 0.5);
}

@media screen and (min-width: 1024px) {
  :where(html) {
    scroll-padding-top: 40px;
  }
}