@media (max-width: 1199px) {

  /* Mobile／窄版樣式 */
  .display_pc {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .display_m {
    display: none !important;
  }
}

/* @media (max-width: 767px) {
  .display_pc{display: none!important;}
} */


:root {
  --page-bg: #599abe;
  --content-width: 1200px;
  --hero-design-width: 2000;
  --hero-design-height: 853;
  --hero-display-scale: 0.8;
  --hero-display-width: 1600px;
  --tablet-hero-scale: 0.7;
  --tablet-hero-width: 1400px;
  --tablet-hero-height: 597.1px;
  --float-right: 24px;
  --float-bottom: 24px;
  --hero-height: 1795px;
  /* 浮層 */
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --modal-bg: #ffffff;
  --primary-color: #156baf;
  --badge-bg: #156baf;
  --text-color: #222222;
  --note-color: #333333;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--page-bg);
  color: #173c61;
  font-size: 16px;
  line-height: 1.4;
  font-family: "源泉圓體月", "Noto Sans TC", sans-serif
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0)
}

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


/* 浮層 */

/* 遮罩背景 */
.modal-overlay {
position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 關閉時的狀態 */
.modal-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 隱藏時避免阻擋底層點擊 */
}

/* 浮層主體容器 */
.modal-container {
    position: relative;
    background-color: var(--modal-bg);
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 右上角關閉按鈕 */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 2px solid #cccccc;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.modal-close-btn:hover {
    background-color: #f0f0f0;
    border-color: #999999;
}

/* 叉叉圖示線條 */
.modal-close-btn::before,
.modal-close-btn::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #888888;
}

.modal-close-btn::before {
    transform: rotate(45deg);
}

.modal-close-btn::after {
    transform: rotate(-45deg);
}

/* 標題 */
.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 20px;
    padding-right: 30px; /* 避免與關閉按鈕重疊 */
}

/* 得獎項目群組 */
.winner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* 單個得獎區塊 */
.winner-item {
    background-color: #e0f1ff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 獎項名稱標籤 */
.winner-item__badge {
    background-color: var(--badge-bg);
    color: #ffffff;
    font-size: 20px;
    padding: 8px 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* 得獎者資訊 */
.winner-item__info {
    padding: 10px 16px;
    font-size: 20px;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.5px;

}

/* 底部注意事項 */
.modal-note {
    font-size: 18px;
    color: var(--note-color);
    line-height: 1.5;
}

/* ==========================================
    RWD 響應式設定 (針對行動裝置優化)
  ========================================== */
@media screen and (max-width: 480px) {
    .modal-container {
        padding: 24px 16px 20px 16px;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 20px; /* 小螢幕稍微縮小標題 */
        margin-bottom: 16px;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
    }

    .modal-close-btn::before,
    .modal-close-btn::after {
        width: 14px;
    }

    .winner-item__badge {
        font-size: 16px;
        padding: 6px 12px;
    }

    .winner-item__info {
        font-size: 16px; /* 小螢幕字體調整，閱讀更舒適 */
        padding: 8px 12px;
    }

    .modal-note {
        font-size: 16px;
    }
}








.site-header {
  height: 60px;
  ;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: relative;
  z-index: 20
}

.site-header__logo img {
  height: 22px;
  width: auto
}

.site-header nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
  font-size: 24px;
}

.site-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 400
}

.site-header__share {
  display: flex;
  gap: 16px
}

.site-header__share button {
  border: 0;
  background: transparent;
  padding: 0;
  width: auto;
  height: 35px;
  cursor: pointer
}

.site-header__share button img {
  height: 35px;
  width: auto;
  object-fit: contain
}

.hero {
  height: 900px;
  overflow: hidden
}

.bg_m {
  position: absolute;
  width: 100vw;
  height: auto;
  z-index: 0;
}

.bg_m img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2000px;
}

.hero__art {
  height: var(--hero-height);
  max-width: 2000px;
  margin: auto;
  position: relative
}

.hero__art>img,
.hero__join {
  position: absolute
}




.hero__moon {
  left: 50%;
  top: -26%;
  z-index: 1
}

.hero__rabbit {
  width: 100%;
  left: 0%;
  top: 360px;
  z-index: 3
}

.hero__main {
  left: 30%;
  top: 10%;
  z-index: 5
}

.hero__side--left {
  left: 24%;
  top: 19.5%;
  z-index: 6
}

.hero__side--right {
  right: 23%;
  top: 15%;
  z-index: 6
}

.hero__cake {
  z-index: 7;
  width: 9%
}

.hero__cake--one {
  left: 3%;
  top: 9%
}

.hero__cake--two {
  right: 4%;
  top: 44%
}

.hero__cloud {
  z-index: 4
}

.hero__cloud--one {
  left: 19%;
  top: 8%
}

.hero__cloud--two {
  right: 0%;
  top: 24%
}

.hero__join {
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  top: 62%;
  transition: transform .2s ease
}

.hero__enter {
  opacity: 0
}

.is-loaded .hero__enter--moon {
  animation: drop-in .9s ease-out forwards
}

.is-loaded .hero__enter--rabbit {
  animation: fade-in .8s .6s forwards, float-y 4s 1.4s ease-in-out infinite
}

.is-loaded .hero__enter--main {
  animation: pop-in .7s 1s ease-out forwards
}

.is-loaded .hero__enter--side {
  animation: pop-out .7s 1.2s ease-out forwards
}

.is-loaded .hero__enter--cake {
  animation: pop-out .7s 1.5s ease-out forwards, float-y 4s 2.2s ease-in-out infinite
}

.is-loaded .hero__enter--cloud {
  animation: fade-in .8s 1.8s forwards
}

.content-section {
  padding: 52px max(24px, calc((100% - var(--content-width))/2))
}

.content-section h2 {
  margin: 0 auto 24px;
  width: min(636px, 90%)
}

.content-section--gifts {
  background: linear-gradient(#ffe994, #e8bf45);
  margin-top: 37px;
}

.content-section--gifts h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -34px;
}

.section-card {
  max-width: 900px;
  margin: auto;
  background: #fffdf0;
  border: 5px solid #edc952;
  padding: 32px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.8
}

.content-section picture img {
  margin: 40px auto 0
}

.step-interactive {
  text-align: center;
  margin: 0 auto 24px;
  display: flex;
  gap: 20px;
}

.step-interactive--box {
  position: relative;
}

.step-interactive--btn {
  position: absolute;
  top: 135px;
  width: 220px;
  left: 50%;
  transform: translateX(-50%);
}

.step-interactive--p {
  position: absolute;
  top: 135px;
  width: 220px;
  left: 39%;
  transform: translateX(-50%);
  font-size: 43px;
  font-weight: 800;
}

@media (max-width: 1199px) {

.step-interactive--btn {
  position: absolute;
  top: 45%;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
}

.step-interactive--p {
  position: absolute;
  top: 44%;
  width: 220px;
  left: 39%;
  transform: translateX(-50%);
  font-size: 4vw;
  font-weight: 800;
}

}




@media (max-width: 737px) {
  .step-interactive {
    flex-direction: column;
    margin-bottom: 5vw;
  }

  .step-interactive--box {
    margin: 0 auto;
  }

  .step-interactive--p {
    top: 46%;
    font-size: 60px;
  }

  .step-interactive--btn {
    top: 46%;
    width: 344px;
  }

  .step-interactive--box {
    width: 55vw;
  }

  .step-interactive--btn {
    top: 46%;
    width: 40vw;
  }

  .step-interactive--p {
    top: 46%;
    font-size: 7vw;
  }
}

.line-id {
  border: 0;
  background: #fff5bf;
  border-radius: 20px;
  padding: 10px 24px;
  color: #173c61;
  font-size: 20px;
  cursor: pointer
}

