/* コンテンツページ用スタイル */
/* 寮、食事、職種、ワーホリ特集 */
/* 2025/05/28 スマホスタイルを先に書く */

/* ---------------- 共通要素 ---------------- */
/* -------- セクション、見出し -------- */
.contents-page {
	font-size: 15px;
}
.contents-page p {
	line-height: 1.6;
}
.contents-page section {
	padding: 45px 0;
	border: none;
}
.contents-page h1 {
	text-align: center;
	font-size: 18px;
}
.contents-page h2 {
	text-align: center;
	font-size: 22px;
	margin-bottom: 30px;
}
.contents-page h3 {
	text-align: center;
	font-size: 18px;
	margin-bottom: 20px;
}
.contents-page p + h3,
.contents-page ul + h3,
.contents-page ol + h3,
.contents-page dl + h3  {
	margin-top: 45px;
}
.contents-page h4 {
	text-align: center;
	margin-bottom: 15px;
}
.contents-page p {
	margin-bottom: 10px;
}
.contents-page ul,
.contents-page ol,
.contents-page dl {
	line-height: 1.5;
	margin-top: 20px;
	margin-bottom: 30px;
}
.contents-page li > ul {
	margin-top: 10px;
	margin-bottom: 10px;
}

.contents-page p:has(> .round-btn) {
	margin-top: 30px;
	margin-bottom: 30px;
}

/*
.contents-page p + ul,
.contents-page p + ol,
.contents-page p + dl {
}
*/

@media screen and (min-width:651px) {
	.contents-page section {
		padding: 60px 0;
	}
	.contents-page h1 {
		font-size: 30px;
	}
	.contents-page h2 {
		font-size: 30px;
		margin-bottom: 45px;
	}	
	.contents-page h3 {
		font-size: 24px;
		margin-bottom: 30px;
	}	
	.contents-page h4 {
		margin-bottom: 20px;
	}
}

/* -------- 幅 -------- */
@media screen and (min-width:651px) {
	.contents-page .width-pc1080 {
		max-width: 1080px;
		margin-right: auto;
		margin-left: auto;
	}
	.contents-page .width-pc800 {
		max-width: 800px;
		margin-right: auto;
		margin-left: auto;
	}
}

/* -------- ボタン -------- */
.contents-page .buttons-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 30px;
	margin-bottom: 45px;
}
.contents-page .buttons-wrap .button-item {
    width: 100%;
	background: #fff;
    border-radius: 15px;
	text-align: center;
    padding: 20px;
}
.contents-page .buttons-wrap .button-item a {
	position: relative;
	display: block;
	border-radius: 10px;
    font-size: 18px;
	font-weight: bold;
	color: #fff;
	padding: 15px;
}
.contents-page .buttons-wrap .button-item a::after {
    position: absolute;
    top: 50%;
    right: 20px;
    content: "\f0da";
    font-family: "FontAwesome";
    font-weight: 900;
    transform: translateY(-50%);
}
.contents-page .buttons-wrap .button-item.red-button a {
	background: #DA6A24;
	box-shadow: 0 5px 0 #823F16;
}
.contents-page .buttons-wrap .button-item.blue-button a {
	background: #269DD8;
	box-shadow: 0 5px 0 #165E82;
}
.contents-page .buttons-wrap .button-item a p {
    font-size: 18px;
	margin: 0;
	padding: 0;
}
.contents-page .buttons-wrap .button-item a p.small {
    font-size: 14px;
	margin-bottom: 5px;
}



/* -------- 見出し装飾 -------- */
/* 下線（二重） */
.contents-page .h-uldouble {
    border-bottom: 4px double #269DD8;
    color: #333333;
    padding:0 .4em .2em;
}
/* 下線（小） */
.contents-page .h-ulsmall {
    position: relative;
    color: #333;
	margin-bottom: 40px;
}
.contents-page .h-ulsmall::before {
    content: '';
    display: inline-block;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #269DD8;
}

/* カッコ */
.contents-page .h-brackets {
    position: relative;
    padding: .5em 1em;
    color: #333333;
}
.contents-page .h-brackets::before,
.contents-page .h-brackets::after {
    display: inline-block;
    position: absolute;
    width: 10px;
    height: 100%;
    border: 2px solid #333;
    box-sizing: border-box;
    content: '';
}
.contents-page .h-brackets::before {
    top: 0;
    left: 0;
    border-right: none;
}
.contents-page .h-brackets::after {
    bottom: 0;
    right: 0;
    border-left: none;
}
/* 左右に斜線 */
.contents-page .h-diagline {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333333;
}
.contents-page .h-diagline::before,
.contents-page .h-diagline::after {
    width: 2px;
    height: 40px;
    background-color: #1F7FB2;
    content: '';
}
.contents-page .h-diagline::before {
    transform: rotate(-35deg);
    margin-right: 30px;
}
.contents-page .h-diagline::after {
    transform: rotate(35deg);
    margin-left: 30px;
}

