.body--dxpr-theme-nav-desktop .dxpr-theme-header--top .wrap-branding .logo {
height: 200%;
}

path-frontpage .swiper-container.default.slide-single {
    padding: 0px;
}

.page-title-full-width-container#page-title-full-width-container {
    width: 1200px;
    margin: 0 auto;
}

h1.page-title {
    font-size: 36px !important;
    color: #525252 !important;
}

/* ==========================================================================
   Takisawa 網站 Footer — 簡約俐落排版
   放置於 Drupal Sitewide CSS
   ========================================================================== */


.tw-site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* 左側：LOGO + 文字 群組 */
.tw-site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0; /* 允許文字在極窄畫面下正確換行 */
}

.tw-site-footer__logo {
  flex-shrink: 0;
  width: 103px;
  height: 40px;
  object-fit: contain;
}

.tw-site-footer__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid #e5e7eb;
}

.tw-site-footer__rights {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  letter-spacing: 0.01em;
}

.tw-site-footer__credit {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  letter-spacing: 0.01em;
}

/* 右側：CE 認證圖示 */
.tw-site-footer__cert {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.tw-site-footer__cert-icon {
  width: 76px;
  height: 47px;
  object-fit: contain;
  opacity: 0.9;
}

/* ==========================================================================
   RWD — 平板
   ========================================================================== */
@media (max-width: 899px) {
  .tw-site-footer__inner {
    gap: 20px;
  }

  .tw-site-footer__copy {
    padding-left: 16px;
  }
}

/* ==========================================================================
   RWD — 手機：改為置中堆疊
   ========================================================================== */
@media (max-width: 599px) {

  .tw-site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .tw-site-footer__brand {
    flex-direction: column;
    gap: 12px;
  }

  .tw-site-footer__copy {
    padding-left: 0;
    border-left: none;
    align-items: center;
  }

  .tw-site-footer__cert {
    justify-content: center;
  }
}


/* ==========================================================================
  產品簡介頁面
   ========================================================================== */
.page-node-type-product h1.page-title span {
    font-size: 32px;
    color: #555555;
}

.page-node-type-product .field--name-field-product-name {
    margin: 5px 10px;
    font-size: 56px;
    font-weight: 700;
    line-height: 50px;
}

.page-node-type-product .field--name-field-product-series {
    margin: 10px 12px 13px;
    color: #4caf50;
}

.page-node-type-product .field--name-field-product-series a {
    text-decoration: none;
    font-size: 24px;
    border: 1px solid #4caf50;
    border-radius: 9px;
    padding: 3px 10px;
    margin: 15px 0;
    font-style: oblique;
    font-weight: 700;
}

.page-node-type-product .field--name-field-product-series a:hover {
    background: #4caf50;
    color: white;
}

.page-node-type-product .field--name-field-machine-configuration {
    margin: 5px 16px;
    font-size: 24px;
    color: #7b7b7b;
}

.page-node-type-product .spec {
  margin: 15px auto;
  padding: 15px 30px;
  }
.page-node-type-product .spec *,
.page-node-type-product .spec *::before,
.page-node-type-product .spec *::after { box-sizing: border-box; }

/* ---- 公制／英制 切換（藥丸式切換鈕） ---- */
.page-node-type-product .unit-toggle label br {
    display: none;
}

.page-node-type-product .unit-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 0px;
  background: #f1f2f3;
  border-radius: 999px;
}
.page-node-type-product .unit-toggle label {
  position: relative;
  cursor: pointer;
}
.page-node-type-product .unit-toggle input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}
.page-node-type-product .unit-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  transition: background 0.25s ease, color 0.25s ease;
}
.page-node-type-product .unit-toggle input:checked + span {
  background: #4CAF50;
  color: #fff;
}
.page-node-type-product .unit-toggle input:focus-visible + span {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

/* ---- 規格列表 ---- */
.page-node-type-product .spec dl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}
.page-node-type-product .spec dl:last-child { border-bottom: none; }

.page-node-type-product .spec dt,
.page-node-type-product .spec dd { margin: 0; }
.page-node-type-product .spec dt p,
.page-node-type-product .spec dd p { margin: 0; }

.page-node-type-product .spec dt p {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}
.page-node-type-product .spec dd p {
  font-size: 15.5px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .page-node-type-product .spec { padding: 22px 20px; margin: 24px auto; }
  .page-node-type-product .spec dt p { font-size: 13px; }
  .page-node-type-product .spec dd p { font-size: 14.5px; }
}

