/* ------------------------------
カタログ詳細
------------------------------ */
.catalog-content {
  display: flex;
  flex-direction: row;
  grid-gap: 40px;
  max-width: 1016px;
  margin: 0 auto;
}

.catalog-cover {
  width: 550px;
  height: 550px;
  flex-shrink: 0;
}

.catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-info {
  display: flex;
  flex-direction: column;
  word-break: break-word;
}

.catalog-info::after {
  content: "";
  border-bottom: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  margin: 0 0 24px 0;
}

.catalog-description {
  margin-bottom: 32px;
  word-break: break-word;
  line-height: 1.7;
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
}

.catalog-description p {
  margin: 0;
}

.catalog-btn-container {
  display: flex;
  flex-direction: column;
  grid-gap: 24px;
}

.button.catalog {
  width: 100%;
  margin-bottom: 16px;
}

.catalog-btn p {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  margin-bottom: 8px;
}

.related-catalog-title {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 288px;
  word-break: break-word;
}

/* ------------------------------
カタログ一覧
------------------------------ */
.catalogindex-list-container {
  width: 100%;
  word-break: break-word;
}

.catalogindex-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
  text-align: left;
}

.catalog-item {
  display: flex;
  align-items: stretch;
}


.catalogindex-cover {
  overflow: hidden;
  position: relative;
}

.catalogindex-cover img {
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: 300px;
  max-height: 300px;
}


/* ---------------- デスクトップ-Lサイズ（基本はstyle.cssに記述） ----------------- */
@media only screen and (min-width: 1080px) {
  .catalog-cover img {
    max-width: 100%;
  }
}

/* --------------------------　デスクトップ-Mサイズ -------------------------- */
@media only screen and (min-width: 744px) and (max-width: 1079px) {

  /* ------------------------------
  カタログ詳細
  ------------------------------ */
  .catalog-cover {
    width: 400px;
    height: 272px;
    max-height: none;
  }

  .catalog-cover img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .related-catalog-title {
    max-width: initial
  }

}

/* -------------------------- モバイルサイズ -------------------------- */
@media only screen and (max-width: 743px) {

  /* ------------------------------
  カタログ詳細
  ------------------------------ */
  .catalog-content {
    flex-direction: column;
    max-width: none;
    margin: 0 auto;
    grid-gap: 20px;
  }

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

  .catalog-cover img {
    width: 100%;
    height: 240px;
  }

  .catalog-info {
    display: flex;
    flex-direction: column;
  }

  .catalog-info h1 {
    margin-bottom: 0;
  }

  .catalog-info::after {
    content: none;
  }

  .catalog-btn-container {
    grid-gap: 0px;
  }

  .button.catalog {
    margin-bottom: 20px;
  }

  .related-catalog-title {
    max-width: initial
  }

  /* ------------------------------
  カタログ一覧
  ------------------------------ */
  .catalogindex-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 0px;
    margin-top: 16px;
  }

  .catalogindex-cover {
    margin-bottom: 12px;
  }

  .catalogindex-cover img {
    max-width: 100%;
    max-height: 100%;
  }

}
