/* ==========================================================
   PDF資料ページ (pdf.html) 専用スタイル
   既存 style.css のトーン（紺 #153675 / 点線見出し）に合わせています
   ========================================================== */

.pdf-library {
	padding-bottom: 80px;
}

.pdf-lead {
	text-align: center;
	color: #555;
	font-size: 14px;
	line-height: 1.9;
	margin: 0 auto 10px;
	max-width: 640px;
}

/* ---------- カードグリッド ---------- */
.pdf-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 28px;
	margin: 0;
	padding: 0 15px;
	list-style: none;
}

.pdf-grid > li {
	width: 240px;
}

/* 横向きPDF：縦カード2枚分の幅で、表紙の高さを縦カードと揃える */
.pdf-grid > li.is-landscape {
	width: 480px;
}

.is-landscape .pdf-cover {
	aspect-ratio: 297 / 210;
}

.pdf-card {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.pdf-card:focus { outline: none; }
.pdf-card:focus-visible .pdf-cover {
	outline: 3px solid #153675;
	outline-offset: 3px;
}

/* 表紙サムネイル */
.pdf-cover {
	position: relative;
	display: block;
	aspect-ratio: 210 / 297; /* A4比率 */
	overflow: hidden;
	background: #f3f3f3;
	border: 1px solid #ddd;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pdf-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* ホバー時のオーバーレイ */
.pdf-cover::after {
	content: "\f06e\00a0 PDFを見る"; /* fa-eye */
	font-family: FontAwesome, "helvetica", sans-serif;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(21, 54, 117, 0.72);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	opacity: 0;
	transition: opacity 0.25s ease;
}

@media (hover: hover) {
	.pdf-card:hover .pdf-cover {
		transform: translateY(-4px);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
	}
	.pdf-card:hover .pdf-cover::after {
		opacity: 1;
	}
}

/* NEWバッジ */
.pdf-badge {
	position: absolute;
	top: 10px;
	left: 0;
	z-index: 1;
	padding: 3px 10px;
	background: #e8423f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* カード下のテキスト */
.pdf-title {
	display: block;
	margin: 14px 0 4px;
	color: #222;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.pdf-desc {
	display: block;
	color: #666;
	font-size: 12.5px;
	line-height: 1.7;
	min-height: 2.4em;
}

.pdf-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: #888;
	font-size: 11.5px;
}

.pdf-meta .fa-file-pdf-o {
	color: #e8423f;
	font-size: 14px;
}

/* ---------- ビューア（モーダル） ---------- */
.pdf-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	flex-direction: column;
	background: rgba(10, 20, 40, 0.86);
}

.pdf-modal.is-open {
	display: flex;
	animation: pdfFade 0.2s ease;
}

@keyframes pdfFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.pdf-modal-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	background: #153675;
	color: #fff;
}

.pdf-modal-title {
	flex: 1;
	margin: 0;
	overflow: hidden;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pdf-modal-bar a,
.pdf-modal-bar button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 3px;
	background: transparent;
	color: #fff;
	font-size: 12.5px;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.pdf-modal-bar a:hover,
.pdf-modal-bar button:hover,
.pdf-modal-bar a:focus,
.pdf-modal-bar button:focus {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	text-decoration: none;
}

.pdf-modal-close {
	font-size: 16px !important;
}

.pdf-modal-body {
	flex: 1;
	padding: 16px;
	min-height: 0;
}

.pdf-modal-body iframe {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 1100px;
	margin: 0 auto;
	border: 0;
	background: #fff;
}

body.pdf-modal-lock {
	overflow: hidden;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 767px) {
	.pdf-grid {
		gap: 28px 16px;
	}
	.pdf-grid > li {
		width: calc(50% - 8px);
	}
	.pdf-grid > li.is-landscape {
		width: 100%;
	}
	.pdf-title {
		font-size: 13.5px;
	}
	.pdf-desc {
		font-size: 12px;
	}
	.pdf-modal-bar .pdf-btn-label {
		display: none;
	}
}

/* メニューの「新商品」(pdf.html#new) で飛んだ時の位置調整 */
.pdf-library .catalogindexbox {
	scroll-margin-top: 20px;
}
