﻿body {
    display: flex;
    flex-direction: column;
}

.navfont {
    font-size: 16px;
    font-weight: bold
}
#nav {
    background-color: #f2f0ef;
}
#nav2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

#OnLine .slider {
    list-style: none;
    padding: 0;
}



.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove the gap so it doesn't close */
}

#nav333 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
}
#_header {
    margin: 16px 40px 0px 40px;
    width: 100%;
    max-width: 1270px;
}
#nav3 ul li {
    display: inline-block;
}
.loginposition {
    position: absolute;
    top: 18px;
    
}
.menuposition {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.menuposition.open {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 24px;
}

.menuposition li:not(:last-child) {
    background-image: repeating-linear-gradient(
        to bottom,
        #979797 0,        
        #979797 4px,      
        transparent 4px,
        transparent 6px
    );
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1px 40%; 
}

.menuposition.open li:not(:last-child) {
    background-image: none;
}

.r_offset24{
    right:24px;
}
.r_offset18{
    right:18px;
}
.navbottomline {
    border-bottom: 10px solid #ae9489;
}

#_main {
    padding-bottom: 50px;
    margin-top: 35px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    align-items: flex-start;
}
#slide_left {
    display: flex;
    align-items: center;
    justify-content: center;
    
}
#slide_right {
    width: 100%;
    padding-top: 45px;
}
#index_2 {
    width: 100%;
    background-color: #e2dbd9;
    padding-bottom: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

#index_3 {
    width: 100%;
}
    
#SFPrint {
    width: 100%;
    background-color: #66976e;
    text-align: center;
    padding: 16px;

}

.br {
  display: none; 
}

.news-layout {
    display: flex;
    flex-wrap: wrap;
    align-items:center;
    justify-content:center;
}

.box-wrapper {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    width:100%;
    div {
            min-width:272px;
        }
}



.box-img {
    width:100%;
    img {
            width:100%;
          }
}

.sticker-wrapper {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    margin:0 auto;
}


.e-news-content .image img {
    width: 100%;
}

.new-max {
    max-width: 268px;
}

@media (min-width:720px) {
    .Cart-pc {
        max-width: calc(100vw - 300px);
    }
}

@media (max-width: 580px) {
  .br {
    display: block; 
    margin-bottom: 8px;
  }
}
#_bottom {
    color: white;
    font-size: 14px;
    padding: 0;
}
    #_bottom a {
        text-decoration: none;
        color: white;
    }
        #_bottom a:hover {
            text-decoration: none;
            color: lightgray
        }

.fileUpload {
    position: relative;
    overflow: hidden;
}

    .fileUpload input.upload {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0;
        font-size: 22px;
        cursor: pointer;
        opacity: 0;
        filter: alpha(opacity=0);
    }


    .mb40 {
    margin-bottom: 40px;
}

.navbar {
    margin-bottom: 16px;
    gap: 24px;
}

.hamburger {
  display: none; 
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #979797;
  margin: 3px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-link {
    padding: 0 !important;
    margin-right: 10px;
}

.dropdown-menu {
    right: 0px;
    left: auto;
}

.dropdown-menu.open {
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-menu.open li a {
    text-align: center;
}

.e-container {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin: 0 36px;
}

.about-main {
    text-align: center;
    padding: 0 40px;
}

.about-main img {
    width: 100%;
    max-width: 560px;
}

.about-title {
    font-size: 20px;
    color: #7d7d7d;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 32px;
}

.about-content {
    font-size: 14px;
    color: #7d7d7d;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 32px;
}

.about-divider {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ebebeb;
}

.service-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 18px;
    color: #f08300 ;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 32px;
}

.service-text {
    font-size: 15px;
    color: #7d7d7d ;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 20px;
}

.service-ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: #7d7d7d;
    font-weight: 600;
}

.service-ul li span{
    color: #f08300 ;
    letter-spacing: 1px;
    line-height: 20px;
}

.member-title-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 74px ;
    background-color: #ebebeb;
}

.custom-dash {
  position: relative;
}

.custom-dash::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  opacity: 60%;
  background: repeating-linear-gradient(
    to right,
    #2b2b2b 0 4px,      
    transparent 2px 8px 
  );
}


.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 64px;
    gap: 24px;
}

.register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 32px;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 24px;
    border-bottom: 1px solid #dddddd;
    max-width: 520px;
}

.register-container2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 32px;
}

.input-style {
    width: 100%;
    max-width: 480px;
}

.w-100 {
    width: 100%;
}

.m-230 {
    max-width: 230px;
}

.input-style2 {
    width: 100%;
    max-width: 480px;
}

.input-style2 .text-danger {
    width: 100%;
}

.input-group-e {
    display: flex;
    gap: 20px;
    max-width: 480px;
}

.input-style-hor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    gap: 20px;
}

.btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    gap: 24px;
}

.btn-wrapper div {
    width: 100%;
}

.btn-wrapper button {
    height: 40px;
    width: 100%;
}

.btn-text a{
    color: #717171;
}

.agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    max-width: 480px;
    margin-bottom: 40px;
}

.agreement span {
    white-space: nowrap;
}

.agreement a {
    white-space: nowrap;
    text-align: left;
}

.agreement-wrapper {
    padding-top: 16px;
    margin-left: 16px;
}

.packbox-banner img{
    width: 100%;
}

.card-wrapper {
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.card-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}



.box-img-wrapper {
    display: flex;
    flex-direction: column;
    align-content:start;
}

.card-input {
    background-color: #f2f0ef;
    border-radius: 16px;
    padding: 20px 24px 6px 24px;
    margin: auto;
}

.card-input-group {
    display: flex;
    gap: 20px;
}

.card-input-group div {
    width: 100%;
}

.card-hint {
    font-size: 14px;
    color: #66976e;
    margin-top: 8px;
    margin-bottom: 0;
}

@media (max-width: 1320px) {
    .card-container .zero {
        margin: auto;
    }
    .box-img-wrapper {
        flex-direction:row;
    }
}

@media (max-width: 1080px) {
    .box-img-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .e-container {
        align-items: center;
        flex-direction: column;
        margin: 0 24px;
    }
    .slider-wrapper {
        display: flex;
        gap: 40px;
    }
    
}

@media (max-width: 720px) {
    .navbar {
        a {
              margin:0 !important;
          }
    }

    .slider_left {
       
    }
    

  .std_a_color, #nav3 { display: none !important; }

  /* 漢堡按鈕 */
  .hamburger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    background: transparent; border: 0; cursor: pointer; padding: 0;
  }
  /* 漢堡變 X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* 手機版選單（預設隱藏） */
  #_header {
    margin: 16px 20px;
  }
.mobileMenu.open {
   background-color: #f2f0ef;
   height: 100dvh;
   position: fixed;
   top: 0;
   z-index: 1000;
   padding: 16px 20px;
   margin: 0 !important;
  }
 #nav3.open {
    display: flex !important;
  }
  #nav2_1.open {
    display: flex !important;
  }
  #nav2.open {
    flex-direction: column;
  }
  .std_a_color.open ul li{
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 450px) {
    .slider-wrapper {
        flex-direction: column;
        gap: 0px;
    }
}

@media (max-width: 450px) {
    .e-flex-column {
        flex-direction: column;
    }
    .box-input-phone {
        flex-direction: column;
        gap:0;
        margin-top:24px;
    }
    .display-none {
        display:none;
    }
    .pay-mobile {
        width:100%;
        margin-top:4px;
    }
}