body {
  font-family: sans-serif;
}

.container {
  width: 80%;
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container a {
  color: #000000;
  text-decoration: none;
}

.book-item-list { /* 本一覧ページのスタイル */
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-item-list img {
  width: 50px;
  height: auto;
  margin-right: 20px;
}

.book-item-list div {
  flex-grow: 1;
}

.book-item { /* MY本棚ページのスタイル */
  width: 200px; /* 幅を調整 */
  margin: 10px; /* 間隔を調整 */
  text-align: center; /* テキストを中央寄せ */
  display: inline-block; /* 横並びにする */
}

.book-item h3 {
  margin-top: 0;
}

.star {
  font-size: 30px;
  cursor: pointer;
}

.star-custom {
  font-size: 30px;
  cursor: pointer;
}

.star-yellow {
  color: gold;
}

.star-outline {
  color: #ccc;
}

/* スマホ版スタイル */
@media (max-width: 768px) {
  .book-item {
      width: 100%;
  }
}

.confirmation-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  text-align: center;
}

.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
}

.confirmation-content {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 400px;
}

.confirmation-content h2 {
  color: #333;
  margin-bottom: 20px;
}

.confirmation-content label {
  display: inline-block;
  padding: 8px 15px;
  margin: 5px;
  border: 2px solid #007bff;
  border-radius: 5px;
  cursor: pointer;
  color: #007bff;
}

.confirmation-content input[type="radio"]:checked + label {
  background-color: #007bff;
  color: white;
}

.confirmation-content input[type="radio"] {
  display: none;
}

.confirmation-content .radio-group {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.confirmation-content button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.confirmation-content button:hover {
  background-color: #0056b3;
}

.filter-group {
  margin-bottom: 20px;
  text-align: center;
}

.filter-group a {
  padding: 8px 15px;
  margin: 5px;
  border: 1px solid #007bff;
  border-radius: 5px;
  color: #007bff;
  text-decoration: none;
}

.filter-group a:hover {
  background-color: #007bff;
  color: white;
}

/* MY本棚の本のタイトルリンクのスタイル */
.book-item h3 a {
  color: inherit;
  text-decoration: none;
}

/* ステータスのスタイル */
.status-label span { /* <span>タグにのみスタイルを適用 */
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.status-label span.未読 {
  background-color: #007bff;
  color: white;
}

.status-label span.読書中 {
  background-color: #28a745;
  color: white;
}

.status-label span.読了 {
  background-color: #6c757d;
  color: white;
}

/* 絞り込みフラグのスタイル */
.filter-group a.active {
  background-color: #007bff;
  color: white;
}

.search-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-form input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 300px;
  margin-right: 10px;
}

.search-form button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.publisher {
  margin-left: 20px;
}

.book-detail-volume img {
  width: 50px;
}

.book-detail-volume {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  justify-content: space-between;
}

.book-detail-volume-content {
  display: flex; /* 追加 */
  align-items: center; /* 追加 */
}

.book-detail-volume img {
  width: 50px;
}

.book-detail-volume span.volume {
  margin-left: 20px;
}

.book-detail-volume .star-custom {
  margin-left: auto; /* 追加 */
}

.book-detail-volume:last-child {
  border-bottom: none;
}

.booktitle-with-fav {
  display: flex;
  align-items: center; /* 縦方向中央揃え */
  justify-content: space-between; /* 必要に応じて調整 */
}

.booktitle-with-fav h3 {
  margin-right: 10px; /* 星マークとの間隔 */
}

.favorite-button i {
  font-size: 1.2em; /* 星マークのサイズ調整 */
  /* その他のスタイルは既存のものを維持 */
}

.book-detail-main-with-fav {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* 必要に応じて調整 */
}

.book-detail-main-with-fav h2 {
  margin-right: 20px; /* 星マークとの間隔 */
}

.book-detail-main-with-fav .favorite-button i {
  font-size: 1.5em; /* 星マークのサイズ調整 */
}

.no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 77px;
  background-color: #f0f0f0;
  color: #888;
  border: none;
  margin-right: 10px;
  font-size: 9px;
}