/* 全域樣式與字型 */
:root {
    --primary-color: #5F4D44;
    --secondary-color: #6a994e;
    --light-color: #a7c957;
    --text-color: #000000;
    --text-color-white: #FFFFFF;
    --bg-color-main: #F5F2E9;
    --bg-color-dark: #38332F;
    --shippori-mincho: 'Shippori Mincho', serif;
    --noto-sans-tc: 'Noto Sans TC', sans-serif;
}

body {
    font-family: var(--shippori-mincho);
    color: var(--text-color);
    background-color: var(--bg-color-main);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--shippori-mincho);
    color: var(--primary-color);
}

h2 {
    color: var(--text-color);
    font-weight: 800;
    font-size: 2.25rem;
}
/* */
.py-5 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* 自訂 Bootstrap 顏色 */
.btn-primary, .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 頂部導覽列 */
.main-header {
    top: 0;
    z-index: 1020;
    height: 60px;
    position: fixed;
}

.logo {
    padding: 13px 5px;
    height: 60px;
}
.logo > h1 {
    display: none;
}
.logo > img {
    height: 32px;
}
.navbar {
    padding-top: 0;
}
.navbar-nav {}
.navbar-nav>.nav-item>.nav-link {
    font-weight: 600;
    font-size: 22px;
    line-height: 22px;
    padding: 19px 36px;
    height: 60px;
}
.navbar-nav>.nav-item>.nav-link-icon {
    font-size: 32px;
    padding: 14px 15px;
}
.navbar-toggler {
    height: 60px;
    width: 60px;
    border: none;
    border-radius: 0;
}
.navbar-toggler .navbar-toggler-icon {
    color: var(--primary-color);
}
.navbar-collapse {
    background-color: rgba(255,255,255,.98);
}

.navbar-collapse.show .nav-link {
    height: auto;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.navbar-collapse.show .nav-link-icon {
    text-align: center;
}

/* 輪播區塊 */
.full-width-slider {
    height: calc(100vh - 170px);
    height: 100vh;
    margin-top: 60px; /* 避開固定導覽列 */

    height: calc(100vh - 70px); 
}

.full-width-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-prev ,
.swiper-button-next {
    color: #FFF;
    text-shadow: 0 0 15px rgba(0,0,0,.5);
    opacity: .25;
}
.swiper-button-prev:hover ,
.swiper-button-next:hover {
    opacity: 1;
    transition: opacity 0.88s ease;
}
.swiper-pagination-bullet-active {
    background-color:  rgba(255,255,255,.6);
}
/* 最新資訊區塊 */
#goto-jp {
    position: relative
    z-index: 8;
    background-color: var(--primary-color) !important;
}
#goto-jp>.btn {
    font-size: 26px;
    font-weight: 800;
    line-height: 26px !important;
    padding: 68px 0 !important;
    width: 100%;
    border-radius: 0;
    animation: pulse-color 1.5s infinite;
}
#goto-jp>.btn:before {
    content: '';
    position: absolute;
    left: 50%;
    margin: 15px 0 0 90px; 
    width: 60px;
    height: 60px;
    background-image: url("../../assets/img/icon-click.png");
}
@keyframes pulse-color {
    0% {
        background-color: #5F4D44;
        box-shadow: 0 0 0 0 rgba(95, 77, 68, 0.35); /* 透明陰影 */
    }
    50% {
        background-color: #463830;
        box-shadow: 0 0 0 10px rgba(95, 77, 68, 0); /* 陰影向外擴散 */
    }
    100% {
        background-color: #5F4D44;
        box-shadow: 0 0 0 0 rgba(95, 77, 68, 0.35);
    }
}

