p{
margin-left: 5%;
margin-right: 3%;
}

a:link {
 color: #000000;
 text-decoration: underline;
}
a:visited {
 color: #000000;
 text-decoration: underline;
}
a:hover {
 background-color: #c1e4e9;
}

.explanation{
font-size:10px;
margin-top:-10px;
}

.skip_next{
 float:right;
 margin-right:30px;
}
.sticky_backhome{
 position: sticky;
 float:left;
 text-align:center;
 bottom:20px;
 height:80px;
 width:100px;
 border-radius:5px;
 color: #000000;
 background-color:#e7e7eb;
cursor:pointer;
}

.sticky_storage{
 position: sticky;
 bottom:0;
 background:rgba(255,255,255,0.7);
}
.URLs_storage{
display: flex;
overflow-x: scroll;
}
.URL_storage_cover{
 flex-shrink: 0;
 float: left;
 vertical-align: middle;
 text-align:center;
 margin-right:3px;
 position:relative;
 width:120px;
 color:#2ca9e1;
}
.URL_storage{
}

.lib_walk{
 display: flex;
 justify-content: space-between;
}
.lib_move{
 float: left;
 text-align: left; 
 position: relative;
 margin-left:3px;
}
            

.library{
 display: flex;
 overflow-x: scroll;
}
.book{
 float: left;
 position: relative;
 justify-content: center;
 align-items: center;
 text-align: center;
 margin-right:3px;
 font-size: 80%;
 flex-shrink: 0; /* ★ここだけ追加：スマホで勝手に縮むのを防ぎ、改行落ちを直す★ */
}
.spine{
 cursor:grab;
 flex-shrink: 0;
 background:no-repeat url("https://books-holiday.com/wp-content/uploads/2023/05/base_white.jpg");
 height: 250px;
 width:50px;
 line-height:15px;
 padding:10px
}
.title{
  float: left;
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 0;
  left: 0;
 margin: auto;
 line-height:16px;
}
.pickup{
 float: left;
 position: relative;
 flex-shrink: 0;
 width:0px;
}

.introduction{
 display: flex;
 width: 100%;
height: 300px;
padding: 10px; margin-bottom: 10px;
border: 1px solid #000000;
}
.select_now{
width: 200px;
height:500px;
} 
.introduction_txt{
 float: left;
 overflow-wrap: break-word;
 line-height: 110%;
 padding-top: 10px;
 padding-left: 10px;
}
.intr_links{
 padding-top:10px;
 padding-bottom:3px;
}
@media only screen and (max-width:600px){
.introduction_txt{
  width: 200px;
  font-size: 80%;
 }
}

.images{
 margin:auto;
 width:50%;
 text-align:center;
}
@media only screen and (max-width:600px){
.images{
  width: 80%;
 }
}
/* =======================================
   記事本文内の画像キャプション最適化
======================================= */
.post_content figcaption,
.post_content .wp-caption-text {
    font-size: 11px !important; /* 文字を小さく設定（お好みで調整してください） */
    color: #888 !important; /* 目立ちすぎないよう少しグレーに */
    margin-bottom: 2.5em !important; /* 次の段落（本文）との間隔を大きく取る */
    line-height: 1.4;
    text-align: center;
}

/* 左端のスクロール誘導エリアのスマート化 */
.scroll-helper {
    background: linear-gradient(135deg, #e6f4f8 0%, #c1e4e9 100%) !important;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.8), 1px 1px 2px rgba(0,0,0,0.05);
    height: 100%; /* 高さを並びと合わせる */
}

/* 矢印部分 */
.helper-arrow {
    font-size: 11px;
    font-weight: bold;
    color: #2ca9e1;
    letter-spacing: 0.1em;
    /* ひょこひょこと左右に動くアニメーションを追加して直感的にスクロールを促す */
    animation: sideBounce 1.5s infinite ease-in-out;
    display: inline-block;
}

/* テキスト部分 */
.helper-text {
    font-size: 10px;
    color: #555;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* 動的読み込み用のラッパー自体をレイアウトから無視させ、stickyを効かせる */
.dynamic-scroll-links {
    display: contents !important;
}

/* 左右にバウンドするアニメーションの定義 */
@keyframes sideBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* =======================================
   左端コントロールパネル（2段統合型）
======================================= */
.control-panel {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 商品画像の高さに自動で揃う */
    padding: 0 !important; /* 既存の余白をリセット */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
}

/* 上段：スクロール誘導 */
.panel-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f4f8 0%, #c1e4e9 100%);
    padding: 15px 10px;
}

.helper-arrow {
    font-size: 11px;
    font-weight: bold;
    color: #2ca9e1;
    letter-spacing: 0.1em;
    animation: sideBounce 1.5s infinite ease-in-out;
}

.helper-text {
    font-size: 9px;
    color: #555;
    font-style: italic;
    text-transform: uppercase;
    margin-top: 2px;
}

/* 下段：Back to Top */
.panel-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    color: #666 !important;
    text-decoration: none !important;
    border-top: 1px solid #eaeaea;
    padding: 10px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.panel-bottom:hover {
    background: #e5e5e8;
    color: #333 !important;
}

.back-arrow {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}

.back-text {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}