.notification-modal {
    position: fixed;
    bottom: 2.0rem;
    left: 3.0rem;
    width: 18rem;
    max-height: 20rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom left;
}

/* 吹き出しの矢印 */
.notification-modal::before {
    content: '';
    position: absolute;
    bottom: 0.8rem;
    left: -0.5rem;
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-right: 0.5rem solid #ffffff;
}

.notification-modal::after {
    content: '';
    position: absolute;
    bottom: 0.8rem;
    left: -0.6rem;
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-right: 0.5rem solid #ffffff;
}

footer.has-ads ~ .notification-modal {
    bottom: calc(2.0rem + 60px);
}

.notification-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notification-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    background-color: #f9fafb;
    border-radius: 0.75rem 0.75rem 0 0;
}

.notification-modal-header h3 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.notification-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: none;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.notification-modal-close:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

.notification-modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: 10rem;
}

.notification-list {
    padding: 0.5rem 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1.0rem;
    /* gap: 0.6rem; */
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    margin-left: 1.0em;
    margin-top: 0.5em;
}

.notification-message {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    white-space: pre-line;
}

.notification-actions {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.notification-btn {
    padding: 0.4rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    background-color: #ffffff;
    color: #6b7280;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.notification-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.notification-btn-like:hover {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.notification-btn-previous:hover {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.notification-time {
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: right;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
}

.notification-empty-icon {
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 0.8rem;
}

/* スクロールバーのスタイリング */
.notification-modal-body::-webkit-scrollbar {
    width: 0.25rem;
}

.notification-modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 0.125rem;
}

.notification-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 0.125rem;
}

.notification-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
} 