/*
 * Geofence サービステーマ SERVICEページ専用スタイルシート
 * ================================
 * 目次:
 * 1. SERVICEページ固有のスタイル
 * 2. フォント設定
 * 3. レスポンシブ設定
 */

/* ============================================================ 
   1. SERVICEページ固有のスタイル
   ========================================================== */
  
/* サービス一覧セクションのスタイル */
.services_list {
  position: relative;
  margin-top: 10vw;
  width: 100%;
}

.services_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.services_list_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  width: 100%;
  max-width: 1400px;
}

/* サービスリストアイテムのスタイル */
.services_list_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  gap: 40px;
}

.services_list_item_contents {
  display: flex;
  align-items: center;
  width: 80vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 40px;
  background-color: #196edd15;
}

.services_list_item_contents_left {
  width: 40%;
}

/* 画像関連のスタイル */
.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
  object-fit: cover;
}

/* 正方形の画像コンテナ */
.services_list_item_image {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* アスペクト比を1:1（正方形）に設定 */
}

/* 正方形コンテナ内の画像を中央配置 */
.services_list_item_image img.responsive-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を切り抜かずにコンテナいっぱいに表示 */
  object-position: center; /* 画像を中央に配置 */
}

/* サービスコンテンツのスタイル */
.services_list_item_contents_right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 60%;
  padding: 10px;
}

.services_list_item_text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* ボタンコンテナのスタイル */
.services_list_item_text .button-container {
  margin-top: 0;
}

/* サービス一覧のボタンスタイル */
.services_list_item_text .btn-primary {
  background-color: var(--light-blue);
  color: var(--white);
  border: 1px solid var(--light-blue);
  transition: all 0.3s ease;
}

.services_list_item_text .btn-primary:hover {
  background-color: transparent;
  color: var(--light-blue);
}

/* ボタンテキストのホバー効果 */
.services_list_item_text .btn-primary:hover .btnText p {
  color: var(--light-blue);
}

/* Retina対応のための画像サイズ制御 */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  .services_list_item_image img {
    /* Retina対応画像のサイズを適切に調整 */
    max-width: 100%;
    transform: scale(1); /* 必要に応じて調整 */
  }
}

/* ============================================================ 
   2. フォント設定
   ========================================================== */

/* サービスリストのタイトルスタイル */
.services_list_item_title {
  font-size: 2.4vw;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* サービス説明文のスタイル調整 */
.services_list_item_description {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* サービスページのセクション見出し */
.services_section_heading {
  font-size: 3.6vw;
  font-weight: 700;
  color: var(--deep-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.services_section_subheading {
  font-size: 1.8vw;
  font-weight: 500;
  color: var(--light-blue);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 1px;
}

.service_number{
  font-size: 1.6vw;
  color: #004ea2;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ボタンテキストのフォントスタイル */
.services_list_item_text .btnText .righteous_regular {
  font-size: 1.2em;
  letter-spacing: 1px;
}

/* ============================================================ 
   3. レスポンシブ設定
   ========================================================== */
  
/* タブレット (992px以下) */
@media screen and (max-width: 992px) {
  /* フォントサイズ調整 */
  .services_list_item_title {
    font-size: 3vw;
  }
  
  .services_section_heading {
    font-size: 4.2vw;
  }
  
  .services_section_subheading {
    font-size: 2.2vw;
  }
}

/* タブレット・モバイル対応 (768px以下) */
@media screen and (max-width: 768px) {
  .services_list_item_contents {
    flex-direction: column;
    gap: 30px;
    padding: 1rem;
    width: 100%;
  }
  
  .services_list_item_contents_left,
  .services_list_item_contents_right {
    width: 100%;
  }
  
  .services_list_item_image {
    max-height: 300px; /* モバイル表示時の最大高さを制限 */
  }
  
  .services_list_item_image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .services_list_container {
    padding: 0;
    margin-top: 40px;
  }

  .services_list_item {
    padding: 0;
  }

  .services_list_item_text .button-container {
    padding-left: 0;
}

  /* フォントサイズ調整 */
  .services_list_item_title {
    font-size: 2.2em;
  }

  .service_number{
    font-size: 1.6em;
    margin-bottom: 0;
  }

  .services_list_item_description {
    font-size: 1.2em;
  }
  
  .services_section_heading {
    font-size: 28px;
  }
  
  .services_section_subheading {
    font-size: 18px;
    margin-bottom: 2rem;
  }
  
  .services_list_item_text .btnText .righteous_regular {
    font-size: 1em;
  }
  
  /* スマホ表示時にbrタグを非表示にする */
  .services_list_item_title br,
  .services_list_item_description br,
  .services_section_heading br,
  .services_section_subheading br {
    display: none;
  }
}

/* モバイル小 (576px以下) */
@media screen and (max-width: 576px) {
  .services_container {
    margin-top: 30px;
  }
  
  .services_list_item_description {
    font-size: 1.2em;
    margin-bottom: 1rem;
  }
  
  .services_section_heading {
    font-size: 24px;
  }
  
  .services_section_subheading {
    font-size: 16px;
  }

  .services_list_item_text .button-container {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }
}
