@import url("reset.css");

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
  box-sizing: border-box;
}

img {
  display: block;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 100px;
}

h1.seo-h1,
h2.seo-h2,
h3.seo-h3,
h4.seo-h4,
h5.seo-h5,
h6.seo-h6 {
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  transform: scale(0);
}
h3 {
  display: block;
  font-size: 1.17em;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
.aline {
  text-decoration: underline;
  color: blue;
}

ol,
ul,
p {
  margin-top: 0;
  margin-bottom: 0rem;
}

.img_m {
  display: none;
}

.green {
  color: #00a19b;
}
.line_green {
  text-decoration: underline;
  color: #00a19b;
  font-weight: bold;
}

.gray-7 {
  color: #7c7c7c;
}

.gray-9 {
  color: #434343;
}

em {
  font-style: normal;
}

.red {
  font-weight: bold;
  color: #f8524c;
}

.btn {
  width: 100%;
  max-width: 12.5rem;
  height: 4.0625rem;
  border-radius: 4px;
  background: #00a19b;
  color: #ffffff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  margin: 0 10px;
}

.btn:hover {
  opacity: 0.7;
}

.btn_line {
  width: 150px;
  padding: 12px 0;
  margin: 10px 0 10px 0;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  color: #00a19b;
  background-color: rgb(0, 0, 0, 0);
  border: 1px solid #00a19b;
}

.btn_line:hover {
  opacity: 0.7;
}
.btn:disabled {
  background: #acacac;
  color: #ffffff;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .btn {
    max-width: 8.75rem;
  }
}

.btn_txt {
  color: #3cbaad;
  text-decoration: underline;
}
.btn_group {
  width: 100%;
  display: flex;
  justify-content: center;
}

article {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
}

/*--kv------------------------------------------------------------*/
h1 {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.kv {
  width: 100%;
  position: relative;
  padding-top: 30px;
}

.kv > img {
  width: 100%;
}
.kv_pc {
width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end; /* 垂直置中 */
  justify-content: flex-start; /* 靠左對齊 */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background 0.3s ease; /* 增加切換時的平滑感 */
    overflow: hidden;
}

.title-img {
  display: none; /* 預設全部隱藏 */
  max-width: 55%; /* 防止圖片超出螢幕 */
  margin-left: 8%;
  height: auto;
}

.copy-r {
  position: absolute;
  right: 40px;
  bottom: 20px;
  color: #023362;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
}

    .kv_m{
        display: none;
    }

    .brush_end {
  background-image: url("../img/brush_ball.png");
  position: relative;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right top;
  width: 100%;
  height: 300px;
}

/* 1. 1920px 以上 (Ultra Wide) */
@media (min-width: 1921px) {
  .kv_pc { background-image: url('../img/bg-xxl.jpg');
height: 680px; }
  .title-xxl { display: block; }
}

/* 2. 1920px 以下 (Desktop) */
@media (max-width: 1920px) and (min-width: 993px) {
  .kv_pc { background-image: url('../img/bg-xl.jpg');height: 640px; }
    .title-xxl { display: block; }
    .title-img {
        margin-left: 0;
        max-width:calc(100vw / 2 + 300px);
    }
}
@media (max-width: 1280px) and (min-width: 993px){
    .kv_pc{
        background-image: url('../img/bg-xl.jpg');
        height: 540px;
    }
    .title-img {
        margin-left: -5%;
        max-width:calc(100vw / 2 + 340px);   
    }
        .title-xxl { display: block; }
}
@media (max-width: 992px) and (min-width: 769px) {
    .kv_pc{
        background-image: url('../img/bg-lg.jpg');
    height: 450px;}
    .title-img {
        margin-left: -15%;
        max-width:calc(100vw / 2 + 320px);   
    }
    .title-xxl { display: block; }
}

/* 3. 768px 以下 (Tablet) */
@media (max-width: 768px) {
  .copy-r{
    display: none;
  }
  .kv_m {
    display: block;
    width: 100%;
    height: auto;
}
.brush_end{
    background-size: cover;
    width: 100%;
    background-position: right bottom;
    height:100px;
}
}

/*section2*/
.brush {
  background-image: url("../img/brush.png");
  position: relative;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  width: 100vw;
  height: 217px;
}
.slogan {
  width: 100%;
  text-align: center;
  margin: 60px 0;
  padding: 0 44px;
}

.slogan_warpper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.slogan p {
  display: inline-block;
  color: #515151;
  font-weight: bolder;
  font-size: 22px;
  text-align: left;
  line-height: 1.75;
  max-width: 42%;
}

.slogan img {
  display: inline-block;
  width: 100%;
  max-width: 50%;
  margin-right: 40px;
}

@media screen and (max-width: 992px) {
  .slogan p {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .slogan {
    margin: 60px auto 20px;
  }
  .slogan_warpper {
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
  }
  .slogan img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    margin-right: 0px;
  }
  .slogan p {
    max-width: 100%;
  }
}
/*區塊1 活動時間------------------------------------------------------------*/
#part1 {
  /* background-image: url('../img/bg_baseball_player.svg'); */
  background-repeat: no-repeat;
  overflow: hidden;
  background-position: bottom center;
  padding-bottom: 30px;
  margin-left: 0px;
  margin-right: 0px;
  background-color: #dcf3f9;
}
.baseball {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
  padding-top: 50px;
}
.baseball_cont {
  width: 100%;
  text-align: center;
}