/* ==========================================================================
  產品系列特點介紹頁面
   ========================================================================== */

.page-node-type-product .product-introduction h2 .field--name-title {
    display: none;
}

.product-introduction,
.product-introduction * {
  box-sizing: border-box;
}

.product-introduction {
  color: #f6f7f8;
  line-height: 1.9;
  padding: 80px 24px 0px;
}

.product-introduction .content {
  max-width: 1080px;
  margin: 0 auto;
}

/* ==========================================================================
   Header: 系列名稱 + 標語
   ========================================================================== */

.product-introduction .field--name-field-series-name {
  font-size: 42px;
  font-weight: 700;
  color: #323232;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  text-align: center;
}

.product-introduction .field--name-body h4 {
  font-weight: 500;
  color: #787878;
  letter-spacing: 0.1em;
  margin: 0 0 28px;
  padding-bottom: 28px;
  position: relative;
}

.product-introduction .field--name-body h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: #4caf50;
}

.product-introduction .field--name-body h3 strong {
  font-weight: inherit;
}

.product-introduction .field--name-body p {
  max-width: 800px;
  color: #505050;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   產品特色 Section Label
   ========================================================================== */

.product-introduction .field--name-field-product-features > .field__label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #4caf50;
  margin: 72px 0 8px;
  font-size: 1.5rem;
}

.product-introduction .field--name-field-product-features > .field__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e6e6;
}

.product-introduction .field__items {
  margin-top: 24px;
}

/* ==========================================================================
   特色項目列表 (圖左、文右)
   ========================================================================== */

.product-introduction .field__items > .field__item {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 48px 0;
  border-bottom: 1px solid #e6e6e6;
}

.product-introduction .field__items > .field__item:last-child {
  border-bottom: none;
}

/* 圖片區塊 */
.product-introduction .img-feature {
  flex: 0 0 42%;
  max-width: 42%;
}

.product-introduction .img-feature .img {
  overflow: hidden;
  border-radius: 3px;
  transition: box-shadow 0.4s ease;
}

.product-introduction .img-feature img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

/* Hover 效果 */
.product-introduction .field__items > .field__item:hover .img-feature .img {
  box-shadow: 0 20px 36px #e6e6e6;
}

.product-introduction .field__items > .field__item:hover .img-feature img {
  transform: scale(1.04);
}

/* 文字區塊 */
.product-introduction .txt-feature {
  flex: 1;
  min-width: 0;
}

.product-introduction .txt-feature h3 {
  font-weight: 600;
  color: #323232;
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 3px solid #4caf50;
}

.product-introduction .txt-list {
  color: #323232;
  margin: 0 0 12px;
}

.product-introduction .txt-list:last-child {
  margin-bottom: 0;
}

/* 無障礙：減少動態效果 */
@media (prefers-reduced-motion: reduce) {
  .product-introduction .img-feature img,
  .product-introduction .img-feature .img {
    transition: none;
  }
}

/* ==========================================================================
   Responsive: 手機版 (767px 以下)
   ========================================================================== */

@media (max-width: 767px) {
  .product-introduction {
    padding: 56px 20px;
  }

  .product-introduction .field--name-field-series-name {
    font-size: 28px;
  }

  .product-introduction .field--name-body h3 {
    font-size: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .product-introduction .field--name-body p {
    font-size: 14.5px;
  }

  .product-introduction .field--name-field-product-features > .field__label {
    margin: 48px 0 4px;
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  .product-introduction .field__items > .field__item {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 32px 0;
  }

  .product-introduction .img-feature {
    flex: none;
    max-width: 100%;
  }

  .product-introduction .txt-feature h3 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .product-introduction .txt-list {
    font-size: 14px;
  }
}

/* ==========================================================================
   Spec Area — 產品規範比較表
   結構：section.product-spec.inner
     ├─ h3.title                     標題「產品規範」
     ├─ div.guide-tip.dot           規格比較按鈕 + 提示文字
     └─ div.spec-table
          ├─ div.fixed-col         左側固定欄（項目名稱，METRIC/IMPERIAL 切換）
          └─ div.scroll-col        右側可滑動欄（Swiper 產品卡片輪播）
   ========================================================================== */
.product-spec.inner ul li {
    color: #7f7f7f;
    font-size: 14px;
}

.page-node-type-product .field--name-field-product-spec .field__label::after {
    content: "";
    height: 1px;
    background: #e6e6e6;
    flex: 1;
}

.page-node-type-product .field--name-field-product-spec .field__label {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #4caf50;
    width: 1200px;
    margin: 72px auto 8px;
    padding: 0 20px;
    font-size: 1.5rem;
}

.product-spec.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  box-sizing: border-box;
}
.product-spec.inner * {
  box-sizing: border-box;
}
.product-spec .title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px;
  color: #1a1a1a;
}
/* -------------------------------------------------------------------------
   guide-tip：說明文字 + 規格比較按鈕
   ------------------------------------------------------------------------- */
