@import url('Common.css');
@import url('Spinner.css');

body {
    font-family: "Segoe UI", "Hiragino Sans", sans-serif;
    background: #f9f9fa;
    margin: 0;
    padding: 0;
    color: #222;
}
.dashboard-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(17,24,39,0.1);
}
h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-align: center;
}
.graphs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 32px;
}
.graph-card {
    background: #fcfcfc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(17,24,39,0.07);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.graph-card h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}
.small-tabs {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}
button {
    min-width: auto; /*Common.css で指定されているのを上書き */
}
.tab-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #364a6e;
    transition: background 0.15s;
}
.tab-btn.active {
    background: #342294;
    color: #fff;
    font-weight: bold;
}
@media (max-width: 900px) {
    .graphs-grid {
    grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .dashboard-container {
    padding: 10px;
    }
    h1 {
    font-size: 1.2rem;
    }
}
