/*
Theme Name: 九禾當舖
Theme URI: https://joher888.tw/
Author: 九禾當舖
Description: 九禾當舖專用網站主題。
Version: 1.3.4
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jiuhe
*/

:root {
  --jh-burgundy: #7A0A0A;
  --jh-burgundy-dark: #4E0606;
  --jh-burgundy-deep: #320303;
  --jh-gold: #C8A15A;
  --jh-gold-soft: #E1CA99;
  --jh-cream: #F8F3EE;
  --jh-paper: #FFFCF9;
  --jh-ink: #2B2B2B;
  --jh-muted: #6B6B6B;
  --jh-line: #E6DDD4;
  --jh-line-green: #06C755;
  --jh-shadow: 0 14px 36px rgba(78, 6, 6, .08);
  --jh-radius: 8px;
  --jh-container: 1180px;
  --jh-narrow: 820px;
  --jh-space: clamp(3.75rem, 8vw, 7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--jh-paper);
  color: var(--jh-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
body.has-drawer { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--jh-burgundy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--jh-burgundy-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--jh-gold); outline-offset: 3px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--jh-paper); clip: auto !important; clip-path: none; color: var(--jh-ink);
  display: block; font-size: 1rem; height: auto; left: 1rem; line-height: normal; padding: .75rem 1rem;
  position: fixed !important; top: 1rem; width: auto; z-index: 100000;
}