.baseball_cont img {
  margin: 0 auto;
  max-width: 900px;
  padding: 20px;
}

.baseball_cont h3 {
  font-size: 28px;
  padding-bottom: 20px;
  letter-spacing: 0.2rem;
  line-height: 1.8;
  color: #3a3a3a;
}

.baseball_cont p {
  line-height: 24px;
  color: #434343;
  font-weight: bold;
}
@media screen and (max-width: 920px) {
  .baseball {
    padding-bottom: 0px;
    padding-top: 0px;
  }
  .baseball_cont h3 {
    font-size: 25px;
  }
  .baseball_cont img {
    width: 85%;
  }
}

@media screen and (max-width: 430px) {
  .baseball_cont h3 {
    font-size: 22px;
    padding-right: 80px;
    padding-left: 80px;
  }
}
@media screen and (max-width: 390px) {
  #part1 {
    /* height: 62vh; */
  }
}
@media screen and (max-width: 375px) {
  #part1 {
    /* height: 550px; */
  }
}

/*活動 ------------------------------------------------------------*/
#part2 {
  padding-bottom: 80px;
  background-color: #dcf3f9;
}
#part3 {
  padding-bottom: 60px;
  background-color: #dcf3f9;
}
#part4 {
  padding-bottom: 80px;
  background-color: #f3f9ff;
}
.campaign_title {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 18px;
}
.campaign_title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #0868ac;
  line-height: 1.75;
}

.campaign_title h2 span {
  font-size: 40px;
  color: #00a19b;
}
@media screen and (max-width: 540px) {
  .campaign_title h2 {
    font-size: 30px;
    line-height: 38px;
  }
  .campaign_title h2 span {
    font-size: 30px;
    line-height: 1.75;
  }
}
@media screen and (max-width: 480px) {
  .campaign_title h2 {
    font-size: 28px;
    line-height: 38px;
  }
}

@media screen and (max-width: 430px) {
  .campaign_title h2 {
    font-size: 22px;
    line-height: 35px;
  }
}
@media screen and (max-width: 375px) {
  .campaign_title h2 {
    font-size: 20px;
    line-height: 33px;
  }
}
.campaign_title_2 p {
  text-align: center;
  color: #000;
  font-size: 20px;
  line-height: 32px;
  padding: 0 44px;
  letter-spacing: 1px;
  text-indent: 1px;
  margin-bottom: 30px;
}
.title-decro {
  max-width: 30px;
  display: inline-block;
  margin-left: 3px;
  animation: lightenMove 2.5s ease-in-out infinite;
}
@keyframes lightenMove {
  0% {
    opacity: 0;
    left: -30px;
  }
  15% {
    opacity: 1;
    left: 0;
  }
  85% {
    opacity: 1;
    left: 0;
  }
  100% {
    opacity: 0;
    left: 30px;
  }
}

