/* AI最新動向ページのテーブルスタイル */

/* テーブル全体のスタイル */
.articles-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* テーブルヘッダー */
.articles-table thead {
  background-color: #f8f9fa;
}

.articles-table thead th {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  background-color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* テーブルボディのセル */
.articles-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}

/* 最後の行の境界線を削除 */
.articles-table tbody tr:last-child td {
  border-bottom: none;
}

/* ホバー効果 */
.articles-table tbody tr {
  transition: background-color 0.2s ease;
}

.articles-table tbody tr:hover {
  background-color: #f5f8ff;
  cursor: pointer;
}

/* 日付列 */
.articles-table td:first-child {
  width: 120px;
  white-space: nowrap;
  font-size: 14px;
  color: #666;
}

/* タイトル列 */
.articles-table td:nth-child(2) {
  width: 35%;
  min-width: 300px;
}

.article-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-title a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: #0052cc;
  text-decoration: underline;
}

/* タグのスタイル */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.article-tags .tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: #e7f3ff;
  color: #0066cc;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.article-tags .tag:hover {
  background-color: #d0e7ff;
  transform: translateY(-1px);
}

/* 概要説明列 */
.articles-table td:nth-child(3) {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.articles-table td:nth-child(3) p {
  margin: 0;
  margin-bottom: 8px;
}

.articles-table td:nth-child(3) p:last-child {
  margin-bottom: 0;
}

/* テーブルコンテナ */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
}

/* モバイルカード形式 */
.article-card-mobile {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.article-card-mobile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card-mobile .date {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.article-card-mobile .title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-mobile .title a {
  color: #0066cc;
  text-decoration: none;
}

.article-card-mobile .excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
}

.article-card-mobile .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 記事がない場合のメッセージ */
.no-articles-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .articles-table thead th,
  .articles-table tbody td {
    padding: 12px 16px;
  }
  
  .articles-table td:nth-child(2) {
    width: 40%;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  /* モバイルではテーブルを非表示 */
  .table-container {
    display: none;
  }
  
  /* モバイルカードを表示 */
  .article-card-mobile {
    display: block;
  }
}