/* page-news.css - Newsページ固有のスタイル */

/* ----- side_list (dl news) ----- */
.page-top .side_list dl dd a::after,
.page-news .side_list dl dd a::after,
.page-news .side_list dl dd span:not(.c-current-linktext)::after {
  content: " / ";
  color: #fff;
}

.side_list .old {
  margin-top: 150px;
  border-top: 1px dotted #ccc;
}

.side_list dt.c-new h3 {
  color: #ddcc44;
}

/* ----- blog feed ----- */
.blog-feed {
  min-height: 420px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.blog-feed.is-ready {
  opacity: 1;
}

.blog-skeleton {
  height: 170px;
  margin: 10px 20px 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, #5b8f68 25%, #6ea27a 37%, #5b8f68 63%);
  background-size: 300% 100%;
  animation: sk 1.2s ease infinite;
}
@keyframes sk {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.blog-post {
  padding: 15px 20px 20px;
  border-bottom: 1px solid #ddd;
}
.blog-post:last-child {
  border-bottom: 0;
}
.blog-post-header {
  margin-bottom: 10px;
}
.blog-post-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.blog-post-title a {
  color: #fff;
  text-decoration: none;
}
.blog-post-title a:hover {
  color: #006644;
  text-decoration: underline;
}
.blog-post-date {
  font-size: 0.9rem;
  color: #fff;
}
.blog-post-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.blog-post-thumbnail {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  overflow: hidden;
}
.blog-post-thumbnail img {
  width: 160px;
  height: auto;
  border-radius: 4px;
}
.blog-post-body {
  flex: 1;
}
.blog-post-excerpt {
  margin-top: 10px;
  line-height: 1.4;
}
.blog-post-link {
  margin-top: 10px;
}
.blog-post-link a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.blog-post-link a:hover {
  color: #006644;
  text-decoration: underline;
}

.blog-feed-sentinel {
  height: 1px;
}

.blog-error-message {
  margin: 50px auto;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
}

/* ------ list-news ----- */
.contents_inner .list-news,
.contents_inner .list-news-old {
  margin: 20px 0 20px 40px;
  list-style: disc;
}

.contents_inner .list-news li,
.contents_inner .list-news-old li {
  display: table;
}

.contents_inner .list-news li {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.contents_inner .list-news li.is-enter {
  opacity: 0;
  transform: translateY(4px);
}

.contents_inner .list-news span {
  display: table-cell;
  width: 4.2em;
}

.contents_inner .list-news a + a {
  margin-left: 10px;
}

/* 2018年以前の list-news */

.contents_inner .list-news-old span {
  display: table-cell;
  padding-left: 1.2em;
}

/* ----- はまってる & 達成 ----- */
.contents_inner .list-topic {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.contents_inner .list-ranking {
  margin: 20px 0 20px 30px;
  list-style: decimal;
}

.contents_inner .list-topic .list-ranking {
  width: 360px;
}

/* ----- レスポンシブ（SP） ----- */
@media screen and (max-width: 639px) {
  /*blog-feed*/
  .blog-post {
    padding: 10px 5px 20px;
  }
  .blog-post .blog-post-content {
    flex-direction: column;
  }
  .blog-post .blog-post-thumbnail {
    width: 100%;
    height: calc((100vw - 36px) * 2 / 3);
  }
  .blog-post .blog-post-thumbnail img {
    width: 100%;
    height: auto;
  }
  .blog-post .blog-post-excerpt {
    margin-top: 0;
    width: 100%;
  }

  /* list-news */
  .contents_inner .list-news,
  .contents_inner .list-news-old {
    margin: 20px 5px;
  }

  .contents_inner .list-topic .list-ranking {
    max-width: calc(100vw - 50px);
  }
}
