html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

#wrapper {
	width: 100%;
	/*  height: 100%;*/
	margin-bottom: 50px;
	overflow: hidden;
}



#name_flame {
	width: 20%;
	height: 300px;
	margin-top: 60px;
	float: left;
}

#name_flame #name_box {
	/*  margin: 0 auto;*/
}



#name_box #name {
	display: block;
	width: 30px;
	height: 150px;
	margin: 0 auto;
	background-image: url(img/%E9%88%B4%E6%9C%A8%E8%8A%B1%E5%8D%89%E5%9C%92.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: top center;
}

#name_box #logo {
	display: block;
	margin: 30px auto 0;
	width: 50px;
	height: 50px;
	background-image: url(img/AMIE-01.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: top center;
}


@media screen and (min-width:767px) {

	#name_box #name {
		display: block;
		width: 30px;
		height: 200px;
	}


}


#logo_flame {
	width: 80%;
	float: left;
	margin: 150px 0 80px;
}

/*
#logo_flame::after{
  content: "";
  display: block;
  clear: both;
}
*/

#logo_img {
	width: 100%;
	height: 450px;
	background-image: url(img/AMIE-04.svg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

#text_area {
	display: block;
	width: 82%;
	text-align: center;
	margin: 0 9%;
}

@media screen and (min-width:767px) {
	#name_flame {
		float: left;
		width: 15%;
		margin-right: 5%;
	}

	#name_box #name {
		/*    height: 200px;*/
	}

	#name_box #logo {
		margin-top: 50px;
		height: 75px;
	}

	#logo_flame {
		float: right;
		width: 20%;
		margin: 60px 0 0px 0%;
		padding-right: 30px;
	}

	#logo_img {
		width: 82%;
		margin-right: 18%;
	}

	#text_area {
		float: right;
		width: 100%;
		/*		margin: 300px 11% 0;*/
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		margin: 0;
		margin-top: 130px;
	}

	#text_area #box_flame {
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
	}

}


@media screen and (min-width:767px) and (max-width:1000px) {
	#text_area {
		/*    width: 40%;*/
		margin-top: 50px;
	}


}

#box_flame {
	display: inline-block;
	width: 100%;
}

#box_flame > ul {
	text-align: left;
	width: 100%;
	padding-left: 17px;
	border-top: solid 1.5px #dcdcdc;
}

#box_flame > ul:last-of-type {
	border-bottom: solid 1.5px #dcdcdc;
}

#box_flame ul > li:nth-child(1) {
	margin-top: 22px;
	margin-bottom: 19px;
	font-size: 19px;
}


#box_flame ul > li:nth-child(2) {
	margin-bottom: 22px;
	font-size: 17px;
	font-weight: 500;
	font-family: "游明朝", "Yu Mincho", "游明朝体", "YuMincho";
	letter-spacing: 2px;
	line-height: 1.3;
}


@media screen and (min-width:767px) {
	#box_flame {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: reverse;
		-ms-flex-direction: row-reverse;
		flex-direction: row-reverse;
		padding-right: 8%;
	}

	#box_flame > ul {
		border: none;
		width: auto;
/*		height: 700px;*/
		margin-left: 20px;
	}

	#box_flame > ul:last-of-type {
		border: none;
	}

	#box_flame > ul li {
		display: inline-block;
	}

	#box_flame > ul li .cate {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}

	#box_flame > ul li:first-child {
		height: 120px;
		margin: 0;
		font-size: 18px;
	}

	#box_flame > ul li:nth-of-type(2) {
		height: 500px;
		letter-spacing: 5px;
		margin-top: 30px;
		font-size: 16px;
		line-height: 18px;
	}
	
	#box_flame > ul.ourwork li:nth-of-type(2){
		margin-top: 45px;
	}

	#box_flame > ul {
		-webkit-writing-mode: vertical-rl;
		writing-mode: vertical-rl;
		-ms-writing-mode: tb-rl;
	}

	#box_flame #tel_box {
		/*    margin-left: 40px;*/
		/*    width: 190px;*/
	}

	#box_flame #tel_box > li:first-child {
		vertical-align: top;
	}

}

