*, ::after, ::before { margin: 0; padding: 0; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -webkit-transition: all .2s linear; -moz-transition: all .2s linear; transition: all .2s linear; }
*:focus { outline:  none; }

body { overflow-x: hidden; overflow-y: overlay; margin: 0; min-height: 100vh; }
body::-webkit-scrollbar { width: 13px; }
body::-webkit-scrollbar-track { background: none; }
body::-webkit-scrollbar-thumb { border-radius: 8px; border: 4px solid transparent; background-clip: content-box; background-color: var(--g_200); }
body::-webkit-scrollbar-thumb:hover { background-color: var(--g_300); }

header , footer , div , nav , article , hr , p , form , label , input , button , select , textarea , ul , li , img , svg , span , font , strong , b , a , i { text-align: left; vertical-align: middle; word-wrap: break-word; word-break: break-word; line-height: 1.7; border-width: 0; font-family: var(--font-family), sans-serif; font-size: 16px; }

h1, h2, h3, h4, h5, h6 { word-wrap: break-word; word-break: break-word; line-height: 1.7; font-family: var(--font-family), sans-serif; }
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * { font-size: inherit; }
h1, .h1 { font-weight: bold; font-size: 2em; }
h2, .h2 { font-weight: bold; font-size: 1.5em; }
h3, .h3 { font-weight: bold; font-size: 1.17em; }
h4, .h4 { font-weight: bold; font-size: 1em; }
h5, .h5 { font-weight: bold; font-size: .83em; }
h6, .h6 { font-weight: bold; font-size: .67em; }

ul , ol { list-style: none; }

