@media (max-width: 768px) {
  .carousel-container {
    width: 100%;
    margin: 100px auto 0;
    clip-path: inset(0);
  }

  .carousel-track {
    flex-direction: row; /* ← 横並び維持 */
  }

  .item {
    width: 250px;
    height: 170px;
    flex-direction: column;
    margin: 0 4px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0; /* ← 横スクロールで潰れない */
  }

  .cover {
    width: 95px;
    height: 150px;
    object-fit: cover;
    align-items: center;
  }

  .info {
    width: 100%;
    padding: 10px 12px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
  }

  .title {
    font-size: 0.9rem;
    margin: 0 0 1px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .book-description {
    font-size: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }



  .main-page-column h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .main-page-column h3::after {
    width: 55%;
    border-bottom: 2px solid #0077aa;
  }

  .book-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px;
  }

  .book-item {
    width: calc(33.333% - 10px); /* gapとpaddingを考慮した幅 */
    box-sizing: border-box;
  }

  .book-cover {
    width: 100%;
    height: auto;
  }

  .book-title {
    font-size: 13px;
    text-align: center;
  }

  .book-author {
    font-size: 11px;
    text-align: center;
  }



  .button-container {
    justify-content: right;
  }

  .button-container button{
    width: 100%;
    height: 100%;
    font-size: 9px;
  }

  .read-more {
    width: 90%;
    font-size: 1rem;
    padding: 12px;
  }
}

