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

/*======================================
　共通部分
======================================*/

* {
	list-style: none;
}

html {
    font-size: 100%;
}
body{
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
    line-height: 1.7;
    color: #201F1F;
}

body {
	background-color: antiquewhite;
}

/*======================================
　メイン
======================================*/

h1 {
	text-align: center;
	margin: 50px;
	font-family: "M PLUS 1p", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 2rem;
}

.grid {
    display: grid;
    gap: 3rem 2rem;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
	width: 80%;
	margin: 0 auto;
}

.item p {
  margin-top: 0.5rem;
}


.item {
  position: relative;
}

.item img {
    aspect-ratio: 1/1;
    object-fit: cover;
	width: 160px;
	height: 160px;
	display: block;
	margin: 0 auto;
}

.item img.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.item:hover img.hover {
  opacity: 1;
}

.item:hover img.normal {
  opacity: 0;
}


.item a {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: .875rem;
}

.item a:hover {
  color: #007acc;
  text-decoration: underline;
}



/* タブレット版
-------------------------------*/

@media (max-width: 768px) and (min-width: 390px) {
	
	.h1 {
		font-size: 1.5rem;
	}

	.grid {
		gap: 3rem 2rem;
		grid-template-columns: repeat(3, 1fr);
		text-align: center;
		width: 100%;
		margin: 0 auto;
    }
	
	.item-big {
		grid-column: 1/3;
		grid-row: 1/3;
	}
	
	.item-big img {
		height: 80.5%;
		width: 80%;
		pacity: 0.8;
	}
	
}

/* スマートフォン版
------------------------------- */
@media (max-width: 390px) {
	
	.h1 {
		font-size: 1.25rem;
	}

	.grid {
		grid-row-gap: 2rem;
		grid-template-columns: 1fr;
		width: 90%;
	}
}

	
