@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
*/

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 40px;
}

.product-card {
  display: block;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

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

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #5867c1;
}

.product-condition {
  color: #666;
  margin-bottom: 12px;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
}
.center {
	text-align:center;
}
.product-price {
	color:#000;
}
.product-price span {
	color:#FF0000;
	font-size: 23px;
	
}
.item-list {
    text-decoration: none;
    background: #f1f1f1;
}
a.item-list::hober {
	opacity:0.5;
}

.product-button-list {
	margin:5px 0px 15px 0px;
}

/* category-main */
.category-main {
    width: 15%;
    display: inline-block;
}
.products-content {
    width: 85%;
    display: inline-block;
    vertical-align: top;
}
a.product-button {
	background-color: #04AA6D;
    color: #EEE;
    margin-right: 5px;
    padding: 3px 10px;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    width: 88%;
}










/* 全体のスタイル */
main {
  font-family: "Arial", sans-serif;
  color: #333;
  line-height: 1.6;
}

/* 見出しのスタイル */
h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #19448e;
  text-align: center;
}

h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #19448e;
}

/* 検索フォームのスタイル */
#searchform {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

#searchform input[type="text"] {
  padding: 12px;
  width: 550px;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: #f1f1f1;
}

#searchform button {
  padding: 12px 20px;
  background-color: #19448e;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* カテゴリーボタンのスタイル */
.category-main {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.product-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #19448e;
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.product-button:hover {
  background-color: #132e6b;
}

/* 商品リストのスタイル */
.products-content {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);	
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1023px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.item-list {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
	
  background-color: #f7f7f7;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.item-list:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);	
}

.item-list img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.item-list .product-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #19448e;
}

.item-list .product-price {
  font-size: 18px;
  color: #19448e;
  font-weight: bold;
}
.p-detail-box {
	padding: 25px 10px;
}




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

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){

}

/*834px以下*/
@media screen and (max-width: 834px){
	#searchform input[type="text"] {
	  width: 300px;
	}
	.item-list {
		padding:0px;
	}
	.p-detail-box{
		padding:1rem;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
	.category-main {
		display:block;
		width:100%;
	}
	a.product-button {
		display:inline-block;
		width:auto;
	}
	.item-list {
		padding:0px;
	}
	.products-content {
		padding:15px;
		display:block;
    	width: 98%;
	}
}
