.page-title {
    display: none;
}
.read-more {
    display: none;
}

/* 標題 */
.home-thumb .title{
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.25;
}

/* 副標 */
.home-thumb .subtitle{
  font-size: clamp(12px, 1.4vw, 18px);
  line-height: 1.5;
}


/* 分頁讓 ab-wrap 這一塊縮窄並置中 */
.ab-wrap {
  max-width: 960px;   /* 這裡可以改成你想要的寬度，例如 900px 或 1100px */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* 分頁調色盤下方按鈕長度 */
.page-id-692 .btn-fill .wp-block-button__link{
  display: block;      /* 讓寬度設定生效、吃到父層寬度 */
  width: 100%;         /* 滿寬（欄位多寬就多寬） */
  text-align: center;  /* 文字置中 */
}
/* 分頁標題隱藏 */
.page-id-692 .post-header {
  display: none !important; 
}

/* 分頁選單的背景group橫幅調整 */
.page-links-banner { 
  width: 100vw; 
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 投稿頁 主圖說明標題 - 強制套用游明朝 Demibold */
.entry-content h2.wp-block-heading.main-caption-title,
.post-content h2.wp-block-heading.main-caption-title,
.page-content h2.wp-block-heading.main-caption-title,
.wp-block-post-content h2.wp-block-heading.main-caption-title {
  font-family: "Yu Mincho", "YuMincho", "游明朝", serif !important;
  font-weight: 600 !important; /* Demibold */
}
/* 投稿頁 主圖說明內文 - 游明朝 Demibold */
.entry-content .main-caption-text,
.post-content .main-caption-text,
.page-content .main-caption-text,
.wp-block-post-content .main-caption-text {
  font-family: "Yu Mincho", "YuMincho", "游明朝", serif !important;
  font-weight: 600 !important; /* Demibold */
  color: #2c3e50 !important; /* 深灰，測試用，確認命中後可移除 */
}


/* === 第二層menu固定在畫面上方，滾動卷軸也不會跑掉 === */
/* 固定頂端橫條（含 SNS 按鈕） */
#page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* 讓它在最上層 */
}
/* 推開正文，避免被頂端橫條遮住 */
body {
  padding-top: 50px; /* ← 依你的白條實際高度調整，例：60px、70px */
}
/* 若登入了 WordPress（上方有黑色管理列） */
body.admin-bar #page-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar #page-header {
    top: 46px;
  }
}

/* 若下方主選單也有 sticky，避免重疊 */
.site-header,
header[role="banner"] {
  top: 50px; /* 要跟上面 padding-top 的數值一致 */
  z-index: 9998;
}

/* 隱藏 Slider 圖上的標題、說明文字 */
/* 讓每張 slide 可作為定位基準 */
.slider-item { position: relative; }

/* 移除 .slider-info 的寬度限制，並鋪滿整張圖（左右滿版） */
.slider-info {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;

  /* 一些主題會給 .slider-info 或其內層 .container/.wrap 設 max-width、transform 置中 */
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  padding: 0 !important;
}

/* 如果 .slider-info 裡還有包一層 .container/.wrap，把它們也展開到全寬 */
.slider-info .container,
.slider-info .wrap {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 只隱藏文字，保留按鈕 */
.slider-info .slider-title,
.slider-info .slider-content {
  display: none !important;
}

/* 讓「閱讀更多」按鈕撐成覆蓋整張圖的透明層 */
.slider-info .slider-read-more {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 5;              /* 壓在既有按鈕下面 */
  pointer-events: auto;
}
.slider-info .slider-read-more a {
  display: block;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;              /* 完全透明 */
  background: transparent;
  z-index: 5 !important;
  cursor: pointer;         /* 滑過變手指 */
}

/* 提升「既有（原本就有）的圖上按鈕/連結」層級，確保不被透明層擋住 */
.slider-item a,
.slider-item button,
.slider-item .button,
.slider-item .wp-block-button__link {
  position: relative;
  z-index: 20;
}



/* main-nav(第二層header)的LOGO置中(for後台) */
/*參照style.css的4.0 Page Header*/

/* === Featured Links：四欄 + 標題覆蓋層 === */
/* 容器以 flex 排列 */
body.home #featured-links{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: stretch !important;
}

/* 每個項目：四欄、行距 */
body.home #featured-links .featured-link{
  position: relative;
  overflow: hidden;
  float: none !important;
  width: 24% !important;              /* 4 欄 */
  margin: 0 0 20px 0 !important;      /* 行距 */
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* 圖片：等比例顯示，不裁切 */
body.home #featured-links .featured-link img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  position: relative;
  z-index: 1;
}

/* 標題覆蓋層：固定顯示在底部，附淡黑漸層確保可讀性 */
body.home #featured-links .featured-link .cv-outer{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;   /* 取代 inset:0 */
  display: flex;
  align-items: flex-end;                  /* 文字貼底 */
  justify-content: center;
  opacity: 1 !important;                  /* 永遠顯示 */
  visibility: visible !important;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
  pointer-events: none;                    /* 不擋點擊 */
  z-index: 2;
}
body.home #featured-links .cv-inner h6{
  margin: 0;
  padding: 8px 10px;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}

/* 平板：兩欄 */
@media (max-width: 1024px){
  body.home #featured-links .featured-link{ width: 48% !important; }
}

/* 手機：單欄 */
@media (max-width: 600px){
  body.home #featured-links .featured-link{ width: 100% !important; }
}

/* 想改成「滑過才顯示」：把上面 .cv-outer 的 opacity:1 改成 0，
   並解除下面一行的註解即可 */
/* body.home #featured-links .featured-link:hover .cv-outer{ opacity: 1 !important; } */

