#visual {
  margin-bottom: 5rem;
}

#pagenav {
  width: 100%;
  margin-bottom: 50px;
}
#pagenav.fixed {
  position: fixed;
}
#pagenav ul {
  max-width: calc(1000px + 6%);
  padding: 0 0;
  margin: 0 auto 0;
  background-color: #FAFAFA;
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 767px) {
  #pagenav ul {
    justify-content: center;
  }
}
#pagenav ul li {
  border-right: 1px solid #fff;
  flex-grow: 1;
  text-align: center;
  transition: background-color 0.3s ease;
  width: 25%;
  background-color: #F8F8F8;
}
@media screen and (max-width: 767px) {
  #pagenav ul li {
    flex-grow: 0;
    border: none;
  }
}
#pagenav ul li:nth-child(1) a {
  color: #000;
}
#pagenav ul li:nth-child(1) a::after {
  display: none;
}
#pagenav ul li:nth-child(2) {
  background-color: #E59736;
}
#pagenav ul li:nth-child(3) {
  background-color: #8ABC4C;
}
#pagenav ul li:nth-child(4) {
  background-color: #193E71;
}
#pagenav ul li:nth-child(5) {
  background-color: #4191D1;
}
#pagenav ul li:last-child {
  border-right: none;
}
#pagenav ul li a {
  display: block;
  position: relative;
  line-height: 1.2;
  padding-right: 20px;
  padding: 24px 0;
  color: #fff;
}
#pagenav ul li a::after {
  content: "";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
@media screen and (max-width: 767px) {
  #pagenav ul li a::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }
}

#news .inner {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
}
@media screen and (max-width: 767px) {
  #news .inner {
    flex-direction: column;
  }
}
#news .content-wrap {
  flex: 1;
}
#news .content-wrap h2 {
  font-size: 20px;
  margin-bottom: 2rem;
  border-bottom: 2px solid #aaa;
  padding: 1rem 0;
  font-weight: bold;
}
#news .content-wrap .lists-block .news-row {
  display: flex;
  align-items: flex-start;
  gap: 0 15px;
  margin-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}
@media screen and (max-width: 767px) {
  #news .content-wrap .lists-block .news-row {
    flex-wrap: wrap;
  }
}
#news .content-wrap .lists-block .news-row .news-date {
  width: 100px;
}
@media screen and (max-width: 767px) {
  #news .content-wrap .lists-block .news-row .news-date {
    width: 70px;
  }
}
#news .content-wrap .lists-block .news-row .news-category {
  background-color: #fff;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  padding: 4px 8px 6px;
  width: 140px;
  font-size: 14px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  #news .content-wrap .lists-block .news-row .news-category {
    width: 100px;
    font-size: 11px;
    padding: 4px;
  }
}
#news .content-wrap .lists-block .news-row .news-title {
  flex: 1;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  #news .content-wrap .lists-block .news-row .news-title {
    flex: 100%;
  }
}
#news .content-wrap .lists-block .news-row .news-title a:hover {
  text-decoration: underline;
}
#news .content-wrap .lists-block .news-row.cat1 .news-category {
  background-color: #E59736;
}
#news .content-wrap .lists-block .news-row.cat2 .news-category {
  background-color: #8ABC4C;
}
#news .content-wrap .lists-block .news-row.cat3 .news-category {
  background-color: #193E71;
}
#news .content-wrap .lists-block .news-row.cat4 .news-category {
  background-color: #4191D1;
}

#news-det .inner {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
}
@media screen and (max-width: 767px) {
  #news-det .inner {
    flex-direction: column;
  }
}
#news-det .content-wrap {
  flex: 1;
  padding-top: 5rem;
}
#news-det .content-wrap h1 {
  margin-block: 1rem;
  color: #193E71;
  line-height: 1.8;
  display: inline-block;
  font-size: clamp(2.6rem, 2.2307692308rem + 0.4807692308vw, 3rem);
}
@media screen and (max-width: 767px) {
  #news-det .content-wrap h1 {
    font-size: 3rem;
  }
}
#news-det .content-wrap h1 {
  font-weight: 500;
}
#news-det .content-wrap .title-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#news-det .content-wrap .date {
  font-weight: 500;
}
#news-det .content-wrap .category {
  display: inline-block;
  background-color: #8ABC4C;
  color: #fff;
  padding: 4px 8px 6px;
  border-radius: 4px;
  font-size: 14px;
}
#news-det .content-wrap .category.cat1 {
  background-color: #E59736;
}
#news-det .content-wrap .category.cat2 {
  background-color: #8ABC4C;
}
#news-det .content-wrap .category.cat3 {
  background-color: #193E71;
}
#news-det .content-wrap .category.cat4 {
  background-color: #4191D1;
}
@media screen and (max-width: 767px) {
  #news-det .content-wrap {
    padding-top: 2rem;
  }
}
#news-det .content-wrap .content-body p {
  margin: 1rem 0;
}
#news-det .content-wrap .content-body img {
  height: auto;
  max-width: 100%;
}
#news-det .content-wrap .content-body a {
  text-decoration: underline;
}
#news-det .content-wrap .content-body a:hover {
  color: #193E71;
}
#news-det .archives {
  margin-top: 5rem;
}

#news .archives,
#news-det .archives {
  width: 200px;
}
@media screen and (max-width: 767px) {
  #news .archives,
  #news-det .archives {
    width: 100%;
  }
}
#news .archives h2,
#news-det .archives h2 {
  font-size: 18px;
  margin-bottom: 1rem;
  background-color: #eee;
  border-bottom: 2px solid #aaa;
  padding: 0 8px;
}
#news .archives li a,
#news-det .archives li a {
  border-bottom: 1px solid #aaa;
  padding: 10px 8px;
  display: block;
}