/* フレームワーク一覧専用のスタイル */
.frameworks-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.framework-category-item {
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.framework-category-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.framework-category-item h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.framework-category-item h3 a {
  color: #2563eb;
  text-decoration: none;
}

.framework-category-item h3 a:hover {
  text-decoration: underline;
}

.framework-category-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

/* フレームワークテーブルの列幅調整 */
.frameworks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.frameworks-table th:nth-child(1), /* No */
.frameworks-table td:nth-child(1) {
  width: 4%;
  min-width: 40px;
  text-align: center;
}

.frameworks-table th:nth-child(2), /* 名前 */
.frameworks-table td:nth-child(2) {
  width: 12%;
  min-width: 100px;
}

.frameworks-table th:nth-child(3), /* GitHub Stars */
.frameworks-table td:nth-child(3) {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

.frameworks-table th:nth-child(4), /* 説明 */
.frameworks-table td:nth-child(4) {
  width: 35%;
  min-width: 250px;
}

.frameworks-table th:nth-child(5), /* トレンド */
.frameworks-table td:nth-child(5) {
  width: 25%;
  min-width: 150px;
}

.frameworks-table th:nth-child(6), /* ライセンス */
.frameworks-table td:nth-child(6) {
  width: 8%;
  min-width: 60px;
  text-align: center;
}

.frameworks-table th:nth-child(7), /* 公式サイト */
.frameworks-table td:nth-child(7) {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

/* プレイグラウンドテーブル専用の列幅調整 */
[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(1), /* No */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(1) {
  width: 3%;
  min-width: 30px;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(2), /* 名前 */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(2) {
  width: 8%;
  min-width: 80px;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(3), /* 説明 */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(3) {
  width: 22%;
  min-width: 200px;
  text-align: left;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(4), /* トレンド */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(4) {
  width: 20%;
  min-width: 180px;
  text-align: left;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(5), /* 特徴 */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(5) {
  width: 20%;
  min-width: 180px;
  text-align: left;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(6), /* 料金 */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(6) {
  width: 12%;
  min-width: 100px;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(7), /* タイプ */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(7) {
  width: 10%;
  min-width: 90px;
}

[class*="playground-"][class*="-page"] .frameworks-table th:nth-child(8), /* 公式サイト */
[class*="playground-"][class*="-page"] .frameworks-table td:nth-child(8) {
  width: 5%;
  min-width: 50px;
  text-align: center;
}

/* 長文セルの調整 */
.frameworks-table .description-cell,
.frameworks-table .trend-cell {
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  padding: 8px;
}

/* GitHub Stars セルの調整 */
.frameworks-table .stars-cell {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.frameworks-table .stars-count {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.frameworks-table .no-data {
  color: var(--text-muted);
  font-style: italic;
}

/* ライセンス列の改行対応 */
.frameworks-table td:nth-child(6) {
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
}

/* テーブル全体のスタイル調整 */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.frameworks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.frameworks-table th,
.frameworks-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.frameworks-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.frameworks-table tbody tr:hover {
  background: var(--bg-muted);
}

.frameworks-table tbody tr:last-child td {
  border-bottom: none;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .table-container {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .frameworks-table {
    font-size: 0.8rem;
  }
  
  .frameworks-table th,
  .frameworks-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .frameworks-table .description-cell {
    max-width: 150px;
    font-size: 0.75rem;
  }
  
  .frameworks-table .trend-cell {
    max-width: 120px;
    font-size: 0.75rem;
  }

  .frameworks-table .stars-cell {
    min-width: 60px;
    font-size: 0.7rem;
  }
}

/* タブレット対応 */
@media (min-width: 768px) and (max-width: 1023px) {
  .frameworks-table {
    font-size: 0.85rem;
  }
  
  .frameworks-table .description-cell {
    max-width: 200px;
  }
  
  .frameworks-table .trend-cell {
    max-width: 150px;
  }

  .frameworks-table .stars-cell {
    min-width: 70px;
    font-size: 0.8rem;
  }
}

/* 言語別セクションのスタイル */
.language-frameworks-section {
  margin: 3rem 0;
}

.language-frameworks-section:first-of-type {
  margin-top: 2rem;
}

.language-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* 言語別テーブルの調整 */
.language-frameworks-section .table-container {
  margin: 1rem 0;
}

.language-frameworks-section .frameworks-table {
  font-size: 0.85rem;
}

/* 言語別テーブルの列幅再調整 */
.language-frameworks-section .frameworks-table th:nth-child(1),
.language-frameworks-section .frameworks-table td:nth-child(1) {
  width: 4%;
}

.language-frameworks-section .frameworks-table th:nth-child(2),
.language-frameworks-section .frameworks-table td:nth-child(2) {
  width: 12%;
}

.language-frameworks-section .frameworks-table th:nth-child(3),
.language-frameworks-section .frameworks-table td:nth-child(3) {
  width: 8%;
}

.language-frameworks-section .frameworks-table th:nth-child(4),
.language-frameworks-section .frameworks-table td:nth-child(4) {
  width: 35%;
}

.language-frameworks-section .frameworks-table th:nth-child(5),
.language-frameworks-section .frameworks-table td:nth-child(5) {
  width: 25%;
}

.language-frameworks-section .frameworks-table th:nth-child(6),
.language-frameworks-section .frameworks-table td:nth-child(6) {
  width: 8%;
}

.language-frameworks-section .frameworks-table th:nth-child(7),
.language-frameworks-section .frameworks-table td:nth-child(7) {
  width: 8%;
}

/* DevOpsツール一覧ページ専用の列幅調整 */
.devops-subcategory-page .frameworks-table th:nth-child(1), /* No */
.devops-subcategory-page .frameworks-table td:nth-child(1) {
  width: 4%;
  min-width: 40px;
  text-align: center;
}

.devops-subcategory-page .frameworks-table th:nth-child(2), /* 名前 */
.devops-subcategory-page .frameworks-table td:nth-child(2) {
  width: 10%;
  min-width: 100px;
}

.devops-subcategory-page .frameworks-table th:nth-child(3), /* 説明 */
.devops-subcategory-page .frameworks-table td:nth-child(3) {
  width: 30%;
  min-width: 250px;
}

.devops-subcategory-page .frameworks-table th:nth-child(4), /* トレンド */
.devops-subcategory-page .frameworks-table td:nth-child(4) {
  width: 30%;
  min-width: 250px;
}

.devops-subcategory-page .frameworks-table th:nth-child(5), /* ライセンス */
.devops-subcategory-page .frameworks-table td:nth-child(5) {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

.devops-subcategory-page .frameworks-table th:nth-child(6), /* 言語 */
.devops-subcategory-page .frameworks-table td:nth-child(6) {
  width: 10%;
  min-width: 100px;
  text-align: center;
}

.devops-subcategory-page .frameworks-table th:nth-child(7), /* 公式サイト */
.devops-subcategory-page .frameworks-table td:nth-child(7) {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

/* データベースカテゴリページ専用の列幅調整 */
.database-category-table .no-col {
  width: 3%;
  min-width: 30px;
  text-align: center;
}

.database-category-table .name-col {
  width: 10%;
  min-width: 100px;
}

.database-category-table .description-col {
  width: 35%;
  min-width: 300px;
}

.database-category-table .stars-col {
  width: 10%;
  min-width: 100px;
  text-align: center;
}

.database-category-table .trend-col {
  width: 25%;
  min-width: 200px;
}

.database-category-table .license-col {
  width: 6%;
  min-width: 60px;
  text-align: center;
}

.database-category-table .language-col {
  width: 8%;
  min-width: 80px;
  text-align: center;
}

.database-category-table .site-col {
  width: 3%;
  min-width: 50px;
  text-align: center;
}

/* GitHub Stars表示のスタイル */
.database-category-table .star-count {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}