/* ---------- トップページ NEWS & BLOG | ここから ---------- */
.index__news li:nth-child(n + 2) {
  margin-top: 15px;
}

.index__news .index__news--wrap {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.index__news--wrap--list > li > a > .index__news--wrap--list--title {
  white-space: normal; /* 文字を折り返す */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 表示する行数 */
  overflow: hidden;
  line-height: 1.5;
  margin-top: 6px;
}

/* カテゴリー */
.index__news--wrap--list--blog {
  display: inline-block;
  margin: 6px 0 0;
  width: 135px;
  height: 24px;
  text-align: center;
  color: #ffffff;
  line-height: 24px;
  font-size: 1.4rem;
  font-family: 'M PLUS 1p', sans-serif;
  background-color: #4caf50;
}

.index__news .index__news--wrap--list time {
  margin-top: 8px;
}

/* ---------- トップページ NEWS & BLOG | ここまで ---------- */

/* ---------- NEWS & BLOG 一覧ページ | ここから ---------- */
.news .news__container {
  display: grid;
  grid-template-columns: 1fr 250px;
  grid-gap: 80px;
  align-items: flex-start;
  padding: 0;
  max-width: 1600px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}
@media only screen and (max-width: 1024px) {
  .news .news__container {
    grid-template-columns: 1fr;
    grid-gap: 0;
    max-width: 700px;
    margin-bottom: 115px;
  }
}
@media only screen and (max-width: 768px) {
  .news .news__container {
    max-width: 540px;
    margin-bottom: 97px;
  }
}

.news .news__container.news__container--article {
  max-width: 1440px;
}
@media only screen and (max-width: 1024px) {
  .news .news__container.news__container--article {
    max-width: 700px;
  }
}
@media only screen and (max-width: 768px) {
  .news .news__container.news__container--article {
    max-width: 540px;
  }
}

.news .news__wrap {
  max-width: 1440px;
  width: 100%;
  padding-inline: 0;
  margin-inline: auto;
}
@media only screen and (max-width: 960px) {
  .news .news__wrap {
    margin-bottom: 100px;
  }
}
@media only screen and (max-width: 768px) {
  .news .news__wrap {
    margin-bottom: 80px;
  }
}

.news .news__wrap .news__wrap--title {
  margin-bottom: 50px;
}

.news__wrap .news__wrap--list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 40px;
  column-gap: clamp(1.25rem, -1.827rem + 4.81vw, 2.5rem); /* 20 ~ 40 | 1024 ~ 1440 */
  max-width: none;
  width: 100%;
  padding: 0;
}

@media screen and (max-width: 1440px) {
  .news__wrap .news__wrap--list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
    column-gap: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .news__wrap .news__wrap--list {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 40px;
    column-gap: 20px;
  }
}

.news__wrap--list .news__wrap--list--inner {
  padding: 0;
  margin: 0;
}

.news__wrap--list--inner-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 20px 10px;
  transition: all 0.3s;
}
@media screen and (max-width: 1024px) {
  .news__wrap--list--inner-link {
    padding: 20px 20px;
  }
}
@media screen and (max-width: 768px) {
  .news__wrap--list--inner-link {
    padding: 15px 10px;
  }
}

