@charset "utf-8";
/* CSS Document */

/*--------------------------------------------------
	Front page
--------------------------------------------------*/
main .center{
	text-align: center;
}
main h2.front_catch{
	color: var(--gray);
	font-size: var(--fontsize_XL);
	font-weight: 700;
	text-align: center;
	padding-block: 5vh;
	border-top: 1px solid var(--gray);
	border-bottom: 1px solid var(--gray);
}

.news_flex{
	display: flex;
}
	.news_flex .flex_left{
		margin-right: 3rem;
	}
	.news_flex .flex_right li .date{
		font-size: var(--fontsize_SS);
		font-weight: 500;
	}
	.news_flex .flex_right li .cat{
		color: var(--white);
		font-size: var(--fontsize_SS);
		font-weight: 300;
		margin-inline: 2rem;
		padding-inline: 2rem;
		background: var(--color01);
	}
	.news_flex .flex_right li a{
		color: var(--black);
		font-size: var(--fontsize_S);
		font-weight: 500;
		text-decoration: underline;
	}

.service_flex{
	display: flex;
	justify-content: space-between;
}
	.service_flex li{
		width: calc((100% - 5rem) / 3);
    display: flex;
   flex-direction: column;
}
  .service_flex li p > img {
    max-width: 100%;
  }
	.service_flex h4{
		color: var(--gray);
		font-size: var(--fontsize_L);
		font-weight: 700;
		margin-block: 1rem 0.5rem;
	}
	.service_flex p{
		font-size: var(--fontsize_S);
		font-weight: 500;
	}
	.home .service_flex p:nth-of-type(2) {
    flex-grow: 1;
	}
	.service_flex p:last-of-type{
		margin-top: 1rem;
	}

.front_works{
	background: url(../images/top/front_works_bg.jpg) no-repeat;
	background-size: cover;
	width: 100vw;
	padding-block: 20dvh;
	margin-bottom: -10dvh;
}
	.front_works p{
		margin-top: 0.8rem;
	}
	.front_works a{
		color: var(--white);
		font-size: var(--fontsize_S);
		font-weight: 500;
		text-decoration: underline;
	}
	.front_works p.center:last-of-type{
		margin-top: 5dvh;
	}
.works_flex{
	display: flex;
	justify-content: space-between;
  flex-wrap:  wrap;
  margin-top: 0;
}
	.works_flex li{
		width: calc((100% - 5rem) / 3);
    margin-top: 3rem;
	}
	.works_flex li{
    margin-top: 3rem;
	}
  .works_flex li > img {
    width: 100%;
  }

.front_service p img {
  max-width: 100%;
}

@media screen and (min-width:769px) and ( max-width:1023px){
  main h2.front_catch{
    font-size: var(--fontsize_LLL);
    padding-block: 4vh;
  }
    .news_flex .flex_left{
      margin-right: 2rem;
    }
  .front_works{
    padding-block: 20dvh;
    margin-bottom: -10dvh;
  }
  .works_flex{
    display: flex;
    justify-content: space-between;
  }
}
@media (max-width:768px) {
  main h2.front_catch{
    font-size: var(--fontsize_M);
    padding-block: 3vh;
  }
  .news_flex{
    flex-direction: column;
  }
    .news_flex .flex_left{
      margin-right: 0;
    }
    .news_flex .flex_left h3 img,
    .stack_S h3 img {
      width: auto;
      height: 10vw;
    }
    .news_flex ul {
      margin-top: 5dvh;
    }
    .news_flex ul li a {
      display: table;
    }
    .news_flex p:last-of-type {
      width: 30vw;
      margin: 1rem 0 0 auto;
    }
  .service_flex{
    flex-wrap: wrap;
  }
    .service_flex li{
      width: calc((100% - 2rem) / 2);
    }
    .service_flex li:not(:first-child):not(:nth-of-type(2)) {
      margin-top: 3dvh;
    }
    .home .service_flex p:last-of-type {
      max-width: 80%;
    }
    .service_flex h4{
      font-size: var(--fontsize_M);
    }
  .works_flex{
    flex-wrap: wrap;
  }
    .works_flex li{
      width: calc((100% - 2rem) / 2);
      margin-top: 4dvh;
    }
    .works_flex li:not(:first-child):not(:nth-of-type(2)) {
      margin-top: 3dvh;
    }
  .front_works{
    padding-block: 10dvh 20dvh;
  }
    .front_works .center img {
      max-width: 50%;
    }
}



