/* 絵本ラインナップスライダーのcss */

/* スライダー本体のスタイル */
.p-book-lineup {
    width: 100%;
    position: fixed;
    bottom: 80px;
    left: 0;
    z-index: 9998;
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: transform 0.4s ease, opacity 0.6s ease;
    /* すりガラス背景 */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
}

.p-book-lineup.is-hide {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    /* 消えている間はクリックできないように */
}

/* 閉じた状態（横軸の移動。is-hideがないときだけ効くように調整） */
.p-book-lineup.is-closed:not(.is-hide) {
    transform: translateX(100%);
}

/* 閉じた状態 */
.p-book-lineup.is-closed {
    transform: translateX(100%);
}

.p-book-lineup__image {
    display: block;
    width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    object-fit: cover;
}

.p-book-lineup__swiper {
    overflow: hidden;
}

.p-book-lineup__swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ナビゲーションボタン＜＞ */
.p-book-lineup__prev,
.p-book-lineup__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    user-select: none;
    backdrop-filter: blur(4px);
}

.p-book-lineup__prev {
    left: 0;
}

.p-book-lineup__next {
    right: 0;
}

.p-book-lineup__prev:hover,
.p-book-lineup__next:hover {
    transform: translateY(-50%) scale(1.2);
}


/* 開閉ボタンのスタイル */
.p-book-lineup__controls {
    position: fixed;
    right: 4px;
    bottom: 18rem;
    z-index: 9999;
}

.p-book-lineup__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.p-book-lineup__toggle div {
    margin: 0;
}

.p-book-lineup__toggle p {
    font-size: 10px;
    margin: 0;
}

.js-book-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    font-size: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ホバーしたときのエフェクト */
.js-book-toggle:hover {
    transform: scale(1.1);
    background: #fff;
}