/**
 * お知らせ
 * https://tsuchidagumi.com/news/
 */

/* 新着情報 */
#top #sec05 {
  padding: 60px 0;
}

.home-news__list {
  border-top: 1px solid;
  margin: auto;
}

.home-news__link {
  border-bottom: 1px solid;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.4s;
  white-space: nowrap;
  z-index: 0;
}

.home-news__link:hover {
  background: #f5f5f5;
}

.home-news__thumb {
  margin: 0;
  overflow: hidden;
}

.home-news__thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  width: 100%;
}

.home-news__link:hover .news__thumb img {
  transform: scale(1.1);
}

.home-news__date {
  margin: 0;
  padding: 1em;
}

.home-news__caption {
  font: inherit;
  margin: 0;
  overflow: hidden;
  padding: 1em;
  text-overflow: ellipsis;
}

.home-news__more {
  align-items: center;
  background: linear-gradient(90deg, #ffffff 50%, #000000 50%) -100% / 200% text;
  color: transparent;
  display: none;
  gap: 1em;
  margin: 0 0 0 auto;
  padding: 1em;
  position: relative;
  transition: background-position 0.4s;
}

.home-news__more::before {
  background: linear-gradient(90deg, #0ab8b8 50%, transparent 50%) -100% / 200%;
  background-position: inherit;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.home-news__link:hover .home-news__more {
  background-position: 0;
}

@media (min-width: 768px) {
  #top #sec05 {
    padding: 100px 0;
  }
  .home-news__list {
    width: 75%;
  }
  .home-news__more {
    display: flex;
  }
}

/* お知らせ */
@media (max-width: 768px) {
  #news section {
    padding: 60px 0 0;
  }
}

/* タイトル */
.news__title {
  display: table;
  font-size: 20px;
  font-weight: 400;
  margin: 0 auto 40px;
  padding-bottom: 60px;
  position: relative;
}

.news__title::before {
  background: linear-gradient(90deg, transparent, #000000);
  content: "";
  height: 1px;
  inset: auto 0 0;
  margin: 20px -20px;
  position: absolute;
  transform: rotate(-20deg);
}

/* お知らせ一覧 */
.news__list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.news__link {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  position: relative;
  text-decoration: none;
  z-index: 0;
}

.news__thumb {
  margin: 0;
  overflow: hidden;
}

.news__thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  width: 100%;
}

.news__link:hover .news__thumb img {
  transform: scale(1.1);
}

.news__date {
  background: #0ab8b8;
  color: #ffffff;
  display: inline-block;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  padding: 0.25em 0.5em;
}

.news__caption {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  overflow: hidden;
}

.news__text {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  margin: 0 0 60px;
  overflow: hidden;
}

.news__more {
  color: #0ab8b8;
  font-size: 14px;
  inset: auto 0 0;
  letter-spacing: 2px;
  line-height: 40px;
  margin: 20px 10px;
  position: absolute;
  text-align: center;
}

.news__more::before {
  background: linear-gradient(90deg, transparent, #0ab8b8);
  content: "";
  height: 2px;
  inset: auto 0 0;
  position: absolute;
}

.news__more i {
  -webkit-transform: translateY(-50%);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.news__nav {
  border-bottom: 2px solid #000000;
  margin: 40px auto;
  padding: 10px 0;
  position: relative;
  text-align: center;
  width: 240px;
}

.news__nav a {
  color: #000000;
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
}

.news__nav i {
  -webkit-transform: translateY(-50%);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .news__title {
    font-size: 24px;
  }
  .news__list {
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
  }
  .news__link {
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
  }
  .news__thumb {
    flex-shrink: 0;
    width: 24rem;
  }
  .news__date {
    font-size: 1.2rem;
  }
  .news__caption {
    font-size: 1.6rem;
  }
  .news__text {
    margin-bottom: 0;
  }
  .news__more {
    left: auto;
    margin: 20px;
    width: 160px;
  }
}

/* ページ送り */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  justify-content: center;
  list-style: none;
  margin: 8rem 0 0;
  padding: 1px;
  text-align: center;
}

.pagination li {
  border: 1px solid #000000;
  margin: -1px;
}

.pagination li > * {
  background-color: #333333;
  color: #ffffff;
  display: block;
  line-height: 3em;
  text-decoration: none;
  transition: background-color 0.4s;
  width: 3em;
}

.pagination li > *:hover,
.pagination__num.current {
  background-color: #0ab8b8;
}

.pagination__prev,
.pagination__next {
  background: url("../cmn_img/news/arrow-left.svg") 50% no-repeat;
  text-indent: -999rem;
}

.pagination__next {
  background-image: url("../cmn_img/news/arrow-right.svg");
}

/* お知らせ詳細 */
.news-single__title {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 40px;
}

.news-single__content {
  border: 1px solid #d7d7d7;
  font-size: 1.4rem;
  line-height: 2;
  padding: 2rem;
}

.news-single__content * {
  all: revert;
}

.news-single__content img {
  max-width: 100%;
}

.news-single__content + .bscBtn02 {
  margin-top: 8rem;
}

.news-single__content + .bscBtn02 a {
  border: none;
  box-shadow: inset 0 0 0 1px #000000;
}

@media (min-width: 768px) {
  .news-single__title {
    font-size: 24px;
  }
  .news-single__content {
    font-size: 1.6rem;
    padding: 4rem;
  }
}
