/* ==========================================================================
   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 Top 2 (Hero Section - LEDビジョンを 新たな事業の柱に)
   ========================================================================== */

/* 深藍色背景顏色 */
.bg-dark-navy {
    background-color: #062863;
    /* 深藍色視覺色值 */
}

/* 左側文字容器最小高度 */
.hero-left-content {
    background-image: url(../img/salesagentintroduction/top2/bg.png);
    background-size: cover;
    min-height: 420px;
}

.hero-text-wrapper {
    width: 100%;
}

/* 主標題 */
.hero-title {
    font-size: 48px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* 內文描述與文字透明度 */
.hero-desc {
    font-size: 16px;
    line-height: 1.7;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.85);
}

/* 右側圖片容器與最小高度控制 */
.hero-right-img-box {
    min-height: 420px;
    background-color: #000000;
}

/* 右下角圖片來源標記 */
.image-credit {
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-left-content {
        min-height: auto;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-right-img-box {
        min-height: 280px;
    }
}

/* ==========================================================================
   Section Company Profile 1 (公司簡介與 4 大基盤)
   ========================================================================== */

.section-company-profile1 {
    background-color: #ffffff;
}

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

/* 標題四方塊 Icon */
.title-square-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    padding-bottom: 49px;
    padding-right: 24px;
    flex-shrink: 0;
}

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

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

/* 淺青藍背景卡片 */
.bg-light-cyan {
    background-color: #F4FAFE !important;
}

/* 樞紐插圖容器 */
.hub-illustration-card img {
    max-height: 380px;
    width: auto;
}

/* 占位灰底卡片（代表/團隊照片） */
.ceo-img-box {
   width: 100%;
    height: auto;
}

.bg-silver-placeholder {
    background-color: #e5e7eb;
    border: 1px dashed #cbd5e1;
}

/* 打勾清單圖示 */
.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: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
}

/* 4大基盤文字說明 */
.foundation-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

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

    .ceo-img-box {
       width: 100%;
    height: auto;
    }
}

/* ==========================================================================
   Section Company Profile 2 (Full Width Visual Banner)
   ========================================================================== */

.section-company-profile2 {
  background-color: #000000;
}

/* 横幅容器與高度控制 */
.company-banner-wrapper {
  width: 100%;
  height: 480px; /* 預設桌面端高度 */
  max-height: 80vh;
}

/* 圖片適應 */
.banner-img {
  object-position: center center;
}

/* 右下角圖片來源標註 */
.image-credit {
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 2;
  margin-bottom: 12px;
  margin-end: 12px;
}

/* --------------------------------------------------------------------------
   響應式調整 (RWD)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .company-banner-wrapper {
    height: 360px;
  }
}

@media (max-width: 575.98px) {
  .company-banner-wrapper {
    height: 240px;
  }

  .image-credit {
    font-size: 10px;
    padding: 3px 8px !important;
    margin-bottom: 8px;
    margin-end: 8px;
  }
}

/* ==========================================================================
   Section Company Profile 3 (事業内容 & 会社情報)
   ========================================================================== */

.section-company-profile3 {
  background-color: #ffffff;
}

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

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

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

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

/* 事業內容卡片 */
.business-card {
  border-color: #e2e8f0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06) !important;
}

.card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.card-icon-box {
  width: 90px;
  height: 90px;
  background-color: #f1f7fa;
  border-radius: 12px;
  padding: 12px;
}

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

/* 会社情報表格 */
.company-table-wrapper {
  background-color: #ffffff;
  border-color: #e2e8f0 !important;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid #e2e8f0;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

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

.company-th {
  width: 25%;
  min-width: 140px;
  font-size: 14px;
}

.company-td {
  font-size: 14px;
  line-height: 1.6;
}

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

  .card-icon-box {
    width: 70px;
    height: 70px;
    padding: 8px;
  }

  .company-th {
    width: 30%;
    min-width: 110px;
    font-size: 13.5px;
  }

  .company-td {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   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;
  }
}

