/*
 * Photogallery pages keep their own gallery CSS, but the shared header
 * must behave like the OBroom pages on mobile and desktop.
 */

header {
	width: 100%;
	background-color: #FFF;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 300;
}

header h1 {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: 1;
}

header h1 a img {
	display: block;
	position: absolute;
	max-width: none !important;
}

header .h_btn a,
header .h_tel a {
	display: block;
	text-align: center;
	position: absolute;
	text-decoration: none;
	color: #333;
	letter-spacing: 1px;
}

header .h_btn a {
	border: 1px solid #999;
}

header .h_btn a:hover {
	color: #FFF;
	background-color: #333;
	border: 1px solid #FFF;
}

header .h_btn a i,
header .h_tel a i {
	padding-left: 5px;
	padding-right: 5px;
}

.bg_bl {
	display: none;
}

#sub_top {
	background-color: #EEE;
	background-repeat: no-repeat;
	background-position: center center;
	width: 100%;
	background-size: cover;
	text-align: center;
	font-family: 'Raleway', sans-serif;
	color: #FFF;
	letter-spacing: 0.5em;
	-moz-text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	-webkit-text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	-ms-text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

#sub_top.gallery {
	background-image: url(../images/sub_top_gallery.jpg);
}

.pankuzu {
	background-color: #F6F6F6;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 30px;
	color: #555;
	width: 100%;
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #E5E5E5;
	border-top: 1px solid #FFF;
}

.pankuzu ul {
	width: 96%;
	max-width: 1100px;
	margin-right: auto;
	margin-left: auto;
	padding: 0;
}

.pankuzu li {
	display: inline-block;
	list-style-type: none;
}

.pankuzu li a {
	text-decoration: none;
	color: #999;
}

.pankuzu li a::after {
	content: ">";
	padding-left: 10px;
	padding-right: 10px;
}

.pankuzu li a:hover {
	color: #111;
}

.pankuzu li i {
	padding-right: 5px;
}

#infos h1 {
	text-transform: none;
	letter-spacing: 0.05em;
	margin-right: 10px;
	margin-left: 10px;
}

@media screen and (min-width:960px) {
	header {
		height: 140px;
		box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px 0px;
		-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px 0px;
		-moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px 0px;
	}

	header h1 a img {
		top: 20px;
		left: 10px;
	}

	header .h_btn a {
		width: 160px;
		top: 20px;
		right: 10px;
		line-height: 38px;
		padding-top: 2px;
		font-size: 14px;
		font-weight: bold;
	}

	header .h_tel a {
		width: 180px;
		top: 20px;
		right: 180px;
		line-height: 38px;
		padding-top: 2px;
		font-size: 14px;
	}

	header .h_tel a strong {
		font-size: 18px;
	}

	.menu_btn,
	.btn_close {
		display: none;
	}

	#g_navi {
		width: 98%;
		padding-left: 2%;
		display: block;
		height: 50px;
		position: absolute;
		z-index: 1000;
		left: 0px !important;
		bottom: 0px;
		font-size: 14px;
		letter-spacing: 1px;
		font-weight: bold;
	}

	#g_navi ul.navi_base {
		width: 100%;
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}

	#g_navi ul li {
		display: inline;
	}

	#g_navi li a {
		width: 16%;
		padding-top: 15px;
		height: 35px;
		display: block;
		color: #111;
		text-decoration: none;
		text-align: center;
		line-height: 20px;
		position: relative;
		float: left;
	}

	#g_navi ul li div {
		position: absolute;
		z-index: 2000;
		top: 50px;
		left: 0px;
		opacity: 0;
		visibility: hidden;
		transition: .3s;
		width: 100%;
		height: auto;
		background-color: #111;
	}

	#g_navi ul li:hover div {
		visibility: visible;
		opacity: 1;
	}

	#g_navi div.ac_list {
		display: block !important;
	}

	#g_navi ul li ul {
		width: 96%;
		padding-left: 2%;
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
	}

	#g_navi li ul li a {
		width: 21%;
		padding-left: 3%;
		padding-top: 9px;
		padding-bottom: 9px;
		line-height: 22px;
		height: 22px;
		color: #FFF;
		text-align: left;
		margin-top: 10px;
		margin-bottom: 10px;
		margin-left: 1%;
		border-radius: 5px;
	}

	#sub_top {
		height: 120px;
		line-height: 30px;
		padding-top: 300px;
		font-size: 20px;
	}
}