.guide-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.guide-tip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  order: 2;
}
.guide-tip.dot li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #888;
}
.guide-tip.dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aaa;
}
/* 按鈕共用樣式 */
.product-spec.inner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.product-spec.inner .btn.blue {
  background-color: #0056a8;
  color: #fff;
}
.product-spec.inner .btn.blue:hover {
  background-color: #003f7d;
}
.product-spec.inner .btn.smalll {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
}
.product-spec.inner .btn-compare {
  order: 1;
  white-space: nowrap;
}
/* ==========================================================================
   spec-table：左固定欄 + 右滑動欄 雙欄排版
   ========================================================================== */
.product-spec.inner .spec-table {
  position: relative;
  display: flex;
  align-items: flex-start;
  border-top: 2px solid #1a1a1a;
}
/* -------------------------------------------------------------------------
   左欄：fixed-col（項目名稱，永遠固定不隨輪播捲動）
   ------------------------------------------------------------------------- */
.product-spec.inner .fixed-col {
  flex: 0 0 200px;
  width: 200px;
  border-right: 1px solid #e5e5e5;
}
/* METRIC / IMPERIAL 切換列（公制／英制上下排列） */
.product-spec.inner .fixed-col > .header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px; /* 對齊右側 product .header 的高度（含圖片） */
  border-bottom: 1px solid #e5e5e5;
}
.product-spec.inner .fixed-col > .header .unit-toggle {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.product-spec.inner .fixed-col > .header label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.product-spec.inner .fixed-col > .header input[type="radio"] {
  margin: 0;
  accent-color: #4CAF50;
}
.product-spec.inner .fixed-col > .header label span {
  font-size: 14px;
  color: #999;
  font-weight: 500;
}
.product-spec.inner .fixed-col > .header input[type="radio"]:checked + span {
  color: white;
  font-weight: 700;
}
/* 每一個規格分類（容量 / 行程 / 主軸 / 刀塔 / 外形尺寸） */
.product-spec.inner .fixed-col .spec_pack {
  border-bottom: 1px solid #eee;
}
.product-spec.inner .fixed-col .spec_pack .title {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  margin: 0;
  border: none;
  background: #f7f7f8;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: default; /* 桌面版不做手風琴收合，維持原本樣子；手機版會在 media query 內改成 pointer */
}
.product-spec.inner .fixed-col .spec_pack p {
    margin: 0;
}
.product-spec.inner .fixed-col .spec_pack [class*="group"] {
  display: flex;
  flex-direction: column;
}
.product-spec.inner .fixed-col .spec_pack [class*="group"] span {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #f2f2f2;
}

.product-spec.inner .spec-note {
    display: block;
    margin: 25px 0px 50px;
}
/* -------------------------------------------------------------------------
   右欄：scroll-col（Swiper 產品輪播）
   ------------------------------------------------------------------------- */
.product-spec.inner .scroll-col {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.product-spec.inner .scroll-swiper {
  position: relative;
}
.product-spec.inner .swiper {
  width: 100%;
  overflow: hidden;
}
.product-spec.inner .swiper-wrapper {
  display: flex;
  transition-timing-function: ease-out;
}
.product-spec.inner .swiper-slide {
  /* 平均分配寬度：不管實際有幾張 slide（2 張或 5 張），都會平分 swiper-wrapper
     的可用寬度；min-width 是下限，項目太多、平分後低於此寬度時才會觸發捲動 */
  flex: 1 1 0%;
  width: auto;
  min-width: 200px;
  border-right: 1px solid #e5e5e5;
}
/* 產品卡片標頭：圖片、收藏按鈕、機型名稱 */
.product-spec.inner .product > .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 96px;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
  background: #4CAF50;
}
.product-spec.inner .product > .header .img {
  position: relative;
  width: 48px;
}
.product-spec.inner .product > .header .img figure {
  margin: 0;
}
.product-spec.inner .product > .header .img figure img {
  display: block;
  width: 100%;
  height: auto;
}
.product-spec.inner .btn-bookmark {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent url("icon-bookmark.svg") no-repeat center / 16px;
  cursor: pointer;
}
.product-spec.inner .product > .header .name {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}
/* 產品每個分類區塊，需與左側 fixed-col 的列高完全對齊 */
.product-spec.inner .product .spec_pack {
  border-bottom: 1px solid #eee;
}
.product-spec.inner .product .spec_pack .title {
  /* <strong> 預設是 inline 元素，inline 元素不吃 height，
     這裡的 .title 內容又是空的（<strong class="title"></strong>），
     導致這一列高度直接塌陷為 0，跟左側 fixed-col 對不齊。
     加上 display:block 讓 height 生效即可修正。 */
  display: block;
  height: 44px;
  margin: 0;
  background: #f7f7f8;
  line-height: 44px; /* 保險：即使日後填入文字也能維持垂直置中 */
}
.product-spec.inner .product .spec_pack [class*="group"] {
  display: flex;
  flex-direction: column;
}
.product-spec.inner .product .spec_pack [class*="group"] span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 8px;
  font-size: 13px;
  color: #333;
  text-align: center;
  border-top: 1px solid #f2f2f2;
  white-space: nowrap;
}
/* METRIC / IMPERIAL 數據切換
   實際顯示/隱藏由 JS 依 radio 狀態加上 inline style="display:none" 控制，
   這裡只補上預設狀態，避免無 JS 時版面跑掉 */
