:root {
	--theme-form-field-padding: 0 20px;
}

.ct-breadcrumbs-shortcode {
	margin-bottom: 2.5em;
	--theme-text-color: var(--theme-palette-color-1);
	--theme-link-initial-color: #fff;
}

@media screen and (max-width: 768px) {
	.ct-breadcrumbs-shortcode {
		text-align: center;
	}
}

/* ═══════════════════════════════
   Jōzō 卡片跑馬燈樣式（v6 — Pop 永久顯示版）
   ═══════════════════════════════ */

.jozo-cards-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.jozo-swiper {
  width: 100%;
  overflow: visible !important;
}

.jozo-slide {
  position: relative;
  cursor: pointer;
}

.jozo-card {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  border-radius: 16px;
  overflow: hidden;
  background: #e0dbd3;
}

.jozo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jozo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.jozo-card__title {
  display: none;
}

.jozo-card__pop {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 32px);
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.jozo-card__pop-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4;
  text-align: center;
}

.jozo-card__pop-content {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  margin: 0.3rem 0 0 !important;
  padding: 0 !important;
  line-height: 1.7;
  text-align: center;
}

.jozo-card__pop-content.is-open {
  color: #FFB085;
  font-weight: 700;
}

.jozo-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.jozo-pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.jozo-pagination-dot.is-active {
  background: #1a1a1a;
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .jozo-card {
    padding-bottom: 133.33%;
  }
  .jozo-card__pop-title {
    font-size: 1.2rem;
  }
  .jozo-card__pop-content {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════
   Jōzō 核心入口的動態效果
   ═══════════════════════════════ */

/* 1. 定義基礎的自動漂浮動畫 */
@keyframes softFloating {
    0% {
        transform: translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-20px);
        box-shadow: 0 30px 50px rgba(255, 216, 0, 0.2); 
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

/* 2. 套用動畫與優化過渡 */
.floating-card {
    backface-visibility: hidden;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s ease, 
                z-index 0s;
    animation: softFloating 5s ease-in-out infinite;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* 3. 製造卡片間的錯落感 */
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.2s; animation-duration: 5.5s; }
.card-3 { animation-delay: 0.6s; animation-duration: 4.8s; }

/* 4. 整合 Hover 互動效果 */
.floating-card:hover {
    animation-play-state: paused;
    transform: translateY(-30px) scale(1.04); 
    box-shadow: 
        0 15px 25px rgba(0, 0, 0, 0.2), 
        0 40px 70px rgba(255, 216, 0, 0.5),
        0 0 25px rgba(255, 216, 0, 0.2);
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
}

/* ==========================================================================
   台中 JŌZŌ 插畫專用 - 零容器變更、自由綁定純動態庫（不影響排版）
   修正版：強制置頂最上層，且不擋滑鼠點擊
   ========================================================================== */

.ani-jozo-swing, .ani-jozo-float, .ani-jozo-bounce, .ani-jozo-fadeup {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: none !important;
}

.ani-jozo-swing {
  display: inline-block !important;
  max-width: 300px !important;
  height: auto !important;
  transform-origin: bottom center;
  animation: jzSwing 6s infinite ease-in-out;
}
@keyframes jzSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3.5deg); }
}

.ani-jozo-float {
  display: inline-block !important;
  max-width: 300px !important;
  height: auto !important;
  animation: jzFloat 5s infinite ease-in-out;
}
@keyframes jzFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.ani-jozo-bounce {
  display: inline-block !important;
  max-width: 300px !important;
  height: auto !important;
  animation: jzBounce 7s infinite ease-in-out;
}
@keyframes jzBounce {
  0%, 80%, 100% { transform: translateY(0) scale(1); }
  90% { transform: translateY(-6px) scale(1.02); }
}

.ani-jozo-fadeup {
  display: inline-block !important;
  max-width: 60px !important;
  height: auto !important;
  animation: jzFadeUp 4.5s infinite linear;
}
@keyframes jzFadeUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { transform: translateY(-25px) scale(1.15); opacity: 0; }
}