.line-id span {
  font-size: 13px;
  margin-left: 8px
}

.content-section--notice {
  color: #fff;
  line-height: 1.8;
  padding-top: 0px;
  padding-bottom: 72px;
}

.content-section--notice h2 {
  text-align: center
}

.notice-copy {
  max-width: 1100px;
  margin: auto;
  font-size: 22px;
  font-weight: 300;
}

.notice-copy li {
  margin-bottom: 20px;
}


@media (max-width: 1199px) {
  #notice.content-section--notice {
    padding-top: 0;
  }

  .notice-copy {
    font-size: clamp(16px, 4vw, 22px);
    padding: 0 3vw;
  }

  .notice-copy ol {
    padding-left: 3vw;
  }

  .notice-copy li {
    margin-bottom: 3vw;
  }
}

@media (max-width: 767px) {
  .notice-copy {
    padding: 0 4vw;
  }

  .notice-copy ol {
    padding-left: 6vw;
  }
}


footer {
  text-align: center;
  color: #fff;
  padding: 18px
}

@media (max-width: 1199px) {
  footer {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
  }
}

.floating-actions {
  position: fixed;
  right: var(--float-right);
  bottom: var(--float-bottom);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start
}

.floating-actions img {
  width: 120px;
}
.floating-actions button img {
    width: 105px;
}

.floating-actions button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer
}


.side-deco {
  position: fixed;
  top: 18%;
  width: 190px;
  height: 620px;
  background: url('../images/bg_deco_pc.png') center/contain no-repeat;
  z-index: 1;
  pointer-events: none;
  opacity: .88;
  animation: float-y 8s ease-in-out infinite
}

.side-deco--left {
  left: 0
}

.side-deco--right {
  right: 0;
  transform: scaleX(-1);
  animation-delay: -3s
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -180px)
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0)
  }
}

@keyframes fade-in {
  to {
    opacity: 1
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(.2)
  }

  70% {
    transform: scale(1.08)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes pop-out {
  from {
    opacity: 0;
    transform: scale(.2)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes float-y {
  50% {
    transform: translateY(-14px)
  }
}

@keyframes float-x {
  50% {
    transform: translateX(16px)
  }
}

@media(max-width:767px) {
  :root {
    --float-right: 8px;
    --float-bottom: 10px;
    --hero-height: 620px
  }

  .site-header {
    height: 44px;
    padding: 0 8px
  }

  .site-header__logo img {
    width: 92px;
    height: auto
  }

  .site-header nav {
    gap: 8px;
    font-size: 11px
  }

  .site-header__share button {
    width: auto;
    height: 22px;
    font-size: 10px
  }

  .site-header__share button img {
    height: 22px
  }

  .hero {
    height: 122vw;
  }

  .hero__art {
    height: var(--hero-height);
  }

  .hero__moon {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 6vw
  }

  .hero__rabbit {
    content: url('../images/main_rabbit_m.png');
    width: 100%;
    top: 83vw;
    bottom: 0
  }

  .hero__main {
    width: 78%;
    left: 11%;
    top: 45%
  }

  .hero__side--left {
    left: 2%;
    top: 51%;
    width: 11%
  }

  .hero__side--right {
    right: -1%;
    top: 52%;
    width: 23%
  }

  .hero__cake {
    width: 13vw;
    top: 5vw
  }

  .hero__cake--one {
    left: 14%
  }

  .hero__cake--two {
    right: 14%
  }

  .hero__cloud--one {
    width: 30%;
    top: 34%;
    left: 0;
  }

  .hero__cloud--two {
    width: 42%;
    right: -11vw;
    top: 15vw
  }

  .hero__join {
    width: 49vw;
    left: 50%;
    transform: translateX(-50%);
    top: 72vw
  }

  .side-deco {
    display: none
  }

  .content-section {
    padding: 8vw 0vw 4vw
  }

  .content-section--gifts {
    margin-top: 7vw;
  }

  .content-section--gifts h2 {
    top: -7vw;
  }

  .content-section picture img {
    margin: 2vw auto 0;
    width: 44vw;
  }

  .section-card {
    padding: 20px;
    font-size: 17px
  }

  .floating-actions {
    gap: 1vw;
  }

  .floating-actions img {
    width: 20vw
  }

  .floating-actions button img {
    width: 18vw
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important
  }
}





.site-header nav a,
.site-header__share button {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header__share button:hover,
.site-header__share button:focus-visible {
  transform: translateY(-3px);
  opacity: 0.9;
}

.hero {
  background-color: #599abe;
  background-position: center top;
  background-size: 2000px 853px;
  background-repeat: no-repeat;
}

main,
.content-section {
  position: relative;
}


.hero__art {
  width: 2000px;
  max-width: none;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

@media (max-width: 1199px) {
  .hero__art {
    width: 960px;
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
  }
}

.hero__join {
  display: block;
  transform: translateX(-50%) scale(1);
  transition: transform 0.2s ease;
}

.hero__join:hover,
.hero__join:focus-visible {
  transform: translateX(-50%) scale(0.9);
}


.hero__cake--three {
  left: 78%;
  top: 0%;
}

.hero__cake--four {
  right: 83%;
  top: 42%;
  rotate: calc(90);
}

.hero__cake--four {
  transform: rotate(30deg);
}

.is-loaded .hero__cake--four {
  animation:
    cake-four-in 0.7s 1.5s ease-out forwards,
    cake-four-float 4s 2.2s ease-in-out infinite;
}

@keyframes cake-four-in {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(30deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(30deg);
  }
}

@keyframes cake-four-float {
  50% {
    transform: translateY(-14px) rotate(30deg);
  }
}

.hero__join {
  opacity: 0;
}

.is-loaded .hero__join {
  animation: join-pop-in 0.7s 2.2s ease-out forwards;
}

@keyframes join-pop-in {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
  }

  70% {
    transform: translateX(-50%) scale(1.08);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.hero__join {
  opacity: 1;
  animation: none;
}

.hero__join img {
  opacity: 0;
  transform: scale(0.2);
}

.is-loaded .hero__join img {
  animation: join-image-pop-in 0.7s 2.2s ease-out forwards;
}

.hero__join:hover img,
.hero__join:focus-visible img {
  transform: scale(0.9);
}

@keyframes join-image-pop-in {
  from {
    opacity: 0;
    transform: scale(0.2);
  }

  70% {
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__join img {
  --join-scale: 1;
}

.hero__join:hover img,
.hero__join:focus-visible img {
  --join-scale: 0.9;
}

@keyframes join-image-pop-in {
  from {
    opacity: 0;
    transform: scale(calc(var(--join-scale) * 0.2));
  }

  70% {
    transform: scale(calc(var(--join-scale) * 1.08));
  }

  to {
    opacity: 1;
    transform: scale(var(--join-scale));
  }
}

@media (max-width: 1199px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
  }

  .site-header__logo {
    flex: 0 0 auto;
  }

  .site-header__logo img {
    width: 92px;
    height: auto;
  }

  .site-header nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    font-size: 11px;
  }

  .site-header nav a {
    flex: 0 0 auto;
  }

  .site-header__share {
    flex: 0 0 auto;
    gap: 4px;
  }

  .site-header__share button,
  .site-header__share button img {
    width: auto;
    height: 22px;
  }
}

@media (max-width: 1199px) {
  .hero__art {
    width: 100vw;
    max-width: none;
    height: calc(620px * 100vw / 960px);
    margin: 0;
    transform: none;
    background-size: 100% auto;
  }
}

@media (max-width: 1199px) {
  .site-header {
    position: relative;
    display: block;
    width: 100%;
    height: 19.87vw;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: #599abe;
  }

  .site-header__logo {
    position: absolute;
    top: 3.2vw;
    left: 2.6vw;
    z-index: 2;
  }

  .site-header__logo img {
    width: 41.7vw;
    height: auto;
  }

  .site-header nav {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    width: 100%;
    height: 9.98vw;
    gap: 0;
    padding: 0 2vw;
    background: #173f68;
    font-size: 4vw;
  }

  .site-header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
  }

  .site-header__share {
    position: absolute;
    top: 2.1vw;
    right: 2.6vw;
    z-index: 2;
    display: flex;
    gap: 1.8vw;
  }

  .site-header__share button,
  .site-header__share button img {
    width: auto;
    height: 6.4vw;
  }
}

/* Mobile header design override */
@media (max-width: 1199px) {
  .site-header {
    display: block;
    width: 100%;
    height: 19.87vw;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: #599abe;
  }

  .site-header__logo {
    position: absolute;
    top: 3.2vw;
    left: 2.6vw;
    z-index: 2;
  }

  .site-header__logo img {
    width: 41.7vw;
    height: auto;
  }

  .site-header nav {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    width: 100%;
    height: 9.98vw;
    gap: 0;
    padding: 0 2vw;
    background: #173f68;
    font-size: 4.5vw;
  }

  .site-header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
  }

  .site-header__share {
    position: absolute;
    top: 2.1vw;
    right: 2.6vw;
    z-index: 2;
    display: flex;
    gap: 1.8vw;
  }

  .site-header__share button,
  .site-header__share button img {
    width: auto;
    height: 6.4vw;
  }
}

.content-section--rules {
  padding-top: 72px;
  padding-bottom: 72px;
}

.content-section--rules h2 {
  position: relative;
  z-index: 2;
  margin-bottom: -64px;
}

.content-section--rules .section-card {
  position: relative;
  z-index: 1;
  max-width: 960px;
  border: 0;
  padding: 112px 90px 84px;
  background-color: transparent;
  background-image: url('../images/bg_pc_repeat.png');
  background-position: center 104px;
  background-repeat: repeat-y;
  background-size: 100% 13px;
  overflow: hidden;
}

.content-section--rules .section-card::before,
.content-section--rules .section-card::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  pointer-events: none;
}

.content-section--rules .section-card::before {
  top: 0;
  height: 104px;
  background-image: url('../images/bg_pc_top.png');
}

.content-section--rules .section-card::after {
  bottom: 0;
  height: 58px;
  background-image: url('../images/bg_pc_bottom.png');
}

@media (max-width: 1199px) {
  .content-section--rules {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .content-section--rules h2 {
    margin-bottom: -6vw;
  }

  .content-section--rules .section-card {
    max-width: 960px;
    padding: 92px 44px 70px;
    background-image: url('../images/bg_m_repeat.png');
    background-position: center 95px;
    background-size: 100% 16px;
  }

  .content-section--rules .section-card::before {
    height: 95px;
    background-image: url('../images/bg_m_top.png');
  }

  .content-section--rules .section-card::after {
    height: 90px;
    background-image: url('../images/bg_m_bottom.png');
  }
}

.content-section h2 {
  width: 530px;
}

@media (max-width: 1199px) {
  .content-section h2 {
    width: min(69vw,636px);
  }
}

.content-section--rules .section-card {
  max-width: 1200px;
  padding: 0;
  background: none;
  overflow: visible;
}

.section-card__top,
.section-card__bottom {
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.section-card__top {
  aspect-ratio: 1200 / 104;
  background-image: url('../images/bg_pc_top.png');
}

.section-card__content {
  min-height: 170px;
  padding: 24px 90px;
  background: url('../images/bg_pc_repeat.png') center top / 100% 13px repeat-y;
}

.section-card__content p {
  margin: 0;
  font-size: clamp(18px, 4vw, 28px);
}

.section-card__bottom {
  aspect-ratio: 1200 / 58;
  background-image: url('../images/bg_pc_bottom.png');
}

@media (max-width: 1199px) {
  .section-card__top {
    aspect-ratio: 960 / 95;
    background-image: url('../images/bg_m_top.png');
  }

  .section-card__content {
    min-height: 180px;
    padding: 24px 44px;
    background-image: url('../images/bg_m_repeat.png');
    background-size: 100% 16px;
  }

  .section-card__bottom {
    aspect-ratio: 960 / 90;
    background-image: url('../images/bg_m_bottom.png');
  }
}

/* Three-piece rules frame: final override */
.content-section--rules .section-card {
  max-width: 1200px;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}

.content-section--rules .section-card::before,
.content-section--rules .section-card::after {
  display: none;
}

.section-card__top,
.section-card__bottom {
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.section-card__top {
  aspect-ratio: 1200 / 104;
  background-image: url('../images/bg_pc_top.png');
}

.section-card__content {
  min-height: 116px;
  padding: 0px 90px;
  background: url('../images/bg_pc_repeat.png') center top / 100% 13px repeat-y;
}

.section-card__bottom {
  aspect-ratio: 1200 / 58;
  background-image: url('../images/bg_pc_bottom.png');
}

@media (max-width:1199px) {
  .content-section--rules .section-card {
    max-width: 100%;
  }

  .section-card__top {
    aspect-ratio: 960 / 95;
    background-image: url('../images/bg_m_top.png');
  }

  .section-card__content {
    min-height: 115px;
    padding: 0vw 6vw;
    background-image: url('../images/bg_m_repeat.png');
    background-size: 100% 16px;
  }

  .section-card__bottom {
    aspect-ratio: 960 / 90;
    background-image: url('../images/bg_m_bottom.png');
  }
}

.content-section--steps {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* Activity steps: same three-piece frame system as activity rules */
.content-section--steps .steps-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
}

.content-section--steps h2 {
  position: relative;
  z-index: 2;
  margin-bottom: -64px;
}

.steps-card__top,
.steps-card__bottom {
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.steps-card__top {
  aspect-ratio: 1200 / 104;
  background-image: url('../images/bg_pc_top.png');
}

.steps-card__content {
  min-height: 116px;
  padding: 0 90px;
  background: url('../images/bg_pc_repeat.png') center top / 100% 13px repeat-y;
  font-size: 28px;
  font-weight: 500;
}

.steps-card__content p {
  text-align: center;
  padding-bottom: 24px;
  margin: 0;
}

.steps-card__content p.note {
  font-size: 24px;
  font-weight: 400;
  padding-bottom: 0;
}

.steps-card__bottom {
  aspect-ratio: 1200 / 58;
  background-image: url('../images/bg_pc_bottom.png');
}


.steps-group {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.steps-group-01,
.steps-group-02,
.steps-group-03 {
  margin: 0 auto;
  position: relative;
}

.steps_code {
  position: absolute;
  bottom: 56px;
  left: 142px;
  font-weight: 400;
}

.steps_code b {
  display: inline-block;
  padding: 0 10px;
  color: #007cff;
  background-color: #ffffff;
  font-size: 32px;
  font-weight: 700;
}




@media (max-width: 1199px) {
  .content-section--steps {
    padding-top: 42px;
    padding-bottom: 42px;
    position: relative;
  }

  .content-section--steps h2 {
    margin-bottom: -6vw;
  }

  .content-section--steps .steps-card {
    max-width: 100%;
  }

  .steps-card__top {
    aspect-ratio: 960 / 95;
    background-image: url('../images/bg_m_top.png');
  }

  .steps-card__content {
    min-height: 115px;
    padding: 0vw 5vw;
    background-image: url('../images/bg_m_repeat.png');
    background-size: 100% 16px;
    font-size: 18px;
    font-weight: 500;
  }

  .steps-card__content p {
    text-align: center;
    padding-bottom: 4vw;
    margin: 0;
    font-size: clamp(18px, 4vw, 36px);
  }

  .steps-card__content p.note {
    font-size: clamp(16px, 4vw, 32px);
    font-weight: 300;
  }

  .steps-card__bottom {
    aspect-ratio: 960 / 90;
    background-image: url('../images/bg_m_bottom.png');
  }



  .steps-group {
    gap: 8vw;
    padding-bottom: 8vw;

  }


  p.steps_code {
    white-space: nowrap;
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
    font-size: clamp(16px, 4vw, 46px);
  }

  .steps_code b {
    display: inline-block;
    padding: 0 10px;
    color: #007cff;
    background-color: #ffffff;
    font-size: clamp(16px, 4vw, 50px);
    font-weight: 700;
  }


}



hr {
  border: none;
  /* 移除預設邊框 */
  height: 1px;
  /* 設定分隔線粗細高度 */
  background-color: #d2d2d2;
  /* 設定分隔線顏色 */
  margin: 40px 0 40px;
  /* 設定上下間距 */
}

@media (max-width: 1199px) {
  hr {
    border: none;
    /* 移除預設邊框 */
    height: 1px;
    /* 設定分隔線粗細高度 */
    background-color: #d2d2d2;
    /* 設定分隔線顏色 */
    margin: 5vw 0 7vw;
    /* 設定上下間距 */
  }
}

.hero {
  background-image: none;
  background-color: transparent;
}

.bg_pc_2 {
  position: absolute;
  z-index: 0;
}

.bg_pc_2 img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2000px;
  max-width: none;
  height: 853px;
  transform: translateX(-50%);
}

.hero__art {
  position: relative;
  z-index: 1;
}

/* PC background alignment: keep one centered 2000px background layer */
@media (min-width:1200px) {
  .hero {
    background-image: none;
    background-color: transparent;
  }

  .bg_pc_2 {
    top: 0;
    left: 50%;
    width: min(2000px, 100vw);
    height: 853px;
    overflow: hidden;
    background-color: #599abe;
    transform: translateX(-50%);
  }

  .hero__art {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 1800px) {
  .side-deco {
    position: fixed;
    top: 0;
    width: 339px;
    height: 1620px;
    background-size: 339px 1620px;
    opacity: 0;
    visibility: hidden;
    animation: none;
    transform: none;
    z-index: 20;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .side-deco.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .side-deco--left {
    left: 0;
  }

  .side-deco--right {
    right: 0;
    left: auto;
    transform: scaleX(-1);
  }
}

.side-deco {
  --deco-shift-y: 0px;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (min-width: 1800px) {
  .side-deco--left {
    transform: translateY(var(--deco-shift-y));
  }

  .side-deco--right {
    transform: scaleX(-1) translateY(var(--deco-shift-y));
  }
}

/* Side decoration parallax */
@media (min-width:1800px) {
  .side-deco--left {
    transform: translateY(var(--deco-shift-y));
  }

  .side-deco--right {
    transform: scaleX(-1) translateY(var(--deco-shift-y));
  }
}

@media (max-width: 1799px) {
  .side-deco {
    display: none !important;
    animation: none !important;
  }
}


.floating-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.floating-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.side-deco--right {
  top: 240px;
}

@media (min-width:1800px) {
  .side-deco--right {
    top: 240px;
  }
}

.content-section--rules {
  position: relative;
}

.rules-deco-rabbit01 {
  position: absolute;
  top: -60px;
  right: 30px;
  width: 111px;
  z-index: 3;
  pointer-events: none;
}

.rules-deco-rabbit02 {
  position: absolute;
  top: -20px;
  left: 60px;
  width: 139px;
  z-index: 3;
  pointer-events: none;
}


@media (max-width: 1199px) {
  .rules-deco-rabbit {
    display: none;
  }
}

@media (min-width: 1800px) {
  .side-deco--right {
    background-image: url('../images/bg_deco_pc_r.png');
    transform: scaleX(-1) translateY(var(--deco-shift-y));
  }
}

@media (max-width:1199px) {
  .site-header nav {
    transform: none;
  }
}


@media (min-width:1200px) {
  .site-header nav {
    transform: translateX(-50%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1199px) {
  .site-header {
    position: relative;
    top: auto;
    box-shadow: none;
  }
}

@media (max-width:1199px) {
  .site-header {
    position: relative;
    top: auto;
    box-shadow: none;
  }
}

@media (max-width: 1199px) {
  .site-header nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 1199px) {

  .site-header nav a:hover,
  .site-header nav a:focus-visible {
    transform: none;
    opacity: 1;
  }
}

/* Tablet header sizing: 768px to 1199px */
@media (min-width:768px) and (max-width:1199px) {
  .site-header {
    height:120px;
    min-height:0;
  }

  .site-header__logo img {
    height: 29px;
    width: auto;
  }

  .site-header nav {
    font-size:28px;
    height:60px;
  }
  .site-header__share {
    top: 8px;
    gap: 14px;
  }
    .site-header__share button, .site-header__share button img {
      width: auto;
      height: 44px;
  }
      .site-header__logo {
        top: 15px;
  }
}

/* PC Hero alignment: all art uses bg_pc as the coordinate system */
@media (min-width:768px) {
  .hero_bg_pc{display: block;}
  .hero_bg_m{display: none;}

  .hero {
    height: auto;
    overflow: hidden;
    background: #001b3d;
  }

  .hero-stage {
    position: relative;
    width: min(var(--hero-display-width), 100vw);
    height: auto;
    aspect-ratio: var(--hero-design-width) / var(--hero-design-height);
    margin: 0 auto;
    overflow: hidden;
  }

  .hero-stage__background {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-stage__background img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
  }

  .hero__art {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: calc(var(--hero-design-width) * 1px);
    height: calc(var(--hero-design-height) * 1px);
    max-width: none;
    margin: 0;
    transform:
      translateX(-50%)
      scale(
        min(
          var(--hero-display-scale),
          calc(100vw / (var(--hero-design-width) * 1px))
        )
      );
    transform-origin: top center;
  }

  .hero__art>img,
  .hero__art>.hero__join {
    position: absolute;
  }
}



@media (min-width:768px) {
  .gifts_pic_pc{display: block;}
  .gifts_pic_m{display: none;}
}
@media (max-width:767px) {
  .gifts_pic_pc{display: none;}
  .gifts_pic_m{display: block;}
}


/* Mobile Hero alignment: use the 960x2177 design coordinate system */
@media (max-width:767px) {
  .hero_bg_pc{display: none;}
  .hero_bg_m{display: block;}

  .hero {
    overflow:hidden;
    background:#001b3d;
  }

  .hero-stage {
    position:absolute;
    width:100vw;
    height:175vw;
    margin:0;
    overflow:hidden;
  }

  .hero-stage__background {
    position:absolute;
    inset:0;
    z-index:0;
  }

  .hero-stage__background img.display_pc {
    display:none !important;
  }

  .hero-stage__background img.display_m {
    display:block !important;
    width:100vw;
    height:auto;
    max-width:none;
  }

  .hero__art {
    position:relative;
    z-index:1;
  }
}

/* Tablet Hero sizing: PC visual with cropped sides */
@media (min-width:768px) and (max-width:1199px) {
  .hero {
    height:var(--tablet-hero-height);
    overflow:hidden;
  }

  .hero-stage {
    width:100vw;
    height:var(--tablet-hero-height);
    overflow:hidden;
  }

  .hero-stage__background img {
    position:relative;
    left:50%;
    width:var(--tablet-hero-width);
    height:auto;
    max-width:none;
    transform:translateX(-50%);
  }

  .hero__art {
    width:2000px;
    height:853px;
    transform:translateX(-50%) scale(var(--tablet-hero-scale));
    transform-origin:top center;
  }
}
