@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  /* 允許在任何字元處斷行（包含標點） */
  line-break: anywhere;

  /* 讓中文斷行更自由（搭配上面效果更明顯） */
  word-break: break-word;
}

html, body {
  scroll-behavior: smooth !important;
}

body {
  /* max-width: 1920px; */
  margin: 0 auto;
  /* 1) 確保不合成粗體 */
  font-synthesis: none;

  /* 2) 讓渲染更接近設計工具 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
  z-index: 99 !important;
}

.web_search-input::placeholder {
  color: #0A0A0A; 
  opacity: 1; 
}

.site-header {
  z-index: 999;
  position: relative;
}

.site-header .custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-template-page-thank-you .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.00) 100%);
  backdrop-filter: blur(20px);
}

.privacy-policy .site-header {
  background: var(--Secondary-05, #F7F5EF);
}

/* ================================
   Mobile Header Menu
================================ */

.site-header {
  position: relative;
  z-index: 1000;
}

.site-branding {
  position: relative;
  z-index: 1001;
}

/* 按鈕 */
#m_menu-toggle {
  position: relative;
  z-index: 1003;
  display: block;
}

#m_menu-toggle .menu-label {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

#m_menu-toggle .menu-label-open {
  background: #c83c23;
  color: #ffffff;
  transform: translateY(0);
}

#m_menu-toggle .menu-label-close {
  background: #F7F5EF;
  color: #c83c23;
  transform: translateY(100%);
}

#m_menu-toggle.is-active .menu-label-open {
  transform: translateY(-100%);
}

#m_menu-toggle.is-active .menu-label-close {
  transform: translateY(0);
}

/* 手機選單：預設關閉，藏在畫面右邊 */
#webNavigationM.web_nav_m {
  position: fixed;
  top: 115px;
  right: 0;
  left: auto;

  width: 100%;
  height: calc(100dvh - 115px);
  z-index: 1002;

  background: #F7F5EF;
  overflow-y: auto;
  padding: 24px 8.3% 48px;

  display: block;

  transform: translate3d(100%, 0, 0);
  opacity: 1;
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.4s ease,
    visibility 0s linear 0.4s;

  will-change: transform;
  backface-visibility: hidden;
}

/* 手機選單：開啟，從右邊滑入 */
#webNavigationM.web_nav_m.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.4s ease,
    visibility 0s linear 0s;
}

/* 選單開啟時禁止 body 捲動 */
body.mobile-menu-open {
  overflow: hidden;
}

/* 手機搜尋 */
#webNavigationM .mobile-menu-search {
  margin-bottom: 24px;
}

#webNavigationM .mobile-search-field {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 100px;
  background: rgba(84, 60, 37, 0.1);
  padding: 0 48px;
}

#webNavigationM .mobile-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webNavigationM .mobile-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #0a0a0a;
}

#webNavigationM .mobile-search-submit {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 手機選單列表 */
#webNavigationM .mobile-menu-nav .designhuHeader {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#webNavigationM .mobile-menu-nav .designhuHeader li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#webNavigationM .mobile-menu-nav .designhuHeader a {
  display: block;
  color: var(--Gray-01, #0A0A0A);
  text-align: center;

  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1px;
}
#webNavigationM .mobile-menu-nav .designhuHeader a.accordion-item-li-item-link {
  color: #C83C23;
  font-size: 24px;
}
/* 子選單基本樣式 */
#webNavigationM .mobile-menu-nav .designhuHeader .accordion-item-content-ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web_nav ul {
  display: flex;
  gap: 40px;
}
.web_nav ul li span {
  color: var(--Gray-01, #0A0A0A);
  text-align: center;
  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 27px */
  letter-spacing: 1px;
}
@media (max-width: 1200px) {
  .web_nav ul {
    gap: 20px;
  }
  .web_nav ul li span {
    font-size: 15px;
  }
}
@media (max-width: 1024px) {
  .web_nav ul {
    gap: 12px;
  }
}

/* 第一層 li 當定位基準 */
#webNavigation .designhuHeader li.menu-item-has-children {
  position: relative;
}