@media screen and (min-width:1200px) {
	header .h_btn a {
		right: 50%;
		margin-right: -600px;
	}

	header .h_tel a {
		right: 50%;
		margin-right: -400px;
	}

	header h1 a img {
		left: 50%;
		margin-left: -600px;
	}
}

@media screen and (max-width:960px) {
	body.fixed {
		overflow: hidden;
	}

	.menu_btn {
		display: block;
		height: 30px;
		width: 40px;
		text-align: center;
		padding-top: 5px;
		padding-bottom: 5px;
		position: fixed;
		z-index: 5000;
		top: 5px;
		right: 5px;
		border-radius: 3px;
		cursor: pointer;
	}

	.menu_btn span {
		display: none !important;
	}

	.menu_btn::before,
	.menu_btn::after {
		content: "";
		display: block;
		position: absolute;
		left: 6px;
		width: 28px;
		height: 2px;
		background-color: #555;
		transition: all 0.3s;
	}

	.menu_btn::before {
		top: 10px;
		box-shadow: 0 8px 0 #555, 0 16px 0 #555;
	}

	.menu_btn::after {
		display: none;
		top: 18px;
	}

	.menu_btn.opened::before {
		top: 18px;
		box-shadow: none;
		transform: rotate(45deg);
	}

	.menu_btn.opened::after {
		display: block;
		transform: rotate(-45deg);
	}

	#g_navi {
		position: fixed;
		width: 80%;
		height: 100%;
		top: 0px;
		left: 100%;
		padding-top: 50px;
		overflow: auto;
		z-index: 3000;
		background-color: #FFF;
		box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 3px 0px;
		font-size: 14px;
		letter-spacing: 1px;
		box-sizing: border-box;
	}

	#g_navi ul {
		display: block;
		margin: 0px;
		padding: 0px;
		clear: both;
	}

	#g_navi ul li:first-child {
		border-top: 1px solid #EEE;
	}

	#g_navi ul li {
		display: block;
		border-bottom: 1px solid #EEE;
		list-style-type: none;
	}

	#g_navi ul li a {
		color: #111;
		text-decoration: none;
		display: block;
		padding-top: 16px;
		padding-right: 30px;
		padding-bottom: 14px;
		padding-left: 20px;
		line-height: 22px;
		vertical-align: middle;
	}

	#g_navi ul li a.ac_menu {
		position: relative;
		background-image: none;
	}

	#g_navi ul li a.ac_menu::after {
		font-size: 11px;
		display: block;
		height: 20px;
		width: 20px;
		content: "▼";
		text-align: center;
		line-height: 20px;
		position: absolute;
		top: 16px;
		right: 10px;
		color: #555;
	}

	#g_navi ul li a.ac_menu.active::after {
		content: "▲";
	}

	#g_navi div.ac_list {
		display: none;
	}

	#g_navi ul li ul li {
		border-bottom: none;
	}

	#g_navi ul li li:first-child {
		border-top: none;
	}

	#g_navi ul li ul li a::before {
		content: "・";
		padding-right: 5px;
		color: #999;
	}

	.bg_bl {
		background-color: #FFF;
		height: 100%;
		width: 100%;
		opacity: 0.80;
		filter: alpha(opacity=80);
		-ms-filter: "alpha( opacity=80 )";
		position: fixed;
		z-index: 2000;
	}

	header {
		height: 52px;
	}

	header h1 a img {
		top: 5px;
		left: 5px;
		height: 40px;
	}

	header .h_btn a {
		width: 120px;
		top: 10px;
		right: 50px;
		line-height: 29px;
		padding-top: 1px;
		font-size: 12px;
	}

	header .h_tel a {
		width: 120px;
		top: 10px;
		right: 180px;
		line-height: 29px;
		padding-top: 1px;
		font-size: 12px;
	}

	#sub_top {
		height: 150px;
		line-height: 150px;
		padding-top: 50px;
		background-position: center 50px;
		font-size: 20px;
	}

	#sub_top.gallery {
		background-image: url(../images/sub_top_gallery_sp.jpg);
	}
}

@media screen and (max-width:640px) {
	header h1 a img {
		top: 5px;
		height: 30px;
	}

	header .h_btn a {
		width: 50px;
		font-size: 18px;
		border-top-style: none;
		border-bottom-style: none;
	}

	header .h_tel a {
		width: 50px;
		font-size: 18px;
		right: 100px;
	}

	header .h_tel a span,
	header .h_btn a span {
		display: none;
	}

	.gallery-block > .gallery-text {
		order: 1;
	}

	.gallery-block > div:not(.gallery-text) {
		order: 2;
	}

	#infos h1 {
		font-size: 2em !important;
		line-height: 1.3;
	}
}
