@charset "UTF-8";

/* 防災情報ウィジェット全体のコンテナ */
.bousai-widget {
    max-width: 1000px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    color: #333333;
    line-height: 1.6;
}

/* 見出し */
.bousai-widget h2 {
    font-size: 1.25rem;
    border-bottom: 2px solid #6f3a94;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    color: #6f3a94;
}

/* リスト本体 */
.bousai-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各項目のカード風デザイン */
.bousai-item {
    display: flex;
    flex-direction: column;
    padding: 1.0rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-left: 4px solid #6f3a94;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ヘッダー部分（デフォルト：モバイル・狭い画面向け：タイトル上、日時下） */
.bousai-header {
    display: flex;
    flex-direction: column; /* 縦方向：タイトルが上、日時が下 */
    margin-bottom: 1.0rem;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 0.5rem;
}

.bousai-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #111111;
    order: 1; /* タイトルを上に配置 */
}

.bousai-date {
    font-size: 0.85rem;
    color: #555555;
    font-weight: 500;
    margin-top: 0.2rem;
    order: 2; /* 日時を下に配置 */
}

/* 本文部分 */
.bousai-text {
    font-size: 0.95rem;
    color: #333333;
    white-space: pre-line;
    word-break: break-all;
}

/* ローディング・エラー表示 */
.bousai-message {
    padding: 1rem;
    text-align: center;
    color: #666666;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.bousai-error {
    color: #b91c1c;
    background-color: #fef2f2;
    border-color: #fecaca;
}

/* 画面幅が広い場合のレイアウト（PCなど：タイトル左、日時右） */
@media (min-width: 600px) {
    /* 各項目のカード風デザイン */
    .bousai-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .bousai-header {
        flex-direction: row; /* 横方向 */
        justify-content: space-between;
        align-items: center;
    }
    .bousai-title {
        order: 1; /* タイトルを左に */
        margin-top: 0;
    }
    .bousai-date {
        order: 2; /* 日時を右に */
        margin-top: 0;
        flex-shrink: 0;
        text-align: right;
    }
}