:root {
    --front-ink: #50525f;
    --front-copy: #5d606a;
    --front-accent: #f56363;
    --front-page-max: 1240px;
    --front-gutter: clamp(18px, 3.5vw, 32px);
    --front-section-space: clamp(56px, 7vw, 96px);
}

html {
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    color: var(--front-copy);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: .01em;
}

.container {
    width: 100%;
    max-width: var(--front-page-max);
    padding-right: var(--front-gutter);
    padding-left: var(--front-gutter);
}

.fullwidth-section {
    padding-top: var(--front-section-space);
    padding-bottom: var(--front-section-space);
}

.fullwidth-section.half-padding {
    padding-top: clamp(36px, 4vw, 56px);
    padding-bottom: clamp(36px, 4vw, 56px);
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    color: var(--front-ink);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1.42;
    text-wrap: pretty;
}

h1, .h1 {
    margin-top: 0;
    margin-bottom: clamp(16px, 2vw, 24px);
    font-size: clamp(30px, 3.2vw, 40px);
}

h2, .h2 {
    margin-top: clamp(28px, 4vw, 44px);
    margin-bottom: clamp(14px, 2vw, 22px);
    font-size: clamp(25px, 2.5vw, 32px);
}

h3, .h3 {
    margin-top: 28px;
    margin-bottom: 16px;
    font-size: clamp(21px, 2vw, 26px);
}

h4, .h4 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: clamp(18px, 1.55vw, 21px);
}

h5, .h5 {
    font-size: 16px;
}

h6, .h6 {
    font-size: 15px;
    line-height: 1.8;
}

p {
    margin-bottom: 1.15em;
    font-size: 1rem;
    line-height: 1.85;
}

.front-content {
    color: var(--front-copy);
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.front-content p,
.col-md-8 > p,
.col-md-7 > p,
.col-md-6 > p {
    max-width: 72ch;
}

.navbar .nav > li > a {
    font-size: 15px;
    line-height: 1.5;
}

.front-dropdown-hint,
.front-dropdown-caret,
.front-dropdown-guide {
    display: none;
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.btn,
button,
input,
select,
textarea,
.form-control {
    font-family: inherit;
    font-size: 16px;
}

.form-control {
    min-height: 44px;
    line-height: 1.5;
}

#contact-form textarea.form-control {
    min-height: 148px;
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#isotope .portfolio-hover-buttons a,
#isotope-filter button,
#filters button {
    min-height: 42px;
}

#blog-fullwidth .vacations {
    margin-bottom: 30px;
}

#blog-fullwidth .vacations h4 {
    line-height: 1.55;
}

img,
video,
iframe {
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-8 > p,
    .col-md-7 > p,
    .col-md-6 > p {
        max-width: 68ch;
    }
}

@media (max-width: 767px) {
    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .fullwidth-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .fullwidth-section.half-padding {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    #home .seo-hero-title {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.25;
    }

    #home .seo-hero-subtitle {
        margin-top: 18px !important;
        font-size: clamp(16px, 4.5vw, 20px);
        line-height: 1.6;
    }

    #home .seo-hero-tagline {
        font-size: 15px;
        line-height: 1.7;
    }

    #contact-form .form-group,
    #contact-form .col-sm-6 {
        margin-bottom: 16px;
    }

    .pagination {
        justify-content: center;
    }
}

@media (max-width: 990px) {
    .navbar-default .navbar-nav > li.dropdown > a.dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        font-size: 16px;
    }

    .navbar .front-dropdown-hint {
        display: inline-block;
        margin-left: auto;
        color: #dedee2;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
    }

    .navbar .front-dropdown-caret {
        display: inline-block;
        width: 9px;
        height: 9px;
        margin: -4px 4px 0 0;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 150ms ease-out;
    }

    .navbar li.dropdown.open > .dropdown-toggle .front-dropdown-caret {
        transform: rotate(225deg);
        margin-top: 5px;
    }

    .navbar-nav .open > .dropdown-menu {
        max-height: min(48vh, 360px);
        background-color: #3c3e47 !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #f56363 #55565e;
    }

    .navbar-nav .open > .dropdown-menu > li > a {
        min-height: 48px;
        padding: 12px 22px 12px 32px;
        background-color: #3c3e47;
        color: #f4f4f5;
        font-size: 17px;
        line-height: 1.5;
        white-space: normal;
    }

    .navbar-nav .open > .dropdown-menu > li.front-dropdown-guide {
        display: block;
        padding: 8px 22px 6px 32px;
        color: #dedee2;
        font-size: 14px;
        line-height: 1.5;
        letter-spacing: 0;
        text-transform: none;
    }

    .navbar-nav .open > .dropdown-menu > li > a:focus-visible {
        outline: 2px solid #f56363;
        outline-offset: -3px;
    }
}

.front-load-status {
    min-height: 1.5em;
    margin: 12px auto;
    text-align: center;
}

.front-load-more {
    display: block;
    min-height: 44px;
    margin: 12px auto 28px;
    padding: 10px 22px;
    border: 1px solid #f56363;
    border-radius: 3px;
    background: #fff;
    color: #3c3e47;
    font: inherit;
    cursor: pointer;
}

.front-load-more:hover,
.front-load-more:focus-visible {
    background: #f56363;
    color: #fff;
}

.front-load-more:focus-visible {
    outline: 2px solid #3c3e47;
    outline-offset: 3px;
}

.front-load-more[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .navbar .front-dropdown-caret {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
