*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  word-break: break-all;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family:
    Arial, "Helvetica Neue", Helvetica, "Microsoft JhengHei", 微軟正黑體,
    sans-serif;
  color: #333;
  background: hsla(0, 100%, 100%, 1);
  text-align: justify;
  text-justify: distribute;
  font-size: 18px;
  font-size: 1.8rem;
  line-height: 150%;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-autospace: normal;
}
a {
  color: #333;
}
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}
::-moz-selection {
  color: hsla(0, 100%, 100%, 1);
  background: #333;
  text-shadow: none;
}
::selection,
::-moz-selection,
::-webkit-selection {
  color: hsla(0, 100%, 100%, 1);
  background: #333;
  text-shadow: none;
}
:active,
:focus {
  outline: none;
}

h1,
.h1 {
  font-size: 48px;
  font-size: 4.8rem;
  font-weight: bolder;
}
h2,
.h2 {
  font-size: 30px;
  font-size: 3rem;
  font-weight: bolder;
}
h3,
.h3 {
  font-size: 24px;
  font-size: 2.4rem;
  font-weight: bolder;
}
h4,
.h4 {
  font-size: 20px;
  font-size: 2rem;
  font-weight: bolder;
}
p {
  font-size: 18px;
  font-size: 1.8rem;
  overflow-wrap: break-word;
}

ol,
ul {
  padding-left: 2rem;
}
li {
  list-style: none;
  padding-bottom: 1rem;
}
picture {
  display: block;
}
.container .row {
  justify-content: center;
}
@media (width > 992px) {
  .container {
    max-width: 1024px;
  }
}
@media (width > 1200px) {
  .container {
    max-width: 1340px;
  }
}

main {
  -webkit-padding-before: 0.75rem;
  padding-block-start: 0.75rem;
}

/*== 隱藏右下角Google驗證 ==*/
.grecaptcha-badge {
  display: none;
}

/*=================================================================
                              通用
=================================================================*/
.ml_20 {
  margin-left: 2rem;
}
.ml_35 {
  margin-left: 3.5rem;
}
.ml_40 {
  margin-left: 4rem;
}

/*== btn ==*/
.btn-orange {
  width: 30rem;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 0;
}

/*== 文字省略 ==*/
.txt-omit-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.txt-omit-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.txt-omit-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
/*== 文字底線 ==*/
.text-underline {
  text-decoration: underline;
}
/*== 文字大小 ==*/
.font-18 {
  font-size: 1.8rem;
}
.text-color1 {
  color: hsla(191, 48%, 45%, 1);
}
/*== img 4:3 aspect ratio ==*/
figure.img_4by3 {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  padding-top: 75%; /* 100 / (800 / 600) */
}
figure.img_4by3 img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/*== 大標題 ==*/
.news_section h2,
.all_section .main_title {
  /* 服務窗口 */
  margin: 3rem auto;
  text-align: center;
}

/*== Headroom.js ==*/
.headroom {
  will-change: transform;
  transition: -webkit-transform 200ms linear;
  transition: transform 200ms linear;
  transition:
    transform 200ms linear,
    -webkit-transform 200ms linear;
}
.headroom--pinned {
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}
.headroom--unpinned {
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
}

/*== Breadcrumb ==*/
.breadcrumb {
  background: transparent;
  margin-top: 6em;
  padding: 3rem 0 0;
}
.breadcrumb a {
  color: hsla(191, 48%, 45%, 1);
  color: var(--green);
}

/*== Pagination ==*/
.pagination {
  justify-content: center;
}

/*== Input, Select ==*/
.form-group {
  margin-bottom: 2rem;
  align-items: baseline;
}
.col-form-label {
  width: 100%;
  block-size: 100%;
  text-align: right;
  font-weight: 600;
}
input,
select,
.form-control,
.form-control-plaintext {
  padding: 0.5em 0.75em;
  height: calc(1.5em + 1.15em + 2px);
  font-size: 1.8rem;
  border-radius: 0;
}
@media (width < 992px) {
  .col-form-label {
    text-align: left;
  }
}
.form_inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.text_align_last_end {
  -moz-text-align-last: right;
  text-align-last: right;
}

/*== Input：選擇檔案 ==*/
.custom-file-label,
.custom-file-input {
  padding: 0.5em 0.75em;
  border-radius: 0;
}
.custom-file,
.custom-file-label,
.custom-file-input {
  height: calc(1.5em + 1.15em + 2px);
}
.custom-file-label::after {
  height: calc(1.5em + 1.15em);
  padding: 0.5em 0.75em;
  border-radius: 0;
}
.custom-file-label::after {
  content: " 選擇檔案";
  font-family: "Font Awesome 5 Free";
}
@media (width < 768px) {
  .custom-file-label::after {
    content: "";
    font-family: "Font Awesome 5 Free";
  }
}

