html{

  scroll-behavior: smooth;

}

/* 全網頁只要滑鼠滑到連結就變手指 */

a:hover {

  cursor: pointer !important;

}

/* 這行是最上面的板頭 */

header>.inner {

  background-color: rgba(255, 255, 255, 0);

  -webkit-box-shadow: none;

  box-shadow: none;

  -webkit-backdrop-filter: blur(3px);

  backdrop-filter: blur(3px);

}

/* hoho的logo */

header>.inner a.logo {

  background: url(../images/icon_hoho-02.svg) no-repeat center;

  background-size: cover;

  width: 180px;

  height: 140px;

  left: 0px;

}

/* hoho的logo滑鼠移過去後 */

header>.inner a.logo:hover {

  filter: brightness(1.1);

  transition: 0.2s;

}

/* 右上的icon */

header ul.wrap-link li i[class\\\\*="icon-"],

header ul.wrap-link li a[class\\\\*="icon-"] {

  background-color: #444;

  color: #ffffff;

  transition: 0.2s;

}

/* 右上的icon滑鼠移過去後 */

header ul.wrap-link li i[class\\\\*="icon-"]:hover,

header ul.wrap-link li a[class\\\\*="icon-"]:hover {

  background-color: rgb(255, 188, 2);

  color: #ffffff ;

  transition: 0.2s;

}

/* icon旁邊的文字 */

header ul.wrap-link li span {

  color: #444;

  margin-right: 10px;

}

/* 從這邊開始是內容大框架 */

.container {

  background-color: #f9f0df;

}

.container img {

  vertical-align: top;

  max-width: 100%;

  height: auto;

}

.innerbox {

  max-width: 1200px;

  width: 100%;

  margin: 0 auto;

  padding: 0;

}

.showPC{

  display: block;

}

.showMB{

  display: none;

}

/* 活動說明 */

.rule{

  position: relative;

  padding: 40px 16px;

  background-color: #f3ece9;

}

.rule h5{

  font-size: 32px;

  font-weight: 700;

  text-align: center;

  margin-bottom: 24px;

}

.rule p{

  font-size: 18px;

  font-weight: 400;

  line-height: 32px;

}

.rule p span{

  display: block;

  margin-left: 20px;

}

.rule a{

  color: #3895b4;

  text-decoration: underline;

}

/*側邊欄*/

.navButton{

  display: none;

  justify-content: space-between;

  background-color: #fff;

  padding: 0px 16px;

  height: 40px;

  line-height: 40px;

  position: fixed;

  bottom: 0;

  width: 100%;

  box-sizing: border-box;

  transition: top .4s ease-in-out;

  box-shadow: 0 0 8px rgba(0,0,0,.2);

  z-index: 999;

}

.navButton a{

  color: #000;

  text-decoration: none;

  font-size: 16px;

}

.navButton_pc{

  display: block;

  position: fixed;

  right: 0px;

  top: 150px;

  width: 156px;

  height: 260px;

  padding: 100px 16px 0px 52px;

  background-image: url("../images/navbg.png");

  background-position: top center;

  background-repeat: no-repeat;

  transition: right .4s ease-in-out;

  filter:drop-shadow(4px 8px 8px rgb(201, 20, 0));

  z-index: 999;

}

.navButton_pc a{

  display: block;

    text-align: center;

    width: 100%;

    font-size: 16px;

  line-height: 28px;

  font-weight: 700;

    color: #181818;

    text-decoration: none;

}

.navButton_pc a:hover{

  color: #cc3c39;

  font-weight: 900;

}

.navHide .navButton_pc {

  right: -156px;

}

/*swiper*/

.swiper {

    width: 100%;

    max-width: 1100px;

    height: auto;

    margin: 0px auto;

}

#swiper-one {

    margin: 0 auto !important;

}

.swiper-slide {

    width: 350px;

    height: auto !important;

    text-align: center;

    font-size: 18px;

    background: transparent;

    padding: 0px 0 0 0;

    /* Center slide text vertically */

    display: -webkit-box;

    display: -ms-flexbox;

    display: -webkit-flex;

    display: flex;

    flex-direction: column;

    -webkit-box-pack: center;

    -ms-flex-pack: center;

    -webkit-justify-content: flex-start;

    justify-content: flex-start;

    -webkit-box-align: center;

    -ms-flex-align: center;

    -webkit-align-items: center;

    align-items: center;

}

/* 回到上方 */

a#backTop {

  background-color: #444;

  bottom: 52px;

}

/* 客製內容從下面開始 */



