#top img {
  vertical-align: bottom;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast
}
.main.news {
  background-color: var(--overseas-pailgray)
}

#top h2 {
  margin-block-start: -1px;
  margin-block-end: 0;
  margin-block-start: initial;
  margin-block-end: 10px
}
#top li {
  list-style: none
}
#top a {
  text-decoration: none
}
#top ul {
  padding-inline-start: 0
}
small {
  display: block;
  font-size: var(--font-12);
  color: gray;
  margin-top: 1em
}

.news div.section-container.news-container {
  padding: 35px 0 120px;
}
.news .news-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  position: relative;
}
.news .news-box {
  font-size: 1.5rem;
  padding: 30px 20px;
  border-bottom: 1px solid #9D9D9D;
}
.news .news-day{
  white-space: nowrap;
}
.news .news-category {
  width: 130px;
  padding: 7px;
  text-align: center;
  background-color: var(--overseas-pailgreen);
  border-radius: 8px;
}
.news .news-category.gray {
  background-color: #707070;
  color: #fff;
}
.news .news-category.yellow {
  background-color: #fff;
  color: #000;
}
.news .news-category + .news-category {
  margin-top: 8px;
}
.news .news-title {
  flex-grow: 1;
}
.news .news-category-area,
.news .news-title {
  margin-left: 45px;
}
.news .news-link:hover .news-title span {
  color: var(--overseas-lightpink);
  margin-top: 1px;
  border-bottom: 1px solid var(--overseas-lightpink);
}
#top.news .news-arrow {
  max-width: 9px;
}
.pagenation_block {
  margin: 70px auto 60px;
  border-top: 1px solid #9D9D9D;
}
nav.pagination-container {
  width: max-content;
  margin: auto;
}
nav.pagination-container ul {
  border: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  transition: 0.3s;
  border-radius: 0px;
  overflow: hidden;
  list-style:none
}
nav.pagination-container .pagination li {
  margin: 0;
  cursor: pointer;
  border: 3px solid #F3F3F3;
  border-bottom: none;
}
nav.pagination-container ul li a {
  display: block;
  border-radius: 8px;
  padding: 15px 18px 13px;
  background: #D9D9D9;
  line-height: 1;
  color: #000;
  pointer-events: none;
  text-align: center;
}
nav.pagination-container ul li a:focus {
  outline: none;
}
nav.pagination-container ul li:has(a:focus) {
  border: 2px solid #000;
}
nav.pagination-container li.first {
  border-radius: 5px 0 0 5px;
}
nav.pagination-container li.last {
  border-radius: 0 5px 5px 0;
}
nav.pagination-container li.page.navi-active a {
  background: var(--overseas-pailgreen);
}
nav.pagination-container li.last a {
  border-right: none;
}
.news-detail .news-detail-sub-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}
.news-detail .news-category-area {
  margin-left: 30px;
  display: flex;
  align-items: center;
}
.news-detail .news-category + .news-category {
  margin: 0 0 0 10px;
}
.news-detail div.section-container.news-container {
  padding: 60px 0 120px;
}
.news-detail h1.news-detail-title {
  margin-top: 40px;
  position: relative;
  padding-left: 28px;
  font-size: 3rem;
  line-height: 1.4;
}
.news-detail h1.news-detail-title::before {
  display: block;
  content: '';
  width: 8px;
  height: calc(100% + 20px);
  background: var(--overseas-lightgreen);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
.news-detail .news-detail-contents {
  margin-top: 50px;
}
.news-detail .news-detail-contents p {
  text-align: left;
  font-size: 1.5rem;
  margin: 0;
  line-height: 2;
}
.news-detail .news-detail-button {
  margin-top: 90px;
}
.news-detail .news-detail-button span.arrow {
  transform: translateY(-50%) rotate(180deg);
  right: auto;
  left: 30px;
}
.news-detail .news-detail-button span.text {
  margin-left: 30px;
}

@media screen and (min-width:768px) and (max-width:1280px) {
  div.section-container {
    max-width: 680px;
  }
  .news .news-box {
    padding: 30px 10px;
  }
  .news .news-category-area,
  .news .news-title {
    margin-left: 15px;
  }
  .news .news-category {
    width: 110px;
  }
  .news-detail h1.news-detail-title {
    font-size: 2.8rem;
  }
}

@media screen and (max-width:767px) {
  h2,
  h3 {
    font-size: 16px
  }
  .news div.section-container.news-container {
    padding: 35px 5% 80px;
  }
  .news .news-box {
    padding: 20px 0;
    position: relative;
  }
  .news .news-box a {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .news .news-category-area {
    margin-left: 15px;
  }
  .news .news-title {
    width: 90%;
    margin: 15px 0 0;
    padding-right: 25px;
    line-height: 1.5;
  }
  .news .news-category {
    padding: 5px;
  }
  .news .news-category span {
    font-size: 1.4rem;
  }
  #top.news .news-arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
  }
  .pagenation_block {
    margin: 30px auto;
  }
  nav.pagination-container {
    width: max-content;
  }
  nav.pagination-container ul li a {
    padding: 13px 0;
    width: 31px;
  }
  .news-detail .news-category-area {
    flex-direction: column;
  }
  .news-detail .news-category + .news-category {
    margin: 8px 0 0;
  }
  .news-detail h1.news-detail-title {
    font-size: 2.5rem;
  }
  .news-detail .news-detail-contents {
    margin-top: 30px;
  }
  .news-detail .news-detail-button {
    margin-top: 50px;
  }
}