@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');

body {
  margin: 0;
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'Arial', 'sans-serif';
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  text-align: left;
  background-color: #fff;
}
/* "Helvetica",  */

.mapFlex {
  display: flex;
  justify-content: space-between;
}

.mapFlex .mapFlexItem {
  width: 48%;
}

/* breadcrumbs */
.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.breadcrumb-item,
.breadcrumb-itemlike {
  display: inline;
  list-style: none;
  position: relative;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 12px;
  color: #9d9da0;
}

.breadcrumb-item + .breadcrumb-item::before {
  border-right: 1px solid #7a7a7a;
  border-top: 1px solid #7a7a7a;
  content: '';
  height: 8px;
  width: 8px;
  left: -8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.breadcrumb-itemlike::before {
  border-right: 1px solid #7a7a7a;
  border-top: 1px solid #7a7a7a;
  content: '';
  height: 8px;
  width: 8px;
  left: -8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.breadcrumb-item a {
  text-decoration: none;
  color: #3c3c43;
}

.breadcrumb-itemlike.active {
  color: #9a9a9a;
}

.breadcrumb-itemlike a {
  color: #9a9a9a;

  pointer-events: none;

  cursor: default;
}

/* 主視覺 */
.kv_wrapper {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* .pc {
    display: block !important;
} */
.mb {
  display: none !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.header_title {
  font-size: 36px;
  line-height: 1.6;
  font-weight: 900;
  /* letter-spacing: 3px; */
  text-align: left;
}

.exhibition_title {
  font-size: 42px;
  line-height: 1.6;
  font-weight: 900;
  letter-spacing: 3px;
}

.exhibition_text {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  padding: 0 0 10px;
}

.title_box h1 {
  font-size: 32px;
  font-weight: 900;
}

.title_box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 10px;
}

.title_box h3 {
  font-size: 18px;
  font-weight: 700;
  /* margin-bottom: 15px; */
  margin: 15px 0 0px 0;
  padding: 5px 0;
  text-align: justify;
}

.title_box p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-top: 5px;
  font-weight: 400;
}

.name_title {
  font-size: 24px;
  font-weight: 700;
}

.contents_title span {
  font-size: 16px;
  font-weight: 400;
}

.contents_title {
  display: flex;
  align-items: center;
  font-size: 26px;
  border-left: 4px solid #222;
  font-weight: 700;
  padding-left: 10px;
  height: 25px;
}

.item_title {
  font-size: 22px;
  font-weight: 700;
  margin-block-end: 0;
}

.item_title span {
  font-size: 14px;
  font-weight: 400;
  /* padding-left: 20px; */
}

.item_text {
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  border-top: 1px solid #222;
  padding-top: 15px;
  padding-bottom: 15px;
}

.flexList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px 10px;
}

.flexList .flexItem {
  width: calc((100% - 20px) / 2);
}

.flexList .flexItem img {
  width: 100%;
}

.map_title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.map_text {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 15px;
  list-style: none;
}

.line {
  padding: 10px;
  border-top: 1px solid #999;
  margin-top: 50px;
}

.button {
  margin: 0 auto;
  font-size: 28px;
  font-weight: 700;
  padding: 8px 15px;
  color: #222;
  border: 1px solid #222;
}

.button a {
  color: #222;
  font-size: 24px;
}

.button a:hover {
  opacity: 0.5;
  transition: all 0.5s;
}

.people-img {
  width: 120px;
  min-width: 100%;
}

.com-flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 兩欄 */
  gap: 15px; /* 統一上下左右空隙 */
}

.com-flex .com-item img {
  width: 100%;
  display: block;
}

.mapBlock {
  display: block;
}

.mapFlex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.mapFlex .mapFlexItem {
  width: 48%;
  margin-bottom: 15px;
}

.mapFlex .mapFlexItem a {
  text-decoration: underline;
  transition: all 0.3s;
}

.mapFlex .mapFlexItem a:hover {
  color: #999;
}

