/*
google search custom
Container
header
手機版側邊選單
footer
anchor
*/

/*google search custom */
.gsc-control-cse {
    border: none !important;
    background: transparent !important;
    border-radius: 0;
    padding: 1rem;
}

.gsc-input-box {
    width: 240px;
    border: 1px solid var(--gray_20) !important;
}

.gsc-search-button {
    background-color: var(--secondary) !important;
    border-radius: 4px !important;
    border: none !important;
    color: var(--white) !important;
}

.gsc-search-button button {
    padding: 6px 20px;
}

.gsc-search-button:hover {
    background-color: var(--secondary_dark) !important;
}


/* @Container  -------------------------------------------------------------------------------------------- */
main {
    position: relative;
    min-height: 80vh;
}

/* ---頁面區塊控制寬度及置中--- */
.wrapper {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: auto;
    position: relative;
}

/* ---頁面區塊間距--- */
section {
    padding: 80px 0;
}

/* APP safe-area設定 */
/*.container {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    display: block;*/
/*    position: relative;*/
/*    !* Status bar height on iOS 11.0 *!*/
/*    padding-top: constant(safe-area-inset-top);*/
/*    padding-bottom: constant(safe-area-inset-bottom);*/
/*    !* Status bar height on iOS 11+ *!*/
/*    padding-top: env(safe-area-inset-top);*/
/*    padding-bottom: env(safe-area-inset-bottom);*/
/*    background-color: transparent;*/
/*}*/
/*.container::before {*/
/*    content: "";*/
/*    height: env(safe-area-inset-top);*/
/*    width: 100%;*/
/*    display: block;*/
/*    background-color: #fff;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*}*/

/* @End Container  -------------------------------------------------------------------------------------------- */


/* @Header [網頁版] -------------------------------------------------------------------------------------------- */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-functions {
    width: 100%;
    background-color: var(--primary);
}
.header-functions .btn-font,
.header-functions .btn-language{
    letter-spacing: 0;
}

.header-functions a, #___gcse_0,
.header-functions .btn-font,
.header-functions .btn-language {
    display: flex;
    align-items: center;
    height: 50px;
    min-width: 50px;
    padding: 0 16px;
    color: var(--white);
    border-right: 1px solid var(--white);
}

.header-functions a:hover,
#___gcse_0:hover,
.header-functions .btn-font:hover,
.header-functions .btn-language:hover {
    color: var(--secondary);
}

.header-logo {
    width: 100%;
    background-color: var(--gray_10);
    padding: 24px 0;
    /* border-bottom: 16px solid var(--secondary_light); */
}
.header-logo a{
    height: 64px;
}

.header-text {
    color: var(--primary);
    letter-spacing: 0.2em;
    -webkit-text-stroke: 8px var(--white);
    paint-order: stroke fill;
}

.header-nav {
    width: 100%;
    padding: 10px 0;
    background-color: var(--secondary_light);
}

.header-nav > .gap-3{
    gap:84px!important;
}

.header-nav a {
    color: var(--textcolor);
    text-align: right;
    letter-spacing: 0.1em;
}

.header-nav a:hover {
    color: var(--primary);
}

/* @手機版 Header -------------------------------------------------------------------------------------------- */

.header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background-color: var(--white);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-mobile-logo {
    margin: 8px 16px;
}

.header-mobile-logo img {
    height: 44px;
    width: auto;
}


.menu-toggle {
    width: 48px;
    height: 68px;
    background-color: var(--primary);
    position: relative;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -14px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.menu-toggle span:nth-child(2) {
    transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(8px);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0);
}

/* @手機版側邊選單 -------------------------------------------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 68px;
    left: -100%;
    width: calc(100vw - 48px);
    max-width: 480px;
    height: calc(100vh - 68px);
    background-color: var(--primary);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: center;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--white);
}

.mobile-menu-list a {
    display: block;
    padding: 12px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background-color 0.3s;
}


.mobile-menu-footer {
    padding: 0 12px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.font-btn,
.lang-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: 1px solid var(--white);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 50px;
    height: 50px;
    margin-left: -1px;
}

.font-btn:hover,
.lang-btn:hover {
    background-color: var(--white);
    color: var(--primary);
}

.mobile-menu-overlay {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* @End 手機版選單 -------------------------------------------------------------------------------------------- */


/* @Footer  -------------------------------------------------------------------------------------------- */
footer {
    display: flex;
    flex-direction: column;
    background-color: var(--gray_10);
    position: relative;
}
.footer-logo{
    height: 64px;
}
.footer-logo img{
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-top {
    width: 100%;
    padding: 40px 0;
    background-color: var(--gray_10);
}

.footer-bottom {
    width: 100%;
    padding: 24px 0;
    background-color: var(--primary);
    color: var(--white);
}

/* @End Footer  -------------------------------------------------------------------------------------------- */

/* @anchor -------------------------------------------------------------------------------------------- */
.anchor_header {
    position: absolute;
    top: 5px;
    left: 5px;
    color: var(--white);
    z-index: 1;
    font-size: 1rem;
}

.anchor_header:hover {
    color: var(--secondary);
    text-decoration: none;
}

.anchor_non_header {
    position: absolute;
    left: 5px;
    top: 5px;
    color: var(--textcolor);
    z-index: 1;
    font-size: 1rem;
}

#tabFirstButton {
    border:4px solid var(--secondary_light);
    background-color: var(--white);
    color: var(--textcolor);
    padding: 8px 16px;
    border-radius: 4px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: -1;
    transition: opacity 0.3s ease;
    font-weight: bold;
    opacity: 0;
    font-size: 1rem;
}

#tabFirstButton:focus {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    outline: 2px solid var(--outline-focus);
    outline-offset: 2px;
    z-index: 1;
}
/* @End anchor  -------------------------------------------------------------------------------------------- */
