@charset "UTF-8";

/*---------------------------------------------

Top Page CSS

for ipps.co.jp
coded by d-spica at 2018-02-21

---------------------------------------------*/


@import url(default.css);
@import url(base.css);
@import url(parts.css);


article.top > h1 {
	visibility: hidden;
	margin: 0;
	height: 0;
}

section.eyecatch {
	position: relative;
	padding-top: 51.64%;
}

section.eyecatch h2 {
	position: absolute;
	bottom: 20%;
	left: 0;
	z-index: 1;
	background: #F31100;
	padding: 2.5em 5em;
	width: 40em;
	line-height: 1.9;
	font-size: 92.85%;
	color: #FFF;
}

section.eyecatch h2 em {
	display: block;
	margin-bottom: 0.2em;
	line-height: 1.333;
	font-size: 307.6%;
	font-weight: 700;
}

section.eyecatch ul {
	position: absolute;
	top: 0;
	left: 0;
	padding-bottom: 51.64%;
	width: 100%;
}

section.eyecatch li {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;	
}

section.eyecatch li img {
	width: 100%;
}

section.eyecatch:after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	background: url(../img/top/service-bg-top.png) no-repeat 0 0;
	background-size: 100% 120px;
	width: 100%;
	height: 120px;
}


section.service {
	position: relative;
	z-index: 1;
	background: #E6E6E6;
	background-size: 100% auto;
	padding: 4em 3em 120px; 
}

section.service h2 {
	margin: 0 auto 3em;
	width: 61.14em;
}
	
section.service h2 em {
	display: block;
	margin-bottom: 0.2em;
	letter-spacing: 0.05em;
	font-family: "Roboto", sans-serif;
	font-size: 371.4%;
	font-weight: 500;
}
	
section.service .tag {
	position: absolute;
	top: 50%;
	left: 1.95%;
	margin-top: 6em;
	width: 12em;
	letter-spacing: 0.1em;
	text-align: center;
	font-size: 78.5%;
	color: #999;
	transform: rotate(-90deg);
	transform-origin: 0 0;
}

section.service .nav-down {
	position: absolute;
	top: -25px;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 10px;
	color: #666;
}

section.service .nav-down a {
	display: inline-block;
}

section.service .nav-down a:after {
	content: '';
	display: block;
	width: 17px;
	height: 17px;
	margin: 0 auto;
	border: solid #666;
	border-width: 0 1px 1px 0;
	transform: rotate(45deg);
}

section.service ul {
	margin: 0 auto;
	width: 61.14em;
}

section.service li {
	margin-bottom: 2.85em;
}

section.service li a {
	display: block;
}

section.service li dl {
	display: grid;
	grid-template-columns: 40% 60%;
	grid-template-rows: auto 1fr;
	align-items: start;
	position: relative;
	background: #FFF;
}

section.service li dt {
	grid-column: 2/3;
	grid-row: 1/2;
	padding: 2em 3em 1.7em;
}

section.service li dt span {
	display: block;
	letter-spacing: 0.1em;
	font-family: "Roboto", sans-serif;
	font-size: 78.5%;
}

section.service li dt span b {
	color: #F20600;
}

section.service li dt em {
	display: block;
	margin-top: 0.7em;
	line-height: 1.6;
	font-size: 142.8%;
}
	
section.service li .summary {
	grid-column: 2/3;
	grid-row: 2/3;
	padding: 0 3em 5em;
	line-height: 1.8;
}

section.service li .summary span {
	display: block;
}

section.service li .summary u {
	display: inline-block;
	position: absolute;
	bottom: 2em;
	left: calc(40% + 3.23em);
	border-bottom: solid 2px;
	text-decoration: none;
	letter-spacing: 0.1em;
	font-family: "Roboto", sans-serif;
	font-size: 92.8%;
	font-weight: 300;
	color: #F31100;
}

section.service li .photo {
	grid-column: 1/2;
	grid-row: 1/3;
}

section.service:after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	background: url(../img/top/news-bg-top.png) no-repeat 0 0;
	background-size: 100% 120px;
	width: 100%;
	height: 120px;
}

section.service:last-child:after {
	background: none;
}

section.news {
	position: relative;
	z-index: 1;
	background: #F20600;
	padding: 4em 3em 120px; 
}

section.news h2 {
	margin: 0 auto 3em;
	width: 61.14em;
	color: #FFF;
}
	
section.news h2 em {
	display: block;
	margin-bottom: 0.2em;
	letter-spacing: 0.05em;
	font-family: "Roboto", sans-serif;
	font-size: 371.4%;
	font-weight: 500;
}
	
section.news .tag {
	position: absolute;
	top: 50%;
	right: 1.95%;
	margin-top: 6em;
	width: 12em;
	text-align: center;
	letter-spacing: 0.1em;
	font-size: 78.5%;
	color: #FFF;
	transform: rotate(90deg);
	transform-origin: 100% 0;
}

