﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/*a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}*/

/* Provide sufficient contrast against white background */
/*a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}*/

/*.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}*/

/* Sticky footer styles
-------------------------------------------------- */
/*html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}*/

/* Sticky footer styles
-------------------------------------------------- */
/*html {
  position: relative;
  min-height: 100%;
}*/
body {
    /* Margin bottom by footer height */
    /*margin-bottom: 60px;*/
}

.footer {
    /*position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;*/
    /* Vertically center the text there */
}

body, input, button, select, textarea {
    /*    font-family: "Helvetica Neue", Helvetica, Arial,"Noto Sans TC", 'Microsoft JhengHei', 'Microsoft YaHei', "メイリオ", "맑은 고딕", sans-serif;
*/
    /*    font-family: 'Noto Sans TC', sans-serif;
*/
    font-family: Noto Sans TC,Noto Sans SC,Microsoft JhengHei,Microsoft YaHei,Arial,sans-serif;
}







html, body {
    height: 100%;
}

main {
    min-height: calc(100% - 235px);
}

/* Extra large devices */
@media (min-width: 1200px) {
    body {
        padding-top: 8.5em;
    }

    .gsc-search-button, .gsc-search-button-v2 {
        height: 40px;
    }
}

/* desktops */
@media (max-width: 1199px) {
    body {
        padding-top: 9.25em;
    }

    .gsc-search-button, .gsc-search-button-v2 {
        height: 50px;
    }
}

/* desktops */
@media (max-width: 992px) {
    body {
        padding-top: 4em;
    }

    .gsc-search-button, .gsc-search-button-v2 {
        height: 50px;
    }
}

/* tablets */
@media (max-width: 768px) {
    body {
        padding-top: 4em;
    }

    .fixed-top {
        max-height: 100vh;
        overflow: auto;
    }

    .gsc-search-button, .gsc-search-button-v2 {
        height: 50px;
    }
}

/* phones */
@media (max-width: 576px) {
    body {
        padding-top: 4em;
    }

    .fixed-top {
        max-height: 100vh;
        overflow: auto;
    }

    .gsc-search-button, .gsc-search-button-v2 {
        height: 50px;
    }
}
/*
.fixed-top {
    max-height: 100vh;
    overflow: auto;
}

*/


footer {
    background-color: #f6f6f6;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: #2a2a2a;
}

.h-v100 {
    height: 100vh;
}

.megamenu {
    position: static;
}



    .megamenu .dropdown-menu {
        background: none;
        border: none;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }
@media (max-height:720px) {

    .megamenu .dropdown-menu > div {
        padding-bottom: 4rem;
    }
}

@media (max-height:640px) {

    .megamenu .dropdown-menu > div {
        padding-bottom: 4rem;
    }
}

@media (max-height:480px) {

    .megamenu .dropdown-menu > div {
        padding-bottom: 5rem;
    }
}

@media (max-height:320px) {

    .megamenu .dropdown-menu > div {
        padding-bottom: 6rem;
    }
}
/* desktops */
@media (max-width: 992px) {
    .megamenu .dropdown-menu {
        width: 100%;
    }
}

/* tablets */
@media (max-width: 768px) {
    .megamenu .dropdown-menu {
        width: inherit;
    }
}

/* phones */
@media (max-width: 576px) {
    .megamenu .dropdown-menu {
        width: inherit;
    }
}

@media (min-width: 1200px) {

    .megamenu .dropdown-menu {
        width: 100%;
    }
}

/* desktops */
@media (max-width: 992px) {
    .megamenu .dropdown-menu {
        width: 100%;
    }
}

/* tablets */
@media (max-width: 768px) {
    .megamenu .dropdown-menu {
        width: inherit;
    }
}

/* phones */
@media (max-width: 576px) {
    .megamenu .dropdown-menu {
        width: inherit;
    }
}