@media screen and (min-width:767px) and (max-width:1000px) {

	#box_flame {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: reverse;
		-ms-flex-direction: row-reverse;
		flex-direction: row-reverse;
		padding-right: 4%;
	}

	#box_flame > ul {
		margin-left: 10px;
	}
}

#box_flame > ul #tel_num p {
	height: 18px;
	margin: 15px 0 15px 0;
	padding-left: 45px;
	position: relative;
	font-size: 15px;
}

#box_flame > ul #tel_num p::after {
	position: absolute;
	display: block;
	content: "";
	width: 18px;
	height: 18px;
	top: 0px;
	left: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

#box_flame > ul .no_char {
	display: inline-block;
}


#box_flame > ul .sp_char {
	display: none;
}


#box_flame > ul.store_name li:last-of-type {
	vertical-align: top;
}




@media screen and (min-width:767px) {
	#box_flame > ul #tel_num p {
		display: block;
		height: 400px;
		margin: 30px 20px 0px;
		padding: 0;
	}

	#box_flame > ul #tel_num p:first-child {
		margin: 30px 0 0 23px;
	}

	#box_flame > ul #tel_num p:last-child {
		margin: 30px 0px 0px;
	}

	#box_flame > ul #tel_num p::after {
		right: 0;
		top: -30px;
	}

	#box_flame > ul .no_char {
		display: none;
	}

	#box_flame > ul .sp_char {
		display: inline-block;
	}

	#box_flame > ul.store_name li:last-of-type p:first-of-type {
		margin: 0px 0 0 15px;
		line-height: 1em;
	}

}



@media all and (-ms-high-contrast: none) {
/* ここに書く */
	  #box_flame > ul #tel_num p::after{
		right: -3px;
	  }
	
	#box_flame > ul li:first-child{
		vertical-align: top;
		}
		
	
}

#box_flame > ul #tel_num > p:nth-of-type(1)::after {
	background-image: url(img/info/icon-01.svg);
}

#box_flame > ul #tel_num > p:nth-of-type(2)::after {
	background-image: url(img/info/icon-02.svg);
}

#box_flame > ul #tel_num > p:nth-of-type(3)::after {
	background-image: url(img/info/icon-03.svg);
}

#box_flame > ul #tel_num > p:nth-of-type(4)::after {
	background-image: url(img/info/icon-04.svg);
}

ul.ourwork {
	text-align: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}


@media screen and (min-width:767px) {

	ul.ourwork li:last-of-type p {
		display: block;
		margin-left: 20px;
		line-height: 1.5em;
		margin-top: -10px;
	}

	ul.ourwork li:last-of-type p:first-of-type {
		line-height: 1em;
	}

	ul.ourwork li:last-of-type p span {
		display: block;
		margin: 0 10px;
	}

	ul.ourwork li:last-of-type p span:first-of-type {
		margin-right: 0;
	}
}

ul.store_name li:last-of-type p {
	margin-bottom: 8px;
}

ul.store_name li:last-of-type p:last-of-type {
	margin-bottom: 0;
}

ul.ourwork {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

ul.ourwork li {
	width: 100%;
}

ul.ourwork li:last-of-type p {
	margin-bottom: 20px;
}

ul.ourwork li:last-of-type p:last-of-type {
	margin-bottom: 0;
}

ul.ourwork li:last-of-type p span {
	display: block;
	line-height: 1.5em;
}

ul.ourwork li:last-of-type p span:first-of-type {
	margin-bottom: 5px;
	line-height: 1.5em;
}

ul.ourwork li:last-of-type p:last-of-type span {
	line-height: 1.5em;
}


@media screen and (min-width:767px) {


	ul.ourwork li:last-of-type p span:first-of-type {
		line-height: 1em;
	}

	ul.ourwork li:last-of-type p.last_line span:first-of-type {
		line-height: 1.5em;
	}

}
