﻿html {
  color: #444;
  font-family:
    Arial, "Microsoft JhengHei", "DFKai-SB", "LiHei Pro", "PMingLiU", sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

.bg-color {
  background-color: #d0dcc5;
}

/* ========== 導覽列  ==========*/

#nav {
  width: 100%;
  position: fixed;
  top: 0;
  background-color: #fff;
  height: 60px;
  line-height: 60px;
  z-index: 50;
  box-sizing: border-box;
  padding-left: 20px;
  box-shadow: 3px 3px 3px rgba(67, 78, 76, 0.3);
}
#navMain {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
#nav .nav_img {
  float: left;
}
#nav .nav_img img {
  height: 50px;
  margin-top: 5px;
}
#nav .nav_word {
  height: 60px;
  margin-left: 10px;
  float: left;
  letter-spacing: 2px;
}
#nav .navBtn {
  border: 0;
  background-color: #fff;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 0 1.125rem;
  cursor: pointer;
  transition: all 0.4s;
  color: inherit;
  text-decoration: none;
  text-align: left;
}
#nav .navBtn:hover,
#nav #nav_narrow:hover,
#nav .navBtn:focus,
#nav #nav_narrow:focus {
  background-color: #cbeae6;
}
#nav .navBtn:active,
#nav #nav_narrow:active {
  background-color: #b9d5d1;
}
#nav #nav_narrow {
  height: 60px;
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  border: 0;
  background-color: #fff;
  font-size: 0.92em;
  letter-spacing: 2px;
  padding: 0 20px;
  cursor: pointer;
  float: right;
}
#nav #nav_login {
  background-color: #ffdada;
  color: #5f0808;
  font-weight: bold;
  transition: all 0.4s;
}
#nav #nav_login:hover,
#nav #nav_login:focus {
  background-color: #f1bfbf;
}
#nav #nav_login:active {
  background-color: #e6b3b3;
}

#navMain {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 860px) {
  #navMain {
    max-width: initial;
  }
}
.navMain-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.navMain-title-link,
.navMain-title-link:visited {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0.5rem 1rem;
  color: #555;
  text-decoration: none;
  font-weight: bold;
}

.navMain-title-link:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.navMain-title-link > img {
  height: 2.5rem;
  margin-right: 0.5rem;
}

#nav #nav_narrow {
  width: 60px;
  padding: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

#nav .navBtnDiv {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin-left: auto;
}

@media (max-width: 1150px) {
  #nav {
    padding-left: 0;
  }
  .navMain-title {
    font-size: 1.125rem;
  }
  #nav .navBtn {
    padding: 0 0.675rem;
    letter-spacing: 0;
  }
}
@media (max-width: 900px) {
  #nav #nav_narrow {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    position: static;
  }

  #nav .navBtnDiv {
    width: 150px;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    z-index: 8;
    border-radius: 0 0 10px 10px;
    box-shadow: 5px 5px 5px rgba(67, 78, 76, 0.4);
  }

  #nav .navBtnDiv.navBtnDiv--hidden {
    display: none !important;
  }
}

/* ========== 中央畫面  ==========*/

#middle {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#middle {
  max-width: 1600px;
  margin: 60px auto 0 auto;
}

.photoAdmins {
  padding: 2% 1rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 1.25rem;
  column-gap: 1.25rem;
}

