/*News-card*/

main{
    color: var(--text-color);
    margin-top: 30px;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .header-left {
        flex: 1;
        gap: 10px;
        margin-right: 75px; 
        overflow: hidden; 
    }
    
    .top_info {
        font-size: 1rem !important;
        margin-left: 0 !important;
        white-space: nowrap !important; 
        overflow: hidden !important; 
        text-overflow: ellipsis !important; 
    }
    
    .menu_logo {
        height: 40px !important;
    }
    
    .s_menu_logo {
        height: 32px !important; 
        display: block;
    }
    
    .menu_logo {
        display: none !important;
    }
}

.News{
     width: 100%; 
        padding: 0 10px; 
        box-sizing: border-box;
}

.AN_card{
    border-radius: 12px;
    background-color: white;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.AN_card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.annotation{
    opacity: 0.7;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.AN_card img{
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.News a, .News a:hover, .News a:visited{
    color: var(--text-color);
    text-decoration: none;
}

.wide_card{
    width: 100%;
    text-align: left;
}

.wide_card h2 {
    margin: auto;
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: left;
}

.wide_card h2:after {
    display: none;
}

/* 個別ニュース記事スタイル */
main p1 {
    text-align: left;
    display: block;
    margin: 20px 0;
    line-height: 1.8;
}

main h1 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}



main h2:after {
    display: none;
}

/* 日付スタイル */
.news-date {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;

}

/* トップページへ戻るボタン */
.back-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.back-button:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}
.back-button:visited{
color: black;
}

/* 言語切り替え部分の修正 */
.ls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    text-align: center;
    margin: 2rem auto;
    background-color: white;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    max-width: 320px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ls img {
    width: 30px;
    height: auto;
}

.ls a, .ls a:hover, .ls a:visited {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
}

.ls a:hover {
    background-color: rgba(0, 120, 212, 0.1);
}

/* 共有ボタン */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    text-decoration: none;
}

.share-button i {
    margin-right: 5px;
}

.twitter-share {
    background-color: #1DA1F2;
}

.facebook-share {
    background-color: #4267B2;
}

.line-share {
    background-color: #06C755;
}

/* メタ情報 */
.news-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-category {
    background-color: #f0f0f0;
    color: #333;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .News {
        width: 95%;
    }
    
    .AN_card {
        padding: 15px;
    }
    
    .wide_card h2 {
        font-size: 1.3rem;
    }
    
    main p1 {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Featured News Styles */
.news-featured {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    position: relative;
    height: 400px;
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.news-featured-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 40px 30px 30px;
}

.news-featured-info {
    color: white;
}

.news-featured-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    line-height: 1.3;
}

.news-featured-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* News Grid Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.news-grid-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.news-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.news-grid-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.news-grid-info {
    padding: 20px;
}

.news-grid-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.news-grid-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-date {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Mobile Responsive for New Layout */
@media (max-width: 768px) {
    .news-featured {
        height: 350px;
        margin-bottom: 30px;
    }
    
    .news-featured-content {
        padding: 30px 20px 20px;
    }
    
    .news-featured-title {
        font-size: 1.5rem;
    }
    
    .news-featured-date {
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid-info {
        padding: 15px;
    }
    
    .news-grid-title {
        font-size: 1.1rem;
    }
}

