:root {
  --em-color: rgba(68 171 158);
  --orange: #fabc2c;
  --gray: #2c3e50;
  --cream: #faf8f5;
}

.contents-wrap {
  margin-bottom: 4rem;
}

.series_volume li:not(:has(a)) {
  padding: 1em max(2.5em, min(2vw, 3em)) 1em 0;
  display: block;
  color: inherit;
  position: relative;
  font-size: max(14px, min(2vw, 16px));
}

.header {
  text-align: center;
  margin: 6rem;
  font-weight: bold;
}

.series-title {
  font-size: 1.2em;
}

.series-title a {
  color: var(--em-color);
}

.series-period {
  color: var(--gray);
  font-weight: normal;
  font-size: .9em;
}

.series-description {
  text-align: justify;
  font-size: .94em;
  margin: .4em 0 1.6em;
}

.description {
  background: var(--cream);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
}

span.small {
  margin-left: .4em;
}

.on-going::before, .completed::before {
  display: inline-block;
  font-size: 1.4rem;
  border-left: 5px solid var(--em-color);
  padding: .4em 1em;
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--cream);
  color: var(--gray);
  margin: 2rem 0 2rem;
  display: inline-block;
}

.on-going::before {
  content: "現在連載中";
}

.completed::before {
  content: "過去の連載";
}

.completed dt {
  font-size: .9em;
  line-height: 1.6;
}

.title-author {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  background: none !important;
  max-width: 70%;
}

.author {
  margin-left: .8em;
  font-size: .8em;
  font-weight: normal;
  text-align: right;
}

.year-pagination {
  font-size: 1.2em;
  margin: 3rem 0;
  justify-content: center;
  display: grid;
  gap: .4em;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, auto);
}

.year-pagination a {
  color: var(--gray);
  text-align: center;
}

.year-pagination a::hover {
  text-decoration: none;
}

.year-pagination a.selected {
  position: relative;
  color: black;
  font-weight: bold;
}

.year-pagination a.selected::before {  
  top: 45%;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: auto;
  -webkit-transform: rotate(45deg) translateY(-50%);
  transform: rotate(45deg) translateY(-50%);
  vertical-align: middle;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
}

@media only screen and (max-width: 430px) {
  .year-pagination {
    grid-template-columns: repeat(3, 1fr);
  }
}
