@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Sans+TC:wght@200;400;600;700;900&family=Lato:wght@300;400;600&display=swap');
/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */ :root {
  --default-font: 'Lato', 'Noto Sans TC', "微軟正黑體", 'Microsoft JhengHei', sans-serif;
  --heading-font: 'Lato', 'Noto Sans TC', "微軟正黑體", 'Microsoft JhengHei', sans-serif;
  --nav-font: 'Lato', 'Noto Sans TC', "微軟正黑體", 'Microsoft JhengHei', sans-serif;
}
/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */ :root {
  --background-color: #fff; /* Background color for the entire website, including individual sections */
  --default-color: #333333; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #ea877b; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #FFE60E; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}
/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */ :root {
  --nav-color: #1F4B80; /* The default color of the main navmenu links */
  --nav-hover-color: #ea877b; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ea877b; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #fff; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #FFE60E; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}
/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */
.light-background {
  --background-color: #ECB2CA;
  --surface-color: #333333;
}
.dark-background {
  --background-color: #11223a;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #9e9e9e;
  --contrast-color: #ffffff;
}
/* Smooth scroll */ :root {
  scroll-behavior: smooth;
}
::selection {
  background: #ea877b;
  color: #fff;
}
::-moz-selection {
  background: #ea877b;
  color: #fff;
}
:root {
  scroll-padding-top: 55px;
}
@media (max-width: 465px) {
  :root {
    scroll-padding-top: 30px;
  }
}
/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  /* background-color: var(--background-color);*/
  font-family: var(--default-font);
  background-image: url("../img/mainbg.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 1080px;
  background-color: #11223a;
}
@media (max-width: 992px) {
  body {
    background-image: url("../img/mainbg-md.jpg");
  }
}
@media (max-width: 576px) {
  body {
    background-image: url("../img/mainbg-s.jpg");
  }
}
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}
/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #f0aea6;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
}
.header .logo {
  line-height: 1;
}
.header .logo img {
  max-height: 50px;
  margin-right: 8px;
  padding-right: 10px;
}
@media (max-width: 576px) {
  .header .logo img {
    max-height: 40px;
  }
  .logo1 {
    max-height: 30px !important;
  }
}
.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 4700;
  color: var(--heading-color);
}
.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}
/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(255, 255, 255, 0.60);
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li {
    position: relative;
  }
  .navmenu ul li img {
    max-height: 50px;
    margin-right: 10px;
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-color);
    padding: 4px 15px;
    font-size: 20px;
    font-family: var(--nav-font);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }
  .navmenu li:last-child a {
    padding-right: 0;
  }
  .navmenu li:hover > a, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu .dropdown ul li {
    min-width: 200px;
  }
  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }
  .navmenu .dropdown ul a i {
    font-size: 15px;
  }
  .navmenu .dropdown ul a:hover, .navmenu .dropdown ul .active:hover, .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }
  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}
/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }
  .navmenu {
    padding: 0;
    z-index: 9997;
  }
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    padding: 20px 0;
    margin: 0;
    border-radius: 12px;
    background-color: var(--nav-mobile-background-color);
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    height: auto; /* ✅ 高度依內容而定 */
    overflow: hidden; /* ✅ 避免出現不必要的滾動條 */
  }
  .navmenu ul img {
    margin-right: 16px;
    max-height: 50px;
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }
  .navmenu a i:hover, .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }
  .navmenu a:hover, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .active i, .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }
  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }
  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }
  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }
  .mobile-nav-active {
    overflow: hidden;
  }
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }
  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }
  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}
