/* ==========================================================================
   小桌機/平板橫向
   ========================================================================== */
@media (max-width: 1440px) {

  /*服務項目內頁*/
  #service-detail-header {
    margin-top: 25px;
  }
}

/* ==========================================================================
   小桌機/平板橫向
   ========================================================================== */

@media (max-width: 1199px) {

  /*行動版左側選單_選單*/
  #w #navmenu {
    display: block;
    position: fixed;
    width: 200px;
    height: 100%;
    left: 0px;
    top: 0px;
    background: #6c6c6c;
    font-size: 0.95rem;
  }

  #w #navmenu .qa_title:hover {
    background: #000;
  }

  /*行動版左側選單_選單_submenu*/
  #menu #qaContent li .qa_title {
    padding: 15px;
    color: #fff;
    border-bottom: 1px solid #adadad;
    cursor: pointer;

  }

  #menu #qaContent li .qa_content li a {
    display: block;
    padding: 15px;
    color: #000;
    background: #eee;
    font-size: 0.9rem;
  }

  /*主內容*/
  #w {
    position: relative;
    overflow-x: hidden;
  }

  #w #pagebody {
    position: relative;
    left: 0;
    z-index: 5;
    background: #fff;
  }

  #w #pagebody #content {
    display: block;
    z-index: 9999;
    min-height: 800px;
  }

  /* === Header 基礎設定 === */
  #w #pagebody #toolbarnav {
    position: fixed;
    display: block;
    left: 0px;
    top: 0px;
    z-index: 9999;
    width: 100%;
    /* height: 60px;*/
    background: #fff;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
  }

  #w #pagebody #toolbarnav #logo-mobile {
    position: absolute;
    left: 50%;
    width: 180px;
    margin-left: -90px;
  }

  /*Header彈出按鈕*/
  #w #pagebody #toolbarnav #menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 40px;
    margin: 8px;
    background-color: #6c6c6c;
    border-radius: 3px;
    box-shadow: inset 0 1 1px #000;
    cursor: pointer;
  }

  #w #pagebody #toolbarnav #menu-btn::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0c9";
    display: inline-block;
    font-size: 24px;
    color: #eee;
  }

  /*統一設定*/
  .container {
    width: 96%;
    margin: 0 auto;
  }

  .container02 {
    width: 96%;
    margin: 0 auto;
  }

  .web {
    display: none;
  }

  .mobile {
    display: block;
  }

  br {
    display: none;
  }

  /*網頁版上方*/
  header {
    display: none;
  }

  nav {
    display: none;
  }

  /* 行動版快捷按鈕 */
  #mobile-sub-nav {
    display: flex;
    width: 100%;
    background-color: #b57c38;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  #mobile-sub-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    box-sizing: border-box;
  }

  #mobile-sub-nav .nav-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
  }

  #mobile-sub-nav .nav-item:active {
    background-color: #96632a;
  }

  /*首頁關於我們*/
  #index-about {
    padding: 60px 0;
  }

  #index-about .container {
    gap: 30px;

  }

  #index-about .about-image {
    max-width: 45%;
  }

  #index-about .about-content {
    max-width: 85%;
  }

  #index-about .about-content .sub-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  #index-about .about-content .main-title {
    font-size: 1.65rem;
    margin-bottom: 15px;
  }

  #index-about .about-content .concept-group {
    margin-bottom: 20px;
  }

  #index-about .about-content .concept-item {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  #index-about .about-content .desc-blockquote {
    padding-left: 15px;

  }

  #index-about .about-content .desc-blockquote p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
  }

  /*首頁最新消息*/
  #index-news,
  #news {
    padding: 60px 0;
  }

  #index-news .container,
  #news .container {
    gap: 40px;
  }

  #index-news .news-tabs,
  #news .news-tabs {
    width: 160px;
  }

  #index-news .news-featured,
  #news .news-featured {
    gap: 20px;
  }

  #index-news .featured-img,
  #news .featured-img {
    width: 200px;
    height: 135px;
  }

  #index-news .featured-title,
  #news .featured-title {
    font-size: 1.2rem;
  }

  #index-news .news-item,
  #news .news-item {
    gap: 25px;
  }

  /*關於森澤*/
  #about-intro .intro-card {
    padding: 40px;
  }

  #about-spirit .spirit-wrapper {
    gap: 40px;
  }


  /*醫療團隊*/
  #doctor .doctor-content {
    gap: 20px;
  }

  /*就醫指南*/
  .guide-bottom-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-wrapper {
    height: 350px;
  }

  /*服務項目列表*/
  #service-list .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #service-list .service-item {
    padding: 35px 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-intro {
    margin-bottom: 35px;
    padding: 0 15px;
  }


  /* 診療環境 */
  #tour-environment {
    padding: 0;
  }

  .env-swiper-container {
    border-radius: 12px;
    margin: 0 15px 60px;
  }

  .env-slide {
    flex-direction: column !important;
  }

  .slide-img-box {
    flex: 0 0 100%;
    height: 320px;
  }

  .slide-info {
    flex: 0 0 100%;
    padding: 35px 25px 90px;
  }

  .slide-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .slide-info p {
    display: none;
  }

  .slide-number {
    margin-bottom: 15px;
  }

  .slider-arrows {
    bottom: 25px;
    right: 25px;
  }

  .slider-arrows button {
    width: 38px;
    height: 38px;
  }


  /* 醫療設備 */
  #tour-equipment {
    padding: 60px 0;
  }

  #tour-equipment .equipment-row,
  #tour-equipment .equipment-row.row-reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 15px;
  }


  #tour-equipment .equipment-img,
  #tour-equipment .equipment-info {
    flex: 0 0 100%;
    width: 100%;
  }

  #tour-equipment .equipment-info h3 {
    font-size: 24px;
    margin-top: 10px;
  }

  #tour-equipment .eq-subtitle {
    margin-bottom: 15px;
  }

  #tour-equipment .eq-desc {
    margin-bottom: 20px;
    font-size: 15px;
  }


}

