@charset "utf-8";

body {
	background-color: var(--lightblue);
}

.post-type-archive-industrial-materials {
	.page-title {
		&.topimage {
			&::before {
				background-image: url(../img/topimage_industrial_materials.jpg);
				@media (width <= 800px) {
					background-image: url(../img/topimage_industrial_materials_sp.jpg);
				}
			}
		}
	}
}
.post-type-archive-industrial-products {
	.page-title {
		&.topimage {
			&::before {
				background-image: url(../img/topimage_industrial_products.jpg);
				@media (width <= 800px) {
					background-image: url(../img/topimage_industrial_products_sp.jpg);
				}
			}
		}
	}
}
.post-type-archive-living-lifeline {
	.page-title {
		&.topimage {
			&::before {
				background-image: url(../img/topimage_living_lifeline.jpg);
				@media (width <= 800px) {
					background-image: url(../img/topimage_living_lifeline_sp.jpg);
				}
			}
		}
	}
}

.page-title {
	&.topimage {
		margin-bottom: 80px;
		padding-bottom: 40px;
		@media (width <= 800px) {
			height: 100%;
			padding-bottom: 16px;
			margin-bottom: 40px;
		}
		&::before {
			position: absolute;
			left: 0;
			top: 96px;
			width: 100%;
			height: calc(100% - 96px);
			content: "";
			background-repeat: no-repeat;
			background-position: left top;
			background-size: cover;
			pointer-events: none;
			z-index: 0;
			@media (width <= 800px) {
				top: 72px;
				height: calc(100% - 72px);
			}
		}
		.breadcrumb {
			p {
				color: var(--white);
				a {
					color: var(--white);
				}
			}
		}
		h1 {
			border-bottom: 1px solid var(--white);
			padding-bottom: 16px;
			margin-bottom: 24px;
			@media (width <= 800px) {
				border-bottom: none;
				padding: 0;
				margin-bottom: 60px;
			}
			.jp {
				color: var(--white);
			}
			.en {
				color: var(--white);
				@media (width <= 800px) {
					line-height: 1.07;
				}
			}
		}
		p {
			position: relative;
			color: var(--white);
			z-index: 1;
			&.read-page-title {
				font-size: 24px;
				margin-bottom: 16px;
				@media (width <= 800px) {
					font-size: 20px;
					margin-bottom: 8px;
				}
			}
			&.cap-page-title {
				margin-bottom: 0;
				@media (width <= 800px) {
					font-size: 15px;
				}
			}
		}
	}
	&.simple {
		background-color: var(--white);
		margin-bottom: 80px;
	}
}


article {
	width: calc(100% - 30px);
	max-width: 1264px;
	background-color: var(--white);
	margin: 0 auto 80px;
	padding: 80px 0px;
	@media (width <= 800px) {
		padding: 40px 0;
		margin-bottom: 40px;
	}
	h1 {
		color: var(--blue);
		font-size: 24px;
		font-weight: 500;
		list-style: 1.46;
		margin-bottom: 24px;
		@media (width <= 800px) {
			font-size: 20px;
			margin-bottom: 40px;
		}
	}
	h2 {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 16px;
		font-size: 16px;
		border-left: 5px solid var(--blue);
		padding-left: 12px;
		margin-bottom: 24px;
		a {
			display: inline-block;
			color: var(--darkblue);
			font-size: 12px;
			font-weight: 400;
		}
		.sub-title {
			display: inline-block;
			color: #5D5D5D;
			font-size: 12px;
			font-weight: 400;
			line-height: 1;
			@media (width <= 800px) {
				position: absolute;
				left: -5px;
				bottom: -24px;
			}
		}
	}
}