@media (max-width: 991px) {
  .ani-jozo-swing, .ani-jozo-float, .ani-jozo-bounce, .ani-jozo-fadeup {
    display: none !important;
  }
}

/* ============
   文章Banner比例保持在16:9的大小
============ */
.page_banner {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

.page_banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ============================
   左右欄強制等高
============================ */
.page_skills_wrapper {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center;
    gap: 20px;
}

.page_skill01, .page_skill02 {
    flex: 1 !important; 
    height: auto !important;
}

@media (max-width: 768px) {
    .page_skills_wrapper {
        flex-direction: column !important;
    }
}

/* ==========================================
   預設：桌面/電腦模式 (Desktop) - 1rem
   ========================================== */
.page_time, 
.page_time .elementor-shortcode,
.page_time .store-age-wrapper {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    color: #ffffff !important;
    font-family: "Noto Serif TC", serif !important;
    font-weight: 600 !important;
    line-height: 1.5em !important;
    letter-spacing: 0.5px;
}

.page_time .age-cutoff,
.page_time .age-result {
    display: block !important;
    width: 100% !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
}

.page_time .age-result {
    margin-top: 0.3em !important;
}

@media (max-width: 1023px) {
    .page_time .age-cutoff,
    .page_time .age-result {
        font-size: 0.8rem !important;
    }
}

/* ============
   文章內內鍵功能關閉
============ */
.ct-share-box,
[data-share],
.sharedaddy,
.jetpack-sharedaddy,
.wpcnt,
#jp-post-flair {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ct-like-button,
.ct-likes-meta,
.wp-block-jetpack-likes,
#like-options,
#jp-relatedposts + div,
div[id^="like-options-"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ct-related-posts,
[data-related-posts],
#jp-relatedposts,
.relatedposts,
#related_posts {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ct-share-box + hr,
#jp-post-flair + hr,
.sharedaddy + hr {
    display: none !important;
}

/* ==========================================================================
   地方人/地方室/地方曆容器 (page_place) 
   ========================================================================== */

.page_place {
    display: flex !important;
    width: 80% !important;        
    max-width: 1200px !important;  
    margin-left: auto !important;  
    margin-right: auto !important;
    padding: 0 !important;         
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .page_place,
    .page_place .elementor-widget-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important; 
        flex-wrap: nowrap !important;   
        width: 100% !important;
    }

    .page_place_f01,
    .page_place_f02,
    .page_place_f03 {
        flex: 1 !important;              
        margin-left: 5px !important;     
        margin-right: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; 
        align-items: center !important;     
        box-sizing: border-box !important;
    }
}

@media (max-width: 767px) {
    .page_place {
        width: 90% !important; 
    }

    .page_place,
    .page_place .elementor-widget-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;    
        justify-content: center !important;
        width: 100% !important;
    }
    
    .page_place_f01,
    .page_place_f02,
    .page_place_f03 {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 340px !important;       
        height: 140px !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }

    .page_place_f03 {
        margin-bottom: 0 !important;
    }

    .page_place_f01 > *:first-child,
    .page_place_f02 > *:first-child,
    .page_place_f03 > *:first-child,
    .page_place_f03 .store-age-wrapper div:first-child {
        margin-bottom: 20px !important;   
        margin-top: 0 !important;
    }

    .page_place_f03 .store-age-wrapper {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .page_place_f03 .store-age-wrapper .age-cutoff,
    .page_place_f03 .store-age-wrapper .age-result,
    .page_place_f03 .store-age-wrapper div {
        font-size: 0.85rem !important;
        line-height: 1.3em !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .page_place_f03 .store-age-wrapper div:last-child,
    .page_place_f03 .store-age-wrapper .age-result {
        margin-top: 4px !important;
    }
}

/* ==========================================
 * 修正版 CSS：只隱藏卡片，不誤傷精選圖片
 * ========================================== */

.elementor-widget-shortcode article.post,
.elementor-widget-shortcode .jozo-post-item {
    display: none !important;
}

.elementor-widget-shortcode article.category-events,
.elementor-widget-shortcode .category-events {
    display: flex !important;
}

/* ==========================================
 * 案例卡片盒
 * ========================================== */
.jp-cases-section {
    padding: 40px 0;
    width: 100%;
}
.jp-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

a.jp-case-card {
    text-decoration: none;
    color: #333333;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background: #FAF8F5;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}
a.jp-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(44, 36, 22, 0.06);
}

a.jp-case-card .card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #E8E2D4;
}
a.jp-case-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
a.jp-case-card:hover .card-image-wrapper img {
    transform: scale(1.03);
}
a.jp-case-card .card-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B6246;
    font-size: 13px;
    font-family: 'Noto Serif TC', serif;
}