/* 2026 十二月周年慶：活動專用版型 */
.dec-event, .dec-event *, #ct06, #ct06 * { box-sizing: border-box; }
.dec-event { background: #f9e5d9; color: #35241f; }
.event-kv { height: 900px; background: url('../images/kv-bg.jpg') no-repeat center top / 1920px 900px; display: flex; justify-content: center; align-items: flex-start; padding: 145px 16px 0; }
.event-kv-title { display:block; width:1100px; max-width:100%; }
.event-kv img { display:block; width:100%; height:auto; }
.event-content { background: url('../images/ct-bg.jpg') repeat-y center top / 1920px 4400px; padding: 0 20px 90px; }
.event-section { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0; }
.event-section + .event-section { margin-top: 100px; }
.event-title, .event-title img, .event-aftee picture, .event-aftee img { display: block; width: 100%; }
.event-note { display: block; width: 100%; margin: 16px auto 32px; }
.event-note img { display:block; width:100%; height:auto; }
.event-grid { display: grid; gap: 30px; align-items: start; }
.event-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.event-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.event-grid a, .event-action, .carousel-track a, .event-aftee a { display: block; min-width: 0; text-decoration: none; }
.event-action { width: 100%; border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; font: inherit; }
.event-grid img, .carousel-track img { display: block; width: 100%; height: auto; }
.event-grid a:hover, .event-action:hover, .carousel-track a:hover, .event-aftee a:hover { filter: brightness(1.04); }
.dec-event a:focus-visible, .event-action:focus-visible, .carousel-track:focus-visible { outline: 3px solid #9b2018; outline-offset: -3px; border-radius: 12px; }
.carousel-panel { position: relative; width: 100%; aspect-ratio: 1100 / 640; background: url('../images/ct03.png') no-repeat center / 100% 100%; }
.carousel-track { position: absolute; top: 40%; left: 2.5%; right: 2.5%; bottom: 4%; display: flex; align-items: flex-start; gap: 2%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c23824 #fbd7bd; padding: 0 0 7px; }
.carousel-track a { flex: 0 0 23.5%; scroll-snap-align: start; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.carousel-nav a { background: #fff1df; color: #a31512; border: 1px solid #e7b56e; border-radius: 20px; font-size: 14px; padding: 4px 15px; text-decoration: none; }
/* 區塊 3、5 與其他區塊共用 1100px 內容欄寬。
   依各自 PNG 實際框線寬度補償透明留白，保持原始比例並水平置中。
   桌機：區塊3 1086/1100，區塊5 1086/1090。 */
#cleanTop .carousel-panel,
#afteeTop picture {
  width: var(--frame-width);
  max-width: none;
  margin-inline: calc((100% - var(--frame-width)) / 2);
}
#cleanTop .carousel-panel { --frame-width: 101.289134%; }
#afteeTop picture { --frame-width: 100.368324%; }
#afteeTop picture img { width:100%; max-width:none; height:auto; }
@media (max-width: 1100px) and (min-width: 781px) {
 .event-kv { height: 740px; padding-top: 130px; background-size: auto 740px; }
 .event-kv-title { width: 850px; }
 .event-section + .event-section { margin-top: 75px; }
}
@media (max-width: 780px) {
 .event-kv { height: clamp(440px, 130vw, 900px); padding: clamp(55px, 14vw, 110px) 12px 0; background-size: auto 100%; }
 .event-kv-title { width: 92%; max-width: 600px; }
 .event-content { padding: 12px 16px 48px; background-size: auto 2200px; }
 .event-section { max-width: 650px; }
 .event-section + .event-section { margin-top: 48px; }
 .event-title { margin: 0 auto 8px; }
 .event-grid { gap: 12px; }
 .event-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .event-note { margin: 8px 0 16px; }
 .carousel-panel { aspect-ratio: 780 / 730; background-image: url('../images/ct03-mb.png'); }
 .carousel-track { top: 44%; left: 7%; right: 7%; bottom: 5%; gap: 3%; }
 .carousel-track a { flex-basis: 48.5%; }
 .carousel-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
@media (max-width: 780px) {
 .carousel-track { left: 15%; right: 15%; bottom: 4%; }
}

/* 十二月清潔服務：Swiper，無 JS 時保留原生橫向滑動 */
.cleanSwiper { display:block; width:auto; max-width:none; margin:0; gap:0; padding:0; }
.cleanSwiper .swiper-wrapper { display:flex; height:auto; }
.cleanSwiper .swiper-slide { flex-shrink:0; min-width:0; height:auto; }
.cleanSwiper .swiper-slide a { display:block; width:100%; }
.carousel-panel:not(.clean-ready) .swiper-wrapper { gap:2%; }
.carousel-panel:not(.clean-ready) .swiper-slide { flex:0 0 23.5%; scroll-snap-align:start; }
.clean-ready .cleanSwiper { overflow:hidden; scroll-snap-type:none; scrollbar-width:none; }
@media(max-width:780px){ .carousel-panel:not(.clean-ready) .swiper-wrapper { gap:3%; } .carousel-panel:not(.clean-ready) .swiper-slide { flex-basis:48.5%; } }

/* 原有頁面 overflow 設定（集中在客製 CSS） */
#page { overflow: hidden; }

/* 活動說明：參考 11 月活動頁暖黃色，無額外卡片外框 */
#ct06.event-rules { padding:40px 20px; color:#333; background:#ffd557; }
.event-rules .innerbox { max-width:1100px; }
.event-rules h5 { margin:0 0 24px; }
.event-rules h6 { font-size:18px; line-height:32px; font-weight:700; margin:24px 0 0; }
.event-rules p, .event-rules ol { font-size:18px; line-height:32px; font-weight:400; margin:0; overflow-wrap:anywhere; }
.event-rules ol { list-style:decimal outside; padding-left:1.5em; }
.event-rules li { display:list-item; list-style:decimal outside; margin:0; }
.event-rules a { color:#3895b4; text-decoration:underline; }

@media (max-width:780px) {
  /* 手機版：區塊3 框線 706/780、區塊5 框線 707/780。
     依各自有效框寬調整，不與其他區塊共用放大倍率。 */
  #cleanTop .carousel-panel { --frame-width: 110.481586%; }
  #afteeTop picture { --frame-width: 110.325318%; }
  #ct06.event-rules { padding:30px 16px 40px; }
  .event-rules h5 { font-size:26px; }
  .event-rules h6, .event-rules p, .event-rules ol { font-size:16px; line-height:1.8; }
}
@media (max-width:490px) {
  /* 區塊 1：手機一行一張；其他商品及服務維持原欄數。 */
  #couponTop .event-grid.two { grid-template-columns:minmax(0,1fr); gap:14px; }
}


/* 2026 十二月周年慶：各區塊內容陰影（#bf4d00，30%） */
.dec-event {
  --event-shadow: rgba(191, 77, 0, 0.30);
}
/* 區塊 1、2、4 卡片，以及區塊 5 AFTEE 活動圖。透明圖依輪廓投影。 */
.event-grid img,
.event-aftee img {
  filter: drop-shadow(0 5px 7px var(--event-shadow));
}
/* 區塊 3：桌機陰影只落在內容框，不包含上方緞帶標題。 */
.carousel-panel {
  isolation: isolate;
}
.carousel-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 17.5% 0.6% 0.45%;
  border-radius: 2% / 3%;
  box-shadow: 0 5px 7px var(--event-shadow);
}
/* 輪播卡片保留少量內距，避免 Swiper 的 overflow 裁切陰影。 */
.cleanSwiper .swiper-slide a {
  padding: 0 5px 7px;
}
.cleanSwiper .swiper-slide img {
  filter: drop-shadow(0 3px 4px var(--event-shadow));
}
/* 桌機主視覺標題、各區標題和所有獨立副標不加陰影。 */
@media (max-width: 780px) {
  /* 手機版主視覺及各區緞帶標題加入陰影。 */
  .event-kv-title img,
  .event-title img {
    filter: drop-shadow(0 4px 5px var(--event-shadow));
  }
  .event-grid img,
  .event-aftee img {
    filter: drop-shadow(0 4px 5px var(--event-shadow));
  }
  /* 手機區塊 3 的標題與內容框在同一張透明圖，整張依輪廓投影。 */
  .carousel-panel::before { content: none; }
  .carousel-panel {
    filter: drop-shadow(0 4px 5px var(--event-shadow));
  }
  .cleanSwiper .swiper-slide a { padding: 0 4px 6px; }
  .cleanSwiper .swiper-slide img {
    filter: drop-shadow(0 3px 3px var(--event-shadow));
  }
}


/* 主視覺標題：沿用 11 月 EDM 上下浮動效果（桌機、手機共用） */
.event-kv-title {
  animation: dec-kv-float 2s ease-in-out infinite;
}
@keyframes dec-kv-float {
  0%, 100% { transform: translateY(20px); }
  50% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .event-kv-title { animation: none; }
}


/* 2026 十二月周年慶：手機版公司 Logo 沿用 11 月設定 */
@media (max-width: 780px) {
  header>.inner a.logo {
    background: url(../images/icon_hoho-02.svg) no-repeat center;
    background-size: cover;
    width: 130px;
    height: 100px;
    left: -10px;
  }
}
