/* サンクス楽器：WooCommerce商品カテゴリ限定 */
body.tax-product_cat {
  background-color: #f6f3ec;
  background-image: radial-gradient(ellipse at 8% 180px, rgba(190,212,244,.45), transparent 65%), radial-gradient(ellipse at 92% 340px, rgba(244,211,162,.3), transparent 65%);
  background-size: 100% 850px;
  background-repeat: no-repeat;
  color: #333;
}
body.tax-product_cat main#main {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 24px 32px 48px;
  background: transparent;
}
body.tax-product_cat #main .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: #736b60;
  font-size: .8rem;
  line-height: 1.8;
  text-align: left;
}
body.tax-product_cat #main .woocommerce-breadcrumb a { color: #61584d; }
body.tax-product_cat #main .woocommerce-products-header {
  margin: 0 0 28px;
  padding: 28px 24px;
  border-top: 3px solid #e64a00;
  border-bottom: 1px solid #e7dfd2;
  border-radius: 8px;
  background: linear-gradient(110deg, #fffaf3, rgba(255,255,255,.8));
}
body.tax-product_cat #main .woocommerce-products-header__title {
  margin: 0;
  color: #333;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
body.tax-product_cat #main .term-description { margin-top: 14px; font-size: .9rem; line-height: 1.9; }
body.tax-product_cat #main .term-description p { margin: 0 0 8px; }
body.tax-product_cat #main .woocommerce-result-count { margin: 0 12px 20px 0; line-height: 44px; font-size: .85rem; color: #61584d; }
body.tax-product_cat #main .woocommerce-ordering { margin: 0 0 20px; max-width: 100%; }
body.tax-product_cat #main .woocommerce-ordering select {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d7cfc2;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: .85rem;
}
body.tax-product_cat #main ul.products {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.tax-product_cat #main ul.products::before,
body.tax-product_cat #main ul.products::after { content: none; }
body.tax-product_cat #main ul.products li.product {
  box-sizing: border-box;
  float: none;
  clear: none;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 0 16px;
  border: 1px solid #ece6dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(75,60,40,.08);
  transition: box-shadow .2s, border-color .2s;
}
body.tax-product_cat #main ul.products li.product:hover { border-color: #dbb795; box-shadow: 0 7px 22px rgba(75,60,40,.13); }
body.tax-product_cat #main ul.products li.product a { text-decoration: none; }
body.tax-product_cat #main .woocommerce-loop-product__link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: #333; }
body.tax-product_cat #main .thanks-category-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  background: #fff;
}
/* 元CSSの height:200px !important をカテゴリ内だけ上書き */
body.tax-product_cat #main ul.products li.product a img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1;
  margin: 0;
  padding: 12px;
  object-fit: contain !important;
}
body.tax-product_cat #main ul.products li.product.outofstock .thanks-category-image img { opacity: .55; }
body.tax-product_cat #main .thanks-category-soldout {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-radius: 4px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
}
body.tax-product_cat #main ul.products li.product .onsale { top: 8px; left: 8px; right: auto; margin: 0; z-index: 2; }
body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 14px 16px 10px;
  color: #333;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.tax-product_cat #main ul.products li.product .price {
  margin: auto 0 0;
  padding: 8px 16px 16px;
  color: #c43d00;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}
body.tax-product_cat #main ul.products li.product .price del { color: #736b60; font-size: .8em; }
body.tax-product_cat #main ul.products li.product .price ins { background: none; }
body.tax-product_cat #main ul.products li.product .star-rating { margin: 4px 16px; }
body.tax-product_cat #main ul.products li.product .button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 16px;
  padding: 10px 8px;
  border: 1px solid #e5d8ca;
  border-radius: 6px;
  background: #fff7ee;
  color: #9b3508;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
body.tax-product_cat #main ul.products li.product .button:hover { background: #e64a00; color: #fff; border-color: #e64a00; }
body.tax-product_cat #main ul.products li.product .added_to_cart { padding: 10px 16px 0; color: #9b3508; }
body.tax-product_cat #main ul.products li.product-category .woocommerce-loop-category__title { margin: 0; padding: 16px; color: #333; font-size: 1rem; line-height: 1.6; }
body.tax-product_cat #main ul.products li.product-category mark { background: transparent; color: #736b60; }
body.tax-product_cat #main nav.woocommerce-pagination { margin-top: 36px; }
body.tax-product_cat #main nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border: 0; margin: 0; padding: 0; }
body.tax-product_cat #main nav.woocommerce-pagination ul li { border: 0; float: none; }
body.tax-product_cat #main nav.woocommerce-pagination ul li a,
body.tax-product_cat #main nav.woocommerce-pagination ul li span {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #dfd6c8; border-radius: 6px; background: #fff; color: #51483d;
}
body.tax-product_cat #main nav.woocommerce-pagination ul li .current { background: #333; border-color: #333; color: #fff; }
body.tax-product_cat #main nav.woocommerce-pagination ul li a:hover { background: #fff2e3; }
body.tax-product_cat #main a:focus-visible,
body.tax-product_cat #main select:focus-visible { outline: 3px solid #bd4000; outline-offset: 3px; }
@media (max-width: 1023px) {
  body.tax-product_cat #main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 767px) {
  body.tax-product_cat { background-image: linear-gradient(#edf2fa, #f6f3ec 480px); }
  body.tax-product_cat main#main { margin-top: 16px; padding: 16px 16px 32px; }
  body.tax-product_cat #main .woocommerce-breadcrumb { margin-bottom: 18px; }
  body.tax-product_cat #main .woocommerce-products-header { padding: 20px 16px; margin-bottom: 20px; }
  body.tax-product_cat #main .woocommerce-result-count { float: none; margin: 0 0 8px; line-height: 1.7; }
  body.tax-product_cat #main .woocommerce-ordering { float: none; margin-bottom: 20px; }
  body.tax-product_cat #main .woocommerce-ordering select { width: 100%; }
  body.tax-product_cat #main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.tax-product_cat #main ul.products li.product .woocommerce-loop-product__title { padding: 12px 10px 8px; font-size: .8rem; line-height: 1.6; }
  body.tax-product_cat #main ul.products li.product .price { padding: 8px 10px 12px; font-size: 1rem; }
  body.tax-product_cat #main ul.products li.product .button { margin: 0 10px; font-size: .75rem; }
  body.tax-product_cat #main .thanks-category-soldout { padding: 10px 12px; font-size: .8rem; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  body.tax-product_cat #main ul.products li.product { transition: none; }
}
