*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Noto Sans JP', Arial, sans-serif;
    background: #181a20;
    margin: 0;
    padding: 20px;
    color: #e0e0e0;
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    letter-spacing: 0.04em;
}

.section {
    width: 100%;
    margin: 30px auto;
    background: #232634;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    padding: 30px 20px;
    max-width: 800px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: #90caf9;
    font-size: clamp(18px, 4vw, 24px);
    letter-spacing: 0.03em;
}

.status-table,
.cache-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    background: #232634;
    font-size: clamp(14px, 4vw, 18px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.status-table th,
.status-table td,
.cache-table th,
.cache-table td {
    border: none;
    padding: 12px 15px;
    text-align: left;
}

.status-table th {
    background: #263238;
    color: #90caf9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(12px, 4vw, 16px);
    border-bottom: 1px solid #424242;
}

.status-table td {
    background: #232634;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.cache-table th {
    background: #263238;
    color: #90caf9;
    font-size: clamp(12px, 4vw, 16px);
    border-bottom: 1px solid #424242;
}

.cache-table td {
    color: #e0e0e0;
    background: #232634;
    border-bottom: 1px solid #333;
}

.status-ok {
    color: #66bb6a;
    font-weight: bold;
}

.status-down {
    color: #ef5350;
    font-weight: bold;
}

.status-latency {
    color: #ffd54f;
    font-weight: bold;
}

.button {
    background: linear-gradient(90deg, #1976d2 60%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 0;
    font-size: clamp(16px, 4vw, 20px);
    cursor: pointer;
    margin: 20px 0 15px 0;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.08);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.button:hover {
    background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
}

.status-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    text-align: center;
    min-height: 20px;
}

.status-message.status-ok {
    background: rgba(102, 187, 106, 0.1);
    border: 1px solid #66bb6a;
    color: #66bb6a;
}

.status-message.status-down {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid #ef5350;
    color: #ef5350;
}

.status-message.status-latency {
    background: rgba(255, 213, 79, 0.1);
    border: 1px solid #ffd54f;
    color: #ffd54f;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .section {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .status-table th,
    .status-table td,
    .cache-table th,
    .cache-table td {
        padding: 8px 10px;
        font-size: 14px;
    }

    .button {
        padding: 12px 0;
        margin: 15px 0 10px 0;
    }
}

@media (min-width: 1200px) {
    body {
        padding: 40px 30px;
    }

    .section {
        padding: 40px 30px;
        margin: 40px auto;
    }

    .status-table,
    .cache-table {
        font-size: 16px;
    }

    .status-table th,
    .status-table td,
    .cache-table th,
    .cache-table td {
        padding: 15px 20px;
    }
}