section.news ul {
	display: flex;
	gap: 1em 2em;
	margin: 0 auto;
	width: 61.14em;
	line-height: 1.5;
}

section.news li {
	width: calc(33.333% - 1.3333em);
}

section.news li a {
	display: block;
	position: relative;
	background: #FFF;
	padding: 0 1.5em 5em;
}

section.news li i {
	display: block;
	position: relative;
	margin: 0 -1.5em 1em;
	aspect-ratio: 3/2;
}

section.news li i img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

section.news li time {
	display: block;
	margin-bottom: 1em;
	letter-spacing: 0.1em;
	color: #F20600;
}

section.news li span {
	display: block;
	display: -webkit-box;
	overflow: hidden;
	line-clamp: 3;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	height: 5.4em;
	line-height: 1.8;
}

section.news li u {
	position: absolute;
	bottom: 1.9em;
	right: 1.5em;
	border-bottom: solid 2px;
	text-decoration: none;
	letter-spacing: 0.1em;
	font-family: "Roboto", sans-serif;
	font-size: 92.8%;
	font-weight: 300;
	color: #F31100;
}

section.news .nav {
	margin: 3em auto 0;
	width: fit-content;
}

section.news .nav a {
	display: inline-block;
	border-bottom: solid 2px;
	letter-spacing: 0.1em;
	line-height: 1.5;
	font-family: "Roboto", sans-serif;
	font-size: 128.5%;
	font-weight: 300;
	color: #FFF;
}

section.news:after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	background: url(../img/top/recruit-bg-top.png) no-repeat 0 0;
	background-size: 100% 120px;
	width: 100%;
	height: 120px;
}

section.recruit {
	position: relative;
	z-index: 1;
	background: #FFF;
	padding: 4em 3em 120px;
	height: 400px;
}

section.recruit h2 {
	margin: 0 auto 1.5em;
    width: 61.14em;
}
	
section.recruit h2 em {
	display: block;
	margin-bottom: 0.2em;
	letter-spacing: 0.05em;
	font-family: "Roboto", sans-serif;
	font-size: 371.4%;
	font-weight: 500;
}
	
section.recruit p {
	margin: 0 auto;
	max-width: 61em;
}

section.recruit p a {
	display: flex;
	flex-direction: row-reverse;
}

section.recruit p i {
	flex: 1;
	position: relative;
}

section.recruit p i img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

section.recruit p span {
	display: block;
	background-color: #F31100;
	padding: 3em;
	width: 14em;
	line-height: 1.8;
	color: #FFF;
}

section.recruit p span u {
	display: block;
	margin: 1.8em auto 0;
    border-bottom: solid 2px;
	width: fit-content;
	text-decoration: none;
	letter-spacing: 0.1em;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
}

section.recruit:after {
	content: '';
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	background: url(../img/top/blog-bg-top.png) no-repeat 0 0;
	background-size: 100% 120px;
	width: 100%;
	height: 120px;
}

section.blog {
	position: relative;
	z-index: 1;
	background: #F20600;
	padding: 4em 3em 120px; 
}

section.blog h2 {
	margin: 0 auto 3em;
	width: 61.14em;
	color: #FFF;
}
	
section.blog h2 em {
	display: block;
	margin-bottom: 0.2em;
	letter-spacing: 0.05em;
	font-family: "Roboto", sans-serif;
	font-size: 371.4%;
	font-weight: 500;
}
	
section.blog .tag {
	position: absolute;
	top: 50%;
	right: 1.95%;
	margin-top: 6em;
	width: 12em;
	text-align: center;
	letter-spacing: 0.1em;
	font-size: 78.5%;
	color: #FFF;
	transform: rotate(90deg);
	transform-origin: 100% 0;
}

section.blog ul {
	display: flex;
	gap: 1em 2em;
	margin: 0 auto;
	width: 61.14em;
	line-height: 1.5;
}

section.blog li {
	width: calc(33.333% - 1.3333em);
}

section.blog li a {
	display: block;
	position: relative;
	background: #FFF;
	padding: 0 1.5em 5em;
}

section.blog li i {
	display: block;
	position: relative;
	margin: 0 -1.5em 1em;
	aspect-ratio: 3/2;
}

section.blog li i img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

section.blog li time {
	display: block;
	margin-bottom: 1em;
	letter-spacing: 0.1em;
	color: #F20600;
}

section.blog li span {
	display: block;
	display: -webkit-box;
	overflow: hidden;
	line-clamp: 3;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	height: 5.4em;
	line-height: 1.8;
}

section.blog li u {
	position: absolute;
	bottom: 1.9em;
	right: 1.5em;
	border-bottom: solid 2px;
	text-decoration: none;
	letter-spacing: 0.1em;
	font-family: "Roboto", sans-serif;
	font-size: 92.8%;
	font-weight: 300;
	color: #F31100;
}

section.blog .nav {
	margin: 3em auto 0;
	width: fit-content;
}