/*連結樣式設定 Start*/
/*a {
    color: black;
}

    a:hover, a:focus {
        color: #242424;
    }*/

/*連結樣式設定 End*/

.pageTitle {
    border-bottom: solid 1px #e4e4e4;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}


.home-item {
    background-repeat: no-repeat;
    background-size: cover;
    /* padding: 3rem;*/
    /*margin-bottom: 2rem;*/
    color: black;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

    .home-item:nth-child(2n) {
        background-color: #fafaf2;
    }

    .home-item:nth-child(2n+1) {
        background-color: #f2f2f2;
    }



    .home-item .imageItem .itemLink {
        overflow: hidden;
        color: white;
        /* height: 13rem;
        display:flex;*/
    }

        .home-item .imageItem .itemLink:hover .title, .home-item .imageItem .itemLink:focus .title {
            font-weight: bold;
        }

        .home-item .imageItem .itemLink .bg-img {
            transition: 1s all ease-in-out;
            object-fit: cover;
            object-position: center center;
            width: 100%;
            height: 100%;
        }

        .home-item .imageItem .itemLink:hover .bg-img, .home-item .imageItem .itemLink:focus .bg-img {
            /*-webkit-filter: drop-shadow(8px 8px 10px #000);*/ /* Safari */
            /*filter: drop-shadow(8px 8px 10px #000);*/
            transform: scale(1.20);
        }
/*.home-item .header .title {*/
/*font-size: 2rem;*/
/*font-weight: bold;
        margin-bottom: 0.75rem;
    }

        .home-item .header .title > span {
            border-bottom: solid black 2px;
            padding-bottom: 0.5rem;
        }

    .home-item .header .subTitle {
        font-size: 1.25rem;
    }*/
/*.home-item .imageItem {
        margin-top: 1rem;
        font-size: 1.25rem;
    }

        .home-item .imageItem .title {
            font-size: 1.5rem;
        }

        .home-item .imageItem .subTitle {
            font-size: 1.25rem;
        }


        .home-item .imageItem .itemLink {
            display: block;
        }*/
/*.home-item .imageItem .itemLink:hover, .home-item .imageItem .itemLink:focus, .home-item .imageItem .itemLink:active {
        -webkit-box-shadow: 10px 10px 5px 0px rgba(201,201,201,1);
        -moz-box-shadow: 10px 10px 5px 0px rgba(201,201,201,1);
        box-shadow: 10px 10px 10px 0px rgba(201,201,201,1);
        text-decoration: none;
        font-weight: bold;
    }

    .home-item .itemLink bg-img {
        transition: 0.1s all ease-in-out;
    }

    .home-item .itemLink:hover bg-img, .home-item  .itemLink:focus bg-img, .home-item  .itemLink:active bg-img {
        transform: scale(1.05);
    }

    .home-item .imageItem .bottom {
        padding: 2rem;
        border: solid #e7e7e7 1px;
        background-color: white;
        text-align: center;
    }

    .home-item .imageItem .item :hover {
        shadow: 3px 3px 5px 6px #cccccc;
    }

    .home-item .imageItem .bottom img {
        border: solid #e7e7e7 1px;
        margin-bottom: 0.75rem;
        border-radius: 5px;
    }*/
.text-shadow {
    text-shadow: 2px 2px 0 #cccccc;
}




/*List 樣式*/
ul.list {
    list-style-type: none;
    padding-left: 0;
}

    ul.list > li {
        border-bottom: solid 1px #e4e4e4;
    }

        /*   ul.list > li:nth-child(2n+1) {
            background-color: #FFFFDB;
        }*/

        ul.list > li:hover, ul.list > li:focus {
            /* background-color: #FFFFB3;*/
            background-color: #FFFFDB;
        }

        ul.list > li:first-child {
            border-top-width: 0;
        }

        ul.list > li a {
            text-decoration: none;
            padding: 1rem 0.75rem;
        }

        ul.list > li .dot:before {
            content: '．'
        }
/* tablets */
@media (max-width: 768px) {
    ul.list > li .dot:before {
        content: ''
    }
}

/* phones */
@media (max-width: 576px) {
    ul.list > li .dot:before {
        content: ''
    }
}



.media {
    /*    color: white;
    padding: 0.5rem;
    border-bottom: solid red 1px;
*/
}

    .media:first-child {
        /* border-top: solid red 1px;*/
    }

    .media a {
        /* color: yellow;*/
    }

    /*.media:last-child {
        border-bottom-width: 0;
    }*/

    .media:hover, .media:focus {
        border: solid white 3px;
    }

.list-image {
    width: 15rem;
    height: 15rem;
    object-fit: cover;
    object-position: center;
}

.list-summary {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .list-image {
        width: 5rem;
        height: 5rem;
    }

    .list-summary {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

label.required:after {
    content: "*";
    color: red;
}

@media screen and (max-width: 420px) {
    .g-recaptcha {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }
}

@media screen and (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.77);
        -webkit-transform: scale(0.77);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }
}

.media-list li:hover, .media-list li:focus {
    background-color: #FFFFDB;
}

.media-list .media:nth-child(2n) {
    background-color: #f9fafa;
}


.nav-child-title {
    /*  border-bottom: 1px solid #dee2e6;*/
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.nav-div {
    /*border-right: 1px solid #dee2e6;*/
}

    .nav-div:last-child {
        border-right-width: 0;
    }

ul.nav-list {
    padding-left: 0;
}

    ul.nav-list a {
        display: block;
        width: 100%;
        padding: 0.5rem 0.5rem;
    }

        ul.nav-list a:before {
            content: "▸"
        }

        ul.nav-list a:hover, ul.nav-list a:focus {
            background-color: #FFFFDB;
        }

    ul.nav-list li {
        list-style-type: none;
        /*padding-left: 1rem;*/
    }

        ul.nav-list li ul li {
            padding: 0.5rem 1rem;
        }

.nav-subtitle {
    color: #6c757d;
    font-size: 0.75rem;
}




.left-nav {
    height: 100vh;
}

    .left-nav ul {
        list-style: none;
        padding: 0;
    }

        .left-nav ul li {
            border-top: 1px solid #ded9cd;
        }

            .left-nav ul li a:before {
                content: '▸';
                /* font-size:0.75rem;*/
            }

            .left-nav ul li a {
                display: block;
                width: 100%;
                padding: 0.75rem 0.5rem;
                white-space: inherit;
            }

                .left-nav ul li a:hover, .left-nav ul li a:focus, .left-nav ul li a.active {
                    background-color: #FFFFDB;
                }

/*側邊收合選單 Start*/
/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 999999; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    /*background-color: #111;*/ /* Black*/
    background-color: white;
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

    /* The navigation menu links */
    /* .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }*/

    /* When you mouse over the navigation links, change their color */
    /*  .sidenav a:hover {
            color: #f1f1f1;
        }*/

    /* Position and style the close button (top right corner) */
    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

.left-btn {
    position: fixed;
    border-left: 3px solid #d1d1d1;
    /* top: 50%;*/
    margin-left: -15px;
    /* margin-top: -25px;*/
    z-index: 9999;
    height: 100vh;
    top: 0;
    justify-content: center center;
}

    .left-btn a {
        position: absolute;
        display: block;
        /*  top: 0;
        bottom: 0;*/
        background-color: #d1d1d1;
        padding: 1.5rem 0.3rem;
        top: 50%;
    }
/*側邊收合選單 Start*/

.sub-menu-link[data-toggle].collapsed:after {
    content: " ▾";
}

.sub-menu-link[data-toggle]:not(.collapsed):after {
    content: " ▴";
}

a.text-gold {
    color: #c08a0b;
}

    a.text-gold:hover, a.text-gold:focus {
        color: rgb(255, 188, 31);
    }
