:root {

  --font-size: 1.5rem;
  --font-sizeS: 1rem;
  --font-sizeL: 2rem;
  --test-border: 0px solid #000;

  --color-ja: #632;
  --color-en: #22e000;
  --color-bg: #ffeeee;
  --color-chu: #e00000;

}

body{
    margin: 20px;
    color: var(--color-ja);
    background-color: var(--color-bg);
    font-family: serif;
    font-size: var(--font-size);
}

table {
  
  table-layout: fixed;
  width: 100%;
  min-width: 800px;
  font-size: var(--font-sizeS);
  background: #ffeeee88;
}

th,
td {
  overflow-wrap: break-word;
}

header{
    z-index: -1;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-flow: row-reverse wrap;
    justify-content: flex-start;
    gap: 10px 0;
}
header > *{
    writing-mode: vertical-rl;
    height: 200px;
}

ruby{
}
rt{
  font-size: var(--font-size);
  padding: 5px;
  color: var(--color-en);
}

footer{
  font-size: var(--font-size);
  margin-top: 20px;
  margin-bottom: 20px;
}

#screensaver{
  position: fixed;
  inset: 0;
  margin: 0;
  box-sizing: border-box;
  padding: 8vmin;
  z-index: 100;
  background-color: var(--color-bg);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

#screensaver[hidden]{
  display: none;
}

#screensaver img{
  min-height: 0;
  max-width: 100%;
  object-fit: contain;
}

#screensaver figcaption{
  font-size: var(--font-sizeS);
}

#screensaver.show{
  opacity: 1;
  transition: opacity 5s steps(5, jump-end);
}

.right{
font-size: var(--font-sizeS);
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: right;
}