/*== Custom Input Radio ==*/
.custom-control-inline {
  margin-right: 1.5rem;
}
.custom-control-label {
  padding-left: 1rem;
}
.custom-checkbox .custom-control-label::before {
  border-radius: 0;
}
.custom-control-label::before {
  width: 1.5em;
  height: 1.5em;
  top: 0;
  left: -2.5rem;
}
.custom-control-label::after {
  width: 1.5em;
  height: 1.5em;
  top: 0;
  left: -2.5rem;
}
.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: hsla(28, 100%, 48%, 1);
  background-color: hsla(28, 100%, 48%, 1);
}
.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: none;
}
.custom-radio
  .custom-control-input:disabled:checked
  ~ .custom-control-label::before {
  background-color: hsla(28, 100%, 48%, 1);
}
.custom-checkbox
  .custom-control-input:disabled:checked
  ~ .custom-control-label::before {
  background-color: hsla(28, 100%, 48%, 1);
}

/*== 密碼：顯示/隱藏 ==*/
/ input[type="password"] {
  position: relative;
}
.toggle-password {
  z-index: 2;
  position: absolute;
  bottom: 30%;
  right: 5%;
}
@media (width < 480px) {
  .toggle-password {
    right: 10%;
  }
}

/* 客製按鈕 */
.custom_button {
  overflow: hidden;
  position: relative;
  width: 10rem;
  color: #fff;
}
.custom_button:before {
  z-index: 0;
  content: "";
  display: block;
  width: 105%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -55%;
  -webkit-transform: skew(-45deg);
  transform: skew(-45deg);
  background: rgba(255, 255, 255, 0.15);
  transition: 0.5s;
}
.custom_button:hover:before {
  width: 200%;
  left: -50%;
}

.custom_button_info {
  font-size: 2rem;
  font-weight: 600;
  border-radius: 0;
}

.btn-xl {
  padding: 0.7rem 1.25rem;
  font-size: 1.8rem;
}

/*== 解決 Slick 閃退 ==*/
.slick_banner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  -webkit-transition: opacity 1s ease;
}
.slick_banner.slick-initialized {
  visibility: visible;
  opacity: 1;
}
.hidden {
  display: none;
}

/*=================================================================
                              Header
=================================================================*/
#mainNav {
  padding: 0;
}
@media (width > 1024px) {
  #mainNav nav {
    display: flex;
    justify-content: space-between;
  }
}

/*== LOGO ==*/
#mainNav .navbar-brand {
  width: 35rem;
}
@media (1240px < width < 1360px) {
  #mainNav .navbar-brand {
    width: 24rem;
  }
}
@media (width < 1200px) {
  #mainNav .navbar-brand {
    width: 20rem;
  }
}
@media (width < 480px) {
  #mainNav .navbar-brand img {
    padding-left: 1.5rem;
  }
}
@media (width < 320px) {
  #mainNav .navbar-brand {
    width: auto;
  }
  #mainNav .navbar-brand img {
    padding-left: 0;
  }
}

/*== 三 ==*/
#mainNav .navbar-toggler {
  margin-right: 1rem;
  font-size: 2rem;
  line-height: 2;
}

/*== 選單 ==*/
#mainNav .nav-item {
  padding-top: 1rem;
  padding-bottom: 0;
}
@media (width < 480px) {
  #mainNav .nav-item {
    padding-top: 0;
  }
}
#mainNav .nav-item .nav-link {
  margin: 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}
@media (width < 1240px) {
  #mainNav .nav-item .nav-link {
    font-size: 1.7rem;
  }
}
@media (width > 1200px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* 第二層 */
#mainNav .dropdown-menu {
  padding: 0;
  min-width: 15rem;
  left: 50%;
  /* top: 90%; */
  border-top: 0.3rem solid hsla(191, 48%, 45%, 1);
  border-top: 0.3rem solid var(--green);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
#mainNav .dropdown-item {
  padding: 1.5rem 2.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}
#mainNav .dropdown-item:not(:last-child) {
  border-bottom: 1px solid #ccc;
}
#mainNav .dropdown-item:focus {
  color: #fff;
  background-color: hsla(191, 48%, 45%, 1);
  background-color: var(--green);
}

@media (width < 1200px) {
  .navbar-nav {
    padding: 0 1.5rem;
  }
  #mainNav .dropdown-toggle[aria-expanded="true"] {
    color: #fff;
    background: hsla(191, 48%, 45%, 1);
    background: var(--green);
  }
  #mainNav .nav-item .nav-link {
    margin: 1rem 0 0.5rem;
    padding: 0.5rem 1rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.2rem;
    border-bottom: 0.1rem solid #aaa;
  }
  #mainNav .dropdown-menu {
    left: 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    border-top: 1px solid #ccc;
  }
  #mainNav .dropdown-item {
    padding: 1rem;
    padding-left: 2rem;
    width: 100%;
    background: #f6f6f6;
    font-size: 16px;
    font-size: 1.6rem;
    text-align: left;
  }
}

/*== 社群分享 ==*/
#mainNav .navbar-nav i {
  margin: auto 0.5rem;
  font-size: 1.5em;
  line-height: 1.5;
}
@media (width < 480px) {
  #mainNav .navbar-nav li:last-child {
    margin-bottom: 1rem;
    text-align: center;
  }
}

