
html {
    scroll-behavior: smooth;
}
.news-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.news-index {
    width: 100%;
    display: flex;
    gap: 40px;
    margin: 0;
}
@media (max-width: 600px) {
    .news-index {
        flex-direction: column;
        gap: 20px;
    }
}
.index-column {
    flex: 1;
}
.competition {
    flex: 1.5;
}
.type {
    flex: 1;
}
.division-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    padding-left: 10px;
}
@media (max-width: 600px) {
    .division-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
}
.management .division-title {
    color: #000000;
    border-left: 4px solid #44db4b;
}
.competition .division-title {
    color: #000000;
    border-left: 4px solid #ff6456;
}
.type .division-title {
    color: #000000;
    border-left: 4px solid #ffc900;
}
.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1px 2px;
}
.team-list li button {
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    margin: 2px;
    padding: 3px 30px;
    color: black;
    background-color: white;
    border: 1px solid rgb(31, 31, 31);
    border-radius: 100px;
    transition: all 0.25s ease-in-out;
    line-height: 14px;
    text-align: left;
}
@media (max-width: 600px) {
    .team-list li button {
        font-size: 10px;
        margin: 0 2px;
    }
}
.team-list li button:hover {
    color: white;
    background-color: rgb(31, 31, 31);
}
/* 親コンテナ（グリッドレイアウト） */
.news-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}
@media (max-width: 600px) {
    .news-info {
        padding: 0;
    }
}
/* カード全体（aタグ） */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* 下線を消す */
    display: block;        /* aタグをブロック要素にして全体をクリック可能に */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* ホバー時に影を強くして浮遊感を出す */
}

/* 画像エリア */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
}

.img-placeholder::after {
    content: "No Image";
    color: #555;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-family: sans-serif;
}

/* テキストエリアの囲み */
.news-text-area {
    padding: 15px 20px 20px; /* 下側に少し余裕を持たせる */
}
@media (max-width: 600px) {
    .news-text-area {
        padding: 10px 15px 15px;
    }
}
/* タイトル（文字量が増えても読みやすい設定） */
.news-title {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px; /* 日付との間隔 */
}

/* 日付（タイトルの下） */
.news-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: #888;
    text-align: right; /* 右寄せにすると日付っぽさが際立ちます（お好みで） */
}
/* 選択中のボタンのスタイル（ホバー時と同じにする） */
.team-list li button.active {
    color: white;
    background-color: rgb(31, 31, 31);
}

/* カードが表示・非表示になる際のアニメーション */
.news-card {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

/* 非表示状態 */
.news-card.is-hidden {
    display: none; /* 完全に消す場合 */
    /* もしふわっと消したい場合は display:none の代わりに 
       opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; 
       などを使いますが、まずは display: none が簡単です。
    */
}