/* 商品一覧（index.php） */

.category-tag {
	margin-top: 32px;
	padding-bottom: 32px;
	& p.title {
		display: inline-block;
	}
	& ul.flex {
		flex-wrap: wrap;
		gap: 16px 8px;
		margin-top: 12px;
	}
	& ul.flex li {
		display: inline-block;
		padding: 6px 16px;
		font-size: 14px;
		border-radius: 50px;
		background: #F8F5F0;
	}
}
.breadcrumb {
	margin-bottom: 16px;
	& ul {
		display: flex;
		flex-flow: row;
		flex-wrap: wrap;
		gap: 18px;
		padding-bottom: 12px;
		border-bottom: 1px dotted var(--border);
	}
	& ul li {
		display: inline-block;
		position: relative;
	}
	& ul li:not(:first-child)::before {
		position: absolute;
		content: '|';
		top: 50%;
		right: calc(100% + 6px);
		transform: translateY(-50%);
		font-size: 16px;
		font-family: var(--noto-sans);
		font-weight: 200;
	}
	& ul li a {
		color: #33A8D0;
	}
	& span.bold {
		font-weight: 700;
	}
	& p {
		padding: 16px 0;
	}
}
.category-list {
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
	width: 100%;
	gap: 32px 8px;
}
.category-list li {
	width: calc(50% - 4px);
	& img {
		width: 100%;
		object-fit: contain;
	}
	& p.title {
		margin-top: 8px;
	}
}

@media screen and (min-width: 768px) {
.category-list {
	grid-gap: 32px 16px;
}
.category-list li {
	width: calc(25% - 12px);
}
}


/* 商品詳細（detail.php） */
.product-detail {
	flex-flow: column;
	& .product-img-wrapper {
		margin-bottom: 30px;
	}
}

.product-detail h2 {
	margin: 0;
	padding-bottom: 20px;
	font-size: 20px;
	border-bottom: 1px dotted #ccc;
}

.product-detail .price-wrapper {
	display: flex;
	flex-flow: column;
	padding: 20px 0;
	border-bottom: 1px dotted #ccc;
	gap: 12px;
	& p.red {
		color: var(--red);
		font-size: 1.5rem;
		font-weight: bold;
	}
	& span {
		margin-left: 8px;
	}
}

.product-detail .category-wrapper {
	padding: 20px 0;
	border-bottom: 1px dotted #ccc;
	& a {
		color: #33A8D0;
	}
}

.product-detail .ec-link {
	padding: 20px 0;
	border-bottom: 1px dotted #ccc;
	& li.rakuten-logo {
		& a {
			display: block;
			height: 72px;
			margin-bottom: 12px;
			background: #BF0000;
			border-radius: 15px;
		}
		&  img {
			height: 100%;
			object-fit: contain;
		}
	}
	& li.yahoo-logo {
		text-align: center;
		& a {
			display: block;
			padding: 12px;
		}
		& img {
			width: 60%;
			max-height: 40px;
			margin-bottom: 12px;
			object-fit: contain;
		}
		& p {
			color: #33A8D0;
			word-break: keep-all;
			overflow-wrap: break-word;
		}
	}
}

.product-detail .product-description-header {
	padding: 20px 0;
	border-bottom: 1px dotted #ccc;
	& p {
		margin-bottom: 1rem;
		font-family: var(--noto-serif);
	}
	& p.yellow {
		color: #C38E12;
		font-size: 1.3rem;
	}
}

.product-detail .product-description-text {
	padding: 20px 0;
	font-size: 0.9rem;
	& p {
		margin-bottom: 1rem;
		line-height: 1.5;
	}
}
/* 商品一覧【PC】 */
@media screen and (min-width: 768px) {
.product-detail {
	flex-flow: row;
	align-items: start;
	gap: 40px;
	margin-top: 40px;
}
.product-detail h2 {
	font-size: 28px;
}
.product-detail .product-img-wrapper {
	width: 45%;
	& img {
		width: 100%;
		object-fit: cover;
	}
}
.product-detail .product-description-wrapper {
	width: 55%;
}
}