@charset "UTF-8";
body{
  background-color: #fcf3de;
  overflow-x: hidden 
}
.mainframe {
  position: relative;
  padding: 0;
  margin: 0;
  background-color: #fcf3de;
  font-size: 15px;
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
}
.mainframe a {
  text-decoration: none;
  opacity:1;
}
.mainframe img {
  max-width: 100%;
  display: block;
}
.mainframe button {
  background: none;
  border: none;
}
.mainframe button:hover {
  cursor: pointer;
}
.mainframe p, .mainframe a, .mainframe p a, .mainframe p span {
  font-size: 15px;
  color: #000000;
  margin: 0;
}
.mainframe .section{
	width:100%;
	margin:4rem 0;
	padding:0;
}
.mainframe .pc {
    display: none
}

.mainframe .sp {
    display: block
}

@media screen and (min-width: 769px) {
    .mainframe .pc {
        display: block
    }

    .mainframe .sp {
        display: none
    }
}
/* 返回TOP按钮 */
#backtop {
    position: fixed;
    bottom: 100px;
    right: 15px;
    width: 35px;
    display: block;
    text-decoration: none;
    display: none;
    text-align: center;
    z-index: 5;
    transition: background-color 0.2s ease-in-out;
}

#backtop img {
    display: inline-block;
    width: 35px;
    margin-top: 9px;
}
/* === 載入畫面滿版遮罩 === */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

/* === 載入內容區 === */
.loader-content {
  text-align: center;
}

.loading-gif {
  width: 120px;
  height: auto;
  margin: 0 auto 20px auto;
}

