/* News Page Styles */

/* Page Title Glitch Effect - News用の画像に上書き */
.page-title::before,
.page-title::after {
    background-image: url('../img/common/footer_menu03.svg?v=20251030');
}

/* News Filter */
.news-filter {
    padding: 0;
    background-color: rgba(10, 10, 10, 0.5);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.filter-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-orange);
    color: white;
}

/* News Grid */
.news-section {
    padding: 80px 0;
}

.news-section .container {
    border: 1px solid #909090;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.3);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background-color: transparent;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.3);
}

.news-card-image {
    width: 100%;
    height: 250px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.news-card-category {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    align-self: flex-start;
    flex-shrink: 0;
}

.news-card-title {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-card-link {
    color: var(--primary-orange);
    font-weight: normal;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    align-self: flex-end;
    margin-top: auto;
    pointer-events: none;
}

.news-card:hover .news-card-link {
    gap: 12px;
}

.news-card-link svg {
    flex-shrink: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.pagination-btn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-orange);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    border-color: #666666;
    cursor: not-allowed;
}

/* Next button arrow (>) */
#nextPage::before,
#nextPage::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: var(--primary-orange);
    transition: background-color 0.3s ease;
}

#nextPage::before {
    transform: rotate(45deg);
    top: calc(50% - 3px);
    left: calc(50% - 2px);
}

#nextPage::after {
    transform: rotate(-45deg);
    top: calc(50% + 1px);
    left: calc(50% - 2px);
}

#nextPage:hover:not(:disabled)::before,
#nextPage:hover:not(:disabled)::after {
    background-color: #000000;
}

#nextPage:disabled::before,
#nextPage:disabled::after {
    background-color: #666666;
}

/* Prev button arrow (<) */
#prevPage::before,
#prevPage::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: var(--primary-orange);
    transition: background-color 0.3s ease;
}

#prevPage::before {
    transform: rotate(-45deg);
    top: calc(50% - 3px);
    left: calc(50% - 5px);
}

#prevPage::after {
    transform: rotate(45deg);
    top: calc(50% + 1px);
    left: calc(50% - 5px);
}

#prevPage:hover:not(:disabled)::before,
#prevPage:hover:not(:disabled)::after {
    background-color: #000000;
}

#prevPage:disabled::before,
#prevPage:disabled::after {
    background-color: #666666;
}

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

.page-number {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--text-white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background-color: rgba(255, 69, 0, 0.1);
}

.page-number.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.page-ellipsis,
.pagination-dots {
    color: var(--text-white);
    font-size: 14px;
    font-weight: bold;
    padding: 0 5px;
}

/* Contact CTA */
.contact-cta {
    padding: 60px 0;
    text-align: center;
}

.btn-large {
    font-size: 18px;
    padding: 30px 80px;
    line-height: 1.8;
}

.btn-large span {
    font-size: 14px;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 1rem;
    }

    .news-section .container {
        background-color: #000;
        padding: 1rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 5px 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 200px;
    }

    .news-card-content {
        padding: 20px;
    }

    .pagination-numbers {
        gap: 5px;
    }

    .page-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .pagination-btn {
        width: 40px;
        height: 40px;
        margin: 0 -0.5rem;
    }

    .btn-large {
        font-size: 16px;
        padding: 20px 40px;
    }
}