.jh-container { width: min(calc(100% - 2.5rem), var(--jh-container)); margin-inline: auto; }
.jh-narrow { max-width: var(--jh-narrow); margin-inline: auto; }
.jh-section { padding-block: var(--jh-space); }
.jh-section--paper { background: var(--jh-paper); }
.jh-section--cream { background: var(--jh-cream); }
.jh-section--dark { background: var(--jh-burgundy-dark); color: #fff9f4; }
.jh-section--image { background-size: cover; background-position: center; }
.jh-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.jh-section-head > div { max-width: 700px; }
.jh-section-head p { margin: .5rem 0 0; color: var(--jh-muted); }
.jh-section--dark .jh-section-head p { color: #e9dcd4; }
.jh-eyebrow { color: var(--jh-gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.jh-title, .entry-title, .jh-hero h1, .jh-page-hero h1 {
  font-family: "Noto Serif TC", "PingFang TC", "PMingLiU", serif;
  font-weight: 600; line-height: 1.35; letter-spacing: .035em;
}
.jh-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: .25rem 0 0; }
.jh-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--jh-muted); }
.jh-section--dark .jh-lead { color: #e9dcd4; }
.jh-gold-rule { width: 4.2rem; height: 2px; background: var(--jh-gold); margin: 1rem 0 0; }

.jh-topbar { background: var(--jh-burgundy-deep); color: #f9eee7; font-size: .8rem; }
.jh-topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.jh-topbar a { color: #fff; }
.jh-topbar span + span { margin-left: 1.5rem; }
.jh-site-header { position: relative; z-index: 50; background: rgba(255, 252, 249, .97); border-bottom: 1px solid var(--jh-line); }
.jh-header-main { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.jh-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--jh-burgundy); text-decoration: none; }
.jh-brand:hover { color: var(--jh-burgundy-dark); }
.jh-brand-mark { width: 47px; height: 47px; border: 1px solid var(--jh-gold); border-radius: 50%; display: grid; place-items: center; font-family: "Noto Serif TC", serif; font-size: 1.25rem; }
.jh-brand-text strong { display: block; font-family: "Noto Serif TC", serif; font-size: 1.3rem; line-height: 1.2; letter-spacing: .12em; }
.jh-brand-text small { display: block; font-size: .66rem; letter-spacing: .18em; color: var(--jh-muted); margin-top: .2rem; }
.jh-site-header .custom-logo-link, .jh-site-footer .custom-logo-link { display: inline-flex; align-items: center; }
.jh-site-header .custom-logo, .jh-site-footer .custom-logo { width: auto; max-width: 180px; max-height: 58px; object-fit: contain; }
.jh-header-actions { display: flex; align-items: center; gap: .7rem; }
.jh-header-call { display: grid; line-height: 1.2; text-decoration: none; color: var(--jh-ink); }
.jh-header-call small { color: var(--jh-muted); font-size: .72rem; }
.jh-header-call strong { color: var(--jh-burgundy); font-size: 1.05rem; letter-spacing: .03em; }
.jh-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 45px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 4px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.jh-button:hover { transform: translateY(-1px); }
.jh-button--primary { background: var(--jh-burgundy); color: #fff; }
.jh-button--primary:hover { background: var(--jh-burgundy-dark); color: #fff; }
.jh-button--outline { border-color: var(--jh-burgundy); color: var(--jh-burgundy); background: transparent; }
.jh-button--outline:hover { background: var(--jh-burgundy); color: #fff; }
.jh-button--line { background: var(--jh-line-green); color: #071e0e; }
.jh-button--line:hover { background: #05ad4b; color: #071e0e; }
.jh-button--light { border-color: rgba(255,255,255,.55); color: #fff; }
.jh-button--light:hover { background: #fff; color: var(--jh-burgundy); }

.jh-primary-nav { border-top: 1px solid #f0eae4; }
.jh-nav-list { list-style: none; display: flex; align-items: stretch; justify-content: flex-end; gap: 0; margin: 0; padding: 0; }
.jh-nav-list > li { position: relative; }
.jh-nav-list a { display: flex; align-items: center; min-height: 52px; padding: .6rem 1rem; color: var(--jh-ink); text-decoration: none; font-size: .95rem; }
.jh-nav-list a:hover, .jh-nav-list .current-menu-item > a, .jh-nav-list .current_page_item > a { color: var(--jh-burgundy); background: #fdf7f2; }
.jh-nav-list .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin: -4px 0 0 .5rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.jh-nav-list .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: .5rem; background: var(--jh-paper); border: 1px solid var(--jh-line); box-shadow: var(--jh-shadow); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.jh-nav-list li:hover > .sub-menu, .jh-nav-list li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.jh-nav-list .sub-menu a { min-height: 40px; padding: .45rem .7rem; }
.jh-nav-list > li:last-child > a { color: var(--jh-burgundy); font-weight: 700; }
.jh-menu-toggle { display: none; border: 1px solid var(--jh-burgundy); background: transparent; color: var(--jh-burgundy); border-radius: 4px; padding: .55rem .7rem; }
.jh-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: currentColor; }
.jh-mobile-drawer, .jh-drawer-backdrop { display: none; }
body.is-scrolled .jh-site-header { box-shadow: 0 5px 18px rgba(78, 6, 6, .08); }

.jh-hero { position: relative; overflow: hidden; background: var(--jh-burgundy-dark); color: #fff; }
.jh-slider { position: relative; }
.jh-slides { position: relative; min-height: min(690px, calc(100vh - 140px)); }
.jh-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.jh-slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 1; }
.jh-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(50, 3, 3, .94) 0%, rgba(50, 3, 3, .76) 42%, rgba(50, 3, 3, .22) 100%); z-index: 1; }
.jh-slide-image, .jh-slide-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jh-slide-placeholder { background: radial-gradient(circle at 75% 30%, rgba(200,161,90,.28), transparent 32%), linear-gradient(135deg, #4E0606 0%, #230202 100%); }
.jh-slide-content { position: relative; z-index: 2; width: min(calc(100% - 2.5rem), var(--jh-container)); margin-inline: auto; padding-block: 7rem; }
.jh-slide-copy { max-width: 640px; }
.jh-slide .jh-eyebrow { color: var(--jh-gold-soft); }
.jh-slide h1 { margin: .65rem 0 1rem; max-width: 620px; color: #fff; font-size: clamp(2.35rem, 6vw, 4.9rem); }
.jh-slide p { max-width: 570px; margin: 0 0 1.8rem; color: #f3e8df; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.jh-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.jh-slider-controls { position: absolute; z-index: 5; right: max(1.25rem, calc((100% - var(--jh-container)) / 2)); bottom: 2rem; display: flex; align-items: center; gap: .55rem; }
.jh-slider-control, .jh-slider-dot { border: 1px solid rgba(255,255,255,.7); background: rgba(50,3,3,.35); color: #fff; }
.jh-slider-control { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.jh-slider-control:hover { background: #fff; color: var(--jh-burgundy); }
.jh-slider-dot { width: 9px; height: 9px; border-radius: 50%; padding: 0; }
.jh-slider-dot.is-active { background: var(--jh-gold); border-color: var(--jh-gold); }
.jh-trust-strip { background: var(--jh-cream); border-bottom: 1px solid var(--jh-line); }
.jh-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.jh-trust-item { display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; border-right: 1px solid var(--jh-line); }
.jh-trust-item:first-child { padding-left: 0; }
.jh-trust-item:last-child { border-right: 0; }
.jh-trust-number { color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: 1.55rem; font-weight: 600; white-space: nowrap; }
.jh-trust-item p { margin: 0; font-size: .9rem; color: var(--jh-muted); }

.jh-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jh-service-card { display: flex; flex-direction: column; min-height: 210px; padding: 1.5rem; border: 1px solid var(--jh-line); border-top: 3px solid var(--jh-gold); background: var(--jh-paper); box-shadow: 0 5px 18px rgba(78,6,6,.035); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.jh-service-card:hover { color: var(--jh-ink); transform: translateY(-3px); border-color: var(--jh-gold); box-shadow: var(--jh-shadow); }
.jh-service-card-thumb { display: block; aspect-ratio: 16/7; overflow: hidden; margin: -1.5rem -1.5rem 1.1rem; background: #eadfd6; }
.jh-service-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jh-service-card h3 { margin: .4rem 0 .5rem; color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: 1.25rem; }
.jh-service-card p { margin: 0; color: var(--jh-muted); font-size: .94rem; }
.jh-service-card .jh-card-arrow { margin-top: auto; padding-top: 1.2rem; color: var(--jh-gold); font-size: 1.15rem; }
.jh-service-card--small { min-height: 0; }

.jh-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.jh-split--reverse > :first-child { order: 2; }
.jh-media-frame { position: relative; min-height: 420px; overflow: hidden; background: #ede4dc; }
.jh-media-frame::after { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1px solid var(--jh-gold); pointer-events: none; }
.jh-media-frame img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.jh-media-placeholder { min-height: 100%; background: radial-gradient(circle at 68% 25%, rgba(200,161,90,.34), transparent 25%), linear-gradient(145deg, #ead9ca, #caa994); display: grid; place-items: center; color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: 1.4rem; letter-spacing: .12em; }
.jh-content p:last-child { margin-bottom: 0; }
.jh-content ul, .jh-content ol { padding-left: 1.3rem; }
.jh-content li + li { margin-top: .4rem; }
.jh-content h2, .jh-content h3, .jh-content h4 { color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; line-height: 1.45; margin-top: 2rem; }
.jh-content h2 { font-size: 1.7rem; }
.jh-content h3 { font-size: 1.35rem; }
.jh-content blockquote { margin: 1.5rem 0; padding: .5rem 1.2rem; border-left: 3px solid var(--jh-gold); color: var(--jh-muted); }
.jh-content img { margin: 1.5rem auto; }
.jh-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.jh-content th, .jh-content td { padding: .7rem; border: 1px solid var(--jh-line); text-align: left; }
.jh-content th { background: var(--jh-cream); color: var(--jh-burgundy); }

.jh-guarantee-grid, .jh-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jh-guarantee-card { padding: 1.8rem; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.jh-guarantee-card .jh-number { color: var(--jh-gold-soft); font-family: "Noto Serif TC", serif; font-size: 2rem; }
.jh-guarantee-card h3 { color: #fff; font-family: "Noto Serif TC", serif; margin: .6rem 0 .4rem; }
.jh-guarantee-card p { margin: 0; color: #e9dcd4; font-size: .94rem; }
.jh-process-card { position: relative; padding: 1.6rem; border-top: 2px solid var(--jh-gold); background: var(--jh-paper); }
.jh-process-card .jh-number { color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: 1.6rem; }
.jh-process-card h3 { margin: .45rem 0 .35rem; color: var(--jh-burgundy); font-size: 1.1rem; }
.jh-process-card p { margin: 0; color: var(--jh-muted); font-size: .92rem; }

.jh-faq-list { display: grid; gap: .7rem; }
.jh-faq-list details { border-bottom: 1px solid var(--jh-line); background: var(--jh-paper); }
.jh-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; color: var(--jh-ink); cursor: pointer; font-weight: 700; list-style: none; }
.jh-faq-list summary::-webkit-details-marker { display: none; }
.jh-faq-list summary::after { content: "+"; color: var(--jh-gold); font-size: 1.4rem; font-weight: 400; }
.jh-faq-list details[open] summary::after { content: "−"; }
.jh-faq-list .jh-faq-answer { padding: 0 2rem 1.2rem 0; color: var(--jh-muted); }
.jh-faq-list .jh-faq-answer p:first-child { margin-top: 0; }
.jh-empty { padding: 2rem; border: 1px dashed var(--jh-line); background: rgba(248,243,238,.5); color: var(--jh-muted); text-align: center; }
.jh-section--dark .jh-empty { border-color: rgba(255,255,255,.3); background: transparent; color: #e9dcd4; }

.jh-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.jh-case-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--jh-line); background: var(--jh-paper); }
.jh-case-thumb { aspect-ratio: 16/9; overflow: hidden; background: #eadfd6; }
.jh-case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.jh-case-card:hover .jh-case-thumb img { transform: scale(1.03); }
.jh-case-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.jh-case-meta { color: var(--jh-muted); font-size: .78rem; }
.jh-case-body h3 { margin: .4rem 0 .3rem; color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: 1.2rem; line-height: 1.45; }
.jh-case-subtitle { margin: 0 0 .5rem; color: var(--jh-ink); font-size: .9rem; }
.jh-case-excerpt { margin: 0; color: var(--jh-muted); font-size: .9rem; }
.jh-case-more { margin-top: auto; padding-top: 1rem; font-weight: 700; }
.jh-case-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.jh-filter { padding: .45rem .8rem; border: 1px solid var(--jh-line); color: var(--jh-muted); text-decoration: none; font-size: .9rem; }
.jh-filter:hover, .jh-filter.is-active { border-color: var(--jh-burgundy); color: var(--jh-burgundy); background: var(--jh-cream); }
.jh-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.jh-pagination a, .jh-pagination span { min-width: 38px; padding: .45rem .65rem; border: 1px solid var(--jh-line); text-align: center; text-decoration: none; }
.jh-pagination .current { background: var(--jh-burgundy); border-color: var(--jh-burgundy); color: #fff; }

.jh-page-hero { padding-block: 5rem 4rem; background: var(--jh-cream); border-bottom: 1px solid var(--jh-line); }
.jh-page-hero h1 { margin: .45rem 0 0; color: var(--jh-burgundy); font-size: clamp(2rem, 4.5vw, 3.7rem); }
.jh-breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .7rem; color: var(--jh-muted); font-size: .84rem; }
.jh-breadcrumbs a { color: var(--jh-muted); }
.jh-breadcrumbs .sep { color: var(--jh-gold); }
.jh-service-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.jh-service-intro .jh-media-frame { min-height: 440px; }
.jh-service-intro .jh-media-frame img { min-height: 440px; }
.jh-service-kicker { color: var(--jh-gold); font-size: .78rem; font-weight: 700; letter-spacing: .16em; }
.jh-service-intro h2 { margin: .5rem 0 1rem; color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.4; }
.jh-service-content { max-width: var(--jh-narrow); margin-inline: auto; }
.jh-service-content > *:first-child { margin-top: 0; }
.jh-service-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.jh-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.jh-info-card { padding: 1.25rem; border: 1px solid var(--jh-line); background: var(--jh-paper); }
.jh-info-card h3 { margin: 0 0 .35rem; color: var(--jh-burgundy); font-family: "Noto Serif TC", serif; font-size: 1.05rem; }
.jh-info-card p { margin: 0; color: var(--jh-muted); font-size: .9rem; }
.jh-map { min-height: 440px; border: 0; width: 100%; }
.jh-map-wrap { overflow: hidden; border: 1px solid var(--jh-line); background: #eee; }
.jh-location-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

.jh-single-header { max-width: 850px; margin: 0 auto 2.5rem; text-align: center; }
.jh-single-header h1 { margin: .6rem 0 .5rem; color: var(--jh-burgundy); font-size: clamp(2rem, 4.5vw, 3.5rem); }
.jh-single-header .jh-case-subtitle { font-size: 1.1rem; }
.jh-single-featured { max-width: 980px; max-height: 580px; width: 100%; object-fit: cover; margin: 0 auto 2.5rem; }
.jh-entry-footer { max-width: var(--jh-narrow); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--jh-line); }

.jh-site-footer { padding-top: 4.5rem; background: var(--jh-burgundy-dark); color: #f7ece5; }
.jh-footer-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.jh-site-footer .jh-brand { color: #fff; }
.jh-site-footer .jh-brand-mark { border-color: var(--jh-gold-soft); }
.jh-site-footer .jh-brand-text small, .jh-site-footer p, .jh-site-footer li { color: #e8d9d0; }
.jh-site-footer h2, .jh-site-footer h3 { margin: 0 0 1rem; color: #fff; font-family: "Noto Serif TC", serif; font-size: 1.1rem; }
.jh-footer-contact p { margin: .6rem 0 0; font-size: .9rem; }
.jh-footer-list { list-style: none; margin: 0; padding: 0; }
.jh-footer-list li + li { margin-top: .4rem; }
.jh-footer-list a { color: #f4e7de; font-size: .9rem; text-decoration: none; }
.jh-footer-list a:hover { color: var(--jh-gold-soft); }
.jh-keywords { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); color: #d7c2b8; font-size: .78rem; line-height: 2; }
.jh-keywords a { color: #d7c2b8; }
.jh-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: #c9b5ab; font-size: .78rem; }
.jh-floating { position: fixed; right: 1.2rem; bottom: 1.3rem; z-index: 40; display: grid; gap: .65rem; }
.jh-floating a { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 50%; color: #fff; text-align: center; text-decoration: none; font-size: .67rem; line-height: 1.2; box-shadow: 0 7px 20px rgba(0,0,0,.18); }
.jh-floating a:hover { transform: translateY(-2px); color: #fff; }
.jh-floating-line { background: var(--jh-line-green); color: #06220f !important; }
.jh-floating-phone { background: var(--jh-burgundy); }
.jh-floating-label { display: block; }

.jh-reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.jh-reveal.is-visible { opacity: 1; transform: none; }
.wp-block-button__link { background: var(--jh-burgundy); }
.alignwide { width: min(100%, 1280px); margin-inline: auto; }
.alignfull { width: 100%; }

@media (max-width: 980px) {
  .jh-header-main { min-height: 74px; }
  .jh-header-actions .jh-header-call { display: none; }
  .jh-primary-nav { display: none; }
  .jh-menu-toggle { display: block; }
  .jh-mobile-drawer { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); z-index: 100; padding: 5.5rem 1.5rem 2rem; overflow-y: auto; background: var(--jh-paper); box-shadow: -8px 0 28px rgba(0,0,0,.2); transform: translateX(102%); transition: transform .25s ease; }
  .jh-mobile-drawer.is-open { transform: none; }
  .jh-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(43,43,43,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .jh-drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }
  .jh-mobile-close { position: absolute; top: 1.2rem; right: 1.3rem; border: 0; background: transparent; color: var(--jh-burgundy); font-size: 1.8rem; }
  .jh-mobile-menu { list-style: none; margin: 0; padding: 0; }
  .jh-mobile-menu li { border-bottom: 1px solid var(--jh-line); }
  .jh-mobile-menu a { display: block; padding: .85rem 0; color: var(--jh-ink); text-decoration: none; }
  .jh-mobile-menu > li > a { font-weight: 700; }
  .jh-mobile-menu .sub-menu { display: none; list-style: none; padding: 0 0 .5rem 1rem; margin: 0; }
  .jh-mobile-menu .sub-menu.is-open { display: block; }
  .jh-mobile-menu .sub-menu a { padding: .45rem 0; color: var(--jh-muted); font-size: .92rem; }
  .jh-mobile-sub-toggle { float: right; border: 0; background: transparent; color: var(--jh-burgundy); padding: .75rem; margin-top: .1rem; }
  .jh-split, .jh-service-intro { gap: 2.5rem; }
  .jh-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .jh-container { width: min(calc(100% - 2rem), var(--jh-container)); }
  .jh-topbar-inner { min-height: 31px; font-size: .7rem; }
  .jh-topbar span + span { margin-left: .75rem; }
  .jh-brand-mark { width: 39px; height: 39px; font-size: 1rem; }
  .jh-brand-text strong { font-size: 1.05rem; }
  .jh-brand-text small { font-size: .58rem; }
  .jh-header-actions .jh-button { min-height: 39px; padding: .45rem .7rem; font-size: .82rem; }
  .jh-slides { min-height: 590px; }
  .jh-slide-content { width: min(calc(100% - 2rem), var(--jh-container)); padding-block: 5.5rem; }
  .jh-slide::before { background: linear-gradient(90deg, rgba(50,3,3,.95), rgba(50,3,3,.65)); }
  .jh-slide h1 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .jh-slider-controls { right: 1rem; bottom: 1.25rem; }
  .jh-trust-grid { grid-template-columns: 1fr; }
  .jh-trust-item, .jh-trust-item:first-child { padding: .9rem 0; border-right: 0; border-bottom: 1px solid var(--jh-line); }
  .jh-trust-item:last-child { border-bottom: 0; }
  .jh-service-grid, .jh-guarantee-grid, .jh-process-grid, .jh-case-grid { grid-template-columns: 1fr; }
  .jh-section-head { display: block; margin-bottom: 1.8rem; }
  .jh-section-head > .jh-button { margin-top: 1rem; }
  .jh-split, .jh-service-intro { grid-template-columns: 1fr; }
  .jh-split--reverse > :first-child { order: initial; }
  .jh-media-frame, .jh-media-frame img, .jh-service-intro .jh-media-frame, .jh-service-intro .jh-media-frame img { min-height: 290px; }
  .jh-info-grid { grid-template-columns: repeat(2, 1fr); }
  .jh-page-hero { padding-block: 3.4rem 2.8rem; }
  .jh-footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .jh-footer-bottom { display: block; }
  .jh-footer-bottom p { margin: .25rem 0; }
  .jh-floating { right: .7rem; bottom: .8rem; }
  .jh-floating a { width: 47px; height: 47px; font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .jh-reveal { opacity: 1; transform: none; }
}

/* 內容與品牌細節 */
.jh-site-header{position:sticky;top:0;}
.jh-brand-text{text-decoration:none;color:inherit;white-space:nowrap;}
.jh-brand-logo .custom-logo{max-width:100px;max-height:58px;}
.jh-about-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem;}
.jh-about-gallery-item{margin:0;aspect-ratio:4/3;overflow:hidden;background:var(--jh-cream);}
.jh-about-gallery-item img{width:100%;height:100%;object-fit:cover;}
.jh-about-content-top{max-width:900px;margin:0 auto 4rem;}
.jh-about-lower{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4rem;align-items:start;}
.jh-about-lower-media{position:sticky;top:190px;}
.jh-about-lower-media img{width:100%;margin-top:0;}
.jh-about-lower-media small{font-size:.75rem;color:var(--jh-muted);}
.jh-service-intro .jh-media-frame{position:sticky;top:190px;}
.jh-slide .jh-hero-heading{margin:.65rem 0 1rem;max-width:620px;color:#fff;font-family:'Noto Serif TC',serif;font-size:clamp(2.35rem,6vw,4.9rem);line-height:1.35;letter-spacing:.035em;}
.jh-slider-control[data-slider-pause]{width:auto;border-radius:20px;padding:0 12px;font-size:.75rem;}
.jh-slide-copy{min-height:350px;display:flex;flex-direction:column;justify-content:center;}
.jh-mobile-menu>li{position:relative;}
.jh-mobile-sub-toggle{position:absolute;top:0;right:0;float:none;z-index:1;}
.jh-slide[aria-hidden=true]{pointer-events:none;}
.loan-note{padding:1rem;background:var(--jh-cream);font-size:.85rem;color:var(--jh-muted);border-left:2px solid var(--jh-gold);}
@media(max-width:980px){.jh-brand-logo .custom-logo{max-width:60px;max-height:43px;}.jh-about-lower{gap:2.5rem;}.jh-site-header .jh-brand-text small{font-size:.55rem;}}
@media(max-width:700px){.jh-about-gallery{grid-template-columns:1fr;gap:1rem;}.jh-about-gallery-item{aspect-ratio:16/10;}.jh-about-lower{grid-template-columns:1fr;gap:2rem;}.jh-about-lower-media,.jh-service-intro .jh-media-frame{position:relative;top:auto;}.jh-slide .jh-hero-heading{font-size:clamp(2rem,10vw,3.1rem);}.jh-slide-copy{min-height:360px;}.jh-site-header .jh-brand-logo{display:none;}.jh-header-main{gap:.7rem;}.jh-header-actions{gap:.6rem;}.jh-about-content-top{margin-bottom:2.5rem;}.jh-slide-image{object-position:65% center;}.jh-info-grid{grid-template-columns:1fr;}.jh-slide-content{padding-block:4rem 5rem;}}

.jh-condition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;align-items:start;}
.jh-condition{padding:1.8rem 2rem;background:var(--jh-paper);border-top:2px solid var(--jh-gold);}
.jh-condition h2{font-size:1.35rem;margin:0 0 1rem;}
.jh-condition--wide{grid-column:1/-1;}
.jh-condition ul{margin:0;}
.jh-condition--wide ul{columns:2;column-gap:3rem;}
.jh-condition--wide li{break-inside:avoid;}
.jh-service-intro .jh-content>h2{margin-top:.5rem;}
.jh-service-intro .jh-media-frame{position:relative;top:auto;min-height:0;}
.jh-service-intro .jh-media-frame img{min-height:0;height:auto;object-fit:contain;}
.jh-slides{height:690px;min-height:0;}
.jh-slide.is-active{position:absolute;}
.jh-slide-content{padding-block:3rem;}
.jh-slide-copy{min-height:410px;}
.jh-service-card-thumb img{object-position:center 42%;}
@media(max-width:700px){.jh-condition-grid{grid-template-columns:1fr;}.jh-condition{padding:1.5rem;}.jh-condition--wide{grid-column:auto;}.jh-condition--wide ul{columns:1;}.jh-slides{height:590px;}.jh-slide-copy{min-height:390px;}.jh-slide-content{padding-block:2rem 4rem;}}

/* 手機固定聯絡列：寬度各半，安全區留白，頁尾內容不被遮擋。 */
.jh-contact-mobile, .jh-contact-icon { display: none; }
.jh-backtop { position: fixed; right: 1.2rem; bottom: 1.3rem; z-index: 80; width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid #fff9f4; border-radius: 50%; background: var(--jh-burgundy); color: #fff9f4; box-shadow: 0 4px 18px rgba(50,3,3,.2); text-decoration: none; }
.jh-backtop:visited { color: #fff9f4; }
.jh-backtop:hover, .jh-backtop:focus-visible { background: var(--jh-burgundy-dark); color: #fff; }
.jh-backtop svg { width: 36px; height: 36px; }
body.jh-contact-enabled .jh-backtop { bottom: 148px; }
@media (max-width: 980px) {
  body.jh-contact-enabled { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .jh-floating { left: 0; right: 0; bottom: 0; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; z-index: 80; background: var(--jh-burgundy); box-shadow: 0 -3px 18px rgba(0,0,0,.13); }
  .jh-floating a { width: 100%; height: auto; min-height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 12px 8px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 0; box-shadow: none; font-size: clamp(15px,4.3vw,19px); font-weight: 700; line-height: 1.25; white-space: nowrap; }
  .jh-floating a:hover { transform: none; }
  .jh-floating .jh-floating-line, .jh-floating .jh-floating-line:visited { background: #087f3c; color: #fff !important; border-right: 1px solid rgba(255,255,255,.8); }
  .jh-floating .jh-floating-phone, .jh-floating .jh-floating-phone:visited { background: var(--jh-burgundy); color: #fff; }
  .jh-floating .jh-floating-line:hover { background: #066b32; }
  .jh-floating .jh-floating-phone:hover { background: var(--jh-burgundy-dark); }
  .jh-floating a:focus-visible { outline-offset: -5px; }
  .jh-contact-desktop { display: none; }
  .jh-contact-mobile { display: inline; }
  .jh-contact-icon { display: block; width: 25px; height: 25px; flex: 0 0 25px; }
  .jh-backtop { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom,0px)); }
  body.jh-contact-enabled .jh-backtop { bottom: calc(78px + env(safe-area-inset-bottom,0px)); }
}

/* 2026-10-16：原圖橫幅與米白頁尾，文字區不遮住照片。 */
.jh-hero { background: var(--jh-cream); color: var(--jh-ink); }
.jh-slider { padding-bottom: 60px; }
.jh-slides { display: grid; height: auto; min-height: 0; }
.jh-slide, .jh-slide.is-active { position: relative; inset: auto; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(2rem,5vw,4rem); width: min(calc(100% - 2.5rem),var(--jh-container)); margin-inline: auto; align-items: center; padding-block: 2rem; }
.jh-slide::before { content: none; display: none; background: none; }
.jh-slide-media { order: 2; height: 480px; min-width: 0; background: transparent; }
.jh-slide-image { position: static; inset: auto; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none; opacity: 1; }
.jh-slide-placeholder { position: static; width: 100%; height: 100%; background: var(--jh-paper); }
.jh-slide-content { order: 1; width: 100%; min-width: 0; margin: 0; padding: 2rem 0; }
.jh-slide-copy { min-height: 0; max-width: 100%; }
.jh-slide h1, .jh-slide .jh-hero-heading { color: var(--jh-ink); font-family: 'Noto Serif TC','PingFang TC','PMingLiU',serif; font-size: clamp(1.8rem,3.6vw,2.8rem); font-weight: 600; line-height: 1.35; letter-spacing: .035em; }
.jh-slide .jh-eyebrow, .jh-slide p { color: var(--jh-ink); }
.jh-slide p { font-size: 1rem; }
.jh-hero .jh-button--outline { color: var(--jh-ink); border-color: var(--jh-ink); background: transparent; }
.jh-hero .jh-button--outline:hover { background: var(--jh-ink); color: var(--jh-paper); }
.jh-slider-controls { bottom: 1rem; }
.jh-slider-control, .jh-slider-dot { border-color: var(--jh-ink); background: var(--jh-paper); color: var(--jh-ink); }
.jh-slider-control:hover { background: var(--jh-ink); color: var(--jh-paper); }
.jh-slider-dot.is-active { background: var(--jh-ink); border-color: var(--jh-ink); }
.jh-site-footer { background: var(--jh-cream); color: var(--jh-ink); border-top: 1px solid var(--jh-line); }
.jh-site-footer .jh-brand, .jh-site-footer .jh-brand-text, .jh-site-footer .jh-brand-text small, .jh-site-footer h2, .jh-site-footer h3, .jh-site-footer p, .jh-site-footer li, .jh-site-footer a, .jh-keywords, .jh-keywords a, .jh-footer-bottom { color: var(--jh-ink); }
.jh-site-footer a:hover, .jh-site-footer a:focus-visible, .jh-site-footer a:visited { color: var(--jh-ink); }
.jh-site-footer .jh-brand-mark { border-color: var(--jh-line); }
.jh-keywords { border-color: var(--jh-line); }
/* 電話按鈕保留品牌紅底白字，不隨周邊米白區塊調色。 */
.jh-floating-phone, .jh-floating-phone:visited { background: var(--jh-burgundy); color: #fff !important; border: 0; }
.jh-floating-phone:hover, .jh-floating-phone:focus-visible, .jh-floating-phone:active { background: var(--jh-burgundy-dark); color: #fff !important; }
.jh-backtop, .jh-backtop:visited, .jh-backtop:hover, .jh-backtop:focus-visible { background: var(--jh-cream); color: var(--jh-ink); border-color: var(--jh-line); }
@media (max-width: 980px) {
 .jh-floating { background: var(--jh-cream); }
 .jh-floating .jh-floating-phone, .jh-floating .jh-floating-phone:visited { background: var(--jh-burgundy); color: #fff !important; }
 .jh-floating .jh-floating-phone:hover, .jh-floating .jh-floating-phone:focus-visible, .jh-floating .jh-floating-phone:active { background: var(--jh-burgundy-dark); color: #fff !important; }
}
@media (max-width: 700px) {
 .jh-slide, .jh-slide.is-active { grid-template-columns: minmax(0,1fr); gap: 0; width: min(calc(100% - 2rem),var(--jh-container)); padding-block: 1rem; }
 .jh-slide-media { order: 1; height: 340px; }
 .jh-slide-content { order: 2; padding: 1.4rem 0 .5rem; }
 .jh-slide-copy { min-height: 0; }
 .jh-slide h1, .jh-slide .jh-hero-heading { font-size: clamp(1.8rem,7vw,2.2rem); }
 .jh-slide p { margin-bottom: 1.2rem; }
}

.jh-slide h1, .jh-slide .jh-hero-heading { text-wrap: balance; overflow-wrap: anywhere; }

/* 三大安心保證：與橫幅及頁尾一致的米白黑字，僅作用於此區塊。 */
.jh-guarantee-section { background-color: var(--jh-cream); color: var(--jh-ink); }
.jh-guarantee-section .jh-eyebrow,
.jh-guarantee-section .jh-title,
.jh-guarantee-section .jh-lead,
.jh-guarantee-section .jh-guarantee-card .jh-number,
.jh-guarantee-section .jh-guarantee-card h3,
.jh-guarantee-section .jh-guarantee-card p { color: var(--jh-ink); }
.jh-guarantee-section .jh-gold-rule { background: var(--jh-line); }
.jh-guarantee-section .jh-guarantee-card { background: var(--jh-paper); border-color: var(--jh-line); }
