/* ==========================================================================
   2026 高雄聖誕生活節
   ========================================================================== */

:root {
  --red: #e83930;
  --green: #0a543d;
  --yellow: #f6d33e;
  --cream: #fff9ed;
  --pink: #fce9df;
  --line: #d7ddcd;
  --gray: #68766a;

  --page-width: 1440px;
  --content-width: 1320px;
  --gutter: 80px;

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--red);
}

.header__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--page-width) + 80px);
  height: 100px;
  margin: 0 auto;
  padding: 0 40px;
}

.header__logo { display: block; flex: none; }
.header__logo img { display: block; width: 250px;}

.nav { width: 689px; }

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav__item a {
  display: block;
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

/* hover：黃字；目前頁面：圓角黃色線框 */
.nav__item a:hover,
.nav__item a:focus-visible { color: #efd923; }
.nav__item.is-current a { color: #efd923; border-color: #efd923; }

.header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.header__toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s, top .25s;
}
.header__toggle span:nth-child(1) { top: 14px; }
.header__toggle span:nth-child(2) { top: 21px; }
.header__toggle span:nth-child(3) { top: 28px; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
}

/* 主視覺完整顯示不裁切：桌機 kv.jpg (16:9)、手機 kv_m.jpg (1:1) */
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}

/* 活動資訊速覽
   ========================================================================== */
.info {
  position: relative;
  z-index: 10;
  margin-top: -40px;
  margin-bottom: -40px;
  padding: 0 var(--gutter);
}

.info__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: var(--content-width);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 80px;
  border: 4px solid var(--yellow);
  border-radius: 20px;
  background: var(--green);
  line-height: normal;
  white-space: nowrap;
}

.info__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.info__item dt { color: var(--yellow); font-size: 16px; font-weight: 500; }
.info__item dd { font-size: 30px; font-weight: 900; }
.info__item--date dd { color: var(--yellow); }
.info__item--place dd { color: var(--cream); }

.info__divider {
  flex: none;
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .25);
}

/* 區塊標題
   ========================================================================== */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.section-title__eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2px;
}

.section-title__heading {
  color: var(--green);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.3;
}
.section-title__heading span { color: var(--red); }

/* 最新消息
   ========================================================================== */
.news {
  padding: 120px var(--gutter) 50px; /* 80px + 資訊速覽下半部 40px */
  background: var(--cream);
  scroll-margin-top: 0;
}

.news__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.news__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-bottom: 1px solid var(--line);
}

.news-card__img {
  overflow: hidden;
  aspect-ratio: 420 / 240;
}
.news-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card__title {
  margin: 15px 0 24px; /* 不用 padding：否則被截掉的第三行會露在底部內距裡 */
  color: var(--green);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 最多兩行，超出顯示⋯ */
  line-clamp: 2;
  overflow: hidden;
  transition: color .2s;
}

.news-card:hover .news-card__img img,
.news-card:focus-visible .news-card__img img { transform: scale(1.05); }
.news-card:hover .news-card__title,
.news-card:focus-visible .news-card__title { color: var(--red); }

.news__action {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* 行動按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 54px;
  padding: 0 24px;
  border-radius: 100px;
  background: var(--red);
  color: var(--cream);
  line-height: normal;
  white-space: nowrap;
  transition: background-color .2s;
}
.btn__text { font-size: 16px; font-weight: 700; }
.btn__arrow {
  font-family: "Inter", sans-serif;
  font-size: 23px;
  font-weight: 400;
  transition: transform .2s;
}
.btn:hover,
.btn:focus-visible { background: var(--green); }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translate(3px, -3px); }

/* 主協辦單位
   ========================================================================== */
.partners {
  padding: 56px var(--gutter) 64px;
  background: var(--pink);
}

.partners__wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.partners__heading {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 900;
}
.partners__heading img { flex: none; display: block; width: 30px; height: 30px; }
.partners__heading-text {
  color: var(--red);
  font-size: 32px;
  line-height: normal;
}
.partners__heading-text span { color: var(--green); }

.partners__row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.partners__label {
  flex: none;
  width: 110px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}

.partners__logos {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
  min-width: 0;
}

.partner-logo { display: flex; align-items: center; }
.partner-logo img { display: block; width: 220px; max-height: 48px; max-width: 100%; object-fit: contain; }

/* Footer
   ========================================================================== */
.footer {
  position: relative;
  padding-top: 80px;
  background-color: var(--pink);
}

