@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;
            background: #fff;
        }
.pdf-info ul {
            padding: 5px;
            font-size: 14px;
	margin-left: 10px;
        }
.pcenter{
	text-align: center;
}
p {margin: 5px 3px 3px 3px,}
        /* 実際の画像を入れる場合 */
        .pdf-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
.new{
	border: 1px solid #535353;
}

/* 検索窓
親要素を基準位置にする */
.search-wrapper {
  position: relative;
  display: inline-block;
}

.trigger-icon {
  cursor: pointer;
}

/* ★ポイント：絶対配置で浮かせる */
.search-floating-box {
  display: none; /* 初期は非表示 */
  position: absolute;
  top: 40px;    /* 画像のすぐ下に配置 */
  left: 0;
  width: 300px; /* 検索窓の幅を指定 */
  z-index: 999; /* 他のコンテンツより手前に出す */
  background: white;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 浮いてる感を出す影 */
  border-radius: 8px;
}

/* 表示用クラス */
.search-active {
  display: block !important;
}

/* CSEの枠線を消してスッキリさせる */
.gsc-control-cse {
  padding: 0 !important;
  border: none !important;
}