/* products-filter */
.products-filter {
	display: flex;
	justify-content: space-between;
	border: 1px solid var(--lightgray);
	border-radius: 8px;
	margin-bottom: 88px;
	padding: 32px;
	@media (width <= 800px) {
		flex-direction: column;
		gap: 45px 0;
		border: none;
		padding: 0;
		margin-bottom: 45px;
	}
	h2 {
		margin-bottom: 12px;
	}
	.l-filter {
		width: 100%;
		ul {
			display: flex;
			flex-wrap: wrap;
			gap: 9px;
			margin: 0;
			padding: 0;
			li {
				margin: 0;
				padding: 0;
				a {
					position: relative;
					display: flex;
					color: var(--gray-70);
					font-size: 12px;
					text-decoration: none;
					border: 1px solid var(--lightgray);
					border-radius: 2px;
					padding: 6px 10px;
				}
			}
		}
	}
	/*.r-filter {
		width: 51%;
		@media (width <= 800px) {
			width: 100%;
		}
		h2 {
			@media (width <= 800px) {
				margin-bottom: 34px;
			}
		}
	}*/
}


/* search-result */
.search-result {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 45px;
	}
}



/* products-search */
.products-search {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 45px;
	}
	h2 {
		@media (width <= 800px) {
			margin-bottom: 34px;
		}
	}
}
.hit {
	font-size: 12px;
	margin-bottom: 16px;
	@media (width <= 800px) {
		font-size: 14px;
		margin-bottom: 24px;
	}
}


/* products-category */
.products-category {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 45px;
	}
	&.division {
		.category-content {
			gap: 40px 2.8%;
			background: none;
			padding: 0;
			@media (width <= 800px) {
				gap: 20px 0;
			}
			.category-detail {
				width: 31.3%;
				background-color: var(--lightblue);
				border-radius: 5px;
				padding: 15px;
				@media (width <= 800px) {
					width: 100%;
					background: none;
					padding: 0;
				}
			}
		}
	}
	.category-content {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		gap: 24px 5.3%;
		background-color: var(--lightblue);
		border-radius: 5px;
		padding: 24px;
		@media (width <= 800px) {
			flex-direction: column;
			gap: 20px 0;
			background: none;
			padding: 0;
		}
		.category-detail {
			width: 28.2%;
			@media (width <= 800px) {
				width: 100%;
			}
			h3 {
				margin: 0;
				a {
					display: flex;
					align-items: center;
					color: var(--white);
					font-size: 16px;
					font-weight: 500;
					text-decoration: none;
					background-color: var(--darkblue);
					border-radius: 5px;
					padding: 12px 24px;
				}
			}
			ul {
				margin: 16px 0 0;
				padding: 0 24px;
				li {
					width: 100%;
					margin: 0;
					padding: 0;
					border-top: 1px solid var(--lightgray);
					a {
						display: flex;
						align-items: center;
						color: var(--darkblue);
						font-size: 14px;
						font-weight: 500;
						text-decoration: none;
						padding: 12px 0;
						transition: opacity 0.3s ease-out;
						@media (width >= 800px) {
							&:hover {
								opacity: 0.7;
							}
						}
					}
				}
			}
		}
	}

}

/* products-pickup */
.products-pickup {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 56px;
	}
}


/* products-content */
.products-content {
	display: flex;
	flex-wrap: wrap;
	gap: 44px 3%;
	@media (width <= 800px) {
		flex-direction: column;
		gap: 44px 0;
	}
	a {
		position: relative;
		display: block;
		width: 31.3%;
		text-decoration: none;
		@media (width >= 800px) {
			&:hover {
				.entry-title {
					opacity: 0.7;
				}
				.entry-more {
					color: var(--white);
					&::before {
						width: 100%;
						opacity: 1;
					}
				}
			}
		}
		@media (width <= 800px) {
			width: 100%;
		}
		.category-head {
			font-size: 14px;
			line-height: 1.5;
			margin-bottom: 10px;
		}
		.products-img {
			width: 100%;
			margin-bottom: 12px;
			img {
				width: 100%;
				height: 212px;
				object-fit: cover;
				@media (width <= 800px) {
					height: 100%;
				}
			}
		}
		.entry-title {
			margin-bottom: 20px;
			transition: opacity 0.3s ease-out;
			.jp {
				display: block;
				color: var(--blue);
				font-size: 18px;
				font-weight: 700;
				line-height: 1.5;
				margin-bottom: 8px;
			}
			.en {
				display: block;
				font-size: 16px;
				font-weight: 400;
				line-height: 1.3;
			}
		}
		.entry-tag {
			display: flex;
			flex-wrap: wrap;
			gap: 8px;
			margin-bottom: 32px;
			@media (width <= 800px) {
				margin-bottom: 24px;
			}
			span {
				display: inline-flex;
				font-size: 14px;
				background-color: var(--lightgray);
				border-radius: 8px;
				padding: 6px 8px;
			}
		}
		.entry-more {
			position: relative;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			max-width: 240px;
			min-height: 40px;
			color: var(--blue);
			font-weight: 500;
			border: 1px solid var(--blue);
			border-radius: 9999px;
			background-color: var(--white);
			margin: 0 auto;
			transition: color 0.3s ease-out;
			z-index: 1;
			@media (width <= 800px) {
				max-width: inherit;
			}
			&::before {
				position: absolute;
				left: 50%;
				top: 50%;
				translate: -50% -50%;
				width: 0;
				height: 100%;
				content: "";
				opacity: 0;
				background-color: var(--blue);
				border-radius: 9999px;
				pointer-events: none;
				z-index: -1;
				transition: all 0.3s ease-out;
			}
		}
	}
}


