/* =======================================
   サービスページスタイル
========================================== */

/* ページ全体の背景スタイル */
main {
  position: relative;
  background-image: url('../img/news-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: hidden;
}

/* サービスメニューセクション */
.service-menu {
  padding: 60px 0 0px;
  position: relative;
  top: -50px;
  left: 0;
  width: 100%;
  height: auto;
  background: none; /* 背景画像を削除（mainに設定したため） */
  z-index: 1;
}

.service-menu .container {
  padding: 0;
}

.service-menu-items {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
}

.service-menu-item {
  width: 33.33333333333333%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  background-color: #3E3A39;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-menu-item:hover {
  opacity: 0.8;
}

.service-menu-item .number {
  font-family: 'Anton', sans-serif;
  font-size: 3rem;
  margin-bottom: 10px;
  line-height: 1;
}

.service-menu-item .text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
}

/* サービスセクション */
.service-section {
  padding: 20px 0px 60px 0px;
  position: relative;
  margin-bottom: 0;
}

.service-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.service-section .container {
  border: 1px solid #e0e0e0;
  padding: 0;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.service-header {
  background: linear-gradient(to right, #8F1F23, #D52625);
  padding: 20px;
  margin-bottom: 30px;
}

.service-header h2 {
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.service-content {
  margin-bottom: 40px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.service-content p {
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}

.service-images {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

.image-box {
  width: 32%;
  position: relative;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.image-box .number {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  padding: 5px 15px;
  line-height: 1;
}

.case-study-link {
  display: flex;
  justify-content: flex-end;
  max-width: 1000px;
  margin: 30px auto 40px;
}

.case-study-button {
  display: flex;
  align-items: center;
  justify-content: end;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  padding: 15px 25px;
  width: 32%;
}

.case-study-button:hover {
  opacity: 0.7;
}

.case-study-button .arrow {
  margin-left: 10px;
  font-size: 1.3rem;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

  .page-hero .hero-content {
    bottom: 10%;
    left: 20%;
    align-items: flex-end;
  }

  .service-container {
    padding: 0px 25px;
  }

  .service-menu {
    position: relative;
    top: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    height: auto;
  }

  .service-menu-items {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .service-menu-item {
    width: 90%;
  }

  .service-images {
    flex-direction: column;
    align-items: center;
  }

  .image-box {
    width: 90%;
    margin-bottom: 20px;
  }

  #image-03 {
    display: none;
  }

  .case-study-link {
    justify-content: center;
  }

  .case-study-button {
    width: 90%;
  }
  
  /* 強みセクションのレスポンシブ対応 */
  .strength-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }
  
  .strength-number {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .strength-title {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .strength-divider {
    display: none;
  }
  
  .strength-text {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .service-menu-item {
    width: 90%;
  }

  .image-box {
    width: 100%;
  }

  .case-study-button {
    width: 100%;
  }
}

/* =======================================
   強みセクションスタイル
========================================== */
.strength-section {
  background-color: #807A78;
  margin-bottom: 0; /* 下部余白をなくす */
  padding-bottom: 40px; /* 下部パディングを追加 */
}

.strength-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.strength-item {
  background-color: #fff;
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 30px;
}

.strength-item:last-child {
  margin-bottom: 0; /* 最後の項目の下マージンを削除 */
}

/* strength 子要素スタイル */
.strength-number {
  font-family: 'Anton', sans-serif;
  font-size: 5rem;
  color: #8F1F23;
  margin-right: 20px;
}

.strength-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #333;
  margin-right: 20px;
}

.strength-divider {
  width: 2px;
  height: 80px;
  background-color: #ccc;
  margin: 0 20px;
}

.strength-text {
  margin: 0;
  color: #333;
  line-height: 1.8;
}


/* containerの微調整 */
@media screen and (max-width: 768px) {
  .service-section .container {
    width: 90%;
  }

  .strength-section .container {
    width: 90%;
  }
}
