/* section全体 */
.service-section {
    padding: 5rem 0;
    background-color: #fefcf9;
	  /* background-image: url('../images/illustration/brushed-alum-dark.png'); */
    background-size: auto;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  }
/* ----店舗看板タイトル-----------------------------   */
.service-angled-box {
    position: relative;
    width: 100%;
    height: 200px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    background: #26a042;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    margin-top: 0;
  }
  
  /* 背景画像を斜めにかぶせる */
  .background-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-image: url('../images/店舗看板/824D4ED1-F014-45D6-B85B-C2E8BAE0EDF1.JPEG');
    background-size: cover;
    background-position: center;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }
  
  /* テキスト */
  .service-angled-box .content {
    position: relative;
    z-index: 2;
    width: 50%;
  }
  
  .service-angled-box h2 {
    font-size: 2rem;
    margin: 0;
  }
  
  .service-angled-box span {
    display: block;
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  
  .service-angled-box p {
    margin-top: 1rem;
    line-height: 1.6;
  }
  /* ----一般住宅タイトル-----------------------------   */
  .remake-box {
      position: relative;
      width: 100%;
      height: 200px;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
      background: #324bf1;
      color: #fff;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 2rem;
      margin-top: 10rem ;
  }

  /* 背景画像を斜めにかぶせる */
  .background-remake-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-image: url('../images/店舗看板/6CFFBA4C-D817-42DB-81F2-6604F97703A3.JPEG');
    background-size: cover;
    background-position: center;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }
  
  /* テキスト */
  .remake-box .content {
    position: relative;
    z-index: 2;
    width: 50%;
  }
  
  .remake-box h2 {
    font-size: 2rem;
    margin: 0;
  }
  
  .remake-box span {
    display: block;
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  
  .remake-box p {
    margin-top: 1rem;
    line-height: 1.6;
  }
/* ----車両看板タイトル-----------------------------   */
.vehicle-box {
  position: relative;
  width: 100%;
  height: 200px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background:rgb(220, 33, 124);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  margin-top: 10rem ;
}

/* 背景画像を斜めにかぶせる */
.background-vehicle-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background-image: url('../images/車両看板/E3CEBF4C-D376-4442-B0A2-15618E94C108.JPEG');
  background-size: cover;
  background-position: center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* テキスト */
.vehicle-box .content {
  position: relative;
  z-index: 2;
  width: 50%;
}

.vehicle-box h2 {
  font-size: 2rem;
  margin: 0;
}

.vehicle-box span {
  display: block;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.vehicle-box p {
  margin-top: 1rem;
  line-height: 1.6;
}
/* ----その他タイトル-----------------------------   */
.others-box {
    position: relative;
    width: 100%;
    height: 200px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    background: #0cf4cd;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    margin-top: 10rem ;
}

/* 背景画像を斜めにかぶせる */
.background-others-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background-image: url('../images/その他/2290C347-0D06-4FEA-9D67-F3282DDFC8D8.JPEG');
  background-size: cover;
  background-position: center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* テキスト */
.others-box .content {
  position: relative;
  z-index: 2;
  width: 50%;
}

.others-box h2 {
  font-size: 2rem;
  margin: 0;
}

.others-box span {
  display: block;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.others-box p {
  margin-top: 1rem;
  line-height: 1.6;
}

  
/* ------------１セクション --------------------------------------*/
/* 上段：タイトルと右画像 */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.top-row .title {
  font-size: 3rem;
  flex: 1;
}
.top-row .title span {
  font-size: 1.5rem;
  color: #cc002a; 
}

.top-image {
  flex: 1;
  text-align: center;
}

.top-image img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
}

/* 下段：写真と説明（文字と写真を半々・比率固定） */
.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* 文字と写真を半々に固定 */
.left-photo,
.right-text {
  flex: 1;
  width: 50%;
  box-sizing: border-box;
}

/* 写真スライダー全体（余白追加） */
.left-photo {
  padding: 2rem; /* ← これで写真の外側に余白ができる */
}

/* 写真設定（比率固定＆きれいに中央寄せ） */
.photo-slider {
  width: 100%;
  position: relative;
}
.photo-slider img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ← 軽く影を追加で立体感アップ */
}

/* スライダー矢印ボタン */
.slick-prev-custom,
.slick-next-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(233, 231, 231, 0.3);
  border: none;
  font-size: 1.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.slick-prev-custom { left: 6%; }
.slick-next-custom { right: 6%; }

/* ドット全体を中央揃え */
.slick-dots {
  text-align: center;
  padding: 0;
}
.slick-dots li {
  display: inline-block;
  margin: 0 2px;
}
.slick-dots button {
  font-size: 0;
  width: 20px;
  height: 3px;
  background: #ccc;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
}
.slick-dots .slick-active button {
  background: #e60033;
}

/* テキスト部分 */
.right-text {
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  line-height: 1.8;
  padding: 0 3%;
  text-align: left;
}

/* お問い合わせボタン */
.right-text .contact-button {
  margin-top: 2rem;
  text-align: center;
}

.right-text .contact-button a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: rgba(230, 0, 51, 1);
  border: 2px solid rgba(230, 0, 51, 1);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
}
.right-text .contact-button a:hover {
  background-color: rgba(230, 0, 51, 1);
  color: #fff;
}

/* ホバーでふんわり拡大 */
.bottom-row:hover {
  transform: scale(1.02);
}

/* セクション2（左右反転） */
.top-row.reverse {
  flex-direction: row-reverse;
}
.right-text.left-align {
  padding-left: 3%;
  padding-right: 0;
  text-align: left;
}
.bottom-row.reverse {
  flex-direction: row-reverse;
}

/* ---スマホ（414px以下）で縦並び＆中央寄せ調整--- */
@media (max-width: 414px) {
  /* 下段：写真と説明（共通） */
  .bottom-row,
  .bottom-row.reverse {
    flex-direction: column; /* ← reverseでも縦並びに */
    transform: none;
    align-items: center; /* ← 中央寄せの基準 */
  }

  .left-photo,
  .right-text {
    width: 100%;
    flex: none;
  }

  .left-photo {
    padding-bottom: 0; /* 写真の外側に少し余白 */
  }

  .photo-slider img {
    aspect-ratio: 16 / 9;
  }

  /* ✨ テキスト部分（共通） ✨ */
  .right-text,
  .right-text.left-align {
    font-size: 1rem;
    padding-left: 1.5rem;  /* 左右に余白を確実に適用 */
    padding-right: 1.5rem;
    text-align: center;    /* 中央寄せ */
    line-height: 1.8;
    box-sizing: border-box;
    width: 100%;
  }

  /* タイトル類 */
  .top-row .title {
    font-size: 1.5rem;
  }

  .top-row .title span {
    font-size: 1rem;
    color: #cc002a;
  }

  .service-angled-box h2,
  .vehicle-box h2,
  .others-box h2,
  .remake-box h2 {
    font-size: 1.5rem;
  }

  .service-section {
    font-size: 0.9rem;
  }

  .service-section h2 {
    font-size: 1rem;
  }

  .service-section p {
    font-size: 0.7rem;
    line-height: 1.5;
  }
}
