@charset "UTF-8";

/*
.results
---------------------------*/
.results {
	h3 {
		font-weight: 500;
		font-size: var(--font-2xl);
		margin-bottom: .75em;
		color: var(--color-primary);
	}
	.results-box {
		background-color: var(--color-primary-bg);
		padding: 10px 2vw;
		border-radius: 5px;
		dl {
			display: flex;
			&+dl {
				padding-top: 15px;
			}
		}
		dt {
			color: var(--color-primary);
			font-weight: 500;
		}
	}
	@media (min-width: 1000px) {
		.results-box {
			padding: 30px;
			dl {
				display: flex;
				&+dl {
					padding: 0 0 0 30px;
				}
			}
		}
		.results-box-inner {
			display: flex;
		}
	}
}
.searchBox {
	margin-top: 0;
}
/*
.search-result
---------------------------*/
.search-result {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	&#free-list {
		padding-top: 20px;
		margin-top: 30px;
		border-top: 1px solid var(--color-border-2);
		.search-box {
			&:first-of-type {
				margin-top: 0;
			}
			.address {
				padding-bottom: 0;
			}
		}
	}
	.search-box {
		position: relative;
		background-color: var(--color-primary-bg);
		text-align: left;
		box-shadow: var(--card-shadow);
		border-radius: var(--radius03);
		border: 1px solid #fff;
		width: 90%;
		margin: auto;
		transition: all 0.3s ease-out;
		&:hover {
			background-color: rgba(250,248,244,.65);
		}
		&+.search-box {
			margin-top: 30px;
		}
		>a {
			display: block;
			border-radius: var(--radius03);
			box-shadow: 0 0 0 1px var(--color-border-1);
			transition: all 0.3s ease-out;
			height: 100%;
			&:hover {
				box-shadow: 0 0 0 1px var(--color-primary);
			}
		}
		.image {
			position: relative;
			text-align: center;
			border: 1px solid var(--color-border-2);
			border-radius: var(--radius03);
			overflow: hidden;
			aspect-ratio: 3 / 2;
			background-color: #fff;
			/*display: flex;
			justify-content: center;
			align-items: center;*/
			img {
				/*object-fit: cover;
				width: auto;
				max-height: 100%;*/
				position: absolute;
				inset: 0;
				width: 100%;
				height: 100%;
				object-fit: contain;
			}
		}
		.detail {
			padding: 20px 4vw;
		}
		&:hover {
			.minit {
				&:after {
					right: 12px;
				}
			}
		}
		.name {
			font-weight: 600;
			font-size: var(--font-xl);
			line-height: 1.4;
			padding-bottom: 10px;
		}
		.address {
			padding-bottom: 1em;
		}
		.info {
			font-size: var(--font-s);
		}
		.tag-content {
			display: flex;
			flex-wrap: wrap;
			padding: 15px 0;
			.tag {
				background-color:  var(--color-secondary);
				color: #fff;
				font-size: var(--font-xs);
				line-height: 1;
				display: inline-block;
				padding: 6px;
				margin-right: 6px;
				margin-bottom: 8px;
			}
		}
	}
	@media (min-width: 1000px) {
		&#free-list {
			padding-top: 50px;
			margin-top: 60px;
		}
		.search-box {
			width: calc((100% - 64px) / 3);
			margin: inherit;
			margin-right: 32px;
			&+.search-box {
				margin-top: 0;
			}
			&:nth-of-type(3n) {
				margin-right: 0;
			}
			&:nth-of-type(n + 4) {
				margin-top: 50px;
			}
			.name {
				font-weight: 500;
			}
			.detail {
				padding: 20px;
			}
			.info {
				font-size: var(--font-m);
			}
		}
		
	}
}


/*
.pager
---------------------------*/
.pager {
	ul {
		text-align: center;
		padding-top: 30px;
	}
	li,
	li:nth-child(-n+2),
		li+li,
		li:nth-child(even) {
			width: auto;
			display: inline-block;
			vertical-align: middle;
			color: #000;
			margin: 0 6px;
			padding: 0;
			float: none;
			a {
				display: block;
				padding: 7px;
				text-decoration: none;
			}
			.current {
				display: block;
				padding: 7px;
				font-weight: 600;
				color: v.$mainColor;
				border-bottom: 1px solid var(--color-primary);
			}
	}
	@media (min-width: 1000px) {
		ul {
			padding-top: 50px;
		}
		li,
		li:nth-child(-n+2),
		li+li,
		li:nth-child(even) {
			font-size: 16px;
			margin: 0 8px;
			a,
			.current {
				padding: 8px;
			}
		}
	}
}

.detail-content {
	.info {
		padding-bottom: 1em;
	}
	.detail-top-content {
		padding-bottom: 30px;
		.image {
			position: relative;
			text-align: center;
			border: 1px solid var(--color-border-2);
			border-radius: var(--radius03);
			box-shadow: var(--card-shadow);
			overflow: hidden;
			aspect-ratio: 3 / 2;
			background-color: #fff;
			max-height: 340px;
			/*display: flex;
			justify-content: center;
			align-items: center;
			padding: 5px;*/
			img {
				/*object-fit: cover;
				width: auto;
				max-height: 100%;*/
				position: absolute;
				inset: 0;
				width: 100%;
				height: 100%;
				object-fit: contain;
			}
		}
		.detail {
			padding: 20px 4vw;
		}
		.name {
			font-weight: 500;
			font-size: var(--font-2xl);
			line-height: 1.4;
			padding-bottom: 10px;
		}
		.tag-content {
			display: flex;
			flex-wrap: wrap;
			padding: 15px 0;
			.tag {
				background-color:  var(--color-secondary);
				color: #fff;
				display: inline-block;
				font-size: var(--font-xs);
				line-height: 1;
				padding: 6px;
				margin-right: 6px;
				margin-bottom: 8px;
			}
		}
	}
	@media (min-width: 1000px) {
		.info {
			padding-bottom: 2em;
		}
		.detail-top-content {
			display: flex;
			justify-content: space-between;
			padding-bottom: 50px;
			>div {
				width: calc((100% - 32px) / 2);
			}
			.detail {
				padding: 0;
			}
		}
	}
}