/* =====================================================
   News タブ＆カードグリッド
   index.css の末尾に追記してください
   ===================================================== */

/* ----- タブ ----- */
.news-tabs {
  display: flex;
  gap: 1.5px;
  margin: 0 0 30px;
  border-bottom: 1px solid #c8c8c8;
}
.news-tab {
  flex: 1;
  padding: 12px 0;
  letter-spacing: .22em;
  color: #888;
  background: #f0efeb;
  border: none;
  border-bottom: 1px solid #c8c8c8;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: 游明朝, "Yu Mincho", serif;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  border-radius: 0;
  outline: none;
}
.news-tab.is-active {
  background: #7a9a7e;
  color: #fff;
  border-bottom-color: #7a9a7e;
}
.news-tab:hover:not(.is-active) {
  background: #e4e3de;
  color: #555;
}

/* ----- タブパネル（TOP用・JS切り替え） ----- */
.news-tab-panel {
  display: none;
}
.news-tab-panel.is-active {
  display: block;
}

/* ----- カードグリッド ----- */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

/* ----- カード ----- */
.news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card a:hover .news-card__thumb img {
  transform: scale(1.04);
}
.news-card a:hover .news-card__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* サムネイル */
.news-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efefec;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

/* アイキャッチなし */
.news-card__no-img {
  font-size: 1rem;
  color: #bbb;
  letter-spacing: .1em;
  font-style: italic;
}

/* NEWバッジ */
.news-card__new {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #000;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 0;
  font-family: sans-serif;
}

/* カテゴリバッジ群（サムネイル左下） */
.news-card__badges {
  position: absolute;
  bottom: 7px;
  left: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: calc(100% - 14px);
}
.news-card__cat {
  font-size: .9rem;
  padding: 2px 8px;
  letter-spacing: .08em;
  line-height: 1.8;
  font-family: sans-serif;
  border-radius: 0;
  white-space: nowrap;
}
.news-card__cat--event       { background: #2d5a3a; color: #c5dfc9; }
.news-card__cat--news        { background: rgba(40,40,40,.82); color: #e8e8e8; }
.news-card__cat--information { background: rgba(80,80,80,.82); color: #e0e0e0; }
.news-card__cat--customer-voice { background: rgba(100,80,50,.82); color: #ede0cc; }

/* テキストエリア */
.news-card__body {
  padding: 10px 0 0;
}
.news-card__date-row {
  margin-bottom: 6px;
}
.news-card__date {
  background: #000;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .06em;
  padding: 3px 12px;
  border-radius: 20px;
  font-family: sans-serif;
  white-space: nowrap;
  display: inline-block;
}
.news-card__title {
  font-size: 1.3rem;
  line-height: 1.75;
  color: #000;
  letter-spacing: .05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   レスポンシブ
   ===================================================== */
@media screen and (max-width: 599px) {
  .news-tabs {
    gap: 1.5px;
    margin: 0 0 20px;
  }
  .news-tab {
    padding: 10px 0;
    letter-spacing: .1em;
  }
  .news-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .news-card__title {
    font-size: 1.2rem;
  }
}