.campaign_wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
  align-items: start;
  margin: 0 auto;
}

.campaign_cont {
  width: 50%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: space-evenly;
}

.campaign {
  position: relative;
  width: 100%;
  margin: 0 auto;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 40px;
  background-color: #fff;
  min-height: 380px;
}

.w-100 {
  width: 100%;
}
.single_column {
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.gradient-border {
  border-bottom: 8px solid;
  border-image: linear-gradient(to right, #0289a3, #0074c8) 1;
}

.campaign::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 72px solid #dcf3f9;
  border-right: 72px solid transparent;
}

.campaign_cont:nth-child(odd) {
  padding: 20px;
}

.campaign_cont:nth-child(even) {
  padding: 20px;
}

.campain_img {
  width: 85%;
  margin: 0 auto;
  /* overflow: hidden; */
  /* border-radius:20px; */
}
.campain_img img {
  transition: transform 0.3s ease;
}
.campain_img:hover img {
  transform: scale(1.1);
}
.campain_img img {
  margin: 0 auto;
  width: 100%;
}
.discount-details {
  width: 100%;
  letter-spacing: 0.1rem;
  font-size: 18px;
  color: #434343;
  padding-bottom: 10px;
  line-height: 1.5rem;
}

.discount-details h3 {
  font-size: 25px;
  padding-bottom: 20px;
  letter-spacing: 0.1rem;
  color: #3cbaad;
}

.discount-details h3:after {
  display: block;
  left: 0;
  top: 10px;
  content: "";
  width: 100%;
  height: 2px;
  margin-top: 5px;
  background-color: #3cbaad;
}

.discount-details h4 {
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0.1rem;
  color: #3cbaad;
}

.discount-details .time {
  font-size: 14px;
  font-weight: normal;
  line-height: 24px;
  color: #595959;
  padding-bottom: 10px;
}

.discount-details .text {
  font-weight: bold;
  /* list-style-type: circle; */
  margin-left: 1.2em;
  line-height: 28px;
  padding-top: 10px;
  text-align: justify;
  color: #595959;
}

.discount-details span {
  font-size: 16px;
}

.discount-details p {
  margin: 12px 0;
}

.discount-details li {
  margin: 4px 0;
}

@media screen and (max-width: 768px) {
  .campaign_cont {
    width: 100%;
  }
  .campaign {
    min-height: auto;
  }
  .single_column {
    flex-direction: column;
  }
  .campain_img {
    width: 70%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 430px) {
  .campaign_title_2 p {
    font-size: 1rem;
  }
  .campaign{
    padding: 24px;
  }

  .campain_img{
    width: 100%;
  }
}
@media screen and (max-width: 375px) {
  .campaign_title_2 p {
    font-size: 16px;
  }
}
/*--PC------------------------------------------------------------*/
@media screen and (max-width: 1200px) {
  .mobile-pay-header {
    width: 90%;
  }
}

/*--iPad pro------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
}

/*--Pad------------------------------------------------------------*/
@media screen and (max-width: 920px) {
}

/*--iPad-----------------------------------------------------------*/
@media screen and (max-width: 768px) {
}

/*--Mobile-----------------------------------------------------------*/
@media screen and (max-width: 540px) {
  .campain_img {
    width: 100%;
  }
  .campain_img img {
    margin-bottom: 10px;
    border-radius: 20px;
  }

  .discount-details {
    width: 100%;
  }
  
  .discount-details h3 {
    font-size: 20px;
    letter-spacing: 0.1rem;
    padding: 10px 0;
  }

  .discount-details ul{
    padding-left: 12px;
  }

  .discount-details .text {
    line-height: 26px;
    font-size: 15px;
    padding-top: 20px;
  }

  .discount-details ol .content {
    font-size: 14px;
    line-height: 25px;
  }
}

/* -----------------------------------
 *  注意事項(彈跳視窗popup)
 * ----------------------------------- */
.show-popup {
  text-decoration: none;
}
.active-body {
  overflow: hidden;
}
.overlay-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1000;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.7);
}

