/* ========================================
   NEWS PAGE STYLES
   ======================================== */

/* Light Section Background */
.light-section {
    background: #ffffff;
    padding: 80px 0;
}

/* Container - Only apply to news page content sections, not header */
.news-hero .container,
.news-listing .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.news-hero {
    background: linear-gradient(135deg, #1a2b4a 0%, #2c3e50 50%, #1a2b4a 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(74, 124, 158, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 124, 158, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

/* ========================================
   NEWS TABLE
   ======================================== */
.news-listing {
    min-height: 60vh;
}

.news-table-wrapper {
    background: #ffffff;
    padding: 40px;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
}

.news-table tbody tr {
    border-bottom: 1px solid #000;
}

.news-table tbody tr:last-child {
    border-bottom: none;
}

.news-table tbody th {
    padding: 20px 16px;
    border-bottom: 2px solid #000;
    text-align: left;
    font-weight: normal;
}

.news-table tbody td {
    padding: 20px 16px;
}

.news-table tbody .news-table-date time {
    font-size: 0.95rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.news-table tbody .news-table-title a {
    color: #1a2b4a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
}

.news-table tbody .news-table-title a:hover {
    color: #4a7c9e;
}

/* ========================================
   NO NEWS MESSAGE
   ======================================== */
.no-news-message {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.no-news-message p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(74, 124, 158, 0.2);
    border-radius: 8px;
    color: #1a2b4a;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pagination-btn:hover:not(.disabled) {
    background: #4a7c9e;
    color: white;
    border-color: #4a7c9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 124, 158, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(74, 124, 158, 0.2);
    border-radius: 8px;
    color: #1a2b4a;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pagination-number:hover:not(.active) {
    background: rgba(74, 124, 158, 0.1);
    border-color: #4a7c9e;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #4a7c9e, #6ba3c8);
    color: white;
    border-color: #4a7c9e;
    box-shadow: 0 6px 16px rgba(74, 124, 158, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .news-table-wrapper {
        padding: 24px;
    }

    .news-table-date {
        width: 90px;
        padding-right: 20px;
    }

    .news-table tbody th {
        padding: 16px 12px;
    }

    .news-table tbody td {
        padding: 16px 12px;
    }

    .news-table tbody .news-table-date time {
        font-size: 0.9rem;
    }

    .news-table tbody .news-table-title a {
        font-size: 0.95rem;
    }

    .light-section {
        padding: 60px 0;
    }

    .pagination {
        margin-top: 40px;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .news-hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .news-table-wrapper {
        padding: 20px;
    }

    /* モバイルでは縦並びに */
    .news-table thead {
        display: none;
    }

    .news-table tbody tr {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid #000;
    }

    .news-table tbody tr:last-child {
        border-bottom: none;
    }

    .news-table tbody td {
        display: block;
        padding: 0;
    }

    .news-table tbody th {
        padding: 12px;
    }

    .news-table tbody td {
        padding: 12px;
    }

    .news-table tbody .news-table-date {
        margin-bottom: 8px;
    }

    .news-table tbody .news-table-date time {
        font-size: 0.85rem;
    }

    .news-table tbody .news-table-title a {
        font-size: 0.9rem;
    }

    .light-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* ページ番号が多い場合は一部を隠す */
    .pagination-numbers {
        max-width: 200px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
