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

.filter-container {
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: "Noto Sans JP", sans-serif;
}

#industryclassForm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 16px; /* 行間・列間 */
}

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

/* 関連指標リンク */

.date-range-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f4ff; /* 薄い青で強調 */
    border-radius: 8px;
}

.date-range-group label {
    font-weight: bold;
    color: #333;
    margin-right: 6px;
}

.date-range-group select,
.date-range-group button {
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
}

.date-range-group span {
    font-weight: bold;
    margin: 0 6px;
}

/* 年月セレクトボックスをまとめる */
.date-select-block {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* セレクトが注目されやすいように枠や背景強調 */
.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;
}

/* ラベル補足説明 */
.note {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}

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

}

/* 列幅の設定 */
.date-col     { width: 15%; }
.sector-col   { width: 35%; }
.judgment-col { width: 35%; }

/* テーブル内のセルスタイル */
.date-cell { font-weight: 500; }
.sector-cell { color: #2c3e50; font-weight: 500; }
.judgment-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    line-height: 1.4;
}

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

    .compact-table th,

    /* モバイルでは列幅を調整 */
    .date-col { width: 25%; }
    .index-col { width: 25%; }
    .type-col { width: 25%; }
}
