@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);
@import url(https://fonts.googleapis.com/css?family=Modern+Antiqua);

/* reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;}
ul{list-style:none;}
table{border-collapse:collapse;border-spacing:0;}
caption,th{text-align:left;}
q:before,q:after{content:'';}
object,embed{vertical-align:top;}
legend{display:none;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
img,abbr,acronym,fieldset{border:0;}

html { 
	scroll-behavior: smooth;
}

body{
	font: 14px/1.9 'Noto Sans JP', Arial, Verdana, 游ゴシック, YuGothic,'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo,sans-serif;
	font-weight: 300;
	-webkit-text-size-adjust:100%;
	overflow-x: hidden;
	color: #000;
	background: #fff;
}

a{
	color: #0066ff;
	text-decoration: none;
}

a:hover, .active{
  text-decoration: underline;
}

a:active, a:focus,input:active, input:focus{outline:0;}

#content {
	padding-top: 0;
}
	

/* ヘッダー
------------------------------------------------------------*/
#mainnav a{
	color: #000;
	font-family: 'Modern Antiqua', 'Noto Sans JP',serif;
}


/* フッター
------------------------------------------------------------*/
#footer{
	clear: both;
	padding: 50px 10px 50px 0;
	text-align: center;
	font-size: 12px;
	background-color:  #ADAEC0;
	color: #FFF;
}

#footer a{
	color: #FFF;
	text-decoration: none;
}

#footer a:hover, .active{
	color:  #3C398C;
}

#copyright  {
	padding-top: 30px;
}


/* 共通
------------------------------------------------------------*/
h1, h2{
	font-family: 'Modern Antiqua', 'Noto Sans JP',serif;
}

img{
	max-width: 100%;
	height: auto;
}

section{
  clear: both;
}

section h2{
	width: 60%;
	margin: 70px auto 65px;
	font-size: 22px;
	font-weight:normal;
	text-align: center;
}

section h2 span {
	padding-bottom: 10px;
	border-bottom: 3px solid #000;
}

.inner{
	width: 90%;
	margin: 0 auto;
	padding-bottom: 70px;
	border-bottom: 1px solid #a0a0a0;
}

.contact-f{
	width: 60%;
	margin: 0 auto;
}

.mb-50 {margin-bottom: 50px;}
.mb-60 {margin-bottom: 60px;}
.mb-80 {margin-bottom: 80px;}


/* Menu
------------------------------------------------------------*/

.btn-aoi {
	padding: 25px auto;
}

.txt_tel {
	font-size: 15px;
	font-weight: 500;
	color: #5F1617;
}

/* SEC01 MESSAGE
------------------------------------------------------------*/

#sec01 .inner {
	text-align: center;
}


/* SEC02 COMPANY
------------------------------------------------------------*/
#sec02{
	padding-bottom: 0 !important;
}

#sec02 article {
	display:  flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-bottom: 50px;
}

.img-ph {
	width: 40%;
	margin-right: 6%;
}

.img-ph img {
	width: 100%;
}
.office-detail {
	width: 50%;
}

.business {
	width: 50%;
}

.business p {
	margin-top: 20px;
}

#sns{
	margin-top: 50px;
}

#sns li{
	display: inline-block;
	padding-right: 10px;
}

#sns a:hover img{
	opacity: .8;
}
	

/* SEC03 ACCESS
------------------------------------------------------------*/

#sec03 .inner {
	display:  flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-bottom: 50px;;
}

.com-ph {
	width: 40%;
	margin-right: 6%;
}

.com-ph img {
	width: 100%;
	margin-bottom: 50px;
}

.com-map {
	width: 50%;
}

.com-map iframe {
	width: 100%;
	height: 38%;
	margin-bottom: 40px;
}

#sec03 p{
	margin-bottom: 5px;
}


/* SEC04 CONTACT
------------------------------------------------------------*/

/* for table */
#form-tbl {
	margin-left: 1.5em;
}
#form {
	border-collapse: collapse;
	width: 60%;
	margin: 1em 0;
}
#form th, #form td {
	border: 1px solid #666;
	padding: 8px;
}
#form th {
	white-space: nowrap;
	background: #e8e8e8;
	width: 27%;
}
#form td {
	background: #fff;
}
p.btn input {
	width: 110px;
	height: 32px;
}

.contact-f ol {
	margin-left: 30px;
}

/* for title */
h4 {
	font-size: 100%;
	text-align: left;
	border-left: solid 4px #ef002d;
	border-bottom: 1px solid gray;
	padding: 4px 6px;
	margin: 1.5em 0;
	width: 100%;
}

/* for message */
p.msg {
	color: #dd0000;
	margin: 2em;
}
span.msg {
	color: #dd0000;
}

/* for back-button */
form.back {
	margin-top: 2em;
}

#contact  {
	padding-bottom: 70px;
}


/* SEC05 LINK
------------------------------------------------------------*/
	
.flex-a{
	display:  flex;
	flex-wrap: wrap;
}



/* ----------------------------------------------------------
  RESPONSIVE 設定
------------------------------------------------------------*/

