/* ===== グラスモーフィズムヘッダー ===== */
.glassmorphism-header {
    position: fixed;
    top: 1%;
    width: 90%;
    z-index: 1000;
    margin:0 auto;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-logo {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: inherit;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    position: relative;
}

/* ===== メインコンテンツの上部マージン調整 ===== */
main {
    margin-top: 100px;
    padding: 2rem 0;
}

/* ===== レスポンシブデザイン - ヘッダー ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    main {
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .nav-logo {
        width: 30px;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    main {
        margin-top: 140px;
    }
}

/* ===== ニュース一覧ページのスタイル ===== */
.news-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* ===== ニュースグリッド ===== */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== ニュースカード ===== */
.news-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* ===== カード画像部分 ===== */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== カードコンテンツ ===== */
.card-content {
    padding: 1.5rem;
}

.card-meta {
    margin-bottom: 1rem;
}

.publish-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.title-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.title-link:hover {
    color: #b81c22;
}

.card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    /* テキストの省略設定 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2em; /* 約2行分の高さ */
}

/* ===== カードフッター ===== */
.read-more-btn {
    background: rgba(184, 28, 34, 0.1);
    border: 1px solid rgba(184, 28, 34, 0.3);
    color: #b81c22;
    padding: 0.5rem 1.2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.read-more-btn:hover {
    background: rgba(184, 28, 34, 0.2);
    border-color: rgba(184, 28, 34, 0.5);
    transform: translateY(-2px);
    color: #8b1419;
}
.card-footer {
    display: flex;
    justify-content: flex-end;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .news-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-excerpt {
        font-size: 0.9rem;
    }
}