﻿.shared-recoCards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shared-recoCards__inner {
  min-width: 0;
}

.shared-recoCards__item {
  margin: 0;
}

.shared-recoCard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 150px 18px 18px;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.shared-recoCard__overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 120px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  text-indent: 0;
}

.shared-recoCard__overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-recoCard__thumb {
  display: none;
}

.shared-recoCard__title {
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shared-recoCard__cart {
  position: static;
  z-index: 2;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* 「もっと見る」「カートに入れる」ボタン */
.shared-recoCards .btnWrap .button.arrow,
.shared-recoCard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #ca1d1d;
  border-radius: 999px;
  background: #ca1d1d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shared-recoCards .btnWrap .button.arrow:hover,
.shared-recoCard__cta:hover {
  background: #fff;
  color: #ca1d1d;
  border-color: #ca1d1d;
}

.shared-recoCards--wide .shared-recoCard {
  min-height: 0;
  padding: calc(62.5% + 8px) 16px 16px;
}

.shared-recoCards--wide .shared-recoCard__overlay {
  top: 16px;
  left: 16px;
  right: 16px;
  height: auto;
  aspect-ratio: 16 / 10;
}

.shared-recoCards--square .shared-recoCards__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shared-recoCards--square .shared-recoCard {
  min-height: 0;
  border-radius: 10px;
  padding: calc(100% + 6px) 0px 0px;
}

.shared-recoCards--square .shared-recoCard__overlay {
  top: 16px;
  left: 16px;
  right: 16px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

@media screen and (max-width: 750px) {
  .top-recommendItems > section > .container:first-child {
    box-sizing: border-box;
    padding-top: 24px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .top-recommendItems > section > .container:first-child .h2A {
    margin-top: 0;
  }

  .shared-recoCards__grid {
    gap: 12px;
  }

  .shared-recoCards--square .shared-recoCards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-recoCards--wide .shared-recoCard__overlay {
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .shared-recoCards--square .shared-recoCard__overlay {
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}
}
