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

.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;
}

.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;
}

.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;
}

/* グラフの見方ボックス */
.chart-guide-box {
    background: #f0f7ff;
    border: 1px solid #b3d4f5;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: 0.9em;
    color: #444;
}

.chart-guide-box .chart-guide-label {
    font-weight: 600;
    color: #2c7be5;
    display: block;
    margin-bottom: 6px;
}

.chart-guide-box ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
}

.filter-guide-text {
    color: #888;
    font-size: 0.85em;
    margin: -8px 0 12px;
}

.prefecture-col, .prefecture-cell {
    width: 15%;
    min-width: 100px;
}

.city-col, .city-cell {
    width: 15%;
    min-width: 120px;
}

.municipality-col, .municipality-cell {
    width: 15%;
    min-width: 120px;
}

.year-cell, .date-cell {
    font-weight: 500;
    color: #495057;
}

.prefecture-cell, .city-cell, .municipality-cell {
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.value-na {
    color: #6c757d;
    font-style: italic;
}

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

  .filter-container {
    flex-direction: column;
      align-items: center;
    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%;
  }

}
