/* --- 1. 基本レイアウト（共通） --- */
body { margin: 0; padding: 0; font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; background: #f9f9f9; }
#container { width: 100%; background: #fff; }

/* ヘッダー */
#header { padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid #eee; }

/* 上段ナビ（青い帯） */
#top_nav { background: DeepSkyBlue; width: 100%; }
#top_nav ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
#top_nav li a { display: block; padding: 12px 20px; color: #fff; text-decoration: none; font-weight: bold; font-size: 14px; }

/* 3カラム外枠 */
.main-wrapper { display: flex; max-width: 1200px; margin: 30px auto; padding: 0 20px; gap: 25px; }

/* --- 2. 左サイドメニュー --- */
#left_menu { width: 200px; flex-shrink: 0; }
.menu-title { background: #444; color: #fff; padding: 10px; font-size: 13px; font-weight: bold; }
.side-nav { list-style: none; padding: 0; margin: 0; border: 1px solid #eee; background: #fff; }
.side-nav li a { display: block; padding: 12px; text-decoration: none; color: #333; font-size: 13px; border-bottom: 1px solid #eee; transition: 0.3s; }
.side-nav li a:hover { background: #f0f0f0; color: DeepSkyBlue; }
.side-nav li a.active { background: DeepSkyBlue; color: #fff; }

/* --- 3. メインスライドショー（Topページ上部） --- */
#face { width: 100%; height: 350px; position: relative; overflow: hidden; background: #333; }
.slide-container { display: flex; height: 100%; transition: transform 0.5s ease-in-out; }
.slide-item { min-width: 100%; height: 100%; }
.slide-item img { width: 100%; height: 100%; object-fit: contain; background: #fff; object-position: center; }

.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.3); color: white; font-size: 30px; padding: 15px 20px; cursor: pointer; z-index: 10; border-radius: 5px; transition: 0.3s; }
.slide-btn:hover { background: rgba(0, 0, 0, 0.6); }
.prev { left: 20px; }
.next { right: 20px; }

/* --- 4. 中央コンテンツ（商品リスト・スライダー） --- */
#main_contents { flex: 1; min-width: 0; background: #fff; }
.slider-section { margin-bottom: 30px; }
.slider-title { border-left: 5px solid DeepSkyBlue; padding-left: 10px; font-size: 17px; margin-bottom: 10px; }
.slider-container { position: relative; display: flex; align-items: center; }
.slider-viewport { overflow: hidden; width: 100%; }
.slider-track { display: flex; gap: 10px; transition: transform 0.4s ease; padding: 5px 0; }

/* 商品ボックス（スライダー用） */
.calendarbox-s { width: calc(33.33% - 10px); flex: 0 0 calc(33.33% - 10px); border: 1px solid #eee; padding: 8px; box-sizing: border-box; text-align: center; background: #fff; }
.calendarbox-s p { font-size: 12px; margin-top: 10px; line-height: 1.4; }

/* 商品画像のホバー演出（表紙と中身の入れ替え） */
.img-wrapper { position: relative; width: 100%; height: 350px; overflow: hidden; background: #fff; }
.img-wrapper img { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; transition: opacity 0.5s; }
.img-hover { z-index: 1; }
.img-main { z-index: 2; }
.img-wrapper:hover .img-main { opacity: 0; }

/* スライダー操作ボタン */
.s-btn { background: rgba(0,0,0,0.1); border: none; font-size: 20px; cursor: pointer; padding: 10px; z-index: 2; color: #666; }
.s-btn:hover { background: rgba(0,0,0,0.2); }

/* --- 5. 右サイド（オススメ） --- */
#right_aside { width: 200px; flex-shrink: 0; }
.osusume-box { border: 2px solid #FF9900; margin-bottom: 15px; padding: 10px; text-align: center; border-radius: 8px; background: #fff; }

/* --- 6. フッター & その他 --- */
#footer { background: #333; color: #fff; padding: 30px; text-align: center; font-size: 12px; }
.pagination-area { text-align: center; margin: 30px 0; clear: both; }
.pagination-area span { display: inline-block; padding: 8px 15px; margin: 0 5px; border: 1px solid #ccc; cursor: pointer; background: #fff; }
.pagination-area span.active { background: DeepSkyBlue; color: #fff; border-color: DeepSkyBlue; font-weight: bold; }