section.blog .nav a {
	display: inline-block;
	border-bottom: solid 2px;
	letter-spacing: 0.1em;
	line-height: 1.5;
	font-family: "Roboto", sans-serif;
	font-size: 128.5%;
	font-weight: 300;
	color: #FFF;
}

@media screen and (max-width:767px) {
	
	section.eyecatch {
		z-index: 1;
		padding-bottom: calc(10% - 2px);
	}

	section.eyecatch h2 {
		position: relative;
		background: #E41812;
		padding: 1em 2.5em;
		width: auto;
	}

	section.eyecatch h2 em {
		margin-bottom: 0.4em;
		line-height: 1.5;
		font-size: 200%;
	}

	section.eyecatch ul:after {
		content: '';
		display: block;
		position: absolute;
		bottom: 0;
		left: 0;
		background: url(../img/top/eyecatch-bg-top.png) no-repeat 0 100%;
		background-size: 100% auto;
		padding-top: 9.333%;
		width: 100%;
		height: 0;
	}

	section.eyecatch:after {
		content: '';
		display: block;
		background: url(../img/top/eyecatch-bg-bottom.png) no-repeat 0 100%;
		background-size: 100% auto;
		padding-top: 10%;
		height: 0;
	}

	
	section.service {
		z-index: 0;
		margin-top: -10%;
		background: #E6E6E6;
		padding: 16% 1.5em calc(2em + 10%); 
	}

	section.service h2 {
		margin: 0 auto 2em;
		width: auto;
		text-align: center;
		font-size: 78.5%;
	}

	section.service .tag {
		display: none;
	}

	section.service .nav-down {
		display: none;
	}
		
	section.service ul {
		max-width: 32em;
		width: auto;
	}

	section.service li {
		margin-bottom: 1.5em;
		padding: 0;
		width: auto;
	}

	section.service li dl {
		display: flex;
		flex-direction: column;
	}

	section.service li dt {
		order: 2;
		padding: 1.5em 2em 1.2em;
	}

	section.service li .summary {
		order: 3;
		padding: 0 2em 2em;
	}

	section.service li .summary u {
		display: block;
		position: static;
		margin: 2em auto 0;
		width: fit-content;
	}

	section.service li .photo {
		order: 1;
	}

	section.service:after {
		background: url(../img/top/news-bg-top.png) no-repeat 0 100%;
		background-size: 100% auto;
		padding-bottom: 10%;
		width: 100%;
		height: 0;
	}
	
	section.news {
		padding: 2em 1.5em calc(2em + 10%); 
	}

	section.news h2 {
		margin: 0 auto 2em;
		width: auto;
		text-align: center;
		font-size: 78.5%;
	}
	
	section.news .tag {
		display: none;
	}

	section.news ul {
		flex-direction: column;
		margin: 0 auto;
		width: auto;
		max-width: 40em;
	}
		
	section.news li {
		width: auto;
	}
		
	section.news li a {
		padding: 1.5em;
	}

	section.news li i {
		display: none;
	}

	section.news li time {
		margin-bottom: 0.3em;
	}


	section.news li span {
		display: block;
		line-clamp: unset;
		-webkit-line-clamp: unset;
		height: auto;
	}

	section.news li u {
		display: none;
	}

	section.news .nav {
		margin-top: 2em;
	}

	section.news:after {
		background: url(../img/top/recruit-bg-top.png) no-repeat 0 100%;
		background-size: 100% auto;
		padding-bottom: 10%;
		width: 100%;
		height: 0;
	}
	
	section.recruit {
		padding: 2em 1.5em 4em;
		height: 450px;
	}

	section.recruit h2 {
		width: auto;
		text-align: center;
		font-size: 78.5%;
	}

	section.recruit p a {
		flex-direction: column;
	}

	section.recruit p i {
		margin: 0 -1.5em;
		aspect-ratio: 16/9;
	}

	section.recruit p span {
		position: relative;
		z-index: 1;
		margin-top: -4em;
		padding: 2em;
		width: calc(100% - 4em);
	}

	section.recruit:after {
		background: url(../img/top/blog-bg-top.png) no-repeat 0 100%;
		background-size: 100% auto;
		padding-bottom: 10%;
		width: 100%;
		height: 120px;
	}

	section.blog {
		padding: 2em 1.5em calc(2em + 10%); 
	}

	section.blog h2 {
		margin: 0 auto 2em;
		width: auto;
		text-align: center;
		font-size: 78.5%;
	}
	
	section.blog .tag {
		display: none;
	}

	section.blog ul {
		flex-direction: column;
		margin: 0 auto;
		width: auto;
		max-width: 40em;
	}
		
	section.blog li {
		width: auto;
	}
		
	section.blog li a {
		padding: 1.5em;
	}

	section.blog li i {
		display: none;
	}

	section.blog li time {
		margin-bottom: 0.3em;
	}

	section.blog li span {
		display: block;
		line-clamp: unset;
		-webkit-line-clamp: unset;
		height: auto;
	}

	section.blog li u {
		display: none;
	}

	section.blog .nav {
		margin-top: 2em;
	}

}