.news-page {
    padding-top: 140px;
    background: #f7f9fc;
    min-height: 100vh;
}

.news-hero {
    text-align: center;
    padding: 60px 20px 30px;
}

.news-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.news-hero-lead {
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.8;
    color: #475569;
}

.news-section.news-archive {
    padding: 0 0 60px;
    background: transparent;
}

.news-section.news-archive:last-child {
    padding-bottom: 100px;
}

.news-section.news-archive .news-column {
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
    padding: 32px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.news-section.news-archive .news-column-title {
    text-align: left;
    font-size: 24px;
}

/* カテゴリー別のタイトル色 */
.news-section.news-archive[data-news-category="sales"] .news-column-title {
    color: #1d4ed8;
}

.news-section.news-archive[data-news-category="finance"] .news-column-title {
    color: #065f46;
}

.news-section.news-archive[data-news-category="salary"] .news-column-title {
    color: #c2410c;
}

.news-list {
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

.news-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: visible;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f8fafc;
}

.news-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.news-item-date {
    font-weight: 600;
    color: #4a5568;
    min-width: 90px;
    flex-shrink: 0;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px;
}

.news-item-title {
    color: #2d3748;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
    flex-shrink: 0;
    min-width: 400px;
    white-space: nowrap;
}

.news-item-title:hover {
    color: #1a202c;
}

.news-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.news-item-summary {
    margin: 0;
    color: #4a5568;
    line-height: 1.4;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: help;
    white-space: normal;
}

.news-item-summary:hover::after {
    content: attr(data-tooltip);
    position: fixed;
    left: var(--tooltip-left, 50%);
    transform: translateX(-50%);
    padding: 10px 14px;
    background-color: #1a202c;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    width: 320px;
    max-width: calc(100vw - 40px);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    pointer-events: none;
    word-wrap: break-word;
    text-align: left;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.news-item-summary:hover::after {
    top: var(--tooltip-top, auto);
}

.news-item-summary:hover::before {
    content: '';
    position: fixed;
    left: var(--tooltip-left, 50%);
    transform: translateX(-50%);
    border: 7px solid transparent;
    z-index: 10001;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.news-item-summary[style*="--tooltip-arrow: top"]:hover::after {
    bottom: calc(100vh - var(--arrow-top, 0px) + 7px + 10px);
    top: auto;
}

.news-item-summary[style*="--tooltip-arrow: top"]:hover::before {
    top: calc(var(--arrow-top, 0px) - 7px);
    border-top-color: #1a202c;
    border-bottom: none;
}

.news-item-summary[style*="--tooltip-arrow: bottom"]:hover::after {
    top: calc(var(--arrow-top, 0px) + 7px + 15px);
}

.news-item-summary[style*="--tooltip-arrow: bottom"]:hover::before {
    top: calc(var(--arrow-top, 0px) + 7px);
    border-bottom-color: #1a202c;
    border-top: none;
}

.news-item-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.news-item-category {
    background: #eef2ff;
    color: #4c1d95;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.news-item-category--finance {
    background: #ecfdf5;
    color: #065f46;
}

.news-item-category--sales {
    background: #eff6ff;
    color: #1d4ed8;
}

.news-item-category--salary {
    background: #fff7ed;
    color: #c2410c;
}

.news-empty {
    padding: 32px 0;
    color: #94a3b8;
}

.news-load-more {
    display: block;
    width: 100%;
    margin: 24px auto 0;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 2px solid #1d4ed8;
    border-radius: 6px;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.news-load-more:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.news-load-more:active {
    transform: translateY(1px);
}

/* カテゴリー別のボタン色 */
.news-section.news-archive[data-news-category="sales"] .news-load-more {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.news-section.news-archive[data-news-category="sales"] .news-load-more:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.news-section.news-archive[data-news-category="finance"] .news-load-more {
    border-color: #065f46;
    color: #065f46;
}

.news-section.news-archive[data-news-category="finance"] .news-load-more:hover {
    background-color: #065f46;
    color: #ffffff;
}

.news-section.news-archive[data-news-category="salary"] .news-load-more {
    border-color: #c2410c;
    color: #c2410c;
}

.news-section.news-archive[data-news-category="salary"] .news-load-more:hover {
    background-color: #c2410c;
    color: #ffffff;
}

@media (max-width: 768px) {
    .news-page {
        padding-top: 120px;
    }

    .news-section.news-archive .news-column {
        padding: 24px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-item-date {
        min-width: auto;
        font-size: 12px;
    }

    .news-item-title {
        min-width: auto;
        font-size: 13px;
    }

    .news-item-summary {
        font-size: 12px;
        width: 100%;
    }

    .news-load-more {
        padding: 10px 20px;
        font-size: 13px;
    }

    .news-item-summary:hover::after {
        width: calc(100vw - 60px);
        max-width: 320px;
        font-size: 11px;
        padding: 8px 12px;
    }
}


