/* カード（共通カードUI） */

.cards {
  width: 100%;
}
.cards__list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
  align-items: stretch;
}

.cards__list.works .cards__item {
  width: 23%;
}
@media screen and (max-width: 1024px) {
  .cards__list.works .cards__item {
    width: 48%;
  }
}
@media screen and (max-width: 768px) {
  .cards__list.works .cards__item {
    width: 100%;
  }
}
.cards__item {
  width: 31%; /* 3列想定 */
  border: 1px solid #7d7d7d;
  background: #fff;
  border-radius: 16px;
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
}
/* 1件だけのときは「stretch」を解除して自然な高さにする */
.cards__list:has(.cards__item:only-child) {
  align-items: flex-start;
}
@media screen and (max-width: 1024px) {
  .cards__item {
    width: 48%;
  }
}
@media screen and (max-width: 768px) {
  .cards__item {
    width: 100%;
  }
}
.cards__item .card_link {
  padding: 12px;
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cards__item:hover {
  opacity: 0.8;
}

/* サムネイル */
.cards__thumb {
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  aspect-ratio: 16/9;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cards__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cards__item:hover .cards__thumb img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* 本文部分 */
.cards__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cards__title {
  font-size: 20px;
  font-weight: bold;
  color: #0f7e40;
  margin: 0;
}

.cards__date {
  font-size: 13px;
  color: #333;
  font-weight: bold;
}

.cards__excerpt {
  font-size: 14px;
  line-height: 1.6;
  font-weight: bold;
  color: #333;
}

/* タグリスト */
.cards__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cards__tag {
  color: #333333;
  font-weight: bold;
  padding: 5px;
  font-size: 1.2rem;
  border-radius: 5px;
  background: #f0f0f0;
}
.cards__tags a {
  color: #333333;
  display: block;
  text-decoration: none;
}

.card_link {
  width: 100%;
  height: 100%;
  display: block;
}
/* カルーセル */
.carousel_wrap .unit {
  margin: 0 10px;
  border-radius: 20px;
  background-color: #fff;
  border: 1px solid #7d7d7d;
  width: 390px;
  display: flex;
  flex-direction: column;
  flex: 1 !important;
  height: auto !important;
  transition: 0.3s all;

  .thumb {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
  }
  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
.carousel_wrap .unit:hover {
  opacity: 0.7;
}
.carousel_wrap .unit .card_link {
  padding: 30px 20px;
  display: block;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-more-button {
  margin: 20px 0 10px 0;
  font-size: 20px;
  color: #333;
  font-weight: bold;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.card-more-button__icon {
  width: 20px;
  height: 20px;
  background-image: url(../img/common/chevron.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 10px;
  position: relative;
  padding-right: 50px;
}

.card-more-button__icon::after {
  content: "";
  background-repeat: no-repeat;
  background-image: url(../img/common/chevron.svg);
  -webkit-transform: rotate(90deg);
  background-color: #0f7e40;
  background-size: 18px 18px;
  background-position: center;
  border-radius: 5px;
  padding: 7px;
  height: 18px;
  width: 18px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%) rotate(90deg);
  -webkit-transition: 0.3s all;
  transition: 0.3s all;
}
.card_link:hover .card-more-button__icon::after {
  transform: translateY(-50%) rotate(90deg) translateY(-2px);
}
.page_works_list
  .section_01
  .inner_box_bottom
  .carousel_wrap
  .unit:hover
  .thumb
  img {
  opacity: 0.7;
}

.page_works_list .section_01 .inner_box_bottom h4 {
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
  position: relative;
}

.carousel_wrap {
  margin-top: 50px;
  margin-bottom: 50px !important;
}

.page_works_list .section_01 .inner_box_bottom .carousel_wrap .unit .thumb {
  overflow: hidden;
  margin-bottom: 10px;
}

.page_works_list .section_01 .inner_box_bottom .carousel_wrap .unit .thumb img {
  width: 100%;
  -webkit-transition: 0.3s all;
  transition: 0.3s all;
}

.works_card_ttl {
  font-size: 2rem;
  font-weight: bold;
  color: #0f7e40;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page_works_list
  .section_01
  .inner_box_bottom
  .carousel_wrap.slick-initialized {
  opacity: 1;
}

.page_works_list .section_01 .inner_box_bottom.loaded .loading {
  display: none;
}

.category_list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ニュースカー */
.news_card {
}
.news_card a {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news_card .block_txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news_card .thumb {
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 10px;
  margin-bottom: 10px;
}
.news_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news_card_category_list .label {
  padding: 5px 15px;
  color: #fff;
  border-radius: 5px;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.3;
}
.news_card_ttl {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  color: #333;
}

.news_card_date {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
}

.pagenation_wrap {
  width: 1200px;
  margin: 0 auto 150px;
}

.pagenation_wrap ul {
  text-align: center;
}

.pagenation_wrap ul .prev {
  position: relative;
}

.pagenation_wrap ul .prev:before,
.pagenation_wrap ul .prev:after {
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  -webkit-transition: 0.3s all;
  transition: 0.3s all;
}

.pagenation_wrap ul .prev:after {
  border-color: rgba(255, 255, 255, 0);
  border-right-color: #fff;
  border-width: 20px;
  margin-top: -20px;
}

.pagenation_wrap ul .prev:before {
  border-color: rgba(0, 153, 68, 0);
  border-right-color: #009944;
  border-width: 21px;
  margin-top: -21px;
}

.pagenation_wrap ul .prev a {
  border-left: none;
}

.pagenation_wrap ul .prev:hover:before {
  content: "";
}

.pagenation_wrap ul .prev:hover:after {
  border-right-color: #009944;
}

.pagenation_wrap ul .next {
  position: relative;
}

.pagenation_wrap ul .next:before,
.pagenation_wrap ul .next:after {
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  -webkit-transition: 0.3s all;
  transition: 0.3s all;
}

.pagenation_wrap ul .next:after {
  border-color: rgba(255, 255, 255, 0);
  border-left-color: #fff;
  border-width: 20px;
  margin-top: -20px;
}

.pagenation_wrap ul .next:before {
  border-color: rgba(0, 153, 68, 0);
  border-left-color: #009944;
  border-width: 21px;
  margin-top: -21px;
}

.pagenation_wrap ul .next a {
  border-right: none;
}

.pagenation_wrap ul .next:hover:before {
  border-right-color: #fff;
}

.pagenation_wrap ul .next:hover:after {
  border-left-color: #009944;
}

.pagenation_wrap ul li {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-right: 5px;
}

.pagenation_wrap ul li a {
  display: block;
  border: 1px solid #009944;
  color: #009944;
  -webkit-transition: 0.3s all;
  transition: 0.3s all;
  width: 42px;
  height: 42px;
  line-height: 41px;
  text-align: center;
}

.pagenation_wrap ul li a:hover {
  background-color: #009944;
  color: #fff;
}

.pagenation_wrap ul .pageNum.isActive {
  background-color: #009944;
}

.pagenation_wrap ul .pageNum.isActive a {
  color: #fff;
}