.product-spec.inner .spec_list_imperial {
  display: none;
}
/* ==========================================================================
   Swiper 導覽元件（左右箭頭 / 捲軸）
   ========================================================================== */
.product-spec.inner .swiper-button-prev,
.product-spec.inner .swiper-button-next {
  position: absolute;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4CAF50;
  border: 1px solid #4CAF50;
  cursor: pointer;
  z-index: 2;
}
.product-spec.inner .swiper-button-prev {
  left: 0;
}
.product-spec.inner .swiper-button-next {
  right: 0;
}
.product-spec.inner .swiper-button-prev::after,
.product-spec.inner .swiper-button-next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}
.product-spec.inner .swiper-button-prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}
.product-spec.inner .swiper-button-next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}
.product-spec.inner .swiper-button-disabled,
.swiper-button-lock {
  opacity: 0.3;
  pointer-events: none;
}
.product-spec.inner .swiper-scrollbar {
  position: relative;
  height: 4px;
  margin-top: 12px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}
.product-spec.inner .swiper-scrollbar-lock {
  display: none;
}
.product-spec.inner .swiper-scrollbar-drag {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #999;
  border-radius: 2px;
}
/* 隱藏用文字（僅供螢幕閱讀器） */
.product-spec.inner .blind {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ==========================================================================
   新增：fixed-unit-col（單位欄）— 固定於左側，位於 fixed-col 與 scroll-col 之間
   結構與 fixed-col 對應（同樣的 spec_pack / group / span 分列），
   但只放「單位」文字，並比照 scroll-col 的作法用 spec_list_metric / spec_list_imperial
   切換公制／英制 — 因為既有 JS 是抓 `.product-spec .spec_list_metric/2` 全域切換，
   這欄不需要另外寫 JS，會自動跟著 fixed-col 的 METRIC/IMPERIAL radio 一起變動。
   ========================================================================== */
.product-spec.inner .fixed-unit-col {
  flex: 0 0 64px;
  width: 64px;
  border-right: 1px solid #e5e5e5;
  background: #fbfbfc;
}
.product-spec.inner .fixed-unit-col > .header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px; /* 對齊 fixed-col / product 的 header 高度 */
  border-bottom: 1px solid #e5e5e5;
}
.product-spec.inner .fixed-unit-col > .header .unit-head {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}
.product-spec.inner .fixed-unit-col .spec_pack {
  border-bottom: 1px solid #eee;
}
/* 對應 fixed-col 的分類標題列，這裡內容留空，純粹用來撐開同樣的列高對齊 */
.product-spec.inner .fixed-unit-col .spec_pack .title {
  display: block;
  height: 44px;
  margin: 0;
  background: #f7f7f8;
}
.product-spec.inner .fixed-unit-col .spec_pack [class*="group"] {
  display: flex;
  flex-direction: column;
}
.product-spec.inner .fixed-unit-col .spec_pack [class*="group"] span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 4px;
  font-size: 12px;
  color: #555;
  border-top: 1px solid #f2f2f2;
  white-space: nowrap;
}
/* ==========================================================================
   RWD — 行動裝置
   ========================================================================== */