/* 機關端用photo */
.photoAdmin {
  display: inline-block;
  width: 345px;
  height: 300px;
  position: relative;
  border-radius: 0.675rem;
  background-color: #fff;
  background-image: url("../Images/default.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  box-shadow: 5px 5px 5px rgba(67, 78, 76, 0.4);
  cursor: pointer;
}
.photo_word {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 60px 30px 0 30px;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 44%,
    rgba(255, 255, 255, 0.2) 91%
  );
  background: -moz-linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.4) 33%,
    rgba(255, 255, 255, 0.2) 91%
  );
  background: -webkit-linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.4) 33%,
    rgba(255, 255, 255, 0.2) 91%
  );
  background: -o-linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.4) 33%,
    rgba(255, 255, 255, 0.2) 91%
  );
  color: #22635d;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  -webkit-text-stroke: 0.5px #fff;
}
.photo_word:link,
.photo_word:visited {
  text-decoration: none;
}
.photo_word:hover,
.photo_word:focus {
  background: rgba(26, 171, 152, 0.8);
  background: linear-gradient(
    180deg,
    rgba(26, 171, 152, 0.8) 33%,
    rgba(220, 233, 176, 0.8) 91%
  );
  background: -moz-linear-gradient(
    270deg,
    rgba(26, 171, 152, 0.8) 33%,
    rgba(220, 233, 176, 0.8) 91%
  );
  background: -webkit-linear-gradient(
    270deg,
    rgba(26, 171, 152, 0.8) 33%,
    rgba(220, 233, 176, 0.8) 91%
  );
  background: -o-linear-gradient(
    270deg,
    rgba(26, 171, 152, 0.8) 33%,
    rgba(220, 233, 176, 0.8) 91%
  );
  color: #fff;
  -webkit-text-stroke: 0;
}
.c1 {
  background-image: url("../Images/c1.jpg");
}
.c2 {
  background-image: url("../Images/c2.jpg");
}
.c3 {
  background-image: url("../Images/c3.jpg");
}
.c4 {
  background-image: url("../Images/c4.jpg");
}
.center_logo {
  position: absolute;
  right: calc(50% - 80px);
  width: 160px;
  height: 160px;
  z-index: 10;
}
.center_logo img {
  width: 130px;
}

.main-content__container {
  padding: 2rem 2rem;
}

.main-content__content {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
}

@media screen and (max-width: 767px) {
  .main-content__container {
    padding: 1rem;
  }
}

/* ========== 下方列  ==========*/

#content {
  max-width: min(1600px, calc(100% - 2rem));
  margin: 0 auto 0 auto;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  border-top: 0.25rem #fff solid;
}

.content-title {
  background-color: #46dec9;
  color: #ffffff;
  text-align: center;
  padding: 0.75rem;
  letter-spacing: 4px;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
}
#content #content_l {
  margin-top: 1rem;
  height: 30rem;
}

#content_l .tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#content #content_l .news {
  width: 100%;
  height: 350px;
  margin: 0;
  padding: 0;
  text-overflow: ellipsis;
}
#content #content_l .news a {
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  display: block;
  border-bottom: 1px #ddd solid;
  font-size: 0.875rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: all 0.4s;
  text-align: left;
}
#content #content_l .news a:link,
#content #content_l .news a:visited {
  color: inherit;
  text-decoration: none;
}
#content #content_l .news a:last-child {
  border-bottom: 0;
}
#content #content_l .news a:hover,
#content #content_l .news a:focus {
  background-color: #ddf9f5;
}
#content #content_l .news a:hover span.newsType,
#content #content_l .news a:focus span.newsType {
  background-color: #f2ffff;
}
#content #content_l .news a span.newsDate {
  display: inline-block;
  margin: 0 0.5rem 0 0;
  min-width: 5.75rem;
  opacity: 0.6;
  font-size: 0.8rem;
}
#content #content_l .news a span.newsType {
  padding: 6px 8px;
  background-color: #e7f3f5;
  border-radius: 0.25rem;
}
#content #content_l .news a span.newsTitle {
  margin: 0 0.25rem;
}
#newsMoreBtn {
  padding: 10px 15px;
  position: absolute;
  right: 15px;
  bottom: 15px;
  border: 0;
  border-radius: 5px;
  background-color: #fff;
  color: #2da594;
  line-height: 1;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s;
}
#newsMoreBtn:hover,
#newsMoreBtn:focus {
  background-color: #5cc7b8;
  color: #fff;
}
#content #content_r {
  width: 35%;
  float: left;
  background: #46dec9;
  background-position: center;
  height: 500px;
  padding: 20px;
  box-sizing: border-box;
}
#apply {
  height: 100%;
  padding: 60px 0 0 0;
  display: block;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: rgba(25, 65, 59, 0.1);
  text-align: center;
  color: #fff;
  font-size: 56px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.4s;
}
#apply:hover,
#apply:focus {
  background-color: rgba(25, 65, 59, 0.3);
}
#apply:active {
  background-color: rgba(25, 65, 59, 0.4);
}