/*=================================================================
                              Banner
=================================================================*/
.banner {
  margin-top: 7rem;
}
@media (width > 1400px) {
  .banner {
    margin-top: 11rem;
  }
}

/*=================================================================
                          【首頁】最新消息
=================================================================*/
/*== 外框 ==*/
.news_section .thumbnail {
  position: relative;
  display: block;
  margin-bottom: 2rem;
  padding: 1rem;
  height: 50rem;
  border: 1px solid;
  border-radius: 4px;
  transition: border 0.3s ease-in-out;
}
.news_section .thumbnail:hover {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
/*== 省略陰影 ==*/
.news_section .thumbnail:after {
  content: "";
  position: absolute;
  height: 4rem;
  bottom: 0;
  width: calc(100% - 8px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #ffffff 60%,
    #ffffff 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
}

/*== 內框 ==*/
.news_section .thumbnail .inner {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1rem;
  height: 47rem;
}

/*== NEW 標籤 ==*/
.news_section .inner .tag {
  position: absolute;
  right: 0;
  top: 0px;
  padding: 0 1.5rem;
  height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 3rem;
}

/*=================================================================
                          商圈資訊 / 線上申請作業
=================================================================*/
/*== Tab ==*/
#navs_tab {
  justify-content: center;
  .nav-link {
    margin: auto 0.5rem;
    padding: 0.5rem;
    width: auto;
    min-width: 40vw;
    font-size: 1.6rem;   
    text-align: center;
    border-radius: 5px;
    @media (width > 480px) {
      margin: auto 0.75rem;
      padding: 8px 16px;
      width: 205px;
      min-width: auto;
      font-size: 1.8rem;
    } 
  }
}

/*-- Tab：商圈活動資訊 / 商圈基本資料 --*/
#navs-tabContent {
  margin: 2rem auto;
}
#navs-tabContent form,
.trader form {
  justify-content: center;
}
#navs-tabContent select,
.trader select {
  height: auto;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #bbb;
  border-radius: 0.25rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}
#navs-tabContent select:not(:last-child),
.trader select:not(:last-child) {
  margin-right: 10px;
}
@media (width > 992px) {
  #navs-tabContent select,
  .trader select {
    width: 240px;
  }
}
@media (width < 480px) {
  #navs-tabContent select,
  .trader select {
    display: block;
    margin-bottom: 0.75rem;
    width: 100%;
  }
  #navs-tabContent select:not(:last-child),
  .trader select:not(:last-child) {
    margin-right: 0px;
  }
  #navs-tabContent form button,
  .trader form button {
    width: 100%;
  }
}

/*-- 縣市標題 --*/
#county_form .county_title,
#trader_form .county_title {
  margin: 25px auto 5px;
  padding: 5px;
  font-size: 2.4rem;
  text-align: center;
  font-weight: 600;
}

/*-- Tab：商圈或商業街區範圍 / 檢附資料 --*/
.range-tab,
.upload-tab {
  /* 檢附資料 */
  border: 2px solid;
}
.range-tab:hover,
.range-tab.active,
.upload-tab:hover,
.upload-tab.active {
  /* 檢附資料 */
  border: 2px solid;
}
#range .range_info {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid;
  border-radius: 5px;
}
#range .range_title {
  border-bottom: 1px solid;
}

/*=================================================================                        
                              行動支付店家
=================================================================*/
.trader {
  margin-bottom: 20rem;
}

/*=================================================================
                           Scroll To Top
=================================================================*/
.go_top {
  z-index: 99;
  display: flex;
  position: fixed;
  bottom: -65px;
  right: 40px;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
@media (width < 575px) {
  .go_top {
    width: 40px;
    height: 40px;
    bottom: 0px;
    right: 15px;
  }
}
.go_top_icon {
  color: hsla(0, 100%, 100%, 1);
  line-height: 1em;
}
.go_top--show {
  bottom: 0;
}

/*=================================================================
                                Footer
=================================================================*/
#footer {
  /*position: absolute;
  bottom: 0;
  width: 100%;*/
  padding: 2rem 0;
}
#footer p {
  color: hsla(0, 100%, 100%, 1);
  text-align: center;
}

/*=================================================================
                             不知名東西 ??
=================================================================*/
#B {
  margin-bottom: 10em;
}

#A h2,
#B h2,
#C h2 {
  font-size: 28px;
  margin-bottom: 1.5rem;
}
@media (width < 480px) {
  #A h2,
  #B h2,
  #C h2 {
    font-size: 22px;
  }
}

.download span {
  margin-right: 15px;
  font-weight: bolder;
}
#A .download span {
  color: #007bff;
}
#B .download span {
  color: hsla(28, 100%, 48%, 1);
}
#C .download span {
  color: #13c27f;
}
.download img {
  padding-bottom: 10px;
}
@media (width < 480px) {
  .download span {
    display: block;
  }
  .download img {
    padding-bottom: 0;
    padding-top: 10px;
  }
}

#C h2,
#C h4 {
  text-align: center;
}
#C h4 {
  margin-bottom: 10px;
}
#C table th {
  text-align: center;
}
#C table td {
  vertical-align: middle;
}
