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

/* ============================================================ 
   1. ベース設定
   ========================================================== */
:root {
  --deep-blue: #004ea2;
  --light-blue: #196fdd;
  --white: #ffffff;
  --black: #000000;
  
  /* 余白 */
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --spacing-xxl: 60px;
  
  /* 寸法 */
  --container-width: 100%;
  --container-max-width: 1920px;
  --border-radius: 20px;
  
  /* Font sizes */
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
}

/* fos_business_content_itemの高さを均一にする */
.fos_business_content_item {
  display: flex;
  flex-direction: column;
  height: 100%; /* または固定の高さ、例えば500px */
}

.fos_business_content_item_header {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* 空きスペースを埋めるように拡大 */
}

/* 画像のサイズを統一 */
.fos_business_content_item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9; /* アスペクト比を固定 */
}

/* コンテナをグリッドレイアウトに変更する方法 */
.fos_business_content_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  align-items: stretch; /* 各アイテムを伸ばして高さを揃える */
}


/* ============================================================ 
   2. FOSページ固有のスタイル
   ========================================================== */
/* FOS他社との違いセクションのスタイル */
.fos_differences {
  position: relative;
  margin-top: 10vw;
  background-color: #ffffff;
  width: 100%;
}

.differences_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  width: 100%;
  padding: 0 4vw;
}

.fos_differences .differences_container .fosHeader {
  text-align: center;
  margin-bottom: 60px;
}

.fos_differences .differences_container .fosContent_description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-top: 4rem;
}

.fos_differences .differences_container .diffContent_image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background-color: #ffffff;
}

/* Retina対応画像のサイズ調整 */
.diffContent_image img.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.diff_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0;
  gap: 40px;
}

/* FOS特徴セクションのスタイル */
.fos_features {
  background-color: #196fdd;
  position: relative;
  margin-top: 8vw;
  padding: 10rem 0;
  width: 100%;
}

.features_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100vh;
}

.features_header {
  text-align: center;
  padding-bottom: 10vw;
}

.features_catchcopy {
  font-size: 4vw;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24vw;
}

.features_content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 10rem auto;
  gap: 60px;
}

/* features_content_left の画像サイズ調整 */
.features_content_left img.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.features_content_right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* FOSのメリットセクション */
.fos_merits {
  position: relative;
  margin-top: 8vw;
  padding: 10rem 0;
  width: 100%;
}

.fos_merits_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.fos_merits_header {
  text-align: center;
  margin-bottom: 5rem;
}

.fos_merits_content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.fos_merits_content_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background-color: #196edd15;
  box-shadow: #00000029 0px 3px 6px;
  padding: 4rem;
}

.fos_merits_content_item_left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fos_merits_content_item_left_header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.fos_merits_content_item_left_header img {
  width: 80px;
  height: auto;
}

.fos_merits_content_item_left_header_text {
  display: flex;
  flex-direction: column;
}

.fos_merits_content_item_left_header_text p {
  margin-bottom: 0.5rem;
  color: #004EA2;
}

.fos_merits_content_item_left_header_text h3 {
  color: #004EA2;
}

.fos_merits_content_item_left_description {
  width: 100%;
}

.fos_merits_content_item_right {
  flex: 1;
}

.fos_merits_content_item_right img {
  width: 100%;
  height: auto;
}
/* FOS事業内容セクションのスタイル */
.fos_business {
  position: relative;
  margin-top: 8vw;
  padding: 14rem 0;
  width: 100%;
  background-color: #196fdd;
}

.fos_business_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.fos_business_content_header {
  text-align: center;
  margin-bottom: 5rem;
}

.fos_business_content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
}

/* fos_business_content_containerのスタイルを統一 */
.fos_business_content_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
  grid-gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* fos_business_content_itemの高さを均一にする */
.fos_business_content_item {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: #00000029 0px 3px 6px;
  border-radius: 2cap;
  padding: 2.8rem;
  height: 100%; /* 高さを100%に設定 */
}

/* 画像のサイズを統一 */
.fos_business_content_item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9; /* アスペクト比を固定 */
  margin-bottom: 2rem;
}

.fos_business_content_item_header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1; /* 空きスペースを埋めるように拡大 */
}

/* 画像のサイズを統一 */
.fos_business_content_item img {
  width: 100%;
  height: auto;
  object-fit: contain; /* cover から contain に変更 */
  margin-bottom: 2rem;
}

.fos_business_content_item img.responsive-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important; /* 追加 */
  display: block;
  margin: 0 auto 2rem auto;
}

.fos_business_content_item_image {
  background-color: #edf3fe;
  border-radius: 2ch;
margin-bottom: 1rem;
}


/* ============================================================ 
   3. レスポンシブ設定
   ========================================================== */

