#visual {
  background: #fff;
  clear: both;
  overflow: hidden;
}
#visual .left_inner{
  background: #D9DFF8;
  float: left;
  width:55%;
  padding:240px 0 150px 0;
  height:300px;
  text-align: right;
  overflow: hidden;
}
#visual .left_wrap {
  display: inline-block;
  width:96%;
  padding:2%;
  max-width:514px;
}
#visual .left_inner img{
  display: inline-block;
  max-width:514px;
  width:100%;
}
#visual .right_inner {
  float: right;
  width:45%;  
  text-align: left;
}
#visual .right_wrap {
  display: inline-block;
  width:96%;
  padding:2%;
  max-width:459px;
  padding-top:210px;
  text-align: center;
}
#visual .right_wrap img {
  max-width:280px;
  width:100%;
}
#visual .sp_inner {
  background: #D9DFF8;
  text-align: center;
  padding:190px 20px 100px 20px;
}
#visual .sp_inner img {
  
}

@media screen and (max-width: 768px) {
  #visual .left_inner{
    padding:210px 0 50px 0;
  }
  #visual .right_wrap {
    padding-top:140px;
  }
}


/********* リフォーム ***********/
#reform {
  position: relative;
  padding-top: 50px;          
  padding-bottom: 50px;             
}
#reform h2 {
  background-image: url("../img2/title_bg1.png");
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom:50px;
}
#reform .inner {
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
  
}
#reform .inner .deco-text {
  top: -110px;
}
@media screen and (max-width: 768px) {
  #reform h2 {
    font-size: 24px;
    background-size: 60% auto;
    
  }
}

.before_after {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 40px;
  padding: 0 0 0 3%;
  list-style: none;
  
  width: 96%;
  margin: 0 auto 0 auto;
}

.before_after li {
  position: relative;
  flex: 1;
  max-width: 580px;
}

.before_after img {
  width: 100%;
  height: auto;
  box-shadow: 7px 7px 8px rgba(0, 0, 0, 0.7);
  display: block;
}

.before_after li div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 80%透明の黒 */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(10px, 1.5vw, 18px);
}
.before_after li div h3 {
  margin: 0;
  font-size: 1.8em; /* ✅ 親のfont-sizeに比例 */
  padding-bottom: 0.8em;
  margin-bottom: 0.8em;
  border-bottom: 1px solid #fff;
  line-height: 1.3;
  width: 80%;
}

.before_after li div p {
  margin: 0;
  font-size: 1.1em;
  line-height: 2;
}

.before_after li:hover div {
  opacity: 1;
}
@media (max-width: 768px) {
  .before_after {
    display: block;
    margin: 0 auto;
    width: 90%;
    padding-top: 30px;
  }
  .before_after li {
    clear: botn;
    width: 86%;
    display: block;
    margin-bottom: 40px;
    position: relative;
  }
  .before_after li img {
    position: absolute;
    max-width: 44%;
    box-shadow: none;
    top: -20px;
    left: -5%;
  }

  .before_after li div {
    position: static; /* オーバーレイを解除 */
    background-color: #666;
    color: white;
    opacity: 1; /* 常に表示 */
    font-size: 13px;
    padding: 15px 15px 15px 40%;
  }
  .before_after li:nth-child(2) {
    margin-left: 10%;
  }
  .before_after li:nth-child(2) img {
    right: -5%;
    left: auto;
  }
  .before_after li:nth-child(2) div {
    padding: 15px 40% 15px 15px;
  }

  .before_after li:hover div {
    opacity: 1;
  }
}

.dl_msg {
  padding-top: 50px;
  width: fit-content;
  margin: 0 auto;
  font-family: "メイリオ", sans-serif;
}
.dl_msg dl {
  display: flex;
  align-items: flex-start;
}

.dl_msg dt {
  font-weight: bold;
  border-bottom: 2px solid #333;
  margin-right: 40px;
  white-space: nowrap;
  font-size: 22px;
}

