/* --- General Styles & Variables --- */
:root {
    --bg-dark: #1a1a1a;
    --bg-light: #2b2b2b;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-blue: #4a90e2;
    --accent-yellow: #f5a623;
    --border-color: #444;
    --font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #87b7ff;
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 700;
}

/* --- Header & Footer --- */
.site-header, .site-footer {
    background-color: var(--bg-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container, .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-nav {
    display: flex;
    gap: 15px;
}

/* --- Table Styles --- */
.table-container {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th, .responsive-table td {
    padding: 12px 15px;
    text-align: left;
    word-break: break-word;
}

.responsive-table thead {
    background-color: #333;
}

.responsive-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.responsive-table tbody tr:last-child {
    border-bottom: none;
}

.responsive-table tbody tr:hover {
    background-color: #383838;
}

.squawk-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    color: #111;
    white-space: nowrap;
}

.squawk-7700 { background-color: #d0021b; } /* Red */
.squawk-7600 { background-color: var(--accent-blue); } /* Blue */
.squawk-7500 { background-color: var(--accent-yellow); } /* Yellow */

/* --- Responsive Table for Mobile --- */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .responsive-table td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        color: var(--text-secondary);
        padding-right: 10px;
        flex-shrink: 0;
        flex-basis: 30%;
    }

    .data-wrapper {
        flex-grow: 1; /* 残りのスペースをすべて占有 */
        min-width: 0; /* flexアイテムの最小幅を0に設定 */
        word-break: break-word; /* 長い単語を改行させる */
        text-align: right; /* テキストを右寄せに */
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

/* --- Other Sections --- */
.hero {
    text-align: center;
    padding: 60px 0;
}

.latest-incidents h2, .blog-post h2 {
    text-align: center;
    margin-bottom: 30px;
}

.view-all-link {
    text-align: center;
    margin-top: 30px;
}

.button {
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
}

.blog-post {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}