body {
  margin: 0;
  background-color: #eae7dc;
  font-family: 'Georgia', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book {
  margin-top: 30px;
}

.page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.page-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  color: #333;
  font-size: 22px;
  line-height: 1.8;
}

.controls, .zoom-controls {
position: relative;  /* ← 追加！ */
  z-index: 10;          /* ← 背景画像より前に出す */
  margin: 15px 0;
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background: #6b4f3b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 下段サブ行（ボタンを Prev/Next の下に中央寄せ） */
.control-sub{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* 反転ボタン（既存ボタンに合わせた配色） */
.btn-outline{
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #6b4f3b;
  background: #fff;
  color: #6b4f3b;
  cursor: pointer;
  line-height: 1;
}
.btn-outline:hover{
  background: #f6f1ec;
}

/* =============================
   バックナンバー一覧ページ専用スタイル
   ============================= */

:root {
  --bn-max: 1200px;
  --bn-gap: 16px;
  --bn-radius: 12px;
  --bn-shadow: 0 4px 12px rgba(0,0,0,.08);
  --bn-border: #eae6e2;
  --bn-text: #3b3b3b;
  --bn-muted: #777;
  --bn-accent: #6b4f3b; /* トーンを合わせたブラウン */
}

.bn-container {
  max-width: var(--bn-max);
  margin: 0 auto;
  padding: 24px 16px 48px;
  background: #faf8f6;
  color: var(--bn-text);
  line-height: 1.6;
}

.bn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bn-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: 0.02em;
}

.bn-actions {
  display: flex;
  gap: 10px;
}

.bn-actions2 {
  display: flex;
  gap: 10px;
 margin:30px 0;
}

.bn-btn {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--bn-accent);
  border-radius: 8px;
  text-decoration: none;
  color: var(--bn-accent);
  background: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bn-btn:hover {
  background: #f6f1ec;
}

/* グリッド */
.bn-grid {
  display: grid;
  gap: var(--bn-gap);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 20px;
}

/* カード */
.bn-card {
  background: #fff;
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.bn-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1efec;
  overflow: hidden;
}

.bn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bn-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,.9);
  color: #444;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #eee;
}

.bn-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bn-title-sm {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.bn-card:hover .bn-title-sm {
  color: var(--bn-accent);
  text-decoration: underline;
}

.bn-meta {
  font-size: 12px;
  color: var(--bn-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.bn-link {
  text-decoration: none;
  color: inherit;
}

/* ページャ（必要なら） */
.bn-pager {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.bn-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bn-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.bn-pill[aria-current="page"] {
  border-color: var(--bn-accent);
  color: var(--bn-accent);
  font-weight: 700;
}