/* Slider 與 Featured Links 之間的 Banner */
/* 去掉 Slider 與 Featured Links 之間 Banner 的上下留白 */
#between-banner{ 
  margin: 0 !important; 
  padding: 0 !important;
}
#between-banner.boxed-wrapper{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#between-banner img{
  display: block;
  width: 80%;
  height: auto;
  margin: 0 !important;      /* 圖片自身不留白 */
}

/* 把相鄰區塊的縫隙也收掉（兩條擇一都加最穩） */
#featured-slider, .featured-slider{ margin-bottom: 0 !important; }
#between-banner + #featured-links{ margin-top: 0 !important; }



/* Footer 內部上下空間 */
#page-footer .page-footer-inner {
    padding-top: 40px;
    padding-bottom: 40px;
}
/* ------------------------------
   Footer 右側（ABOUT / SERVICE 兩欄）
--------------------------------*/

/* 右側整塊靠右 */
.footer-right-block {
    float: right;
}

/* 兩欄橫排 */
.footer-right-block .footer-columns {
    display: flex;
}

/* 每欄 */
.footer-right-block .footer-col {
    min-width: 180px;
    margin-right: 60px; /* ← 用 margin-right 取代 gap */
}

/* 最後一欄不要多餘空白 */
.footer-right-block .footer-col:last-child {
    margin-right: 0;
}

/* 標題（ABOUT / SERVICE） */
.footer-right-block .footer-col-title {
	  font-size: 14px ;
    letter-spacing: 2px ;
    font-weight: 600 ;
    margin-bottom: 14px ;
    text-transform: uppercase ;
    color: #555 ;
}

/* 列表樣式 */
.footer-right-block .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-right-block .footer-col ul li {
    margin-bottom: 10px;
}

.footer-right-block .footer-col ul li a {
    color: #999 !important;  
    text-decoration: none;
    font-size: 13px;
		font-weight: 400;
}

.footer-right-block .footer-col ul li a:hover {
    color: #666;
}

/* 手機版：改縱向排列 */
@media (max-width: 768px) {
    .footer-right-block {
        float: none;
        margin-top: 20px;
    }

    .footer-right-block .footer-columns {
        flex-direction: column;
    }

    .footer-right-block .footer-col {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-right-block .footer-col:last-child {
        margin-bottom: 0;
    }
}

/* ------------------------------
   Footer 右側（完）
--------------------------------*/

/* ------------------------------
   Footer 左側（ICON,聲明,SNS按鈕等）
--------------------------------*/

/* 左側 Logo 文字 */
.footer-copyright .credit .footer-logo {
    font-size: 20px;        /* 比子項目大、接近 Logo 感 */
    font-weight: 600;
    letter-spacing: 2px;    /* 拉開字距，看起來更像 LOGO */
    margin-bottom: 10px;    /* 與聲明保持間距 */
    color: #333;            /* 比聲明文字深，使 Logo 更突出 */
}

/* 左邊：聲明 + SNS 對齊調整 */
.footer-copyright .credit {
		margin-left: 25px; /* 想移多少改這裡 */
    display: flex;
    flex-direction: column;   /* 文字在上、icon 在下 */
    align-items: flex-start;  /* 全部靠左對齊 */
		color: #999 ;
}

/* SNS 區塊本體 */
.footer-copyright .credit .top-bar-socials {
    margin-top: 8px;          /* 跟上方聲明拉一點間距 */
    display: flex;            /* icon 橫向排 */
    float: none;              /* 把主題原本可能的 float:right 清掉 */
    text-align: left;         /* 保險起見再設一次靠左 */
		color: #999 ;
}

/* SNS icon 之間的間距 */
.footer-copyright .credit .top-bar-socials a {
    margin-right: 8px;
		color: #999 !important;
}

.footer-copyright .credit .top-bar-socials a:last-child {
    margin-right: 0;
}

/* SNS icon hover（略深一些） */
.footer-copyright .credit .top-bar-socials a:hover {
    color: #666 !important;
}

/* ------------------------------
   Footer 左側（完）
--------------------------------*/

/* ------------------------------
   分頁商品表格 itemTable
--------------------------------*/
/* 外層寬度：跟內容區一致 */
.itemTable{
  max-width: var(--wp--style--global--content-size, 1000px);
  margin: 24px auto;
}

/* ✅ 讓整個表格有「卡片感」+ 圓角 */
.itemTable table{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;

  border-radius: 12px;     /* 圓角 */
  overflow: hidden;        /* ⭐ 重要：讓底色一起被圓角裁切 */
  background: transparent;

  font: inherit;
  color: inherit;
}

/* 儲存格：也都繼承 */
.itemTable th,
.itemTable td{
  padding: 14px 18px;
  border: 0;
  vertical-align: top;

  font: inherit;                     /* ⭐ 確保 th/td 不被瀏覽器預設字重影響 */
  color: inherit;
}

/* 左欄：底色 + 稍微強調 */
.itemTable th{
  background: rgba(0,0,0,.05);       /* 有底色但不突兀（會跟主題自動融合） */
  font-weight: 600;
  text-align: left;
}

/* 右欄：非常淡的底色，避免像沒邊框 */
.itemTable td{
  background: rgba(0,0,0,.025);  /* 右欄更淡 */
  line-height: 1.75;
}

/* 分隔：不用硬線框，改淡淡分隔 */
.itemTable tr + tr th,
.itemTable tr + tr td{
  box-shadow: inset 0 1px 0 rgba(0,0,0,.08);
}

/* 手機 */
@media (max-width: 600px){
  .itemTable{ max-width: 92%; }
  .itemTable th, .itemTable td{ padding: 12px 14px; }
}


/* ------------------------------
   分頁商品表格 itemTable End
--------------------------------*/