/* テーブル枠線スタイル */
.news-grid.list-layout table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ddd; /* テーブル外枠 */
}

.news-grid.list-layout th,
.news-grid.list-layout td {
  border: 1px solid #ddd; /* セル枠線 */
}

.news-grid.list-layout thead th {
  border-bottom: 2px solid #0066cc; /* ヘッダー下部の枠線を強調 */
}

.news-grid.list-layout tbody tr:hover {
  background-color: #f5f9ff;
}

/* モバイルレイアウト用のセルデータ属性 */
.news-grid.list-layout th:nth-child(1)::before { content: attr(data-label); display: none; }
.news-grid.list-layout th:nth-child(2)::before { content: attr(data-label); display: none; }
.news-grid.list-layout th:nth-child(3)::before { content: attr(data-label); display: none; }

/* 日付列のスタイル */
.news-grid.list-layout th:first-child,
.news-grid.list-layout td:first-child {
  white-space: nowrap;
  font-size: 0.9em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .news-grid.list-layout table {
    border-width: 0;
  }
  
  .news-grid.list-layout thead {
    display: none; /* モバイルではヘッダーを非表示 */
  }
  
  .news-grid.list-layout tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
  }
  
  .news-grid.list-layout td {
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
    border-right: 0;
    border-left: 0;
    position: relative;
    padding-left: 50%;
  }
  
  .news-grid.list-layout td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
  }
  
  .news-grid.list-layout td:nth-of-type(1):before { content: '発表日'; }
  .news-grid.list-layout td:nth-of-type(2):before { content: 'タイトル'; }
  .news-grid.list-layout td:nth-of-type(3):before { content: '概要説明'; }
  
  .news-grid.list-layout td:last-child {
    border-bottom: 0;
  }
}
