@charset "UTF-8";
/*
施工例一覧ページ用スタイル
*/

/* ドロップダウンリスト表示 */
.select {
	position: relative;
	display: inline-block;
	width: 100%;
	height: 40px;
	margin-bottom: 10px;
	border: 2px solid #f8ae5d;
	border-radius: 5px;
	background-color: #fff;
}
.select > label {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 10px 0 10px 10px;
	line-height: 16px;
	overflow: hidden;
}
.select > input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	clip: rect(0, 0, 0, 0)\0; /* IE */
	border-radius: 5px;
}
.select > input ~ .dropdown {
	visibility :hidden;
}
.select > input:checked ~ .dropdown {
		visibility: visible;
}

.dropdown {
	position: absolute;
	top: 100%;
	width: 100%;
	max-height: 60vh;
	overflow-x: hidden;
	overflow-y: auto;
	background: white;
	border-radius: 5px;
	box-shadow: 0px 1px 4px rgba(0, 0, 0, .25);
	z-index: 1;
}
.dropdown li label {
	display: inline-block;
	width: 100%;
	padding: 5px 2px 5px calc(10px + 1.5em);
}
.dropdown li label:hover,
.dropdown li label:focus-within {
	background-color: #f1f0ef;
}

.dropdown label {
	position: relative;
}
.dropdown label input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	clip: rect(0, 0, 0, 0)\0; /* IE */
}
.dropdown label input + span {
	position: absolute;
	display: block;
	top: calc(5px + .25em);
	left: 10px;
	width: 1em;
	height: 1em;
	border: 1px solid #f8ae5d;
	border-radius: 50%;
	pointer-events: none;
	box-shadow: inset 0 0 0 2px #fff;
	background-color: #fff;
}
.dropdown label input:checked + span {
	background-color: #f8ae5d;
}
.dropdown li li:first-child label input + span {
	top: calc(10px + .25em);
	left: 10px;
}

/* 「分類」の装飾 */
.select-type > label {
	background: url(../img/arrow_b.gif) right 50% no-repeat;
	background-size: 30px;
}

.result-text {
	font-size: 18px;
	font-weight: 500;
}

.sekourei {
    margin-top: 10px;
    margin-bottom: 30px;
}

.sekourei-item {
    display: inline-block;
    vertical-align: top;
	width: calc(50% - 10% / 7);
	margin-top: 0;
	margin-left: 0;
	margin-right: calc(20% / 7);
	margin-bottom: 30px;
    line-height: 1;
    text-align: center;
}
.sekourei-item:nth-child(2n) {
    margin-right: 0;
}

.sekourei-number {
    display: inline-block;
	margin-bottom: 2px;
}

.sekourei-photo {
    max-width: 224px;
    max-height: 224px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 10px;
	background-color: #faf8f6;
	vertical-align: baseline;
}

.jigyousya-name {
    max-height: 2.5em; /* 文字サイズに合わせて2行分 */
	font-size: 1rem; /* IE */
	font-size: min(1rem, calc(.5rem + 8vw / 4.8)); /* 幅480px未満の画面で文字サイズを縮小 */
	font-weight: 500;
    line-height: 1.25;
    overflow: hidden;
    /* 高さを2行に制限し、省略記号を付ける */
    display: block; /* IE */
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}
.sekourei-title {
    max-height: 5em; /* 文字サイズに合わせて4行分 */
	font-size: 1rem; /* IE */
	font-size: min(1rem, calc(.5rem + 8vw / 4.8)); /* 幅480px未満の画面で文字サイズを縮小 */
    line-height: 1.25;
    overflow: hidden;
    /* 高さを4行に制限し、省略記号を付ける */
    display: block; /* IE */
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}
