@charset "UTF-8";
/* ===========================
    ヒーローイメージ
=========================== */
.heroimage.product-image {
  background-image: url("../images/product/product_top-image.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.heroimage.product-image h1 {
  margin-bottom: 42px;
  font-weight: 500;
  font-size: clamp(48px, 5vw, 68px);
  min-height: 0vw;
  line-height: 1.3;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.2rem;
}
.heroimage.product-image p {
  font-size: 1.2rem;
}

/* ===========================
    プロダクトリストセクション
=========================== */
.product-list-section {
  padding: 1rem 1rem 2rem;
}

.category-section {
  margin-bottom: 3rem;
  width: 100%;
}

.category-header {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #f79119;
}

.category-header h2 {
  font-size: 1.4rem;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.category-header h2::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 1.7rem;
  background-color: #f79119;
}

@media (min-width: 900px) {
  .category-header h2 {
    font-size: 1.8rem;
  }
}
@media (min-width: 1100px) {
  .category-header h2 {
    font-size: 2rem;
  }
}
.category-header p {
  color: #666;
  margin: 0;
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .category-header p {
    font-size: 1.1rem;
  }
}
@media (min-width: 1100px) {
  .category-header p {
    font-size: 1.2rem;
  }
}
/* プロダクトグリッド */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  padding: 0;
}

/* プロダクトカード */
.product-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(247, 145, 25, 0.2);
}

.product-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f8f8f8;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.08);
}

/* 修理可能バッジ */
.repair-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #f79119;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  aspect-ratio: 1/1;
  clip-path: circle(50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

.product-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .product-name {
    font-size: 1.4rem;
  }
}
@media (min-width: 1100px) {
  .product-name {
    font-size: 1.6rem;
  }
}
.product-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.product-materials {
  font-size: 0.85rem;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background-color: #f8f8f8;
  border-radius: 6px;
}

.product-materials strong {
  color: #f79119;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4d4d4d;
  margin-bottom: 1.2rem;
}

.product-price .tax-note {
  font-size: 0.75rem;
  font-weight: normal;
  color: #888;
  margin-left: 0.15rem;
}

form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
}
form .select-number {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 0;
  cursor: pointer;
}
form .cart-btn {
  flex: 1;
  max-width: 250px;
  padding: 0.6rem 0.8rem;
  box-sizing: border-box;
  border-radius: 12px;
  background-color: #f79119;
  text-align: center;
  border: none;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.32);
  transition: all 0.4s;
  cursor: pointer;
  margin: 0;
}
form .cart-btn:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
}
