
.content {
  padding: 30px;
    background-color: #fafafa;
    min-height: calc(100vh - 200px);
}

/* 指標説明セクション */
.indicator-explanation {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.indicator-title {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.explanation-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 25px;
}

.explanation-summary p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

.explanation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
}

.detail-item h3 {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.detail-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* チャートセクション */
.chart-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.chart-container {
    width: 100%;
    height: 700px;
    max-height: 1000px;
}

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

#apply-filter {
    max-width: 200px;
}

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

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

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

/* データ活用ガイド */
.usage-guide {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.usage-guide h2 {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.guide-item:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
}

.guide-item h3 {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.guide-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 関連指標リンク */
.related-indicators {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-indicators h2 {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.indicator-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.indicator-link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.indicator-link:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
}

.link-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.link-desc {
    display: block;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.notation {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
}

.notation p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

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

@media screen and (max-width: 768px) {
    .content {
        padding: 15px;
    }

    .indicator-explanation,
    .chart-section,
    .usage-guide,
    .related-indicators {
        padding: 20px;
        margin-bottom: 20px;
    }

    .indicator-title {
        font-size: 1.4em;
    }

    .explanation-details,
    .guide-grid,
    .indicator-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

  .chart-container {
      height: 80vh;
  }
}

@media screen and (max-width: 480px) {
  .content {
      padding: 10px;
  }

    .indicator-explanation,
    .usage-guide,
    .chart-section,
    .related-indicators {
        padding: 15px;
    }

    .indicator-title {
        font-size: 1.2em;
  }

    .explanation-summary {
        padding: 15px;
  }

    .detail-item,
    .guide-item {
        padding: 15px;
  }

    .chart-container {
        height: 50vh;
  }
}