.footer__wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: 70px max(60px, calc((100% - var(--content-width)) / 2)) 40px;
  background: var(--green);
}

/* 層級：綠底(最下) < 插圖 < 文字 */
.footer__logo,
.footer__nav,
.footer__note { position: relative; z-index: 2; }

.footer__logo { display: block; width: 250px; height: auto; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
}
.footer__nav a { transition: color .2s; }
.footer__nav a:hover,
.footer__nav a:focus-visible { color: var(--yellow); }

.footer__note {
  width: 100%;
  height: 32px;
  border-top: 1px solid rgba(255, 255, 255, .19);
}

/* 頁尾插圖 */
.footer__vision {
  position: absolute;
  top: 0;
  right: 60px;
  width: 537px;
  height: 307px;
  pointer-events: none;
  z-index: 1;
}
.footer__vision-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 537px;
  height: 307px;
  transform-origin: top right;
}

.fv { position: absolute; display: block; max-width: none; object-fit: cover; }
.fv--formosa { top: 121.5px; right: 335.23px; width: 109.772px; height: 97.728px; }
.fv--tree    { top: 0;       right: 147.75px; width: 241.887px; height: 265.712px; }
.fv--central { top: 147.5px; right: 0;        width: 151px;     height: 124px; }
.fv--station { top: 165.5px; right: 411.26px; width: 125.737px; height: 84.946px; }
.fv--gifts   { top: 169.63px; right: 118.52px; width: 149.809px; height: 132.371px; }
.fv--gift    { top: 200.5px; right: 341.08px; width: 117.915px; height: 99.774px; }

/* 內頁主視覺 page-KV
   ========================================================================== */
.page-kv {
  position: relative;
  padding: 0 40px;
}

/* 淺藍底 + 雪點（高度固定 320，插圖下緣會略為超出） */
.page-kv__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  overflow: hidden;
  background: rgba(216, 237, 241, .75);
  pointer-events: none;
}
.page-kv__bg img {
  position: absolute;
  top: var(--y);
  left: calc(50% - 960px + var(--x));
  display: block;
  width: 14px;
  height: 14px;
}

.page-kv__wrap {
  position: relative;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 30px 0 20px;
}

.breadcrumb {
  color: var(--gray);
  font-size: 13px;
  line-height: normal;
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--red); }

.page-kv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-kv__title {
  flex: 1;
  min-width: 0;
  max-width: 650px;
  margin-right: auto;
  color: var(--red);
  font-size: 72px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -2px;
  word-break: break-word;
  filter: drop-shadow(5px 5px 0 #fff) drop-shadow(5px 5px 0 #fff);
}
.page-kv__title span { color: var(--green); }

.page-kv__art {
  position: relative;
  flex: none;
  width: 793.5px;
  height: 300px;
}
.page-kv__art-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 793.5px;
  height: 300px;
  transform-origin: top left;
}

.kv { position: absolute; display: block; max-width: none; object-fit: cover; }
.kv--lights {
  top: 22.7px; left: 224.31px; width: 509.189px; height: 222.973px;
  overflow: hidden;
}
.kv--lights img {
  position: absolute;
  top: -.09%;
  left: -3.18%;
  display: block;
  width: 105.41%;
  max-width: none;
  height: 100.18%;
}
.kv--city         { top: 104.59px; left: 262.42px; width: 432.973px; height: 172.703px; }
.kv--airship      { top: 32px;     left: 673.5px;  width: 120px;     height: 73px; }
.kv--monkey-dance { top: 41px;     left: 110.5px;  width: 89px;      height: 130px; }
.kv--station      { top: 138px;    left: 546.5px;  width: 177px;     height: 145px; }
.kv--monkey-sing  { top: 144px;    left: 0;        width: 114px;     height: 139px; }
.kv--small-tree   { top: 118px;    left: 267.5px;  width: 123px;     height: 161px; --flip: scaleX(-1); transform: scaleX(-1); }
.kv--market       { top: 52px;     left: 431px;    width: 102px;     height: 52px; }
.kv--singer       { top: 117px;    left: 157.5px;  width: 129px;     height: 170px; }
.kv--tree         { top: 0;        left: 328.5px;  width: 273.243px; height: 300px; }

