/*
 * Geofence CASE事例紹介ページ専用スタイルシート
 * ================================
 * 目次:
 * 1. カテゴリフィルター
 * 2. 事例一覧
 * 3. ページネーション
 * 4. 事例詳細ページ用スタイル
 * 5. レスポンシブ設定
 */

/* ============================================================ 
   1. カテゴリフィルター
   ========================================================== */
   .case_category_filter_section {
    margin-bottom: 6rem;
    padding: 0 14vw;
  }
  
  .case_category_container_wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 40px;
    background-color: #E8F1FC;
    border-radius: 10px;
  }
  
  .case_filter_heading_title {
    font-size: 2em;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--deep-blue);
  }
  
  .case_category_list_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .case_category_list_item {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
  }
  
  .case_category_list_item:hover {
    background-color: var(--light-blue);
    color: var(--white);
    border-color: var(--light-blue);
  }
  
  .case_category_list_item.case_active {
    background-color: var(--deep-blue);
    color: var(--white);
    border-color: var(--deep-blue);
  }
  
  /* ============================================================ 
     2. 事例一覧
     ========================================================== */
  .case_list_section_wrapper {
    padding: 0 14vw;
  }
  
  .case_list_container_wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
  }
  
  .case_item_wrapper {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
  }
  
  .case_item_wrapper:last-child {
    margin-bottom: 60px;
  }
  
  .case_item_inner_wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 100px;
    background-color: #E8F1FC;
    border-radius: 10px;
    padding: 40px;
  }
  
  /* 事例画像スタイル */
  .case_item_image_wrapper {
    flex: 0 0 35%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .case_item_image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .case_item_wrapper:hover .case_item_image_wrapper img {
    transform: scale(1.05);
  }
  
  /* 事例コンテンツスタイル */
  .case_item_content_wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .case_item_meta_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .case_item_categories_wrapper {
    display: flex;
    gap: 10px;
  }
  
  .case_category_tag_item {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--deep-blue);
    color: var(--white);
    font-size: 1.2rem;
    border-radius: 4px;
  }
  
  .case_item_date_text {
    font-size: 14px;
    color: #666;
  }
  
  .case_item_title_text {
    font-size: 2.4em;
    font-weight: 600;
    margin-top: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--deep-blue);
  }
  
  .case_item_subtitle_text {
    font-size: 1.4em;
    margin-bottom: 1.6rem;
  }
  
  .case_item_excerpt_wrapper {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
  }
  
  /* ボタンスタイル */
  .case_item_button_wrapper {
    margin-top: auto;
  }
  
  .case_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .case_btn_primary {
    background-color: var(--light-blue);
    color: var(--white);
    border: 1px solid var(--light-blue);
  }
  
  .case_btn_primary:hover {
    background-color: transparent;
    color: var(--light-blue);
  }
  
  .case_btnText {
    font-size: 14px;
  }
  
  /* 検索結果なしの表示 */
  .case_no_results_wrapper {
    text-align: center;
    padding: 60px 0;
    color: #666;
  }
  
  /* ============================================================ 
     3. ページネーション
     ========================================================== */
  .case_pagination_wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  
  .case_pagination_wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .case_pagination_wrapper .page-numbers.current {
    background-color: var(--deep-blue);
    color: var(--white);
    border-color: var(--deep-blue);
  }
  
  .case_pagination_wrapper .page-numbers:hover:not(.current) {
    background-color: var(--light-blue);
    color: var(--white);
    border-color: var(--light-blue);
  }
  
  .case_pagination_wrapper .prev,
  .case_pagination_wrapper .next {
    width: auto;
    padding: 0 15px;
  }
  
  /* ============================================================ 
     4. 事例詳細ページ用スタイル
     ========================================================== */
  .case_item_content_wrapper .case_item_excerpt_wrapper {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
  }
  
  .case_item_content_wrapper .case_item_excerpt_wrapper p {
    margin-bottom: 1.5em;
    font-size: 1.4em;
    font-weight: 500;
    line-height: 1.6;
  }
  
  .case_item_content_wrapper .case_item_excerpt_wrapper img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 8px;
  }
  
  /* 見出しスタイル */
  .case_item_content_wrapper .case_item_excerpt_wrapper h2,
  .case_item_content_wrapper .case_item_excerpt_wrapper h3,
  .case_item_content_wrapper .case_item_excerpt_wrapper h4 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: var(--deep-blue);
  }
  
  .case_item_content_wrapper .case_item_excerpt_wrapper h2 {
    font-size: 1.8em;
  }
  
  .case_item_content_wrapper .case_item_excerpt_wrapper h3 {
    font-size: 1.5em;
  }
  
  .case_item_content_wrapper .case_item_excerpt_wrapper h4 {
    font-size: 1.3em;
  }
  
  /* リストスタイル */
  .case_item_content_wrapper .case_item_excerpt_wrapper ul,
  .case_item_content_wrapper .case_item_excerpt_wrapper ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
  }
  
  .case_item_content_wrapper .case_item_excerpt_wrapper li {
    margin-bottom: 0.5em;
  }
  
  /* 引用スタイル */
  .case_item_content_wrapper .case_item_excerpt_wrapper blockquote {
    border-left: 4px solid var(--deep-blue);
    padding-left: 1em;
    margin-left: 0;
    color: #666;
    font-style: italic;
  }
  
  /* ============================================================ 
     5. レスポンシブ設定
     ========================================================== */
  /*  大型ディスプレイ (1280px以下)  */
  @media screen and (max-width: 1280px) {
    .case_category_filter_section {
      padding: 0 10vw;
    }
    
    .case_list_section_wrapper {
      padding: 0 10vw;
    }
  }

  /* タブレット (992px以下) */
  @media screen and (max-width: 992px) {
    .case_category_filter_section {
      padding: 0 4vw;
    }
    
    .case_list_section_wrapper {
      padding: 0 4vw;
    }

    .case_category_filter_section {
      margin-bottom: 4rem;
    }

    .case_item_wrapper {
      margin-bottom: 40px;
      padding-bottom: 0;
    }
    
    .case_item_inner_wrapper {
      gap: 30px;
    }
    
    .case_item_title_text {
      font-size: 22px;
    }
  }
  
  /* モバイル大 (768px以下) */
  @media screen and (max-width: 768px) {
    .case_category_filter_section {
      margin: 40px 0 30px;
    }
    
    .case_category_container_wrapper {
      padding: 20px;
    }
    
    .case_item_inner_wrapper {
      flex-direction: column;
      gap: 20px;
    }
    
    .case_item_image_wrapper {
      flex: none;
      width: 100%;
      height: 400px;
    }
    
    .case_item_meta_wrapper {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    
    .case_item_subtitle_text {
      font-size: 1.2em;
      line-height: 1.4;
      margin-bottom: 1rem;
    }
    .case_item_title_text {
      font-size: 2em;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
    
    .case_item_content_wrapper .case_item_excerpt_wrapper {
      margin-bottom: 1rem;
    }


    .case_pagination_wrapper .page-numbers {
      width: 35px;
      height: 35px;
      margin: 0 3px;
    }
    
    /* スマホ表示時にbrタグを非表示にする */
    .case_item_title_text br,
    .case_item_subtitle_text br,
    .case_item_excerpt_wrapper br,
    .case_filter_heading_title br {
      display: none;
    }

    .case_list_container_wrapper {
      padding: 0;
    }
  }
  
  /* モバイル小 (576px以下) */
  @media screen and (max-width: 576px) {
    .case_category_filter_section {
      margin: 10px 0 30px;
    }
    .case_category_list_wrapper {
      gap: 10px;
    }
    
    .case_category_list_item {
      padding: 6px 15px;
      font-size: 12px;
    }
    
    .case_item_inner_wrapper{
      padding: 20px;
    }

    .case_item_wrapper {
      margin-bottom: 30px;
      padding-bottom: 30px;
    }
    
    .case_item_image_wrapper {
      height: 360px;
    }
    
    .case_item_title_text {
      font-size: 1.6em;
    }

    .case_item_subtitle_text {
      font-size: 14px;
    }

    .case_item_content_wrapper .case_item_excerpt_wrapper p {
      margin-bottom: 0;
      font-size: 1em;
    }
    
    .case_pagination_wrapper .page-numbers {
      width: 30px;
      height: 30px;
      font-size: 12px;
    }
    
    .case_pagination_wrapper .prev,
    .case_pagination_wrapper .next {
      padding: 0 10px;
    }
  }
  