
/* ==================================================
   木津町区HP 共通お知らせポップアップ
   ファイル名：notice.css
================================================== */

/* 背景全体 */
#noticePopup {
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.72);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px;
    box-sizing: border-box;
}

/* 非表示 */
#noticePopup[hidden] {
    display: none;
}

/* ポップアップ本体 */
.notice-box {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;

    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

/* タイトル */
.notice-title {
    background: #b90000;
    color: #fff;
    text-align: center;
    font-size: 25px;
    font-weight: bold;

    padding: 13px 45px 13px 10px;
    margin: 0;
}

/* 閉じるボタン */
.notice-close {
    position: absolute;
    top: 7px;
    right: 9px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #fff;
    color: #b90000;

    font-size: 27px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

/* お知らせ画像 */
.notice-image {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    background: #eaf4ff;
    display: block;
}

/* 本文 */
.notice-content {
    padding: 15px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;

    color: #222;
    font-size: 17px;
    line-height: 1.75;
}

/* カテゴリー */
.notice-category {
    color: #b90000;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 本文の見出し */
.notice-content h3 {
    color: #b90000;
    font-size: 21px;
    margin: 12px 0 8px;
}

/* 本文の強調枠 */
.notice-content .notice-quote {
    background: #fff3df;
    border-left: 5px solid #ed8500;
    padding: 12px;
    margin: 12px 0;
    font-weight: bold;
}

/* 最後の強調メッセージ */
.notice-warning {
    background: #b90000;
    color: #fff;
    text-align: center;
    font-size: 23px;
    font-weight: bold;

    padding: 12px 8px;
    margin-top: 15px;
    border-radius: 7px;
}

/* 出典 */
.notice-footer {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* ==================================================
   タブレット対応
================================================== */
@media only screen and (max-width: 960px) {

    .notice-box {
        width: 95%;
        max-width: 650px;
        max-height: 94vh;
    }

    .notice-title {
        font-size: 23px;
    }

    .notice-image {
        max-height: 190px;
    }

    .notice-content {
        padding: 14px 18px;
        font-size: 17px;
    }

    .notice-warning {
        font-size: 22px;
    }
}

/* ==================================================
   スマートフォン対応
================================================== */
@media only screen and (max-width: 460px) {

    .notice-box {
        width: 100%;
        max-height: 94vh;
        border-radius: 10px;
    }

    .notice-title {
        font-size: 20px;
        padding: 12px 42px 12px 8px;
    }

    .notice-image {
        max-height: 155px;
    }

    .notice-content {
        padding: 12px 14px;
        font-size: 16px;
        line-height: 1.7;
    }

    .notice-content h3 {
        font-size: 19px;
    }

    .notice-warning {
        font-size: 20px;
    }
}
