@charset "utf-8";

/* アーカイブ一覧 (/archive.html) 専用スタイル
   既存 CSS (style.css / sub-page.css) は変更禁止のため、
   一覧カードのスタイルだけを本ファイルに分離している。
   詳細ページ (/archive/{year}.html) は既存クラスのみで構成し本ファイルを読まない。
   配色は style.css の CSS 変数 (--primary-color 等) を参照する。 */

.archive-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 5%;
}

.archive-card {
    display: block;
    width: 20rem;
    max-width: 90%;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.archive-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

.archive-card .archive-card-body {
    padding: 1rem;
    color: #000;
    text-align: left;
}

.archive-card .archive-card-year {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
}

.archive-card .archive-card-title {
    font-weight: bold;
    margin-top: 0.25rem;
}

.archive-card .archive-card-date {
    font-size: 0.85em;
    color: #555;
    margin-top: 0.25rem;
}

.archive-empty {
    text-align: center;
    padding: 3rem 5%;
}

/* 大会カード内の「コンテスト受賞作品」「イベント風景」ボタン
   (カード自体はリンクではなく、ボタンだけがリンク) */
.archive-card .archive-card-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.archive-card .archive-btn {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
}

.archive-card .archive-btn:hover {
    color: #fff;
    background-color: var(--primary-color);
}

