body {
  padding: 0 32px;
  margin: 0 auto;
  max-width: 1264px;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f5f5dc;
  color: #252525;
}

.subtitle {
  font-weight: normal;
}

.wrapper {
  display: grid;
  grid-template-columns: 50% 50%;
  margin: 2rem 0;
}

.wrapper h3,
.wrapper h5 {
  text-align: center;
}

.infographic-container {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.infographic {
  display: flex;
  align-items: center;
  flex: 50% 0 0;
  margin-bottom: 8px;
}

.infographic span {
  font-size: 12px;
}

.infographic-square {
  min-width: 28px;
  min-height: 25px;
  border: 1px solid #000;
  margin-right: 8px;
}

.infographic-square.color-1 {
  background: #FFD18C;
}

.infographic-square.color-2 {
  background: #808080;
}

.infographic-square.color-3 {
  background: #FFFFFF;
}

.infographic-square.color-4 {
  background: #CEEAB0;
}

.infographic-square.color-5 {
  background: #D7D7D7;
}

.infographic-square.color-6 {
  background: #FF8C8C;
}

.infographic-square.color-7 {
  background: #A98FF4;
}

.modal-container {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.modal-container.active {
  display: flex;
}

.modal-content-background {
  background: rgba(0,0,0,0.4);
  position: absolute;
  width: 100%;
  height: 100%;
}

.modal-title {
  text-align: center;
}

.modal-content {
  background: white;
  z-index: 100;
  overflow: hidden;
  margin: 10vh auto;
  border-radius: 4px;
  min-width: 60vw;
  max-width: calc(90vw - 16px);
  min-height: 15vh;
  max-height: calc(80vh - 16px);
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 12px 15px -2px rgb(0 0 0 / 15%);
  display: flex;
  align-items: stretch;
}

.modal-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-images > figure {
  max-width: calc(33% - 16px);
  padding: 8px;
  margin: 0;
}

.modal-images > figure > img {
  max-width: 100%;
}

.modal-images > figure > figcaption {
  text-align: center;
  font-size: 12px;
  font-style: italic;
}

.fade-in {
  animation-name: fadeInOpacity;
  animation-iteration-count: 1;
  animation-timing-function: linear;
  animation-duration: 0.1s;
  opacity: 1;
}

.fade-out {
  animation-name: fadeOutOpacity;
  animation-iteration-count: 1;
  animation-timing-function: linear;
  animation-duration: 0.1s;
  opacity: 0;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fadeOutOpacity {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.modal-wrapper {
  display: flex;
  flex-direction: column;
  margin: 1rem;
  width: calc(100% - 2rem);
}

.modal-wrapper button {
  margin: 0 auto;
}

.table-container {
  font-size: 14px;
  margin-bottom: 8px;
  overflow: auto;
}

table, td, th {
  border: 1px solid black;
}

table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

td, th {
  padding: 4px;
  text-align: center;
}

thead th {
  color: #2aa0ff;
}

.overflow-hidden {
  overflow: hidden;
}

#table_1_body > .table-genotype-row > td:last-child {
  font-style: italic;
}

#table_2_body > .table-host-row > td:first-child {
  font-style: italic;
}

@media screen and (max-width: 1024px) {
  .infographic {
    flex: 100% 0 0;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    grid-template-columns: 100%;
  }

  .infographic-container {
    padding: 0 2rem;
  }

  .modal-images > figure {
    max-width: calc(50% - 16px);
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 0 16px;
  }

  .infographic-container {
    padding: 0 1rem;
  }

  .infographic-square {
    min-width: 25px;
    min-height: 22px;
  }

  .modal-content {
    font-size: 12px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .modal-images > figure {
    max-width: calc(100% - 16px);
  }
}
