﻿/* Grid layout  */
.grid {
	display: grid;
	grid-gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
	grid-auto-rows: 150px;
	grid-auto-flow: row dense;
	line-height: 20px;
	
}
/* Items  */
.item {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	background: #0c9a9a;
	color: #fff;
	grid-column-start: auto;
	grid-row-start: auto;
	color: #fff;
	
}
.item{
	background: url("https://visipri.com/size/fryer/img/chirashi_890x224px.webp");
	background-size: cover;
	background-position: center;
	-webkit-box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
	box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
	-webkit-transition: -webkit-transform 0.3s ease-in-out;
	transition: -webkit-transform 0.3s ease-in-out;
	transition: transform 0.3s ease-in-out;
	transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
	cursor: pointer;
	counter-increment: item-counter;
	border-bottom: 3px solid rgba(0,144,255,0.8);
}
/* End item */

/* categories || Examples Action, Romance, New, And Popular Today */
.item span {
	width: auto;
	margin: 20PX;
	z-index: 10;
	padding: 7px;
	background: -webkit-linear-gradient(to right, #6bb6ff, #4f96f6);
  background: linear-gradient(to right, #6bb6ff, #4f96f6);
	border-radius: 4px;
  display:inline-block;
  position: absolute;
  top: -7px;
  left: -4px;
}

.popular{
	width: 100px;
	margin: 20PX;
	z-index: 10;
	padding: 7px;
	background: #9D50BB; 
	background: -webkit-linear-gradient(to right, #6E48AA, #9D50BB);  
	border-radius: 50px 120px 120px;
}
.action{
	width: 16%;
	margin: 20PX;
	z-index: 10;
	padding: 7px;
	background: #50C9C3;  
	background: -webkit-linear-gradient(to right, #96DEDA, #50C9C3);  
	background: linear-gradient(to right, #96DEDA, #50C9C3); 
}
.romance{
	width: 24%;
	margin: 20PX;
	z-index: 10;
	padding: 7px;
	background: #24C6DC; 
	background: -webkit-linear-gradient(to right, #514A9D, #24C6DC);  
	background: linear-gradient(to right, #514A9D, #24C6DC); 

}

.f-01 {
    background-image: url("img/kyodai01.webp");
    background-size: contain; /* 画像全体を枠内に収める */
    background-position: 50% 0%; /* 左右は中央（50%）、上下は40%の位置に調整 */
    background-repeat: no-repeat; /* 画像の繰り返しを防ぐ */
}

.f-02 {
    background-image: url("img/kyodai02.webp");
	background-size: contain;
    background-position: 50% -60%;
    background-repeat: no-repeat;
}

.f-03 {
    background-image: url("img/kyodai03.webp");
	background-size: contain;
    background-position: 50% 0%;
    background-repeat: no-repeat;
}

.f-04 {
    background-image: url("img/kyodai04.webp");
	background-size: contain;
    background-position: 50% -60%;
    background-repeat: no-repeat;
}

.item:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 0.5;
	-webkit-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
	
}

.item:hover {
	-webkit-transform: scale(1.05);
	transform: scale(1.05);
}

.item:hover:after {
	opacity: 0;
}

.f-01 {
	grid-row-end: span 2;
}

.f-02 {
	grid-row-end: span 2;
}

.f-03 {
	grid-row-end: span 2;
}

.f-04 {
	grid-row-end: span 2;
}

.medium {
	grid-row-end: span 2;
}

.large {
	grid-row-end: span 3;
}

.full {
	grid-column-end: auto;
}

@media screen and (min-width: 768px) {
	.full {
		grid-column: 1/-1;
		grid-row-end: span 2;
	}
}


.details {
	position: relative;
	z-index: 1;
	padding: 15px;
	background: #fff;
	text-transform: lowercase;
	letter-spacing: 1px;
	color: #828282;
}

.details:before {
	font-weight: bold;
	font-size: 1.1rem;
	padding-right: 0.5em;
	color: #444;
}