/* ===== 5部門の図書館：style.css に足す分 ===== */

/* ナビ：7つの書架が並ぶので少し詰める */
.nav a { padding: 6px 11px; }
@media (max-width: 1100px) { .nav a { padding: 6px 8px; font-size: 12px; } }

/* 館内案内 */
.floor-lead { margin: -16px 0 28px; color: var(--mute); font-weight: 700; }
.floor-grid.lib { grid-template-columns: repeat(4, 1fr); }
.floor-grid.lib .floor-card .no { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.22); border-radius: 999px; padding: 0 10px; margin-bottom: 4px; }
.floor-grid.lib .floor-card .voice { display: block; font-size: 12px; font-weight: 700; opacity: .92; margin-top: 2px; line-height: 1.5; }
.floor-grid.lib .floor-card.is-special { outline: 2px solid var(--brand); outline-offset: -2px; }
@media (max-width: 760px) { .floor-grid.lib { grid-template-columns: repeat(2, 1fr); } .floor-grid.lib .floor-card .voice { font-size: 11px; } }

.compass { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border-radius: 20px; padding: 20px 24px; }
.compass p { margin: 0; color: var(--mute); }
.compass p b { color: var(--ink); margin-right: .5em; }
.compass .btn { padding: 12px 24px; font-size: 14px; }

/* 書架の見出し */
.wing-head .voices { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wing-head .voices li { background: rgba(255,255,255,.9); color: var(--ink); font-weight: 700; font-size: clamp(13px, 1.6vw, 15px); padding: 6px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 6px 16px rgba(15,27,51,.2); }
.wing-head .voices li::before { content: "「"; } .wing-head .voices li::after { content: "」"; }
.wing-head .catch { font-size: clamp(20px, 3vw, 30px) !important; font-weight: 900 !important; margin: 0 0 14px !important; max-width: none !important; }
.study-head::after { background: linear-gradient(180deg, rgba(15,27,51,.15) 20%, rgba(15,27,51,.72) 100%); }

/* まずこの1冊・年代の目安 */
.book.is-first .cover { box-shadow: 0 0 0 3px var(--brand), 0 12px 22px rgba(15,27,51,.18); }
.book .ribbon { position: absolute; z-index: 2; top: -10px; left: -6px; background: var(--brand); color: var(--ink); font-size: 11px; font-weight: 900; padding: 2px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(242,194,0,.4); }
.book .age { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--mute); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }

/* 近日入荷 */
.book.soon { cursor: default; }
.book.soon .cover .blank { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 16px 14px; text-align: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #E7E3D8 10px 20px); }
.book.soon .cover .blank b { font-size: 13px; line-height: 1.5; color: var(--mute); }
.book.soon .soon-tag { background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.book.soon:hover .cover { transform: none; box-shadow: 0 12px 22px rgba(15,27,51,.18); }
.book.soon > div:last-child b { color: var(--mute); }

/* キャリアの書架：目的別の棚 */
.shelf-group + .shelf-group { margin-top: clamp(48px, 7vw, 72px); }
.shelf-group h3 { margin: 0 0 28px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; }
.shelf-group h3 span { background: linear-gradient(transparent 62%, var(--brand) 62%); }

/* 書斎から */
.essays { margin-top: clamp(48px, 7vw, 72px); background: var(--white); border-radius: 24px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); }
.essays h3 { margin: 10px 0 16px; font-size: 18px; font-weight: 900; }
.essays ul { list-style: none; margin: 0 0 16px; padding: 0; }
.essays li a { display: block; text-decoration: none; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; line-height: 1.6; }
.essays li a:hover { color: var(--soft); }
.essays .src { display: block; font-size: 12px; color: var(--soft); font-weight: 700; }
.essays .more { font-size: 14px; font-weight: 700; text-decoration-color: var(--brand-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.study-note { max-width: 720px; margin: 0 0 36px; color: var(--mute); }

/* 刊行前の本（商品番号・表紙なし）：リンクは有効、表紙の代わりにタイトルを背表紙ふうに */
.book.soon.pre { cursor: pointer; }
.book.soon.pre:hover .cover { transform: translateY(-12px) rotate(-1.5deg); box-shadow: 0 26px 36px rgba(15,27,51,.25); }
.book.soon.pre > div:last-child b { color: var(--ink); }
.book-hero .big-cover.no-cover { aspect-ratio: 1 / 1.5; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 24px 20px; text-align: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, #E7E3D8 12px 24px); }
.book-hero .big-cover.no-cover b { font-size: 20px; line-height: 1.5; color: var(--ink); }
.soon-tag { background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.btn.is-pending { display: inline-block; color: var(--soft); border: 1px solid var(--line); background: var(--paper); cursor: default; padding: 12px 28px; border-radius: 999px; font-weight: 700; }
