* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f8f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  height: 100vh;
}

.container {
  display: flex;
  height: 100vh;
  position: relative;
}

/* タイトル：左上 */
.title {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 10;
}

.title h1 {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  line-height: 1.3;
}

/* 本の棚：スクロール可能 */
.books-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-left: 60%;
}

#book-shelf {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 100px 0 0 0;
  align-items: center;
}

/* 本のスタイル */
.book {
  background-color: #fff;
  border: 0.5px solid #000;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 実本（7冊）のスタイル */
.book.book-real {
  background-color: #000;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book.book-real:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 左下の情報表示 */
.book-info {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  z-index: 10;
  min-width: 250px;
}

.book-info p {
  margin: 4px 0;
}

#book-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

#book-author {
  color: #ccc;
}

#book-year {
  color: #aaa;
  font-size: 13px;
}

