.notice-float-trigger {
    position: fixed;
    right: 24px;
    bottom: 40px;
    z-index: 9900;
    width: 100px;
    height: 100px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: 0 8px 24px rgba(180, 20, 20, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    touch-action: manipulation;
    animation: notice-float-in 600ms ease-out;
    transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
}

.notice-float-trigger:hover {
    box-shadow: 0 14px 34px rgba(180, 20, 20, 0.4), 0 4px 10px rgba(0, 0, 0, 0.18);
    filter: brightness(1.04);
    transform: scale(1.06);
}

.notice-float-trigger:active {
    transform: scale(0.97);
}

.notice-float-trigger::after {
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(190, 30, 30, 0.35);
    border-radius: 26px;
    content: "";
    pointer-events: none;
    animation: notice-breathe 2.4s ease-in-out infinite;
}

.notice-float-trigger__image {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    pointer-events: none;
}

.notice-float-trigger:focus-visible,
.notice-modal__close:focus-visible,
.notice-modal__image-link:focus-visible {
    outline: 3px solid #ffcf33;
    outline-offset: 3px;
}

.notice-modal[hidden] {
    display: none;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 180ms ease;
}

.notice-modal.is-open {
    opacity: 1;
}

.notice-modal__dialog {
    display: flex;
    flex-direction: column;
    width: min(860px, 100%);
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(12px);
    transition: transform 180ms ease;
}

.notice-modal.is-open .notice-modal__dialog {
    transform: translateY(0);
}

.notice-modal__header {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 56px;
    padding: 0 8px 0 20px;
    border-bottom: 1px solid #e5e7eb;
}

.notice-modal__title {
    margin: 0;
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
}

.notice-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #333333;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    touch-action: manipulation;
    transition: background-color 160ms ease, color 160ms ease;
}

.notice-modal__close:hover {
    background: #f1f3f4;
    color: #cf0a0a;
}

.notice-modal__body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    overflow: auto;
    padding: 16px;
    background: #f3f4f6;
    overscroll-behavior: contain;
}

.notice-modal__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 120px);
}

.notice-modal__image-link[hidden] {
    display: none;
}

.notice-modal__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.notice-modal__status {
    color: #4b5563;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.5;
}

.notice-modal__status[hidden] {
    display: none;
}

.notice-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .notice-float-trigger {
        right: 16px;
        bottom: 20px;
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .notice-float-trigger::after {
        inset: -5px;
        border-radius: 21px;
    }

    .notice-float-trigger__image {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .notice-modal {
        padding: 8px;
    }

    .notice-modal__dialog {
        max-height: calc(100vh - 16px);
    }

    .notice-modal__header {
        padding-left: 16px;
    }

    .notice-modal__body {
        padding: 8px;
    }

    .notice-modal__image-link,
    .notice-modal__image {
        max-height: calc(100vh - 88px);
    }
}

@keyframes notice-float-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notice-breathe {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-float-trigger,
    .notice-modal,
    .notice-modal__dialog,
    .notice-modal__close {
        animation: none;
        transition: none;
    }

    .notice-float-trigger::after {
        animation: none;
        opacity: 0.3;
    }
}
