﻿@media screen and (min-width: 576px) {
  /* ----------------------共用---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl,
  .nav_box .main_area .main_menu,
  .nav_box .top_area .first-area {
    max-width: 500px;
  }
  .nav_box .main_area .main_menu,
  .nav_box .top_area .first-area {
    margin: 0 auto;
    width: 100%;
  }
}
@media screen and (min-width: 768px) {
  /* ----------------------共用---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl,
  .nav_box .main_area .main_menu,
  .nav_box .top_area .first-area {
    max-width: 680px;
  }
}
@media screen and (min-width: 992px) {
  /* ----------------------共用---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl,
  .nav_box .main_area .main_menu,
  .nav_box .top_area .first-area {
    max-width: 920px;
  }
  /* ----------------------table ---------------------- */
  .table tbody tr td:not(:last-of-type):after,
  .table thead tr th:not(:last-of-type):after {
    width: 1px;
    height: 25px;
    content: "";
    display: block;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    position: absolute;
    background-color: #ddd;
  }
  /* ----------------------共用edit---------------------- */
  .custom_box.custom_box_wrap:not(.custom_box_no_wrap) {
    grid-template-columns: repeat(4, 1fr);
  }

  .custom_box.custom_box_d .custom_item:nth-of-type(even) {
    transform: translate(0, 50px);
  }
}
@media screen and (min-width: 1200px) {
  /* ----------------------共用---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl,
  .nav_box .main_area .main_menu,
  .nav_box .top_area .first-area {
    max-width: 1100px;
  }

  .dropdown-toggle::after {
    margin-left: 0 !important;
  }

  /* ----------------------選單---------------------- */

  .nav_box {
    -o-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    transition: all 0.2s linear;
  }
  .nav_box > div {
    display: flex;
    justify-content: space-between;
  }
  .fixed_header .nav_box {
    position: fixed;
    width: 100%;
  }
  .nav_box .mobile_set {
    display: flex;
  }
  .nav_box .nav_group {
    width: calc(100% - 260px);
  }

  .nav_box .main_area .main_menu {
    display: flex;
    justify-content: space-between;
  }
  .nav_box .top_area {
    justify-content: flex-end;
    -o-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    transition: all 0.2s linear;
  }

  .fixed_header .nav_box .top_area {
    padding: 0px 0 0px 0;
  }
  .nav_box .top_area .first-area > li > a {
    padding: 12px 0 15px 0;
  }
  .fixed_header .nav_box .top_area .first-area > li > a {
    padding: 5px 0;
  }

  .fixed_header .nav_box .logo_box .logo {
    width: 200px;
  }

  .dropdown-fontsize:hover ul,
  .dropdown-fontsize:focus-within ul {
    display: flex;
    flex-direction: column;
  }

  .nav_box .main_area .main_menu .item {
    position: relative;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .nav_box .main_area .main_menu .item.dropdown.active > a span:after {
    width: calc(100% + 16px);
  }

  .nav_box .main_area .main_menu .item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 2px 20px 2px;
  }

  .fixed_header .nav_box .main_area .main_menu .item > a {
    padding: 0px 2px 15px 2px;
  }

  .nav_box .main_area .main_menu .item:hover ul,
  .nav_box .main_area .main_menu .item:focus-within ul {
    display: flex;
    flex-direction: column;
  }

  .nav_box .main_area .main_menu .item > ul {
    position: absolute !important;
    inset: auto !important;
    bottom: 0px !important;
    transform: translate(0, calc(100% - 4px)) !important;
    border: none;
    z-index: 9999;
    padding: 0;
    border-radius: 0;
    min-width: 100%;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.2);
  }

  .nav_box .main_area .main_menu .item > ul:after {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    top: -8px;
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #fff transparent;
  }
  .nav_box .main_area .main_menu .item > ul:before {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    top: -9px;
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 9px 9px 9px;
    border-color: transparent transparent #ddd transparent;
  }

  .nav_box .main_area .main_menu .item > ul li a {
    padding: 15px 20px;
    min-width: 220px;
    border-bottom: 1px solid #efefef;
  }

  .nav_box .main_area .main_menu .item ul li {
    position: relative;
  }

  .nav_box .main_area .main_menu .item ul li i {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translate(0, -50%);
    font: 0.9em "icomoon" !important;
    content: "\e917";
    z-index: 1;
    color: #555;
  }
  .nav_box .main_area .main_menu .item ul li:hover {
    background-color: #f8f9fa;
  }
  .nav_box .main_area .main_menu .item ul li ul {
    position: absolute;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }

  .nav_box .main_area .main_menu .item ul li:focus-within ul,
  .nav_box .main_area .main_menu .item ul li:hover ul {
    opacity: 1;
    right: -100%;
    top: 0;
    z-index: 2;
  }
  .nav_box .main_area .main_menu .item ul li ul li a {
    padding: 15px 20px;
    display: block;
    background: #fff;
    color: inherit;
  }
  .nav_box .main_area .main_menu .item ul li ul li a:hover {
    background-color: #f8f9fa;
  }

  /* ----------------------框架---------------------- */
  .have_sidebar {
    display: flex;
    justify-content: space-between;
  }
  .have_sidebar .sidebar {
    width: 280px;
    will-change: min-height;
  }
  .have_sidebar .content {
    width: calc(100% - 330px);
  }
  .share .dropdown:hover ul,
  .share .dropdown:focus-within ul {
    display: flex;
    flex-direction: column;
  }
  /* ----------------------首頁---------------------- */
  /* 規範及指引 */
  .criterion_box .criterion .item:hover {
    transform: scale(1.05);
  }
  .criterion_box .download_box .swiper_download:hover {
    transform: scale(1.05);
  }
  .news_box .news .information a:hover {
    transform: scale(1.05);
    position: relative;
    z-index: 2;
    box-shadow: 8px 8px 0px 0px rgb(110, 183, 47);
    border-top: 1px solid #ddd;
  }

  /* 首頁-tab */
  .tab_box .tab-content .tab-pane {
    min-height: 400px;
  }
  /* ----------------------搜尋結果---------------------- */
  .search_result_box .hotunit ul {
    grid-template-columns: repeat(4, 1fr);
  }
  /* ----------------------共用edit---------------------- */
  .have_sidebar .sidebar .sidebar__inner .title_download:first-of-type {
    margin: 20px 0 1rem 0;
  }

  .sidebar .download_link_box .item .c {
    grid-column-start: 2;
    grid-row-start: 2;
    grid-row-end: 2;
  }
  .sidebar .download_link_box .item .a {
    padding: 0 15px 0 0;
    display: none;
  }
  .sidebar .download_item .item {
    display: flex;
    flex-direction: column;
  }

  .sidebar .download_link_box .openblank {
    display: none;
  }

  .sidebar .link_item .item > a {
    display: inline-flex;
  }

  .sidebar .download_item .item:only-of-type,
  .sidebar .link_item .item:only-of-type > a {
    border-bottom: none;
  }
  .sidebar .download_item .item > div,
  .sidebar .link_item .item > a > div {
    padding: 0px;
  }
  .sidebar .download_link_box .item:nth-of-type(even) {
    background-color: transparent;
  }
  .sp_custom {
    margin-top: 60px;
  }
}
@media screen and (min-width: 1400px) {
  /* ----------------------共用---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1380px;
  }
}
@media screen and (max-width: 1440px) {
  /* ----------------------首頁---------------------- */
  /* banner */
  .banner_box .key_btn_box ul {
    padding: 0;
  }
  .banner_box .key_btn_box ul li a {
    padding: 25px 20px;
  }
  .banner_box .key_btn_box ul li a img {
    margin: 0;
  }
  /* ----------------------搜尋結果---------------------- */
  .search_result_box .search_none .img_box {
    max-width: 250px;
  }
}

