@charset "utf-8";

/********************************
					PC
********************************/
@media screen and (max-width: 1020px) {

	#contents,
	#header_container,
	#gnavi,
	#slide ,
	#sitemap .sitemap_in,
	#footer .footer_in{
		width: 100%;
	}
}

/********************************
					タブレット
********************************/
@media screen and (max-width: 830px) {
	#gnavi ul li{
		font-size:14px;
	}
}

@media screen and (max-width: 755px) {
	/********************************
		ヘッダー
	********************************/
	header{
		padding:8px 8px 0 8px;
	}
	#header_container #header_right{
		display:none;
	}
	#gnavi{
		margin:0;
	}
	#gnavi > ul {
		display: block;
		padding: 20px;
		background-color: #FFFFFF;
	}
	#gnavi ul li{
		width:100%;
		text-align: left;
		border-bottom: dashed 1px #ccc;
	}
	#gnavi ul li a{
		position: relative;
		padding: 20px 10px;
	}
	#gnavi ul li a:after {
		content: url(/images/common/arw_right2.svg);
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		right: 10px;
	}
	#gnavi > ul > li.drawer-dropdown>a:after {
		content: "";
		display: none;
	}
	#gnavi > ul > li ul > li a:before{
		content: "●" !important;
		color:#009245;
	}
	header.scroll-nav #gnavi ul li a {
		padding: 20px 10px !important;
		transition: 0 !important;
	}
	.drawer-dropdown a:after {
		content: url("/images/common/arw_right2.svg");
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		right: 10px;
		background: none;
		border-radius: 0;
		margin: 0;
		width: auto;
		height: auto;
		border: none;
	}
	.sp_contactbox{
		margin-top: 30px;
		text-align: center;
	}
	.sp_contactbox #sp_header_tel{
		margin-bottom: 30px;
		font-size:24px;
		color:#009245;
	}
	.sp_contactbox #sp_header_tel:before{
		content:url('/images/common/ic_tel.svg');
		margin-right:5px;
		vertical-align: top;
	}
	.sp_contactbox #sp_header_contact{
		margin-top:10px;
	}
	.sp_contactbox #sp_header_contact a{
		background-color:#009245;
		color:#FFFFFF;
		text-align:center;
		padding:10px 20px;
		text-decoration:none;
	}
	.sp_contactbox #sp_header_contact a:hover{
		background-color:#FF8040;
	}
	.sp_contactbox #sp_header_contact a:before{
		content:url('/images/common/ic_mail.svg');
		margin-right:5px;
	}

	/********************************
		スライド
	********************************/
	#slide{
		padding-top:60px;
	}
	#visual_logo{
		font-size: 15px;
		top: 80px;
		left: 20px;
	}
	#visual_logo b{
		font-size: 20px;
	}
	
	/********************************
		次階層
	********************************/
	#next_header{
		margin-top: 73px;
		width:100%;
	}
	#next_header p#pagetitle {
		font-size: 24px;
	}
	table.data th{
		display: block;
		width:100%;
		margin: 5px 0 0;
	}
	table.data td{
		display: block;
		width:100%;
		padding: 10px 0px;
	}

	#next_header p#pagetitle {
		font-size: 20px;
		left: 10px;
		transform: translate(0%, -50%);
	}
	
	/*********************************************
		事業承継とは
	*********************************************/
	h2.next_label {
		font-size: 20px;
	}
	.stepbox h3 {
		font-size: 16px;
	}

	.methodbox {
		display: block;
	}

	.methodbox > div {
		width: 100%;
		margin: 0 0 20px;
	}
	.linkbutton_out a{
		width:100%;
		padding: 20px 10px;
	}

	/*********************************************
		ご相談の流れ
	*********************************************/
	h3.next_label{
		font-size:16px;
	}

	#flow .stepflex {
		display: block;
	}
	#flow .stepflex .stepbox {
		width: 100%;
		margin-bottom:10px;
	}
	#flow .pcstepallow:after{
		border:none;
	}
	.stepflex .stepbox p {
		padding: 5px;
	}

	.soudanflex {
		display: block;
	}
	.telbox,
	.faxbox {
		width: 100%;
		margin-bottom: 30px;
	}
	.dottedline {
		font-size: 16px;
	}
	.telmark:before,
	.faxmark:before {
		padding: 5px;
	}
	#flow .linkbutton a {
		width: 100%;
	}
	.materialsflex {
		display: block;
	}
	.materialsflex p {
		text-align: left;
		padding: 10px;
		margin-right: 0;
		display: block;
	}

	/*********************************************
		後継者人材バンク
	*********************************************/
	.circlebox {
		margin: 5px 0;
	}
	.circlebox li{
		margin-bottom: 20px;
		text-indent: -1.3em;
		margin-left: 1.3em;
	}
	.flexbox3{
		display:block;
	}
	.flexbox3 > div {
		width: 100%;
	}
	.flexbox3 dl {
		display: block;
	}
	.flexbox3 dl dt {
		padding: 10px 0 0 10px;
	}
	.flexbox3 dl dd {
		padding: 0 25px 10px;
	}
	.flexbox3 > div.centerbox {
		margin: 0;
	}
	.flexbox3 > div.lastbox {
		margin-top: 0;
	}
	

	/*********************************************
		よくある質問
	*********************************************/
	.toggle_contents .toggle_title p{
		padding-left: 34px;
		text-indent: -40px;
	}
	.toggle_contents .toggle_menu p{
		padding-left: 34px;
		text-indent: -40px;
	}
	.toggle_title {
		padding: 10px;
	}
	.toggle_contents .toggle_menu {
		padding: 10px;
	}
	.toggle_btn {
		right: 10px;
	}

	/*********************************************
		プライバシーポリシー
	*********************************************/
	#privacypolicy dl dd ol{
		margin:10px 0 10px 30px;
	}

	/********************************
		フッター
	********************************/
	#footer_logo img{
		max-width: 130px;
	}
}

