:root {
  font-size: 3.0vw;
  line-height: 1.5;
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
  --button-width: 24rem;
  --color-text: rgb(40, 80, 152);
  --color-text-white: rgb(255, 255, 255);
}

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

html.lang-ja {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-en {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-fr {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-it {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-de {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-es {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-es-la {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html.lang-sc {
  font-family: 'PingFang SC', ' Lucida Grande', 'Hiragino Kaku Gothic ProN', 'SimSun', Meiryo, sans-serif;
}

html.lang-tc {
  font-family: 'PingFang TC', 'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'Microsoft JhengHei', Meiryo, sans-serif;
}

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

a {
  text-decoration: none;
}

article {
  position: relative;
  padding: 2rem 1rem;
  color: var(--color-text-white);
  background-color: rgb(88, 88, 200);
  border: 0.125rem solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0.25rem 0.25rem rgba(152, 160, 228, 0.6),
    inset 0 0 2rem 1rem rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
}

b {
  font-weight: 700;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./ui_web_BG_01.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--button-width);
  height: 4rem;
  height: 2.5rem;
  margin: 1rem auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  background: linear-gradient(to right, rgb(240, 240, 255), rgb(224, 232, 255));
  border: none;
  border-radius: 1rem 0.25rem 1rem 0.25rem;
  box-shadow: 0 0.125rem 0.25rem 0.125rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.button:focus,
.button:hover,
.button-active {
  color: var(--color-text);
  background: linear-gradient(to right, rgb(168, 240, 16), rgb(240, 240, 56));
  box-shadow:
    0 0 0 0.1rem rgb(255, 255, 255) inset,
    0 0 0 0.125rem rgb(168, 240, 16),
    0 0 0.5rem 0.25rem rgba(168, 240, 16, 0.6);
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  color: var(--color-text-white);
}

h2 {
  margin: 1.5rem 0 1rem;
  padding: 0.25rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
  color: var(--color-text);
  background: linear-gradient(to right, rgb(240, 240, 255), rgb(224, 232, 255));
}

h3 {
  margin: 0.5rem 0;
  padding: 0.25rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
  color: var(--color-text-white);
  background: rgb(152, 160, 228);
}

h4,
h5,
h6 {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
}

hr {
  margin: 1rem 0;
  border: none;
  border-top: 0.125rem solid rgb(152, 160, 228);
}

img {
  display: block;
  width: 100%;
  margin: 1rem 0;
  border: 0.125rem solid rgb(152, 160, 228);
}

main {
  padding: 2rem;
}

.color-1 {
  color: rgb(255, 198, 0);
}

.description {
  color: rgb(96, 96, 112);
  background: rgb(200, 192, 240);
  padding: 1rem;
  border-radius: 0.5rem;
}

.freetext {
  white-space: pre-wrap;
  word-break: break-word;
}

.hidden {
  display: none;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.pl-8 {
  padding-left: 2rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

#scroll-container {
  position: fixed;
  z-index: 1;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 100%;
}

#scroll-thumb {
  position: absolute;
  top: 4rem;
  width: 0.5rem;
  height: 4rem;
  background-color: rgb(240, 240, 255);
  border-radius: 0.5rem;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

#scroll-track {
  position: absolute;
  width: 0.25rem;
  height: calc(100% - 8rem);
  background-color: rgb(255, 255, 255, 0.2);
  border-radius: 0.125rem;
  cursor: pointer;
  user-select: none;
}

.scroll-active article {
  padding-right: 2rem;
}

.scroll-deactive #scroll-container {
  display: none;
}

@media screen and (min-width: 640px) {
  :root {
    font-size: 1.5vw;
  }

  article {
    padding: 2rem;
  }

  main {
    padding: 2rem 8rem;
  }

  .scroll-active article {
    padding-right: 4rem;
  }

  #scroll-container {
    width: 4rem;
    right: 8rem;
  }
}