@media (max-width: 768px) {
  .product-spec.inner .product-spec.inner {
    padding: 40px 16px;
  }
  .product-spec.inner .product-spec .title {
    font-size: 24px;
  }
  .product-spec.inner .fixed-col {
    flex: 0 0 120px;
    width: 120px;
  }
  .product-spec.inner .fixed-unit-col {
    flex: 0 0 44px;
    width: 44px;
  }
  .product-spec.inner .fixed-col .spec_pack .title,
  .product-spec.inner .fixed-col .spec_pack [class*="group"] span,
  .product-spec.inner .fixed-unit-col .spec_pack .title,
  .product-spec.inner .fixed-unit-col .spec_pack [class*="group"] span,
  .product-spec.inner .product .spec_pack .title,
  .product-spec.inner .product .spec_pack [class*="group"] span {
    height: 40px;
    font-size: 12px;
  }
  .product-spec.inner .fixed-unit-col .spec_pack [class*="group"] span {
    font-size: 11px;
  }
 .product-spec.inner .product-spec.inner .swiper-slide {
    width: 140px;
  }
  .product-spec.inner .scroll-swiper {
    padding: 0px;
  }
  /* -----------------------------------------------------------------------
     手風琴收合展開（僅手機版啟用；桌面版永遠全部展開，不受 .active 影響）
     ----------------------------------------------------------------------- */
  .product-spec.inner .fixed-col .spec_pack .title {
    position: relative;
    padding-right: 32px;
    cursor: pointer;
  }
  /* 展開/收合箭頭（chevron），用純 CSS 畫出來，不需要額外圖片 */
  .product-spec.inner .fixed-col .spec_pack .title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-70%) rotate(45deg); /* 收合狀態：箭頭朝下 */
    transition: transform 0.2s ease;
  }
  .product-spec.inner .fixed-col .spec_pack.active .title::after {
    transform: translateY(-30%) rotate(-135deg); /* 展開狀態：箭頭朝上 */
  }
  /* 收合的分類：隱藏該分類在三個欄位（fixed-col / fixed-unit-col / 每個 product）
     內的資料列，只保留標題列本身，並用 !important 蓋掉 JS 針對
     公制/英制切換設定的 inline display，確保收合狀態優先 */
  .product-spec.inner .fixed-col .spec_pack:not(.active) [class*="group"],
  .product-spec.inner .fixed-unit-col .spec_pack:not(.active) [class*="group"],
  .product-spec.inner .product .spec_pack:not(.active) [class*="group"] {
    display: none !important;
  }
}

/* =========================================================================
   瀧澤機械（Takisawa）產品圖片 Swiper — 自訂樣式
   ========================================================================= */
/* 展示台外框：置中留白，讓照片像被放上量測台 */
.page-node-type-product .swiper-container{
    margin: 0;
}

.page-node-type-product .swiper-container.default.slide-single {
  position: relative;
  overflow: hidden;
  background: #f4f5f6;
  padding: clamp(16px, 3vw, 40px);
}

/* 每張投影片置中對齊 */
.page-node-type-product .swiper-container.default.slide-single .swiper-slide-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 圖片統一控制在合理高度內，避免不同照片高度造成版面跳動；
   滑鼠移到目前這張圖片時給予極輕微放大，作為互動提示 */
.page-node-type-product .swiper-container.default.slide-single .swiper-slide-image img {
  width: 70%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
}


/* 分頁指示：改成工程圖尺寸標註的刻度感，取代制式圓點列
   —— 平常是小圓點，啟用時延伸為短刻度線，並填上黃銅強調色 */
.page-node-type-product .swiper-container.default.slide-single .swiper-pagination {
  align-items: center;
}

.page-node-type-product .swiper-container.default.slide-single .swiper-pagination-bullet {
  border-radius: 999px;
  cursor: pointer;
}

