@charset "utf-8";

[class$="-box"] {
	margin: 100px auto 0;
}

.sell-detail-ttl {
	font-size: 28px;
	font-weight: 600;
	color: #015e9e;
	padding-bottom: 10px;
	padding-left: 1.8em;
	border-bottom: 1px solid #ccc;
	position: relative;
}

.sell-detail-ttl::before {
	content: "";
	display: block;
	width: 39px;
	height: 34px;
	background-image: url(../img/icon_house.svg);
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	top: -3px;
	left: 0;
}

.sell-detail-introduction{
    font-size: 22px;
    margin-top: 50px;
    line-height: 1.8;
}


/* モーダル */
.modal {
	background: #fff;
	padding: 40px 40px;
	margin-top: 20px;
}

.modal-ttl {
	font-size: 18px;
	line-height: 1.5;
	text-align: center;
	margin-bottom: 20px;
}

.modal__images {
	display: flex;
	flex-wrap: wrap;
}

.modal__images .modal__image {
	width: calc((100% - 8%) / 5);
	margin-right: 2%;
	position: relative;
	transition: opacity .6s;
}

.modal__images .modal__image:nth-of-type(5n) {
	margin-right: 0;
}

.modal__images .modal__image:nth-of-type(n+6) {
	margin-top: 2%;
}

.modal__images .modal__image:hover {
	opacity: .6;
}

.modal__images .modal__trigger {
	cursor: pointer;
	position: relative;
}

.modal__images .modal__image::after {
	content: 'View More';
	display: block;
	width: 70%;
	font-size: 14px;
	color: #fff;
	text-align: center;
	background: rgba(0, 0, 0, .85);
	padding: 8px 0;
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.modal__images .modal__image:before {
	display: block;
	padding-top: calc((2 / 3) * 100%);
	padding-top: 100%;
	content: '';
}

.modal__images .modal__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.modal__wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	z-index: 20;
	width: 100%;
	height: 100%;
}

.modal__layer {
	height: 100%;
	background: rgba(50, 50, 50, .85);
	cursor: pointer;
}

.modal__container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	overflow-y: scroll;
	width: min(calc(100% - 40px), 1000px);
	max-height: calc(100% - 40px);
}

.modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 1);
	cursor: pointer;
	transition: opacity .6s;
}

.modal__close:hover {
	opacity: .6;
}

.modal__close:before,
.modal__close:after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 2px;
	background: #231815;
	content: '';
}

.modal__close:before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__content .modal__image img {
	width: 100%;
}

.overview-box {
	max-width: 1200px;
	width: 90%;
	margin: 100px auto 0;
}

.overview-ttl {
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	background: #015e9e;
	padding: 10px 0 10px 15px;
}

.text-area {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 20px;
}

.text-area li {
	width: 48%;
}

.overview-box.update {
	margin-bottom: 100px;
}

.overview-box dl {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 16px;
	line-height: 1.5;
	border-bottom: 1px solid #ccc;
	padding: 20px 0;
}

.overview-box dl dt {
	width: 30%;
}

.overview-box dl dd {
	width: 66%;
}

.overview-box dl dd dl:last-child{
	border-bottom: none;
}




@media only screen and (max-width: 900px) {

	[class$="-box"] {
		margin: 50px auto 0;
	}

	.sell-detail-ttl {
		font-size: 20px;
	}

	.sell-detail-ttl::before {
		width: 29px;
		height: 24px;
	}

	.sell-detail-introduction{
		font-size: 16px;
		margin-top: 20px;
	}

	.modal {
		padding: 15px 15px;
	}

	.modal-ttl {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.modal__images .modal__image {
		width: 32%;
	}

	.modal__images .modal__image:nth-of-type(3n) {
		margin-right: 0;
	}

	.modal__images .modal__image:nth-of-type(n+4) {
		margin-top: 2%;
	}

	.modal__images .modal__image:nth-of-type(5n) {
		margin-right: 2%;
	}

	.modal__images .modal__image::after {
    width: 90%;
    font-size: 10px;
    padding: 4px 0;
    bottom: 4px;
	}

	.overview-box {
		margin: 40px auto 0;
	}

	.overview-box.update {
		margin-bottom: 20px;
	}

	.overview-ttl {
		font-size: 18px;
	}

	.text-area li {
		width: 100%;
	}

	.overview-box dl {
		border-bottom: none;
		padding: 0 0 30px 0;
	}

	.overview-box dl dt {
		width: 100%;
		font-size: 14px;
		text-align: center;
		background: #aacfe8;
		padding: 5px 0;
		margin-bottom: 10px;
	}

	.overview-box dl dd {
		width: 100%;
		font-size: 14px;
	}

	.overview-box dl dd dl{
		border-bottom: 1px solid #ccc;
		padding: 0 0 10px 0;
		margin-bottom: 10px;
	}

	.overview-box dl dd dl:last-child{
		margin-bottom: 0;
		border-bottom: 1px solid #ccc;
	}

	.overview-box dl dd dl dt{
		width: 30%;
		background: transparent;
		text-align: left;
		padding: 0;
		margin-bottom: 0;
	}

	.overview-box dl dd dl dd{
		width: 66%;	
	}

	
}