/* service.css */

html {
  margin-top: 0!important;
}

/* 共通レイアウト */
.service-page {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #fff;
}

/* ヒーローセクション */
.service-hero {
  background: url('../assets/img/servicehero.jpg') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.service-hero__text h1 {
  font-size: 4rem;
  font-weight: bold;
  margin: 0;
}

.service-hero__text p {
  font-size: 20px;
  margin: 0;
  margin-bottom: -10px;
}

.service-center-text p {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    padding: 80px 0;
}

/* サービスセクション */
.service-section {
  background: url('../assets/img/sevice-background.png') no-repeat left center/cover;
  margin: auto;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
}

.service-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-items: stretch;
}


.service-text {
  flex: 42%;
  min-width: 280px;
  padding: 60px;
  justify-content: center;
}

.service-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.service-lead {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.8;
}
.service-desc {
  font-size: 18px;
  font-weight: 600;
}
.service-button {
  margin-top: 20px;
  text-align: right;
}

.price-link {
  display: inline-block;
  padding: 10px 30px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.price-link:hover {
  background-color: #555;
}

.service-img {
  flex: 58%;
  min-width: 280px;
  display: flex;
  align-items: center;   /* 上下中央 */
  justify-content: center; /* 左右中央（不要なら外してOK） */
}

.service-img img {
  width: 100%;
  height: 80%; /* 高さを親要素に揃える */
  object-fit: cover; /* はみ出さずに自然な表示 */
}

.service-wide {
  height: 500px;
}
.service-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-box.reverse {
    flex-direction: column-reverse;
  }

  .service-hero {
    height: 300px;
    padding: 20px;
  }

  .service-hero__text h1 {
    font-size: 36px;
  }
  .service-center-text p {
    font-size: 22px;
  }
  .service-section {
    padding: 0;
  }
  .service-text {
    padding: 30px 10px 0px 10px;
  }
  .service-lead {
    font-size: 20px;
  }
  .service-desc {
    font-size: 14px;
  }
  .service-button {
    margin-top: 5px;
    margin-bottom: 10px;
  }
  .service-wide {
    display: none;
  }
}