.mapFlex iframe {
  height: 250px;
}
/* ===== endangered-grid 區塊 ===== */
.endangered-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 卡片 */
.endangered-grid .grid-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

/* 圖片 */
.endangered-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.6s ease;
}

/* hover 圖片微放大（無印感 subtle） */
.endangered-grid .grid-item:hover img {
  transform: scale(1.05);
}

/* ===== 預設 label（白底） ===== */
.endangered-grid .label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;

  color: #000;
  background: #fff;
  width: 90%;

  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 7px 0px;

  border-radius: 999px; /* 膠囊 */

  z-index: 2;

  /* ✨ 重點：浮起來的感覺 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* ===== overlay 黑色漸層 ===== */
.endangered-grid .overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));

  display: flex;
  align-items: flex-end;
  padding: 16px;

  opacity: 0;

  transition: opacity 0.35s ease;
}

/* ===== 推上來的文字動畫 ===== */
.endangered-grid .overlay p {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.5px;

  transform: translateY(24px); /* 初始往下藏 */
  opacity: 0;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;

  transition-delay: 0.05s;
}

/* ===== hover 狀態 ===== */
.endangered-grid .grid-item:hover .overlay {
  opacity: 1;
}

.endangered-grid .grid-item:hover .overlay p {
  transform: translateY(0); /* 往上推出來 */
  opacity: 1;
}

.endangered-grid .grid-item:hover .label {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

/* ===== recycle-cycle-section ===== */
.recycle-cycle-section {
  background: #f0f4ed; /* 無印偏暖灰 */
  border-radius: 20px;
  padding: 40px 48px;
}

/* 內層排版 */
.recycle-cycle-section .cycle-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ===== 左文字 ===== */
.recycle-cycle-section .cycle-text {
  flex: 1;
  max-width: 420px;
}

.recycle-cycle-section .cycle-text h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #000;
}

.recycle-cycle-section .cycle-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

/* ===== 右圖 ===== */
.recycle-cycle-section .cycle-image {
  flex: 1;
  text-align: center;
}

.recycle-cycle-section .cycle-image img {
  max-width: 570px;
  width: 100%;
  height: auto;
}

/* ===== product-highlight ===== */
.product-highlight {
  background: #f0f4ed; /* 淡綠灰（接近設計稿） */
  padding: 32px 0px;
}

/* 內層 */
.product-highlight .product-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;

  max-width: 1000px;
  margin: 0 auto;
}

/* 左圖群 */
.product-highlight .product-images {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.product-highlight .product-images img {
  width: 350px;
  height: auto;
  object-fit: contain;

  transition: transform 0.4s ease;
}

/* 微錯位（設計感） */
.product-highlight .product-images img:nth-child(2) {
  transform: translateY(10px);
}

.product-highlight .product-images img:nth-child(3) {
  transform: translateY(20px);
}

/* hover 微動 */
.product-highlight .product-images img:hover {
  transform: translateY(0) scale(1.05);
}

/* 右文字 */
.product-highlight .product-content {
  max-width: 420px;
}

.product-highlight .product-content h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-highlight .product-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
}

/* 連結 */
.product-highlight .product-link {
  font-size: 16px;
  color: #000;
  text-decoration: none;
}

/* hover */
.product-highlight .product-link:hover {
  opacity: 0.7;
}

.endangered-intro {
  display: block;
  padding: 20px;
  text-decoration: none;
  width: 40%;
  margin: 64px auto;
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f5f5;
  padding: 16px 20px;
}

/* 左圖 */
.intro-image {
  flex: 0 0 120px;
}

.intro-image img {
  width: 100%;
  display: block;
}

/* 文字 */
.intro-content {
  flex: 1;
}

.intro-title {
  font-size: 16px;
  font-weight: 800;
  color: #000;
  margin-bottom: 0px;
}

.intro-text {
  font-size: 15px;
  line-height: 1.6;
  color: #3c3c43;
  margin: 0;
}