/* products-list */
.products-list {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 40px;
	}
	.products-content {
		a {
			overflow: hidden;
			padding-bottom: 40px;
			@media (width <= 800px) {
				padding-bottom: 0;
			}
			&::after {
				position: absolute;
				left: 0;
				bottom: 0;
				width: 103%;
				height: 1px;
				content: "";
				background-color: var(--lightgray);
				pointer-events: none;
				@media (width <= 800px) {
					display: none;
				}
			}
		}
	}
}




/* products-entry */
.products-entry {
	margin-bottom: 110px;
	h2 {
		margin-bottom: 30px;
		.jp {
			display: block;
			font-size: 30px;
		}
		.en {
			display: block;
		}
	}
	.products-img {
		margin-bottom: 50px;
	}
}



/* entry-list */
.entry-list {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 40px;
	}
}


/* products-tag */
.products-tag {
	margin-bottom: 110px;
	@media (width <= 800px) {
		margin-bottom: 40px;
	}
}


/* product-contact */
.product-contact {
	margin-bottom: 80px;
	@media (width <= 800px) {
		margin-bottom: 40px;
	}
}
.product-contact-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--lightblue);
	border-radius: 16px;
	padding: 56px 48px;
	@media (width <= 800px) {
		display: block;
		padding: 32px 12px;
	}
	.l-contact {
		width: 47.4%;
		@media (width <= 800px) {
			width: 100%;
			margin-bottom: 24px;
		}
		h2 {
			border: none;
			border-bottom: 1px solid #D7D9DF;
			padding: 0 0 4px;
			margin: 0 0 12px;
			.en {
				color: var(--blue);
				font-size: 40px;
				font-weight: 600;
				@media (width <= 800px) {
					font-size: 32px;
				}
			}
		}
		p {
			font-size: 18px;
			font-weight: 700;
			margin: 0;
			@media (width <= 800px) {
				font-size: 16px;
				line-height: 1.5;
			}
		}
	}
	a {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 47.4%;
		min-height: 146px;
		text-decoration: none;
		background-color: var(--white);
		border-radius: 8px;
		@media (width <= 800px) {
			width: 100%;
			min-height: 66px;
		}
		.contact-text {
			display: inline-block;
			position: relative;
			color: var(--blue);
			font-size: 22px;
			font-weight: 700;
			padding: 0 44px 0 56px;
			@media (width <= 800px) {
				font-size: 18px;
				padding: 0 24px 0 35px;
			}
			&::before {
				position: absolute;
				left: 0;
				top: 50%;
				translate: 0 -50%;
				width: 41px;
				height: 33px;
				content: "";
				background-image: url(../img/icon_contact_blue.svg);
				background-repeat: no-repeat;
				background-position: left center;
				pointer-events: none;
				@media (width <= 800px) {
					width: 23px;
					height: 18px;
					background-size: contain;
				}
			}
			.btn-arrow {
				position: absolute;
				right: 0;
				top: 50%;
				translate: 0 -50%;
				width: 19px;
				height: 19px;
				@media (width <= 800px) {
					width: 12px;
					height: 12px;
				}
				&::before {
					mask-size: 19px 19px;
					@media (width <= 800px) {
						mask-size: 12px 12px;
					}
				}
			}
		}
	}
}