/* -------- 見出しの前 囲み -------- */
.contents-page .d-rect {
	display: inline-block;
    background: #FBF0E9;
    border: solid 1px #B3581E;
    color: #B3581E;
    text-align: center;
    line-height: 1;
    vertical-align: text-top;
    transform: translateY(0.5px);
    border-radius: 2px;
    font-size: 12px;
    font-weight: normal;
    margin-right: .5em;
    padding: .2em .5em;
}

/* -------- 角丸 -------- */
.contents-page .round15 {
	border-radius: 15px;
}

/* -------- 定義リスト（横並び） -------- */
.contents-page dl {
	border: solid 3px #BDE1F3;
	padding: 15px;
}
.contents-page dl.list-row div {
	display: flex;
	gap: 15px;
	justify-content: left;
	align-items: center;
	font-size: 14px;
	padding-bottom: 10px;
}
.contents-page dl.list-row div:not(:last-of-type) {
	border-bottom: dashed 1px #1F7FB2;
	margin-bottom: 10px;
}

.contents-page dl.list-row div dt {
	width: 30%;
	font-weight: bold;
}
.contents-page dl.list-row div dd {
	width: calc(70% - 15px);
}

/* -------- リスト（注意点） -------- */
.contents-page ul.note {
	list-style: disc inside;
	font-size: 14px;
}
.contents-page ul.note > li {
	border-bottom: dashed 1px #ccc;
	padding: 0.5em;
}
.contents-page ul.note > li > ul {
	list-style: circle inside;
	margin-left: 1em;
}


/* -------- コンテンツヘッダ -------- */
.content-header {
	padding: 15px 0 30px;
}
@media screen and (min-width: 651px) {
	.content-header {
		padding: 15px 0 45px;
	}
}

/* -------- 背景色（または模様） -------- */
.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;
	padding: 30px 0;
}
@media screen and (min-width: 651px) {
	.bg-dot {
		padding: 45px 0;
	}
}
.bg-white {
	background: #fff;
}
.bg-lightgray {
	background: #f3f3f3;
}
.bg-lightblue {
	background: #E9F5FB;
}
.bg-lightyellow {
	background: #FBF7ED;
}
.bg-lightred {
	background: #FBF0E9;
}


/* -------- コンテンツ導入部 -------- */
.content-intro {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
	background: #fff;
	border: solid 3px #e4be6b;
	border-radius: 15px;
	text-align: left;
    padding: 15px;
}
.content-intro img {
	max-width: 120px;
}
.content-intro p {
	margin-bottom: 10px;
}
.content-intro p:last-of-type {
	margin-bottom: 0;
}
@media screen and (min-width: 651px) {
	.content-intro {
		gap: 45px;
		max-width: 1080px;
		border-radius: 25px;
		margin: 0 auto;
		padding: 30px;
	}
}

/* -------- 寮目次 -------- */
.toc-dormitory {
	margin: 0;
	padding: 0;
}
.toc-dormitory ul {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}
.toc-dormitory ul li {
	width: 100%;
	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;
	position: relative;
}
.toc-dormitory ul li a p {
	position: absolute;
	bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 15px 15px;
	text-align: center;
    color: #fff;
    padding: 10px;
}
.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: 230px;
	object-fit: cover;
	border-radius: 0 0 15px 15px;
}
@media screen and (min-width: 651px) {
	.toc-dormitory {
		max-width: 1080px;
		margin: 0 auto;
		padding: 0 90px;
	}
	.toc-dormitory ul {
		gap: 30px;
	}
	.toc-dormitory ul li {
		width: calc(50% - 15px);
	}
	.toc-dormitory ul li img {
		height: 285px;
	}
}

/* -------- 寮のタイプ -------- */
.dormitory-type {
	background: #E9F5FB;
	border-radius: 15px;
	text-align: center;
	margin-bottom: 20px;
	padding: 20px 15px 20px;
}
.dormitory-type h2 {
	position: relative;
	display: inline-block;
	font-size: 16px;
	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: 50px;
	margin-top: -50px;
}
@media screen and (min-width: 651px) {
	.dormitory-type {
		max-width: 1080px;
		border-radius: 25px;
		margin: 0 auto 30px;
		padding: 30px 30px 40px;
	}
	.dormitory-type h2 {
		font-size: 16px;
		margin-bottom: 15px;
		font-size: 22px;
		margin-bottom: 15px;
	}
	.dormitory-types a.anchor {
		padding-top: 90px;
		margin-top: -90px;
	}
}

/* -------- Slick（スライダー）関連 -------- */
.dormitory-type .slick-slider {
	margin-bottom: 35px;
}
.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: -25px;
}
@media screen and (min-width: 651px) {
	.dormitory-type .slick-slider {
        margin-bottom: 50px;
    }
	.dormitory-type .slick-dots {
		bottom: -30px;
	}
}