/* 右箭頭 */
.intro-arrow {
  font-size: 24px;
  color: #999;
  margin-left: auto;
  margin-top: 5px;
}

/* hover（無印微互動） */
.endangered-intro:hover .intro-arrow {
  transform: translateX(4px);
  transition: 0.2s;
}

.store-info,
.store-info h3 {
  color: #0f2841 !important;
}

.store-info .mapBlock h3 {
  font-size: 16px;
}

.store-info .mapBlock span {
  border-bottom: 1px solid;
}

/* ===== RWD ===== */
@media (max-width: 1024px) {
  .endangered-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RWD ===== */
@media (max-width: 768px) {
  .recycle-cycle-section {
    padding: 32px 20px;
  }

  .recycle-cycle-section .cycle-inner {
    flex-direction: column;
    text-align: left;
    gap: 24px;
  }

  .recycle-cycle-section .cycle-image img {
    max-width: 300px;
  }

  .product-highlight {
    padding: 40px 20px;
  }

  .product-highlight .product-inner {
    flex-direction: column;
    gap: 32px;
    text-align: left;
  }

  .product-highlight .product-images {
    justify-content: center;
  }
}

@media screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }

  .mb {
    display: block !important;
  }

  .contents_title {
    display: flex;
    align-items: center;
    font-size: 20px;
    border-left: 4px solid #222;
    font-weight: 700;
    padding-left: 10px;
    height: 20px;
  }

  .contents_title span {
    font-size: 15px;
  }

  .people-img {
    width: 100px;
  }

  .header_title {
    font-size: 7.2vw;
  }

  .exhibition_title {
    font-size: 32px;
  }

  .exhibition_title span {
    display: block;
  }

  .exhibition_text {
    font-size: 17px;
    line-height: 1.6;
  }

  .item_title {
    font-size: 5.4vw;
    margin-top: 0;
  }

  .exhibition_text {
    font-size: 16px;
    line-height: 1.6;
  }

  .item_text {
    font-size: 16px;
    padding-bottom: 40px;
  }

  .button {
    font-size: 24px;
    padding: 6px 10px;
  }

  .arrow {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .endangered-intro {
    width: 100%;
  }

  .endangered-grid {
    grid-template-columns: 1fr;
  }
  .endangered-grid .overlay {
    opacity: 1;
    padding: 16px 16px 60px;
  }

  .endangered-grid .overlay p {
    transform: translateY(80%);
    opacity: 1;
    font-size: 16px;
  }

  .endangered-grid .label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    bottom: 25%;
    z-index: 3;
  }

  .endangered-grid .grid-item:hover img {
    transform: none;
  }

  .endangered-grid .grid-item:hover .label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .endangered-grid .overlay {
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0)); */
  }
}

/* swiper */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: 'next';
  background-color: #fff;
  padding: 5px;
  opacity: 0.5;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: 'prev';
  background-color: #fff;
  padding: 5px;
  opacity: 0.5;
}

:root {
  --swiper-theme-color: #000000;
}

/* =====================
  動態
===================== */
.js_fade-in {
  opacity: 0;
  transition: all 1000ms;
  transform: translate(0, 35px);
}

.js_fade-in.js_slow {
  transition: all 1400ms;
}

.js_fade-in.js_fast {
  transition: all 600ms;
}

.js_fade-in.js_scrollin {
  opacity: 1;
  transform: translate(0, 0);
}

@media screen and (max-width: 767px) {
  .js_fade-in {
    transform: translate(0, 20px);
  }

  .js_fade-in.js_slow {
    transition: all 1000ms;
  }

  .js_fade-in.js_fast {
    transition: all 1000ms;
  }
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.8rem !important;
}

@media screen and (max-width: 750px) {
  .flexList .flexItem {
    width: calc((100% - 0px) / 1);
  }
  .breadcrumb-itemlike::before {
    top: 25%;
  }

  .mapFlex {
    display: block;
  }

  .mapFlex .mapFlexItem {
    width: 100%;
    margin-bottom: 2rem;
  }
}