/* ==========================================================================
   会社概要頁手機版：圖片不裁切、文字與圖示對整 (767.98px 以下，不影響 PC 版)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 防止頁面區塊水平撐開 */
  .section-company-profile1 {
    max-width: 100%;
    overflow-x: clip;
  }

  /* 1. 區塊主標題：換行時方塊圖示固定對齊第一行，不縮扁 */
  .section-company-profile1 .section-title {
    align-items: flex-start !important;
    font-size: 20px !important;
    line-height: 1.45;
    text-align: left;
    word-break: break-word;
  }

  .section-company-profile1 .title-square-icon {
    flex-shrink: 0;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
  }

  .section-company-profile1 .section-desc {
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    word-break: break-word;
  }

  /* 2. PART 1 中央樞紐圖 (a.png)：縮小外框內距並依原比例完整顯示 */
  .section-company-profile1 .hub-illustration-card {
    padding: 16px 12px !important;
  }

  .section-company-profile1 .hub-illustration-card img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
  }

  /* 3. PART 2 代表／團隊照片 (logoA.jpg)：不裁切、依原圖比例完整顯示 */
  .section-company-profile1 .ceo-message-card {
    padding: 20px 16px !important;
  }

  .section-company-profile1 .ceo-img-box {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  .section-company-profile1 .ceo-img-box img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }

  /* Check 清單：統一打勾圖示與文字的頂部對齊（相容第 2 項未包 check-icon 的結構） */
  .section-company-profile1 .feature-check-list li {
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left;
  }

  .section-company-profile1 .feature-check-list .check-icon,
  .section-company-profile1 .feature-check-list li > img {
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
  }

  .section-company-profile1 .feature-check-list li span:last-child {
    font-size: 14.5px;
    line-height: 1.55;
  }

  /* 4. PART 3 四大基盤：標籤與說明文字統一靠左對齊 */
  .section-company-profile1 .foundation-item {
    text-align: left;
  }

  .section-company-profile1 .badge-coral {
    display: inline-block;
    margin-bottom: 10px !important;
  }

  .section-company-profile1 .foundation-desc {
    font-size: 14px !important;
    line-height: 1.75;
    text-align: left;
  }
}

/* ==========================================================================
   Section Company Profile 3 (PART 1: 事業内容) 手機版比例與單行標籤調整
   (僅在 767.98px 以下生效，PC 版完全不變)
   ========================================================================== */
@media (max-width: 767.98px) {
  .section-company-profile3 {
    max-width: 100%;
    overflow-x: clip;
  }

  /* 1. 縮小手機版卡片內距與左右間距，騰出文字閱讀空間 */
  .section-company-profile3 .business-card {
    padding: 16px 14px !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .section-company-profile3 .business-card .card-info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  /* 2. 橘紅色標題標籤：強制單行且完整顯示所有文字、不裁切 */
  .section-company-profile3 .business-card .badge-coral {
    display: inline-block;
    white-space: nowrap;
    max-width: none;
    font-size: clamp(10.5px, 3vw, 12px);
    line-height: 1.3;
    padding: 4px 11px;
    margin-bottom: 8px !important;
  }

  /* 英文版若標題字數較長，稍微收緊字級與左右內距以維持單行完整顯示 */
  html[lang^="en"] .section-company-profile3 .business-card .badge-coral {
    font-size: 10px;
    padding: 3px 9px;
    letter-spacing: -0.2px;
  }

  /* 3. 卡片內文：覆寫 Bootstrap fs-6，調整為適合手機閱讀的字級與行距 */
  .section-company-profile3 .business-card .card-text {
    font-size: 13px !important;
    line-height: 1.6;
    text-align: left;
    word-break: break-word;
  }

  /* 4. 右側圖片：固定適合手機比例的大小，並維持原圖比例不裁切 */
  .section-company-profile3 .business-card > .flex-shrink-0 {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section-company-profile3 .business-card > .flex-shrink-0 img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }
}

/* 極窄螢幕（如 360px 以下小手機）進一步微調圖片寬度，確保單行標籤不超出卡片 */
@media (max-width: 389.98px) {
  .section-company-profile3 .business-card {
    padding: 14px 12px !important;
    gap: 10px !important;
  }

  .section-company-profile3 .business-card > .flex-shrink-0 {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }
}