/********************************
					スマートフォン
********************************/
@media screen and (max-width: 640px) {
	.pagelink {
		margin-top: -60px;
		padding-top: 60px;
	}
	#pannavi{
		display:none;
	}
	/********************************
							共通
	********************************/
	h3 {
		font-size: 20px;
	}
	h4 {
		font-size: 16px;
	}
	
	.pc {
		display: none !important;
	}

	.sp {
		display: inline-block;
	}

	.contents {
		padding: 0 20px;
	}

	.next_contents {
		padding: 0 20px;
	}

	.container {
		margin: 30px 10px;
		text-align: left;
	}

	.greeting_msg {
		width: 100%;
	}
	.greeting_photo {
		width: 100%;
	}

	.newslist dl {
		margin: 10px;
	}

	.newslist dl dt span {
		padding: 2px 5px;
	}
	.newslist dl dt {
		margin-bottom: 5px;
		width:100%;
	}

	.linkbutton {
		margin: 10px 0 20px;
	}
	.linkbutton a {
		width: 60%;
		padding: 10px;
	}

	.access_flex{
		display: block;
	}
	.access_map {
		width: 100%;
		padding-top: 60%;
		margin-bottom:20px;
	}
	.access_info {
		width: 100%;
	}

	h2.lbltitle{
		font-size: 16px;
	}

	h2#news:before,
	h2#greeting:before,
	h2#access:before {
		width: 30px;
		height: 30px;
	}

	p#address,
	p#time,
	p#tel {
		margin: 10px 0;
		text-indent: -1.8em;
		padding-left: 2em;
	}

	p#address:before,
	p#time:before,
	p#tel:before {
		width: 25px;
		height: 20px;
	}
	
	.aboutmsg {
		padding: 10px;
	}
	.aboutmsg .lbltitle {
		font-size: 1.2rem;
	}
	.aboutmsg p {
		font-size: 14px;
	}
	.aboutmenu li b{
		font-size: 1.2rem;
	}
	
	.aboutmenu {
		width: 100%;
		margin: 30px auto 60px;
	}
	.aboutmenu li {
		display: block;
		width: 100%;
		margin-bottom: 30px;
	}
	.aboutmenu li p {
		line-height: 1;
	}
	.aboutmenu li p img{
		max-width: 70px;
		width: 100%;
	}

	.bannerflex {
		display: block;
	}
	.bannerflex p {
		width: 80%;
		margin: 0 auto 20px;
	}
	
	p#address,
	p#time,
	p#tel,
	p#fax{
		font-size:14px;
	}

	.access_info .accessbox {
		font-size:14px;
		margin: 0 10px;
	}

	.banner li {
		width: 47%;
		margin: 10px 1%;
	}

	.achievementsbox {
		display: block;
	}
	.achievementsbox .achievements {
		width: 100%;
		margin: 10px 0;
	}
	.achievements_txt strong {
		font-size: 20px;
	}
	.achievements_txt {
		font-size: 16px;
	}

	/*********************************************
		よくある質問
	*********************************************/
	.faq dt,
	.faq dd{
		font-size: 16px;
	}

	/********************************
		ヘッダー
	********************************/
	header #header_logo img,
	header.scroll-nav #header_logo img{
		max-width: 350px;
		padding: 10px 70px 10px 10px;
		width: 100%;
	}
	header #header_container #header_logoname,
	header.scroll-nav #header_container #header_logoname{
	
		font-size: 12px;
		margin:3px 0 0 0;
	}

	/********************************
		フッター
	********************************/
	#sitemap{
		display:none;
	}

	#footer .footer_in #fotter_sitename {
		font-size: 14px;
	}
	#footer .footer_in p {
		font-size: 12px;
	}

	#footer .footer_in #copyright{
		font-size: 10px;
	}

}

@media screen and (min-width: 755px) {
	header button {
		display: none !important;
	}
}