@charset "utf-8";
/* CSS Document */
body{
	background: #eee;
}
#tittle{
	background: #fff;
	padding: 10px;
}
.pdf-grid {
            display: grid;
            /* 画面幅に合わせて、最小200pxで自動で列を増やす */
            grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
            gap: 30px; /* カード同士の間隔 */
            padding: 20px;
        }

        /* PDFカード単体のスタイル */
        .pdf-card {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: #333;
            display: flex;
            flex-direction: column;
        }

        /* ホバー時の動き（ふわっと浮く） */
        .pdf-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        /* PDFのプレビューエリア（A4比率を維持） */
        .pdf-preview {
            width: 100%;
            aspect-ratio: 1 / 1.414; /* A4サイズの比率 */
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid #eee;
            position: relative;
        }

        /* PDFアイコン（中身が画像でない場合の代わり）
        .pdf-preview::after {
            content: "PDF";
            background: #e74c3c;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-weight: bold;
            font-family: sans-serif;
        } */


        /* タイトル部分 */
        .pdf-info {
            padding: 12px;
            font-size: 14px;
            line-height: 1.4;
            text-align: center;
            background: #fff;
        }

        /* 実際の画像を入れる場合 */
        .pdf-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }