#counter {
    /* box-shadow: rgba(104, 145, 255, 0.5) 0px 0px 90px; */
    box-shadow: rgba(251, 93, 165, 0.5) 0px 0px 150px;
    position: relative;
}

#counter::before,
#counter::after {
    content: '';
    position: absolute;
    width: 135px;
    height: 135px;
}

#counter::before {
    left: 0;
    bottom: 0;
    box-shadow: #FF9A34 2px -2px 1px inset;
    border-bottom-left-radius: 24px;
    -webkit-mask-image: linear-gradient(45deg, #000 0, transparent 50%);
    mask-image: linear-gradient(45deg, #000 0, transparent 50%);
}

#counter::after {
    right: 0;
    top: 0;
    box-shadow: #FF9A34 -2px 2px 1px inset;
    border-top-right-radius: 24px;
    -webkit-mask-image: linear-gradient(225deg, #000 0, transparent 50%);
    mask-image: linear-gradient(225deg, #000 0, transparent 50%);
}


/* Button */

.overview-text-btn a {
    position: relative;
    background-color: transparent;
}

.overview-text-btn a::before {
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    background-image: linear-gradient(#0d0d0d, #0d0d0d),radial-gradient(circle at top left, #9867f0, #ed4e50) !important;
    background-clip: content-box,border-box !important;
    background-origin: border-box !important;
    border: double 1px transparent;
    border-radius: inherit;
    opacity: 1 !important;
}

.overview-text-btn a:hover {
    color: var(--base-color-8);
    background-color: transparent !important;
    background-image: var(--grad-color-2);
    transition-property: none;
}

@media screen and (min-width: 1441px) {
    .ori-team-top-content-1 img{
        max-width: 50%;
    }
}


@media screen and (max-width: 1200px) and (orientation: Portrait) {
    .ori-slider-text .slider-play-btn {
        -webkit-transform: translateY(30px) !important;
                transform: translateY(30px) !important;
  }
}

@media screen and (min-width: 1920px)  {
    .ori-slider-text .slider-play-btn {
        -webkit-transform: translateY(300px) !important;
                transform: translateY(300px) !important;
    }
}
/* Footer language switcher on the privacy pages (MAL-2389).
   Reuses .drop-down-menu from style.css but opens upward, so the panel does not
   cover the copyright line, and opens on click so it also works on touch. */
/* The header switcher gets list-style/padding/margin resets from bootstrap's
   .nav; this one is a bare <ul>, so reset them here or the browser default
   bullet and 1em block margins leak into the footer row. */
.ori-footer-social .footer-lang-switch {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ori-footer-social .footer-lang-switch > li {
    float: none;
    padding: 0;
}

/* No margin here on purpose: the icon keeps the 20px margin-left that
   .ori-footer-social a already gives facebook/youtube, so all three match. */
.ori-footer-social .footer-lang-switch > li > a {
    display: inline-block;
    position: relative;
    padding: 0;
    line-height: inherit;
    cursor: pointer;
}

/* Transparent overlay gives the icon a 44px tap target on touch without taking
   up layout space, so the footer row keeps the height it had before. */
.ori-footer-social .footer-lang-switch > li > a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.ori-footer-social .footer-lang-switch ul {
    top: auto;
    bottom: 120%;
    right: 0;
    margin: 0;
    text-align: left;
    list-style: none;
}

.ori-footer-social .footer-lang-switch ul li {
    float: none;
    list-style: none;
}

.ori-footer-section .ori-footer-logo-social .ori-footer-social .footer-lang-switch ul li a {
    margin-left: 0;
}

.ori-footer-social .footer-lang-switch li:hover > ul {
    display: none !important;
}

.ori-footer-social .footer-lang-switch li.is-open > ul {
    display: block !important;
}

/* 首頁標頭的語系選單（桌面與手機版各一個）：改成點擊開關，和上面頁尾的語系選單一致。
   原本靠 :hover 顯示，觸發鈕與面板之間有空隙（style.css 的 top: 120%），窄版畫面上滑鼠經過空隙
   選單就消失、選不到；觸控裝置也沒有 hover。開關的 JS 在 index.html / en.html / ja.html 結尾。 */
#header .drop-down-menu > li > a {
    cursor: pointer;
}

#header .drop-down-menu li:hover > ul {
    display: none !important;
}

#header .drop-down-menu li.is-open > ul {
    display: block !important;
}

/* ---------- 首頁 RWD ----------
   style.css 的標題都設了 word-break: keep-all（中文詞組不拆開），但字級是固定的，
   窄版畫面上一個詞組比容器寬時就超出右邊被裁掉（例如手機版「讓您更專注治療！」）。 */

/* 標題與圖片並排的區塊（語音、一鍵…）：標題欄允許縮小，圖片最多佔 50%（和原本大螢幕的設定一致），
   否則標題以最小內容寬度撐開，圖片被擠出畫面右邊（1024px 左右可見）。 */
.ori-team-top-content-1 > .ori-section-title-1 {
    min-width: 0;
    max-width: 100%;
}

.ori-team-top-content-1 > img {
    min-width: 0;
    height: auto;
}

@media screen and (min-width: 992px) {
    .ori-team-top-content-1 > .ori-section-title-1 {
        flex: 1 1 auto;
    }

    .ori-team-top-content-1 > img {
        flex: 0 1 50%;
        max-width: 50%;
    }
}

/* 992~1199px：80px 的大標題放不下並排的圖片，字級隨寬度縮小 */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .ori-section-title-1 h2 {
        font-size: clamp(3.5rem, 6vw, 5em);
        line-height: 1.1;
    }
}

/* 手機：固定 3rem（48px）時，7 個字以上的詞組就比 375px 畫面寬，改成隨畫面寬度縮放 */
@media screen and (max-width: 480px) {
    .ori-section-title-1 h2 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.15;
    }

    .ori-section-title-1 h2 span.small {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }
}

/* 最後的保險：真的放不下時就換行，不要被裁掉 */
.ori-section-title-1 h2,
.ori-section-title-1 h2 span,
.ori-inner-section-title h2,
.ori-inner-section-title h2 span {
    overflow-wrap: anywhere;
}

.ori-inner-section-title h2 span {
    max-width: 100%;
}

/* 日文沒有空格分詞，keep-all 等於整串假名都不能斷行，標題在手機甚至平板都會超出畫面。
   改用瀏覽器的詞組斷行（auto-phrase，Chrome 119+），不支援的瀏覽器退回一般斷行。 */
html[lang="ja"] .ori-section-title-1 h2,
html[lang="ja"] .ori-section-title-1 h2 span,
html[lang="ja"] .ori-inner-section-title h2,
html[lang="ja"] .ori-inner-section-title h2 span {
    word-break: normal;
    word-break: auto-phrase;
}

/* 日文標題常有很長的片假名單字（スーパーアシスタント、ガイドライン），手機上再縮小一點，
   讓整個單字放得進一行，不會被拆成「アシスタ／ント」 */
@media screen and (max-width: 480px) {
    html[lang="ja"] .ori-section-title-1 h2 {
        font-size: clamp(1.75rem, 9vw, 3rem);
    }

    html[lang="ja"] .ori-inner-section-title h2 span {
        font-size: clamp(1.75rem, 9vw, 3rem);
        line-height: 1.2;
    }
}