/* 閃耀星光 KV：標題單層白影、插圖組合不同 */
.page-kv__title--single { filter: drop-shadow(5px 5px 0 #fff); }

.page-kv__art--light { width: 774px; }
.page-kv__art--light .kv--lights  { left: 204.81px; }
.page-kv__art--light .kv--city    { left: 242.92px; }
.page-kv__art--light .kv--airship { left: 654px; }
.page-kv__art--light .kv--tree    { left: 309px; }
.kv--house-1 { top: 135px;    left: 529px;    width: 103.784px; height: 143.514px; --flip: scaleX(-1); transform: scaleX(-1); }
.kv--house-2 { top: 163px;    left: 163px;    width: 150px;     height: 115.946px; }
.kv--tower   { top: 69px;     left: 233.46px; width: 138px;     height: 208px;     --flip: scaleX(-1); transform: scaleX(-1); }
.kv--family  { top: 116.36px; left: 0;        width: 187.367px; height: 165.671px; --flip: scaleX(-1); transform: scaleX(-1); }

/* 聖誕市集 KV */
.page-kv__art--market { width: 690px; }
.page-kv__art--market .kv--lights  { left: 120.81px; }
.page-kv__art--market .kv--city    { left: 158.92px; }
.page-kv__art--market .kv--airship { left: 570px; }
.page-kv__art--market .kv--market  { left: 327.5px; }
.page-kv__art--market .kv--tree    { left: 225px; }
.kv--gb-house   { top: 141px; left: 486px; width: 169px; height: 156px; }
.kv--coffee-cup { top: 246px; left: 167px; width: 58px;  height: 51px; }
.kv--pizza      { top: 11px;  left: 0;     width: 183px; height: 247px; }
.kv--dog        { top: 190px; left: 233px; width: 77px;  height: 110px; }
.kv--cake       { top: 236px; left: 92px;  width: 63px;  height: 61px; }
.kv--gb-cake    { top: 193px; left: 406px; width: 83px;  height: 107px; }
.kv--gb-coffee  { top: 100px; left: 551px; width: 61px;  height: 65px; }

/* 最新消息 KV */
.page-kv__title--news {
  font-size: 70px;
  filter: drop-shadow(5px 5px 0 #fff) drop-shadow(4px 4px 2px #fff);
}

.page-kv__art--news { width: 706px; }
.page-kv__art--news .kv--lights  { left: 136.81px; }
.page-kv__art--news .kv--city    { left: 174.92px; }
.page-kv__art--news .kv--airship { left: 586px; }
.page-kv__art--news .kv--market  { left: 343.5px; }
.page-kv__art--news .kv--tree    { left: 241px; }
.kv--small-deco   { top: 201px; left: 485px; width: 138px; height: 76px; }
.kv--small-gift   { top: 238px; left: 67px;  width: 46px;  height: 62px; }
.kv--gift-2       { top: 193px; left: 195px; width: 126px; height: 107px; }
.kv--gifts-2      { top: 117px; left: 0;     width: 189px; height: 167px; }
.kv--small-people { top: 252px; left: 545px; width: 81px;  height: 48px; }
.kv--market-2     { top: 233px; left: 508px; width: 74px;  height: 38px; }

/* 最新消息列表頁
   ========================================================================== */
.news-page { padding: 50px var(--gutter); }

.news-page__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
}

.pager__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 100px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  transition: background-color .2s;
}
.pager__item:hover,
.pager__item.is-current { background: var(--pink); }

/* 最新消息內容頁
   ========================================================================== */
.detail { position: relative; display: block; }

/* 背景：高 320 的淺藍底，插圖下緣略為超出 */
.detail__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 335px;
  overflow: hidden;
  pointer-events: none;
}

.detail__deco { position: absolute; display: block; max-width: none; object-fit: cover; }
.detail__deco--family {
  top: 169px;
  left: calc(50% + 625.63px);
  width: 187.367px;
  height: 165.839px;
  --flip: scaleX(-1); transform: scaleX(-1);
}
.detail__deco--airship {
  top: 75px;
  left: calc(50% - 691px);
  width: 120px;
  height: 73px;
}

.detail__path {
  position: relative;
  max-width: calc(var(--page-width) + 80px);
  margin: 0 auto;
  padding: 30px 40px 20px;
}

.article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: calc(1080px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 50px var(--gutter);
}

.article__title {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--green);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.5;
  text-shadow: 5px 5px 0 #fff;
  word-break: break-word;
}
.article__title img { flex: none; display: block; width: 30px; height: 30px; }