/* 滑鼠懸停時的樣式 */
.pulse-button:hover {
    /* 應用動畫：動畫名稱、持續時間、執行次數 */
    animation: pulse-color 1.5s infinite;
}
/* 最新資訊區塊 */
#news {  }
#news .accordion-item {
    background-color: transparent !important;
    border: none;
    
}
#news .accordion-button ,
#news .accordion-body {
    font-family: var(--noto-sans-tc) !important;
}
#news .accordion-body p:last-child {
    margin-block: 0;
}
#news .accordion-button {
    padding: 25px 80px 20px 30px;
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color) !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(95,77,68,.2);
}
#news .accordion-item:last-of-type .accordion-button {
    border-bottom: none;
}
#news .accordion-button::after {
    display: block;
    position: absolute;
    top: 28px;
    left: 3px;
}
#news .accordion-button .date {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 100;
    margin: 0 !important;
    display: block;
    position: absolute;
    top: 28px;
    right: 3px;
}
#news .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    box-shadow: none;
    border: none;
}
#news .accordion-button:focus {
    box-shadow: none;
}
#news .accordion-collapse {
    position: relative;
    background-color: #FFFFFF;
    margin-left: 30px;
    border-radius: 0;
    border: 1px solid #DDDDDD;
}
#news .accordion-collapse::after {
    position: absolute;
    top: -11px;
    left: 12px;
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 12px solid #FFFFFF;
}
#news .accordion-collapse::before {
    position: absolute;
    top: -12px;
    left: 12px;
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 12px solid #DDDDDD;
}


/* 台灣店舖資訊 */
#stores {
    background-color: var(--bg-color-dark);
}
#stores h2 {
    color: var(--text-color-white);
}
#stores .card {
    font-family: var(--noto-sans-tc) !important;
    color: #FFFFFF;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 0;
    border: 0;
}
#stores .card>img {
    width: 220px;
    height: auto;
    border-radius: 0;

}
#stores .card .card-body {}
#stores .card .card-body .card-title {
    font-family: var(--noto-sans-tc) !important;
    font-size: 20px !important;
    font-weight: 600;
    margin-bottom: 12px;
}
#stores .card .card-body .card-text {
    font-size: 16px !important;
    margin-bottom: 8px;
}
#stores .card .card-body .text-tel {}
#stores .card .card-body .text-addr {}

/* 圖集 (Gallery) */
/* 讓頁面內容居中 */
.container {
    max-width: 1140px;
}

/* 按鈕群組的樣式 */
.filter-buttons .btn {
    color: var(--bg-color-dark);
    border-radius: 0;
    margin: 5px;
    font-family: var(--noto-sans-tc) !important;
    border: none;
    opacity: .6;
    background: transparent;
}
.filter-buttons .btn.active {
    color: var(--bg-color-dark);
    background-color: transparent;
    opacity: 1;
}

/* Isotope 容器樣式 */
.gallery-grid {
    position: relative;
    overflow: hidden;
}

/* Isotope 項目樣式 */
.gallery-item {
    /*float: left;*/
    width: 33.333%; /* 寬度為 32%，加上 margin 確保三欄佈局 */
    margin: 0;
    /*border-radius: 8px;*/
    overflow: hidden;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    cursor: pointer;
    
    /* 確保過渡效果 */
    transition: transform 0.4s, opacity 0.4s;
}

/* 確保圖片填滿容器 */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    padding: 15px;
}

.main-footer {
    background-color: var(--bg-color-dark) !important;
    font-family: var(--noto-sans-tc) !important;
    font-size: 15px;
    font-weight: 100 !important;
}
/* 項目在 hover 時的效果 */
.gallery-item:hover img {
    transform: scale(1.15);
}
.mfp-zoom-out-cur header, .mfp-zoom-out-cur footer, .mfp-zoom-out-cur section {
    filter: blur(8px);
}

#goto-jp:target,
#news:target,
#stores:target,
#gallery:target {
  scroll-margin-top: 60px; /* 根據你的 header 高度調整 */
}

/* 響應式設計 */
@media (max-width: 767px) {
    .full-width-slider {
        height: calc(100vh - 220px);
    }
    .gallery-item {
        width: 50%; /* 在手機上調整為兩欄 */
        /*margin: 1%;*/
    }
    .swiper-button-prev {
        left:  0;
    }
    .swiper-button-next {
        right: 0
    }
}

@media (max-width: 600px) {
    .full-width-slider {
        height: calc(100vh - 320px);
    }
}

@media (max-width: 500px) {
    .full-width-slider {
        height: calc(100vh - 450px);
    }
}
