/* ==============================
   Books Page（出版図書）
   Figma: 139-1929
   ============================== */

.books-page {
  background-color: var(--color-bg-alt);
  scroll-behavior: smooth;
}


/* ----------------------------------------
   Hero（Figma: 139-1931）
   ---------------------------------------- */
.books-hero {
  background-color: var(--color-bg-alt);
  padding: 80px var(--container-pad-sp) 60px;
}

.books-hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.books-hero__title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.books-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: normal;
  color: var(--color-primary);
  text-align: center;
}

.books-hero__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.books-hero__desc {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.05em;
  max-width: 900px;
}


/* ----------------------------------------
   Book Grid（Figma: 145-2130）
   ---------------------------------------- */
.books-grid {
  background-color: var(--color-bg-alt);
  padding: 0 var(--container-pad-sp) 80px;
}

.books-grid__inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.books-grid__list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.books-card {
  width: 264px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.books-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.books-card__link:hover,
.books-card__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.books-card__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.books-card__cover {
  background-color: var(--color-white);
  padding: 32px 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.books-card__img {
  width: 200px;
  height: 285px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

.books-card__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px 12px;
}

.books-card__title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  margin: 0 0 16px;
}

.books-card__meta {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

.books-card--skeleton .books-card__title {
  display: block;
  min-height: 1.4em;
  background: var(--color-border, #e8e8e8);
  border-radius: 4px;
}

.books-grid__empty {
  list-style: none;
  width: 100%;
  text-align: center;
  padding: 48px 16px;
  font-family: var(--font-base);
  font-size: var(--text-md);
  color: var(--color-text);
}


/* ----------------------------------------
   Responsive（PC）
   ---------------------------------------- */
@media (min-width: 768px) {
  .books-hero {
    padding: 200px var(--container-pad-pc) 80px;
  }

  .books-hero__inner {
    gap: 32px;
  }

  .books-hero__title {
    font-size: 40px;
  }

  .books-hero__icon {
    width: 80px;
    height: 80px;
  }

  .books-grid {
    padding: 0 var(--container-pad-pc) 120px;
  }

  .books-grid__list {
    gap: 40px;
    justify-content: flex-start;
  }
}