fieldset { border: 0; }
input , select , textarea { padding: .5em 1em; width: 100%; background-color: white; background-clip: padding-box; border: 1px solid var(--g_200); border-radius: .2em; box-shadow: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
select { background: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 5l-6.5 7L1 5' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") white no-repeat calc(100% - .5em) 50% / auto .5em; }
button { background: none; border: 0; box-shadow: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; }
input::-webkit-outer-spin-button , input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }
input[type="password"] { font-family: auto; }
input[type="radio"] , input[type="checkbox"] { width: auto; -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; }

/* img */
img { max-width: 100%; height: auto; display: block; }
.img_cover { object-fit: cover; }
.img_contain { object-fit: contain; }

a, a:hover { color: inherit; text-decoration: none; }

/* general class set */
.txt_clamp { overflow: hidden; height: 1.5em; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.d_inblock.txt_clamp { display: -webkit-inline-box; }
.atag_item { width: 100%; height: 100%; top: 0; left: 0; }
.panel { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #f1f1f1; }
.media img { aspect-ratio: 4/3; object-fit: cover; }

/* fancybox */
[class^="fancybox-"] , [class^="fancybox-"] * , .slick-track , .fa , .fas , .fa:before , .fas:before , .fa:after , .fas:after , .trans_none_box { -webkit-transition: none; -moz-transition: none; transition: none; }
.fancybox-infobar__body span { font-size: inherit; color: currentcolor; vertical-align: initial; }

/* webBox */
.webBox { position: relative; width: 100vw; min-height: 100vh; }
.webBox .pageh1 { position: absolute; top: 0; z-index: 1; }
.webBox .wrapper { position: relative; background-color: var(--bg); color: var(--text); z-index: 2; }
.webBox .container { margin: 0 auto; width: min(95%, var(--max)); }

/* btn */
.btn { display: inline-flex; align-items: center; padding: 0.8rem 1.1rem; border-radius: 999px; font-weight: 600; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--brand-2); border: 1px solid var(--brand-2); }

/* header */
.site-header { position: sticky; background: #fff; border-bottom: 1px solid #e5e7eb; z-index: 60; top: 0; }
.nav { height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.logo .logo-link { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--brand-2); }
.logo img { height: 28px; width: auto; object-fit: contain; }

.nav-menu { order: 2; }
.nav-menu ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .25rem; list-style: none; }
.nav-menu a { padding: .55rem .7rem; border-radius: 10px; display: block; color: #374151; }
.nav-menu a:hover { background: rgba(208, 148, 93, .10); color: var(--brand-2); }

.nav-cta { margin-left: auto; order: 3; }
.nav-cta .btn:hover { color: #fff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.hamburger { position: relative; width: 42px; height: 42px; display: none; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease; }
.hamburger span { margin: 3px 0; width: 22px; height: 2px; background: #374151; border-radius: 2px; display: block; transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease; }

/* 無障礙/鍵盤操作微調 */
.hamburger:focus-visible, .nav-menu a:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* hSearch */
#hSearch { position: fixed; margin-top: 1.5em; padding: 0 1em; width: 240px; background-color: var(--color-text-main); box-shadow: 0 0 0.875rem 0 rgb(53 64 82 / 30%); display: flex; align-items: center; border-radius: 2em; right: -300px; opacity: 0; z-index: -1; }
#hSearch[data-type="2"] { right: 5vw; opacity: 1; z-index: 10; }
#hSearch input { margin-right: .5em; padding: .3em 0; background-color: var(--color-text-main); border: 0; }
#hSearch a { line-height: 1; }
#hSearch font { line-height: 1; }
#hSearch svg { width: 18px; height: 18px; fill: var(--color-bg-section); }

/* ctaJoin */
#ctaJoin { margin-top: 60px; padding: 60px 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); border-radius: var(--radius); color: #fff; }
.cta-inner { margin: 0 auto; padding: 0 20px; max-width: var(--max); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-text h3 { margin: 0 0 0.5rem; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.cta-text p { margin: 0; line-height: 1.6; font-size: 1rem; color: rgba(255,255,255,0.9); }
.cta-btn { padding: 0.9rem 1.6rem; background: #fff; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-2); text-decoration: none; transition: all 0.25s ease; }
.cta-btn:hover { background: var(--panel); box-shadow: 0 8px 16px rgba(0,0,0,0.2); color: var(--brand-2); transform: translateY(-2px); }

/* recent-posts */
.recent-posts { margin: 0; padding: 0; display: grid; gap: 10px; }
.recent-posts li a { padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.recent-posts img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.recent-posts p { margin: 0; height: auto; max-height: 3em; font-weight: 600; font-size: .95rem; -webkit-line-clamp: 2; }
.recent-posts time { font-size: .85rem; color: var(--muted); }

/* footer */
footer { background: #fff; border-top: 1px solid #e5e7eb; color: var(--muted); margin-top: 50px; }
.footer-top { display: grid; gap: 32px; padding: 40px 0; }
.footer-brand h3 { color: var(--brand-2); font-size: 1.2rem; margin: 0 0 0.5rem; }
.footer-brand .logo-link { margin-bottom: 1.5rem; width: min(90%, 150px); display: block; }
.footer-brand .logo-link img { width: 100%; }
.footer-brand p { color: var(--muted); max-width: 400px; line-height: 1.5; }
.footer-links h4, .footer-post h4 { color: var(--brand-2); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-links ul { display: grid; gap: .3rem; }
.footer-links a:hover, .footer-post a:hover { color: var(--brand); text-decoration: underline; }
.footer-inner { border-top: 1px solid #e5e7eb; padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.footer-inner a { color: var(--brand-2); }
.footer-inner a:hover { text-decoration: underline; }

/* webSeo */
#webSeo { overflow: hidden; width: 100vw; margin-top: 2em; white-space: nowrap; box-sizing: border-box; }
#webSeo .seo { padding-left: 100%; font-weight: 100; line-height: 1; font-size: 13px; color: var(--g_400); -webkit-animation: marquee 100s linear infinite; animation: marquee 100s linear infinite; }

/* gotop */
#gotop { position: fixed; padding: 0; width: 45px; aspect-ratio: 1/1; display: flex; justify-content: center; align-items: center; border-radius: 50%; right: 1vw; bottom: 5vh; opacity: 0; z-index: 9999; }
#gotop[data-type="1"] { opacity: 1; }
#gotop svg { width: 50%; aspect-ratio: 1/1; fill: currentColor; }

/* cta-footer-nav */
.cta-footer-nav { position: fixed; padding: 10px 0; width: 100%; background: linear-gradient(135deg, #121C2E 0%, #1F3355 100%); box-shadow: 0 -.3em 1em rgba(0, 0, 0, .32); border-radius: 12px 12px 0 0; display: flex; justify-content: space-around; align-items: stretch; z-index: 999; bottom: 0; left: 0; }
.cta-footer-link { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; flex: 1; gap: 2px; text-align: center; text-decoration: none !important; }
.cta-footer-link img { width: 18%; height: auto; opacity: 0.9; transition: opacity 0.3s; }
.cta-footer-link:hover img { opacity: 1; }
.cta-footer-text { font-size: 16px; color: white; font-weight: 600; z-index: 9999; }
.cta-footer-text-home { font-size: 16px; font-weight: bold; }

.cta-footer-link.footer-home img { overflow: hidden; position: absolute; width: 50%; box-shadow: 0 .8em 1em rgba(0, 0, 0, .32); border-radius: 50%; aspect-ratio: 1/1; bottom: 1vw; opacity: 1; }
.cta-footer-link.footer-home .cta-footer-text { display: none; }

/* animation */
@keyframes fab-float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
@keyframes fab-glow { 0%, 100% { box-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 0 0 0 rgba(208, 148, 93, 0.4); } 70% { box-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 0 0 12px rgba(208, 148, 93, 0); } }
@-webkit-keyframes marquee { 0% { -webkit-transform: translate(0, 0); } 100% { -webkit-transform: translate(-100%, 0); } }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

@media (min-width: 1200px) {
	.nav-menu ul { gap: .35rem .5rem; }
	.nav-menu a { padding: .6rem .8rem; }
}
@media (min-width: 1025px) {
	.cta-footer-nav { display: none !important; }
}
@media (max-width: 1024px) {
	.nav-cta { display: none; }
}
@media (max-width: 980px) {
	.hamburger { display: inline-flex; flex-direction: column; order: 2; }
	.nav { height: auto; padding: 10px 2%; }
	.nav-menu { position: fixed; background: #fff; opacity: 0; pointer-events: none; inset: 64px 0 0 0; transform: translateY(-8px); transition: opacity .2s ease; }
	.nav-menu ul { padding: 14px 16px; display: grid; gap: 6px; }
	.nav-menu a { padding: .9rem 1rem; background: #fff; border-bottom: 1px solid #f1f1f1; }
	.nav-menu a:hover { background: #f9f7f4; }
	.nav-menu ul::after { display: block; content: ""; }
	.nav-cta { display: none; }
	.nav-toggle:checked~.nav .nav-menu { opacity: 1; pointer-events: auto; transform: none; }
	.nav-toggle:checked~.nav .hamburger span:nth-child(1) { position: absolute; top: 11px; transform: translateY(6px) rotate(45deg); }
	.nav-toggle:checked~.nav .hamburger span:nth-child(2) { opacity: 0; }
	.nav-toggle:checked~.nav .hamburger span:nth-child(3) { position: absolute; bottom: 11px; transform: translateY(-6px) rotate(-45deg); }
}
@media (min-width: 900px) {
	.blog-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-top { grid-template-columns: 1.5fr 1fr 1.5fr; }
}
@media (min-width: 721px) {
	.service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.cta-inner { flex-direction: column; text-align: center; }
	.cta-text h3 { font-size: 1.5rem; }
	.cta-footer-link img { width: 24%; }
	.cta-footer-text { font-size: 14px; }
}
@media (max-width: 600px) {
	.footer-top { grid-template-columns: 1fr; }
	.footer-post li img { width: 50px; height: 35px; }
}
@media (min-width: 576px) {
	.webBox .container { max-width: inherit; }
}
@media (max-width: 480px) {
	.cta-footer-link img { width: 35%; }
	.cta-footer-link.footer-home img { width: 85%; }
	.cta-footer-text { font-size: 13px; }
}