/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 10px 0;
  position: relative;
}
.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}
.footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}
.footer .social-links {
  margin: 0 0 30px 0;
}
.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}
.footer .social {
  font-size: 13px;
  line-height: 160%;
}
.footer .social a {
  color: var(--contrast-color);
}
.footer .social a:hover {
  text-decoration: none;
  color: var(--accent-color);
}
.footer .copyright {
  padding-top: 10px;
  font-size: 11px;
  line-height: 160%;
}
.footer .copyright a {
  color: var(--contrast-color);
}
.footer .copyright a:hover {
  text-decoration: none;
  color: var(--accent-color);
}
.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  color: var(--heading-color);
  font-size: 20px;
  width: 60px;
  height: 60px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 50px;
  color: var(--heading-color);
  line-height: 0;
}
.scroll-top:hover {
  /*background-color: color-mix(in srgb, var(--heading-color), transparent 0%);*/
  color: var(--heading-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}
@media (max-width: 576px) {
  .scroll-top {
    right: 20px;
    bottom: 40px;
    width: 50px;
    height: 50px;
  }
}
/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.main {}
.page-title {
  color: var(--default-color);
  padding: 140px 0 0 0;
  text-align: center;
  position: relative;
}
@media (max-width: 768px) {
  .main {}
}
@media (max-width: 576px) {
  .main {}
  .page-title {
    padding: 100px 0 0 0;
  }
}
/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 50px 0;
  scroll-margin-top: 80px;
  overflow: clip;
  max-width: 1120px;
  margin: 60px auto;
  border-radius: 20px;
  box-shadow: 0px 0px 6px 2px #5D4B38;
}
.section p {
  font-size: 20px;
  line-height: 180%;
  margin-bottom: 2em;
}
.section p:last-child {
  margin-bottom: 0;
}
@media (max-width: 1199px) {
  .section {
    scroll-margin-top: 56px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }
  .section p {
    font-size: 18px;
  }
}
/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 20px;
  position: relative;
  font-size: 56px;
  color: var(--heading-color);
  font-weight: 600;
  letter-spacing: 30px;
}
.section-icon {
  max-height: 80px;
  width: auto;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
    letter-spacing: 0;
    padding-bottom: 0px;
  }
  .section-icon {
    max-height: 50px;
    width: auto;
  }
}
/*--------------------------------------------------------------
# kv Section
--------------------------------------------------------------*/
.video {}
@media (max-width: 768px) {
  .video01 {
    padding-bottom: 60px;
  }
  .video {
    padding-bottom: 170px;
  }
}
@media (max-width: 567px) {
  .video01 {
    padding-bottom: 30px;
  }
  .video {
    padding-bottom: 30px;
  }
}
/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
#about .pic {}
@media (max-width: 768px) {
  #about .pic {
    width: 40%;
    height: auto;
  }
}
/*--------------------------------------------------------------
# Story Section
--------------------------------------------------------------*/
#story .book {
  text-align: center;
  margin: 0 10px 20px 10px;
}
#story .price {
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
}
#story .price02 {
  font-size: 20px;
  font-weight: 600;
}
#story .price-r01 {
  font-size: 32px;
  color: #c60b16;
}
#story h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 4px;
}
#story h3 {
  font-size: 24px;
  font-weight: 400;
  color: #434E8D;
}
#story .btn-buy {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 4px 20px;
  background-color: var(--nav-mobile-background-color);
  color: var(--surface-color);
}
@media (max-width: 768px) {
  #story .price {
    font-size: 16px;
    line-height: 1.2;
  }
  #story .price02 {
    font-size: 18px;
    font-weight: 600;
  }
  #story .price-r01 {
    font-size: 27px;
    color: #c60b16;
  }
}
/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}
.portfolio .portfolio-content img {
  transition: 0.3s;
}
.portfolio .portfolio-content .portfolio-info {
  opacity: 1;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  width: 100px;
  height: 100px;
  border-radius: 50px;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
}
.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}
.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.portfolio .portfolio-content .portfolio-info .preview-link, .portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 30px);
  font-size: 56px;
  top: calc(50% - 36px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}
.portfolio .portfolio-content .portfolio-info .preview-link:hover, .portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}
.portfolio .portfolio-content:hover .portfolio-info {
  opacity: .8;
}
.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .portfolio .portfolio-content .portfolio-info {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    top: calc(50% - 40px);
    left: calc(50% - 40px);
  }
  .portfolio .portfolio-content .portfolio-info .preview-link, .portfolio .portfolio-content .portfolio-info .details-link {
    position: absolute;
    left: calc(50% - 20px);
    font-size: 40px;
    top: calc(50% - 24px);
    color: #fff;
    transition: 0.3s;
    line-height: 1.2;
  }
}
#news .news-title {
  font-size: 24px;
  background-color: #009eb9;
  color: var(--surface-color);
  padding: 18px 6px;
}
#news .btn-action {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 4px;
  padding: 4px 40px;
  background-color: var(--nav-mobile-background-color);
  color: #fff;
  transition: 0.3s;
}
#news .btn-action:hover {
  color: #fff000;
  text-decoration: none;
}
#news .info a {
  color: #1645AC;
  text-decoration: none;
  transition: 0.3s;
}
#news .info a:hover {
  color: color-mix(in srgb, #5A83DE, transparent 25%);
  text-decoration: none;
}
@media (max-width: 576px) {
  #news .news {
    background-color: #e8f5f7;
    color: #009eb9;
    font-size: 18px;
    padding: 6px 6px;
    border-bottom: 0;
  }
  #news .news-location {
    font-size: 21px;
    text-align: end;
  }
  #news .news-date {
    font-size: 21px;
    text-align: start;
  }
  #news .w-100 {
    height: 2px;
    background-color: #C5E8ED;
  }
  #news .btn-action {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 4px 20px;
    background-color: var(--nav-mobile-background-color);
    color: var(--surface-color);
  }
}
#action {
  position: fixed;
  right: 6px;
  bottom: 80px;
  z-index: 99999;
  background-color: transparent;
  width: 116px;
  height: 116px;
  cursor: pointer;
}
@media (max-width: 576px) {
  #action {
    right: 6px;
    bottom: 100px;
    width: 90px;
    height: 90px;
  }
}
/*--------------------------------------------------------------
# Section List Style (for 活動條列清單)
--------------------------------------------------------------*/
.section ul {
  margin: 1.5em 0 0 1.2em;
  padding: 0;
  list-style-type: disc;
}
.section ul li {
  margin-bottom: 0.8em;
  font-size: 20px;
  line-height: 1.8;
  color: var(--default-color);
}
.section ul li strong {
  color: var(--heading-color);
}
@media (max-width: 768px) {
  .section ul li {
    font-size: 18px;
    line-height: 1.6;
  }
}
/*--------------------------------------------------------------
# Buttons under #news section (手機版同寬)
--------------------------------------------------------------*/
#news .btn {
  display: inline-block;
  width: 60%; /* 統一寬度，可依需求調整 (80% 或 90%) */
  max-width: 240px; /* 限制最大寬度，避免平板太長 */
  margin: 10px auto;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}
@media (max-width: 768px) {
  #news .btn {
    width: 90%;
    font-size: 18px;
  }
}