.article__cover { min-height: 80px; }
.article__cover img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article__body {
  color: #3d3d3d;
  font-size: 17px;
  line-height: 1.8;
  word-break: break-word;
}
.article__body img { max-width: 100%; height: auto; }
.article__body a { color: var(--red); text-decoration: underline; }
.article__body p{margin-bottom: 20px;}

/* 圖片牆：三欄，上下左右間隔同為 20px */
.gallery { padding: 40px 0; }

.gallery__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 348 / 200;
  background: var(--line);
  cursor: zoom-in;
}
.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.05); }

.lightbox__caption { min-height: 40px; }
.main_con{
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.coming_title{
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}
.coming_title_en{
  font-size: 24px;
  font-weight: bold;
}


@media (max-width: 1500px) {
  .detail__deco { display: none; }
}

@media (max-width: 1200px) {
  .article__title { font-size: 32px; }
}

@media (max-width: 900px) {
  .detail__bg { height: 240px; }
  .detail__bg .page-kv__bg { height: 240px; }
  .detail__path { padding: 20px 20px 12px; }
  .article { padding-top: 24px; }
  .article__title { align-items: flex-start; gap: 12px; font-size: 32px; line-height: 1.35; text-shadow: 3px 3px 0 #fff; }
  .article__title img { margin-top: 7px; }
}

@media (max-width: 640px) {
  .news-page { padding-top: 36px; padding-bottom: 40px; }
  .news-page__wrap { gap: 28px; }
  .article { padding-bottom: 24px; }
  .article__title { font-size: 22px; }
  .article__title img { width: 24px; height: 24px; margin-top: 6px; }
  .article__cover{min-height: 40px;}
  .article__body { font-size: 16px; }
  .gallery { padding: 24px 0; }
  .gallery__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 24px; }
}

/* 市集店家 + 分頁
   ========================================================================== */
.shops { padding: 0 var(--gutter); }
.intro + .shops { padding-top: 50px; }

.shops__wrap {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 28px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  color: var(--green);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tabs__week { font-size: 16px; }
.tabs__btn:hover { border-color: var(--red); color: var(--red); }
.tabs__btn.is-active,
.tabs__btn.is-active:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.shops__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.shops__list[hidden] { display: none; }

.market-photo { width: 100%; max-width: 960px; }

.market-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--line);
}

/* 裝置作品列表
   ========================================================================== */
/* 活動說明 */
.intro { padding: 40px var(--gutter) 0; }
.intro__list {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 12px 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}
.intro__item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  line-height: 1.7;
}
.intro__item + .intro__item { border-top: 1px dashed var(--line); }
.intro__item dt {
  flex: none;
  width: 6em;
  color: var(--green);
  font-weight: 700;
}
.intro__item dd { flex: 1; min-width: 0; font-weight: 500; }

.works { padding: 50px var(--gutter); }

.works__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.work-card { display: block; cursor: zoom-in; }

/* 圖片統一 640:420，多餘部分裁切隱藏 */
.work-card__img {
  overflow: hidden;
  aspect-ratio: 640 / 420;
  background: var(--line);
}
.work-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.work-card__title {
  padding: 12px 0;
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
  line-height: normal;
  word-break: break-word;
  transition: color .2s;
}
.work-card__text{
  color: #000;
}

.work-card:hover .work-card__img img,
.work-card:focus-visible .work-card__img img { transform: scale(1.05); }
.work-card:hover .work-card__title,
.work-card:focus-visible .work-card__title { color: var(--red); }

/* 大圖彈出視窗
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 88px 32px;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox.is-open { display: flex; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox__img {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100vh - 72px - 32px - 60px);
  object-fit: contain;
  background: #000;
}

.lightbox__caption {
  flex: none;
  color: var(--cream);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8em;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font-family: "Inter", sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn img { display: block; width: 16px; height: 29px; }

/* 關閉按鈕：綠底、方形微圓角 */
.lightbox__close {
  top: 16px;
  right: 20px;
  border-radius: 6px;
  background: var(--green);
  transition: background-color .2s, color .2s;
}
.lightbox__close:hover,
.lightbox__close:focus-visible { background: var(--yellow); color: var(--green); }
.lightbox__prev { top: 50%; left: 20px; margin-top: -24px; }
.lightbox__next { top: 50%; right: 20px; margin-top: -24px; }

body.is-lightbox-open { overflow: hidden; }