@media only screen and (min-width: 800px){

	body{
		font-size:14px;
	}
	
	#wrapper{
		width: 100%;
	}
	
	#content{
		width: 80%;
		padding-top:  0;
	}
	
	#sidebar{
		width: 12%;
		position: fixed;
		top: 0;
		right: 4%;
		background: #fff;
	}
	
  a#menu{
		display:none;
	}	

	.panel{
		display:block !important;
	}
	
	#sidebar h1{
		padding: 30px 0;
	}

	#mainnav li{
		font-size: 14px;
		padding: 5px 0;
	}
	

  #footer{
		padding: 30px 10px 70px 0;
	}
}


@media only screen and (min-width: 641px){

	#content {
		padding-top: 60px;
	}
	

/* SEC05 LINK
------------------------------------------------------------*/
	
	.flex-c1 {
		width: 35%;
		margin: 0 6% 0 6%;
	}

}

@media only screen and (max-width: 640px){

	#content {
		padding-top: 50px;
	}
	
	#sec01,
	#sec02,
	#sec03,
	#sec04,
	#sec05 {
		width: 100%,
	}
	
	.inner {
		width: 90%;
		margin: 20px auto;
	}


/* SEC01 MESSAGE
------------------------------------------------------------*/

	#sec01 .inner {
		text-align: left;
	}
	
	
/* SEC02 COMPANY
------------------------------------------------------------*/
	
	.img-ph,
	.office-detail,
	.business {
		width: 100%;
		margin: 20px auto;
	}
	
	
/* SEC03 ACCESS
------------------------------------------------------------*/
	
	.com-ph,
	.com-map {
		width: 100%;
		margin: 20px auto;
	}
	
	
/* SEC04 CONTACT
------------------------------------------------------------*/
	
	.contact-f{
		width: 94%;
		padding-bottom: 30px;
	}
	
	#form {
		width: 400px;
	}
	
	#form td {
		width: 400px;
	}
	
	/* 投稿フォーム */
	#form-tbl { margin: 0 auto; text-align: center; }
	#form { width: 90%; margin: 10px auto; }
    #form th, #form td {
    	text-align: left;
		width: 100%;
        display: block;
        padding: 6px 0 6px 6px;
        border-top: none;
    }
    #form tr:first-child th	{ border-top: 1px solid #666; }
    p.btn input { width: 10em; }
    
	/* 小見出し */
	h2 { margin: 1em 3px; width: 90%; }
	
	/* サンクス */
	p.msg { margin: 1em auto; }

	

/* SEC05 LINK
------------------------------------------------------------*/
	
	.flex-c1 {
		width: 75%;
		margin: 0 0 0 6%;
	}
	

	
	#gallery li{
		float: none;
		width: 100%;
	}
	.article img{
		float: none;
		display: block;
		margin: 0 auto 20px;
	}
	#map iframe{
		width: 96% !important;
		left: 2%;
	}
}

@media only screen and (max-width: 799px){

	#sidebar{
		position: fixed;
		width: 100%;
		z-index:500;
	}
	
	#sidebarWrap{
		position: relative;
		width: 100%;
		height: 60px;
		background: #fff;
		border-bottom: 1px solid #ccc;
	}
	
	#sidebar h1{
		float: right;
		text-align: center;
		padding-top: 0px;
	}
	
	#sidebar h1 img{
		width: auto !important;
		max-height: 25px;
	}
	
	a#menu{
  	display: inline-block;
  	position: relative;
  	width: 40px;
  	height: 40px;
  	margin: 10px;
	}

	#menuBtn{
  	display: block;
  	position: absolute;
  	top: 50%;
  	left: 50%;
  	width: 18px;
  	height: 2px;
  	margin: -1px 0 0 -7px;
  	background: #000;
  	transition: .2s;
	}

	#menuBtn:before, #menuBtn:after{
  	display: block;
  	content: "";
  	position: absolute;
  	top: 50%;
  	left: 0;
  	width: 18px;
  	height: 2px;
  	background: #000;
  	transition: .3s;
	}

	#menuBtn:before{
  	margin-top: -7px;
	}

	#menuBtn:after{
  	margin-top: 5px;
	}

	a#menu .close{
  	background: transparent;
	}

	a#menu .close:before, a#menu .close:after{
  	margin-top: 0;
	}

	a#menu .close:before{
  	transform: rotate(-45deg);
  	-webkit-transform: rotate(-45deg);
	}

	a#menu .close:after{
  	transform: rotate(-135deg);
  	-webkit-transform: rotate(-135deg);
	}

	.panel{
		display: none;
		position: fixed;
		width: 100%;
		height:  100%;
		overflow: auto;
		left: 0;
		top: 50px;
		z-index: 100;
	}

	#mainnav{
		position: absolute;
		top: 0;
		width: 100%;
		text-align: right;
	}

	#mainnav ul{
		border-bottom: 1px solid #ccc;
		background: #fff;
		text-align: left;
	}

	#mainnav li a{
		position: relative;
		display: block;
		padding: 15px 25px;
		border-bottom: 1px solid #ccc;
		color: #000;
		font-weight: 400;
	}
	#mainnav li a:before{
		display: block;
		content: "";
		position: absolute;
		top: 50%;
		left: 5px;
		width: 6px;
		height: 6px;
		margin: -4px 0 0 0;
		border-top: solid 2px #000;
		border-right: solid 2px #000;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
	}

	section h2{
		margin: 55px auto;
	}
}


@media only screen and (min-width: 800px) {
	
	#content {
		padding-top: 0;
	}	

	.flex-c1{
		width: 18%;
		margin: 30px 3% 0;
	}


	
}