/* フロントエンド用スタイル */
.notice-message-container {
    position: fixed;
    bottom: 20px;
    right: -600px;
    z-index: 9999;
    max-width: 600px;
    transition: right 0.8s ease-out;
}

.notice-message-container.show {
    right: 0;
}

.notice-message-banner {
    display: flex;
    background: #ff8c42;
    padding: 8px 0 8px 16px;
    border-radius: 50px 0 0 50px;
    margin-bottom: 10px;
    position: relative;
}

.notice-message-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.notice-message-label::before {
    content: 'お知らせ';
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
}

.notice-message-label::after {
    content: 'Information';
    font-size: 11.2px;
    color: #ff8c42;
    background: #ffffff;
    border-radius: 24px;
    padding: 2px 4px;
    line-height: 1;
    margin-top: 2px;
}

.notice-message-content {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    padding: 8px 16px 8px 8px;
    border-radius: 4px 0 0 4px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.notice-message-content a {
    text-decoration: underline;
    color: #0066cc;
}

.notice-message-date {
    font-size: 12px;
    color: #555555;
    display: block;
    margin-bottom: 4px;
}

.notice-message-text {
    color: #333333;
    font-weight: 400;
}

.notice-message-close {
    position: absolute;
    bottom: -8px;
    right: 4px;
    background: transparent;
    border: none;
    width: 24px;
    height: 24.5px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.notice-message-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24.5px;
    background-image: url(../img/home-popup-close-btn.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.notice-message-close:hover {
    transform: rotate3d(0, 0, 1, 360deg);
    z-index: 1;
}

/* 閉じるアニメーション */
.notice-message-banner.closing {
    animation: slideOutToRight 0.5s ease-in forwards;
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(650px);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 639px) {
    .notice-message-container {
        bottom: 20px;
        right: -100%;
        max-width: calc(100% - 20px);
    }
    
    .notice-message-container.show {
        right: 0;
    }
    
    .notice-message-banner {
        padding: 6px 0 6px 12px;
        border-radius: 40px 0 0 40px;
    }
    
    .notice-message-label::before {
        font-size: 13px;
    }
    
    .notice-message-label::after {
        font-size: 10px;
    }
    
    .notice-message-content {
        padding: 6px 12px 6px 6px;
        font-size: 13px;
    }
    
    .notice-message-date {
        font-size: 11px;
    }
    
    .notice-message-close {
        width: 20px;
        height: 20px;
        font-size: 18px;
        bottom: -6px;
    }
}