@media screen and (max-width: 1400px) {
  /* ----------------------頁尾---------------------- */
  footer .footer_bottom .logo_box {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  footer .footer_bottom .footer_ctn {
    flex-direction: column;
  }
  footer .footer_bottom .footer_ctn .left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer .footer_bottom .footer_ctn .left ul.one {
    margin-bottom: 15px;
  }
  footer .footer_bottom .footer_ctn .left ul.two li {
    margin-bottom: 15px;
  }
  footer .footer_bottom .footer_ctn .right {
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer .footer_bottom .footer_ctn .right ul {
    justify-content: center;
  }
  footer .footer_bottom .footer_ctn .right ul {
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 1280px) {
  /* ----------------------文字尺寸---------------------- */
  .larger {
    line-height: 1.5;
  }
  .medium {
    line-height: 1.7;
  }
  .small {
    line-height: 1.9;
  }
  .fs-0,
  .subject_box .item a i,
  .tab_box .tab-content .tab-pane .ctn .tab_title i,
  .criterion_box .criterion .item i,
  .criterion_box .download_box .swiper_download .swiper-slide i,
  .page_banner .title h2,
  .custom_box_c .custom_item a i,
  .related_custom .info i {
    font-size: 2.5rem !important;
    line-height: 1;
  }
  .fs-1,
  .subject_box .item a .info ul li.title,
  .title_page {
    font-size: 2em !important;
    line-height: 1.4;
  }
  .fs-2,
  .title_subject {
    font-size: 1.75em !important;
    line-height: 1.4;
  }
  .fs-3,
  .edit .title_subject,
  .edit h2,
  .criterion_box .download_box .swiper_download .swiper-slide,
  .title_area {
    font-size: 1.5em !important;
    line-height: 1.4;
  }
  .fs-4,
  .edit .title_area,
  .edit h3,
  .edit h4,
  .criterion_box .download_box .swiper_download .swiper-button,
  .banner_box .swiper_banner .swiper-button,
  .title_download,
  .quote,
  .sub_title {
    font-size: 1.25em !important;
    line-height: 1.5;
  }
  .fs-5,
  .edit h5,
  .title_caption,
  .criterion_box .criterion .item .title,
  .dropdown-fontsize ul,
  .share .item button i,
  .share .dropdown ul,
  .custom_box_a .custom_item .title,
  .custom_box_c .custom_item a,
  .search_result_box .result .item a .title {
    font-size: 1.125em !important;
    line-height: 1.6;
  }

  .fs-6,
  .edit h6,
  .title_caption_b,
  footer .footer_top .footer_menu .group .title,
  .tab_box .tab_nav .nav .nav-item button,
  .banner_box .key_btn_box ul li a .title,
  .criterion_box .criterion .item .title,
  .chart_box .nav-pills {
    font-size: 1em !important;
    line-height: 1.7;
  }

  .edit > .title_page:first-child {
    font-size: 2em !important;
    line-height: 1.4 !important;
  }
  /* ----------------------選單搜尋---------------------- */
  .hotunit ul {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ----------------------頁尾---------------------- */
  footer .footer_top .footer_menu {
    grid-template-columns: repeat(5, 1fr);
  }
  /* ----------------------首頁---------------------- */
  /* banner */

  .banner_box .key_btn_box ul li a {
    padding: 15px 15px;
  }
  .banner_box .key_btn_box ul li a img {
    max-width: 40px;
  }
  .banner_box .swiper_banner .banner-pagination-links {
    bottom: 20px;
  }

  /* ----------------------共用edit---------------------- */
  .swiper_edit .swiper-button {
    width: 40px;
    height: 40px;
  }

  /* .sidebar .download_item .item {
    margin: 0 0 0 50px;
  }
  .sidebar .download_item .item::before {
    font: 2.5em icomoon !important;
    left: -50px;
  } */
}
@media screen and (max-width: 1199px) {
  /* ----------------------共用---------------------- */
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl,
  .nav_box .main_area .main_menu,
  .nav_box .top_area .first-area {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ----------------------文字尺寸---------------------- */
  .lh-lg {
    line-height: 1.75 !important;
  }
  p {
    margin-bottom: 1rem;
  }

  .fs-0,
  .subject_box .item a i,
  .tab_box .tab-content .tab-pane .ctn .tab_title i,
  .criterion_box .criterion .item i,
  .criterion_box .download_box .swiper_download .swiper-slide i,
  .page_banner .title h2,
  .custom_box_c .custom_item a i,
  .related_custom .info i {
    font-size: 2rem !important;
    line-height: 1;
  }
  .fs-1,
  .subject_box .item a .info ul li.title,
  .title_page {
    font-size: 1.75em !important;
    line-height: 1.4;
  }
  .fs-2,
  .title_subject {
    font-size: 1.5em !important;
    line-height: 1.4;
  }
  .fs-3,
  .edit .title_subject,
  .edit h2,
  .criterion_box .download_box .swiper_download .swiper-slide,
  .title_area {
    font-size: 1.35em !important;
    line-height: 1.4;
  }
  .fs-4,
  .edit .title_area,
  .edit h3,
  .edit h4,
  .criterion_box .download_box .swiper_download .swiper-button,
  .banner_box .swiper_banner .swiper-button,
  .title_download,
  .quote,
  .sub_title {
    font-size: 1.125em !important;
    line-height: 1.5;
  }
  .fs-5,
  .edit h5,
  .title_caption,
  .criterion_box .criterion .item .title,
  .dropdown-fontsize ul,
  .share .item button i,
  .share .dropdown ul,
  .custom_box_a .custom_item .title,
  .custom_box_c .custom_item a,
  .search_result_box .result .item a .title {
    font-size: 1em !important;
    line-height: 1.6;
  }

  .fs-6,
  .edit h6,
  .title_caption_b,
  footer .footer_top .footer_menu .group .title,
  .tab_box .tab_nav .nav .nav-item button,
  .banner_box .key_btn_box ul li a .title,
  .criterion_box .criterion .item .title,
  .chart_box .nav-pills {
    font-size: 1em !important;
    line-height: 1.7;
  }

  .edit > .title_page:first-child {
    font-size: 1.65em !important;
    line-height: 1.2 !important;
  }

  .title_subject .more,
  .edit h2 .more {
    font-size: 0.7em;
  }
  .download_item .item,
  .link_item .item > a {
    padding: 10px 0;
  }

  .title_subject:after,
  .edit h2:after {
    top: -10px;
  }
  .title_subject:before,
  .edit h2:before {
    top: -10px;
  }
  .title_download:before,
  .edit h4:before {
    top: -10px;
  }
  .quote + .title_subject,
  .quote + .edit h2 {
    margin-top: 30px;
  }

  .title_page + .title_subject,
  .title_page + .edit h2 {
    margin-top: 50px;
  }

  .title_subject,
  .edit h2 {
    margin-top: 60px;
  }

  .title_download,
  .edit h4 {
    margin-top: 40px;
  }

  .title_area,
  .edit h3 {
    margin-top: 30px;
    margin-bottom: 0.5em;
  }

  .title_caption,
  .edit h5 {
    margin: 20px 0 0 0;
  }
  .custom_box {
    margin: 20px 0 20px 0;
  }
  .quote {
    margin: 40px 0 0 0;
  }
  .quote span {
    margin: 0px 0 calc(10px + 1.5rem) 0;
  }

  .table tbody tr td .btn {
    padding: 4px 12px;
  }
  /* ----------------------無障礙---------------------- */
  a.sr-only,
  a[accesskey] {
    display: none;
  }
  /* ----------------------選單---------------------- */
  .nav_box .main_area .main_menu .item ul li i {
    display: none;
  }
  .open_mobile_menu {
    overflow: hidden;
  }

  .open_mobile_menu .nav_box {
    background-color: #025c54;
  }
  .nav_box .mobile_set {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }

  .open_mobile_menu .nav_box .mobile_set {
    justify-content: flex-end;
  }

  .nav_box .mobile_set .group {
    position: relative;
    z-index: 999;
  }

  .nav_box .mobile_set .group:after {
    position: absolute;
    right: 0;
    top: 50%;
    content: "";
    display: block;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    background-color: #025c54;
    width: 60px;
    height: 45px;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: -1;
  }
  .open_mobile_menu .nav_box .logo_box {
    display: none;
  }
  .nav_box .logo_box .logo {
    width: 180px;
  }

  .open_mobile_menu .nav_box .logo_box .logo {
    filter: brightness(0) invert(1);
  }

  .nav_box .nav_group {
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    background: white;
    top: 70px;
    left: 0;
    height: 100px;
    width: 100%;
    height: calc(100% - 70px);
  }

  .open_mobile_menu .nav_group {
    display: flex;
    flex-direction: column;
  }

  .nav_box .nav_group:after {
    position: fixed;
    width: 65px;
    height: 60px;
    content: "";
    display: block;
    right: 0;
    bottom: 0;
    background: url(/img/mobile_radius_bottom.png) no-repeat;
    background-position: left bottom;
    z-index: 1;
    background-size: cover;
  }

  .nav_box .nav_group .main_area:before {
    position: sticky;
    width: 65px;
    height: 60px;
    content: "";
    display: block;
    left: -5px;
    top: -1px;
    background: url(/img/mobile_radius_top.png) no-repeat;
    background-position: right top;
    z-index: 0;
    background-size: cover;
  }

  .nav_box .main_area .main_menu {
    margin: -60px auto 0 auto;
    padding: 0 40px;
  }
  .nav_box .main_area .main_menu .item ul {
    position: static !important;
    transform: none !important;
    border: none;
    padding: 0 0 20px 0;
    background: transparent;
  }

  .nav_box .main_area .main_menu .item ul li a.dropdown-item {
    padding: 5px 0 5px 18px;
    position: relative;
    font-size: 1.125em;
  }

  .nav_box .main_area .main_menu .item ul li a.dropdown-item:after {
    width: 8px;
    height: 2px;

    content: "";
    display: block;
    left: 0;
    top: 18px;
    position: absolute;
  }

  .nav_box .main_area .main_menu .item ul li ul {
    padding: 0;
    margin: 0 0 20px 35px;
    list-style: none;
  }

  .nav_box .main_area .main_menu .item ul li a:hover,
  .nav_box .main_area .main_menu .item ul li a:focus {
    background-color: transparent;
  }

  .nav_box .main_area .main_menu .item.active > a span:after {
    bottom: -5px;
  }
  .nav_box .main_area .main_menu .item .dropdown-toggle.show::after {
    font: 0.9em "icomoon" !important;
    content: "\e90a";
  }
  .nav_box .main_area .main_menu .item ul .open_mobile_menu {
    overflow: hidden;
  }

  .nav_box .main_area .main_menu .item {
    border-bottom: 1px solid rgba(6, 91, 76, 0.1);
    font-size: 1.2em;
  }
  .nav_box .main_area .main_menu .item > a {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    white-space: inherit;
  }

  .nav_box .main_area .main_menu .item .dropdown-toggle::after {
    transform: translate(0, 3px);
  }
  .nav_box .top_area {
    padding-top: 0;
    padding-bottom: 0px;
    background-color: #025c54;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 70px;
  }
  .nav_box .top_area .first-area {
    display: none;
    padding: 0 70px 0 40px;
  }
  .nav_box .top_area .first-area > li > a {
    color: white;
    padding: 0px 0;
  }
  .open_mobile_menu .nav_box .top_area .first-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .open_mobile_menu .dropdown-fontsize {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  .open_mobile_menu .dropdown-fontsize > a {
    height: 26px;
    padding: 0 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .open_mobile_menu .nav_box .top_area .search_btn {
    display: none !important;
  }

  .nav_box .mobile_set .group {
    display: flex;
  }
  .nav_box .mobile_set .group ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .search_open {
    overflow: hidden;
  }

  .nav_box .mobile_set .group ul li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav_box .mobile_set .group ul li.search_btn a {
    color: #025c54;
    font-size: 1.25em;
    padding: 0 15px;
    margin: 0 15px 0 0;
    transform: translate(0, 4px);
  }

  .open_mobile_menu .nav_box .mobile_set .group ul li.search_btn a {
    display: none;
  }
  .m-menubar {
    width: 28px;
    height: 38px;
    cursor: pointer;
    display: flex;
    margin: 0 15px 0 0px;
    transform: translate(0, 8px);
  }

  .m-menubar .bar {
    width: 100%;
    height: 2px;
    background: white;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }

  .m-menubar .bar::before {
    content: "";
    display: block;
    position: relative;
    top: 10px;
    width: 100%;
    height: 2px;
    background: white;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    border-radius: 3px;
  }

  .m-menubar .bar::after {
    content: "";
    display: block;
    position: relative;
    top: 17px;
    width: 100%;
    height: 2px;
    background: white;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    border-radius: 3px;
  }

  .m-menubar.showbar .bar {
    background: transparent;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }

  .m-menubar.showbar .bar::before {
    top: 10px;
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }

  .m-menubar.showbar .bar::after {
    top: 8px;
    -webkit-transform: rotate(-225deg);
    transform: rotate(-225deg);
  }
  .nav_box .top_area .first-area > li {
    margin: 0px 18px 0px 0px;
  }
  /* ----------------------選單搜尋---------------------- */
  .search_box {
    height: 100%;
    max-height: none;
  }
  .search_box .header .logo_box .logo {
    width: 180px;
  }
  .search_box .search_body {
    padding: 30px 0 60px 0;
  }
  .hotunit ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .search_box .header {
    height: 70px;
    margin: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }
  .search_box .header > div {
    height: 70px;
  }

  /* ----------------------頁尾---------------------- */
  footer .footer_top {
    display: none;
  }

  /* ----------------------框架---------------------- */
  .breadcrumb_box > div {
    flex-direction: column;
  }
  .breadcrumb_box .breadcrumb {
    margin: 10px 0 5px 0;
  }
  .breadcrumb_box .left {
    width: calc(100% - 10px);
    min-height: auto;
  }
  .breadcrumb_box .right {
    width: 100%;
    background-color: white;
  }
  .share .item button {
    background-color: #ddd;
  }
  .have_sidebar {
    flex-direction: column;
  }
  .have_sidebar .sidebar {
    width: 100%;
  }
  .have_sidebar .sidebar .sidebar__inner {
    position: static !important;
    transform: none !important;
  }

  .have_sidebar .resize-sensor {
    display: none;
  }

  /* ----------------------首頁---------------------- */
  /* 首頁-tab */

  .tab_box .tab_nav > div {
    flex-direction: column;
  }
  .tab_box .tab_nav .info {
    max-width: none;
  }
  .tab_box .tab_nav .nav {
    margin: 20px 0 0 0;
  }
  .tab_box .tab_nav .nav:after {
    display: none;
  }
  .tab_box .tab_nav .nav .nav-item button {
    padding: 10px 0;
  }
  .tab_box .tab_nav .nav .nav-item button.active:after {
    display: none;
  }
  .tab_box .tab-content {
    padding: 50px 0 50px 0;
  }

  /* 規範及指引 */
  .criterion_box {
    padding: 40px 0 100px 0;
    margin: 0 0 0px 0;
  }

  .criterion_box .criterion {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }

  /* 最新消息 */

  .news_box > div {
    grid-template-columns: 1fr;
  }
  .news_box .news {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 0 20px 0;
  }

  .news_box .news_title {
    padding: 60px 0 10px 0;

    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
  }
  .news_box .news_title .title {
    margin: 0;
  }
  .news_box .news .information a {
    border-left: none;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
  }

  .news_box .news .information:last-of-type a {
    border-bottom: none;
  }

  .news_box .news .information ul.top li.title {
    margin: 0 0 0px 0;
  }

  /* banner */
  .banner_box .swiper_banner .banner-pagination-links {
    align-items: center;
    justify-content: center;

    left: 0;
    width: 100%;
  }
  .banner_box .key_btn_box {
    position: static;
  }
  .banner_box .key_btn_box ul {
    width: 100%;
  }
  .banner_box .key_btn_box ul li {
    width: 100%;
  }

  /* ----------------------共用edit---------------------- */
  .related_custom .img_box {
    width: 45%;
  }
  .related_custom .info {
    width: 55%;
    padding: 40px 70px 40px 40px;
  }

  .related_custom .info i {
    right: 15px;
  }
}
@media screen and (max-width: 1024px) {
}
@media screen and (max-width: 991px) {
  /* ----------------------共用---------------------- */

  .group_btn {
    display: block;
  }
  .group_btn li {
    width: 1%;
    display: table-cell;
    padding: 0 5px;
  }
  .group_btn li button {
    width: 100%;
    min-width: auto;
  }
  .custom_box_d .point {
    text-align: center;
  }
  .custom_box_d .info {
    display: flex;
    flex-direction: column;
  }
  .custom_box_d .info .title {
    align-items: center;
  }

  .edit .img-full.mb-5 {
    margin-bottom: 20px !important;
  }

  .edit .row.gy-4.gx-4.mb-5.mt-5 {
    margin-top: 0 !important;
  }

  .edit .row.gy-4.gx-4.mb-5.mt-5 > .col-12 {
    margin-top: 0 !important;
  }

  .related_custom .img_box {
    display: none;
  }

  /* ----------------------選單搜尋---------------------- */
  .hotkey {
    flex-direction: column;
  }
  .hotkey ul {
    padding: 0;
  }
  .hotunit ul {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 0px;
  }
  /* ----------------------頁尾---------------------- */
  footer .footer_bottom .footer_ctn .left ul.one li:not(:last-of-type) {
    margin: 0 25px 0px 0;
  }

  footer .footer_bottom .footer_ctn .left {
    align-items: flex-start;
  }

  footer .footer_bottom .footer_ctn .right {
    text-align: center;
  }

  /* ----------------------框架---------------------- */

  .share .item {
    margin: 0 2px;
  }
  .share .item button {
    width: 38px;
    height: 38px;
  }

  .pagination_box {
    margin: 20px 0 0 0;
    justify-content: center;
    flex-direction: column;
  }
  .have_sidebar .content {
    padding-bottom: 20px;
  }
  /* ----------------------table ---------------------- */

  .table_hover tbody tr:hover td {
    background-color: transparent;
  }
  .no-more-tables table,
  .no-more-tables thead,
  .no-more-tables tbody,
  .no-more-tables th,
  .no-more-tables td,
  .no-more-tables tr {
    display: block;
  }

  .no-more-tables thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .no-more-tables tr {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
  }

  .no-more-tables td {
    border: none;
    position: relative;
    padding: 1px 12px 1px 110px !important;
    white-space: normal;
    text-align: left;
  }

  .no-more-tables td:before {
    position: absolute;
    top: 1px;
    left: 6px;
    width: 100px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  .no-more-tables td:before {
    content: attr(data-title);
    white-space: break-spaces;
    color: #757575;
    font-weight: normal;
  }
  /* ----------------------首頁---------------------- */
  /* 首頁-更多主題 */
  .subject_box .item a .info {
    padding: 25px 75px 25px 25px;
  }
  .subject_box .item a i {
    right: 25px;
  }

  /* 首頁-tab */
  .tab_box .tab_nav .nav .nav-item button {
    background-color: rgba(0, 0, 0, 0.04);
  }
  .tab_box:after {
    background: rgba(255, 255, 255, 0.8);
  }
  .tab_box .tab_nav .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tab_box .tab_nav .nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .tab_box .tab_nav .nav .nav-item {
    padding: 1px;
  }

  .tab_box .tab-content .tab-pane {
    height: auto !important;
  }

  /* 規範及指引 */
  .criterion_box .download_box {
    display: block;
  }
  .criterion_box .criterion {
    grid-column-gap: 5px;
    grid-row-gap: 5px;
  }
  .criterion_box .criterion .item {
    padding: 15px 5px;
  }
  .criterion_box .criterion .item img {
    max-width: 60px;
  }
  .criterion_box .download_box .group {
    display: block;
  }
  .criterion_box .download_box .swiper_download {
    max-width: none;
  }
  .criterion_box .download_box .big_title {
    margin: 0 0 10px 0;
    position: relative;
  }

  .criterion_box .download_box .big_title:after {
    width: 2px;
    height: calc(50% + 30px);
    bottom: -40px;
  }
  .criterion_box .download_box .swiper_download .swiper-slide {
    padding: 30px 50px 30px 50px;
  }
  .criterion_box .download_box .swiper_download .swiper-button {
    padding: 0 10px;
  }

  /* ---------------------- 網站導覽 ---------------------- */
  .map_box .map_route {
    grid-template-columns: repeat(2, 1fr);
  }
  .map_box .map_route .item {
    padding: 15px 15px;
  }

  /* ----------------------最新消息-列表---------------------- */
  /* .filter_form {
    flex-direction: column;
    padding: 15px 15px;
  }

  .filter_form .col-auto label {
    min-width: 100px;
  } */
  /* ----------------------共用edit---------------------- */
  /* .title_subject,
  .edit h2 {
    margin: 60px 0 1rem 0;
  } */

  .download_link_box .openblank {
    display: none;
  }
  .download_link_box i {
    transform: none;
  }
  .download_item .item .c {
    grid-column-start: 2;

    grid-row-start: 2;
    grid-row-end: 2;
  }
  .download_item .item > div,
  .link_item .item > a > div {
    padding: 0 10px;
  }

  .custom_box {
    grid-template-columns: repeat(1, 1fr);
  }
  .custom_box .custom_item {
    min-height: auto;
    margin: 0 0 20px 0;
  }
  .custom_box_d .custom_item .point {
    margin: 0;
  }

  .sp_custom .custom_item {
    border-radius: 40px;
    position: relative;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  .sp_custom:before,
  .sp_custom:after {
    display: none;
  }
  .sp_custom .custom_item:first-of-type:after {
    width: 60px;
    height: 60px;
    background: url(/img/criterion/02.png) no-repeat;
    background-size: contain;
    background-position: center center;
    bottom: 0%;
    left: 50%;
    content: "";
    display: block;
    position: absolute;
    transform: translate(-50%, 80%);
    z-index: 1;
  }
  .sp_custom .custom_item:last-of-type {
    margin: 0;
  }
  .related_custom {
    flex-direction: column-reverse;
    margin: 30px 0 0 0;
  }
  .sp_custom .custom_item .related_custom .img_box {
    display: none;
  }

  .related_custom .info {
    width: 100%;
    transform: none;
  }
}

@media screen and (max-width: 767px) {
  /* ----------------------首頁---------------------- */
  /* 首頁-更多主題 */
  .subject_box > div {
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 10px;
  }
  /* ----------------------共用edit---------------------- */
  /*
  .quote span {
    padding: 0 30px;
  }
  .quote span:after,
  .quote span:before {
    font: 1.25em "icomoon" !important;
  }*/
}
@media screen and (max-width: 640px) {
  /* ----------------------選單搜尋---------------------- */
  .search {
    flex-direction: column;
  }
  .search .advanced_box {
    margin: 5px 0 0 0;
  }
  .search .advanced_box .btn {
    width: 100%;
    padding: 5px;
  }

  /* ----------------------選單搜尋---------------------- */
  .search > button {
    padding: 0.5rem 1rem !important;
  }
  /* ----------------------框架---------------------- */
  .main_ctn .main {
    margin: 20px 0 60px 0;
  }
  /* ----------------------首頁---------------------- */
  .tab_box {
    margin: 1.8rem 0 10px 0;
  }
  .tab_box .tab_nav .nav {
    margin: 0px 0 0 0;
  }

  .tab_box .tab-content {
    padding: 0px 0 20px 0;
  }
  /* 首頁-更多連結 */
  .more_box {
    padding: 25px 0;
  }
  .more_box > div {
    padding: 0;
  }
  .more_box .swiper_more .swiper-button-prev,
  .more_box .swiper_more .swiper-button-next {
    width: 30px;
  }
  .more_box .swiper_more .swiper-wrapper {
    margin: 0 40px;
  }
  /* 規範及指引 */
  .criterion_box .download_box .swiper_download .swiper-slide {
    min-height: 200px;
  }

  /* banner */
  .banner_box .swiper_banner .banner-pagination-links {
    position: static;
    margin: 20px 0;
  }
  .banner_box .swiper_banner .swiper-button {
    padding: 30px 20px;
  }
  .banner_box .swiper_banner .swiper-slide a img.desktop {
    display: none;
  }
  .banner_box .swiper_banner .swiper-slide a img.mobile {
    display: block;
  }

  .banner_box .key_btn_box ul li a {
    padding: 15px 10px;
    flex-wrap: wrap;
  }
  .banner_box .key_btn_box ul li a img {
    max-width: 35px;
  }
  .banner_box .key_btn_box ul li a .title {
    /* white-space: normal; */
    line-height: 1.2;
    margin: 5px 0 0 0;
    text-align: center;
    /* max-width: 46px; */
  }
  /* .banner_box .scroll_container {
    overflow-y: auto;
  }

  .banner_box .key_btn_box ul {
    white-space: nowrap;
  } */

  /* ---------------------- 網站導覽 ---------------------- */
  .map_box .map_route {
    grid-template-columns: repeat(1, 1fr);
  }

  /* ----------------------搜尋結果---------------------- */
  .search_result_box .search {
    margin: 0 0 20px 0;
  }
  .search_result_box .result .item a {
    padding: 20px 0;
  }
  .search_result_box .search_none .img_box {
    max-width: 150px;
  }

  /* ----------------------共用edit---------------------- */
  .privacy_box {
    padding: 20px 20px;
    border-radius: 10px;
  }

  .edit .title_subject,
  .edit h2 {
    flex-direction: column;
  }
  .title_subject .more,
  .edit h2 {
    transform: none;
    display: flex;
    justify-content: flex-end;
  }

  .related_custom .info {
    padding: 30px 30px 40px 30px;
  }

  .related_custom .info i {
    bottom: 0px;

    right: 20px;
    top: auto;
  }
  .filter_form .col-auto {
    width: 100%;
  }

  .filter_form .col-auto button {
    width: 100%;
  }
}
@media screen and (max-width: 414px) {
}

@media print {
  @page {
    /*列印紙張大小*/
    size: A4 portrait;
    padding: 0;
  }
  html {
    z-index: 90%;
    padding: 0.5cm 0.5cm;
  }
  .container {
    padding: 0 !important;
  }
  .chart_box {
    zoom: 70%;
  }

  .nav_box {
    display: none;
  }
  .page_banner {
    background-color: transparent;
  }
  .page_banner img {
    display: none;
  }
  .page_banner .title {
    position: relative;
    transform: none;
    border-bottom: 1px solid #ddd;

    padding-bottom: 20px;
  }
  .page_banner .title h2 {
    color: #000;
  }
  .breadcrumb_box {
    display: none;
  }

  footer {
    display: none;
  }
  .max-height .scroll_container {
    max-height: none;
  }
  .col-xl-6 {
    width: 50%;
  }

  /* ----------------------文字尺寸---------------------- */
  .lh-lg {
    line-height: 1.75 !important;
  }
  p {
    margin-bottom: 1rem;
  }

  .fs-0,
  .subject_box .item a i,
  .tab_box .tab-content .tab-pane .ctn .tab_title i,
  .criterion_box .criterion .item i,
  .criterion_box .download_box .swiper_download .swiper-slide i,
  .page_banner .title h2,
  .custom_box_c .custom_item a i,
  .related_custom .info i {
    font-size: 2rem !important;
    line-height: 1;
  }
  .fs-1,
  .subject_box .item a .info ul li.title,
  .title_page {
    font-size: 1.75em !important;
    line-height: 1.4;
  }
  .fs-2,
  .title_subject {
    font-size: 1.5em !important;
    line-height: 1.4;
  }
  .fs-3,
  .edit .title_subject,
  .edit h2,
  .criterion_box .download_box .swiper_download .swiper-slide,
  .title_area {
    font-size: 1.35em !important;
    line-height: 1.4;
  }
  .fs-4,
  .edit .title_area,
  .edit h3,
  .edit h4,
  .criterion_box .download_box .swiper_download .swiper-button,
  .banner_box .swiper_banner .swiper-button,
  .title_download,
  .quote,
  .sub_title {
    font-size: 1.125em !important;
    line-height: 1.5;
  }
  .fs-5,
  .edit h5,
  .title_caption,
  .criterion_box .criterion .item .title,
  .dropdown-fontsize ul,
  .share .item button i,
  .share .dropdown ul,
  .custom_box_a .custom_item .title,
  .custom_box_c .custom_item a,
  .search_result_box .result .item a .title {
    font-size: 1em !important;
    line-height: 1.6;
  }

  .fs-6,
  .edit h6,
  .title_caption_b,
  footer .footer_top .footer_menu .group .title,
  .tab_box .tab_nav .nav .nav-item button,
  .banner_box .key_btn_box ul li a .title,
  .criterion_box .criterion .item .title,
  .chart_box .nav-pills {
    font-size: 1em !important;
    line-height: 1.7;
  }

  .edit > .title_page:first-child {
    font-size: 1.65em !important;
    line-height: 1.2 !important;
  }

  .title_subject .more,
  .edit h2 .more {
    font-size: 0.7em;
  }
  .download_item .item,
  .link_item .item > a {
    padding: 10px 0;
  }

  .title_subject:after,
  .edit h2:after {
    top: -10px;
  }
  .title_subject:before,
  .edit h2:before {
    top: -10px;
  }
  .title_download:before,
  .edit h4:before {
    top: -10px;
  }
  .quote + .title_subject,
  .quote + .edit h2 {
    margin-top: 30px;
  }

  .title_page + .title_subject,
  .title_page + .edit h2 {
    margin-top: 50px;
  }

  .title_subject,
  .edit h2 {
    margin-top: 60px;
  }

  .title_download,
  .edit h4 {
    margin-top: 40px;
  }

  .title_area,
  .edit h3 {
    margin-top: 30px;
    margin-bottom: 0.5em;
  }

  .title_caption,
  .edit h5 {
    margin: 20px 0 0 0;
  }
  .custom_box {
    margin: 20px 0 20px 0;
  }
  .quote {
    margin: 40px 0 0 0;
  }
  .quote span {
    margin: 0px 0 calc(10px + 1.5rem) 0;
  }

  .table tbody tr td .btn {
    padding: 4px 12px;
  }

  .download_item .item,
  .link_item .item > a {
    padding: 2px 0;
  }
  .custom_box_b .custom_item .title {
    color: #000;
    border-bottom: 1px solid #ddd;
  }
}