/* === 進度條外框 === */
.loading-bar {
  width: 180px;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

/* === 進度條動畫 === */
.loading-progress {
  width: 0%;
  height: 100%;
  background: #000;
  animation: loading 3s ease forwards;
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* === 淡出效果 === */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/*TOP*/
.mainframe .top {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}
/* PC 版主視覺 */
.mainframe .top .top-bg {
    opacity: 0; /* 初始透明度為 0 */
    transition: opacity 1.5s ease-in-out; /* 淡入動畫 */
}
.mainframe .top .top-bg.show {
    opacity: 1; /* 淡入後透明度為 1 */
}
/* 主視覺標題 */
.mainframe .top .top-title {
    position: absolute;
    top: 60px;
    left: 3%;
    transform: translateY(-20%);
    width: 28%;
    opacity: 0; /* 初始透明度為 0 */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; /* 淡入和位移動畫 */
	z-index:2;
}
.mainframe .top .top-title.show {
    opacity: 1; /* 淡入後透明度為 1 */
    transform: translateY(0); /* 從上方移入 */
}
/* 手機版主視覺 */
.mainframe .top .mv {
    opacity: 0; /* 初始透明度為 0 */
    transition: opacity 1.5s ease-in-out; /* 淡入動畫 */
}
.mainframe .top .mv.show {
    opacity: 1; /* 淡入後透明度為 1 */
}

/*聯名插圖介紹*/
.mainframe .foreword{
	width:98%;
	max-width:900px;
	margin:4rem auto;
	display: flex;
    flex-direction: column;
	align-items: center;
}
.mainframe .foreword p{
	font-size:16px;
	letter-spacing:2px;
	line-height:2;
	text-align:center;
}
@media screen and (max-width: 900px) {
	.mainframe .foreword{
		margin:4rem auto 0 auto;
	}
}
@media screen and (max-width: 600px) {
	.mainframe .foreword{
		margin:4rem auto 0 auto;
		width:88%;
	}
	.mainframe .foreword p{
	    text-align:justify;
	}
	.mainframe .foreword p br{
		display:none;
	}
	
}

/*好丘品牌介紹*/
.mainframe .foreword .good-chos-brand-info{
	width: 80%;
    max-width: 900px;
    margin: 60px auto 100px auto;
    padding: 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
	border: 1px solid #000000; 
    border-radius: 50px; 
    box-sizing: border-box; /* 確保邊框不影響元素的總寬度 */
}
.mainframe .foreword .good-chos-brand-info img{
	width:80%;
	max-width:260px;
	margin:0 auto 30px auto;
}
.mainframe .foreword .good-chos-brand-info .info-text{
	width:95%;
	text-align:justify;
	letter-spacing: 1px;
    line-height: 1.8;
}
@media screen and (max-width: 900px) {
	.mainframe .foreword .good-chos-brand-info{
		width: 80%;
		padding: 40px;
		margin: 0 auto 100px auto;
	}
	.mainframe .foreword .good-chos-brand-info .info-text{
	width: 100%;
    text-align: justify;
	}
	.mainframe .foreword .good-chos-brand-info img{
		width:70%;
		max-width:250px;
	}
}
@media screen and (max-width: 600px) {
	.mainframe .foreword .good-chos-brand-info {
		padding: 30px;
		width: 100%;
		margin:0 auto 80px auto;
	}
	.mainframe .foreword .good-chos-brand-info img{
		width:70%;
		max-width:190px;
		margin: 0 auto 20px auto;
	}
}
/* === Foreword 段落淡入效果 === */
.foreword .text {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

.foreword .text.is-onscreen {
  opacity: 1;
  transform: translateY(0);
}

/* === 好丘品牌介紹：分段動畫 === */
.good-chos-brand-info {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.good-chos-brand-info.is-onscreen {
  opacity: 1;
  transform: translateY(0);
}

/* 內部元素個別淡入 */
.good-chos-brand-info img,
.good-chos-brand-info .info-text {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.good-chos-brand-info.is-onscreen img {
  transition-delay: 0.5s;
  opacity: 1;
}

.good-chos-brand-info.is-onscreen .info-text {
  transition-delay: 1s;
  opacity: 1;
}
/*聯名商品區*/
.mainframe .catalog{
	width:100%;
    display: flex;
    flex-wrap: wrap;
}
/*標題*/
.mainframe .catalog .tittle{
	width:100%;
	text-align:center;
	font-family: "Modak", system-ui;
	  -webkit-text-stroke: 1px #000000;
	  text-stroke: 1px #000000;
	  color: #ffffff;
	  font-weight: 500;
	  margin:0 auto 60px auto;
}
.mainframe .catalog .tittle h4{
	font-size: 60px;
	font-weight: 500;
	padding:0;
	margin:0 auto;
    line-height: 0.8;
}
@media screen and (max-width: 600px) {
	.mainframe .catalog .tittle h4{
	font-size: 50px;
	}
}
/* 每個商品 */
.mainframe .catalog .items {
  width: 50%;
  text-align: center;
  padding: 80px 20px 60px 20px;
  box-sizing: border-box;
}
.mainframe .catalog .items-1 {
	width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 80px 20px 60px 20px;
    text-align: center;
}
.mainframe .catalog .items-1 .swiper{
	width: 50%;
}
@media screen and (max-width: 768px) {
	  .mainframe .catalog .items {
		  padding: 60px 20px;
	  }  
  }

/* 編號標籤 */
.mainframe .item-num {
   position: absolute;
    top: 10px;
    right: 10px;
    font-family: "Modak", system-ui;
    -webkit-text-stroke: 1px #000000;
    text-stroke: 1px #000000;
    font-size: 50px;
    color: #ffffff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  @media screen and (max-width: 500px) {
	  .mainframe .item-num {
		top: 6px;
        right: 6px;
        font-size: 30px;
        width: 30px;
        height: 30px;
	  }
  }
/* 交錯背景色 */
.mainframe .catalog .color-1 {
  background-color: #8b4c2d; /* 深棕色 */
}
.mainframe .catalog .color-2 {
  background-color: #c18353; /* 淺棕色 */
}
.mainframe .catalog .color-3 {
  background-color: #9d6b45; /* 深棕色 */
}

/* Swiper 容器外層要相對定位，讓絕對定位的標號能定位 */
.swiper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    overflow: hidden;

}
.mainframe .catalog .swiper-slide img {
  width: 100%;
  display: block;
}

/* 商品文字 */
.mainframe .catalog .name {
  width:100%;
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 10px 0 5px;
  line-height:1.8;
}
.mainframe .catalog .price {
  width:100%;
  color: #fff;
  font-size: 15px;
  margin: 0 0 15px;
  line-height:2;
}

/* 按鈕樣式 */
.mainframe .catalog .buy-btn {
  display: inline-block;
  padding: 8px 28px;
  background-color: #000;
  color: #fff;
  font-size: 14px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  margin:0 auto;
}
.mainframe .catalog .buy-btn:hover {
  background-color: #fff;
  color: #000;
}
/*商品區特效*/
/* === 商品出現掀開特效（修正版） === */
.item-anim-1,.item-anim-2 {
  position: relative;
  overflow: hidden;
}

/* 圖片初始狀態：放大 + 隱藏 */
.item-anim-1 img ,.item-anim-2 img {
  transform: scale(1.1);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.37,0,0.63,1),
    opacity 0.4s ease 0.3s; /* 淡入延遲 0.3s */
  transform-origin: center;
  z-index: 1;
  position: relative;
}

/* 遮罩初始狀態：完全覆蓋 */
.item-anim-1::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #000; /* 可以改成任何你想要的底色 */
  transform-origin: right top;
  transform: scaleX(1);
  transition: transform 0.7s cubic-bezier(0.61,1,0.88,1);
  z-index: 5;
}
.item-anim-2::before {
	content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #000;/* 可以改成任何你想要的底色 */
  transform-origin: right top;
  transform: scaleX(1);
  transition: transform 0.7s cubic-bezier(0.61,1,0.88,1);
  z-index: 5;
}

/* 動畫觸發狀態 */
.item-anim-1.is-onscreen::before ,.item-anim-2.is-onscreen::before{
  transform: scaleX(0);
}
.item-anim-1.is-onscreen img,.item-anim-2.is-onscreen img {
  transform: scale(1);
  opacity: 1;
}
/*All items 按鈕*/
.all_items_btn{
	clear:both;
	width:100%;
	margin:60px auto 0 auto;
}
.p-sesame-footer__allitems {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.p-sesame-footer__allitems-link {
  display: flex;
  align-items: flex-start;
  column-gap: 0.3rem;
  text-decoration: none;
  color: #000;
  position: relative;
}

.p-sesame-footer__allitems-item {
  display: flex;
  flex-direction: column;
  row-gap: 0.05rem;
  width: fit-content;
  /*overflow: hidden;*/
}

/* "ALL ITEMS" 文字樣式 */
.p-sesame-footer__allitems-label {
  font-family: "Modak", system-ui;
  -webkit-text-stroke: 1px #000000;
  text-stroke: 1px #000000;
  font-size: 75px;
  color: #ffffff;
  font-weight: 500;
  line-height: 0.8;
}

/* 下方黑色波浪線 SVG */
.p-sesame-footer__allitems-border {
  display: grid;
  clip-path: polygon(0% 0,100% 0%,100% 100%,0 100%);
  transition: clip-path 0.8s cubic-bezier(0.16,1,0.3,1);
}

/* Hover 時波浪線動畫（左右掃過） */
@media (hover:hover) and (pointer:fine) {
  a:hover .p-sesame-footer__allitems-border {
    animation: forwardClip 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
  }
}

/* 波浪線動畫關鍵影格 */
@keyframes forwardClip {
  0% { clip-path: polygon(0% 0,100% 0%,100% 100%,0 100%); }
  30% { clip-path: polygon(100% 0,100% 0%,100% 100%,100% 100%); }
  30.1% { clip-path: polygon(0% 0,0% 0%,0% 100%,0 100%); }
  to { clip-path: polygon(0% 0,100% 0%,100% 100%,0 100%); }
}

/* 小箭頭 */
.p-sesame-footer__allitems-arrow {
  width: 25px;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

/* Hover 時箭頭位移 */
@media (hover:hover) and (pointer:fine) {
  a:hover .p-sesame-footer__allitems-arrow {
    transform: translate(20%,-20%);
  }
}

/* 響應式縮放 */
@media (max-width: 1024px) {
  .p-sesame-footer__allitems-label { font-size: 70px; margin: 0 auto; }
  .p-sesame-footer__allitems-arrow { width: 25px; }
  .p-sesame-footer__allitems-border{ width:100%; margin: 0 auto;}
}
@media (max-width: 768px) {
  .p-sesame-footer__allitems-label { font-size: 65px; margin: 0 auto; }
  .p-sesame-footer__allitems-arrow { width: 25px; }
  .p-sesame-footer__allitems-border{ width: 90%; margin: 0 auto;}
}
@media (max-width: 600px) {
  .p-sesame-footer__allitems-label { font-size: 55px; margin: 0 auto; }
  .p-sesame-footer__allitems-arrow { width: 20px; margin-left: -28px;}
  .p-sesame-footer__allitems-border{ width: 80%; margin: 0 auto;}
}

/*貝果動畫*/
.bagel-section {
  text-align: center;
  padding: 80px 20px;
}

.bagel-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  position: relative;
  margin-bottom: 40px;
}

/* === 初始狀態：縮小透明 === */
.bagel {
  width: 180px;
  opacity: 0;
  transform: scale(0.5);
  animation-fill-mode: forwards;
}

/* === 三張貝果依序出場 === */
.bagel1 {
  animation: appear 0.8s ease-out 0.2s forwards, wave 4s ease-in-out 1s infinite;
}
.bagel2 {
  animation: appear 0.8s ease-out 0.8s forwards, wave 4s ease-in-out 1.5s infinite;
}
.bagel3 {
  animation: appear 0.8s ease-out 1.4s forwards, wave 4s ease-in-out 2s infinite;
}

/* === 放大出場 === */
@keyframes appear {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* === 波浪擺動 === */
@keyframes wave {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-10px) scale(1.02); }
  50% { transform: translateY(0) scale(0.98); }
  75% { transform: translateY(10px) scale(1.02); }
}
@media (max-width: 900px) {
  .bagel-section {
    padding: 60px 13px 40px 13px;
  }
  .bagel-container {
	  gap: 5px;
  }
  .bagel {
	  width: 170px; 
  }
}
/* === 手機版（寬度小於 768px） === */
@media (max-width: 600px) {
  .bagel-section {
    padding: 60px 13px 40px 13px;
  }

  .bagel-container {
    gap: 0;
  }

  .bagel {
    width: 130px; /* ← 手機時自動縮小尺寸 */
  }
}


/*貝果介紹*/
.bagel-info{
  text-align: center;
  padding: 80px 20px;
  display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.bagel-info img{
	width:80%;
	max-width:500px;
	margin-bottom:40px;
}
/* === 文字區 === */
.bagel-text {
  font-size: 15px;
  color: #222;
  line-height: 1.8;
  width: 82%;
  max-width: 600px;
  margin: 0 auto;
  white-space: pre-line;
  font-family: 'Noto Sans TC', sans-serif;
  border-left: 3px solid transparent;
  text-align:justify;
  letter-spacing:2px;
}
/* === 貝果圖片進場淡入 === */
.bagel-info img {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.bagel-info img.is-onscreen {
  opacity: 1;
  transform: translateY(0);
}

/* === 快閃資訊區 === */
.pop-up-store-info {
  width:100%;
  margin:0 auto 8rem auto;
  display:flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;

}

/* 內層框 */
.pop-up-inner {
  width:90%;
  max-width:750px;
  margin: 0 auto;
  position: relative;
  text-align:center;
}

/* 上方視覺圖層 */
.pop-up-visual {
  position: relative;
  margin-bottom: -50px;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}

.bagel-top {
  width: 195px;
  position: relative;
  z-index: 1;
}

.popup-title-svg {
  position: absolute;
  bottom: -8%;
  width: 450px;
  z-index: 2;
}
/* === 初始狀態 === */
.bagel-top,
.popup-title-svg {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* === 出場動畫 === */
.pop-up-visual.show .bagel-top {
  opacity: 1;
  transform: translateY(0);
  animation: swing 3s ease-in-out 0.8s infinite;
}

.pop-up-visual.show .popup-title-svg {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s; /* SVG 晚點淡入 */
}

/* === 左右搖擺動畫 === */
@keyframes swing {
  0%, 100% {
    transform: translateY(-6px) rotate(6deg);
  }
 
  50% {
    transform: translateY(0) rotate(0deg);
  }
 
}
/* === 手機板調整 === */
@media (max-width: 768px) {
  .pop-up-visual {
    margin-bottom: -40px;
  }
  .bagel-top {
    width: 160px;
  }
  .popup-title-svg {
    width: 340px;
    bottom: -6%;
  }
}


/* 粉紅底內容框 */
.popup-content {
  background-color: #f4c7c3;
  border-radius: 40px;
  padding: 80px 40px 60px 40px;
  color: #333;
  line-height: 1.8;
  box-sizing: border-box;
}

/* 黑底白字標題 */
.info-title {
  background-color: #000;
  color: #fff;
  display: inline-block;
  padding: 8px 20px;
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing:2px;
}

/* 內文段落 */
.info-block {
  margin-bottom: 30px;
}
.info-block p {
  margin: 6px 0;
  font-size:16px;
  letter-spacing:3px;
  font-weight:500;
}
.info-block .underline{
  text-decoration: underline;
  font-size:16px;
  letter-spacing:3px;
  font-weight:500;
}
.info-block .underline span,.info-block p span{
	letter-spacing:0px;
}
.info-block strong {
  font-weight: 700;
}
.info-block .text-s{
  color: #000;
  letter-spacing:2px;
  font-size:14px;
  line-height:2;
}
.info-block .text-s span{
	letter-spacing:0px;
}
.info-block .pop-tag{
	width:80%;
	max-width:200px;
	margin:10px auto;
}
.info-block h5{
	font-size:13px;
	letter-spacing:2px;
}
/* === 手機板調整 === */
@media (max-width: 768px) {
  .popup-content {
    padding: 60px 10px 30px 10px;
    border-radius: 25px;
  }
  .info-title {
    font-size: 18px;
  }
  .info-title span{
	  letter-spacing:0px;
  }
}
