/*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;
    }
}

