/* コンテナのデザイン */
.documents-container {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    /* 角丸を維持 */
    margin: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* ドキュメントリスト */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-item {
    border-bottom: 1px solid var(--light-gray);
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-link {
    display: flex;
    align-items: center;
    /* 上下中央揃え */
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text-color-dark);
    transition: background-color 0.2s;
    gap: 20px;
}

.doc-link:hover {
    background-color: #f8f9fa;
    border:1px solid var(--accent-color);
}

/* アイコンエリア */
.doc-icon-wrapper {
    color: #d32f2f;
    /* 赤 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* テキストエリア */
.doc-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-meta {
    display: flex;
    align-items: center;
}

/* 種類を示すバッジ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background-color: var(--light-gray);
    color: var(--text-color-dark);
    letter-spacing: 0.05em;
}

.doc-title {
    font-size: 18px;
    /* 一覧性が高まったので少し大きく */
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.2s;
    margin: 0;
}

/* ダウンロードアイコン（右端） */
.download-action {
    color: var(--accent-color);
    font-size: 16px;
    opacity: 0.5;
    transition: all 0.3s;
}

.doc-link:hover .download-action {
    opacity: 1;
    transform: translateX(4px);
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
    .doc-link {
        padding: 16px;
        align-items: flex-start;
        /* スマホでは上揃え */
        gap: 16px;
    }

    .doc-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-top: 4px;
        /* テキストの1行目に合わせる調整 */
    }

    .doc-title {
        font-size: 16px;
    }

    .download-action {
        display: none;
        /* スマホでは非表示 */
    }
}