@charset "utf-8";
/*==================================================
	スマホのみに適用
==================================================*/
@media only screen and (max-width: 640px){
	body { font-size: 85%; }
	.dsp_hp, .dsp_hpt { display: none; }
	#header h1.title img {
		max-height: 12px;
	}
	/* コンテナ */
	#wrap, #footer {
		min-width: 320px;
	}
	#page_title h2 span {
		padding: 0 20px;
		letter-spacing: 0;
		font-size: 25px;
		line-height: 40px;
		padding-bottom: 5px;
		white-space: nowrap;
	}
	#container h3.sub {
		margin-bottom: 10px;
		font-size: 25px;
	}
	#container h3.sub span {
		font-size: 16px;
	}
	#container h3.sub:before {
		background: url(../img/slash.png) no-repeat top left / 15%;
		left: 100px;
	}
	#container h3.sub02 {
		margin-bottom: 5px;
		font-size: 25px;
		-ms-writing-mode: revert;
		writing-mode: revert;
	}
	#container h3.sub02 span {
		left: 0;
		font-size: 14px;
		top: -10px;
	}
	/* フッター */
	#footer {
		background-size: contain;
	}
	#footer .bg_f {
		top: -5px;
	}
	#footer .box dt img {
		width: 275px;
	}
	#footer .box dd.flex {
		display: block;
	}
	#footer .box dd.flex a:first-of-type {
		margin-right: 0;
	}
	#copyright {
		height: auto;
		line-height: 1.6;
		padding: 5px 0;
	}
	/* 枠のマージン・パディング */
	.mb { margin-bottom: 30px; }
	.pt { padding-top: 30px; }
	.pb { padding-bottom: 30px; }
	/*--------------------------------------------------
		トップページ
	--------------------------------------------------*/
	#top_ttl img {
		border-width: 5px;
	}
	#top_msg .greeting_box .txt_box {
		width: 100%;
		margin-bottom: 20px;
	}
	#top_msg .greeting_box .txt_box .txt {
		font-size: 14px;
	}
	#top_msg .greeting_box .img_box {
		width: 100%;
		position: relative;
		top: 0;
		left: 0;
	}
	#top_contents .contents_box .sec {
		width: calc(150px - -20px);
	}
	#top_contents .contents_box .sec a {
		width: 150px;
		height: 150px;
	}
	#top_contents .contents_box .sec dt img, #top_contents .contents_box .sec.service_menu dt img {
		width: 40%;
	}
	#top_contents .contents_box .sec dd .ttl {
		font-size: 16px;
	}
	#top_contents .contents_box .sec dd img {
		width: 20%;
	}
	#top_contents .contents_box .sec .txt {
		width: calc(100% - 20px);
	}
	#top_info .info_box {
		padding: 20px 0 40px;
	}
	#top_info .info_box .cont_box {
		width: 100%;
	}
	#top_access {
		padding-top: 50px;
	}
	#top_access .access_box .img_box {
		width: 100%;
		position: relative;
		left: 0;
		order: 2;
	}
	#top_access .access_box .txt_box {
		margin-left: 0;
		margin-bottom: 20px;
	}
	@media only screen and (max-width: 320px) {
		#header h1.title img {
			max-height: 9px;
			position: relative;
			top: -5px;
		}
		#top_contents .contents_box .sec {
			width: calc(130px - -20px);
		}
		#top_contents .contents_box .sec a {
			width: 130px;
			height: 130px;
		}
	}
	/*--------------------------------------------------
		過去の設計事例
	--------------------------------------------------*/
	#case h3 {
		font-size: 160%;
		margin-bottom: 20px;
	}
	#case .box_img {
		grid-template-columns: repeat(2, 48.5%);
		gap: 10px 0;
		margin-bottom: 15px;
	}
	#case .box_img img {
		height: 30vw;
	}
	#works h4 {
		font-size: 18px;
		padding-bottom: 3px;
		margin-bottom: 10px;
	}
	.remodal {
		padding-left: 15px !important;
		padding-right: 15px !important;
		padding-bottom: 15px !important;
	}
	/*--------------------------------------------------
		業務案内
	--------------------------------------------------*/
	#service .service_flow h3.sub:before {
		left: 100px;
	}
	#service .service_flow .flow_box .box.reverse {
		flex-direction: column-reverse;
	}
	#service .service_flow .flow_box .box .img_box {
		width: 100%;
	}
	#service .service_flow .flow_box .box .txt_box {
		width: 100%;
	}
	#service .service_flow .big_txt {
		font-size: 110%;
		text-align: left;
	}
	#service .service_outline .outline_box h3.sub::before {
		top: 20px;
	}
	#service .service_outline .outline_box .txt_box {
		width: 100%;
		margin-top: 20px;
	}
	#service .service_outline .outline_box .txt_box dl {
		flex-direction: column;
		padding: 10px 15px;
	}
	#service .service_outline .outline_box .txt_box dt {
		width: 100%;
	}
	#service .service_outline .outline_box .txt_box dd {
		width: 100%;
	}
	/*--------------------------------------------------
		サブページ
	--------------------------------------------------*/
	
/*------------------------------------------------*/
}
