/* ************************* */
/* temporary CSS  */
/* ************************* */
ul.products li.product .woocommerce-LoopProduct-link{
	display: none !important;
}

/* ///////////////////////////// */
/* content-product.phpのスタイル */
/* ///////////////////////////// */
.product-tags {
  color: #C79534;
  font-weight: 500;
}

/* ///////////////////////////// */
/* atchive-products.phpのスタイル */
/* ///////////////////////////// */
.site-content {
  /* background: #2a2c2f; */
  background-image: url(https://sushitrain.com.au/wp-content/uploads/2025/02/products-backimg-light.png);
}

img.category-icon {
  width: 80px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

h3.woocommerce-loop-product__title {
  color: #fff;
  font-size: 16px !important;
}

p.woocommerce-result-count {
  color: #fff;
  font-weight: 600;
}

.short-description {
  display: none !important;
}

/* ///////////////////////////// */
/* modal */
/* ///////////////////////////// */
h2.modal-title {
  text-align: center;
}

#product-modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

#modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 20px;
  width: 65%;
  color: #333;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 閉じるボタン（×） */
#modal-close {
  position: absolute;
  top: 0px;
  right: 20px;
  cursor: pointer;
  font-size: 50px;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
  z-index: 1000;
}

#modal-close:hover {
  color: var(--secondary);
}

.modal-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.allergy-images {
  max-width: 45%;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-images {
  max-width: 50%;
  flex: 1;
}

.modal-images img {
  margin: 0 auto;
}

.allergy-images table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.allergy-images th,
.allergy-images td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.allergy-images th {
  text-align: left;
}

.allergy-images td {
  text-align: right;
}

.allergy-images .allergy-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* アイコンを折り返す */
}

.allergy-images img {
  width: 50px;
  height: 50px;
}

/* 1024px以下 */
@media (max-width: 1024px) {
  #modal-content {
    width: 85%;
    height: fit-content;
    margin: auto;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  #modal-close {
    top: -15px;
    right: 15px;
  }

  h2.modal-title {
    width: 85%;
    margin: 0 auto;
    font-size: 1.5em;
    line-height: 1;
  }

  .modal-container {
    flex-direction: column;
    align-content: center;
  }

  .modal-images {
    max-width: 100%;
    margin: 20px auto;
  }

  .allergy-images {
    max-width: 100%;
  }
}