@charset "utf-8";

/* =============================================
	style 濱崎塾の建築用語集
============================================= */

/*-----------------------------
建築用語集インデックス
-----------------------------*/
#glossary{
	width: 95%;
	max-width: 980px;
	margin: 2em auto 0 auto;
	padding: 3em 2em 1em 2em;
	border-radius: 2em;
	background-color: #fff;
	box-sizing: border-box;
	position: relative;
}

#glossary h2{
	font-size: 4rem;
	line-height: 1;
	color: #e50012;
	margin: 0 0 1em 0;
}

#glossary::before{
	content: "";
	display: block;
	width: 135px;
	height: 295px;
	background-image: url("../../img/chara_advice.png");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: contain;
	position: absolute;
	top: -5em;
	right: 2em;
	z-index: 1;
}


/*** 索引 ***/

#glossary #initials_index{
	width: 100%;
}

#initials_index h3{
	display: inline-block;
	font-size: 2.4rem;
	line-height: 1;
	color: #f39800;
	margin: 0 0 1em 0;
	padding: 0.66em 1em 0.5em 1em;
	border: solid 1px #f39800;
	border-radius: 0.5em;
	box-sizing: border-box;
}

#initials_index #index_nav{
	display: none;
}

#initials_index h3 .index_btn{
	display: none;
}

#initials_index #initials_nav{
	display: flex;
	flex-wrap: wrap;
	margin: 0 auto;
	box-sizing: border-box;
}

#initials_nav dl{
	display: flex;
	text-align: center;
	font-size: 2rem;
	line-height: 1;
	margin: 0 1em 1em 0;
	box-sizing: border-box;
}

#initials_nav dl:last-child{
	margin: 0 0 1em 0;
}

#initials_nav dl dt{
	color: #fff;
	width: 2.5em;
	margin-right: 0.35em;
	padding: 0.66em 0 0.5em 0;
	background-color: #f39800;
	border: solid 1px #f39800;
	box-sizing: border-box;
	position: relative;
}

#initials_nav dl dt::after{
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.5em 0 0.5em 0.35em;
	border-color: transparent transparent transparent #f39800;
	position: absolute;
	top: 50%;
	left: 100%;
	transform: translate(0, -50%);
}

#initials_nav dl dd{
	width: 2em;
	border-style: solid;
	border-color: #AFAFAF;
	border-width: 1px 0 1px 1px;
	background-color: #fff;
	text-shadow: 1px 1px 2px #fff;
	box-sizing: border-box;
}

#initials_nav dl dd:last-child{
	border-right-width: 1px;
}

#initials_nav dl dd .no_link{
	display: block;
	padding: 0.66em 0 0.5em 0;
}

#initials_nav dl dd a{
	display: block;
	color: #555;
	padding: 0.66em 0 0.5em 0;
	background: linear-gradient(#f4f4f4, #d3d3d3);
}


/*** 用語集 ***/

#glossary .initials_area{
	margin: 2em 0 0 0;
	padding-bottom: 1em;
	border: solid 1px #f39800;
	box-sizing: border-box;
}

.initials_area h3{
	display: inline-block;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	padding: 0.66em 0.5em 0.5em 0.5em;
	background-color: #f39800;
}

.initials_area .initials_single{
	margin: 1em 0 0 0;
	padding: 0 2em;
	box-sizing: border-box;
}

