/* ==========================================================================
   Section Top 1 (PARTNER RECRUITMENT / 販売代理店募集)
   ========================================================================== */

.section-top1 {
    background-color: #041a3d;
    /* 深藍色背景 */
}

/* 青綠色膠囊標籤 */
.badge-partner {
    display: inline-block;
    background-color: #0096a4;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 50px;
    white-space: nowrap;
}

/* 主標題 */
.top1-title {
    font-size: 24px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .section-top1 .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .top1-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   Section Search1 (News Archive Search & Filter) - 對齊 chinesebrand 比例與字級
   ========================================================================== */

.section-product-search {
  background-image: url('../img/casestudy/search1/search1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 桌機版控制內容最大寬度為 960px，與 chinesebrand 保持一致 */
@media (min-width: 992px) {
  .section-product-search .maker-search-container {
    max-width: 960px;
  }
}

.text-teal {
  color: #0096a4 !important;
}

/* 1. 左側邊欄與右側列表頂部標題列對齊 */
.filter-header-bar,
.product-list-header {
  min-height: 34px;
}

.filter-title {
  font-size: 18px;
  color: #061838;
  letter-spacing: 0.3px;
}

.maker-count-text {
  font-size: 15px;
  color: #061838;
  letter-spacing: 0.3px;
}

.sort-label {
  font-size: 12px;
  color: #475569;
}

.product-sort-box .form-select {
  font-size: 12.5px;
  color: #061838;
  padding-top: 6px;
  padding-bottom: 6px;
  min-width: 130px;
}

/* 2. 左側白色篩選卡片 */
.filter-sidebar {
  border: 1px solid #e2e8f0;
  padding: 22px 18px;
}

.filter-subtitle {
  font-size: 14px;
  color: #061838;
}

.filter-sidebar .form-check-label {
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.filter-sidebar .form-check-input {
  width: 14px;
  height: 14px;
  margin-top: 0.25em;
}

.filter-sidebar .form-check-input:checked {
  background-color: #0096a4;
  border-color: #0096a4;
}

/* 搜尋提交按鈕 */
.btn-search-submit {
  background-color: #081d3c;
  border: none;
  font-size: 12px;
  padding: 10px 12px;
  transition: background-color 0.2s ease;
}

#submitImg {
  width: 15px;
}

.btn-search-submit:hover {
  background-color: #0096a4;
}

/* 3. 右側新聞卡片 (完全對齊 chinesebrand 卡片長寬與字級) */
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .maker-card-img-col {
    width: 44%;
    flex: 0 0 44%;
  }
  .product-card-body {
    width: 56%;
    flex: 0 0 56%;
    padding: 20px 24px !important;
  }
  .product-img-box {
    min-height: 196px;
  }
}

.product-meta {
  font-size: 11px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 21px;
  color: #061838;
  margin-bottom: 8px;
}

.product-title a {
  color: #061838;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: #0096a4;
}

.product-desc {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.65;
  max-width: 82%;
}

/* 圓角膠囊標籤 */
.badge-tag {
  background-color: #f1f5f9;
  color: #0096a4;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 50px;
}

/* 右下角圓形箭頭按鈕 */
.btn-circle-arrow {
  width: 32px;
  height: 32px;
  background-color: #e6f4f6;
  border: 1px solid #bce3e8;
  color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-circle-arrow:hover {
  background-color: #0096a4;
  border-color: #0096a4;
  color: #ffffff;
}

.btn-circle-arrow:hover .fourShirushi {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   UP-Vision 品牌風格分頁導覽列 (Pagination)
   ========================================================================== */

.up-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.up-pagination ul.page-numbers li {
  margin: 0;
}

.up-pagination .page-numbers:not(ul) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background-color: #ffffff;
  color: #061838;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(6, 24, 56, 0.04);
  transition: all 0.2s ease;
}

.up-pagination a.page-numbers:hover {
  border-color: #0096a4;
  color: #0096a4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 164, 0.15);
}

.up-pagination .page-numbers.current {
  background-color: #0096a4;
  border-color: #0096a4;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 150, 164, 0.25);
}

.up-pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  min-width: 24px;
  padding: 0;
  color: #64748b;
}

.up-pagination .prev.page-numbers,
.up-pagination .next.page-numbers {
  padding: 0 18px;
}

.up-pagination .page-btn-circle {
  width: 20px;
  height: 20px;
  background-color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.up-pagination a.prev.page-numbers:hover .page-btn-circle {
  transform: translateX(-2px);
  background-color: #007d89;
}

.up-pagination a.next.page-numbers:hover .page-btn-circle {
  transform: translateX(2px);
  background-color: #007d89;
}


* ==========================================================================
   Section 3D Printer Introduction (3D印表機製作LED字體)
   ========================================================================== */

.section-3dprinter-intro {
    background-color: #ffffff;
}

/* 深藍色主字體色彩 */
.text-dark-navy {
    color: #0b1a30 !important;
}

/* 標題青綠/淺藍雙色四方塊 */
.title-square-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    padding-bottom: 45px;
    padding-right: 24px;
    flex-shrink: 0;
}

.section-title {
    font-size: 24px;
    letter-spacing: -0.2px;
}

.section-desc {
    font-size: 14px;
    line-height: 1.6;
}

/* 打勾清單圖示 */
.check-icon {
    color: #0097a7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 珊瑚橘紅膠囊標籤 */
.badge-coral {
    display: inline-block;
    background-color: #f2624e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
}

/* 表現形式 - 深藍色方塊 */
.navy-box {
    background-color: #002266;
    height: 130px;
}

.navy-box img {
    max-height: 80px;
    width: auto;
}

/* 理由卡片 - 右側深藍 ICON 方框 */
.reason-card {
    border-color: #edf2f7 !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.reason-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

.navy-icon-box {
    width: 90px;
    height: 80px;
    background-color: #002266;
}

.navy-icon-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* 活用場景卡片 */
.scene-img-box {
    height: 210px;
    background-color: #e2e8f0;
}

/* 表格專用底色與線條 */
.role-table-wrapper {
    background-color: #ffffff;
    border-color: #e2e8f0 !important;
}

.bg-light-cyan {
    background-color: #f1f7fa !important;
}

.role-table th,
.role-table td {
    font-size: 13.5px;
    border-bottom-color: #edf2f7;
}

/* 4 步驟圓形圖文 */
.step-circle-box {
    width: 130px;
    height: 130px;
}

.step-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: #0097a7;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.step-icon-inner {
    border-color: #e2e8f0 !important;
}

.step-sub-tag {
    font-size: 11px;
    color: #0097a7;
    letter-spacing: 0.8px;
}

.step-title {
    font-size: 15px;
}

.step-desc {
    font-size: 12px;
    line-height: 1.5;
}


/* 圖片與數字標籤容器 */
.flow-img-wrapper {
    width: 100%;
    max-width: 210px;
    padding-top: 10px;
    /* 給數字凸出留空間 */
}

/* 左上角青綠色圓形數字 */
.step-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background-color: #0096a4;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 150, 164, 0.3);
}

/* 膠囊/橢圓形圖片框 */
.flow-img-box {
    width: 100%;
    height: 130px;
    border-radius: 100px !important;
    /* 製作橫向橢圓形/膠囊形 */
    background-color: #f1f5f9;
}

/* 內文文字區域 */
.flow-cat {
    font-size: 12px;
    letter-spacing: 1px;
}

.flow-title {
    font-size: 16px;
}

.flow-desc {
    color: #64748b;
    line-height: 1.5;
    font-size: 13px;
}




/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 22px;
    }

    .showroom-img-card {
        height: 250px;
    }

    .network-title {
        font-size: 22px;
    }

    .flow-img-wrapper {
        max-width: 240px;
    }

    .flow-img-box {
        height: 140px;
    }
}

