@import url("https://fonts.googleapis.com/css2?family=BIZ+UDGothic:wght@400;700&family=JetBrains+Mono:ital,wght@0,400;0,800;1,400;1,800&display=swap");

:root {
  --bg: #000;
  --c1: #eee;
  --c2: #adf;
}
html {
  font-family: "JetBrains Mono", "BIZ UDGothic", sans-serif;
}
::selection {
  background: #12f;
  color: var(--c2);
}
a {
  color: var(--bg);
  background: var(--c1);
}
a:hover {
  background: var(--c2);
}

header,
section,
footer {
  margin: 1vh;
}
footer {
  margin-bottom: 5em;
}

p {
  display: inline-block;
  margin: 1vh 0;
  padding: 1vh;
  border: var(--outline-c1);
}

#togglysarea {
  display: inline-block;
  position: sticky;
  top: 1vh;
  margin: 1vh;
  padding: 0.3em 0.8em 0.2em 0.4em;
  background: var(--bg);
  border: var(--outline-c1);
}
label {
  cursor: pointer;
}
label > text {
  position: relative;
  bottom: 0.18em;
}
input.toggly {
  --toggly-height: 2em;
  cursor: pointer;
}
input.toggly:checked {
  background: var(--c2);
}

.jp {
  display: none;
}
html:has(input#langc:checked) {
  span.en,
  text.en {
    display: none;
  }
  span.jp,
  text.jp {
    display: inline;
  }
}
html:has(input#lightc:checked) {
  --bg: #eee;
  --c1: #000;
}

#scrollablezone {
  overflow: auto;
  display: flex;
  flex-flow: row nowrap;
  justify-content: left;
  align-items: flex-start;
  align-content: flex-start;
  gap: 2em;
  padding-bottom: 2em;
  cursor: grab;
}
#scrollablezone:active {
  cursor: grabbing;
}
div.articles {
  display: inline-block;
  flex-shrink: 0;
}
article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
h3 {
  margin: 0.5em 0 0.1em 0;
}
h4 {
  margin: 0.2em 0;
  font-weight: normal;
  font-size: 0.7rem;
  border: var(--outline-c1);
  border-radius: 0.2em;
}
