@charset "utf-8";
/* CSS Document */


* {
  box-sizing: border-box;
}
.container-art {
	margin: 0 auto;
	/*padding: 5px;*/
	padding: 13px;
	width: 100%;
	max-width: 1000px;
	background-color: #efefef;
}
.art-box {
    margin: 0 auto;
    width: 100%;
	max-width: 1000px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.art-box.pink {
	background: #999;
}
.art-item {
	border: solid 1px #dfdfdf;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	height: auto;
	width: calc((100% - 60px) / 4);
	background: #dfdfdf;
	border-radius: 10px;
}
.art-item {
	display: block;
	line-height: 0;
	position: relative;
}
.art-item a {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
}
.art-item img {
	transition: transform .6s ease;/**/
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	object-fit: contain;  /* 画像をアスペクト比を維持して親要素にフィットさせる*/
}
.art-item:hover img {
	transform: scale(1.08);
}
.hover-mask {
  align-items: center;
  background: rgba(0, 0, 0, .3);
  bottom: 0;
  color: #fff;
  display: flex;
  height: auto;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity .6s ease;
  width: 100%;
}
.hover-mask:hover {
	opacity: 1;
}
.hover-mask span {
	width: 80%;
	text-align: center;
	display: block;
	line-height: 1.5;
}
@media screen and (max-width: 768px) {
	.art-box {
		gap: 2vw;
	}
	.art-item {
		width: calc((100% - 3vw) / 2);
	}
}