.page-node-type-product .swiper-container.default.slide-single .swiper-pagination-bullet-active {
  width: 21px;
  background: #4caf50;
  opacity: 1;
}

/* 左右切換箭頭：拿掉 Swiper 預設字型圖示，
   改用純 CSS 線條箭頭，平時淡出、滑到展示台上才浮現 */
.page-node-type-product .swiper-container.default.slide-single .swiper-button-prev,
.page-node-type-product .swiper-container.default.slide-single .swiper-button-next {
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
}

.page-node-type-product .swiper-container.default.slide-single .swiper-button-prev {
  left: 16px;
}

.page-node-type-product .swiper-container.default.slide-single .swiper-button-next {
  right: 16px;
}

.page-node-type-product .swiper-container.default.slide-single:hover .swiper-button-prev,
.page-node-type-product .swiper-container.default.slide-single:hover .swiper-button-next {
  opacity: 1;
  transform: translateY(0);
}

.page-node-type-product .swiper-container.default.slide-single .swiper-button-prev::after,
.page-node-type-product .swiper-container.default.slide-single .swiper-button-next::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-right: 2px solid #4caf50;
  border-bottom: 2px solid #4caf50;
}

.page-node-type-product .swiper-container.default.slide-single .swiper-button-prev::after {
  transform: rotate(135deg) translate(1px, -1px);
}

.page-node-type-product .swiper-container.default.slide-single .swiper-button-next::after {
  transform: rotate(-45deg) translate(-1px, -1px);
}


.page-node-type-product .swiper-container.default.slide-single .swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* 捲軸：與分頁刻度重複，預設隱藏；若想保留，移除這條規則即可，
   會沿用上方 --swiper-accent 的細線風格 */
.page-node-type-product .swiper-container.default.slide-single .swiper-scrollbar {
  display: none;
}

/* 手機：箭頭常駐顯示（沒有 hover 狀態可觸發），尺寸略縮小 */
@media (max-width: 767px) {
  .page-node-type-product .swiper-container.default.slide-single .swiper-button-prev,
  .page-node-type-product .swiper-container.default.slide-single .swiper-button-next {
    width: 32px;
    height: 32px;
    margin-top: -16px;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-node-type-product .swiper-container.default.slide-single * {
    transition: none !important;
  }
}

/* ==========================================================================
   Takisawa 瀧澤機械｜文章列表頁 (/article) 美化樣式
   ========================================================================== */

/* ---------- 區塊基礎設定 ---------- */
.path-article #block-dxpr-theme-content {
  background: #f6f7f6;
  padding: 48px 0 64px;
}
.path-article #block-dxpr-theme-content .block-hr { display: none; }
.path-article #block-dxpr-theme-content,
.path-article #block-dxpr-theme-content * { box-sizing: border-box; }

.path-article .view-article .form-item-field-article-type-value label,
.path-article .view-article input[type="hidden"] { display: none; }
.path-article .view-article .form-actions { display: none; } /* 已啟用 auto-submit，套用按鈕不需顯示 */

/* ---------- 篩選標籤列 ---------- */
.path-article .bef-exposed-form .form--inline > .form-item, .bef-exposed-form .form--inline .js-form-wrapper > .form-item {
    float: none;
}

.path-article .article-selection.bef-links {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 24px;
  border-bottom: 1px solid #dde1e4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.path-article .article-selection.bef-links::-webkit-scrollbar { display: none; }
.path-article .article-selection.bef-links ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.path-article .article-selection.bef-links .bef-link {
  display: inline-block;
  margin-right: 28px;
  padding: 14px 2px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #5c6670;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.path-article .article-selection.bef-links .bef-link:hover { color: #1a1f24; }
.path-article .article-selection.bef-links .bef-link--selected {
  color: #4caf50;
  border-bottom-color: #4caf50;
}

/* ---------- 卡片格線 ---------- */
.path-article .view-content { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.path-article .views-view-responsive-grid.views-view-responsive-grid--horizontal {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* 最大欄數：3 */
  gap: 28px !important;
}

.path-article .views-view-responsive-grid__item { list-style: none; }

.path-article .views-view-responsive-grid__item-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #dde1e4;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.path-article .views-view-responsive-grid__item-inner:hover {
  border-color: #009b4a;
  box-shadow: 0 16px 30px -20px rgba(26, 31, 36, .4);
  transform: translateY(-3px);
}

/* ---------- 圖片 ---------- */
.path-article .views-field-field-image { order: 1; }
.path-article .views-field-field-image .field-content {
  display: block;
  aspect-ratio: 1.7 / 1;
  overflow: hidden;
  background: #20262c;
}
.path-article .views-field-field-image .field-content a { display: block; width: 100%; height: 100%; }
.path-article .views-field-field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.45) contrast(1.02);
  transition: filter .4s ease, transform .5s ease;
}
.path-article .views-view-responsive-grid__item-inner:hover .views-field-field-image img {
  filter: grayscale(0);
  transform: scale(1.045);
}

