@charset "UTF-8";
#single-works #sec1 {
  padding: 60px 140px 100px;
}
#single-works #sec1 h3 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}
#single-works #sec1 .before_after_wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 110px;
  position: relative;
  margin-bottom: 60px;
}
#single-works #sec1 .before_after_wrap.new_construction {
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  margin: 0 auto 60px;
  width: 50%;
}
#single-works #sec1 .before_after_wrap img{
  width: 100%;
  height: 100%;
}
#single-works #sec1 .before_after_wrap p {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}
#single-works #sec1 .before_after_wrap .triangle {
  --length: 32px;
  width: 0;
  height: 0;
  border-top: calc(var(--length) * 3 / 5) solid transparent; /* 上側を透明 */
  border-bottom: calc(var(--length) * 3 / 5) solid transparent; /* 下側を透明 */
  border-left: var(--length) solid #9e5618; /* 左側だけ色をつける → 右向き三角に見える */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#single-works #sec1 .table_wrap {
  margin-bottom: 60px;
  padding: 0 150px;
}
#single-works #sec1 .table_wrap table {
  width: 100%;
  margin: 0 auto 60px;
  border-collapse: separate; /* ← 重要 */
  border-spacing: 0 10px; /* 横方向=0, 縦方向=10px */
}
#single-works #sec1 .table_wrap table th {
  background-color: #9e5618;
  border: 1px solid #9e5618;
  color: white;
  width: 35%;
  font-size: 20px;
  text-align: left;
  padding: 8px 0 8px 30px;
}
#single-works #sec1 .table_wrap table td {
  border-bottom: 1px solid #9e5618;
  padding-left: 30px;
  font-weight: 600;
  font-size: 20px;
  width: 65%;
}
#single-works #sec1 .table_wrap p {
  font-weight: 600;
  line-height: 1.2;
  font-size: 20px;
}
#single-works #sec1 .imgs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 30px;
}

#single-works #sec2 {
  background-color: #f0f0f0;
  padding: 40px 90px 60px;
}

@media(max-width:767px){
  #single-works #sec1 {
  padding: 30px 20px;
}

#single-works #sec1 h3 {
  font-size: 20px;
  margin-bottom: 30px;
}

#single-works #sec1 .before_after_wrap {
  gap: 30px;
  margin-bottom: 30px;
}

#single-works #sec1 .before_after_wrap p {
  font-size: 16px;
  margin-bottom: 6px;
}

#single-works #sec1 .before_after_wrap .triangle {
  --length: 16px;
  transform: translate(-50%, 0);
}

#single-works #sec1 .table_wrap {
  margin-bottom: 30px;
  padding: 0;
}

#single-works #sec1 .table_wrap table {
  margin: 0 auto 30px;
  border-spacing: 0 6px; 
}

#single-works #sec1 .table_wrap table th {
  width: 35%;
  font-size: 14px;
  padding: 6px 0 6px 10px;
}
#single-works #sec1 .table_wrap table td {
  padding-left: 10px;
  font-size: 14px;
  width: 65%;
}

#single-works #sec1 .table_wrap p {
  font-size: 14px;
}

#single-works #sec1 .imgs {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#single-works #sec2 {
  padding: 20px;
}
}