
.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: 600px;
    max-height: 900px;
}

.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: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 16px;
}

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

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

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

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

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.checkbox-group-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-right: 4px;
}

.indicator-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    transition: background 0.2s, border-color 0.2s;
}

.indicator-checkbox-label:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.indicator-checkbox-label input[type=checkbox] {
    cursor: pointer;
}

.badge-provisional {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
    display: inline-block;
}

.badge-confirmed {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #d1e7dd;
    color: #0f5132;
    font-weight: 600;
    display: inline-block;
}

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

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

.table-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.table-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.compact-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    min-width: 150px;
    transition: border-color 0.2s;
}

.compact-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.compact-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #3498db;
    position: sticky;
    top: 0;
    z-index: 10;
}

.compact-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.compact-table tr:hover {
    background: #f8f9fa;
}

.compact-table tr:nth-child(even) {
    background: #fafafa;
}

.compact-table tr:nth-child(even):hover {
    background: #f0f8ff;
}

.date-col       { width: 12%; }
.indicator-col  { width: 40%; }
.value-col      { width: 18%; text-align: right; }
.unit-col       { width: 12%; }
.status-col     { width: 18%; text-align: center; }

.date-cell      { font-weight: 500; }
.indicator-cell { color: #2c3e50; font-weight: 500; }
.value-cell     { font-weight: 600; color: #2c3e50; text-align: right; }
.unit-cell      { color: #888; font-size: 13px; }
.status-cell    { text-align: center; }

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

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

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

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

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

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

    .chart-container {
        height: 60vh;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-select {
        min-width: auto;
        width: 100%;
    }
}

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

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

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

    .chart-container {
        height: 50vh;
    }

    .compact-table {
        font-size: 12px;
    }

    .compact-table th,
    .compact-table td {
        padding: 8px 6px;
    }
}