.popup {
  display: block;
  background: #fff;
  position: absolute;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 1000px;
  top: 50%;
  left: 50%;
  width: 80%;
  max-height: 100vh;
  padding: 20px 40px;
  height: auto;
  word-break: break-all;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  cursor: default;
  z-index: 10001;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}
.popup .scrollAreaWrapper {
  max-height: 70vh;
  background-color: transparent;
  padding: 20px;
  padding-left: 0px;
  padding-bottom: 0px;
  padding-top: 0px;
  margin: 20px 0px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #acacac #f0f0f0;
}
.popup .scrollAreaWrapper::-webkit-scrollbar {
  width: 6px;
}
.popup .scrollAreaWrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.popup .scrollAreaWrapper::-webkit-scrollbar-thumb {
  background: #acacac;
  border-radius: 20px;
}
.popup h4 {
  text-align: left;
}
.popup .scrollAreaWrapper ul {
  margin-top: 0;
  text-align: justify;
  padding-left: 35px;
}
.popup .scrollAreaWrapper li {
  font-size: 14px;
  /* margin-left: 1.2em; */
  line-height: 20px;
  text-align: justify;
  color: #333;
}

@media (max-width: 768px) {
  .popup {
    width: 92%;
    padding: 20px;
  }
  .popup .p1 {
    font-size: 20px;
    width: 96%;
    margin: 0 auto 1em;
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  cursor: pointer;
  right: 10px;
}

.popup .scrollDown_btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #fff;
  -webkit-box-shadow: 0px 0px 4px 2px #d9d9d9;
  box-shadow: 0px 0px 4px 2px #d9d9d9;
  color: #00a19b;
  border-radius: 30px;
  font-weight: bold;
  padding: 10px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  width: 80%;
  max-width: 250px;
  text-align: center;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .popup {
    background: #fff;
  }
}

.time-end-red {
  color: red;
  font-style: normal;
  font-weight: bold;
  font-size: 0.8rem;
}

/*--注意事項清單-----------------------------------------------------------*/
/* 外層是數字 */
.main-list {
  list-style-type: decimal;
  padding-left: 20px;
  letter-spacing: 1px;
}

/* 內層是圓點 */
.main-list ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 5px;
}

.main-list li {
  margin-bottom: 10px;
}

.notice-dash {
  padding-left: 14px;
  font-size: 14px;
}
.notice-number {
  padding-left: 14px;
  font-size: 14px;
}

.main-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-list ol > li {
  counter-increment: section;
  position: relative;
  padding-left: 22px; /* 整段左側空間（包含數字寬度）*/
}
.main-list ol > li::before {
  content: counter(section) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2em;
  text-align: left;
}

/* 內層無序/有序清單 (子項) */
.main-list ol > li > ul,
.main-list ol > li > ol {
  margin: 0.3em 0 0 0;
  padding-left: 2.4em; /* 子項的左縮排（後續行會跟子項文字對齊） */
  list-style: disc;
}

/* 子項 li 樣式 */
.main-list ol > li > ul > li,
.main-list ol > li > ol > li {
  margin-bottom: 0.4em;
}

/* 用於 (1)、(2) 這種小標示的段落，採懸掛縮排：
   padding-left 決定後續行起點，text-indent 負值把第一行拉回編號位置 */
.notice-number {
  display: block;
  padding-left: 20px; /* 後續行對齊位置 */
  text-indent: -20px; /* 將第一行拉回編號位置 */
  margin: 0.3em 0;
  font-weight: normal;
}

/* 用於 - 開頭的細項（notice-dash），與上面相同邏輯 */
.notice-dash {
  display: block;
  padding-left: 16px;
  text-indent: -13px;
  font-size: 14px;
}

/* 當你在某些子清單想取消圓點（像你原本曾用 list-style:none） */
.main-list ol > li .no-marker {
  list-style: none;
  padding-left: 0;
}

@media (max-width: 540px) {
  .main-list {
    padding-left: 0px;
  }
}