/* 第二層預設隱藏 */
#webNavigation .accordion-item-content-nav {
  display: none;

  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  padding-top: 12px;

  z-index: 999;
}

/* 真正紅色選單 */
#webNavigation .accordion-item-content-ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;

  padding: 24px 40px;

  border-radius: 20px;
  background: var(--Primary-01, #E72418);
  box-shadow: 0 10px 60px rgba(84, 60, 37, 0.10);
}

/* hover 第一層時顯示第二層 */
#webNavigation .accordion-item-li:hover > .accordion-item-content-nav {
  display: flex;
}

/* 第二層選單樣式 */
#webNavigation .accordion-item-content-ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#webNavigation .accordion-item-content-ul .current_page_item {
  position: relative;
  display: flex;
  align-items: start;
  padding-left: 16px;
}

#webNavigation .accordion-item-content-ul .current_page_item::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 25%;
  transform: translateY(-50%);

  width: 12px;
  height: 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Ccircle cx='6' cy='6' r='6' fill='white'/%3E%3C/svg%3E");

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#webNavigation .accordion-item-content-li a {
  display: block;
  padding: 4px 8px;
}

#webNavigation .accordion-item-content-li a span {
  white-space: nowrap;
  color: var(--Gray-07, #FFF);

  /* 標題h5 */
  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 27px */
  letter-spacing: 1px;
}


/* =========================
   Footer sitemap 特殊排版
   ========================= */

/* 關鍵：讓 7 個 menu group 直接參與外層 grid */
.footer-sitemap-groups {
  display: contents;
}

/* 平板 */
@media (max-width: 1199px) {
  .footer-sitemap-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 36px;
  }
}

/* 手機 */
@media (max-width: 767px) {
  .footer-sitemap-layout {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
}

/* =========================
   Contact Form 7
   ========================= */

.footer-newsletter-form .wpcf7 {
  width: 100%;
}

.footer-newsletter-form .wpcf7 form {
  margin: 0;
}

.footer-newsletter-form .wpcf7-form p {
  margin: 0;
}

.footer-newsletter-form .footer-subscribe-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.footer-newsletter-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.footer-newsletter-form .footer-subscribe-input,
.footer-newsletter-form input[type="email"] {
  width: 100%;
  height: 44px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: #ffffff;
  padding: 0 14px;
  color: #0d0d0d;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
}

.footer-newsletter-form .footer-subscribe-input::placeholder,
.footer-newsletter-form input[type="email"]::placeholder {
  color: #c8c8c8;
}

.footer-newsletter-form .footer-subscribe-submit,
.footer-newsletter-form input[type="submit"] {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: #ffffff;
  color: #0d0d0d;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: opacity 0.3s ease;
}

.footer-newsletter-form .footer-subscribe-submit:hover,
.footer-newsletter-form input[type="submit"]:hover {
  opacity: 0.7;
}

.footer-newsletter-form .wpcf7-spinner {
  margin: 10px 0 0;
}

.footer-newsletter-form .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 12px;
  line-height: 150%;
}

.footer-newsletter-form .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 8px 12px !important;
  font-size: 13px;
  line-height: 150%;
}

.footer-menu-group:nth-of-type(4) a{
  color: #C83C23 !important;
}

/* 麵包屑 */
.custom-yoast-breadcrumbs span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 150%;
}

