/* ============================================================
   レポート一覧ページ（report/index.html）専用スタイル
   ============================================================
   base.css を先に読み込んだ上で使用する。
   ============================================================ */

:root {
    --measure: 860px;
}

header.page-head {
    margin-bottom: 48px;
}

header.page-head p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 15px;
}

/* ---------- 年クイックナビ ---------- */
.year-nav[hidden] {
    display: none;
}

.year-nav {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    border-radius: 100px;
    padding: 6px;
    margin-bottom: 40px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08), 0 1px 6px rgba(60, 64, 67, .06);
    scrollbar-width: none;
}

.year-nav::-webkit-scrollbar {
    display: none;
}

.year-nav a {
    flex: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.year-nav a:hover {
    background: var(--bg);
    color: var(--ink);
}

.year-nav a.active {
    background: var(--g-blue);
    color: #fff;
}

/* ---------- 年グループ見出し ---------- */
.year-group {
    scroll-margin-top: 72px;
    /* .year-nav の高さ分の余白（クリックで着地したとき隠れないように） */
    margin-bottom: 48px;
}

.year-group h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.year-group h2 .count {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 13px;
    color: var(--ink-soft);
}

.report-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08), 0 1px 6px rgba(60, 64, 67, .06);
    transition: box-shadow .15s, transform .15s;
}

.report-card:hover {
    box-shadow: 0 2px 4px rgba(60, 64, 67, .1), 0 4px 12px rgba(60, 64, 67, .08);
    transform: translateY(-2px);
}

.report-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.report-list li:nth-child(4n+1) .report-card::before {
    background: var(--g-blue);
}

.report-list li:nth-child(4n+2) .report-card::before {
    background: var(--g-red);
}

.report-list li:nth-child(4n+3) .report-card::before {
    background: var(--g-yellow);
}

.report-list li:nth-child(4n+4) .report-card::before {
    background: var(--g-green);
}

.report-card a {
    display: block;
    padding: 28px 28px 24px;
    text-decoration: none;
    color: inherit;
}

.report-card .date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    background: var(--bg);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.report-card h2 {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 19px;
    margin: 0 0 8px;
}

.report-card p.excerpt {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0 0 14px;
}

.report-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--g-blue);
    font-weight: 500;
}

.report-list-empty {
    color: var(--ink-soft);
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

@media (max-width: 480px) {
    .year-nav {
        top: 8px;
    }

    .report-card a {
        padding: 22px 20px 20px;
    }
}