.initials_single h4{
	font-size: 1.6rem;
	border: solid 1px #AFAFAF;
	border-radius: 0.5em;
	background: linear-gradient(#f4f4f4, #d3d3d3);
}

.initials_single .initials_btn{
	display: none;
	margin: 0;
	padding: 0;
}

.initials_single h4 .word_btn{
	display: block;
	padding: 0.66em 1em 0.5em 2em;
	cursor: pointer;
	box-sizing: border-box;
	text-shadow: 1px 1px 2px #fff;
	position: relative;
}

.initials_single h4 .word_btn::before{
	content: "";
	width: 0.35em;
	height: 0.35em;
	border-style: solid;
	border-width: 0.2em;
	border-color: transparent transparent #e50012 #e50012;
	position: absolute;
	top: 50%;
	left: 0.5em;
	transform: translate(0, -75%) rotate(-45deg);
}

.initials_single h4 .word_btn .ruby{
	display: inline-block;
	font-size: 80%;
}

.initials_single .word_detail{
	overflow: hidden;
	display: flex;
	height: 0;
	max-height: 0;
	margin: 0.5em 0 0 0;
	position: relative;
	box-sizing: border-box;
	transition: 1s;
}

.initials_single .word_detail p{
	margin: 0.5em 0;
}

.initials_single .word_detail .img_wrap{
	text-align: center;
	margin-left: 2em;
}

.word_detail .img_wrap img{
	width: auto;
}

.add_flex{
	display: flex;
}

.reset_flex{
	flex-direction: column;
}


/* 開閉動作 */
.initials_btn:checked ~ .word_detail{
	height: auto;
	max-height: 100vh;
}



/* ===========================================
	MediaQueries
=========================================== */
/* PC----------------------------- */
@media screen and (min-width: 768px){
	
}

/* スマホ----------------------------- */
@media screen and (max-width: 767px){
	
	/*-----------------------------
	建築用語集インデックス
	-----------------------------*/
	#glossary{
		padding: 2em 1em;
	}
	
	#glossary h2{
		font-size: 1.8rem;
		line-height: 1.5;
	}
	
	#glossary::before{
		width: 100%;
		height: 106px;
		background-image: url("../../img/s/chara_advice.png");
		background-size: contain;
		top: -1.5em;
		right: 0;
	}
	
	
	/*** 索引 ***/
	#initials_index{
		overflow: hidden;
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 999;
	}
	
	#initials_index h3{
		font-size: 1.6rem;
		margin: 0 0 0 0;
		border-bottom: none;
		border-radius: 0.5em 0.5em 0 0;
		background-color: #fff;
		position: fixed;
		bottom: 0;
		left: 1em;
		z-index: 9999;
	}
	
	#initials_index h3 .index_btn{
		display: block;
		padding-left: 1em;
	}
	
	#initials_index h3 .index_btn::before{
		content: "";
		width: 0.5em;
		height: 0.5em;
		border-style: solid;
		border-width: 0.2em;
		border-color: #f39800 transparent transparent #f39800;
		position: absolute;
		top: 50%;
		left: 0.5em;
		transform: translate(0, -25%) rotate(45deg);
	}
	
	#initials_index #initials_nav{
		overflow: hidden;
		flex-direction: column;
		height: 0;
		max-height: 0;
		padding: 0 1em;
		background-color: rgba(29,0,0,0.85);
		transition: 1s;
	}
	
	#initials_nav dl{
		font-size: 1.8rem;
		width: 100%;
		margin: 0;
	}
	
	#initials_nav dl dt{
		display: none;
	}
	
	#initials_nav dl dd{
		width: 20%;
	}
	
	/* 開閉動作 */
	
	#index_nav:checked ~ #initials_nav{
		height: auto;
		max-height: 100vh;
		padding-top: 1em;
		padding-bottom: 2em;
		box-sizing: border-box;
	}
	
	#index_nav:checked + h3 .index_btn::before{
		content: "";
		display: inline-block;
		width: 1.2em;
		height: 0.2em;
		background-color: #f39800;
		border: none;
		position: absolute;
		top: 50%;
		left: 0.5em;
		transform: translate(0, -50%) rotate(-45deg);
	}
	
	#index_nav:checked + h3 .index_btn::after{
		content: "";
		display: inline-block;
		width: 1.2em;
		height: 0.2em;
		background-color: #f39800;
		position: absolute;
		top: 50%;
		left: 0.5em;
		transform: translate(0, -50%) rotate(45deg);
	}
	
	
	/*** 用語集 ***/
	.initials_area .initials_single{
		padding: 0 0.5em;
	}
	
	.initials_single .word_detail{
		flex-direction: column;
	}
	
	.initials_single .word_detail .img_wrap{
		margin-left: 0;
	}
	
	.add_flex{
		flex-direction: column;
	}
	
}


/* print----------------------------- */
@media print{
	#footer,.page_top{ display: none; }
	body{ min-height: 0; }
}
