@charset "UTF-8";

.main {
  padding-bottom: 160px;
}

@media (max-width: 780px) {
  .main {
    padding-bottom: 40px;
  }
}

/* お知らせ一覧 */
.news_table {
  background-color: #fff;
  border-radius: 30px;
  padding: 120px 98px 30px;
}

.news_table th,
td {
  padding: 35px 0;
  position: relative;
}

.news_table th:after,
.news_table td:after {
  background: url(../styles/images/border.png) no-repeat;
  background-size: cover;
  content: "";
  display: inline-block;
  width: 100%;
  height: 8px;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.news_table th {
  color: #858585;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  width: 210px;
}

.news_table td {
  font-size: 1.25rem;
  position: relative;
}

.news_table .new {
  background-color: #ff3939;
  border-radius: 5px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  width: 42px;
  height: 23px;
  position: absolute;
  top: 38%;
  left: -55px;
}

@media (max-width: 780px) {
  .news_table {
    padding: 30px 20px;
  }

  .news_table th,
  td {
    padding: 20px 0;
  }

  .news_table td {
    font-size: 1rem;
  }

  .news_table th {
    vertical-align: baseline;
    font-size: 0.7rem;
    width: 80px;
  }

  .news_table th:after,
  .news_table td:after {
    bottom: -2px;
  }

  .news_table .new {
    font-size: 0.55rem;
    width: 32px;
    height: 20px;
    position: relative;
    top: -4px;
    left: 0;
  }

  .news_table .new + br {
    display: none !important;
  }
}

/* ページネーション */
.pagination {
  margin-top: 90px;
}

.pagination,
.pagination li a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.pagination li:not([class*="current"]) a:hover {
  background-color: #eee;
}

.pagination li:first-of-type a {
  border-left-width: 1px;
}

.pagination li.first,
.pagination li.last,
.pagination li.previous,
.pagination li.next {
  display: none;
}

.pagination li.first span,
.pagination li.last span,
.pagination li.previous span,
.pagination li.next span {
  /* screen readers only */
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.pagination li.first a::before,
.pagination li.last a::after,
.pagination li.previous a::before,
.pagination li.next a::after {
  display: inline-block;
  font-family: Fontawesome;
  font-size: inherit;
  text-rendering: auto;
  transform: translate(0, 0);
}

.pagination li.first a::before {
  content: "\f100";
}

.pagination li.last a::after {
  content: "\f101";
}

.pagination li.previous a::before {
  content: "\f104";
}

.pagination li.next a::after {
  content: "\f105";
}

.pagination a {
  border: 1px solid #28ac4b;
  border-radius: 50%;
  color: #28ac4b;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  width: 37px;
  height: 37px;
}

.pagination li.current a {
  border: none;
  background-color: #28ac4b;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.pagination > li:first-child > a {
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
}

.pagination > li:last-child > a {
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
}

.lead {
  line-height: 1.4;
  margin: 0 0 20px 10px;
}

@media only screen and (min-width: 481px) {
  .pagination li.last a {
    padding: 1px 0 0 !important;
  }
}

@media only screen and (max-width: 480px) {
  .pagination {
    margin-top: 40px;
  }

  .pagination li.first,
  .pagination li.last {
    /* screen readers only */
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .pagination li.current,
  .pagination li.first,
  .pagination li.last,
  .pagination li.previous,
  .pagination li.next {
    position: initial;
    top: initial;
    left: initial;
  }

  .pagination a {
    font-size: 1rem;
    font-weight: 700;
  }
}

@media only screen and (max-width: 320px) {
  .pagination li.first,
  .pagination li.last {
    /* screen readers only */
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
}

/* お知らせ詳細 */
.news_detail {
  background-color: #fff;
  border-radius: 30px;
  margin-bottom: 80px;
  padding: 80px 60px;
  position: relative;
}

.news_detail::before {
  background-image: radial-gradient(circle, #dcedc5 3px, transparent 3px);
  background-repeat: repeat-x;
  background-size: 8px 6px;
  content: "";
  width: 90%;
  height: 6px;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.news_detail p {
  font-size: 1.25rem;
  line-height: 1.8;
}

.news_detail p a {
  color: #28ac4b;
}

@media (max-width: 780px) {
  .news_detail {
    margin-bottom: 0;
    padding: 60px 20px 40px;
  }

  .news_detail::before {
    top: 45px;
  }

  .news_detail p {
    font-size: 1rem;
  }
}

/* ナビゲーション */
.navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  margin-top: 100px;
}

.navigation span {
  background-color: #28ac4b;
  border-radius: 17.5px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 352px;
  width: 100%;
  height: 35px;
  text-align: center;
  position: relative;
}

.navigation span::before {
  background: url(../styles/images/link-arrow.png) no-repeat;
  background-size: contain;
  color: #fff;
  content: "";
  width: 18px;
  height: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.navigation span:not(:has(> a)) {
  display: none;
}

.navigation .next {
  margin-left: auto;
}

.navigation .previous::before {
  transform: translateY(-50%) rotate(180deg);
  left: 30px;
}

.navigation .next::before {
  right: 30px;
}

@media (max-width: 780px) {
  .navigation {
    margin-top: 50px;
  }

  .navigation span {
    font-size: 0.8rem;
    height: 30px;
  }

  .navigation span::before {
    background-position: center;
    background-size: 70%;
  }

  .navigation .previous::before {
    left: 10px;
  }

  .navigation .next::before {
    right: 10px;
  }
}
