/* =========================================================
   お知らせ（news）カード：template-parts/news/card.php 用
   一覧（news-redesign.css と併用）と TOP のメディア掲載で共用する。
   色変数は一覧では .news-redesign で定義されているが、TOP には無いため同じ値をここでも定義する。
   ========================================================= */
.news-card {
  --nw-white: #fff;
  --nw-soft: #f4f0e8;
  --nw-ink: #2e2e2e;
  --nw-muted: #666;
  --nw-primary: #3a93ca;
  --nw-primary-dark: #2c74a0;
  --nw-line: #e5e0d6;
  --nw-red: #d9455a;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--nw-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  color: var(--nw-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
}

.news-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--nw-soft);
  overflow: hidden;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
  gap: .5rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.news-cat.cat-info { background: rgba(58, 147, 202, .12); color: var(--nw-primary-dark); }
.news-cat.cat-admission { background: rgba(90, 170, 120, .14); color: #2d7a4f; }
.news-cat.cat-seminar { background: rgba(255, 165, 0, .12); color: #a06000; }
.news-cat.cat-open { background: rgba(150, 100, 200, .12); color: #6b3fa0; }
.news-cat.cat-important { background: rgba(220, 60, 60, .12); color: #b02020; }
.news-cat.cat-media { background: rgba(82, 177, 175, .14); color: #2f7d7b; }

.news-new {
  display: inline-flex;
  align-items: center;
  padding: .1rem .5rem;
  background: var(--nw-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.news-card__title {
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--nw-line);
}

.news-date {
  font-size: .78rem;
  color: var(--nw-muted);
  white-space: nowrap;
  letter-spacing: .03em;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--nw-primary);
}
