/* ==========================================
   印刷物・活字本トーン（紙と墨）
   ========================================== */
:root {
  --bg-paper: #f8f6f0;       /* 印刷紙のような生成り色 */
  --ink-black: #000000;      /* 墨色（完全な黒ではなく印刷インクの濃さ） */
  --border-line: #2b2b2b;    /* 活字用の濃い枠線 */
  /* 重厚な極太明朝体のフォントスタック */
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  --font-mono: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-paper);
  color: var(--ink-black);
  font-family: var(--font-serif);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================
   見開きレイアウト (PC: 左右並び / スマホ: 縦並び)
   ========================================== */
.book-spread {
  width: 100%;
  max-width: 1100px;
  min-height: 80vh;
  margin: 2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column; /* スマホ用：デフォルトは縦並び */
  gap: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.08); /* ほのかな本のエッジ */
  background-color: #fcfbf7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* PC（768px以上）で見開き左右2カラム化 */
@media (min-width: 768px) {
  .book-spread {
    flex-direction: row;
    gap: 4rem;
    padding: 3.5rem;
  }

  .page {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* 中央の書籍の綴じ目（スジ）演出 */
  .left-page {
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    padding-right: 3.5rem;
  }
}

/* ==========================================
   左ページ（画像 ＋ タイトル）
   ========================================== */
.left-page {
  justify-content: space-between;
}

/* メイン画像エリア（マンボウ枠） */
.illustration-container {
  width: 100%;
  height: 320px;
  border: 2px solid var(--border-line);
  position: relative;
  background-color: #ffffff;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%); /* 少し彩度を落として印刷になじませる */
}

.sketch-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #777;
}

/* タイトルエリア（エヴァ風の極太明朝体） */
.title-container {
  margin-top: 2rem;
}

.site-title {
  font-size: 3.8rem;
  font-weight: 5000; /* 極太指定 */
  letter-spacing: 0em;
  margin: 0;
  line-height: 1.1;
  color: var(--ink-black);
}



/* ==========================================
   右ページ（検索 ＋ ナビ ＋ バーコード）
   ========================================== */
.right-page {
  position: relative;
  justify-content: space-between;
}
.site-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 0.8rem;
  opacity: 1;
}
/* 検索ボックス */
.search-container {
  margin-bottom: 2.5rem;
}

#search-input {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.8rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-line);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ink-black);
  outline: none;
  border-radius: 0;
}

#search-input::placeholder {
  color: #888;
  font-style: italic;
}

/* ナビゲーションメニュー */
.navigation {
  margin-bottom: 4rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-item {
  color: var(--ink-black);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0em;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-item:hover {
  opacity: 0.6;
  transform: translateX(4px);
}

.arrow {
  font-size: 1.1rem;
}

/* 右下バーコード（シンプル印刷風） */
.barcode-wrapper {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 2rem;
}

.barcode-bars {
  width: 140px;
  height: 38px;
  /* 活字印刷調の純黒ストライプ */
  background: repeating-linear-gradient(
    90deg,
    var(--ink-black) 0px,
    var(--ink-black) 2px,
    transparent 2px,
    transparent 5px,
    var(--ink-black) 5px,
    var(--ink-black) 9px,
    transparent 9px,
    transparent 11px
  );
}

.barcode-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
  color: var(--ink-black);
}