/* チャートセクション */

.filter-container {
    display: flex;
    justify-content: flex-start;
    gap:20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-container label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gender-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gender-filter > label:first-child {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gender-filter label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.filter-container input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9fcff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.filter-container input[type="date"]:focus {
    outline: none;
    border-color: #4a90e2;
}

.filter-container button {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-container button:hover {
    background-color: #357ab8;
}

/* 市区町村ラベルとセレクトを横並びに */
#municipal-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pair {
  display: flex;
  align-items: center;
  gap: 8px;          /* ラベルとセレクト/ボタンの間 */
  flex-wrap: nowrap; /* 改行しない */
}

/* 関連指標リンク */

.select-highlight {
    background-color: #f9fcff;
    border: 1px solid #bbb;
    padding: 6px;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.select-highlight:hover,
.select-highlight:focus {
    border-color: #4a90e2;
}

/* 列幅の設定 */
.nation-col { width: 10%; }
.prefecture-col { width: 10%; }
.designated-col { width: 20%; }
.municipality-col { width: 10%; }
.gender-col { width: 10%; }
.age-col { width: 20%; }

/* テーブル内のセルスタイル */
.nation-cell { font-weight: 500; }
.date-cell { font-weight: 500; }
.prefectures-cell { color: #2c3e50; font-weight: 500; }
.designated--cell { color: #1976d2; font-weight: 500; }
.municipality-cell { color: #666; }
.gender-cell { color: #666; }
.age-cell { color: #666; }

@media screen and (max-width: 768px) {

  .filter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  .date-range-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .select-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .select-wrapper label {
    margin-top: 8px;
  }

  .select-wrapper select {
    width: 100%;
  }

}