/* MDUC お知らせティッカー CSS */

.news-ticker {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #E0E0E0;
    border-radius: 0 0 0 20px;
    border-top: none;
    border-right: none;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-ticker:hover {
    background: rgba(255, 248, 240, 0.98);
    border-color: #F39800;
    transform: translateY(2px);
}

.ticker-icon {
    font-size: 16px;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.ticker-text {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    color: #333333;
    font-weight: 500;
    line-height: 24px;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-text:hover {
    animation-play-state: paused;
}

/* レスポンシブ対応 */
@media (max-width: 1023px) {
    .news-ticker {
        width: 320px;
    }
    
    .ticker-text {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .news-ticker {
        width: 280px;
    }
    
    .ticker-text {
        font-size: 12px;
    }
}

/* モーダルスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #E0E0E0;
}

.modal-title {
    margin: 0;
    color: #333333;
    font-size: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #F5F5F5;
    color: #333333;
}

.modal-body {
    padding: 24px;
}

.news-detail {
    font-family: 'Noto Sans JP', sans-serif;
}

.news-meta {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-date {
    color: #666666;
    font-size: 12px;
    background: #F5F5F5;
    padding: 4px 8px;
    border-radius: 4px;
}

.news-category {
    background: #F39800;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.news-detail-title {
    color: #333333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.news-detail-content {
    color: #666666;
    line-height: 1.6;
}

.news-detail-content p {
    margin-bottom: 16px;
}