@charset "UTF-8";
/* トップページのお知らせ欄（src/js/news.js が中身を生成） */
.top-news {
  margin: 5px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f8fe;
  font-size: 16px;
  text-align: left;
}
.top-news-title {
  padding: 16px 20px;
  background: linear-gradient(to right, #3498db, #7e6bc4);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.top-news-title a {
  color: #fff;
}
.top-news-title i {
  margin-right: 10px;
}
.top-news-items {
  padding: 14px;
}
/* 読み込み中に下の要素が動かないよう、3件分の高さを確保する */
.top-news-items:empty {
  box-sizing: border-box;
  min-height: 370px;
}
.top-news-item {
  margin-bottom: 12px;
}
.top-news-item:last-child {
  margin-bottom: 0;
}
.top-news-link {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(52, 104, 170, 0.15);
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
/* バナーの .hover（scripts.js の fadeTo）と同じ見え方。JS で後から生成する要素には .hover が効かないので CSS で指定 */
.top-news-link:hover {
  opacity: 0.75;
}
.top-news-thumb {
  flex: none;
  width: 160px;
  height: 82px;
  margin-right: 16px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}
.top-news-body {
  flex: 1;
  min-width: 0;
  color: #505659;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.top-news-item-title,
.top-news-excerpt {
  display: block;
}
.top-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 6px;
}
/* 掲載日（強調） */
.top-news-date {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 15px;
  background: #faf5e4;
  color: #7a5f00;
  font-size: 13px;
}
.top-news-date i {
  margin-right: 6px;
}
.top-news-new {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 15px;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.top-news-item-title {
  color: #1f6fb2;
  font-weight: bold;
}
.top-news-excerpt {
  font-size: 13px;
}
.top-news-arrow {
  flex: none;
  margin-left: 12px;
  color: #5fb3f5;
}
.top-news-message {
  padding: 20px;
  font-size: 14px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .top-news-title {
    padding: 14px 16px;
    font-size: 16px;
  }
  .top-news-items {
    padding: 10px;
  }
  .top-news-link {
    align-items: flex-start;
    padding: 10px;
  }
  .top-news-thumb {
    width: 100px;
    height: 51px;
    margin-right: 10px;
  }
  .top-news-meta {
    gap: 4px 6px;
  }
  .top-news-date {
    padding: 1px 8px;
    font-size: 12px;
  }
  .top-news-new {
    padding: 1px 6px;
    font-size: 11px;
  }
  .top-news-arrow {
    display: none;
  }
}