/* ---------- 日期：置於圖片與標題之間，簡潔呈現 ---------- */
.path-article .views-field-created {
  order: 2;
  padding: 14px 20px 0;
}
.path-article .views-field-created time.datetime {
  font-weight: 500;
  letter-spacing: .03em;
  color: #8b949c;
}

/* ---------- 標題與摘要 ---------- */
.path-article .views-field-title { order: 3; padding: 6px 20px 8px; }
.path-article .views-field-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  color: #009b4a;
  text-decoration: none;
  transition: color .2s ease;
}
.path-article .views-view-responsive-grid__item-inner:hover .views-field-title a { color: #009b4a; }

.path-article .views-field-body {
  order: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px 22px;
}
.path-article .views-field-body .field-content { flex: 1; }
.path-article .views-field-body p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #5c6670;
}
.path-article .views-field-body::after {
  content: "→";
  align-self: flex-end;
  margin-top: 14px;
  font-size: 15px;
  color: #8b949c;
  transition: color .2s ease, transform .2s ease;
}
.path-article .views-view-responsive-grid__item-inner:hover .views-field-body::after {
  color: #009b4a;
  transform: translateX(4px);
}

/* ---------- 無障礙焦點樣式 ---------- */
.path-article .article-selection.bef-links .bef-link:focus-visible,
.path-article .views-field-field-image a:focus-visible,
.path-article .views-field-title a:focus-visible {
  outline: 2px solid #009b4a;
  outline-offset: 2px;
}

