.content {
    padding: 30px;
    background-color: #fff;
}

.indicator-title {
    margin-bottom: 10px;
}

.chart-container {
    width: 100%;
    height: 700px;
    max-height: 1000px; /* 最大800pxで打ち止め */
}

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

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

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #4f46e5;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #4338ca;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    width: 75%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

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


.close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
}

.confirm {
    margin-top: 20px;
    width: 100%;
}

.scroll-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 8px; /* スクロールバーとテキストの重なり防止 */
}

.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.secondary {
    background-color: #e5e7eb;
    color: #111827;
    border: none;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.secondary:hover {
    background-color: #d1d5db;
}

@media screen and (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

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

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

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

  .indicator-title {
    white-space: nowrap;
    font-size: 1.2rem;
  }

  .chart-container {
    height: 80vh;  /* 高さを調整 */
  }

  .content {
    padding: 5px;  /* ← パディングを削除 */
  }
  .filter-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .filter-pair label {
    white-space: nowrap;
    min-width: 90px; /* 適宜調整 */
    font-weight: 600;
  }

  .filter-pair select {
    flex-grow: 1;
  }
}