@charset "UTF-8";
/*
 * 紹介ページの「新着情報」の欄（最新3件）。scripts/build-welcome.mjs がよくある質問の手前に入れる。
 * 一覧の行（.nw_list・.nw_tag）は新着情報のページ（/shinchaku/news.css）と同じ形。色は紹介ページの変数を使う
 */

.nw_sec {
  position: relative;
  padding-top: 72px;
}

.nw_sec .wrap {
  max-width: 860px;
}

.nw_sec_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.nw_sec_title {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 30px);
  color: var(--ink);
}

.nw_sec_all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--collar);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.nw_list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.nw_list a {
  padding: 14px 4px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.nw_list time {
  font-size: 14px;
  color: var(--ink_soft);
  white-space: nowrap;
}

.nw_tag {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--white);
}

.nw_tag_new { background: #c97a55; }
.nw_tag_update { background: #7c8a5a; }
.nw_tag_info { background: #5a3a26; }

.nw_list .nw_tag {
  justify-self: start;
}

.nw_list_title {
  font-weight: 700;
}

.nw_list a:hover .nw_list_title {
  color: var(--collar);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nw_sec {
    padding-top: 56px;
  }
  .nw_list a {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
  }
  .nw_list_title {
    grid-column: 1 / -1;
  }
}
