@import url("common.css");

#company-image{
width: 100%;
height: 50vh;
background-image: url(../image/company/company_main.jpg);
background-position: center;
background-size: cover;
margin: 80px 0 0 0;
display: flex;
    align-items: center;
    justify-content: center;
}
.image-contents{
  text-align: center;
}
#company-image .title{
	color: #fff;

}


       


.image-btn{
	display: flex;
	justify-content: center;
margin: 60px 0 0 0;
}
.btn003 {
  display: inline-block;
  width: 200px;
  text-align: center;
  text-decoration: none;
  line-height: 58px;
  outline: none;
  color: #fff;
  font-weight: 700;
  border:1px solid #fff;
  background-color: transparent;
  -webkit-transition: all .3s;
  transition: all .3s;
  margin: 0 16px;
}
.btn003:hover {
  color: #00cb00;
  
  background-color: #fff;
}
#corporate,#machine{
	background-color: #000;
	color: #fff;
	padding: 120px 0 240px;
}
#corporate{

}
#machine{
	padding: 0px 20px 240px;
}
.corporate-dl{
	width: 800px;
	border-top: solid #808080 1px;
	margin: 80px auto 0px;
	    display: flex;
    flex-wrap: wrap;
}
.corporate-dl dt{
color: #808080;
width: 20%;
}
.corporate-dl dd{
width: 80%;
}
.corporate-dl dt,.corporate-dl dd{
	padding: 14px 0 14px 24px;
	border-bottom: solid #808080 1px;
	line-height: 1.8;
}
.machine-contents{
	max-width: 1000px;
	margin: 0 auto;

}
.machine-contents .sen{
	width: 0;
	height: 6px;
	background-color: #fff;
	margin: 0 0 140px 0;
}
.machine-contents img{
	width: 100%;
}
.machine-img{
	width: 100%;
	height: 400px;
	background-image: url(../image/company/machinery_main.jpg);
	background-size: 110%;
	background-position: center;
	transition: background-position 2s ease-out;
	margin: 70px 0;
}
.dot{
  width: 100%;
    height: 100%;
    background-image: url(../image/top/pattern_4px.png);
    text-align: center;
    font-weight: bold;
    padding: 50px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: end;
}
.machine-type{

}
.machine{
margin: 10px 0 40px;
}
.machine img{
	width: 300px;
	object-fit: cover;
}
.machine h4{
font-family: "Barlow Semi Condensed", sans-serif;
font-size: 16px;
color: #00cb00;
margin: 6px 0 8px 0;
width: fit-content;
}
.machine p{
	font-size: 13px;
	font-weight: 700;
	margin: 10px 0 0 0;
}
.machine-type::after {
display: block;
content:"";
width: 300px;
}
.machine-type {
  display: flex;
  flex-wrap: wrap;
  
  justify-content: space-between;
  width: 100%; /* 幅を100%に設定して端まで広がるように */
  grid-auto-rows: auto; /* 行の高さを自動に */
  position: relative;
}

/* 各行の上にボーダーを追加 */
.machine-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #00cb00;
}

/* 2行目以降の上にボーダー */
.machine:nth-child(3n+1) {
  position: relative;
}

.machine:nth-child(3n+1)::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: calc(300% + 100px);
  height: 1px;
  background-color: #00cb00;
}

/* 最初の行のボーダーを削除 */
.machine:nth-child(1)::before {
  display: none;
}

#company{
	background-color: #000;
}
#company {
	color: #fff;
	padding: 0 0 150px 0;
}
/* スマホ対応（2カラム） */
@media (max-width: 768px) {
  .machine-type {
    grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
  }

  .machine:nth-child(3n+1)::before {
    display: none; /* 3列用のボーダーは無効化 */
  }

  .machine:nth-child(2n+1) {
    position: relative;
  }

  .machine:nth-child(2n+1)::before { /* 2列ごとの先頭要素にボーダー */
    display: block;
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: calc(200% + 8%); /* 2カラム分の幅を確保 */
    height: 1px;
    background-color: #00cb00;
  }

  /* 最初の行のボーダーは消す */
  .machine:nth-child(1)::before {
    display: none;
  }
  #corporate {
    padding-left:20px;
    padding-right: 20px;
}
  .corporate-dl{
  	width: 100%;
  	
  }
  .corporate-dl dt{
  	padding-left: 0;
  }
  .machine{
  	width: 48%;
  }
  .machine img{
  	width: 100%;
  }
  .btn003{
  	line-height: 52px;
  	width: 150px;
  	margin: 0 6px;
  }
  .machine-img{
  	height: 160px;
  	background-size: 120%;
  }
  .machine h4{
  	font-size: 13px;
  }
  .machine p {
    font-size: 11px;
    line-height: 1.4;
}
}
