/* =========================
   Product Banner
========================= */

.product-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.product-banner__bg {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.product-banner__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.product-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.product-banner__text {
  position: absolute;
  font-family: "Inter", sans-serif;
  z-index: 2;
}

.title {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.2);
  -webkit-text-stroke: rgba(255, 255, 255, 0.8) 1px;
}

.product-banner__subtitle-wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #ffffff;
  gap: 8px;
}

/* Tablet: Banner (≤1024px) */

@media screen and (max-width: 1024px) {
  .product-banner__bg {
    height: 160px;
  }

  .product-banner__overlay {
    background: rgba(0, 0, 0, 0.3);
  }

  .product-banner__text {
    text-align: center;
  }

  .title {
    font-size: 32px;
  }

  .product-banner__subtitle-wrap {
    font-size: 14px;
    gap: 6px;
  }
}

/* Mobile: Banner (≤768px) */

@media screen and (max-width: 768px) {
  .product-banner__bg {
    height: 120px;
  }

  .product-banner__overlay {
    background: rgba(0, 0, 0, 0.35);
  }

  .title {
    font-size: 28px;
  }

  .product-banner__subtitle-wrap {
    font-size: 13px;
    gap: 4px;
  }
}

/* =========================
     Product Grid
  ========================= */

.product-grid {
  width: 100%;
  height: 1024px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 10px;
  align-items: center;
  padding: 160px 60px;
  justify-items: center;
  justify-content: center;
}

.product-grid__item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 640px;
  height: 300px;
  gap: 20px;
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
}

.product-grid__img {
  width: 300px;
  height: 200px;
  overflow: hidden;
}

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

.product-grid__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
}

.product-grid__title {
  font-size: 32px;
  font-weight: 600;
  white-space: nowrap;
}

.product-grid__title--ja {
  font-size: 28px;
  font-weight: 600;
  white-space: nowrap;
}

.product-grid__desc {
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
}

.product-grid__desc--ja {
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
}

.product-grid__item:hover {
  box-shadow: 0 0 12px 0 rgba(229, 9, 20, 0.25);
}

/* Tablet: Product Grid (≤1024px) */

@media screen and (max-width: 1024px) {
  .product-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 20px;
    padding: 120px 40px;
    justify-items: center;
    align-items: stretch;
  }

  .product-grid__item {
    width: 100%;
    max-width: 520px;
    height: auto;
    padding: 20px 18px;
    gap: 16px;
  }

  .product-grid__img {
    width: 240px;
    height: 170px;
  }

  .product-grid__title,
  .product-grid__title--ja {
    font-size: 24px;
  }

  .product-grid__desc,
  .product-grid__desc--ja {
    font-size: 12px;
    line-height: 24px;
  }
}

/* Mobile: Product Grid (≤768px) */

@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    padding: 80px 20px;
    gap: 16px 0;
    justify-items: stretch;
  }

  .product-grid__item {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 18px 16px;
  }

  .product-grid__img {
    width: 100%;
    max-width: 400px;
    height: 220px;
  }

  .product-grid__text {
    align-items: center;
    text-align: center;
    margin-top: 10px;
  }

  .product-grid__title,
  .product-grid__title--ja {
    font-size: 20px;
  }

  .product-grid__desc,
  .product-grid__desc--ja {
    font-size: 10px;
    line-height: 20px;
  }
}