/* ---------- 響應式：平板／小螢幕 ---------- */
@media (max-width: 899px) {
  .path-article .views-view-responsive-grid.views-view-responsive-grid--horizontal {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  #block-dxpr-theme-content { padding: 36px 0 48px; }
}

/* ---------- 響應式：手機 ---------- */
@media (max-width: 599px) {
  .path-article .views-view-responsive-grid.views-view-responsive-grid--horizontal {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .path-article .view-content,
  .path-article .article-selection.bef-links { padding: 0 16px; }
  .path-article #block-dxpr-theme-content { padding: 28px 0 40px; }
  .path-article .views-field-created { padding: 12px 16px 0; }
  .path-article .views-field-title { padding: 4px 16px 6px; font-size: 15px; }
  .path-article .views-field-title a { font-size: 15px; }
  .path-article .views-field-body { padding: 0 16px 18px; }
  .path-article .views-view-responsive-grid__item-inner:hover {
    transform: none; /* 觸控裝置不需位移，避免點擊延遲感 */
  }
}

/* ---------- 尊重使用者的動態效果偏好設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .path-article .views-view-responsive-grid__item-inner,
  .path-article .views-field-field-image img,
  .path-article .views-field-title a,
  .path-article .views-field-body::after {
    transition: none !important;
  }
  .path-article .views-view-responsive-grid__item-inner:hover { transform: none; }
}

/* ==========================================================================
   Takisawa 瀧澤機械｜文章頁面 (/article) 美化樣式
   ========================================================================== */
.page-node-type-article .main-container {
    width: 1200px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 30px auto;
}
.page-node-type-article .content {
    padding: 0 3%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   內文排版基礎設定
   -------------------------------------------------------------------------- */
.page-node-type-article .content {
    color: #333333;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}

.page-node-type-article .content h1,
.page-node-type-article .content h2,
.page-node-type-article .content h3,
.page-node-type-article .content h4,
.page-node-type-article .content h5 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.5;
    margin: 1.6em 0 0.8em;
}

.page-node-type-article .content h1 {
    font-size: 24px;
    border-left: 4px solid #009B4A;
    padding-left: 14px;
}

.page-node-type-article .content h2 { font-size: 22px; }
.page-node-type-article .content h3 { font-size: 20px; }

.page-node-type-article .content h4 {
    font-size: 19px;
    color: #009B4A;
}

.page-node-type-article .content p {
    margin: 0 0 1.2em;
    font-size: 18px;
}

.page-node-type-article .content ul,
.page-node-type-article .content ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}

.page-node-type-article .content li {
    margin-bottom: 0.5em;
}

.page-node-type-article .content li::marker {
    color: #009B4A;
}

.page-node-type-article .content a {
    color: #009B4A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 內文圖片：預設置中、限制最大寬度，避免撐破版面 */
.page-node-type-article .content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 內文表格：允許橫向捲動，避免破版 */
.page-node-type-article .content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.page-node-type-article .content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* ==========================================================================
   Responsive - 平板 (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .page-node-type-article .main-container {
        width: 100%;
        padding: 0 4%;
        margin: 24px auto;
    }

    .page-title-full-width-container#page-title-full-width-container {
        width: 100%;
        padding: 0 4%;
    }

    .page-node-type-article .content {
        padding: 0;
    }
}

/* ==========================================================================
   Responsive - 手機 (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .page-node-type-article .main-container {
        margin: 16px auto;
        padding: 0 5%;
    }

    .page-title-full-width-container#page-title-full-width-container {
        width: 100%;
        padding: 0 4%;
    }

    .page-node-type-article .content {
        line-height: 1.7;
    }

    .page-node-type-article .content h1 { font-size: 24px; }
    .page-node-type-article .content h2 { font-size: 22px; }
    .page-node-type-article .content h3 { font-size: 20px; }
    .page-node-type-article .content h4 { font-size: 19px; }

    .page-node-type-article .content p,
    .page-node-type-article .content li {
        font-size: 18px;
        line-height: 1.7;
    }

    .page-node-type-article .content img {
        border-radius: 2px;
    }
}

/* ==========================================================================
   Responsive - 小型手機 (≤599px)
   ========================================================================== */
@media (max-width: 599px) {
    .page-node-type-article .main-container {
        margin: 12px auto;
        padding: 0 4%;
    }

    .page-title-full-width-container#page-title-full-width-container {
        width: 100%;
        padding: 0 4%;
    }

    .page-node-type-article .content h1 {
        font-size: 24px;
        padding-left: 10px;
        border-left-width: 3px;
    }

    .page-node-type-article .content ul,
    .page-node-type-article .content ol {
        padding-left: 18px;
    }

    .page-node-type-article .content p,
    .page-node-type-article .content li {
        font-size: 18px;
    }
}

/* ==========================================================================
   文章頁底部：回上一頁 ／ 回文章列表
   ========================================================================== */
.page-node-type-article section#block-articel-footer-nav {
    border: none;
    border-bottom: 1px solid #ddd;
    margin: 30px auto;
    max-width: 1200px;
}

body.page-node-type-article .tw-article-nav.tw-article-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: auto !important;
    margin: 3em 0 0 !important;
    padding: 1.5em 0 .5em 0 !important;
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
    list-style: none !important;
}

body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 4px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link:focus-visible {
    outline: 2px solid #009B4A !important;
    outline-offset: 2px !important;
}

body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__icon {
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
    fill: none !important;
    transition: transform 0.2s ease !important;
}

/* 回上一頁：ghost text 樣式（次要動作） */
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--back {
    color: #666666 !important;
}
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--back:hover,
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--back:focus-visible {
    color: #009B4A !important;
}
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--back:hover .tw-article-nav__icon {
    transform: translateX(-3px);
}

/* 回文章列表：外框按鈕樣式（主要動作，固定可達的頁面） */
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--list {
    color: #009B4A !important;
    border-color: #009B4A !important;
    padding: 10px 20px !important;
}
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--list:hover,
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--list:focus-visible {
    background-color: #009B4A !important;
    color: #ffffff !important;
}
body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--list:hover .tw-article-nav__icon {
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive - 小型手機 (≤599px)：改為堆疊、滿版按鈕，主要動作在上
   ========================================================================== */
@media (max-width: 599px) {
    body.page-node-type-article .tw-article-nav.tw-article-nav {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 2.5em !important;
        padding-top: 1.2em !important;
    }
    body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link {
        justify-content: center !important;
        width: 100% !important;
    }
    body.page-node-type-article .tw-article-nav.tw-article-nav .tw-article-nav__link--list {
        padding: 12px 20px !important;
    }
}
