/* お知らせページ専用スタイル */

/* メインコンテンツ */
.news-main {
    padding-top: 80px; /* ヘッダーの高さ分 */
    min-height: 100vh;
    background: #ffffff;
}

/* ヒーローセクション */
.news-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/noise.png') repeat;
    opacity: 0.05;
    z-index: 1;
}

.news-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-hero-description {
    font-family: 'Yu Gothic', sans-serif;
    font-size: 1.6rem;
    color: #666666;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.news-hero-description.animate {
    opacity: 1;
    transform: translateY(0);
}

/* お知らせ一覧セクション */
.news-list-section {
    padding: 80px 0;
    background: #ffffff;
}


/* お知らせグリッド */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* お知らせカード */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(35, 35, 101, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(35, 35, 101, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

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

.news-card-meta {
    margin-bottom: 16px;
}

.news-date {
    font-family: 'Yu Gothic', sans-serif;
    font-size: 1.4rem;
    color: #666666;
}

.news-card-title {
    font-family: 'Yu Gothic', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #222222;
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.news-card-title a:hover {
    color: #232365;
}

.news-card:hover .news-card-title a {
    color: #232365;
}

/* 外部リンク用スタイル */
.news-card.external-link {
    border: 2px solid #e9ecef;
    position: relative;
}

.news-card.external-link::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.news-card.external-link:hover::after {
    opacity: 1;
}

.external-badge {
    font-family: 'Yu Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    background: #ff6b35;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-right: 12px;
}

.news-card-meta .external-badge + .news-date {
    margin-left: 0;
}

.news-card-link.external::after {
    content: '↗';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(35, 35, 101, 0.1);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #232365;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.news-card-link.external:hover::after {
    background: #232365;
    color: white;
    transform: translateX(2px) translateY(-2px);
}

.news-card-excerpt {
    font-family: 'Yu Gothic', sans-serif;
    font-size: 1.4rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-family: 'Yu Gothic', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #232365;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.news-card-link::after {
    content: '→';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(35, 35, 101, 0.1);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    color: #1a1a4d;
}

.news-card-link:hover::after {
    background: #232365;
    color: white;
    transform: translateX(4px);
}



/* アクティブなナビゲーションリンク */
.nav-link.active {
    color: #232365;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #232365;
    transform: translateX(-50%);
}

.mobile-nav-link.active {
    color: #232365;
    background-color: rgba(35, 35, 101, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 999px) {
    .news-main {
        padding-top: 70px;
    }
    
    .news-hero {
        padding: 60px 0 40px;
    }
    
    .news-hero-description {
        font-size: 1.4rem;
    }
    
    .news-list-section {
        padding: 60px 0;
    }
    
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .news-card-content {
        padding: 24px;
    }
    
    .news-card-title {
        font-size: 1.6rem;
    }
    
    .news-card-title a {
        font-size: inherit;
    }
    
    .news-card-excerpt {
        font-size: 1.3rem;
    }
    
    .external-badge {
        font-size: 1.0rem;
        padding: 3px 6px;
    }
    
    .news-card.external-link::after {
        width: 16px;
        height: 16px;
        top: 12px;
        right: 12px;
    }
    
}

@media (max-width: 768px) {
    .news-main {
        padding-top: 60px;
    }
    
    .news-hero {
        padding: 40px 0 30px;
    }
    
    .news-hero-description {
        font-size: 1.3rem;
    }
    
    .news-list-section {
        padding: 40px 0;
    }
    
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-card-title {
        font-size: 1.5rem;
    }
    
    .news-card-title a {
        font-size: inherit;
    }
    
    .news-card-excerpt {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
    }
    
    .external-badge {
        font-size: 0.9rem;
        padding: 2px 5px;
    }
    
    .news-card.external-link::after {
        width: 14px;
        height: 14px;
        top: 10px;
        right: 10px;
    }
    
}

