@charset "UTF-8";

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "MS Pゴシック", "MS PGothic", "Meiryo", "メイリオ", sans-serif;
    background-color: #f0f2f5;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

/* 文字サイズ変更対応 */
body.size-small { font-size: 12px; }
body.size-medium { font-size: 14px; }
body.size-large { font-size: 16px; }

/* 高コントラストモード */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}
body.high-contrast .container {
    background-color: #000000 !important;
    border-color: #ffffff !important;
}
body.high-contrast header,
body.high-contrast nav,
body.high-contrast .box-title,
body.high-contrast .btn-banner {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
body.high-contrast a {
    color: #ffff00 !important;
}

/* 枠組み・レイアウト */
.container {
    width: 90%;
    margin: 0 auto;
    background-color: #ffffff;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* プレヘッダー */
.pre-header {
    background-color: #2b4b7c;
    color: #ffffff;
    padding: 4px 15px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-header a {
    color: #ffffff;
    text-decoration: none;
}

.pre-header a:hover {
    text-decoration: underline;
}

/* アクセシビリティ調整パネル */
.accessibility-panel {
    background-color: #e9ecef;
    border-bottom: 1px solid #ccc;
    padding: 8px 15px;
    font-size: 12px;
}

.style-hidden {
    display: none;
}

.accessibility-panel button {
    padding: 2px 8px;
    margin: 0 2px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #999;
}

.accessibility-panel button.btn-active {
    background-color: #2b4b7c;
    color: #fff;
    border-color: #1a365d;
    font-weight: bold;
}

/* ヘッダー */
header {
    padding: 15px 20px;
    border-bottom: 3px solid #1a365d;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f7fa 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.site-title h1 {
    margin: 0;
    font-size: 22px;
    color: #0f2b5c;
    letter-spacing: -0.5px;
}

.site-title p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #555555;
    font-family: Arial, sans-serif;
}

.clock-box {
    font-size: 12px;
    color: #444;
    background-color: #eef2f7;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
}

/* グローバルナビゲーション（2015年風グラデーション） */
nav {
    background: linear-gradient(to bottom, #336699 0%, #204060 100%);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #4d80b3;
    border-left: 1px solid #1a3048;
}

nav li:first-child { border-left: none; }
nav li:last-child { border-right: none; }

nav a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}

nav li:hover, nav li.active {
    background: linear-gradient(to bottom, #1d3957 0%, #112438 100%);
}

/* 緊急アラートバナー */
.alert-banner {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-left: 6px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 15px 0 15px;
    color: #856404;
    font-size: 13px;
}

.alert-banner .alert-icon {
    font-weight: bold;
    color: #d9534f;
}

/* メインレイアウト */
.main-content {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.primary {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* ボックスモジュール */
.box {
    border: 1px solid #b0c2de;
    margin-bottom: 15px;
    background: #ffffff;
}

.box-title {
    margin: 0;
    background: linear-gradient(to bottom, #e6edf5 0%, #d0dceb 100%);
    color: #0f2b5c;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #b0c2de;
}

.box-body {
    padding: 12px;
}

/* テーブルスタイル */
.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th, .status-table td {
    border: 1px solid #cccccc;
    padding: 7px 10px;
    font-size: 13px;
}

.status-table th {
    background-color: #f2f5f8;
    width: 35%;
    text-align: left;
    color: #333;
}

.status-none {
    color: #28a745;
    font-weight: bold;
}

.status-warning {
    color: #d9534f;
    font-weight: bold;
}

.update-info {
    text-align: right;
    font-size: 11px;
    color: #666666;
    margin-top: 8px;
}

.btn-sub {
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 5px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
}

/* 新着情報リスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #cccccc;
    font-size: 13px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list .date {
    color: #666666;
    font-size: 12px;
    margin-right: 8px;
    font-family: Arial, sans-serif;
}

.tag {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    color: #ffffff;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.tag-info { background-color: #0056b3; }
.tag-weather { background-color: #17a2b8; }
.tag-crime { background-color: #e0a800; color: #000; }

.news-list a {
    color: #0056b3;
    text-decoration: none;
}

.news-list a:hover {
    text-decoration: underline;
}

/* システム説明 */
.system-desc p {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

/* サイドバーバナーボタン */
.btn-banner {
    display: block;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f3f7 100%);
    border: 1px solid #b0c2de;
    padding: 10px 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #0f2b5c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-banner:hover {
    background: linear-gradient(to bottom, #f0f3f7 0%, #e2e8f0 100%);
}

.primary-banner {
    background: linear-gradient(to bottom, #fff8e6 0%, #ffeaa7 100%);
    border-color: #f39c12;
    color: #8a5300;
}

.banner-title {
    display: block;
    font-weight: bold;
    font-size: 13px;
}

.banner-sub {
    display: block;
    font-size: 10px;
    color: #666666;
    margin-top: 2px;
}

/* サイドバーリンク・お問い合わせ */
.side-links ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
}

.side-links li {
    margin-bottom: 6px;
}

.side-links a {
    color: #0056b3;
    text-decoration: none;
}

.side-links a:hover {
    text-decoration: underline;
}

.contact-box p {
    margin: 2px 0;
    font-size: 11px;
    color: #444;
}

/* フッター */
footer {
    background-color: #e6edf5;
    border-top: 2px solid #b0c2de;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #444444;
}

footer p {
    margin: 3px 0;
}

footer .copyright {
    margin-top: 8px;
    font-size: 10px;
    color: #777777;
    font-family: Arial, sans-serif;
}

.news-toggle {
    font-size: 12px;
    color: #0056b3;
    cursor:  copy;
    background-color: white;
    border: white;
}



/* スマホ用CSSテスト */
@media (max-width: 600px) {
    .container {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    header {
        display: block;
        padding: 12px;
    }

    .site-title h1 {
        font-size: 18px;
    }

    .clock-box {
        margin-top: 10px;
        display: inline-block;
    }

    .main-content {
        display: block;
        padding: 10px;
    }

    .sidebar {
        margin-top: 15px;
    }

    .alert-banner {
        margin: 10px 10px 0 10px;
    }

    .box-title {
        font-size: 14px;
    }

    .box-body {
        padding: 8px;
    }

    .news-list li {
        font-size: 13px;
    }

    .news-list .date {
        display: block;
        margin-bottom: 2px;
    }

    .news-toggle {
        display: block;
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }

    .status-table th,
    .status-table td {
        padding: 6px;
        font-size: 12px;
    }

    footer {
        padding: 12px 8px;
    }
}


/* レベル別表示バッジのCSS */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    margin: 2px 3px 2px 0;
    line-height: 1.4;
}

/* レベル5：特別警報（黒文字×紫背景 または 黒背景×紫文字） */
.level-5 {
    background-color: #6f42c1;
    color: #ffffff !important;
}

/* レベル3〜4：警報（赤色） */
.level-3-4 {
    background-color: #dc3545;
    color: #ffffff !important;
}

/* レベル2：注意報（黄色・黒文字で視認性確保） */
.level-2 {
    background-color: #ffc107;
    color: #212529 !important;
}

/* レベル1：発表なし・平常（緑色） */
.level-none {
    color: #28a745;
    font-weight: bold;
}