@charset "utf-8";

/* ========================================
   最新消息
======================================== */

.newsbox{
 position: relative;
 width: 100%;
 height: auto;
	
 overflow-x: clip;
	
padding: 1% 0;
}

/*NEWS 大標題*/
.news-heading {
  width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.news-title {
  margin: 0 0 15px;
  color: #342b29;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

/* NEWS 下方裝飾圖片 */
.news-title-decoration {
  display: block;
  width: 420px;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
}

/* MORE 文字 */
.more-text {
  white-space: nowrap;
}


/* 中間長線 */
.more-line {
  width: 80px;
  height: 1.5px;

  background-color: currentColor;

  transform: translateX(10px);
  transform-origin: right center;

  flex-shrink: 0;

  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}


/* MORE 箭頭 */
.more-arrow {
  display: block;

  width: 14px;
  height: auto;

  filter: none;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}


/* 滑鼠移上去：文字變色 */
.more-link:hover {
  color: #b89a62;
}


/* 線消失 */
.more-link:hover .more-line {
  width: 0;
  opacity: 0;
}


/* 箭頭往 MORE 靠近 */
.more-link:hover .more-arrow {
  transform: translateX(-8px);

  filter:
    brightness(0)
    saturate(100%)
    invert(67%)
    sepia(21%)
    saturate(693%)
    hue-rotate(356deg)
    brightness(91%)
    contrast(85%);
}

/*  最新消息外層-NEW */
.news-area {
  display: grid;
  width: 100%;
}

/* 兩層疊在同一格 */
.news-bg-decoration,
.news-section {
  grid-area: 1 / 1;
}

/* 背景圖層 */
.news-bg-decoration {
  display: grid;
  place-items: center;

  width: 100%;
  height: 0;

  overflow: visible;

  pointer-events: none;
  z-index: 0;
}

.news-bg-decoration img {
  display: block;

  width: 1000px;
  max-width: 100%;
  height: auto;

  transform: translate(800px, 200px);
}

/* NEWS 本體維持原本 */
.news-section {
  width: 100%;
  max-width: 960px;

  margin: 0 auto;
  padding: 2% 0;

  z-index: 1;
}

.tabbox {
  width: 100%;
}


/* 分類選單 */
.menubar {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 0px; /* 小標彼此間距 */

  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Noto Serif TC", serif;

  list-style: none;

  /* 跟下面表格的距離 */
  margin-bottom: 35px;
}

.menubar li {
  flex: none;

  margin: 0;
  padding: 0;

  text-align: center;
}

.menubar li a {
  display: block;

  min-width: 100px;
  padding: 2px 40px;

  color: #422c16;
  background-color: transparent;

  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  font-family: "Noto Serif TC", serif;

  cursor: pointer;
  box-sizing: border-box;
}

.menubar li a:hover,
.menubar li a.is-active {
  color: #ffffff;
  background-color: #c9ad9d;
}

/* 預設隱藏全部內容 */
.tab-content {
  display: none;
}

/* 只顯示目前選中的內容 */
.tab-content.is-active {
  display: block;
}

/* 消息表格 */
.tab-content table {
  width: 100%;

  border-collapse: collapse;
  table-layout: fixed;
}

.tab-content tr {
  height: 78px;

  border-bottom: 1px solid rgba(66, 44, 22, 0.5);
}

.tab-content td {
  vertical-align: middle;
}

/* 第一欄：分類 */
.tab-content td:nth-child(1) {
  width: 15%;

  text-align: center;
  color: #422c16;
}

/* 第二欄：消息標題 */
.tab-content td:nth-child(2) {
  width: 65%;

  text-align: left;
}

/* 第三欄：日期 */
.tab-content td:nth-child(3) {
  width: 20%;

  text-align: right;
  color: #422c16;
}


/* 消息分類標籤 */
.list_tag {
  display: inline-block;

  margin: 0;
  padding: 6px 12px;

  color: #422c16;

  font-size: 20px;
  font-weight: 600;
  font-family: "Noto Serif TC", serif;
  white-space: nowrap;
}

/* 消息標題連結 */
.tab-content td:nth-child(2) a {
  display: block;

  overflow: hidden;

  color: #422c16;

  font-size: 20px;
  font-weight: 600;
  font-family: "Noto Serif TC", serif;
  text-decoration: none;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.tab-content td:nth-child(2) a:hover {
  opacity: 0.6;
}

/* 日期 */
.date_m {
  margin: 0;

  color: #422c16;
  font-size: 18px;
  font-weight: 600;
  font-family: "Noto Serif TC", serif;
  white-space: nowrap;
}

/* 查看更多 */
.notice_more {
  margin-top: 28px;
  text-align: right;
}

.notice_more a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;

  gap: 12px;

  width: 180px;

  padding: 0;

  color: #422c16;
  background: none;

  font-size: 22px;
  font-weight: 700;
  text-decoration: none;

  transition: color 0.3s ease;
}

.notice_more a:hover {
  color: #b89a62;
}

.notice_more a:hover .more-line {
  width: 0;
  opacity: 0;
}

/* ========================================
   NEWS分頁
======================================== */
/* logo */
.back-home {
  position: absolute;
  top: -1%;
  left: 1%;
  width: 10%;
	
  z-index: 2;
  pointer-events: auto;
}

.back-home img {
  display: block;
  width: 100%;
  height: auto;
}

/* 內容背景 */
.news-detail-content {
  width: 100%;

  padding: 45px 55px;

  background-color: rgba(255, 255, 255, 0.55);

  border: 1px solid rgba(120, 90, 65, 0.25);

  box-sizing: border-box;
}

.news-pagination {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;

  width: 100%;
  margin-top: 45px;

  align-items: center;
}


/* 上一頁 / 下一頁 */
.page-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 0;

  color: #422c16;
  background: none;

  font-size: 20px;
  font-weight: 700;
  text-decoration: none;

  transition: color 0.3s ease;
}

.page-prev {
  justify-self: start;
}

.page-next {
  justify-self: end;
}

.page-text {
  white-space: nowrap;
}


/*  中間長線 */
.page-line {
  display: block;

  width: 50px;
  height: 1px;

  background-color: currentColor;

  flex-shrink: 0;

  transform: scaleX(1);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* 上一頁：線往左邊縮 */
.page-prev .page-line {
  transform-origin: left center;
}


/* 下一頁：線往右邊縮 */
.page-next .page-line {
  transform-origin: right center;
}


/* 箭頭 */
.page-arrow {
  display: block;

  width: 12px;
  height: auto;

  flex-shrink: 0;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

/* 上一頁箭頭反轉 */
.page-arrow-prev {
  transform: scaleX(-1);
}

/* 文字變色 */
.page-button:hover {
  color: #b89a62;
}

/* 線視覺上消失，但實際寬度還保留 */
.page-button:hover .page-line {
  transform: scaleX(0);
  opacity: 0;
}

/* 下一頁：文字往右移 */
.page-next:hover .page-text {
  transform: translateX(50px);
}

/* 上一頁：文字往左移 */
.page-prev:hover .page-text {
  transform: translateX(-50px);
}

/* 下一頁箭頭靠近文字 */
.page-next:hover .page-arrow-next {
  transform: translateX(-8px);
}

/* 上一頁箭頭靠近文字 */
.page-prev:hover .page-arrow-prev {
  transform: scaleX(-1) translateX(-8px);
}

.page-text {
  white-space: nowrap;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* 箭頭一起變成金咖啡色 */
.page-button:hover .page-arrow {
  filter:
    brightness(0)
    saturate(100%)
    invert(67%)
    sepia(21%)
    saturate(693%)
    hue-rotate(356deg)
    brightness(91%)
    contrast(85%);
}

.page-button.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.4;
}

/* 頁碼整組 */
.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 16px;

  width: 100%;
  margin: 0 auto 0;

  white-space: nowrap;
}


/* 單一頁碼 */
.page-number {
  display: inline-block;

  min-width: 18px;

  color: #422c16;

  font-size: 24px;
  font-weight: 700;

  text-align: center;
  text-decoration: none;

  transition: color 0.2s ease;
}


/* 滑鼠移上去 */
.page-number:hover {
  color: #b89a62;
}


/* 目前所在頁面 */
.page-number.is-active {
  color: #b89a62;
  text-decoration: underline;
}

/* ========================================
   新聞詳細內容框
======================================== */

/* 內容內層 */
.news-detail-inner {
  padding: 45px 55px 55px;
}


/* 日期 */
.news-detail-date {
  margin: 0 0 12px;

  color: #806b5b;

  font-size: 18px;
  font-weight: 600;

  line-height: 1;
}


/* 新聞標題 */
.news-detail-title {
  margin: 0;

  color: #443b37;

  font-size: 24px;
  font-weight: 700;
  font-family: "Noto Serif TC", serif;

  line-height: 1.5;
}


/* 標題下方細線 */
.news-detail-divider {
  width: 100%;
  height: 1px;

  margin: 20px 0 30px;

  background-color: #bda58d;
}

.news-detail-divider img{width:100%; margin: 0 5%}


/* 新聞內文 */
.news-detail-text {
    color: #4c4440;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 600;
    font-family: "Noto Serif TC", serif;
    text-align: left;
    overflow-wrap: anywhere;
}

/* 每一段 */
.news-detail-text p {
  margin: 0 0 24px;
}


.news-detail-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   手機/ipad
======================================== */
@media (max-width: 768px){
	
.newsbox{    
position: relative;
align-items: center;
min-height: 50px;
margin:auto;
}

	
/*主頁 */
.news-area {
display: block;
  width: 100%;
}

.news-title {
  font-size: 35px;
}
	
.news-section {
  padding: 5%;
  width: 100%;
}
	
.menubar li a {
  min-width: 40px;
  padding: 2px 17px;
  font-size: 18px;
}
	
/* 消息分類標籤 */
.list_tag {
  padding: 6px 2px;
  font-size: 16px;
}

/* 消息標題連結 */
.tab-content td:nth-child(2) a {
  font-size: 16px;
}

/* 日期 */
.date_m {
  font-size: 14px;
}
	
/* 中間長線 */
.more-line {
  width: 50px;
  height: 1.5px;
}
	
/* ---NEWS分頁--- */
/* logo */
.back-home {
  position: relative;
  left: 5%;
  width: 40%;
}
	
/* 第二欄：消息標題 */
.tab-content td:nth-child(2) {
  width: 45%;
}
	
/* 內容背景 */
.news-detail-content {
 padding: 20px 30px;
}
	
/* ---新聞詳細內容框--- */
.news-detail-inner {
  padding: 40px 10px 10px;
}

  .news-pagination {
	margin-top: 0;
    padding: 30px 0 15px;
    grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
  }

  .page-button {
    min-width: 0;
    font-size: 15px;
    gap: 4px;
  }

  .page-line {
    width: 25px;
  }
	
	/* 頁碼整組 */
	.page-numbers {
	  gap: 10px;
	}

	.page-number {
  font-size: 18px;
  } 

/*手機板範圍 */