/* === 支援団体セクション全体 === */
.support-section,
.disease-directory {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* === ブロックラッパー === */
.support-block {
  margin-bottom: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
}

/* === ブロック見出し & テーブルキャプション === */
.support-title,
.directory-table caption {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-text);
  border-left: 5px solid var(--color-link);
  padding-left: 0.5em;
  text-align: left;
}

/* === 情報ブロック === */
.support-entry {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--color-border);
}

.support-entry .name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}

.support-entry .info {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* === カテゴリバッジ === */
.category-badge {
  display: inline-block;
  background-color: var(--color-link);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  padding: 0.2em 0.6em;
  margin-right: 0.5em;
}

/* === テーブル構造 === */
.directory-container {
  margin-bottom: 2rem;
  overflow-x: auto;
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  color: var(--color-text);
}

.directory-table th:nth-child(1),
.directory-table td:nth-child(1) {
  width: 25%;
}

.directory-table th:nth-child(2),
.directory-table td:nth-child(2) {
  width: 45%;
}

.directory-table th:nth-child(3),
.directory-table td:nth-child(3) {
  width: 30%;
}

/* === テーブル見た目 === */
.directory-table th,
.directory-table td {
  padding: 0.6em 0.8em;
  border: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.directory-table th {
  font-weight: bold;
  background-color: var(--color-bg);
}

/* === 行ごとの背景色（ライトテーマ） === */
.directory-table tbody tr:nth-child(odd) {
  background-color: rgba(240, 240, 240, 0.5);
}

.directory-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.8);
}

/* === 行ごとの背景色（ダークテーマ） === */
[data-theme="dark"] .directory-table {
  color: #f5f5f5;
}

[data-theme="dark"] .directory-table tbody tr:nth-child(odd) {
  background-color: rgba(40, 40, 40, 0.9);
}

[data-theme="dark"] .directory-table tbody tr:nth-child(even) {
  background-color: rgba(30, 30, 30, 0.9);
}

[data-theme="dark"] .directory-table th,
[data-theme="dark"] .directory-table td {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .directory-table th {
  background-color: rgba(60, 60, 60, 1);
  color: #ffffff;
}

/* === リンク === */
.directory-table a,
.support-entry a {
  color: var(--color-link);
  text-decoration: none;
}

.directory-table a:hover,
.support-entry a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

/* === モバイル対応 === */
@media screen and (max-width: 768px) {
  .support-title {
    font-size: 1.1rem;
  }
  .support-entry .name {
    font-size: 1rem;
  }
  .support-section,
  .disease-directory {
    padding: 0.5rem;
  }
  .support-block {
    padding: 1rem;
  }
  .directory-table {
    font-size: 0.9rem;
  }
  .directory-table th,
  .directory-table td {
    padding: 0.5em;
  }
}
