@charset "UTF-8";
/* 測試畫面用

body::before{
  content:"<768 mobile";
  position:fixed;
  top:10px;
  left:10px;
  background:black;
  color:white;
  padding:6px 10px;
  font-size:14px;
  z-index:9999;
}


@media (min-width:768px){
  body::before{
    content:"768–1023 ipad";
  }
}


@media (min-width:1024px){
  body::before{
    content:"1024–1279 little-desktop";
  }
}


@media (min-width:1280px){
  body::before{
    content:"1280–1599 desktop";
  }
}


@media (min-width:1600px){
  body::before{
    content:"1600+ large desktop";
  }
}
*/

html{
  font-size: 16px;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  background-color: #eeeeee;
}

a {
  text-decoration: none; /* 移除底線 */
  color: inherit;/* 跟隨父元素顏色，不變色 */
}

p{ /* 裝飾英文 */
  font-family: "Cormorant Infant", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.2;
  hyphens: auto;/* 自動英文斷字 */
  color: #4d4d4d;
}

h1,h2{
  font-family: "Noto Serif TC", serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #4d4d4d;
}

h3,h4{
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #4d4d4d;
}

h1{ /* 中文主標 */
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
}
h2{/* 中文副標 */
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
}
h3{
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 2;
}
h4{
  font-size: 0.55rem;
  font-weight: 300;
}
h5{
  font-size: 0.4rem;
  font-weight: 300;
}

img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== 漢堡按鈕 ===== */
.burger {
  position: fixed;
  top: 32px;
  right: 28px;
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform .35s ease, opacity .35s ease;
}
/* 隱藏狀態 */
.burger.hide{
  transform: translateY(-120%);
  opacity: 0;
}

.burger span {
  height: 2px;
  width: 100%;
  background: #222;
  transition: .4s ease;
  transform-origin: center;
}

/* 變成 X */
.burger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
/* ===== 全畫面目錄 ===== */
.menu {
  position: fixed;
  inset: 0;
  background: rgba(245, 245, 243, .96);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  z-index: 1000;
}

.menu.show {
  opacity: 1;
  pointer-events: auto;
}

.menu-inner {
  margin-top: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-list li {
  margin: 50px 0;
}
.menu-list li img {
  width: 30%;
  margin: auto auto;
}

.menu-list a {
  letter-spacing: 2px;
  color: #222;
  text-decoration: none;
  transition: opacity .3s ease;
  display:block;
}

.menu-list a:hover {
  opacity: .5;
}

/* 動態部分 */


/* 動態部分-淡入 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
}
.fade-in.show {
  animation: fadeIn 1.3s ease-out forwards;
  animation-delay: 0.3s;
}

/* 動態部分-文字向上浮現 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
}
.fade-up.show {
  animation: fadeInUp 1.5s ease-out forwards;
}

/* 動態部分-文字向下浮現 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-down {
  opacity: 0;
}
.fade-down.show {
  animation: fadeInDown 1s ease-out forwards;
}

/* 動態部分-文字向右浮現 */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-right {
  opacity: 0;
}
.fade-right.show {
  animation: fadeInRight 1.5s ease-out forwards;
}

/* 動態部分-文字向左浮現 */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-left {
  opacity: 0;
}
.fade-left.show {
  animation: fadeInLeft 1.5s ease-out forwards;
}

/* 動態部分-圖片縮放淡入 */
@keyframes zoomFadeIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-fade {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* 保持比例填滿 */
  opacity: 0;
}

.zoom-fade.show {
  animation: zoomFadeIn 1.5s ease-out forwards;
}

@keyframes heroZoom {
  from {
    background-size: 115%;
  }
  to {
    background-size: cover;
  }
}

/* ------------------------------------------------- */

/* 平板專用樣式 */
 @media (min-width: 768px) and (max-width: 1023px){
    p{ /* 裝飾英文 */
      font-size: 0.85rem;
      line-height: 1.2;
    }
    h1{ /* 中文主標 */
      font-size: 1.8rem;
    }
    h2{/* 中文副標 */
      font-size: 1.8rem;
    }
    h3{
      font-size: 1.1rem;
    }
    h4{
      font-size: 0.8rem;
    }
    h5{
      font-size: 0.4rem;
    }
 }

  /* ------------------------------------------------- */

  /* 桌機小螢幕（含 iPad 橫向）優化樣式 */
  @media (min-width: 1024px) and (max-width: 1279px) {
    p{ /* 裝飾英文 */
      font-size: 0.85rem;
      line-height: 1.2;
    }
    h1{ /* 中文主標 */
      font-size: 1.8rem;
    }
    h2{/* 中文副標 */
      font-size: 1.3rem;
    }
    h3{
      font-size: 0.95rem;
    }
    h4{
      font-size: 0.8rem;
    }
    h5{
      font-size: 0.4rem;
    }
  }

  /* ------------------------------------------------- */
    
  /* 一般桌機 */
  @media (min-width: 1280px) and (max-width: 1599px){
    p{ /* 裝飾英文 */
    font-size: 1rem;
    line-height: 1.3;
    }
    h1{ /* 中文主標 */
      font-size: 2rem;
      line-height: 1.3;
    }
    h2{/* 中文副標 */
      font-size: 1.7rem;
    }
    h3{
      font-size: 1.1rem;
    }
    h4{
      font-size: 0.8rem;
    }
    h5{
      font-size: 0.4rem;
    }

  }

  /* ------------------------------------------------- */

  /* 大螢幕專用樣式 */
  @media (min-width: 1600px) {
    p{ /* 裝飾英文 */
    font-size: 1rem;
    line-height: 1.3;
    }
    h1{ /* 中文主標 */
      font-size: 2rem;
      line-height: 1.3;
    }
    h2{/* 中文副標 */
      font-size: 1.7rem;
    }
    h3{
      font-size: 1.1rem;
    }
    h4{
      font-size: 0.8rem;
    }
    h5{
      font-size: 0.4rem;
    }

  }