@media (max-width: 767.98px) {
    .navy-box {
        height: 100px;
    }

    .navy-icon-box {
        width: 75px;
        height: 70px;
    }

    .scene-img-box {
        height: 100px;
    }

    .step-circle-box {
        width: 100px;
        height: 100px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .card-icon-box {
        width: 70px;
        height: 70px;
    }

    .step-img-box {
        width: 120px;
        height: 120px;
    }
}

/* ==========================================================================
   Section4 Sapporo Access (札幌本社・ショールーム)
   ========================================================================== */

/* 區塊背景（帶微弱漸變與背景圖紋風格） */
.section-sapporo-access {
  background-image: url(../img/sapporointroduction/sapporointroduction2/bg.png)
}

/* 深藍色文字色彩 */
.text-dark-navy {
  color: #0b1a30 !important;
}

/* 地圖外框容器 */
.map-container {
  min-height: 350px;
  background-color: #e2e8f0;
  border: 1px solid #e2e8f0;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
}

/* ACCESS 青綠色橢圓標籤 */
.badge-access-cyan {
  display: inline-block;
  background-color: #0097a7;
  color: #ffffff;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  padding: 4px 16px;
  border-radius: 50px;
}

/* 本社標題 */
.access-title {
  font-size: 28px;
  letter-spacing: -0.3px;
}

.access-address {
  line-height: 1.5;
}

/* 打勾圖示 */
.check-icon {
  color: #0097a7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 按鈕樣式 */
.btn-access-cyan {
  background-color: #0097a7;
  border-color: #0097a7;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-access-cyan:hover {
  background-color: #007986;
  border-color: #007986;
  color: #ffffff;
}

/* 按鈕內圓形箭頭圖示 */
.btn-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  color: #0097a7;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .access-title {
    font-size: 24px;
  }

  .map-container {
    min-height: 280px;
  }
}

