.book-detail-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0 0 10px;
  background: linear-gradient(to bottom, #f9f9f9, #eaeaea);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px;
  text-align: center;
}


.book-detail-cover {
  max-width: 300px;
  width: 200px;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #000;
  padding: 8px;
  margin-top: 50px;
}

.book-detail-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-detail-content h1 {
  grid-area: title;
  font-size: 36px;
  margin-top: 30px;
}

/* 中央エリア */

.book-detail-meta p {
  font-size: 20px;
  margin: 0px 0px 12px;
}

.rakuten_link{
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #8B4513;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #8B4513;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

.rakuten_link:hover {
  background-color: #dcdcdc;
  color: #8B4513;
}

.book-detail-actions {
  background-color: #dcdcdc;
  border: 5px solid #a9a9a9;
  border-radius: 12px;               
  padding: 1.0em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); 
  text-align: center;
  justify-content: center; 
  margin-left: auto;
  margin-right: auto;
}

.login-required-message {
  font-weight: bold;
  font-size: 17px;
  color: #666;
  margin-top: 8px;
  text-align: center
}

.read-button:not(.done) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #00aa22;
  color: #fff;
  cursor: pointer;
  transition: 
    background-color 0.3s ease,
    transform 0.2s ease,
    border-color 0.3s ease;
}

.read-button:hover {
  transform: scale(1.02);
}

.read-button.done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #555;          
  color: #fff;                     
  border-color: #000;              
  cursor: default;                 
  opacity: 0.95;                   
}

.read-icon:not(.done) {
  color: #fff; 
  font-size: 18px; 
}

.read-icon.done {
  color: #fff;
  font-size: 18px; 
}

.action-button {
  display: flex;
  flex-wrap: wrap;              
  gap: 16px;                    
  align-items: center;
}

.evaluation-buttons {
  display: flex;
  gap: 12px;
}

.evaluation-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s ease;
}

.evaluation-buttons button:hover {
  transform: scale(1.1);        /* ホバー時に少し拡大 */
}

.evaluation-buttons i {
  font-size: 32px;
  color: #555;
  transition: color 0.3s ease;
}

.like-button.active i {
  color: #7FBFFF; 
}

.dislike-button.active i {
  color: #ff6347; 
}

.like-count {
  font-weight: bold;
  font-size: 20px;
  color: #333;
  margin-left: 8px;
  align-self: center;
}

.favorite-button {
  font-size: 32px;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #687888;
  transition: color 0.3s ease, transform 0.2s ease;
}

.favorite-button:hover {
  transform: scale(1.05);
}

.favorite-button.done {
  color: #ff69b4;
}

.favorite-button:active {
  transform: scale(0.95);
}

.book-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  height: 80px;
  background: none;
  font-size: 14px;
}

.label {
  font-weight: bold;
  color: #333;
}

.value {
  display: flex;
  font-weight: bold;
  font-size: 16px;
  color: #222; 
  margin-top: 1px;
}

.book-stats .value strong {
  font-weight: bold;
  font-size: 28px;
  color: #1E90FF; 
}

.warning {
  max-width: 1200px;
  width: 100%; 
  height: 85px;
  background-color: #fff1f1;
  color: #cc0000;
  border: 2px solid #cc0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  border-radius: 6px;
  margin: 20px 0 20px 0;
}

.textarea {
  width: 700px;
  height: 60px;
  resize: vertical;
  padding: 8px;
  font-size: 30px;
}

.comme-div{
  margin: 30px;
  margin: left 100px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.comme-form{
  display: flex;
  gap: 10px; 
  align-items: center;
}

.comment {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  position: relative;
}
.comment::before {
  content: '';
  position: absolute;
  left: 10px;
  top: -8px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

.btn-primary {
  background: #687888;
  color: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: bold;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: #0077aa;
}

.comme-btn {
  height: 70px;
  padding: 0 30px;
  background-color:#8B4513;
  color: white;
  border: none; 
  border-radius: 4px; 
  cursor: pointer; 
  font-weight: bold;
}
