@charset "UTF-8";

#mainv {
	position: relative;
	height: 640px;
	margin-bottom: 12px;

	&::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(0deg, rgba(0, 47, 123, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
	}

	.container-inner {
		position: relative;
	}

	.slick-list,
	.slick-track,
	.slick-slide,
	.slick-slide>div {
		width: 100%;
		height: 100%;
	}

	.image-box {
		width: 100%;
		height: 100%;
		margin: 0;
		position: relative;

		.image {
			width: 100%;
			height: 100%;
			position: relative;
			background-size: cover;
			background-position: center;
			background-repeat: no-repeat;
			z-index: 2;
			display: none;

			&.image01 {
				display: block;
				background-image: url(../images/home/mainv/image/image01.jpg);
			}

			&.image02 {
				background-image: url(../images/home/mainv/image/image02.jpg);
			}

			&.image03 {
				background-image: url(../images/home/mainv/image/image03.jpg);
			}

			&.image04 {
				background-image: url(../images/home/mainv/image/image04.jpg);

				.catch-text {
					em {
						&:last-child {
							padding-right: 40px;
						}

						.deco {
							right: -23px;
							bottom: -28px;
							transform: rotate(180deg);
						}
					}
				}
			}
		}
	}

	.catch-box {
		z-index: 99;
		position: absolute;
		bottom: -5px;
		right: 0;
		line-height: 1;
		display: flex;
		align-items: center;
		left: 0;
		background-image: url(../images/home/image-message_desc.jpg);
		background-position: center top;
		background-repeat: no-repeat;
		background-size: cover;

		em {
			font-size: 2.4rem;
			font-weight: bold;
			position: absolute;
			right: 0;
			bottom: 65px;
			color: #fff;
		}
	}
}

#home-news {
	display: grid;
	grid-template-columns: 230px 1fr;
	/* grid-template-rows: repeat(2, 1fr); */
	grid-template-rows: 150px 1fr;
	gap: 0px;
	position: relative;
	margin-top: 42px;

	.titles {
		font-weight: bold;
		line-height: 1.4;
		margin-top: 4px;
		letter-spacing: 0;
	}

	.btn-type02 {
		/* position: absolute; */
		/* top: 150px; */
	}

	.news-list {
		margin-top: 10px;
	}

	.news-box {
		grid-row: span 2 / span 2;
		margin-top: 8px;
	}
}

#home-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 35px 30px;

	a {
		font-size: 1.8rem;

		color: var(--color-primary);
		text-decoration: none;
		text-align: center;
		transition: 0.2s;

		&:hover {
			text-decoration: underline;
			font-weight: bold;
			transition: 0.2s;
			position: relative;

			&::after {
				position: absolute;
				content: "";
				width: 108px;
				height: 113px;
				bottom: -18px;
				left: 50%;
				transform: translateX(-50%);
				background-image: url("../images/common/image-hover.svg");
				background-repeat: no-repeat;
				background-size: 108px auto;
			}
		}
	}

	figure {
		margin: 0;

		figcaption {
			margin-top: 10px;
			font-weight: bold;
		}
	}

}

@media all and (min-width: 751px) {

	/* MAINV */

}

@media only screen and (max-width: 750px) {

	/* MAINV */
	#mainv {
		height: 280px;
		margin-bottom: 150px;

		.container-inner {
			display: flex;
			flex-direction: column-reverse;
			margin: auto;
			margin-top: -75px;
		}

		.catch-box {
			display: block;
			position: static;

			img {
				max-width: 360px;
				margin: auto;
				display: block;
			}


			em {
				font-size: 2.0rem;
				padding: 0 10px;
				bottom: 90px;
				position: static;
				color: var(--color-primary);
				line-height: 1.6;
				text-align: center;
				display: block;
				margin-top: 20px;
			}
		}
	}

	#home-news {
		display: block;

		.news-list {
			margin-top: 10px;
		}

		.news-box {
			grid-row: span 2 / span 2;
		}
	}

	#home-tiles {
		gap: 20px 13px;

		a {
			font-size: 1.6rem;
			width: 48%;
		}

		figure {
			margin: 0;
		}

	}

}