/* 大型デスクトップ (1280px以下) */
@media screen and (max-width: 1280px) {
  /* 共通設定 */
  .subpage_contentHeading02 {
    font-size: 2.8vw;
  }
  
  /* FOSページ固有のスタイル調整 */
  .feature_section,
  .fos-benefits,
  .fos-cases {
    padding: 60px 10vw;
  }
  
  #fos-features .feature-item {
    flex: 0 0 calc(50% - 20px);
  }
  
  .case-item {
    flex: 0 0 calc(50% - 15px);
  }
  
  /* FOS事業内容セクション */
  .fos_business_content_item {
    flex: 0 0 calc(50% - 2rem);
  }

  .features_content {
    padding: 0 2vw;
  }

  .features_content_left img.responsive-image {
    max-width: 100%;
}
}

/* タブレット (992px以下) */
@media screen and (max-width: 992px) {
  /* 共通設定 */
  .subpage_contentHeading02 {
    font-size: 2.2em;
  }
  
  .subpage_description {
    font-size: 1.2em;
  }
  
  /* FOSページ固有のスタイル調整 */
  .feature_section,
  .fos-benefits,
  .fos-cases {
    padding: 50px 5vw;
  }
  
  #fos-features .feature-container {
    gap: 20px;
  }

  .features_catchcopy {
    font-size: 5em;
  }
  
  .features_content {
    padding: 0 10vw;
}
  .benefit-item {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  
  .case-item {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  
  /* FOS事業内容セクション */
  .fos_business_content {
    flex-direction: column;
  }
  
  .fos_business_content_item {
    flex: 0 0 100%;
  }
  
  /* fos_business_content_containerをモバイル向けに1列に変更 */
  .fos_business_content_container {
    grid-template-columns: 1fr; /* 1列のグリッドに変更 */
  }
}

/* モバイル大型 (768px以下) */
@media screen and (max-width: 768px) {
  /* 共通設定 */
  .subpage_contentHeading02 {
    font-size: 2em;
  }
  
  .subpage_description {
    font-size: 1.2em;
  }
  
  /* FOSページ固有のスタイル調整 */
  #fos-features h2,
  .benefits-header h2,
  .cases-header h2 {
    font-size: 28px;
  }
  
  #fos-features .feature-item {
    flex: 0 0 100%;
  }

  .features_catchcopy {
    font-size: 3.6em;
  }
  
  .benefit-number {
    font-size: 36px;
  }
  
  .benefit-title {
    font-size: 18px;
  }
  
  /* FOS事業内容セクション */
  .fos_business {
    padding: 6rem 0;
  }
  
  .fos_business_content_item {
    padding: 3rem;
  }
  
  /* 他社との違いセクション */
  .diff_content {
    flex-direction: column;
    gap: 40px;
  }
  
  /* 特徴セクション */
  .features_content {
    flex-direction: column;
    gap: 60px;
  }
  
  /* メリットセクション */
  .fos_merits_content_item {
    flex-direction: column;
  }
}

/* モバイル小型 (576px以下) */
@media screen and (max-width: 576px) {
  /* 共通設定 */
  .subpage_contentHeading02 {
    font-size: 1.6em;
  }
  
  .subpage_contentSubHeading {
    font-size: 2em;
  }
  
  /* FOSページ固有のスタイル調整 */
  .fos_features {
    margin-top: 6vw;
  }

  .feature_section,
  .fos-benefits,
  .fos-cases {
    padding: 40px 4vw;
  }

  .features_catchcopy {
    font-size: 3.8em;
  }

  .features_container {
    height: 80vh;
}
  
  #fos-features h2,
  .benefits-header h2,
  .cases-header h2 {
    font-size: 24px;
  }
  
  .benefits-header p,
  .cases-header p {
    font-size: 16px;
  }
  
  #fos-features .feature-title {
    font-size: 18px;
  }
  
  .benefit-item {
    padding: 20px;
  }
  
  .benefit-number {
    font-size: 30px;
    margin-right: 15px;
  }
  
  .benefit-title {
    font-size: 16px;
  }
  
  .case-content {
    padding: 15px;
  }
  
  .case-title {
    font-size: 16px;
  }
  
  /* FOS事業内容セクション */
  .fos_business {
    padding: 4rem 0;
  }
  
  .fos_business_content_item {
    padding: 2rem;
  }
  
  /* メリットセクション */
  .fos_merits_content_item {
    padding: 2rem;
  }
  
  .fos_merits_content_item_left_header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fos_merits_content_item_left_header img {
    display: none;
  }

  .fos_merits_content_item_left_header_text p {
    font-size: 1.2em;
  }

  .fos_merits_content_item_left_header_text h3 {
    font-size: 2em;
    font-weight: 600;
  }

  .subpage_meritDescription {
    font-size: 1.2em;
  }

  .subpage_meritBgText {
    font-size: 2.8em;
  }
}