@charset "utf-8";
/* --- 共通リセット &amp; 強制解除 --- */
.bookListWrap, .bookGroup, .bookGrid, .bookGrid li {
    box-sizing: border-box;
}

/* 既存の矢印やレイアウトをリセット */
.bookGrid li {
    background: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style-type: none !important;
    position: relative;
}

.bookGrid li::before, .bookGrid li::after,
.bookList ul::before, .bookList ul::after {
    content: none !important;
    display: none !important;
}

/* --- 全体レイアウト --- */
.bookListWrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: &quot;Helvetica Neue&quot;, Arial, &quot;Hiragino Kaku Gothic ProN&quot;, &quot;Hiragino Sans&quot;, Meiryo, sans-serif;
}

.bookGroup {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    border-left: 6px solid #005bac;
    padding: 8px 15px;
    margin-bottom: 25px;
    background: #f4f7f9;
    color: #333;
}

.note-box {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: #fffafa;
    border: 1px solid #ffeded;
    border-radius: 6px;
}

.note-box strong {
    color: #d9534f;
}

/* グリッドシステム（Flexbox） */
.bookGrid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px 10px;
    padding: 0 !important;
    margin: 0 !important;
}

/* スマホ：確実に2列にする設定 */
.bookGrid li {
    width: calc(50% - 5px) !important;
    text-align: center;
}

/* PC：6列（画面幅768px以上） */
@media (min-width: 768px) {
    .bookGrid li {
        width: calc(100% / 6 - 9px) !important;
    }
}

/* --- コンテンツスタイル --- */
.bookGrid li a {
    text-decoration: none !important;
    display: block;
    transition: transform 0.2s ease;
}

.bookGrid li a:hover {
    transform: translateY(-5px);
}

.bookGrid li img {
    width: 100%;
    max-width: 140px;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    background: #fff;
}

/* ボタンタイトル（黒丸部分） */
.bookGrid .title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    padding: 5px 8px;
    background-color: #666; /* デフォルトはグレー */
    color: #fff !important;
    border-radius: 18px;
    font-size: 11px;
    line-height: 1.3;
    width: 95%;
    min-height: 2.8em; /* 2行の高さで揃える */
}

/* 最新版：青色に変更 */
.is-new .title {
    background-color: #005bac !important;
    font-weight: bold;
}

/* 赤い最新版バッジ */
.badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 10px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* 準備中テキスト */
.sub-text {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

/* PDFリンク */
.pdf-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #005bac !important;
    text-decoration: underline !important;
}

.pdf-link:hover {
    text-decoration: none !important;
}