.custom-yoast-breadcrumbs span a {
  color: var(--Gray-01, #0A0A0A);
  text-align: center;
  font-family: "Noto Sans TC";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
} 


/* Home */
/* 只針對這顆新的 swiper，避免被你前面舊版 fixed 寬度干擾 */
.home-news-section {
  position: relative;
  z-index: 50;
  width: 100%;
  overflow: hidden;
  padding: 48px 0;
}

.home-news-swiper-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

/**
* 402 + 24 + 588 + 24 + 402 = 1440
*/
.home-news-swiper {
  width: 1440px;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.home-news-swiper .swiper-wrapper {
  align-items: stretch;
  will-change: transform;
  max-height: 382px;
}

.home-news-slide {
  width: 588px;
  height: auto;
  max-height: 382px;
  flex-shrink: 0;
  overflow: visible;
}
@media (max-width: 1200px) {
  .home-news-slide {
    width: 488px;
    max-height: 317px;
  }
}
@media (max-width: 768px) {
  .home-news-slide {
    width: 388px;
    max-height: 252px;
  }
}
@media (max-width: 480px) {
  .home-news-slide {
    width: 358px;
    max-height: 232px;
  }
}

/**
* 修正圖 2 陰影怪怪的問題：
* 不讓 slide 或 swiper 裁切陰影，並讓卡片本身負責陰影。
*/
.home-news-card {
  /* height: 100%; */
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 40px 0 rgba(84, 60, 37, 0.15);
  transform: translateZ(0);
}

.home-news-card__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-news-card__image {
  height: 294px;
  aspect-ratio: 588 / 294;
  overflow: hidden;
  background: #eee;
}
@media (max-width: 1200px) {
  .home-news-card__image {
    height: 244px;
  }
}

.home-news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: translateZ(0);
}

.home-news-card:hover .home-news-card__image img {
  transform: translateZ(0) scale(1.03);
}

.home-news-card__body {
  display: flex;
  height: 88px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px;
  background: #fff;
}

.home-news-card__title {
  margin: 0;
  padding: 4px 8px;
  color: #0A0A0A;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-news-card__desc {
  min-width: 0;
  margin: 4px 0 0;
  padding: 4px 8px;
  overflow: hidden;
  color: #5C5C5C;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1px;
}

.home-news-swiper-btn {
  position: absolute;
  top: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #C83C23;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-news-swiper-btn--prev {
  left: max(16px, calc(50% - 720px + 16px));
}

.home-news-swiper-btn--next {
  right: max(16px, calc(50% - 720px + 16px));
}

.home-news-swiper,
.home-news-swiper .swiper-wrapper,
.home-news-swiper .swiper-slide {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


.vision-tab-btn.is-active {
  border-bottom: 2px solid var(--Secondary-04, #C83C23);
}
.vision-tab-btn.is-active span.text-h3 {
  color: var(--Gray-01, #0A0A0A);
}


.board-radius:last-child td:last-child {
  border-radius: 0 0 20px 0;
}
.board-radius td[rowspan="3"] {
  border-radius: 0 0 0 20px;
}

.slogan-block a:hover {
  text-decoration: underline;
}

/* =========================
   Doctor Filter
========================= */
.doctor-filter-btn.is-active {
  background: rgba(200, 60, 35, 0.2);
  border-radius: 5px;
  color: #0a0a0a;
}

.doctor-card.is-hidden {
  display: none;
}


/* =========================
   Doctor Modal Base
========================= */
.doctor-modal {
  display: none;
}

.doctor-modal.is-open {
  display: block;
}

.doctor-modal__dialog {
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding-top: 48px; /* 給 tabs 空間 */
  border-radius: 0;
  box-sizing: border-box;
}


/* =========================
   Tabs
========================= */

.doctor-modal__tabs::-webkit-scrollbar {
  display: none;
}

.doctor-modal__tab {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.doctor-modal__tab-inner {
  position: relative;
  display: block;
}

.doctor-modal__tab-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.doctor-modal__tab-shape {
  fill: #b3b3b3;
  transition: fill 0.3s ease;
}

.doctor-modal__tab-text {
  color: #5f5f5f;
  transition: color 0.3s ease;
  pointer-events: none;
}

/* active */
.doctor-modal__tab.is-active .doctor-modal__tab-shape {
  fill: #ffffff;
}

.doctor-modal__tab.is-active .doctor-modal__tab-text {
  color: #0a0a0a;
}

/* hover */
.doctor-modal__tab:hover .doctor-modal__tab-shape {
  fill: #efefef;
}

.doctor-modal__tab:hover .doctor-modal__tab-text {
  color: #0a0a0a;
}

/* focus */
.doctor-modal__tab:focus-visible .doctor-modal__tab-inner {
  outline: 2px solid #c83c23;
  outline-offset: 2px;
  border-radius: 18px 18px 0 0;
}


/* =========================
   Panels
========================= */
.doctor-modal__panel {
  display: none;
}

.doctor-modal__panel.is-active {
  display: block;
}

.doctor-modal__panel-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .doctor-modal__panel-content {
    grid-template-columns: 1fr;
  }
}

.doctor-modal__panel-text {
  min-width: 0;
}

.doctor-modal__panel-image {
  width: 100%;
}

.doctor-modal__panel-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* =========================
   Bio 內文
========================= */
.doctor-modal__bio p {
  margin: 0 0 1.2em;
}

.doctor-modal__bio p:last-child {
  margin-bottom: 0;
}


/* =========================
   Close Button
========================= */
.doctor-modal__close {
  transition: opacity 0.25s ease;
}

.doctor-modal__close:hover {
  opacity: 0.7;
}

.service-tab-btn.is-active {
  background: #C83C23;
  color: #fff;
}

.education-two-images-block-inside,
.education-image-content-block-inside {
  transition: background-color 0.4s ease;
}

.education-two-images-block-inside.is-active,
.education-image-content-block-inside.is-active {
  background-color: #F7F5EF !important;
}
.education-two-images-block-inside.is-active .title-block,
.education-image-content-block-inside.is-active .title-block {
  border-bottom-color: #E72418;
}

._df_book {
  border-radius: 20px;
}
.df-viewer canvas {
  background-color: #333;
}
.df-viewer .df-3dcanvas {
  padding: 20px 0 50px 0;
}
.df-float .df-ui {
  margin-bottom: 20px !important;
}

.enterprise-tab-button {
  background: #FFF;
  color: #C83C23;

  transition: all 0.3s ease;

  cursor: pointer;
}

.enterprise-tab-button:hover,
.enterprise-tab-button.is-active {
  background: #C83C23;
  color: #FFF;
}

.enterprise-tab-panel {
  display: none;
}

.enterprise-tab-panel.is-active {
  display: block;
}

/* 奇數 */
.thanks-cards .thanks-card:nth-child(odd) {
  background: #F5F5F5;
}
/* 偶數 */
.thanks-cards .thanks-card:nth-child(even) {
  background: #F7F5EF;
}

.footer-newsletter-form .wpcf7-form input[type="text"],
.footer-newsletter-form .wpcf7-form input[type="tel"],
.footer-newsletter-form .wpcf7-form input[type="email"] {
  width: 100%;
  height: 45px;

  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;

  border-radius: 5px;
  background: #FFF;

  outline: none;
  border: none;

  color: var(--Gray-04, #8F8F8F);

  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 28.8px */
  letter-spacing: 1px;
}

.footer-newsletter-form .wpcf7-form input::placeholder {
  color: #999;
}

.footer-newsletter-form .join-submit-btn input[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;

  border-radius: 5px;
  background: #C83C23;

  color: #FFF;

  border: none;
  cursor: pointer;

  transition: all 0.3s ease;
}

.join-submit-btn input[type="submit"]:hover {
  opacity: 0.9;
}

.footer-newsletter-form .wpcf7-form .grid-input {
  color: var(--Gray-04, #8F8F8F);
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; 
  letter-spacing: 1px;
}

.wpcf7-spinner {
  display: none !important;
}

.grid-title-block {
  margin-bottom: 34px;
}
.grid-button {
  margin-top: 32px;
}


/* ========================================
   Sassy Social Share Custom Icons
======================================== */

.social-btn .heateor_sss_sharing_ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

/* 清除 float */
.social-btn .heateorSssClear {
  display: none !important;
}

/* ========================================
   每顆按鈕
======================================== */

.social-btn .heateor_sss_sharing_ul > a {
  position: relative !important;

  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;

  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 999px !important;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  overflow: hidden !important;

  transition: transform 0.3s ease !important;
}

/* hover */
.social-btn .heateor_sss_sharing_ul > a:hover {
  transform: translateY(-3px) !important;
}

/* ========================================
   隱藏原本 icon
======================================== */

.social-btn .heateor_sss_sharing_ul > a > span.heateor_sss_svg {
  display: none !important;
}

.social-btn .heateor_sss_sharing_ul > a svg {
  display: none !important;
}

/* ========================================
   自訂 icon
======================================== */

.social-btn .heateor_sss_sharing_ul > a::before {
  content: "" !important;

  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  background-repeat: no-repeat !important;
  background-position: center !important;

  /* icon 大小 */
  background-size: 40px 40px !important;

  transition: transform 0.3s ease !important;
}

/* hover */
.social-btn .heateor_sss_sharing_ul > a:hover::before {
  transform: scale(1.08) !important;
}

/* ========================================
   Facebook
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_facebook::before {
  background-image: url("http://rednose.local/wp-content/uploads/Facebook-1.png") !important;
}

/* ========================================
   Instagram
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_instagram::before,
.social-btn .heateor_sss_sharing_ul > a.heateor_sss_instagram::before {
  background-image: url("http://rednose.local/wp-content/uploads/Instagram-1.png") !important;
}

/* ========================================
   Threads
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_threads::before {
  background-image: url("http://rednose.local/wp-content/uploads/Threads-1.png") !important;
}

/* ========================================
   LINE
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_line::before {
  background-image: url("http://rednose.local/wp-content/uploads/Line-1.png") !important;
}

/* ========================================
   SMS
======================================== */

.social-btn .heateor_sss_sharing_ul > a.heateor_sss_button_sms::before {
  background-image: url("http://rednose.local/wp-content/uploads/Contact.png") !important;
}

.info-block:first-child .social-btn {
  padding-left: 0 !important;
}

/* 關閉搜尋的x */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}


/* 聯絡表單CF7 */
.contact-form-custom {
  width: 100%;
}

.contact-form-custom .form-section {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form-custom .form-section .group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-custom .form-section .wpcf7-form-control-wrap select {
  margin: 4px;
}
.contact-form-custom .contact-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  padding: 16px 48px 16px 16px;

  border: none;
  border-radius: 4px;
  background-color: #f3f3f3;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M10.3152 10.5L17.6827 10.5C17.9736 10.4995 18.2586 10.5815 18.5048 10.7364C18.7511 10.8912 18.9484 11.1126 19.074 11.375C19.221 11.6862 19.2776 12.0326 19.2374 12.3745C19.1972 12.7163 19.0617 13.0401 18.8465 13.3087L15.1627 17.7712C15.0182 17.938 14.8394 18.0718 14.6386 18.1635C14.4379 18.2552 14.2197 18.3026 13.999 18.3026C13.7782 18.3026 13.5601 18.2552 13.3593 18.1635C13.1585 18.0718 12.9798 17.938 12.8352 17.7712L9.15148 13.3087C8.93622 13.0401 8.80077 12.7163 8.76054 12.3745C8.72032 12.0326 8.77695 11.6862 8.92398 11.375C9.04958 11.1126 9.24691 10.8912 9.49312 10.7364C9.73933 10.5815 10.0244 10.4995 10.3152 10.5Z' fill='%238F8F8F'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 28px 28px;

  cursor: pointer;
}
.contact-form-custom .contact-select:focus {
  outline: none;
}

.contact-form-custom h3 {
  color: var(--Gray-01, #0A0A0A);

  /* 標題h5 */
  font-family: "Noto Sans TC";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1px;
}

.contact-form-custom p {
  color: var(--Gray-01, #0A0A0A);

  /* 內文 Small */
  font-family: "Noto Sans TC";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; 
  letter-spacing: 1px;
}

.contact-form-custom .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form-custom .form-left,
.contact-form-custom .form-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px;
}
.form-right .wpcf7-form-control-wrap {
  max-height: 89.5px;
}

.contact-form-custom .form-right.project .wpcf7-form-control-wrap{
  max-height: none;
  height: 274px;
}
.contact-form-custom .form-right.project textarea {
  height: 274px;
}


.contact-form-custom input,
.contact-form-custom select,
.contact-form-custom textarea {
  width: 100%;
  min-height: 53px;
  border: none;
  border-radius: 5px;
  background: #F5F5F5;
  padding: 12px 16px;
  outline: none;

  color: var(--Gray-01, #0A0A0A);
  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 28.8px */
  letter-spacing: 1px;
}

.contact-form-custom textarea {
  height: 89.5px;
  resize: vertical;
}

.contact-form-custom .field-note {
  margin-top: -10px;
  margin-bottom: 0;
  color: #5c5c5c;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form-custom .radio-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-custom .radio-block p {
  margin: 0;
  color: #5c5c5c;
}

.contact-form-custom .radio-title {
  color: var(--Gray-04, #8F8F8F);

  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; 
  letter-spacing: 1px;
}

.contact-form-custom .wpcf7-list-item-label {
  color: var(--Gray-03, #5C5C5C);
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; 
  letter-spacing: 1px;
}

.contact-form-custom .wpcf7-list-item {
  margin: 0 16px 0 0;
}

.contact-form-custom .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   CF7 Radio Custom Style
========================= */

.radio-block .wpcf7-form-control-wrap {
  display: flex;
}

.radio-block .wpcf7-radio {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.radio-block .wpcf7-list-item {
  margin: 0;
}

.radio-block .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

/* 隱藏原本 radio */
.contact-form-custom .radio-block input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;

  width: 20px;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  padding: 0 !important;

  border-radius: 999px;
  background: #F5F5F5;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

/* 中間填滿效果 */
.radio-block input[type="radio"]::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 10px;
  height: 10px;

  border-radius: 999px;

  background: #c83c23;

  transform: translate(-50%, -50%) scale(0);

  transition: all 0.25s ease;
}

/* checked */
.radio-block input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* 文字 */
.radio-block .wpcf7-list-item-label {
  color: #5C5C5C;

  font-size: 20px;
  font-weight: 500;
}

.contact-form-custom .form-submit-wrap,
.contact-form-custom .custom-submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.contact-form-custom .custom-submit-btn {
  width: auto;
  min-height: 48px;
  cursor: pointer;
  border-radius: 4px;
  background: #c83c23;
  padding: 12px 32px;
  color: #fff;
  font-weight: 700;

  margin: 4px;
}

.custom-submit-btn:hover {
  opacity: 0.9;
}

.custom-submit-btn span:first-child {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.submit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-form-custom .form-grid {
    grid-template-columns: 1fr;
  }
}

.joinUsPage .grid-input {
  min-width: 0;
  width: 100%;
}

.joinUsPage .grid-input .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.joinUsPage .grid-input input {
  display: block;
  width: 100%;
  height: 45px;
  box-sizing: border-box;

  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  background: #ffffff;

  color: var(--Gray-01, #0A0A0A);
  text-align: justify;

  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;
  outline: none;
}

.joinUsPage .grid-input input::placeholder {
  color: var(--Gray-04, #8F8F8F);

  /* 內文 Body-Regular */
  font-family: "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  letter-spacing: 1px;

  opacity: 1;
}

/* google map 相關設定 */
.entering-locations__inner {
  display: block;
  width: 100%;
}

.entering-locations__map {
  width: 100%;
  height: 520px;
  min-height: 520px;
  display: block;
  border-radius: 40px;
  overflow: hidden;
  background: #E5E5E5;
  box-shadow: 0 10px 60px 0 rgba(84, 60, 37, 0.10);
}

/**
  * Google Map HTML Marker
  */
.map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.map-marker-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.map-label {
  color: #0A0A0A;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;

  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 -1px 2px rgba(255, 255, 255, 1),
    1px 0 2px rgba(255, 255, 255, 1),
    -1px 0 2px rgba(255, 255, 255, 1),
    1px 1px 2px rgba(255, 255, 255, 1),
    -1px -1px 2px rgba(255, 255, 255, 1),
    1px -1px 2px rgba(255, 255, 255, 1),
    -1px 1px 2px rgba(255, 255, 255, 1);

  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
}

.entering-map-info-window {
  max-width: 240px;
}

.entering-map-info-window h3 {
  margin: 0 0 6px;
  color: #0A0A0A;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.entering-map-info-window p {
  margin: 0;
  color: #5C5C5C;
  font-size: 14px;
  line-height: 1.6;
}

.gm-style .gm-style-iw-c {
  padding: 20px 20px 10px 20px !important;
}

.gm-style-iw-chr {
  position: absolute;
  right: 0;
  top: 0px;
}

@media (max-width: 1023px) {
  .entering-locations__map {
    height: 420px;
    min-height: 420px;
    border-radius: 28px;
  }

  .map-marker-icon {
    width: 70px;
    height: 70px;
  }

  .map-label {
    font-size: 14px;
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.95);
  }
}

.privacy-policy  .site-main {
  background: var(--Secondary-05, #F7F5EF);
  padding: 8.33%;
}

.privacy-policy .heateor_sss_sharing_container {
  display: none;
}

/* ================================
   Vision Tabs Mobile RWD
   768px 以下：左右箭頭 + 橫向滑動 + active 置中
================================ */

.vision-tabs-outer {
  position: relative;
}

.vision-tab-arrow {
  display: none;
}

@media (max-width: 768px) {
  .vision-tabs-outer {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vision-tab-arrow {
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .vision-tab-arrow svg {
    display: block;
    width: 12px;
    height: 12px;
  }

  .vision-tabs {
    width: calc(100% - 88px);
    display: flex !important;
    justify-content: flex-start !important;
    gap: 0 !important;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .vision-tabs::-webkit-scrollbar {
    display: none;
  }

  .vision-tab-btn {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;

    justify-content: center !important;
    align-items: center !important;
    text-align: center;

    padding: 12px 16px 16px !important;
    scroll-snap-align: center;

    gap: 12px !important;
  }

  .vision-tab-btn span:first-child {
    font-size: 18px !important;
    flex-shrink: 0;
  }

  .vision-tab-btn span:last-child {
    line-height: 1.5;
    color: #8F8F8F;
    transition: color 0.3s ease;
  }

  .vision-tab-btn.is-active span:last-child {
    color: #0A0A0A;
  }

  .vision-tab-panel > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }

  .vision-tab-panel .text-body-regular {
    width: 100% !important;
    max-width: none !important;
  }

  .vision-tab-panel .aspect-\[3\/2\] {
    width: 100% !important;
    flex: none !important;
  }

  .vision-tab-arrow {
    color: #C83C23;
    transition: color 0.3s ease;
  }

  .vision-tab-arrow svg {
    display: block;
  }

  .vision-tab-arrow:disabled {
    color: #DBDBDB;
    cursor: not-allowed;
  }

  .vision-tab-arrow:disabled {
    color: #DBDBDB;
    cursor: not-allowed;
    pointer-events: none;
  }
}

