/* ==============================================
   news-event-list
   お知らせ・イベントの一覧表示（共通コンポーネント）
   使用: tmpl/common/news-event-list.php
   ============================================== */

.news-event__list {
  margin-top: 54px;
  border-top: 1px solid rgba(91, 65, 47, 0.28);

  @media (max-width: 1000px) {
    margin-top: 35px;
  }
}

.news-event__item {
  border-bottom: 1px solid rgba(91, 65, 47, 0.28);
}

.news-event__link {
  display: block;
  padding: 27px 20px 33px;
  color: var(--color-font);
  text-decoration: none;

  &:hover,
  &:focus-visible {
    color: var(--color-font);

    .news-event__item-title {
      text-decoration: none;
    }
  }

  @media (max-width: 1000px) {
    padding: 21px 5px 27px;
  }
}

.news-event__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-ja);
  font-weight: var(--font-weight-bold);

  @media (max-width: 600px) {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}

.news-event__date {
  display: block;
  color: var(--color-main);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.04em;

  @media (max-width: 1000px) {
    font-size: 15px;
    line-height: 1.45;
  }
}

/* カテゴリーバッジ。一覧（このファイル）のほか、トップ（front-page.php）・
   詳細（single.php）でも使用するため、lib/scripts.php でこのCSSの読み込み条件に
   is_singular('news') を含めている。 */
.news-event__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 42px;
  padding: 8px 18px;
  color: var(--news-event-category-color, #6D8EAB);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-align: center;
  background-color: var(--color-white);
  border: 1px solid var(--news-event-category-color, #6D8EAB);
  border-radius: 999px;

  @media (max-width: 1000px) {
    width: auto;
    min-width: 111px;
    height: 27px;
    padding: 4px 15px;
    font-size: 13px;
  }
}

.news-event__category--event {
  --news-event-category-color: #6D8EAB;
}

.news-event__category--news {
  --news-event-category-color: #AB9253;
}

.news-event__empty {
  margin-top: 54px;
  padding: 40px 20px;
  color: var(--color-font);
  font-family: var(--font-ja);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;

  @media (max-width: 1000px) {
    margin-top: 35px;
    padding: 32px 5px;
    font-size: 15px;
  }
}

.news-event__item-title {
  display: block;
  margin-top: 17px;
  color: var(--color-font);
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  line-height: 2.35;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-thickness: 1px;

  @media (max-width: 1000px) {
    margin-top: 15px;
    font-size: 15px;
    line-height: 2;
  }
}