.dl_msg dd {
  margin: 0;
  line-height: 1.8;
  font-size: 14px;
}
@media screen and (max-width: 768px) {
  .dl_msg {
    padding-top: 20px;
    width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  .dl_msg dl {
    display: inline-block;
    text-align: left;
  }
  .dl_msg dl dt {
    margin-bottom: 10px;
  }
  .dl_msg dl dd {
    font-size: 16px;
  }
}





/********* リフォーム ***********/
#painting {
  position: relative;
  padding-top: 50px;          
  padding-bottom: 50px;             
}
#painting h2 {
  background-image: url("../img2/title_bg2.png");
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom:50px;
}
#painting .inner {
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
  
}
#painting .inner .deco-text {
  top: -110px;
  right: 10px;
}
@media screen and (max-width: 768px) {
  #painting h2 {
    font-size: 24px;
    background-size: 60% auto;
    
  }
}




/********* 施工実績 ***********/
#constructionresults {
  position: relative;
  padding-top: 50px;          
  padding-bottom: 50px;             
}
#constructionresults h2 {
  background-image: url("../img2/title_bg3.png");
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom:50px;
}
#constructionresults .inner {
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
  
}
#constructionresults .inner .deco-text {
  top: -110px;
  left:3px;
}
@media screen and (max-width: 768px) {
  #constructionresults h2 {
    font-size: 24px;
    background-size: 60% auto;
    
  }
}

.construction {
  padding: 30px 30px 30px 130px;
}

.construction .type1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
}
.construction dl {
  text-align: left;
}
.construction dl.before {
  width: 200px;
}
.construction dl.after {
  width: 301px;
  position: relative;
}

.construction dl.before dt {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 80px;
  font-size: 16px;
  border-bottom: 2px solid #000;
  padding: 0 10px 5px;
  text-align: center;
}
.construction dd.img {
  margin: 5px 0;
}
.construction dd.text {
  text-align: right;
}
.construction dl.after dd.text {
  position: absolute;
  right: -100px;
  top: 240px;
  display: block;
  marin-right: -100px;
}
.construction .arrow img {
  max-width: 81px;
  width:100%;
}
.construction .type1.gaisou {
  margin-left: 8%;
}

/* レスポンシブ対応：画面幅768px以下 */
@media screen and (max-width: 768px) {
  .construction {
    padding:0;
    clear: both;
  }
  .construction .type1 {
    display: block;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    position: relative;
  }
  .construction dl {
    display: block;
    text-align: left;
    float: left;
  }
  .construction dl.before {
    width: 100%;
    max-width: 40%;
    padding-left: 5%;
    margin-right:10%;
  }
  .construction dl.after {
    width: 100%;
    max-width: 40%;
    text-align: right;
    margin-top: 56px;
  }
  
  .construction dl.before dd.text {
    text-align: left;
    margin: 0;
    padding: 0;
  }
  .construction dl.before dt {
    display: block;
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 16px;
    border-bottom: 2px solid #000;
    padding: 0 10px 5px;
    text-align: center;
  }
  .construction dd.img {
    text-align: center;
  }
  .construction dd.img img {
    max-width: 100%;
    width: auto;
    max-height: 150px;
  }
  .construction .arrow {
    position: absolute;
    left: calc(50% - 42px);
    bottom: 0;
    max-width: 81px;
    width:100%;
  }
  
  .construction dl.after dd.text {
    position: relative;
    right: 0;
    top: 0;
    display: inline;
    marin-right: 0;
  }
  .construction dl.after dd.text img {
    height: 24px;
  }
}




#contact  {
  text-align: center;
  padding-top: 50px;
}
#contact h2 {
  background-image: url("../img2/title_bg4.png");
  font-size: 22px;
  line-height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom:20px;
}
#contact .tel {
  display: inline-block;
  font-weight: bold;
  margin-bottom:50px;
}
#contact .email-title {
  display: inline-block;
  background: #7F7F7F;
  padding: 2px 10px;
  margin-bottom:20px;
  color:#fff;
}
#contact .email {
  display: inline-block;
  font-weight: bold;
  margin: 0;
  font-size: 32px;
  line-height: 28px;
  margin-bottom:50px;
}

#contact .banner {
  display: inline-block;
  margin-bottom:50px;
}
#contact .banner:hover {
  opacity: 0.6;
}
@media screen and (max-width: 768px) {
  #contact .tel {
    font-size: 31px;
  }
  #contact .tel img {
    vertical-align: baseline;
  }
  #contact .email {
    
    font-size: 16px;
  }
  #contact .email-icon img {
    width: 20px;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
  }
  #contact .banner {
    display: block;
    max-width: 377px;
    width: 90%;
    margin: 0 auto 20px auto;
  }
  #contact .banner img {
    width: 100%;
  }
  
}

