@charset "utf-8";
/* 持ち込み_白老緑丘保育園 下層ページ */

/* ------ ページの中の見出しへのリンク（緑の文字と下向きの三角。縦線で区切る） ------ */
.page_nav{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 14px;
	margin-top: 60px;
}

.page_nav[hidden]{
	display: none;
}

.page_nav li{
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 220px;
	max-width: 300px;
}

.page_nav li + li{
	border-left: 3px solid #bab7b5;
}

.page_nav a{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 6px 16px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	color: #709e18;
}

.page_nav a::after{
	content: "";
	flex-shrink: 0;
	border-top: 10px solid #709e18;
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
}

.page_nav a:hover{
	opacity: 0.7;
}



/* ------ 本文のブロック ------ */
.page_body{
	padding-bottom: 20px;
}

/* ブロックの上の余白（どの型も同じ。大見出しだけ広く） */
.page_body > *{
	margin-top: 70px;
}

.page_body > .block_heading{
	margin-top: 100px;
	scroll-margin-top: 90px;
}

/* 大見出し（左に茶色の線） */
.block_heading{
	padding-left: 18px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	color: #312b17;
	border-left: 8px solid #93816f;
}

/* 中見出し（下に茶色の線） */
.block_subheading,
.media_title,
.card_title{
	padding-bottom: 18px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: #312b17;
	border-bottom: 2px solid #93816f;
}

/* 写真と文章とリンク（薄い黄緑の角丸の箱） */
.block_card{
	display: flex;
	align-items: center;
	gap: 76px;
	padding: 40px 70px;
	background-color: #f2f9e6;
	border-radius: 16px;
}

.card_img{
	flex: 0 0 453px;
	aspect-ratio: 453 / 303;
	overflow: hidden;
	border-radius: 16px;
	background-color: #e6e6e6;
}

.card_img img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card_body{
	flex: 1;
	min-width: 0;
}

.card_text{
	margin-top: 30px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	line-height: 1.6;
}

.card_btn{
	margin-top: 30px;
	text-align: right;
}

/* 写真と文章（左右） */
.block_media{
	display: flex;
	align-items: flex-start;
	gap: 66px;
}

.block_media_reverse{
	flex-direction: row-reverse;
}

.media_img{
	flex: 0 0 45%;
	aspect-ratio: 542 / 361;
	overflow: hidden;
	border-radius: 16px;
	background-color: #e6e6e6;
}

.media_img img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media_body{
	flex: 1;
	min-width: 0;
	padding-top: 60px;
}

.media_body p,
.block_text p,
.block_plain p{
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	line-height: 1.75;
}

.media_body p,
.block_text p{
	margin-top: 30px;
}

/* 写真2枚（下に緑の説明） */
.block_photos{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 116px;
}

.photos_item img{
	display: block;
	width: 100%;
	aspect-ratio: 542 / 361;
	object-fit: cover;
	border-radius: 16px;
	background-color: #e6e6e6;
}

.photos_item p{
	margin-top: 22px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	color: #709e18;
}

.photos_item p:empty{
	display: none;
}

/* 表（項目と内容） */
.block_table table{
	width: 100%;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	line-height: 1.7;
	border-top: 1px solid #c9c1b6;
}

.block_table tr{
	border-bottom: 1px solid #c9c1b6;
}

.block_table th,
.block_table td{
	padding: 20px 24px;
	text-align: left;
	vertical-align: top;
}

.block_table th{
	width: 24%;
	font-weight: 700;
	color: #4a442d;
	background-color: #f2f9e6;
}

/* よくある質問（Q と A） */
.block_faq{
	border-bottom: 1px solid #c9c1b6;
}

.faq_q,
.faq_a{
	position: relative;
	padding-left: 56px;
	line-height: 1.7;
}

.faq_q{
	font-size: 19px;
	font-weight: 700;
	color: #312b17;
}

.faq_a{
	margin-top: 16px;
	padding-bottom: 28px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
}

.faq_q::before,
.faq_a::before{
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	border-radius: 50%;
}

.faq_q::before{
	content: "Q";
	background-color: #709e18;
}

.faq_a::before{
	content: "A";
	background-color: #ff9a2d;
}

/* 質問が続くときは、間を詰める */
.page_body > .block_faq + .block_faq{
	margin-top: 28px;
}

/* 地図 */
.map{
	height: 420px;
	background-color: #efefef;
}

.map iframe{
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ボタン */
.block_button{
	text-align: center;
}





/* ------ スマホ・タブレット ------ */
@media screen and (max-width: 1000px){

	.page_nav{
		margin-top: 36px;
		row-gap: 0;
	}

	.page_nav li{
		flex: 0 0 50%;
		min-width: 0;
		max-width: none;
		border-bottom: 1px solid #e3e0dc;
	}

	.page_nav li + li{
		border-left: 0;
	}

	.page_nav li:nth-child(even){
		border-left: 1px solid #e3e0dc;
	}

	/* 数が奇数のときは、最後の1つを横いっぱいにする */
	.page_nav li:last-child:nth-child(odd){
		flex-basis: 100%;
	}

	.page_nav a{
		justify-content: space-between;
		padding: 12px 10px;
		font-size: 14px;
	}

	.page_nav a::after{
		border-top-width: 7px;
		border-right-width: 5px;
		border-left-width: 5px;
	}

	.page_body > *{
		margin-top: 36px;
	}

	.page_body > .block_heading{
		margin-top: 56px;
		scroll-margin-top: 76px;
	}

	.block_heading{
		padding-left: 12px;
		font-size: 21px;
		border-left-width: 6px;
	}

	.block_subheading,
	.media_title,
	.card_title{
		padding-bottom: 12px;
		font-size: 18px;
	}

	.block_card{
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px 20px 28px;
	}

	.card_img{
		flex: none;
	}

	.card_text{
		margin-top: 18px;
	}

	.card_btn{
		margin-top: 24px;
		text-align: center;
	}

	.block_media,
	.block_media_reverse{
		flex-direction: column;
		align-items: stretch;
		gap: 22px;
	}

	.media_img{
		flex: none;
	}

	.media_body{
		padding-top: 0;
	}

	.media_body p,
	.block_text p{
		margin-top: 18px;
	}

	.block_photos{
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.photos_item p{
		margin-top: 12px;
		font-size: 14px;
	}

	.block_table th,
	.block_table td{
		display: block;
		width: 100%;
		padding: 10px 14px;
	}

	.block_table th{
		padding-top: 12px;
	}

	.block_table td{
		padding-bottom: 16px;
	}

	.faq_q,
	.faq_a{
		padding-left: 44px;
	}

	.faq_q{
		font-size: 16px;
	}

	.faq_q::before,
	.faq_a::before{
		width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.faq_a{
		margin-top: 12px;
		padding-bottom: 20px;
	}

	.map{
		height: 300px;
	}
}
