.carousel-container {
  position: relative;
  overflow: hidden;
  width: 95%;
  max-width: 1200px;
  margin: 150px auto 0;
  clip-path: inset(0 0 0 0);
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.item {
  flex: 0 0 auto;
  width: 380px;
  display: flex;
  flex-direction: row;
  margin: 0 10px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.item-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.cover {
  width: 185px;
  height: 290px;
  object-fit: cover;
  flex-shrink: 0;
}

.info {
  width: 180px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
  min-width: 0;
}

.title {
  font-size: 1.1rem;
  margin: 0 0 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.book-description {
  font-size: 0.95rem;
  color: #555;
  margin: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-page-column{
  background-color: #ffffff;
  color: #333; 
  margin: 50px auto auto auto;
}

.main-page-column h3 {
  text-align: center;         
  font-size: 30px;
  margin-bottom: 20px;
}

.main-page-column h3::after {        /*hタグにつくアンダーライン下にスッと*/
  content: '';
  display: block;
  margin: 0 auto;
  width: 300px;
  padding-top: 5px;
  border-bottom: 2px solid #0077aa;
}

.book-gallery {
  display: flex;
  justify-content: center;    
  gap: 35px;        
  flex-wrap: wrap;          
  margin: 20px 0;
}

.book-cover {
  width: 140px;                /* 必要に応じて調整 */
  height: 200px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.book-cover:hover {
  transform: scale(1.05);   
}

.book-item.featured {
  animation: pulseFade 0.8s ease-in-out;
  border: 2px solid #ff6f61;
  box-shadow: 0 0 12px rgba(255, 111, 97, 0.4);
}

@keyframes pulseFade {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.pickup-tag {
  display: inline-block;
  margin-top: 4px;
  margin-right: 4px;
  padding: 4px 8px;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  animation: fadeInTag 0.6s ease;
  white-space: nowrap;
}

@keyframes fadeInTag {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* タグごとの色分け */
.tag-movie       { background-color: #e53935; }
.tag-drama       { background-color: #8e24aa; }
.tag-anime       { background-color: #3949ab; }
.tag-liveaction  { background-color: #00897b; }
.tag-award       { background-color: #fbc02d; color: #000; }
.tag-favorite    { background-color: #fb8c00; }
.tag-rating      { background-color: #43a047; }
.tag-chat        { background-color: #1e88e5; }
.tag-trending    { background-color: #d81b60; }
.tag-default     { background-color: #9e9e9e; }

@keyframes fadeInTag {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.button-container {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.read-more {
  padding: 10px 20px;
  background-color: #0077aa; 
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease; 
}

.read-more:hover {
  background-color: #005f88; 
}

.book-item {
  width: 120px;
  text-align: center;
}

.book-title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin-top: 6px;
  white-space: nowrap;           /* 改行させんん */
  overflow: hidden;             
  text-overflow: ellipsis;       
  max-width: 100%;  
}

.book-author {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}



