/* 創造教室こびとのおうち 共通CSS
   全ページ共通利用
*/


/* =========================
   メインナビ
========================= */

#nav > ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}

#nav > ul > li > a {
	padding-left: 1.05em;
	padding-right: 1.05em;
	white-space: nowrap;
}

@media screen and (max-width: 1100px) and (min-width: 737px) {
	#nav > ul > li > a {
		padding-left: 0.72em;
		padding-right: 0.72em;
		font-size: 0.91em;
	}
}


/* =========================
   全ページ共通 見出し
========================= */

/* h3
   クラスの特徴・クラス日程など
*/
#content.main h3 {
	font-family: "Yu Gothic", "YuGothic",
		"Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 1.45em;
	font-weight: 600;
	color: #574943;
	-webkit-text-fill-color: #574943;
}


/* 年度案内など */
.schedule-box h4 {
	font-family: "Yu Gothic", "YuGothic",
		"Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 1.30em;
	font-weight: 600;
	color: #4a403c;
	-webkit-text-fill-color: #4a403c;

	margin: 0 0 0.7em;
	padding-bottom: 0.7em;

	border-bottom: 1px solid rgba(110, 100, 92, 0.22);

	text-align: center;
}


/* 年間日程などの小見出し */
.schedule-box h5 {
	font-family: "Yu Gothic", "YuGothic",
		"Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	font-size: 1.18em;
	font-weight: 600;
	color: #4a403c;
	-webkit-text-fill-color: #4a403c;

	margin: 0 0 1em;
	text-align: center;
}


/* =========================
   右側 追従タブ
========================= */

.side-link-tabs {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10000;

	display: flex;
	flex-direction: column;
	gap: 7px;

	pointer-events: none;
}

.side-link-tabs a {
	pointer-events: auto;

	display: flex;
	align-items: center;
	justify-content: flex-start;

	width: 68px;
	height: 48px;

	margin: 0;
	padding: 0 14px;

	overflow: hidden;
	white-space: nowrap;
	box-sizing: border-box;

	background: rgba(216, 190, 198, 0.96) !important;

	border: 1px solid rgba(85, 65, 60, 0.32);
	border-right: 0;
	border-radius: 13px 0 0 13px;

	color: #332825 !important;
	-webkit-text-fill-color: #332825 !important;

	text-decoration: none !important;
	text-shadow: none !important;

	font-size: 0.92em;
	font-weight: 700;
	line-height: 1;

	box-shadow: 0 3px 12px rgba(70, 58, 54, 0.15);

	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);

	transition:
		width 0.28s ease,
		background-color 0.28s ease,
		box-shadow 0.28s ease;
}


/* MAP / BLOG / 予定 */

.side-link-tabs a .tab-short {
	display: inline-block;

	min-width: 38px;

	text-align: center;

	margin-right: 13px;

	font-size: 0.94em;
	font-weight: 700;
	letter-spacing: 0.02em;
}


/* 開いたときの文字 */

.side-link-tabs a .tab-label {
	display: inline-block;

	opacity: 0;

	font-size: 0.96em;
	font-weight: 700;

	transition: opacity 0.18s ease 0.06s;
}


/* BLOG */

.side-link-tabs a:nth-child(2) {
	background: rgba(218, 199, 169, 0.96) !important;
}


/* 年間予定 */

.side-link-tabs a:nth-child(3) {
	background: rgba(181, 207, 214, 0.97) !important;
}

.side-link-tabs a:nth-child(3) .tab-short {
	font-size: 1em !important;
	font-weight: 700 !important;
}

.side-link-tabs a:nth-child(3) .tab-label {
	font-size: 1em !important;
	font-weight: 700 !important;
}


/* マウスを乗せたとき */

.side-link-tabs a:hover,
.side-link-tabs a:focus-visible {
	width: 185px;

	background: rgba(202, 184, 211, 0.98) !important;

	color: #2d2421 !important;
	-webkit-text-fill-color: #2d2421 !important;

	box-shadow: 0 5px 16px rgba(70, 58, 54, 0.20);
}

.side-link-tabs a:hover .tab-label,
.side-link-tabs a:focus-visible .tab-label {
	opacity: 1;
}


/* =========================
   下部 共通ナビ
========================= */

