nav img,h1 img {
	widows: 20px;
	height: 20px;
	vertical-align: middle;
	margin-right: 4px;
}

.cbp-af-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;

	z-index: 10000;
	height: 192px;/* 伸びた時の高さ */
	
	background-image: url(../images/logo.png);
	background-size: 1024px 232px;
	background-position: center top;
	background-repeat: no-repeat;
	
	overflow: hidden;
	
	-webkit-transition: height 0.3s;
	-moz-transition: height 0.3s;
	transition: height 0.3s;
}

.cbp-af-header .cbp-af-inner {
	width: 100%;
	max-width: 1092px;
	margin: 0 auto;
	padding: 0 1.875em;
}

.cbp-af-header h1,
.cbp-af-header nav {
	display: inline-block;
	position: relative;
	font-weight: 100;
}

 /* We just have one-lined elements, so we'll center the elements with the line-height set to the height of the header */
.cbp-af-header h1,
.cbp-af-header nav a {
	line-height: 344px;/* 伸びた時のテキスト位置 */
}


h1 span {
	display: none;
}


/* 元サイズ */
.cbp-af-header h1 {
	/*text-transform: uppercase;*/
	color: #ddd;
	/*letter-spacing: 4px;*/
	font-size: 1.0em;/* 元のフォントサイズ */
	margin-left: 32px;
	float: left;
}

.cbp-af-header nav {
	float: right;
	margin-right: 32px;
}

.cbp-af-header nav a {
	color: #ddd;
	margin: 0 0 0 20px;
	font-size: 1.0em;
}

.cbp-af-header nav a:hover,.cbp-af-header h1 a:hover {
	color: #fff;
}

/* Transitions and class for reduced height */
.cbp-af-header h1,
.cbp-af-header nav a {
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.cbp-af-header.cbp-af-header-shrink {
	height: 40px;/* 縮んだ時の高さ */
	
	background-image: url(../images/logo.png);


	
	
	
	background-size: 1024px 232px;
	background-position: center bottom;
	background-repeat: no-repeat;
}

.cbp-af-header.cbp-af-header-shrink h1,
.cbp-af-header.cbp-af-header-shrink nav a {
	line-height: 40px;/* 縮んだ時のテキスト位置 */
}

.cbp-af-header.cbp-af-header-shrink h1 {
	font-size: 1.0em;/* 縮小後のフォントサイズ */
	margin: 0 0 0 280px;/* 縮んだ時のTOP PAGEの位置 */
}

/* Example Media Queries */
@media screen and (max-width: 55em) {
	
	.cbp-af-header .cbp-af-inner {
		width: 100%;
	}

	.cbp-af-header h1,
	.cbp-af-header nav {
		display: block;
		margin: 0 auto;
		text-align: center;
		float: none;
	}

	.cbp-af-header h1,
	.cbp-af-header nav a {
		line-height: 115px;
	}

	.cbp-af-header nav a {
		margin: 0 10px;
	}

	.cbp-af-header.cbp-af-header-shrink h1,
	.cbp-af-header.cbp-af-header-shrink nav a {
		line-height: 45px;
	}

	.cbp-af-header.cbp-af-header-shrink h1 {
		font-size: 2em;
	}

	.cbp-af-header.cbp-af-header-shrink nav a {
		font-size: 1em;
	}
}

@media screen and (max-width: 32.25em) {
	.cbp-af-header nav a {
		font-size: 1em;
	}
}

@media screen and (max-width: 24em) {
	.cbp-af-header nav a,
	.cbp-af-header.cbp-af-header-shrink nav a {
		line-height: 1;
	}
}
