@charset "utf-8";
@import "destyle.css";
@import "import-font.css";

body {
	background-color: #ebeeeb;
}

.container {
	padding-right: 10%;
	padding-left: 10%;
	padding-bottom: 32px;
}

h1 {
	font-family: "TsukuhouMincho";
	font-size: 3rem;
	padding: 20px;
}

.border {
	border-top: 2px solid rgb(0, 0, 0);
}

.grid {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(5, minmax(80px, auto));
	margin-bottom: 1rem;
	padding-top: 1rem;
}

.item {
	position: relative;
	box-shadow: 4px 4px 3px rgba(0, 0, 0, 0.381);
	min-height: 80px;
	padding: 10px;
	transition: all 0.3s ease;
}

.item a {
	display: block;
	width: 100%;
	height: 100%;
}

.item:hover {
	box-shadow: none;
	margin-top: 4px;
	margin-right: -4px;
	margin-bottom: -4px;
	margin-left: 4px;
	cursor: pointer;
}

.bgimg {
	background-image: linear-gradient(rgba(189, 188, 188, 0.516), rgba(0, 0, 0, 0.429) 85%),
		url(../assets/hanabi.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 10px;
	transition: all 0.3s ease;
}

#itemB {
	background-color: #f7c9db;
	background-image: none;
}

#itemC {
	background-color: #d5d570;
	background-image: url(../assets/nisyama.png);
	background-size: contain;
	background-position: right;
}

.bgimg::after {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	transition: all 0.3s ease;
	opacity: 0;
	background-image: linear-gradient(rgba(0, 0, 0, 0.354), rgba(0, 0, 0, 0.646));
	border-radius: 10px;
}

.bgimg:hover::after {
	opacity: 0.5;
}

.button {
	padding: 6%;
	background-color: #f7c9db;
	text-align: center;
	border-radius: 10px;
	transition: all 0.3s ease;
}

/*
.button:hover{
    background-color: #fcc4d9;
}
    */

.subject {
	font-family: "TsukuhouMincho";
	display: flex;
	justify-content: space-between;
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	z-index: 3;
}

.title {
	padding: 5px;
	font-size: 20px;
}

.arrow {
	text-align: right;
	font-size: 30px;
}

.black {
	color: black;
	border-bottom: 2px solid black;
}

.white {
	color: white;
	border-bottom: 2px solid white;
}

#itemA {
	grid-row: 1/4;
	grid-column: 1/4;
}
#itemB {
	grid-row: 1/4;
	grid-column: 4/6;
}

#itemC {
	grid-row: 4/6;
	grid-column: 1/4;
}
#itemE {
	grid-row: 4/6;
	grid-column: 4/6;
}

@media screen and (max-width: 800px) {
	.container {
		padding-left: 30px;
		padding-right: 30px;
	}

	.grid {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(4, minmax(80px, auto));
		gap: 10px;
	}

	.bgimg {
		min-height: 200px;
	}

	#itemA {
		grid-row: 1/2;
		grid-column: 1/3;
	}
	#itemB {
		grid-row: 2/3;
		grid-column: 1/3;
	}
	#itemC {
		grid-row: 3/4;
		grid-column: 1/3;
	}
	#itemE {
		grid-row: 4/5;
		grid-column: 1/3;
	}
}