/* ========== 頁籤(tab)  ==========*/

#content_l > ul.tabs > li {
  display: inline-block;
  height: 3rem;
  line-height: 3rem;
  font-size: 1rem;
  letter-spacing: 2px;
}
.radio_btn {
  position: absolute;
  outline: none;
}
.tab {
  display: block;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  color: #777;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.4s;
}
.tab:hover,
.tab:focus {
  border-radius: 0.25rem;
  background-color: #ebfcf9;
}
.section {
  position: absolute;
  left: 0;
  width: calc(100% - 3rem);
  height: 400px;
  margin-left: 1.5rem;
  border-radius: 0.25rem;
  padding: 0.675rem;
  box-sizing: border-box;
  margin-top: 0.75rem;
  border: 1px #aaa solid;
  background-color: #fff;
  display: none;
}
.radio_btn {
  display: none;
}
.radio_btn:checked ~ .tab {
  background-color: #fff;
  border-radius: 0;
  font-weight: bold;
  border-bottom: 8px #46dec9 solid;
  font-size: 1.125rem;
}
.radio_btn:checked ~ div.section {
  display: block;
}

/* ========== 尾列  ==========*/

#footer {
  width: 100%;
  margin: 0 auto;
  background-color: #eee;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 1px;
  padding: 1.5rem 0 3rem;
  box-sizing: border-box;
}

#footer-div {
  max-width: 1600px;
  margin: 0 auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}
#footer .footer_img {
}
#footer .footer_img img {
  width: 8rem;
}
#footer .footer_word {
  font-size: 0.9em;
  text-align: left;
}
#footer .footer_word a {
  display: inline-block;
}
#footer .footer_word a::before {
  content: "▸";
  color: #b4ca00;
}
#footer .footer_word a:link,
#footer .footer_word a:visited {
  margin-right: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  color: #009b85;
  text-decoration: none;
  transition: all 0.4s;
}
#footer .footer_word a:link:hover,
#footer .footer_word a:visited:hover,
#footer .footer_word a:focus {
  background-color: #02b39a;
  color: #fff;
}
#footer .footer_word p {
  margin: 0;
}
#footer .footer_word p:first-child {
  margin-bottom: 10px;
}

@media screen and (max-width: 767px) {
  .photoAdmin {
    width: 100%;
    margin-bottom: 15px;
  }

  .c1 {
    margin-top: 15px;
  }

  #nav .navBtnDiv {
    flex-direction: column;
  }
  #footer {
    padding: 0;
  }
  #footer-div {
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
  }

  #footer .footer_img {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  #footer .footer_img img {
    width: 6rem;
  }
}

/* ========== 套件  ==========*/

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.input-group > .input-group-text:first-child,
.input-group-text--color {
  background-color: #f1f6c4;
}

.input-groups {
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-circle {
  width: 2rem;
  aspect-ratio: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.table {
  vertical-align: middle;
}

.modal-dialog-full {
  width: calc(100vw - 2rem);
  margin: 1rem auto 0;
  height: calc(100vh - 2rem);
  max-width: 100% !important;
}
.modal-dialog-full > .modal-content {
  width: 80%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  margin: 0 auto;
}
.modal-dialog-full .modal-body {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  overflow-y: auto;
}
.modal-dialog-full > .modal-content > .modal-header {
  flex-shrink: 0;
  flex-grow: 0;
}

.required::after {
  content: "*";
  color: #d33;
  font-weight: bold;
  margin-left: 0.25rem;
}
