
  /* --- 全体設定 --- */
  body {
    margin: 0;
    color: #f8f8f8;
  background-image: url("wallppr036.gif");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  }

  /* --- ヘッダー --- */
  header {
    text-align: center;
    padding: 40px 20px 0px;

  }

  header img {
    width: 450px;
    max-width: 60%;
    height: auto;
  }

  /* --- コンテンツ全体 --- */
  .book-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 20px;
  }

  .book-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: 0.05em;
  }

  /* --- カードレイアウト --- */
  .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
  }

  /* --- 通常カード --- */
  .book-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(3px);
  }

  .book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.6);
  }


.book-card img {
  width: 100%;
  height: 200px;         /* ← 高さを固定（好みに調整：350?450くらいが目安） */
  object-fit: contain;   /* ← 全体表示（上下に余白が出てもOK） */
  background-color: #000;/* ← 余白部分は黒で埋める */
  display: block;
}

  .book-info {
    padding: 5px 15px 0px;
  }

  .book-info h3 {
    font-size: 1.1rem;
    margin: 5px 0 0px;
    color: #fff;
  }

  .book-info p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.6;
margin-top: 10px;
  }

  .book-card a {
    text-decoration: none;
    color: inherit;
    display: block;
  }

.book-card {
  position: relative;
  overflow: hidden;
}

  /* --- キャプション（タイトルの上） --- */
  .book-caption {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    margin: 10px 0 10px;
    padding: 5px 8px;
    display: inline-block;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
  }

  /* --- ここから：最新作専用スタイル background: linear-gradient(to right, #ffcc00, #ff8800);  --- */
  .book-card.new {
    order: -1; /* ← 一番上に表示 */
    border: 3px solid #ffcc00; /* 強調枠 */
    box-shadow: 0 0 12px rgba(250, 255,0, 0.5);
  }

  .book-card.new .caption {
    background: linear-gradient(to right, #0000cd, #b0c4de);
    color: #fff;
  }

  .book-card.new h3 {
    color: #ffcc00;
  }

  /* NEWバッジ */
  .book-card.new::before {
    content: "NEW!";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff0000;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 3px 7px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
  }

/* --- ここから：予告専用スタイル --- */
.book-card.soon {
  order: -2; /* ← new(-1) よりさらに優先して上に表示される */
  border: 3px solid #ff3333; 
box-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
  opacity: 0.95;
}

  .book-card.soon .caption {
    background: linear-gradient(to right, #0000cd, #b0c4de);
    color: #fff;}

.book-card.soon h3 {
  color: #ff3333;
}

/* COMING SOONバッジ */
.book-card.soon::before {
  content: "COMING SOON..";
  position: absolute;
  top: 20px;
  right: 8px;
  background: #c71585;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  animation: blink 1s infinite alternate; /* 点滅アニメでちょっとワクワク感 */
}

/* 点滅アニメーション */
@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.5; }
}




/* モーダル用 */
/* ===== モーダル全体 ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: flex-start;     /* ← 上寄せ */
  overflow-y: auto;           /* ← 内容が長いときにスクロール可 */
  padding: 40px 20px;         /* ← 上下に余白 */
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  text-align: left;
  animation: fadeIn 0.3s ease;

  width: 90%;                /* 画面幅の90%を基準 */
  max-width: 800px;          /* 大画面時の最大幅 */
  max-height: calc(90vh - 40px);          /* 高さを画面の90%に制限 */
  overflow-y: auto;          /* 内容が多い場合は内部スクロール */
  margin: auto;              /* 中央寄せ */
  position: relative;
 box-sizing: border-box; 
}

@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    max-width: none;
    padding: 20px;
    max-height: 85vh;
  }

  .preview-main img {
    max-height: 300px;  /* スマホでは少し小さく */
  }
}



.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

/* ===== プレビュー領域 ===== */
.preview-gallery {
  position: relative;
  text-align: center;
  margin-bottom: 12px;
}

/* メイン画像 */
.preview-main img {
  width: 100%;
  max-height: 400px;   /* ← 固定することでモーダルの高さを一定に */
  object-fit: contain;
  border: 1px solid #ccc;
  background: #000;
}

/* サムネイル群 */
.preview-thumbs {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
}

.preview-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: border-color 0.2s;
}

.preview-thumbs img.active {
  border-color: #000;
}

/* 横スクロールボタン */
.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.gallery-nav button {
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-nav button:hover {
  background: rgba(0,0,0,0.8);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== 拡大ボタン ===== */
.preview-main .zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;          /* ← 大きめに */
  font-size: 2.1rem;          /* ← 文字サイズ拡大 */
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  z-index: 10;
}

.preview-main .zoom-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: scale(1.1);
}

/* ===== 拡大ビュー（フルスクリーン） ===== */
.image-zoom-view {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 300;
  cursor: zoom-out;           /* ← 全体クリックでも閉じると伝わる */
}

.image-zoom-view img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  border-radius: 3px;
  cursor: zoom-out;
}
