@charset "UTF-8";

/*=====================

モデルルーム CSS

=====================*/



/*---------------------*/
/* 共通 */
/*---------------------*/
#residence .conTtl {
	width: 100%;
	display: inline-block;
	background-image: url("../images/mainTtl_line.svg");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 13px 70px;
	padding-bottom: 7.5rem;
	margin-bottom: 3rem;
}

#residence .conTtl>h3 {
	font-family: "trajan-pro-3", serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1;
	letter-spacing: 0.05em;
	color: #A79159;
}

#residence .conTtl>p {
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-align: center;
	color: #333;
}

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

	/* 下層ページメインタイトル */
	.pagetitle>h1 {
		letter-spacing: 0.1em;
	}


	.tabLink.tab2 li {
		width: calc((100% - 1rem) / 2);
	}

	#residence .conTtl {
		background-size: 6px;
		padding-bottom: 4.5rem;
		margin-bottom: 1rem;
	}

	#residence .conTtl>h3 {
		font-size: 6.51vw;
		line-height: 1;
	}
}

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

	/* 下層ページメインタイトル */
	.pagetitle>h1 {
		letter-spacing: 0.05em;
	}


	#residence .conTtl {
		padding-bottom: 4.5rem;
		margin-bottom: 1rem;
	}

	#residence .conTtl>h3 {
		font-size: 8.1776vw;
		line-height: 1;
	}
}

/*---------------------*/
/*メインタイトル*/
/*---------------------*/
.mainTtlArea .ttl_icon {
	position: absolute;
	bottom: 4%;
	right: 0.5%;
	width: 14%;
	z-index: 10;
	animation: ttl_icon_fadein 1s ease-in-out 0.3s forwards;
	opacity: 0;
}

.mainTtlArea .ttl_icon img {
	animation: ttl_icon 2s ease-in-out 1.3s infinite;
}

/* アニメーション */
@keyframes ttl_icon_fadein {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes ttl_icon {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}

	20% {
		transform: translate(0, 0) rotate(0deg);
	}

	30% {
		transform: translate(0, -10px) rotate(0deg);
	}

	40% {
		transform: translate(0, -10px) rotate(-7deg);
	}

	50% {
		transform: translate(0, -10px) rotate(0deg);
	}

	60% {
		transform: translate(0, -10px) rotate(-7deg);
	}

	70% {
		transform: translate(0, -10px) rotate(0deg);
	}

	80% {
		transform: translate(0, 0) rotate(0deg);
	}

	100% {
		transform: translate(0, 0) rotate(0deg);
	}
}


/*---------------------*/
/*スライダー*/
/*---------------------*/
.swiper-container {
	margin-bottom: 0;
}

.swiper-wrapper {
	padding: 0;
}

.swiper-slide {
	display: block;
}

.swiper-slide.m_2 {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	background: #FFF;
}

.swiper-slide.m_2 .imageCap {
	width: 49.9%;
}

.slider-thumb {
	display: block;
	padding: 0;
	margin: 0;
}

.slider-thumb .swiper-wrapper {
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.6em;
	padding: 0;
}

.slider-thumb .swiper-slide {
	width: calc((100% - 3em) / 10) !important;
	background: #000;
	padding: 0;
}

.slider-thumb .swiper-slide img {
	display: block;
	width: 100%;
	opacity: .5;
	transition: opacity .5s;
}

.slider-thumb .swiper-slide.swiper-slide-thumb-active img {
	opacity: 1;
}

/* メインスライドの見た目調整 */
.slider {
	width: 100%;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
}

.slider .swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* サムネイルの小画面調整 */
@media screen and (max-width: 768px) {
	.slider-thumb .swiper-wrapper {
		gap: 6px
	}

	.slider-thumb .swiper-slide {
		width: calc((100% - 7*6px)/8) !important
	}
}

/* 前・次ボタンの共通スタイル */
.swiper-button-prev,
.swiper-button-next {
	width: 45px;
	height: 80px;
	background-repeat: no-repeat;
	background-size: cover;
}

/* 次ボタンのスタイル */
.swiper-button-next {
	background-image: url("../images/modelroom/slider_next.svg");
}

.swiper-button-next {
	right: 0 !important;
}

/* 前ボタンのスタイル */
.swiper-button-prev {
	background-image: url("../images/modelroom/slider_prev.svg");
}

.swiper-button-prev {
	left: 0 !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
	text-rendering: initial;
	display: none;
}

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

	/* 前・次ボタンの共通スタイル */
	.swiper-button-prev,
	.swiper-button-next {
		width: 4vw;
		height: 8vw;
	}
}

@media screen and (max-width: 430px) {
	.slider-thumb {
		display: block;
		padding: 0;
		margin: 0;
	}

	.slider-thumb .swiper-wrapper {
		justify-content: flex-start;
	}

	.slider-thumb .swiper-slide {
		width: 11.6% !important;
		background: #000;
	}

	/* 前・次ボタンの共通スタイル */
	.swiper-button-prev,
	.swiper-button-next {
		width: 6vw;
		height: 10vw;
	}
}