@media (any-hover: hover) {
  .news__wrap--list--inner-link:hover {
    opacity: 0.8;
  }

  .news__wrap--list--inner-link:hover .news__wrap--list--inner--img img {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.news__wrap--list--inner--img {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
}

.news__wrap--list--inner--img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: all 0.3s;
}

.news__wrap--list .news__wrap--list--inner .news__wrap--list--inner--date {
  margin-bottom: 15px;
}

.news__wrap--list--inner--date--blog {
  background-color: #4caf50;
}

.news__wrap--list .news__wrap--list--inner h3 {
  font-size: 20px;
  margin: 0;
  white-space: normal; /* 文字を折り返す */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 表示する行数 */
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .news__wrap--list .news__wrap--list--inner h3 {
    font-size: 18px;
  }
}

/* ---------- NEWS & BLOG 一覧ページ | ここまで ---------- */

/* ---------- NEWS & BLOG サイドバー | ここから ---------- */
.news-sidebar {
  margin-top: 170px;
}
@media screen and (max-width: 960px) {
  .news-sidebar {
    margin-top: 0;
  }
}

.news-sidebar-item {
}

.news-sidebar-title {
  font-size: 22px;
  color: #333;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 4px solid;
  border-image: linear-gradient(to right, #6676b0 0%, #32aac8 100%);
  border-image-slice: 1;
  text-align: center;
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
@media screen and (max-width: 960px) {
  .news-sidebar-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .news-sidebar-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}

.news-sidebar-list-item {
}

.news-sidebar-list-item-link {
  position: relative;
  display: block;
  font-size: 20px;
  color: #333;
  font-weight: 500;
  line-height: 1.3;
  transition: all 0.3s;
  padding-left: 1em;
  transition: all 0.3s;
}
@media screen and (max-width: 768px) {
  .news-sidebar-list-item-link {
    font-size: 16px;
  }
}

@media (any-hover: hover) {
  .news-sidebar-list-item-link:hover {
    opacity: 0.6;
  }
}

.news-sidebar-list-item-link::before {
  content: '・';
  position: absolute;
  top: 0;
  left: 0;
}

/* ---------- NEWS & BLOG サイドバー | ここまで ---------- */

/* ---------- NEWS & BLOG ページネーション | ここから ---------- */
.news__container .news__wrap .pagenation {
  margin-top: 92px;
}
@media only screen and (max-width: 960px) {
  .news__container .news__wrap .pagenation {
    margin-top: 50px;
  }
}
/* ---------- NEWS & BLOG ページネーション | ここまで ---------- */

/* ---------- NEWS & BLOG 記事ページ | ここから ---------- */
.news-article__title {
  font-size: 24px;
  color: #333;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 60px;
}
@media screen and (max-width: 768px) {
  .news-article__title {
    font-size: 20px;
  }
}

.news-article__container figure {
  width: 80%;
  margin-inline: auto;
  margin-block: 50px;
}
@media screen and (max-width: 768px) {
  .news-article__container figure {
    width: 90%;
  }
}

.news-article__container figure img {
  display: block;
  width: 100%;
  margin-inline: auto;
}

.news-article__container h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  padding: 1px 5px;
  border-left: 8px solid #6676b0;
  background-color: #32aac8;
  margin-top: 60px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .news-article__container h2 {
    font-size: 16px;
    margin-top: 50px;
  }
}

.news-article__container h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  padding: 1px 5px;
  background-color: rgba(50, 170, 200, 0.4);
  border-bottom: 3px solid #6676b0;
  margin-top: 60px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .news-article__container h3 {
    font-size: 15px;
    margin-top: 50px;
  }
}

.news-article__container h4 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  padding: 1px 5px;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, #6676b0 0%, #32aac8 100%);
  border-image-slice: 1;
  margin-top: 60px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .news-article__container h4 {
    font-size: 20px;
    margin-top: 50px;
  }
}

.news-article__container p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
  word-break: break-all;
}

@media screen and (max-width: 768px) {
  .news-article__container p {
    font-size: 15px;
    line-height: 1.5;
  }
}

.news-article__container p strong {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
  .news-article__container p strong {
    font-size: 15px;
    line-height: 1.5;
  }
}

.news-article__container p a {
  font-size: 16px;
  font-weight: 500;
  color: #6676b0;
  line-height: 1.4;
  overflow-wrap: break-word;
  text-decoration: underline;
  margin-bottom: 15px;
  transition: all 0.3s;
}
@media screen and (max-width: 768px) {
  .news-article__container p a {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (any-hover: hover) {
  .news-article__container p a:hover {
    opacity: 0.6;
  }
}

.news-article__container > ul {
  margin-bottom: 20px;
}

.news-article__container > ul > li {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 5px;
  padding-left: 1em;
}
@media screen and (max-width: 768px) {
  .news-article__container > ul > li {
    font-size: 15px;
    line-height: 1.5;
  }
}

.news-article__container > ul > li:first-child {
  margin-bottom: 0;
}

/* リストの「・」 */
.news-article__container > ul > li::before {
  content: '・';
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

.news-article__btn-wrapper {
  max-width: 1400px;
  width: calc(100% - 40px);
  margin-inline: auto;
  margin-bottom: 100px;
  text-align: center;
  border-top: 4px solid;
  border-image: linear-gradient(to right, #6676b0 0%, #32aac8 100%);
  border-image-slice: 1;
  padding-top: 50px;
  padding-inline: 20px;
}
@media screen and (max-width: 960px) {
  .news-article__btn-wrapper {
    max-width: 660px;
  }
}
@media screen and (max-width: 768px) {
  .news-article__btn-wrapper {
    max-width: 500px;
  }
}

/* ---------- NEWS & BLOG 記事ページ | ここまで ---------- */

/* ---------- 戻るボタン | ここから ---------- */
.btn-back {
  position: relative;
  display: inline-block;
  width: 300px;
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  padding-block: 15px;
  transition: all 0.3s;
  background-color: #125ca4;
  border: 1px solid #125ca4;
}
.btn-back::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  width: 20px;
  height: 9px;
  background: url('../img/re_btn_arrow.svg') center center/contain no-repeat;
  transform: translateY(-50%) scaleX(-1);
}
.btn-back:hover {
  color: #125ca4;
  background-color: #ffffff;
  /* color: #ffffff;
  background-color: #125ca4; */
}
.btn-back:hover::before {
  background: url('../img/re_btn_arrow_hover.svg') center center/contain no-repeat;
  -webkit-animation: btnarrow 0.8s infinite;
  animation: btnarrow 0.8s infinite;
}
@keyframes btnarrow {
  0% {
    transform: translateX(0px) translateY(-50%) scaleX(-1);
  }
  100% {
    transform: translateX(15px) translateY(-50%) scaleX(-1);
  }
}
/* ---------- 戻るボタン | ここまで ---------- */