a.jp-case-card .card-content-wrapper {
    width: 100%;
    padding: 24px 20px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-family: 'Noto Serif TC', serif;
}

a.jp-case-card .card-cate-tag-box {
    margin-bottom: 14px;
}
a.jp-case-card .card-cate-slug-title {
    background-color: #E6C433;
    color: #1A1A1A;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.03em;
}

a.jp-case-card .card-main-title {
    color: #1E728B;
    font-weight: 700;
    line-height: 1.42;
    margin: 0 0 24px 0;
    padding: 0;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}
a.jp-case-card:hover .card-main-title {
    color: #155264;
}

a.jp-case-card .card-footer-box {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #EAE5DC;
    padding-top: 14px;
}
a.jp-case-card .card-footer-tags {
    color: #8A8172; 
    letter-spacing: 0.02em;
    font-weight: 400;
}
a.jp-case-card .card-readmore {
    color: #1E728B;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 10px;
    transition: color 0.2s ease;
}
a.jp-case-card:hover .card-readmore {
    color: #155264;
}

@media (min-width: 1024px) {
    a.jp-case-card .card-cate-slug-title { font-size: 0.8rem; }
    a.jp-case-card .card-main-title { font-size: 1.2rem; }
    a.jp-case-card .card-footer-tags { font-size: 0.8rem; }
    a.jp-case-card .card-readmore { font-size: 0.85rem; }
}

@media (max-width: 1023px) {
    .jp-cases-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    a.jp-case-card .card-cate-slug-title { font-size: 0.6rem; } 
    a.jp-case-card .card-main-title { font-size: 1rem; }       
    a.jp-case-card .card-footer-tags { font-size: 0.6rem; }
    a.jp-case-card .card-readmore { font-size: 0.75rem; }
}

@media (max-width: 767px) {
    .jp-cases-grid { 
        grid-template-columns: 1fr; 
        gap: 24px; 
    }
}

/* ═══════════════════════════════
   Jōzō 三入口卡片盒樣式
   ═══════════════════════════════ */

.fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fc-card {
  background: #ffffff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
}

.fc-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e8e2d4;
  overflow: hidden;
  flex-shrink: 0;
}

.fc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fc-body {
  padding: 1.1rem 1.1rem 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.fc-title {
  margin: 0 0 8px;
  color: #1a1a1a;
}

.fc-text {
  line-height: 1.6;
  color: #555555;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-btn {
  display: inline-block;
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (max-width: 1023px) {
  .fc-btn {
    font-size: 0.8rem;
  }
}

/* ── 手機版：改為直式排列 ── */
@media (max-width: 767px) {
  .fc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fc-card {
    aspect-ratio: 3 / 4;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ── 平板及手機：字級覆蓋（1024px 以下）── */
@media (max-width: 1023px) {
  .fc-title-custom {
    font-size: 1.2rem !important;
  }
  .fc-text-custom {
    font-size: 0.8rem !important;
  }
}