/* ニュースページ専用スタイル */

/* =====================================
   メインコンテンツ
===================================== */
.main {
    padding-top: 80px;
}

/* ページヒーロー */
.news-hero {
    position: relative;
    height: 400px; /* 適切な高さを指定 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* =====================================
   ニュース一覧
===================================== */
.news-list {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8fbff, #ffffff);
}

/* フィルターボタン */
.news-filter {
    margin-bottom: 60px;
    text-align: center;
}

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

.filter-btn {
    background: #ffffff;
    border: 2px solid var(--accent-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ニュース記事 */
.news-articles {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

.news-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f4f8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-item.featured {
    border: 2px solid var(--accent-orange, #ff8a00);
    grid-template-columns: 1fr;
    grid-template-rows: 250px 1fr;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-item:not(.featured) .news-image {
    height: 200px;
}

.news-item.featured .news-image {
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    background: var(--accent-orange, #ff8a00) !important;
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.news-category {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.news-category.announcement {
    background: var(--primary-blue);
}

.news-category.press {
    background: var(--ocean-blue);
}

.news-category.event {
    background: var(--accent-blue);
}

.news-category.recruitment {
    background: var(--accent-orange, #ff8a00);
}

.news-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    line-height: 1.4;
}

.news-item.featured .news-title {
    font-size: 1.6rem;
}

.news-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f4f8;
    color: var(--text-gray);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.news-link:hover {
    color: var(--ocean-blue);
}

.news-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(4px);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination-dots {
    color: var(--text-gray);
    font-weight: 600;
}

/* =====================================
   関連リンク
===================================== */
.related-links {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.link-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f4f8;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.link-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.link-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =====================================
   レスポンシブデザイン
===================================== */
@media (max-width: 968px) {
    .main {
        padding-top: 70px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }
    
    .news-item.featured {
        grid-template-rows: 200px 1fr;
    }

    /* 968px以下：featured側の.news-image高さ(250px)が残ると上下にはみ出すため合わせる */
    .news-item.featured .news-image {
        height: 200px;
    }
    
    .filter-buttons {
        gap: 12px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main {
        padding-top: 60px;
    }
    
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-list {
        padding: 60px 0;
    }
    
    .related-links {
        padding: 60px 0;
    }
    
    .news-content {
        padding: 24px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-item.featured .news-title {
        font-size: 1.4rem;
    }
    
    .link-card {
        padding: 24px;
        gap: 16px;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
    }
    
    .link-icon img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .news-articles {
        gap: 30px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .link-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =====================================
   アニメーション
===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeInUp 0.6s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }
.news-item:nth-child(7) { animation-delay: 0.7s; }
.news-item:nth-child(8) { animation-delay: 0.8s; }

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

/* =====================================
   ダークモード対応
===================================== */
@media (prefers-color-scheme: dark) {
    .news-item {
        background: #1a202c;
        border-color: #2d3748;
    }
    
    .news-title {
        color: #e2e8f0;
    }
    
    .news-excerpt {
        color: #a0aec0;
    }
    
    .tag {
        background: #2d3748;
        color: #a0aec0;
    }
    
    .link-card {
        background: #1a202c;
        border-color: #2d3748;
    }
    
    .link-content h3 {
        color: #e2e8f0;
    }
    
    .link-content p {
        color: #a0aec0;
    }
} 