/* ==========================================================================
   平板直向/手機橫向
   ========================================================================== */
@media (max-width: 768px) {

  /*首頁-關於我們*/
  #index-about {
    padding: 50px 0;
  }

  #index-about .container {
    flex-direction: column;
    gap: 40px;
  }

  #index-about .about-image {
    max-width: 100%;
  }

  #index-about .about-content .desc-blockquote {
    padding-left: 15px;
  }

  /* --- 輪播swiper --- */
  body .swiper-button-prev,
  body .swiper-button-next {
    display: none;
  }

  body .swiper-pagination {
    bottom: 16px;
  }

  /*首頁服務項目*/
  #index-service {
    padding: 40px 0;
  }

  #index-service .service-header .main-title {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  /*首頁最新消息*/
  #index-news,
  #news {
    padding: 40px 0;
  }

  #index-news .main-title,
  #news .main-title {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  #index-news .container,
  #news .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #index-news .news-block,
  #news .news-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 0;
  }

  #index-news .news-label,
  #news .news-label {
    width: 100%;
    padding: 0 0 0 20px;
  }

  #index-news .news-content-box,
  #news .news-content-box {
    width: 100%;
  }

  #index-news .item-featured a,
  #news .item-featured a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 25px;
  }

  #index-news .featured-img,
  #news .featured-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  #index-news .featured-info,
  #news .featured-info {
    width: 100%;
  }

  #index-news .featured-title,
  #news .featured-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  #index-news .news-item:not(.item-featured) a,
  #news .news-item:not(.item-featured) a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 15px 0;
  }

  #index-news .news-item:not(.item-featured) .news-date,
  #news .news-item:not(.item-featured) .news-date {
    width: auto;
  }

  #index-news .news-item:not(.item-featured) .news-title,
  #news .news-item:not(.item-featured) .news-title {
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.5;
  }

  /*首頁底部滿版視差圖*/
  #index-bottom-contact {
    height: 300px;
    background-attachment: scroll;
  }

  #index-bottom-contact .cta-title {
    font-size: 1.5rem;
    padding: 0 15px;
    line-height: 1.4;
  }

  /*多頁共用-標題與下拉選單/標題與日期*/
  .title-wrap {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px 40px 15px;
  }

  .category-select {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
  }

  .category-select select {
    width: 80%;
    max-width: 300px;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-image: none;
    background-color: #ffffff;
    padding: 8px 15px;
  }

  .category-select::after {
    display: none;
  }

  .title-wrap .post-date {
    padding-bottom: 0;
  }




  /*關於森澤*/
  #about-intro {
    padding: 60px 0;
  }

  #about-intro .intro-card {
    max-width: 100%;
    padding: 30px 20px;
  }

  #about-intro .intro-card h2 {
    font-size: 22px;
  }

  #about-intro .intro-card h2 span {
    display: block;
    margin-left: 0;
    margin-top: 5px;
    font-size: 15px;
  }

  #about-spirit .spirit-wrapper {
    flex-direction: column-reverse;
    gap: 40px;
  }

  #about-spirit .spirit-images {
    width: 100%;
    flex: none;
    padding: 0 20px;
  }

  #about-spirit .spirit-images .img-left {
    margin-top: 40px;
  }

  #about-spirit .spirit-images .img-right {
    margin-top: 0;
  }

  #about-spirit .spirit-info h3 {
    font-size: 24px;
  }

  /**診療環境*/
  .slide-img-box {
    height: 240px;
  }

  .slide-info {
    padding: 30px 20px 85px;
  }

  /*醫療團隊*/
  #doctor .doctor-item {
    flex-direction: column;
  }

  #doctor .doctor-photo {
    width: 100%;
    height: 360px;
    min-height: auto;
  }

  #doctor .doctor-info {
    padding: 30px 25px;
  }

  #doctor .doctor-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  #doctor .doctor-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /*就醫指南*/
  #guide-content {
    padding: 50px 0;
  }

  #guide-content .table-responsive {
    padding-left: 0;
  }

  #guide-content .section-desc {
    padding-left: 0;
  }

  #guide-content .schedule-table {
    min-width: 650px;
  }


  /*診療項目*/
  #service-banner {
    height: 150px;
  }

  #service-list {
    padding: 40px 0 60px 0;
  }

  #service-list .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #service-list .service-item {
    padding: 40px 25px;
  }

  /*診療項目內頁*/
  #service-detail-header {
    margin-top: -45px;
    position: relative;
    z-index: 10;
  }

  #service-detail-header .detail-title-card .card-icon-wrap {
    display: none;
  }

  #service-detail-header .detail-title-card .card-text-wrap {
    padding: 25px 20px;
    text-align: center;
    background-color: #ebe2da;
    width: 100%;
  }

  #service-detail-header .detail-title-card .card-text-wrap h1 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  #service-detail-header .detail-title-card .card-text-wrap p {
    font-size: 13px;
    line-height: 1.5;
  }

  #service-detail-content {
    padding: 30px 0 60px 0;
  }


  /* 自費檢查 */
  #inter-list .inter-item {
    flex: 1 1 calc(100% - 20px);
  }




  /*衛教文章*/
  #article-list .article-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
  }

  #article-list .article-title {
    padding-right: 0;
    font-size: 16px;
    margin-bottom: 8px;
  }

  #article-list .article-item:hover .article-title {
    transform: none;
  }

  #article-list .article-date {
    flex-direction: row;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    color: #cf9a60;
    min-width: auto;
  }

  #article-list .article-date small {
    margin-top: 0;
    margin-right: 4px;
    font-size: 13px;
    color: #cf9a60;
    order: -1;
  }

  #article-list .article-item:hover .article-date {
    color: #cf9a60;
  }


  /*常見QA*/
  #qa-list {
    gap: 16px;
  }

  .qalist-item {
    padding: 20px 20px 45px 20px;
  }

  .qalist-question h3 {
    font-size: 16px;
  }

  .qalist-intro {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .qalist-more-btn {
    right: 20px;
    bottom: 15px;
    padding: 3px 14px;
    font-size: 11px;
  }

  #qa-detail {
    padding: 20px 0;
  }

  #qa-detail .qa-meta {
    margin-bottom: 16px;
  }

  #qa-detail .qa-summary-box {
    padding: 16px 20px;
    font-size: 15px;
    margin-bottom: 25px;
  }




  /*尾部*/
  footer {
    display: flex;
    flex-direction: column;
  }

  footer .column-left {
    display: none;
  }

  footer .column-right {
    width: 96%;
    padding: 20px 5px 5px 15px;
  }

  #footernav02 li {
    font-size: 0.9em;
    padding-bottom: 3px;
  }

  #footernav li#copyright {
    padding: 0;
  }

}


/* ==========================================================================
   平板直向
   ========================================================================== */
@media (max-width: 575px) {}