/* 製品入口：三欄分類卡（對齊 product-card，不用首頁 accordion） */

.products--hub .products__inner {
  padding-bottom: clamp(72px, 8vw, 140px);
}

.products--hub .products-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.67vw, 32px);
  margin: clamp(20px, 2vw, 40px) 0 0;
  padding: clamp(28px, 4.5vh, 56px) 0 0;
  list-style: none;
}

.products-hub__item {
  margin: 0;
  min-width: 0;
}

.products-hub__card {
  --hub-shift: 72%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.6vw, 12px);
  height: 100%;
  min-height: clamp(360px, 32vw, 480px);
  padding: clamp(22px, 1.9vw, 32px) clamp(20px, 1.8vw, 32px) clamp(20px, 1.6vw, 28px);
  overflow: hidden;
  color: #fff;
  border-radius: clamp(12px, 1.04vw, 20px);
  transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.products-hub__panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #012748;
  border-radius: inherit;
  transform: translateY(var(--hub-shift));
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.products-hub__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.products-hub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.products-hub__num {
  color: #05b4d4;
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  font-size: clamp(22px, 1.6vw, 32px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.products-hub__en {
  display: block;
  width: 100%;
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.products-hub__jp {
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 700;
  line-height: 1.4;
}

.products-hub__card .circle-btn {
  position: relative;
  z-index: 1;
  width: clamp(40px, 3vw, 52px);
  height: clamp(40px, 3vw, 52px);
  color: #fff;
  background-color: #009cb9;
  transition:
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.products-hub__card .circle-btn svg {
  width: 42%;
  height: 42%;
}

.products-hub__desc {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 0.9vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.products-hub__media {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 160px;
  margin-top: auto;
}

.products-hub__media img {
  width: 100%;
  height: 100%;
  max-height: clamp(180px, 16vw, 260px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .products-hub__card:hover .products-hub__panel {
    background-color: #009cb9;
    transform: translateY(0);
  }

  .products-hub__card:hover .circle-btn {
    color: #009cb9;
    background-color: #fff;
    transform: translateX(3px);
  }

  .products-hub__card:hover .products-hub__media img {
    transform: scale(1.04);
  }

  .products-hub__card:hover .products-hub__desc {
    color: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 1099px) {
  .products--hub .products-hub {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .products-hub__card {
    --hub-shift: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(140px, 0.85fr);
    grid-template-areas:
      "head media"
      "desc media";
    align-items: center;
    column-gap: clamp(16px, 3vw, 28px);
    row-gap: 10px;
    padding: 22px 20px;
  }

  .products-hub__panel {
    transform: none;
    background-color: #012748;
  }

  .products-hub__head {
    grid-area: head;
  }

  .products-hub__desc {
    grid-area: desc;
    -webkit-line-clamp: 2;
  }

  .products-hub__media {
    grid-area: media;
    align-self: center;
    width: 100%;
    max-width: 220px;
    margin-top: 0;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto;
  }

  .products-hub__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 767px) {
  .products-hub__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "desc"
      "media";
    align-items: stretch;
    padding: 20px 18px 18px;
  }

  .products-hub__en {
    font-size: 22px;
  }

  .products-hub__jp {
    font-size: 16px;
  }

  .products-hub__media {
    width: min(100%, 240px);
    max-width: none;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }

  .products-hub__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}