.sub-navigation {
	width: 100%;

	margin: 0;
	padding: 1.15em 1.25em;

	box-sizing: border-box;

	background: linear-gradient(
		90deg,
		rgba(239,216,222,.92) 0%,
		rgba(232,224,218,.94) 50%,
		rgba(218,229,235,.92) 100%
	) !important;

	border-top: 1px solid rgba(105,92,84,.20);
	border-bottom: 1px solid rgba(105,92,84,.20);
}

.sub-navigation-inner {
	max-width: 1120px;

	margin: 0 auto;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.sub-navigation-inner a {
	display: block;

	padding: .55em 1.05em;

	color: #433a34 !important;
	-webkit-text-fill-color: #433a34 !important;

	font-size: .92em;
	font-weight: 600;
	line-height: 1.45;

	text-decoration: none !important;
	text-shadow: none !important;

	background: transparent !important;

	border-right: 1px solid rgba(85,72,64,.22);
}

.sub-navigation-inner a:last-child {
	border-right: 0;
}

.sub-navigation-inner a:hover {
	color: #312a26 !important;
	-webkit-text-fill-color: #312a26 !important;

	background: rgba(210,190,214,.48) !important;
}


/* =========================
   TOPへ戻る
========================= */

.page-top-return {
	width: 100%;

	margin: 0;
	padding: 1.4em 1em 1.6em;

	text-align: center;

	background: rgba(236, 228, 224, 0.72);

	border-top: 1px solid rgba(105, 92, 84, 0.16);
}

.page-top-return a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 150px;

	padding: 0.8em 1.4em;

	border: 1px solid rgba(95, 78, 69, 0.30);
	border-radius: 999px;

	background: rgba(255,255,255,0.42);

	color: #493d38 !important;
	-webkit-text-fill-color: #493d38 !important;

	font-weight: 600;

	text-decoration: none !important;
	text-shadow: none !important;
}

.page-top-return a:hover {
	background: rgba(220, 208, 226, 0.62);

	border-color: rgba(126, 104, 120, 0.40);

	color: #382f2b !important;
	-webkit-text-fill-color: #382f2b !important;
}


/* =========================
   スマートフォン
========================= */

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

	.side-link-tabs {
		top: auto;
		right: 0.6em;
		bottom: 0.8em;

		transform: none;

		gap: 5px;
	}

	.side-link-tabs a,
	.side-link-tabs a:hover,
	.side-link-tabs a:focus-visible {
		width: 132px;
		height: 40px;

		padding: 0 10px;

		border-right: 1px solid rgba(85, 65, 60, 0.32);
		border-radius: 10px;

		font-size: 0.82em;
	}

	.side-link-tabs a .tab-short {
		min-width: 30px;
		margin-right: 7px;
	}

	.side-link-tabs a .tab-label {
		opacity: 1;
	}

	.sub-navigation {
		padding: .9em .7em;
	}

	.sub-navigation-inner {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sub-navigation-inner a {
		display: flex;
		align-items: center;
		justify-content: center;

		min-height: 48px;

		padding: .6em .45em;

		font-size: .86em;
		text-align: center;

		border-right: 0;
		border-bottom: 1px solid rgba(85,72,64,.18);
	}

	.page-top-return {
		padding: 1.1em 0.8em 1.3em;
	}

	.page-top-return a {
		min-width: 140px;

		padding: 0.75em 1.2em;

		font-size: 0.92em;
	}
}

/* ==================================================
   スマホ共通：ヘッダー文字を軽くして画像を見せる
   ================================================== */
@media screen and (max-width:736px){

	#header{
		justify-content:center !important;
		padding:.7em .6em !important;
	}

	#header h1{
		font-size:1.35em !important;
		line-height:1.25 !important;
		margin-bottom:.35em !important;
		font-weight:500 !important;
		text-shadow:0 1px 3px rgba(0,0,0,.75) !important;
	}

	#header p{
		max-width:88% !important;
		margin-left:auto !important;
		margin-right:auto !important;
		font-size:.82em !important;
		font-weight:500 !important;
		line-height:1.45 !important;
		padding:.35em .55em !important;
		background:rgba(35,30,28,.38) !important;
		text-shadow:0 1px 3px rgba(0,0,0,.75) !important;
		border-radius:8px !important;
	}
}