@charset "UTF-8";

.body {
  min-height: 100vh;
  font-family: 'Philosopher', 'BIZ UDPGothic', 'Meiryo', sans-serif;
  background: linear-gradient(180deg, #f8fafb 0%, #e6ecec 100%);
  margin: 0;
  padding: 0;
}

.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 32px;
  background: #f8fafb;
}

.top-pop-banner {
  background: #f7f9fa;
  border-left: 8px solid #a2cfcf;
  border-radius: 12px;
  color: #4a646c;
  margin-bottom: 32px;
  padding: 22px 32px;
  max-width: 600px;
  box-shadow: 0 2px 10px #e0e0e0;
  font-size: 1.06em;
  text-align: left;
  letter-spacing: 0.01em;
}

.contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 22px;
  width: 100%;
  max-width: 1240px;
  padding: 32px 12px;
  background: transparent;
}

.product {
  background: linear-gradient(135deg, #fafdfe 60%, #e6ecec 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px #b2c4c433;
  border: 1.5px solid #b2c4c4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.product:hover {
  box-shadow: 0 8px 28px #a2cfcf22, 0 2px 8px #b2c4c433;
  transform: translateY(-6px) scale(1.018);
  z-index: 2;
}

.image-container {
  width: 100%;
  height: 180px; /* スマホ時も最低このくらい */
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  width: auto;
  height: 100%;      /* 高さ基準で収める */
  max-width: 100%;   /* 横長画像にも対応 */
  object-fit: contain;
  display: block;
  background: none;
  box-sizing: border-box;
  padding: 0;
}


.product:hover .product-image {
  transform: scale(1.06);
}

.product-text {
  padding: 18px 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.name {
  font-size: 1.13em;
  font-weight: bold;
  color: #4a646c;
  margin-bottom: 8px;
  text-align: left;
  min-height: 38px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: 0.01em;
}

.price {
  text-align: left;
  color: #69a4a4;
  font-size: 1.15em;
  font-weight: bold;
  margin-bottom: 7px;
  margin-top: 3px;
  letter-spacing: 0.03em;
}

.shipping {
  font-size: 0.98em;
  color: #7a8d8d;
  margin-bottom: 6px;
  text-align: left;
}

.cart-in {
  margin: 0 auto 10px auto;
  width: 92%;
  text-align: center;
}
.cart-in-button {
  background: linear-gradient(180deg, #ffd814 0%, #f7ca00 100%);
  color: #111;
  font-weight: bold;
  border: 1.5px solid #f2b600;
  border-radius: 6px;
  padding: 10px 0;
  width: 100%;
  font-size: 1.08em;
  box-shadow: 0 2px 6px #f5e79e66;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
  text-shadow: 0 1px 0 #fffbe5;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: none;
  display: block;
}
.cart-in-button:hover,
.cart-in-button:focus {
  background: linear-gradient(180deg, #f7ca00 0%, #f2b600 100%);
  color: #b12704;
  border-color: #e6a400;
  box-shadow: 0 2px 10px #f5e79e99;
  text-shadow: 0 1px 0 #fffbe5;
}


.out-of-stock {
  font-weight: bold;
  color: #b2c4c4;
  margin: 14px 0 8px 0;
  font-size: 1.05em;
  background: #ececec;
  border-radius: 6px;
  padding: 4px 10px;
  text-align: left;
}
.register-btn:hover {
  background: linear-gradient(90deg,#79b7fd 0%,#3578c6 100%);
  color: #222;
}

@media (max-width: 600px) {
  .register-promo > div {
    padding: 13px 8vw;
    max-width: 98vw;
  }
  .register-btn {
    font-size: 1em;
    padding: 10px 18vw;
  }
}

@media(max-width: 900px) {
  .contents {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 18px 8px;
      padding: 16px 2vw;
  }
  .image-container { height: 110px; }
}

@media(max-width: 600px) {
  .contents {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 10px 5px;
      padding: 8px 1vw;
      max-width: 100vw;
  }
  .image-container { height: 70px; }
  .product-text { padding: 10px 7px 8px 7px; }
  .cart-in-button {
    color: #000000;
    font-weight: bold;
  }
}
