@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.border {
  border: 1px solid;
  padding: 1rem;
  text-align: center;
  background-color: #ffbeda;
  line-height: 1.8;
  margin: 0 auto;
}
.high-light {
  background-color: yellow;
}
.red {
  color: red;
  font-weight: bold;
}

.base_items_list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* アイテム間の余白 */
}

.base_items p {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: bold;
  text-align: center;
  color: #199f72;
}

.product-card {
  flex: 0 0 calc(33.333% - 16px); /* PC で 3列 (33.33%) */
  box-sizing: border-box;
}

.product-card a {
  text-decoration: none;
}

.product-image {
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image:hover img {
}

.product-details {
  padding: 20px;
}
.product-details p {
  color: #000;
}

p.product-title {
  font-size: 1rem;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

p.product-price {
  font-size: 1.25rem;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

p.product-description {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #666;
  font-weight: 100;
}

.product-details.expand {
  height: auto;
}

.product-details .expand-button {
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

.product-details .expand-button:hover {
  color: #000;
  text-decoration: underline;
}
.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.add-to-cart,
.compare {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.add-to-cart {
  background-color: #666;
}

.add-to-cart:hover,
.compare:hover {
  opacity: 0.8;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
  .base_items_list {
    gap: 4px; /* アイテム間の余白 */
  }

  .product-card {
    flex: 0 0 calc(50% - 16px); /* 2列 (50%) */
  }
  p.product-description {
    display: none;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
  .product-card {
    flex: 0 0 calc(50% - 16px); /* 2列 (50%) */
  }
}
