/* コンテンツページ用スタイル */
/* 寮、食事、職種、ワーホリ特集 */

/* コンテンツヘッダ */
.content-header {
	padding: 15px 0 45px;
}
.content-header h1 {
	text-align: center;
	font-size: 30px;
	position: relative;
}
@media screen and (max-width: 650px) {
	.content-header {
		padding: 15px 0 30px;
	}
	.content-header h1 {
		font-size: 18px;
	}
}

/* 背景色（または模様） */
.bg-dot {
	background-color: #f6f6f6;
	background-image: radial-gradient(#e9e9e9 2px, transparent 2px), radial-gradient(#e9e9e9 2px, #f6f6f6 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
	margin-bottom: 45px;
	padding: 45px 0;
}
@media screen and (max-width: 650px) {
	.bg-dot {
		margin-bottom: 30px;
		padding: 30px 0;
	}
}

/* コンテンツ導入部 */
.content-intro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 45px;
	max-width: 1080px;
	background: #fff;
	border: solid 3px #e4be6b;
    border-radius: 25px;
	margin: 0 auto 45px;
    padding: 30px;
}
.content-intro img {
	max-width: 120px;
}
.content-intro p {
	margin-bottom: 10px;
}
.content-intro p:last-of-type {
	margin-bottom: 0;
}
@media screen and (max-width: 650px) {
	.content-intro {
		flex-wrap: wrap;
		gap: 30px;
	    border-radius: 15px;
		text-align: left;
		margin-bottom: 30px;
	}
}

/* 寮目次 */
.toc-dormitory {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 90px;
}
.toc-dormitory ul {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 30px;
}
.toc-dormitory ul li {
	width: calc(50% - 15px);
	border-radius: 15px;
	box-shadow: 0 0 2px 2px rgba(15, 62, 86, 0.1);
}
.toc-dormitory ul li a {
	display: flex;
	flex-direction: column;
}
.toc-dormitory ul li span {
	position: relative;
	background: #A8D7EF;
	border-radius: 15px 15px 0 0;
	text-align: center;
	font-weight: bold;
	color: #1F7FB2;
	padding: 10px;
}
.toc-dormitory ul li span::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 5px 0 5px;
	border-color: #228DC3 transparent transparent transparent;
}
.toc-dormitory ul li img {
	width: 100%;
	height: 285px;
	object-fit: cover;
	border-radius: 0 0 15px 15px;
}
@media screen and (max-width: 650px) {
	.toc-dormitory {
		margin: 0;
		padding: 0;
	}
	.toc-dormitory ul {
		gap: 15px;
	}
	.toc-dormitory ul li {
		width: 100%;
	}
	.toc-dormitory ul li img {
		height: 230px;
	}
}

/* 寮のタイプ */
.dormitory-type {
	max-width: 1080px;
	background: #E9F5FB;
    border-radius: 25px;
	text-align: center;
	margin: 0 auto 30px;
    padding: 30px 30px 40px;
}
.dormitory-type h2 {
	position: relative;
	display: inline-block;
	font-size: 22px;
	color: #165E82;
	margin-bottom: 15px;
	padding: 0 30px;
}
.dormitory-type h2::before, 
.dormitory-type h2::after {
	content: '';
	position: absolute;
	top: 50%;
	display: inline-block;
	width: 20px;
	height: 1px;
	background-color: #165E82;
}
.dormitory-type h2::before {
	left: 0;
}
.dormitory-type h2::after {
	right: 0;
}
.dormitory-type .text {
	text-align: left;
}
.dormitory-type p {
	margin-bottom: 10px;
}
.dormitory-type p:last-of-type {
	margin-bottom: 0;
}
.dormitory-types a.anchor { /* ページ内リンク先の上下位置調整 */
	display: block;
	padding-top: 90px;
	margin-top: -90px;
}
@media screen and (max-width: 650px) {
	.dormitory-type {
		border-radius: 15px;
		margin-bottom: 20px;
		padding: 20px 15px 20px;
	}
	.dormitory-type h2 {
		font-size: 16px;
		margin-bottom: 15px;
	}
	.dormitory-types a.anchor {
		padding-top: 50px;
		margin-top: -50px;
	}
}

/* Slick（スライダー）関連 */
.dormitory-type .slick-slider .slick-list {
	background: #d3ebf7;
}
.dormitory-type .slick-prev, 
.dormitory-type .slick-next {
		top: 45% !important;
}
.dormitory-type .slick-dots li button:before {
	color: black;
    opacity: 0.15;
}
.dormitory-type .slick-dots li.slick-active button:before {
    color: #666;
    opacity: 0.75;
}
.dormitory-type .slick-dots {
	bottom: -30px;
}
@media screen and (max-width: 650px) {
	.dormitory-type .slick-slider {
        margin-bottom: 35px;
    }
	.dormitory-type .slick-dots {
		bottom: -25px;
	}
}
