/*
products.html
*/
.products-list {
  padding: 4rem 1rem;
  margin: 0 auto;
  background: #f5f7fa;
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0, rgba(0, 0, 0, 0.02) 2px, transparent 2px, transparent 6px);
  border-radius: 8px;
}

.products-list h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #0d47a1;
}

.products-list .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) {
  .products-list .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .products-list .grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  margin: 1rem 0 0.5rem;
}

.product-card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #555;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/*
 products.html1,2,3,4,5,6
 */
.product-detail {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.product-detail h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d47a1;
  border-left: 6px solid #0d47a1;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-info h2 {
  margin-block: 0.5rem;
  color: #0d47a1;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}
.product-detail-btn {
  margin-block: 0.5rem;
}
.product-detail-btn:hover {
  background: #08306b;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr;
  }
}