/* ==========================================================================
   Section News Archive (ニュース・展示会情報) 手機版專用樣式
   (僅在 767.98px 以下生效，PC 版完全不變)
   ========================================================================== */

@media (max-width: 767.98px) {
  .section-product-search {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }

  /* 1. 手機版「カテゴリー・年度から探す」下拉選單卡片 */
  .section-product-search .filter-mobile-heading {
    font-size: 16px;
    color: #061838;
  }

  .section-product-search .filter-mobile-card {
    border: 1px solid #e2e8f0;
  }

  .section-product-search .mobile-filter-select,
  .section-product-search .mobile-filter-input {
    font-size: 13px;
    color: #061838;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 36px 12px 14px;
    background-color: #ffffff;
    box-shadow: none !important;
  }

  .section-product-search .mobile-filter-input {
    padding-right: 14px;
  }

  .section-product-search .mobile-filter-input::placeholder {
    color: #94a3b8;
  }

  .section-product-search .mobile-filter-select:focus,
  .section-product-search .mobile-filter-input:focus {
    border-color: #0096a4;
  }

  /* 藍綠色搜尋提交按鈕 + 右側白底圓形箭頭 */
  .section-product-search .btn-mobile-search-submit {
    background-color: #0096a4;
    border: none;
    font-size: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .section-product-search .btn-mobile-search-submit:hover {
    background-color: #007d89;
  }

  .section-product-search .btn-submit-arrow {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
  }

  /* 2. 列表頂部「検索結果」與「並び替え」改為上下兩行靠左 */
  .section-product-search .product-list-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-top: 8px;
  }

  .section-product-search .product-sort-box {
    width: auto;
  }

  .section-product-search .product-sort-box .form-select {
    min-width: 140px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
  }

  /* 3. 新聞卡片圖片：對齊 chinesebrand 手機版完整顯示、不裁切 */
  .section-product-search .product-img-box {
    height: auto !important;
    min-height: 140px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .section-product-search .product-img-box a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto !important;
  }

  .section-product-search .product-img-box img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    object-fit: contain !important;
  }

  /* 4. 新聞卡片內文、標籤靠右對齊、底部箭頭尺寸 */
  .section-product-search .product-card-body {
    padding: 16px !important;
  }

  .section-product-search .product-tags {
    justify-content: flex-end !important;
    margin-bottom: 14px !important;
  }

  .section-product-search .product-card-footer {
    gap: 12px;
  }

  .section-product-search .btn-circle-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  /* 5. 分頁按鈕手機版微調 */
  .up-pagination ul.page-numbers {
    gap: 6px;
  }

  .up-pagination .page-numbers:not(ul) {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }

  .up-pagination .prev.page-numbers,
  .up-pagination .next.page-numbers {
    padding: 0 14px;
  }
}

/* ==========================================================================
   搜尋結果卡片統一固定高度與文字行數截斷（適用 chinesebrand.css / news.css）
   ========================================================================== */

/* 桌機版（768px 以上）：固定每張卡片總高度為 240px，寬度 100% */
@media (min-width: 768px) {
  .section-product-search .product-card {
    width: 100%;
    height: 240px;
    overflow: hidden;
  }

  .section-product-search .product-card > .row {
    height: 100%;
  }

  .section-product-search .maker-card-img-col,
  .section-product-search .product-img-box,
  .section-product-search .product-img-box > a,
  .section-product-search .product-card-body {
    height: 100%;
  }

  .section-product-search .product-img-box {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .section-product-search .product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 若桌機版也希望品牌 LOGO 完全不裁切，可改為 contain */
    display: block;
  }

  .section-product-search .product-card-body {
    overflow: hidden;
  }
}

/* 桌機與手機共用：限制文字行數與標籤列數，防止內容撐高卡片 */
.section-product-search .product-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-product-search .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* 標題最多 2 行，超出顯示 ... */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.section-product-search .product-desc {
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* 內文最多 2 行，超出顯示 ... */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-product-search .product-tags {
  max-height: 28px;             /* 標籤限制單行，避免標籤過多換行撐高 */
  overflow: hidden;
}

/* 手機版（767.98px 以下）：固定圖片框 180px + 文字區 260px，每張卡片總高一致且不裁圖 */
@media (max-width: 767.98px) {
  .section-product-search .product-card {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .section-product-search .product-img-box {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    padding: 8px !important;
    background-color: #ffffff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .section-product-search .product-img-box > a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .section-product-search .product-img-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* 固定框高同時保持原圖完整不裁切 */
    display: block;
  }

  .section-product-search .product-card-body {
    height: 260px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  .section-product-search .product-title {
    font-size: 17px !important;
    -webkit-line-clamp: 2;
  }

  .section-product-search .product-desc {
    font-size: 13px !important;
    -webkit-line-clamp: 3;        /* 手機版內文最多 3 行 */
  }
}