/* works.css */


/* セクション背景 */
#works {
  background: #f9f9f9;
}

/* リード文 */
.works-lead {
  line-height: 1.8;
  margin-top: 20px;
  text-align: center;
}

/* 各施工実績アイテム */

.works-items{
  display: flex;
  flex-direction: column;
  gap:50px;
}

.works-item {
  padding: 50px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.works-item:last-child {
  margin-bottom: 0;
}

/* アイテムヘッダー */
.works-item-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.works-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #f7c400;
  font-family: 'Roboto', sans-serif;
  line-height: 1;
  min-width: 60px;
}

.works-item-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0A1B91;
  border-left: 4px solid #f7c400;
  padding-left: 15px;
}

.works-item-header h3 span{
  display: block;
  font-size: 70%;
  position: relative;
  left: -5px;
}

/* BEFORE / AFTER レイアウト */
.works-before-after {
  display: flex;
  align-items: center;
  gap: 20px;
}

.works-photo {
  flex: 1;
  position: relative;
}

/* ラベル */
.works-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  font-family: 'Roboto', sans-serif;
}

.before-label {
  background: #555;
  color: #fff;
  width: 100px;
  text-align: center;
}

.after-label {
  background: #0A1B91;
  color: #fff;
  width: 100px;
  text-align: center;
}

/* 画像ラッパー */
.works-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.12);
}

.works-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.works-img-wrap:hover img {
  transform: scale(1.05);
}

/* 矢印 */
.works-arrow {
  font-size: 2rem;
  color: #f7c400;
  flex-shrink: 0;
}

/* CTA */
#works-cta {
  background: #f7c400;
  padding: 60px 30px;
}

.works-cta-inner {
  max-width: 700px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.works-cta-inner p {
  color: #0A1B91;
  font-size: 1.3rem;
  font-weight: 700;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0A1B91;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  opacity: 0.85;
}


/* レスポンシブ */
@media (max-width: 1024px) {
  .works-items {
    gap:20px;
  }
  
  .works-item {
    padding: 20px;
    border-radius: 10px;
  }
  
  .works-item-header {
    margin-bottom: 10px;
  }
  
}
@media (max-width: 768px) {

  .works-before-after {
    flex-direction: column;
    gap: 15px;
  }

  .works-photo {
    width: 100%;
  }

  .works-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }

  .works-item-header h3 {
    font-size: 1.1rem;
  }

  .works-number {
    font-size: 2rem;
  }

  .works-cta-inner p {
    font-size: 1.1rem;
  }

}

@media (max-width: 600px) {

  .works-lead br {
    display: none;
  }

  .works-lead {
    font-size: 0.85rem;
  }

  .works-item-header {
    gap: 0;
  }

}