/* 演出陣容
   ========================================================================== */
.lineup { padding: 0 var(--gutter) 80px; }

.lineup__wrap {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.lineup__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.artist-card { border-bottom: 1px solid var(--line); }

.artist-card__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 319.5px;
  overflow: hidden;
  color: var(--green);
  line-height: normal;
  text-align: center;
}
.artist-card__photo--pink   { background: #f3bfc9; }
.artist-card__photo--blue   { background: #b8dde8; }
.artist-card__photo--yellow { background: var(--yellow); }
.artist-card__photo img { flex: none; display: block; width: 60px; height: 60px; }
.artist-card__photo strong { font-size: 20px; font-weight: 700; }
.artist-card__photo span { font-size: 12px; }

.artist-card__name {
  padding: 15px 0 23px;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  line-height: normal;
  word-break: break-word;
}

/* 交通資訊
   ========================================================================== */
.traffic {
  padding: 64px var(--gutter);
  background: var(--pink);
}

.traffic__wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.traffic__content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.traffic__map {
  display: flex;
  flex: 0 1 744px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-width: 0;
  height: 370px;
  padding: 20px;
  border: 1px dashed var(--green);
  background: var(--cream);
  line-height: normal;
  text-align: center;
}
.traffic__map img { flex: none; display: block; width: 44px; height: 44px; }
.traffic__map strong { color: var(--green); font-size: 27px; font-weight: 900; }
.traffic__map p { color: var(--gray); font-size: 14px; }
.traffic__map small { color: var(--red); font-size: 12px; }

.traffic__info {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  word-break: break-word;
}
.traffic__item { display: flex; flex-direction: column; gap: 7px; }
.traffic__item dt { color: var(--green); font-size: 18px; font-weight: 700; line-height: normal; }
.traffic__item dd { color: var(--gray); font-size: 14px; line-height: 1.8; }

/* RWD
   ========================================================================== */
@media (max-width: 1480px) {
  .page-kv__title { font-size: 60px; }
  .page-kv__art { width: 635px; height: 240px; }
  .page-kv__art-inner { transform: scale(.8); }
}

@media (max-width: 1200px) {
  .page-kv__title { font-size: 48px; }
  .page-kv__art { width: 476px; height: 180px; }
  .page-kv__art-inner { transform: scale(.6); }
  .page-kv__bg { height: 240px; }
  .artist-card__photo { height: 260px; }
  .works__list { gap: 20px 28px; }
  .traffic__content { gap: 32px; }
}

@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .nav { width: auto; }
  .nav__list { gap: 8px; }
  .partners__logos { gap: 16px 32px; }
  .footer__wrap { padding-left: 40px; padding-right: 40px; }
  .footer__vision { right: 40px; }
}

@media (max-width: 1024px) {
  .footer__vision { width: 376px; height: 215px; }
  .footer__vision-inner { transform: scale(.7); }
  .footer__nav { max-width: calc(100% - 400px); } /* 避開右側插圖 */
}

@media (max-width: 900px) {
  /* 手機選單 */
  .header__wrap { height: 72px; padding: 0 20px; }
  .header__logo img { width: 182px; height: 44px; }
  .header__toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    background: var(--red);
    border-top: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .intro__list { padding: 8px 20px; }
  .intro__item { flex-direction: column; gap: 2px; padding: 12px 0; }
  .intro__item dt { width: auto; }
  .nav__item a { margin: 4px 20px; padding: 12px 20px; font-size: 17px; text-align: center; }

  .news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .partners__logos { width: 100%; flex: none; }

  .page-kv { padding: 0 20px; }
  .page-kv__wrap { padding-top: 20px; }
  .page-kv__bg { height: 100%; }
  .page-kv__row { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 12px; }
  .page-kv__title { flex: none; max-width: none; margin-right: 0; }
  .page-kv__art { align-self: center; }

  .lineup { padding-top: 40px; }
  .lineup__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shops { padding-top: 36px; }
  .traffic__content { flex-direction: column; }
  .traffic__map { flex: none; width: 100%; height: 300px; }
  .traffic__info { flex: none; width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .info { margin-top: -32px; margin-bottom: -32px; }
  .info__bar { gap: 20px; min-height: 64px; padding: 10px 16px; border-width: 3px; border-radius: 16px; }
  .info__item { flex-direction: column; gap: 2px; }
  .info__item dt { font-size: 14px; }
  .info__item dd { font-size: 22px; }

  .news { padding-top: 88px; padding-bottom: 40px; }
  .news__wrap { gap: 28px; }
  .news__list { grid-template-columns: 1fr; gap: 24px; }
  .section-title__heading { font-size: 26px; }
  .news-card__title { margin: 10px 0 18px; font-size: 18px; }

  .partners { padding-top: 44px; padding-bottom: 48px; }
  .partners__wrap { gap: 28px; }
  .partners__heading { gap: 12px; }
  .partners__heading-text { font-size: 24px; }
  .partner-logo{margin-bottom: 5px;}
  .partner-logo img { width: auto; max-height: 36px; object-position: top left;}
  .partner-logo .logo_c01{width: 186px;}
  .partner-logo .logo_c02{width: 300px;}

  .page-kv__title { font-size: min(40px, 9.2vw); letter-spacing: -1px; filter: drop-shadow(3px 3px 0 #fff) drop-shadow(3px 3px 0 #fff); }
  .page-kv__art { width: 333px; height: 126px; }
  .page-kv__art-inner { transform: scale(.42); }

  .page-kv__title--single { filter: drop-shadow(3px 3px 0 #fff); }

  .shops__wrap { gap: 28px; }
  .shops__list { gap: 16px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tabs__btn { min-height: 44px; padding: 4px 8px; }
  .tabs__week { font-size: 14px; }

  .works { padding-top: 36px; padding-bottom: 40px; }
  .works__list { grid-template-columns: 1fr; gap: 16px; }
  .work-card__title { padding-top: 7px; font-size: 20px; text-align: center;}

  .lightbox { padding: 68px 12px 84px; }
  .lightbox__img { max-height: calc(100vh - 68px - 84px - 52px); }
  .lightbox__figure { gap: 12px; }
  .lightbox__caption { font-size: 16px; }
  .lightbox__close { top: 10px; right: 12px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 18px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }

  .lineup { padding-bottom: 48px; }
  .lineup__wrap { gap: 28px; }
  .lineup__list { grid-template-columns: 1fr; gap: 24px; }
  .artist-card__photo { height: 240px; }
  .artist-card__name { padding: 10px 0 18px; font-size: 18px;}

  .traffic { padding-top: 44px; padding-bottom: 48px; }
  .traffic__wrap { gap: 28px; }
  .traffic__map { height: 260px; }
  .traffic__map strong { font-size: 22px; }

  .footer { padding-top: 60px; }
  .footer__wrap { gap: 28px; padding: 120px 20px 24px; }
  .footer__logo { width: 200px; }
  .footer__nav { gap: 12px 24px; max-width: none; }
  .footer__note { height: 16px; }
  .footer__vision { right: 20px; width: 269px; height: 154px; }
  .footer__vision-inner { transform: scale(.5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 進場動畫
   ==========================================================================
   <head> 內的小段 script 會先加上 .anim-pending，避免元素在動畫前閃現；
   js/main.js 替各元素加上 .anim 與方向，進入畫面時加上 .is-in，
   播完後把這些 class 全部移除，元素回到原本的樣式。
   原本就有水平翻轉的插圖用 --flip 保留翻轉。 */
.anim-pending body {
  opacity: 0;
  /* 保險：若腳本沒有執行，3 秒後仍會顯示頁面 */
  animation: anim-failsafe 0s 3s forwards;
}
@keyframes anim-failsafe { to { opacity: 1; } }

/* 隱藏狀態不帶 transition（瞬間套用）；只有切換到 .is-in 時才播放 */
.anim { opacity: 0; }
.anim--up   { transform: translateY(40px); }
.anim--left { transform: translateX(-60px); }
.anim--zoom { transform: scale(1.04); }
.anim--pop  { transform: scale(.9) var(--flip, scale(1)); }

.anim.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0s);
}
.anim--pop.is-in { transform: scale(1) var(--flip, scale(1)); }
.anim--zoom.is-in { transition-duration: 1.2s, 1.4s; }

/* 大圖彈出視窗淡入 */
.lightbox.is-open { animation: lightbox-in .3s ease both; }
.lightbox.is-open .lightbox__figure { animation: lightbox-figure-in .4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes lightbox-in { from { opacity: 0; } }
@keyframes lightbox-figure-in { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: var(--flip, none); }
  .lightbox.is-open,
  .lightbox.is-open .lightbox__figure { animation: none; }
}
