/* 祺惠首頁 A 版(翔陽底)自己的樣式。原站樣式在 /assets/css/style.css,這支掛在它後面。 */

/* ── 品牌色:原站藍換成 TOSHIN 藍 ── */
:root {
  --qh-blue: #0934F6;
  --qh-blue-rgb: 9, 52, 246;
  --qh-blue-light: #5B7CFF;
  --color-primary: var(--qh-blue);
  --color-primary-rgb: var(--qh-blue-rgb);
  --color-secondary: var(--qh-blue);
  --color-input-active: var(--qh-blue);
  --color-submit-bg: var(--qh-blue);
}

/* ── 字:英文照原站 Space Grotesk,中文換 Noto Sans TC ── */
body,
.c-title__ja,
.top-hero__cacth,
.top-about__heading,
.top-alumi__heading,
.top-wedo__heading,
.top-company__link__ja,
.top-wedo__link__ja,
.top-recruit__link__ja,
.l-header__gnav__str,
.l-drawer__nav__str,
.l-footer__nav__str {
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
}

/* ── logo:圓形 TOSHIN + 公司名 ── */
.qh-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #222527;
  line-height: 1;
}
.qh-logo img { width: 40px; height: 40px; display: block; }
.qh-logo__name { font-size: 16px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.l-header.\:is-dark .qh-logo,   /* 11-24 Eric 標註「這一區塊 logo 字沒有變白色」:深色頁首的 :is-dark 是加在頁首自己身上,原本寫成祖先,沒套到 */
.l-footer .qh-logo { color: #fff; }
.l-header__logo { font-size: 16px; }
.qh-intro-logo { width: 120px; height: 120px; display: block; }

/* ── 首屏:標語、公司事實 ── */
.top-hero__cacth { letter-spacing: .04em; }
.top-hero__cacth__second { color: var(--qh-blue); }
.top-hero__chemical-nums__dd,
.top-hero__chemical-nums dd { font-feature-settings: "tnum"; }

/* ── 漸層大字:原站的灰白漸層照用,英文大字換成藍灰 ── */

/* ── 細線箭頭(取代原站圖示) ── */
.qh-arrow { flex: none; }

/* ── 客製化 4 點 ── */
.qh-list { list-style: none; margin: 0; padding: 0; }
.qh-list li { padding: 12px 0; border-bottom: 1px solid rgba(34, 37, 39, .12); line-height: 1.8; }
.qh-list li:first-child { padding-top: 0; }

/* ── 產品第 5 類:原站只有 4 個換圖鍵 ── */
.top-company__images.\:dental [data-company-image=dental] { z-index: 3; opacity: 1; }

/* ── 應用領域 9 個 ── */
.qh-fields {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-size: 16px; color: #3e4c59;
}
.qh-fields li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--qh-blue); margin-right: 10px; vertical-align: middle; }

/* ── 技術資料卡:原站有日期,我們拿掉 ── */
.c-card__cat { font-size: 12px; letter-spacing: .08em; color: #9a9aac; }

/* ── 代理品牌 + 型錄下載(自己加的區塊,字級與間距照原站 c-title / 內文) ── */
.qh-brands { padding: 120px 0; background: #fafafa; }
.qh-brands__body { line-height: 2; }
.qh-brands__grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 64px;
}
.qh-brands__label { display: block; font-size: 12px; letter-spacing: .12em; color: #9a9aac; margin-bottom: 24px; }
.qh-brands__exclusive {
  background: #fff; border-radius: 12px; padding: 40px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.qh-brands__exclusive img { width: 96px; height: 96px; }
.qh-brands__name { margin-top: 16px; font-size: 24px; font-weight: 500; letter-spacing: .08em; color: var(--qh-blue); }
.qh-brands__dealers { background: #fff; border-radius: 12px; padding: 40px; }
.qh-brands__dealers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.qh-brands__item {
  font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: .06em; color: #3e4c59;
  padding: 20px 0; border-top: 1px solid rgba(34, 37, 39, .12);
}
.qh-dl { margin-top: 80px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.qh-dl__heading { font-size: 24px; font-weight: 500; margin: 0; }
.qh-dl__list { border-top: 1px solid rgba(34, 37, 39, .12); }
.qh-dl__link {
  display: flex; align-items: center; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid rgba(34, 37, 39, .12); color: inherit; text-decoration: none;
}
.qh-dl__link span:first-child { flex: 1; }
.qh-dl__pdf { font-size: 12px; letter-spacing: .1em; color: #9a9aac; }
.qh-dl__link:hover { color: var(--qh-blue); }

/* ── 聯絡 ── */
.qh-contact__tel { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 18px; }
.qh-contact__tel a { color: inherit; }

/* ── 頁尾 ── */
.qh-copyright { margin-top: 64px; font-size: 12px; color: rgba(255, 255, 255, .72); }

@media (max-width: 1023px) {
  .qh-brands { padding: 80px 0; }
  .qh-brands__grid, .qh-dl { grid-template-columns: 1fr; }
  .qh-brands__dealers ul { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 599px) {
  .qh-brands__dealers ul { grid-template-columns: repeat(2, 1fr); }
  .qh-brands__exclusive, .qh-brands__dealers { padding: 24px; }
}

/* ══ 首屏:100vh 滿版輪播(舊站首頁 3 張照片)══ */
.qh-banner { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0d10; color: #fff; }
.qh-banner__slides { position: absolute; inset: 0; }
.qh-banner__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s cubic-bezier(.165,.84,.44,1), transform 7.2s linear;
}
.qh-banner__img.is-active { opacity: 1; transform: scale(1); }
/* 字在左下:底部壓暗,照片上半部的產品不被蓋 */
.qh-banner__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,.35) 0%, rgba(11,13,16,0) 22%, rgba(11,13,16,0) 48%, rgba(11,13,16,.78) 100%); pointer-events: none; }
.qh-banner__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 6vh, 64px); }
.qh-banner__catch { margin: 0; font-family: "Noto Sans TC", sans-serif; font-weight: 500; font-size: clamp(28px, 4.2vw, 64px); line-height: 1.35; letter-spacing: .04em; }
.qh-banner__line { display: block; }
.qh-banner__line + .qh-banner__line { color: #8FA6FF; }
/* 11-23 Eric 標註:公司事實小字、上面那條細線拿掉;換張的線放到標語下面;標語上方加英文小標 */
.qh-banner__en { margin: 0 0 clamp(16px, 2vh, 24px); font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.qh-banner__dots { display: flex; gap: 8px; margin-top: clamp(32px, 4.5vh, 48px); }
.qh-banner__dot { width: 48px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.qh-banner__dot span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.32); position: relative; overflow: hidden; }
.qh-banner__dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.qh-banner__dot.is-active span::after { animation: qh-dot var(--qh-slide, 6s) linear forwards; }
@keyframes qh-dot { to { transform: scaleX(1); } }
@media (max-width: 575px) { .qh-banner__en { font-size: 14px; letter-spacing: .08em; } }

/* ══ 排版掃描修正(11-23)══ */
/* 閱讀字地板 16px(原站日文 14–15px) */
.top-about__content, .top-wedo__body, .qh-list li, .top-company__content, .top-recruit__content,
.aside-contact__content p, .qh-brands__body, .top-alumi__body, .l-footer__address__dd, .qh-fields { font-size: 16px; }
/* 全站左右版邊只有一組:原站簡介標題多縮 40px,拿掉 */
.top-about__left, .top-wedo__left { padding-left: 0; }
/* 一行太長:簡介、產品、應用、品牌說明限寬 */
.top-about__content, .top-company__content, .top-recruit__content, .qh-brands__body { max-width: 34em; }
/* 頁尾 logo 跟下面文字同一條左緣 */
.l-footer .qh-logo img { margin-left: 0; }

/* 首屏從畫面最頂端開始:頁首疊在照片上,在首屏範圍內透明、字白;捲過首屏恢復原站白底 */
.qh-banner { margin-top: calc(-1 * var(--qh-hh, 75px)); height: 100vh; height: 100svh; }
.l-header .l-header__wrapper { transition: background-color .4s ease; }
.l-header.qh-on-banner .l-header__wrapper { background-color: transparent; }
.l-header.qh-on-banner .qh-logo,
.l-header.qh-on-banner .l-header__gnav__str { color: #fff; }
.l-header.qh-on-banner .hamburger__bar { background-color: #fff; }
.qh-banner__catch { word-break: keep-all; }
/* 字壓在白色軸承上不夠清楚:底部與左側壓暗加深 */
.qh-banner__shade { background:
  linear-gradient(180deg, rgba(11,13,16,.4) 0%, rgba(11,13,16,0) 18%, rgba(11,13,16,0) 36%, rgba(11,13,16,.8) 70%, rgba(11,13,16,.92) 100%),
  linear-gradient(90deg, rgba(11,13,16,.45) 0%, rgba(11,13,16,0) 60%); }
/* 11-23 Eric:第二行淡藍不是品牌色,兩行都白 */
.qh-banner__line + .qh-banner__line { color: #fff; }
/* 11-23 Eric 標註:頁首底線變細(原站 1px → 髮絲線) */
.l-header__wrapper:before { height: .5px; }
/* 11-23 Eric 標註:桌機選單已常駐,漢堡拿掉;右邊留白跟 logo 左邊一樣 */
@media (min-width: 1024px) {
  .l-header__hamburger { display: none; }
  .l-header__wrapper { grid-template-columns: 200px 1fr; grid-template-areas: "logo gnav"; padding-right: 1.5rem; }
}
/* 頁尾左欄手機多縮 10px,跟右欄版權字對不齊 */
.l-footer__left { padding-left: 0; }

/* ── 3D 開場(程式 qh-bearing.js;捲動長度 --pin 由程式寫入)──
   首屏照片釘住 → 板子從下面升上來蓋住 → CR6000 組裝、轉身、四周大字 → 鏡頭穿過內孔,接公司簡介
   .qh-open 底部用負邊距疊在公司簡介上,最後一個螢幕高透過內孔看到的就是公司簡介本身 */
.qh-open { --pin: 4.5; position: relative; z-index: 20; margin-top: calc(-1 * var(--qh-hh, 75px));
  height: calc((1 + var(--pin)) * 100vh); margin-bottom: -100vh; pointer-events: none;
  --qh-board-top: #e4e8ee; --qh-board-bottom: #bac4d0; }
@supports (height: 100svh) { .qh-open { height: calc((1 + var(--pin)) * 100svh); margin-bottom: -100svh; } }
.qh-open__stage { pointer-events: auto; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.qh-open .qh-banner { position: absolute; inset: 0; margin-top: 0; height: 100%; min-height: 0; }
.qh-open__dim { position: absolute; inset: 0; background: #0b0d10; opacity: 0; pointer-events: none; }
.qh-board { position: absolute; inset: 0; transform: translate3d(0, 100%, 0); will-change: transform; overflow: hidden;
  border-radius: var(--qh-board-rad, 24px) var(--qh-board-rad, 24px) 0 0;
  background: radial-gradient(110% 85% at 50% 42%, var(--qh-board-top) 0%, var(--qh-board-bottom) 100%); }
.qh-board__white { position: absolute; inset: 0; background: #fff; opacity: 0; }
.qh-board__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.qh-board__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qh-open.is-no3d .qh-board__fallback { display: block; }
.qh-open.is-covered .qh-banner { pointer-events: none; }
.qh-open.is-done .qh-open__stage { display: none; }
/* 板子蓋住時頁首透明、深色字 */
.l-header.qh-on-board .l-header__wrapper { background-color: transparent; }

/* 四周大字:--r = 軸承在螢幕上的半徑(px),--k = 1 還沒出場 → 0 到位 */
.qh-open__words { position: absolute; inset: 0; pointer-events: none; --r: 200px; --k: 1; color: var(--qh-word); }
.qh-word { position: absolute; left: 50%; top: 50%; white-space: nowrap; opacity: calc(1 - var(--k));
  font-family: "Noto Sans TC", sans-serif; font-weight: 500; font-size: clamp(24px, 2.6vw, 48px); line-height: 1.2; letter-spacing: .08em; }
.qh-word--nw { transform: translate(calc(-100% - var(--r) * 1.4 + var(--k) * var(--r) * .4), calc(-100% - var(--r) * .38)); }
.qh-word--ne { transform: translate(calc(var(--r) * 1.4 - var(--k) * var(--r) * .4), calc(-100% - var(--r) * .38)); }
.qh-word--sw { transform: translate(calc(-100% - var(--r) * 1.4 + var(--k) * var(--r) * .4), calc(var(--r) * .38)); }
.qh-word--se { transform: translate(calc(var(--r) * 1.4 - var(--k) * var(--r) * .4), calc(var(--r) * .38)); }
/* 直式螢幕:大字放軸承上下兩排 */
@media (max-aspect-ratio: 4/5) {
  .qh-word { font-size: clamp(22px, 6vw, 32px); }
  .qh-word--nw { transform: translate(calc(-100% - 8px), calc(-100% - var(--r) * 1.25 - 1.6em + var(--k) * 12px)); }
  .qh-word--ne { transform: translate(8px, calc(-100% - var(--r) * 1.25 - 1.6em + var(--k) * 12px)); }
  .qh-word--sw { transform: translate(calc(-100% - 8px), calc(var(--r) * 1.25 + 1.6em - var(--k) * 12px)); }
  .qh-word--se { transform: translate(8px, calc(var(--r) * 1.25 + 1.6em - var(--k) * 12px)); }
}

/* 軸承後面的 TOSHIN 大字跑馬燈(位置由程式依捲動與時間推) */
.qh-marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden; pointer-events: none; }
.qh-marquee__track { display: flex; width: max-content; will-change: transform; }
.qh-marquee__track span { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 40vh; line-height: .8;
  letter-spacing: -.03em; padding-right: .25em; color: var(--qh-marquee); }

/* 深色(預設)/ 淺色(?tune 面板可切) */
.qh-open { --qh-board-top: #2b2f35; --qh-board-bottom: #111316; --qh-fade: #222527; --qh-word: #fff; --qh-marquee: rgba(255,255,255,.06); }
.qh-open.is-light { --qh-board-top: #e4e8ee; --qh-board-bottom: #bac4d0; --qh-fade: #fff; --qh-word: #1d2226; --qh-marquee: rgba(9,52,246,.06); }
.qh-board__white { background: var(--qh-fade); }
.l-header.qh-on-board-dark .qh-logo,
.l-header.qh-on-board-dark .l-header__gnav__str { color: #fff; }
.l-header.qh-on-board-dark .hamburger__bar { background-color: #fff; }

/* 照片標語原本 z-index:1,會浮到板子上面:照片自成一層、板子壓在上面 */
.qh-open .qh-banner { z-index: 0; }
.qh-open__dim { z-index: 1; }
.qh-board { z-index: 2; }
/* 穿孔前段,孔的後面還沒輪到公司簡介(它還在畫面下方):開場容器上段鋪板子收尾的底色,
   最後一個螢幕高(疊在公司簡介上的那段)不鋪,免得蓋住它 */
.qh-open { background: linear-gradient(var(--qh-fade), var(--qh-fade)) no-repeat top / 100% calc(100% - 100vh); }
@supports (height: 100svh) { .qh-open { background-size: 100% calc(100% - 100svh); } }
/* 進站動畫:原站框是扁長字標 170×40,圓形 logo 放進去只露一條 → 框改成 logo 的正方形;
   logo 要有 data-intro-logo-image 原站程式才會讓它縮小淡出(build.py 已加)。
   底色改深(我加的):開場板子與首屏照片都是暗的,進站白底會先閃白 */
.intro__logo { width: clamp(140px, 13vw, 200px); height: clamp(140px, 13vw, 200px); }   /* Eric 11-23:整體放大 */
.qh-intro-logo { width: 100%; height: 100%; overflow: visible; }
.intro__overlay-first { background-color: #111316; }
.intro__overlay-second { background-color: #2b2f35; }
.intro__logo__mask { background-color: #111316; }

/* ══ 11-23 Eric 標註第 2 輪:公司簡介 ══ */
/* 按鈕箭頭跟字垂直置中(原本 inline svg 落在字的基線下) */
.c-button--arrow { display: inline-flex; align-items: center; gap: 8px; padding-right: 1.7rem; }
.c-button--arrow .qh-arrow { display: block; }
/* 內文搬到左欄標題下、取消首行縮排,按鈕接在內文下方靠左 */
.top-about__content { text-indent: 0; margin-top: 40px; }
.top-about__more { margin-top: 40px; text-align: left; }

/* ══ 11-23 Eric 標註第 3 輪:頁首 ══ */
/* 隱藏式頁首:往下捲藏、往上捲出現(qh.js 加 qh-hide);用鍵盤 Tab 到選單時一定出現 */
.l-header { transition: transform .5s cubic-bezier(.19,1,.22,1); }
.l-header.qh-hide { transform: translateY(-100%); }
.l-header:focus-within { transform: none; }
/* 「聯絡我們」做成品牌藍實心膠囊(主動作),頁首各種底色上都一樣 */
/* 「聯絡我們」膠囊:11-24 併進檔尾「按鈕系統」 */

/* ══ 11-23 Eric 標註第 4 輪:公司簡介內文+按鈕移到右欄,接在左欄標題組下面錯開(右欄第 2 列) ══ */
@media (min-width: 1024px) {
  .top-about .top-about__left { grid-column: 1; grid-row: 1; }
  .top-about .top-about__right { grid-column: 2; grid-row: 2; }
}
.top-about__right .top-about__content { margin-top: 40px; }
/* 文字兩欄跟下面兩張照片用同一個溢出右邊的容器分欄,右欄內文左緣 = 右圖左緣 */
.top-about__text { row-gap: 0; }
/* 這個容器右邊貼到畫面邊,字不能貼邊:兩欄各自右側留版邊(欄線不動) */
.top-about__text > .top-about__left, .top-about__text > .top-about__right { padding-right: clamp(20px, 3.5vw, 50px); }

/* ══ 11-23 Eric 標註第 5 輪:頁首選單 ══ */
/* 選單字跟膠囊裡的字同一條中線;選項間距 1.3rem → 32px */
.l-header__gnav__ul { align-items: center; }
.l-header__gnav__list { margin-left: 32px; }
.l-header__gnav__link { display: inline-flex; align-items: center; height: 40px; }
/* 深底(照片上、深色板子上、深色段落)膠囊不用品牌色:白框,滑過刷半透明白 */
/* 深底「聯絡我們」白框:11-24 併進檔尾「按鈕系統」 */

/* ══ 11-23 Eric:全頁中文內文 18px(段落、清單、應用領域、型錄清單、聯絡說明;頁尾地址照舊 16) ══ */
.top-about__content, .top-alumi__body, .top-wedo__body, .qh-list li, .top-company__content, .top-recruit__content,
.qh-brands__body, .qh-fields, .qh-fields li, .qh-dl__link span:first-child, .aside-contact__content p { font-size: 18px; }

/* ══ 11-23 Eric:區塊標題一律用「產品介紹」那組(中文大字 70 + 英文一字小標),9 個區塊都套 ══ */
/* 深色段(公司簡介深底、陶瓷簡介照片)大字跟著段落變白 */
.top-about .c-title__en, .top-alumi .c-title__en { color: inherit; }
/* 公司簡介標題長,原站 nowrap 會超出欄寬:改成在「、」換行 */
.top-about__heading { white-space: normal; word-break: keep-all; }
/* 陶瓷簡介文字框原站 405 寬,「陶瓷軸承簡介」70px 放不下一行 */
.top-alumi__content { width: 480px; }

/* ── 區塊標題字級(11-23 Eric:中文大標太大、英文小標太小)──
   中文 70 → 52(−26%),英文 14 → 18(跟內文同大) */
.c-title--lg .c-title__en { font-size: clamp(30px, 8vw, 52px); }
.c-title--lg .c-title__ja { font-size: 18px; margin-top: .75rem; }
@media (max-width: 575px) { .c-title--lg .c-title__ja { font-size: 16px; } }

/* ── 全站字型(11-23 Eric):英文 Inter Tight、中文 Noto Sans TC ──
   原站很多元素各自寫了 Space Grotesk / Zen Kaku Gothic(日文),一次蓋掉 */
:root { --qh-font: "Inter Tight", "Noto Sans TC", sans-serif; }
html body, html body *:not(svg):not(svg *) { font-family: var(--qh-font) !important; }

/* ── 公司簡介:標題下、內文左邊壓淡字 Since 1999(11-23 Eric)── */
.qh-about__since { display: none; }
@media (min-width: 1024px) {
  .top-about .qh-about__since { display: block; grid-column: 1; grid-row: 2; align-self: start; margin: calc(57px - .144em) 0 0 -.04em;   /* 字墨頂對內文第一行字墨頂、字墨左緣對標題 */
    padding-right: clamp(20px, 3.5vw, 50px); font-weight: 300; font-size: clamp(64px, 7.4vw, 160px); line-height: 1;
    letter-spacing: -.02em; white-space: nowrap; color: rgba(255,255,255,.08); pointer-events: none; user-select: none; }
}

/* 淡字疊在內容後面;Since 1999 的字級和位置由 qh.js 算(11-24 定 G 版)*/
.top-about { overflow-x: clip; }
.top-about .top-about__wrapper > * { position: relative; z-index: 1; }

/* ── 公司簡介右上角:淡淡的軸承工程線稿,進畫面一筆筆畫出來(11-23 Eric)── 結構在 drawing.py */
.top-about__wrapper > * { position: relative; z-index: 1; }
.qh-drawing { display: none; }
@media (min-width: 1024px) {
  /* 可調:--qd-w 寬(螢幕寬 %)、--qd-x 離螢幕右緣(螢幕寬 %)、--qd-y 從標題頂往下(螢幕寬 %)、--qd-o 濃淡倍數;調整頁 tune-drawing.html */
  .qh-drawing { --qd-w: 34; --qd-x: -9.5; --qd-y: .5; --qd-o: .3636;   /* 11-23 Eric 拉的:大小 34%、左右 -9.5%、上下 0.5%、透明度 8%(主線 22% × .3636) */
    display: block; position: absolute; z-index: 0; right: calc(var(--qd-x) * 1vw); top: calc(clamp(70px, 10vw, 180px) + var(--qd-y) * 1vw);
    width: calc(var(--qd-w) * 1vw); height: auto; pointer-events: none; overflow: visible; }
}
.qh-drawing * { fill: none; }
.qh-drawing .v { stroke: rgba(255,255,255,calc(.22 * var(--qd-o, 1))); stroke-width: .25; }
.qh-drawing .t { stroke: rgba(255,255,255,calc(.14 * var(--qd-o, 1))); stroke-width: .15; }
.qh-drawing .cl line, .qh-drawing .cl circle { stroke: rgba(255,255,255,calc(.12 * var(--qd-o, 1))); stroke-width: .15; stroke-dasharray: 4 1 .6 1; }
.qh-drawing .tx text { fill: rgba(255,255,255,calc(.3 * var(--qd-o, 1))); stroke: none; font-family: "Inter Tight", sans-serif; font-weight: 300; font-size: 3px; }
.qh-drawing .tx .cap { font-size: 2px; letter-spacing: .25px; fill: rgba(255,255,255,calc(.22 * var(--qd-o, 1))); }
/* 描線:每條線 data-draw,--len = 實際長度(qh.js 量),--d = 開始時間 */
.qh-drawing [data-draw] { stroke-dasharray: var(--len, 400) var(--len, 400); stroke-dashoffset: var(--len, 400); }
.qh-drawing.is-drawing [data-draw] { stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.45, 0, .25, 1); transition-delay: var(--d); }
.qh-drawing .cl, .qh-drawing .tx { opacity: 0; }
.qh-drawing.is-drawing .cl { opacity: 1; transition: opacity .5s ease; }
.qh-drawing.is-drawing .tx { opacity: 1; transition: opacity .5s ease 1.35s; }

/* ── 陶瓷軸承簡介:文字塊墊毛玻璃(11-23 Eric;同日加大內距 40 → 56)── 字的位置不動(外推的量 = 內距) */
.top-alumi__content { position: relative; box-sizing: border-box; width: 592px; max-width: calc(100% + 112px); padding: 56px;
  margin: -56px -56px 24px auto;   /* 原站:靠右(margin-left:auto)、下方留 80 → 內距 56 + 外距 24 */
  border-radius: 16px; background: rgba(255,255,255,.38); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
@media (max-width: 1599.98px) { .top-alumi__content { margin-right: 0; } }   /* 版心沒固定寬時版邊外只剩 50,卡片右緣停在版邊 */
@media (max-width: 1279.98px) { .top-alumi__content { margin-bottom: -26px; } }   /* 原站這段下方留 30 */
@media (max-width: 1023px) { .top-alumi__content { width: auto; max-width: 560px; padding: 32px; margin: -32px 0 -2px auto; } }   /* 窄螢幕不外推,卡片對齊版邊、字往內縮 32 */
@media (max-width: 767.98px) { .top-alumi__content { margin-top: 16px; } }   /* 原站手機上方留 3rem = 內距 32 + 外距 16 */

/* 英文大標:漸層只鋪在字框內,最後一行 p、g 往下伸會被切 → 底下補一段讓漸層蓋到 */
.top-alumi__en { padding-bottom: calc(clamp(70px, 13vw, 140px) * .28); }
/* 背景照:往上移一點+捲動視差(照片比區塊高 30%,捲過時往上走 23%,qh.js 算) */
.top-alumi__bg { overflow: hidden; }
.top-alumi { --ab-s: 1.95; --ab-x: 0; --ab-y: -.06; }   /* 11-24 Eric 拉的:大小 130%、左右 0、上下 -6(--ab-s = 1.5 × 130%);拉桿頁 tune-bg.html */
.top-alumi__bg-img { height: 150%; transform-origin: 50% 50%; will-change: transform; }   /* 11-24 Eric「捲動加強」:130% → 150% */
@media (max-width: 575px) { .top-alumi__en__ln { font-size: 15.5vw; } }   /* 手機:最長一行 keeps going. 要放得進版心(原站下限 70px 會超出螢幕) */


/* ══ 11-24 按鈕系統(Eric 選:毛玻璃卡上 C 藍色實心、滑過 H2 由左往右刷過;提案頁 按鈕系統提案.html)══
   兩種角色 × 兩種底:主動作(聯絡我們)淺底藍實心 / 深底白框;次要(公司簡介、了解…、View all)淺底藍框 / 深底白框 70%。
   共用:高 44、全圓、字 16、內距 24(箭頭那側 20)、箭頭間距 8;滑過 = 底色由左往右刷滿 .45s。藍灰 #3E4C59 不再用在按鈕。 */
:root { --qh-blue-dark: #0627C4; }
.c-button, .l-header .l-header__gnav__link[href="#contact"] {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 16px; line-height: 1; text-decoration: none;
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  transition: background-size .45s cubic-bezier(.19, 1, .22, 1), color .3s ease, box-shadow .3s ease;
}
.c-button--arrow { padding-right: 20px; }
.c-button::before { display: none !important; }        /* 原站「從中間長出來」那層拿掉 */
.c-button:hover, .c-button:focus-visible,
.l-header .l-header__gnav__link[href="#contact"]:hover, .l-header .l-header__gnav__link[href="#contact"]:focus-visible { background-size: 100% 100%; }

/* 次要・淺底:藍框藍字 500,滑過刷滿藍、字變白 */
.c-button--outline { font-weight: 500; color: var(--qh-blue); box-shadow: inset 0 0 0 1px var(--qh-blue);
  background-color: transparent; background-image: linear-gradient(var(--qh-blue), var(--qh-blue)); }
.c-button--outline:hover, .c-button--outline:focus-visible { color: #fff; border: 0; }
/* 次要・深底:白框 70%、白字,滑過刷 16% 白、框變滿白 */
.\:is-dark .c-button--outline { border: 0; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  background-image: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)); }
.\:is-dark .c-button--outline:hover, .\:is-dark .c-button--outline:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px #fff; }
/* 毛玻璃卡上(陶瓷軸承簡介):C 藍色實心 700,滑過刷深藍 */
.top-alumi__content .c-button--outline { font-weight: 700; color: #fff; box-shadow: none;
  background-color: var(--qh-blue); background-image: linear-gradient(var(--qh-blue-dark), var(--qh-blue-dark)); }

/* 主動作・頁首「聯絡我們」:淺底藍實心白字 700,滑過刷深藍 */
.l-header .l-header__gnav__link[href="#contact"] { background-color: var(--qh-blue); background-image: linear-gradient(var(--qh-blue-dark), var(--qh-blue-dark)); box-shadow: none; }
.l-header .l-header__gnav__link[href="#contact"] .l-header__gnav__str { color: #fff; font-weight: 700; font-size: 16px; }
/* 主動作・深底(照片上、深色板子、深色段落):白框白字,滑過刷 16% 白 */
.l-header.qh-on-banner .l-header__gnav__link[href="#contact"],
.l-header.qh-on-board-dark .l-header__gnav__link[href="#contact"],
.l-header.\:is-dark .l-header__gnav__link[href="#contact"] { background-color: transparent; box-shadow: inset 0 0 0 1px #fff;
  background-image: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)); }

/* ══ 產品介紹(11-24 移到陶瓷簡介後面)══ */
/* 區塊上下留白跟公司簡介同一個值(原站只有 50) */
.top-company__wrapper { padding: clamp(70px, 10vw, 180px) 0; }
/* 線改成全站分隔線那款;第一列上面已有說明段撐著,不畫頂線 */
.top-company a.top-company__link { border-top-color: rgba(34, 37, 39, .12); border-bottom-color: rgba(34, 37, 39, .12); }
.top-company a.top-company__link:first-of-type { border-top: 0; }
/* 說明段一律從左欄線開始(原站平板以上靠右);11-24 Eric 標註「不要縮排」→ 拿掉原站首行縮排 */
.top-company__content { justify-self: start; margin-left: 0; text-indent: 0; }
@media (min-width: 1024px) {
  /* 說明段跟下面清單共用同一條欄線(原本靠右、欄距也不同) */
  .top-company__header { column-gap: 50px; }
}
/* 11-24 Eric 第二輪:「還是有點太高」「看全部產品的按鈕」「內文不用縮排」「箭頭外面加圓圈」「英文標題放在中文標題下面、文字樣式跟區塊英文標題一樣」 */
/* 每列:中文大字,英文放下面、樣式同區塊英文小標 */
.top-company a.top-company__link .top-company__link__content { flex-direction: column; align-items: flex-start; gap: 12px; }   /* 11-24 Eric 標註:英文上方空多一點(原 6) */
.top-company a.top-company__link .top-company__link__ja { margin-top: 0; font-size: 18px; font-weight: 500; line-height: 1.2; color: rgb(165, 167, 184); }
/* 箭頭外面一圈(44 正圓,跟按鈕同高);滑過整圈填品牌藍、箭頭變白 */
.top-company a.top-company__link .qh-arrow { box-sizing: border-box; width: 44px; height: 44px; padding: 13px; border: 1px solid var(--qh-blue, #0934F6);   /* 11-24 Eric 標註:「藍色框框」 */
  border-radius: 50%; color: var(--qh-blue, #0934F6); transition: background-color .3s, border-color .3s, color .3s; }
.top-company a.top-company__link:hover .qh-arrow { background-color: var(--qh-blue, #0934F6); border-color: var(--qh-blue, #0934F6); color: #fff; }
.top-company__more { margin-top: 30px; }
@media (max-width: 1023.98px) {
  /* 平板手機:縮圖|文字|圓圈箭頭 同一排(原站只有兩欄,圓圈會掉到下一行) */
  .top-company a.top-company__link { grid-template-columns: 120px 1fr auto; }
}
@media (max-width: 575.98px) { .top-company a.top-company__link { grid-template-columns: 70px 1fr auto; }
  .top-company a.top-company__link .top-company__link__ja { font-size: 16px; }   /* 跟區塊英文小標同斷點:手機才 16 */ }
@media (min-width: 1024px) {
  /* 壓成一屏:列高由 qh.js 照視窗高算(--qh-prow);每列內容左、圓圈箭頭右,上下置中 */
  .top-company a.top-company__link { grid-template-columns: 1fr auto; align-items: center; height: var(--qh-prow, 104px); padding: 0; }
  .top-company a.top-company__link .qh-arrow { margin-right: 0; }
  /* 說明段不錯開:第一行字墨頂對標題中文字墨頂;按鈕放標題下面,底對說明段最後一行字底 */
  .top-company__heading { grid-column: 1; grid-row: 1; align-self: start; }
  .top-company .top-company__content { grid-column: 2; grid-row: 1; margin-top: -7px; }
  /* 11-24 Eric 標註「移過去右邊」:按鈕放右欄最右邊(對清單右緣),底對說明段最後一行字底 */
  .top-company__more { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; margin: 0 0 15px; }
}
/* 產品五類是並列、沒有順序 → 拿掉原站的 #01〜#05 編號(精華 12) */
.top-company__link__content::before { content: none; display: none; }
/* 1024〜1239 右欄太窄,按鈕會壓到說明段 → 改放說明段下面、一樣靠右 */
@media (min-width: 1024px) and (max-width: 1239.98px) { .top-company__more { grid-row: 2; align-self: start; margin: 30px 0 0; } }
/* 11-24 Eric:「hover 的灰色塊把按鈕擋住了」→ 圓圈箭頭疊到灰色塊上面;「hover 的時候標題往右移一點」 */
.top-company a.top-company__link .qh-arrow { position: relative; z-index: 2; }
.top-company a.top-company__link .top-company__link__content { transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.top-company a.top-company__link:hover .top-company__link__content,
.top-company a.top-company__link:focus-visible .top-company__link__content { transform: translateX(16px); }
/* 11-24 Eric:「全部產品膠囊按鈕 預設改成實心藍」→ 同毛玻璃卡那顆:藍色實心白字 700,滑過由左往右刷深藍 */
.top-company__more .c-button--outline { font-weight: 700; color: #fff; box-shadow: none;
  background-color: var(--qh-blue); background-image: linear-gradient(var(--qh-blue-dark), var(--qh-blue-dark)); }

/* ══ 客製化軸承:四點做成圖示卡片(11-24 Eric:「那四點做成icon卡片」;右邊三個大連結拿掉)══ */
.top-wedo__wrapper { padding: clamp(70px, 10vw, 180px) 0; }   /* 區塊上下留白跟公司簡介、產品介紹同值 */
.qh-kcards { list-style: none; margin: clamp(50px, 3vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto; column-gap: 24px; row-gap: 24px; }
/* 每張卡:圖示、小標、內文三列用 subgrid,四張的小標、內文頂各自同一條線(小標換行也對齊) */
.qh-kcard { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 12px; align-content: start;
  padding: 40px; border-radius: 12px; background: #F4F5F7; }
.qh-kcard__icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--qh-blue, #0934F6); }   /* 圖示到小標 32 > 小標到內文 12 */
.qh-kcard__title { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.4; color: rgb(62, 76, 89); }
.qh-kcard__txt { position: relative; margin: 0; font-size: 18px; line-height: 1.8; }
/* 圖示進場一筆筆畫出來(捲回來重播),四張依序 */
.qh-kcard__icon path { stroke-dasharray: var(--len, 100); stroke-dashoffset: var(--len, 100); transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1); }
.qh-kcard.is-drawn .qh-kcard__icon path { stroke-dashoffset: 0; }
.qh-kcard:nth-child(2) .qh-kcard__icon path { transition-delay: .12s; }
.qh-kcard:nth-child(3) .qh-kcard__icon path { transition-delay: .24s; }
.qh-kcard:nth-child(4) .qh-kcard__icon path { transition-delay: .36s; }
@media (max-width: 1399.98px) { .qh-kcards { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, auto); } }   /* 1400 以下四欄太窄(小標會斷行、內文一行不到 10 字),改兩欄 */
@media (max-width: 575.98px) { .qh-kcards { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 16px; }
  .qh-kcard { grid-row: auto; grid-template-rows: auto auto auto; row-gap: 8px; padding: 24px; }
  .qh-kcard__icon { margin-bottom: 16px; } }
/* 11-24 Eric:方塊(cube)試過不要;「線條保持現在的粗細」→ 圖示回 44、不加底,線寬 1(44px 下畫出來約 1.8px,跟方塊版一樣粗) */
.qh-kcard__icon { stroke-width: 1; }
/* 11-24 Eric 標註「padding x」「一樣用 padding x」:段落之間只留一份標準留白 X = clamp(70px,10vw,180px)
   (陶瓷簡介→產品介紹就是 X;產品→客製化原本 X+X 疊兩份、客製化→應用原本 X+60)
   白底接白底的段落,後面那段不再加上方留白,由前一段的下方留白當間距 */
.top-wedo__wrapper, .top-recruit__wrapper { padding-top: 0; }

/* ══ 應用領域:九個領域圖卡輪播(11-24 Eric:照力軒那套、一次跳一張;左邊對版邊、右邊延伸到螢幕邊切卡;左右鈕+計數+進度條一組)══ */
.top-recruit { overflow-x: clip; }
/* 說明段排法同產品介紹:右欄、從欄線開始、拿掉原站首行縮排 */
.top-recruit__content { justify-self: start; margin-left: 0; text-indent: 0; }
@media (min-width: 1024px) {
  .top-recruit__header { column-gap: 50px; }
  .top-recruit .top-recruit__content { margin-top: -7px; }
}
.qh-apl { margin-top: 0; }   /* 說明段 → 卡片 = 標題組的下內距,跟產品介紹說明段 → 清單同一個距離 */
/* 卡片列:左緣 = 版邊,右邊伸到螢幕邊(margin-right 吃掉版心外那段),最後一張被切 */
.qh-apl__row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 440px); gap: 24px;
  margin-right: calc((100% - 100vw) / 2); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.qh-apl__row::-webkit-scrollbar { display: none; }
.qh-apl__card { scroll-snap-align: start; min-width: 0; }
.qh-apl__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #E6E8EC; }
.qh-apl__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .66s cubic-bezier(.19, 1, .22, 1); }
.qh-apl__t { margin: 20px 0 0; font-size: 22px; font-weight: 500; line-height: 1.4; color: rgb(62, 76, 89); transition: color .3s; }
.qh-apl__en { margin: 8px 0 0; font-size: 18px; font-weight: 500; line-height: 1.2; color: rgb(165, 167, 184); }   /* 同區塊英文小標 */
@media (hover: hover) {
  .qh-apl__card:hover .qh-apl__media img { transform: scale(1.06); }
  .qh-apl__card:hover .qh-apl__t { color: var(--qh-blue, #0934F6); }
}
/* 切換列一組:左鈕|01 ── 09|右鈕;圓鈕同產品清單(44、藍框藍箭頭、滑過填藍) */
.qh-rownav { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.qh-rownav__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--qh-blue, #0934F6); border-radius: 50%;
  background: transparent; color: var(--qh-blue, #0934F6); cursor: pointer; transition: background-color .3s, color .3s, transform .2s; }
.qh-rownav__btn .qh-arrow { width: 16px; height: 16px; }
.qh-rownav__btn--prev .qh-arrow { transform: rotate(180deg); }
.qh-rownav__btn:active { transform: scale(.95); }
@media (hover: hover) { .qh-rownav__btn:hover { background: var(--qh-blue, #0934F6); color: #fff; } }
.qh-rownav__count { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; color: rgb(165, 167, 184); }
.qh-rownav__count b { font-weight: 500; color: rgb(62, 76, 89); }
.qh-rownav__bar { position: relative; width: 80px; height: 1px; background: rgba(34, 37, 39, .12); overflow: hidden; }
.qh-rownav__bar i { position: absolute; inset: 0; background: var(--qh-blue, #0934F6); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
@media (max-width: 575.98px) {
  .qh-apl__row { grid-auto-columns: 78vw; gap: 16px; }
  .qh-apl__t { font-size: 20px; margin-top: 16px; }
  .qh-apl__en { font-size: 16px; }
  .qh-rownav { margin-top: 32px; }
}
/* 11-24 Eric:「應用領域的圖卡大小對齊上面的圖卡大小」→ 卡寬 = 客製化卡片寬(版心四欄、欄距 24;1400 以下兩欄同客製化),
   前四張剛好疊在客製化四張的正下方,第五張開始伸出版心被切。用容器寬單位 cqw 拿版心寬(卡片列本身伸到螢幕邊,不能用 %) */
.qh-apl { container-type: inline-size; }
.qh-apl__row { grid-auto-columns: calc((100cqw - 72px) / 4); }
@media (max-width: 1399.98px) { .qh-apl__row { grid-auto-columns: calc((100cqw - 24px) / 2); } }
@media (max-width: 575.98px) { .qh-apl__row { grid-auto-columns: 78vw; } }
/* 11-24 Eric 標註「文案拉長到兩格看看」:應用說明段 = 下面兩張卡寬(第 3 張左緣 → 第 4 張右緣)。
   標題組欄距改 24(同卡片欄距),右欄就剛好是兩張卡;拿掉 34em 限寬 */
@media (min-width: 1024px) { .top-recruit__header { column-gap: 24px; } }
.top-recruit .top-recruit__content { width: auto; max-width: none; justify-self: stretch; }   /* 原站寫死 width 400 */
/* 11-24 Eric 選 A:應用卡片改直式 3:4、字壓在照片下緣(跟上面客製化淺灰字卡分開:這區照片是主角)
   下緣墊一層由暗到透明的漸層讓白字讀得到;字 = 中文 22 白、英文 18 白 72%(深底字兩階) */
.qh-apl__card { position: relative; overflow: hidden; border-radius: 12px; }
.qh-apl__media { aspect-ratio: 3 / 4; border-radius: 0; }
.qh-apl__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 24, .62) 0%, rgba(14, 18, 24, .28) 28%, rgba(14, 18, 24, 0) 50%); pointer-events: none; }
.qh-apl__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 24px; }
.qh-apl__t { margin: 0; color: #fff; }
.qh-apl__en { color: rgba(255, 255, 255, .72); }
@media (hover: hover) { .qh-apl__card:hover .qh-apl__t { color: #fff; } }
@media (max-width: 575.98px) { .qh-apl__t { margin: 0; } .qh-apl__txt { padding: 0 20px 20px; } }
/* 直式卡在 1024〜1399 排兩欄會太高(1280 寬一張 578×771)→ 1024 以上一律四欄寬(1400 以上剛好對齊客製化;以下客製化是兩欄,不對齊) */
@media (min-width: 1024px) and (max-width: 1399.98px) { .qh-apl__row { grid-auto-columns: calc((100cqw - 72px) / 4); } }
/* 11-24 Eric:「順便壓一個淺灰底帶」→ 應用領域鋪淺灰底帶 #F4F5F7(同客製化卡片底)。
   下一段技術資料原站底是淡紫灰 #f9f8ff,跟這條灰差一點點 → 換成同一個灰,兩段接成一條灰帶;
   段落間距照「只留一份 X」:灰帶頂內距 X、應用 → 技術資料 X(技術資料上內距歸 0) */
.top-recruit { background: #F4F5F7; }
.top-recruit .top-recruit__wrapper { padding-top: clamp(70px, 10vw, 180px); padding-bottom: clamp(70px, 10vw, 180px); }
.aside-column__wrapper { background-color: #F4F5F7; padding-top: 0; }

/* ══ 11-24 首頁後段重排(Eric):應用(灰)→ 品牌 logo 帶(白)→ 最新消息(白、條列)→ 聯絡我們(灰)→ 頁尾(深)
   段落間距照「只留一份 X」:換底色的段落上下各 X;白接白,後一段上方不留 */
:root { --qh-x: clamp(70px, 10vw, 180px); --qh-band: #F4F5F7; --qh-line: rgba(34, 37, 39, .12); --qh-ink: rgb(62, 76, 89); --qh-ink2: rgb(165, 167, 184); }

/* ── 品牌 logo 帶:左「獨家代理 TOSHIN」固定,右邊經銷品牌一排慢慢往左流(滑過停),兩端淡出 ── */
.qh-logos { padding: var(--qh-x) 0; }
.qh-logos__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 48px; }
.qh-logos__lead { display: flex; align-items: center; gap: 20px; padding-right: 48px; border-right: 1px solid var(--qh-line); }
.qh-logos__label { font-size: 14px; font-weight: 500; color: var(--qh-ink2); white-space: nowrap; }
.qh-logos__toshin { height: 56px; width: auto; display: block; }
.qh-logos__marquee { display: flex; align-items: center; gap: 32px; min-width: 0; }
.qh-logos__view { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.qh-logos__track { display: flex; align-items: center; gap: 64px; width: max-content; margin: 0; padding: 0; list-style: none; animation: qh-logos 48s linear infinite; }
.qh-logos__view:hover .qh-logos__track { animation-play-state: paused; }
@keyframes qh-logos { to { transform: translateX(calc(-50% - 32px)); } }
.qh-logos__item { flex: none; display: flex; align-items: center; height: 40px; }
.qh-logos__item img { height: 28px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.qh-logos__item:hover img { filter: none; opacity: 1; }
.qh-logos__txt { font-family: "Inter Tight", sans-serif; font-size: 24px; font-weight: 600; letter-spacing: .02em; color: var(--qh-ink2); }
@media (prefers-reduced-motion: reduce) { .qh-logos__track { animation: none; } }
@media (max-width: 1023.98px) {
  .qh-logos__inner { grid-template-columns: 1fr; row-gap: 32px; }
  .qh-logos__lead { padding-right: 0; border-right: 0; }
  .qh-logos__marquee { flex-direction: column; align-items: flex-start; gap: 16px; }
  .qh-logos__view { width: 100%; }
}

/* ── 最新消息:左標題+看全部,右邊條列(日期|分類|標題|箭頭),線只在項目之間和最後一條 ── */
.qh-news { padding: 0 0 var(--qh-x); }
.qh-news__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
.qh-news__head { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.qh-news__list { list-style: none; margin: 0; padding: 0; }
.qh-news__list li + li .qh-news__link { border-top: 1px solid var(--qh-line); }
.qh-news__list li:last-child .qh-news__link { border-bottom: 1px solid var(--qh-line); }
.qh-news__link { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; column-gap: 24px; padding: 24px 0; color: var(--qh-ink); text-decoration: none; }
.qh-news__list li:first-child .qh-news__link { padding-top: 0; }
.qh-news__date { font-family: "Inter Tight", sans-serif; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--qh-ink2); }
.qh-news__tag { font-size: 14px; line-height: 1; padding: 6px 12px; border-radius: 999px; background: var(--qh-band); color: var(--qh-ink); white-space: nowrap; }
.qh-news__t { font-size: 18px; line-height: 1.6; transition: color .3s; }
.qh-news__link .qh-arrow { color: var(--qh-blue, #0934F6); transition: transform .3s cubic-bezier(.19, 1, .22, 1); }
@media (hover: hover) {
  .qh-news__link:hover .qh-news__t { color: var(--qh-blue, #0934F6); }
  .qh-news__link:hover .qh-arrow { transform: translateX(6px); }
}
@media (max-width: 1023.98px) {
  .qh-news__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .qh-news__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
@media (max-width: 575.98px) {
  .qh-news__link { grid-template-columns: auto 1fr auto; row-gap: 8px; }
  .qh-news__t { grid-column: 1 / 3; grid-row: 2; }
  .qh-news__link .qh-arrow { grid-column: 3; grid-row: 1 / 3; }
}

/* ── 聯絡我們:淺灰帶;後面那排流動大字原站用淡紫灰,灰底上改深一階灰 ── */
.aside-contact__wrapper { background: var(--qh-band); padding-top: var(--qh-x); padding-bottom: var(--qh-x); }
.aside-contact__link__en { color: #E6E8EC; }

/* ── 頁尾:收成正常高度(原站左右兩欄各撐滿一屏);上排公司資訊|選單|型錄下載,下面招牌大字 TOSHIN + 浮在旁邊的 3D 軸承 ── */
.qh-foot { padding: 96px 0 32px; background: var(--color-footer-bg, #222527); color: #fff; }
.qh-foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr; column-gap: 24px; row-gap: 48px; align-items: start; }
.qh-foot__addr { margin-top: 32px; font-style: normal; font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .72); }
.qh-foot__addr a { color: inherit; text-decoration: none; }
.qh-foot__h { margin: 0 0 20px; font-family: "Inter Tight", sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .5); }
.qh-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qh-foot__link { color: #fff; font-size: 16px; text-decoration: none; transition: opacity .3s; }
.qh-foot__link:hover { opacity: .6; }
.qh-foot__pdf { margin-left: 8px; font-family: "Inter Tight", sans-serif; font-size: 12px; color: rgba(255, 255, 255, .5); }
/* 招牌大字:跟開場 TOSHIN 同一套字(Inter Tight 600、字距 -.03em),寬度吃滿版心左邊約 3/4;3D 軸承浮在右邊 */
.qh-foot__mark { position: relative; display: flex; align-items: flex-end; margin-top: 128px; }
.qh-foot__word { display: block; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: clamp(88px, 17vw, 330px); line-height: .78; letter-spacing: -.03em; color: #fff; margin-left: -.05em; }
.qh-foot__gl { position: absolute; right: 0; bottom: -22%; width: min(26%, 460px); aspect-ratio: 1; pointer-events: none; }   /* 不壓到上排型錄欄 */
.qh-foot__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.qh-foot .qh-copyright { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .5); }
@media (max-width: 1023.98px) { .qh-foot__top { grid-template-columns: 1fr 1fr; } .qh-foot__co { grid-column: 1 / -1; } }
@media (max-width: 575.98px) {
  .qh-foot { padding-top: 64px; }
  .qh-foot__mark { flex-direction: column; align-items: flex-start; margin-top: 56px; }
  .qh-foot__gl { position: relative; right: auto; bottom: auto; width: 60%; align-self: flex-end; margin-top: -24px; }
}

/* ══ 11-24 V6:Eric 03:56〜04:02 標註(後段第二輪)══ */
/* 最新消息「看全部消息」改實心藍(同看全部產品那顆) */
.qh-news__more .c-button--outline { font-weight: 700; color: #fff; box-shadow: none;
  background-color: var(--qh-blue); background-image: linear-gradient(var(--qh-blue-dark), var(--qh-blue-dark)); }
/* 消息每列箭頭加圓圈(同產品清單:44 正圓、藍框藍箭頭,滑過整圈填藍、箭頭變白) */
.qh-news__link .qh-arrow { box-sizing: border-box; width: 44px; height: 44px; padding: 13px; border: 1px solid var(--qh-blue, #0934F6); border-radius: 50%;
  color: var(--qh-blue, #0934F6); transition: background-color .3s, color .3s; }
@media (hover: hover) { .qh-news__link:hover .qh-arrow { transform: none; background-color: var(--qh-blue, #0934F6); color: #fff; } }
.qh-news__link { padding: 16px 0; }                       /* 列高 = 圓圈 44 + 上下 16(原本字高 + 24) */

/* 品牌帶:標籤字 16;跟最新消息之間加一條分隔線(版邊到版邊),線上下各一份 X */
.qh-logos__label { font-size: 16px; }
.qh-logos { padding-bottom: 0; }
.qh-logos__inner::after { content: ""; grid-column: 1 / -1; height: 1px; margin-top: var(--qh-x); background: var(--qh-line); }   /* 線當格子裡的一列,左右停在版邊(容器本身滿版) */
@media (max-width: 1023.98px) { .qh-logos__inner::after { margin-top: calc(var(--qh-x) - 32px); } }   /* 窄螢幕有 32 的列距 */
.qh-news { padding-top: var(--qh-x); }

/* 聯絡我們:說明段不縮排,放右欄、從中線開始(跟上面最新消息的條列同一條欄線) */
.aside-contact__content { width: auto; max-width: none; margin-left: 0; text-indent: 0; }
@media (min-width: 1024px) {
  .aside-contact__header { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .aside-contact__header > * { grid-column: auto; width: auto; }
  .aside-contact__content { margin-top: -7px; }            /* 第一行字墨頂對大標字墨頂(同產品介紹) */
}
/* 跑馬燈那排:高度收成字本身的高(原站 40vh 下面多空一大段),頁尾前只留一份 X(從字墨底量) */
.aside-contact { --qh-mq: clamp(100px, 30vw, 200px); }
.aside-contact__link { height: auto; }
.aside-contact__link__en__wrapper { position: relative; }
.aside-contact__link__en { position: relative; font-size: var(--qh-mq); line-height: 1; }
.aside-contact__wrapper { padding-bottom: calc(var(--qh-x) - .124 * var(--qh-mq)); }   /* 行框底比字墨底多 .124 字高(Inter Tight 500 量的) */
/* 圓圈:滑過填品牌藍、箭頭變白;跟著游標跑(qh.js),感應範圍只在跑馬燈那排 */
.aside-contact__link__circle { top: 0; right: auto; left: 0; transform: translate(var(--cx, 0px), var(--cy, 0px)); color: var(--qh-blue, #0934F6); will-change: transform;
  transition: border-color .4s; }
.aside-contact__link__circle::before { background-color: var(--qh-blue, #0934F6); }
.aside-contact__link__circle .qh-arrow { position: relative; z-index: 1; transition: color .4s; }
.aside-contact__link:hover .aside-contact__link__circle, .aside-contact__link:focus-visible .aside-contact__link__circle { border-color: var(--qh-blue, #0934F6); color: #fff; }

/* 頁尾:logo 放大(圖 40 → 56、字 16 → 20);最下面分隔線拿掉;招牌大字改深灰(比頁尾底淺一點) */
.qh-foot .qh-logo { gap: 16px; }
.qh-foot .qh-logo img { width: 56px; height: 56px; }
.qh-foot .qh-logo__name { font-size: 20px; }
.qh-foot__bottom { border-top: 0; padding-top: 0; }
.qh-foot__word { color: #30343a; }

/* 客製化軸承:第四張卡右邊壓一張淡灰工程線稿(軸承座 UCP204),從螢幕右緣吃掉一截;結構在 drawing.py pillow_svg() */
.top-wedo { position: relative; overflow-x: clip; }
.qh-drawing--block { display: none; }
@media (min-width: 1024px) {
  .qh-drawing--block { --qd-w: 34; --qd-x: -12; --qd-y: 0; --qd-o: 1;
    display: block; position: absolute; z-index: 2; right: calc(var(--qd-x) * 1vw); top: auto; bottom: calc(clamp(70px, 10vw, 180px) - 6vw + var(--qd-y) * 1vw);
    width: calc(var(--qd-w) * 1vw); height: auto; pointer-events: none; overflow: visible; mix-blend-mode: multiply; }
}
.qh-drawing--block .v { stroke: rgba(34, 37, 39, calc(.2 * var(--qd-o, 1))); }
.qh-drawing--block .t { stroke: rgba(34, 37, 39, calc(.13 * var(--qd-o, 1))); }
.qh-drawing--block .cl .hd { stroke-dasharray: 1.4 .8; }   /* 隱藏線(螺栓孔)用短虛線 */
.qh-drawing--block .cl line, .qh-drawing--block .cl circle { stroke: rgba(34, 37, 39, calc(.12 * var(--qd-o, 1))); }
.qh-drawing--block .tx text { fill: rgba(34, 37, 39, calc(.3 * var(--qd-o, 1))); }
.qh-drawing--block .tx .cap { fill: rgba(34, 37, 39, calc(.22 * var(--qd-o, 1))); }

/* ══ 11-24 15:23 Eric 熱鍵三處 ══ */
/* ① 「線稿放在圖卡下方」→ 軸承座線稿退到卡片底下(卡片淺灰底蓋住重疊那段),不再疊在卡片上面 */
.top-wedo__wrapper { position: relative; z-index: 1; }
@media (min-width: 1024px) { .qh-drawing--block { z-index: 0; mix-blend-mode: normal; } }

/* ② 「這個如果做一個軸承在自轉按鈕」→ 圓圈裡畫一顆正面軸承線稿(qh.js 產生):外框 = 外圈外緣,珠子一直繞,箭頭在軸孔正中;
   滑過:整顆填品牌藍,線變白、珠子跟著填藍(蓋住保持架那條線),轉速加快 */
.aside-contact__link__circle.is-bearing { overflow: hidden; }
.qh-cbear { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.qh-cbear__l { fill: none; stroke: rgba(34, 37, 39, .22); stroke-width: 1px; vector-effect: non-scaling-stroke; transition: stroke .4s, fill .4s; }
.qh-cbear__ball { fill: #fff; stroke: rgba(34, 37, 39, .3); }
.qh-cbear__cage { stroke-dasharray: 3 3; }
.aside-contact__link:hover .qh-cbear__l, .aside-contact__link:focus-visible .qh-cbear__l { stroke: rgba(255, 255, 255, .5); }
.aside-contact__link:hover .qh-cbear__ball, .aside-contact__link:focus-visible .qh-cbear__ball { fill: var(--qh-blue, #0934F6); stroke: rgba(255, 255, 255, .8); }
.aside-contact__link__circle .qh-arrow { z-index: 2; }

/* ③ 「每個字 slide up 的動效 參考之前其他網站頁尾寫法」→ 照承泰頁尾大字:字母藏在字底線下(只裁下緣,上面不裁),
   大字露出六成就一個接一個升起(每個 .95 秒、間隔 .06 秒,整組約 1.25 秒);整個離開畫面才收回,捲回來重播 */
.qh-foot__word { clip-path: inset(-.4em -.2em 0 -.2em); }
.qh-fl { display: inline-block; transform: translateY(1em); transition: transform .5s cubic-bezier(.4, 0, 1, 1); }
.qh-foot__word.is-in .qh-fl { transform: none; transition: transform .95s cubic-bezier(.2, .85, .3, 1) calc(var(--i) * .06s); }
@media (prefers-reduced-motion: reduce) { .qh-fl { transform: none !important; transition: none !important; } }

/* 11-24 15:31 軸承按鈕照真實結構:珠子兩端被套圈蓋住(qh.js 用環形 clipPath);倒角線比輪廓線淡一階,鉚釘實心 */
.qh-cbear__ch { stroke: rgba(34, 37, 39, .12); }
.qh-cbear__cage { stroke-dasharray: none; }
.qh-cbear__rivet { fill: rgba(34, 37, 39, .3); stroke: none; }
.aside-contact__link:hover .qh-cbear__ch, .aside-contact__link:focus-visible .qh-cbear__ch { stroke: rgba(255, 255, 255, .28); }
.aside-contact__link:hover .qh-cbear__rivet, .aside-contact__link:focus-visible .qh-cbear__rivet { fill: rgba(255, 255, 255, .8); stroke: none; }

/* 11-24 15:40 Eric 熱鍵「窄螢幕的時候 線圖都被圖卡遮住了 線圖主要是要填充圖卡上方的空白 應該縮放線圖的 軸心原點應該是線圖的最右上角」
   → 原本用 bottom 從段落底往上定位,螢幕變窄時卡片變高、線稿整個掉到卡片後面;
   改成用 top 定位(右上角固定在 2056 寬時的位置,全部用 vw),線稿以右上角為原點等比縮放,永遠從卡片上方那塊空白長出來 */
@media (min-width: 1024px) {
  .qh-drawing--block { top: calc(-4.6vw + var(--qd-y) * 1vw); bottom: auto; }
}
/* 11-24 Eric「卷到頁尾的時候 整個頁尾沒有定死 下方露出白色」→ 藏在字底下的字母雖然被 clip-path 裁掉,仍把頁面撐長(2056 多 307px);
   改用 overflow-y: clip(裁掉的部分不算頁面高度)。字框上緣在大寫字頂上方約 4px,不會裁到字 */
.qh-foot__word { overflow-y: clip; }

/* 11-24 16:32 Eric 熱鍵「從現有圖片素材選一張 壓淡彩色背景」(框的是最新消息左半、看全部消息下面那塊空白)
   → 挑首頁還沒用過的藍色塑膠齒輪(IMG20260804150510,去背成 gear-bg-1400.webp,藍 = 品牌色),
   照淡背景照規矩:從下面聯絡我們那段的交界直接長出來(下緣不淡、被交界切掉),左邊讓螢幕吃掉一截,往上淡出;疊在文字後面 */
@media (min-width: 1024px) {
  .qh-news { position: relative; }
  .qh-news > .container { position: relative; z-index: 1; }
  .qh-news::before { content: ""; position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 50%; pointer-events: none;
    background: url(/assets/qh/img/gear-bg-1400.webp) no-repeat left -6vw bottom -9vw / 31vw auto; opacity: .16;
    -webkit-mask-image: linear-gradient(to bottom, transparent 38%, #000 82%); mask-image: linear-gradient(to bottom, transparent 38%, #000 82%); }
}

/* 11-24 16:32 試過「說明上緣對齊英文小標下緣」(margin-top 77),Eric 16:5x 退回 → 維持對齊中文大標上緣(上面的 −7px) */

/* 11-24 16:36 Eric 熱鍵「hover樣式跟產品的表格對齊」→ 最新消息每列滑過 = 產品表格那套:
   整列淡灰塊(#fbfbfd)從下往上長出來(離開往上收)、內容往右移 16px、圓圈填藍箭頭變白;標題不再變藍(產品表格標題不變色)。
   第一列原本上內距 0(字頂對齊左欄),灰塊會貼著字 → 改成每列上下 16 一樣,清單整個往上提 16 抵掉,字的位置不變 */
.qh-news__link { position: relative; }
.qh-news__link::before { content: ""; position: absolute; z-index: 0; inset: 0; background-color: #fbfbfd; transform: scaleY(0); transform-origin: top center;
  transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.qh-news__link > * { position: relative; z-index: 1; }
.qh-news__date, .qh-news__tag, .qh-news__t { transition: transform .5s cubic-bezier(.19, 1, .22, 1), color .3s; }
.qh-news__list li:first-child .qh-news__link { padding-top: 16px; }
.qh-news__list { margin-top: -16px; }
@media (hover: hover) {
  .qh-news__link:hover::before, .qh-news__link:focus-visible::before { transform: scaleY(1); transform-origin: bottom center; }
  .qh-news__link:hover .qh-news__date, .qh-news__link:hover .qh-news__tag, .qh-news__link:hover .qh-news__t,
  .qh-news__link:focus-visible .qh-news__date, .qh-news__link:focus-visible .qh-news__tag, .qh-news__link:focus-visible .qh-news__t { transform: translateX(16px); }
  .qh-news__link:hover .qh-news__t { color: var(--qh-ink); }
}
/* 11-24 16:36 Eric 熱鍵「換一個看起來比較熱鬧的」→ 齒輪換成滿版米色塑膠軸承(Gemini_Generated_Image_4d9pk,news-bg-1600.webp),整張鋪滿那塊空白:
   下緣貼聯絡我們交界不淡、左邊出血,往上、往右淡出 */
@media (min-width: 1024px) {
  .qh-news::before { background: url(/assets/qh/img/news-bg-1600.webp) no-repeat left top / cover; opacity: .4;   /* 11-24 Eric「透明度減少一倍 讓他深一點」.2→.4 */ width: 52%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 78%), linear-gradient(to right, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 30%, #000 78%), linear-gradient(to right, #000 55%, transparent 100%); mask-composite: intersect; }
}

/* 11-24 V6 Eric「開場載入動畫改成先畫logo軸承線稿 最後再淡入填色 藍色字最後進來」:
   線稿 = 淺灰 1px 細線(畫在深色遮罩上);時間軸還沒跑之前,填色先藏、線先收起來,避免一進站先閃一下完整 logo */
.qh-intro-lines circle { stroke: rgba(233, 236, 238, .7); stroke-width: 1px; vector-effect: non-scaling-stroke; }   /* 收起狀態寫在元素屬性上(CSS 會蓋過動畫改的屬性) */
.qh-intro-logo [data-qh-fill] { opacity: 0; }

/* 11-24 16:48 Eric 熱鍵(手機 375)「兩句的間距拉開 太近了」→ 同一排兩個特點詞中間原本 16px(各退 8),改成各退 .8em(375 寬約 36px) */
@media (max-aspect-ratio: 4/5) {
  .qh-word--nw, .qh-word--sw { margin-left: calc(8px - .8em); }
  .qh-word--ne, .qh-word--se { margin-left: calc(.8em - 8px); }
}

/* ══ 11-24 V6 手機漢堡選單改 TBI 款(Eric「背景還留著對標網站的logo 改成承泰和tbi那樣的menu選單」)══
   照 TBI tbi.css .tbi-menu:白底整片;左上 logo(公司名深字)、右上 X;大項一列一列 20px、列與列之間細線、最後一列也有線,
   第一列上面不畫線、跟頁首隔一段(承泰 ④ 同款);右邊藍箭頭;下面一顆主動作膠囊「撥打電話」(品牌藍實心、字 700)+ 電話、LINE。
   漢堡鈕照 TBI 兩條線(1.5px、間距 7),打開變正 X(±45°)。 */
.l-drawer__bg { background-color: #fff; }
.l-drawer__bg__img { display: none; }
.l-drawer .qh-logo__name { color: var(--qh-ink); }
.l-drawer__hamburger .hamburger__bar::before, .l-drawer__hamburger .hamburger__bar { background-color: var(--qh-ink); }
.l-drawer .modal__container { display: flex; flex-direction: column; }
.l-drawer__container { display: block; align-items: stretch; }
.l-drawer .l-drawer__content { width: 100%; margin: 0; padding: 0; }
.l-drawer .l-drawer__nav__wrapper { display: block; }
.l-drawer .l-drawer__nav { margin-top: 40px; }
.l-drawer .l-drawer__nav__list { margin: 0; }
.l-drawer .l-drawer__nav__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0;
  border-bottom: 1px solid var(--qh-line); color: var(--qh-ink); font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: .05em; }
.l-drawer .l-drawer__nav__link .qh-arrow { flex: none; color: var(--qh-blue, #0934F6); }
.l-drawer .l-drawer__nav__str::after, .l-drawer .l-drawer__nav__str::before { content: none; }
.l-drawer .qh-dmenu__extra { margin-top: 0; padding: 40px 0 56px; color: var(--qh-ink2); text-align: left; }
.qh-dmenu__call { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 999px;
  background-color: var(--qh-blue, #0934F6); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .05em; }
.qh-dmenu__call:hover, .qh-dmenu__call:focus, .qh-dmenu__call:active { color: #fff; background-color: var(--qh-blue-dark, #0627C4); }
.qh-dmenu__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; font-size: 16px; line-height: 1.5; letter-spacing: .05em; }
/* 漢堡鈕:三條 → TBI 兩條線,打開變正 X */
.hamburger__bar { height: 1.5px; }
.hamburger__bar:not(:first-child, :last-child) { display: none; }
.hamburger__bar:first-child { transform: translateY(-3.5px); }
.hamburger__bar:last-child { transform: translateY(3.5px); }
.hamburger[aria-expanded=true] .hamburger__bar:first-child { transform: rotate(-45deg); }
.hamburger[aria-expanded=true] .hamburger__bar:last-child { transform: rotate(45deg); }

/* 11-24 RWD 檢查:1024×768 這類矮筆電,產品列被壓成 89 高(qh.js 塞一屏),標題卻還是 43px → 字貼著分隔線。
   標題字級跟列高等比:列高 112 時 43(跟大螢幕一樣不變),壓到 89 時約 34(精華 23:放不下縮展示大字,不縮內文) */
@media (min-width: 1024px) {
  .top-company a.top-company__link .top-company__link__en { font-size: min(43px, calc(var(--qh-prow, 112px) * .384)); }
}

/* 11-24 RWD 檢查(手機 375):首屏英文小標換行時把「1999」單獨留在第二行 → 「— Since 1999」綁成一組,要斷只斷在破折號前 */
.qh-nowrap { white-space: nowrap; }
/* 手機、平板(觸控)可點的地方至少 44 高(精華 25):頁尾選單、型錄、首屏輪播圓點、聯絡電話 → 用看不見的 ::after 把點擊範圍上下撐到 44,版面不動 */
@media (pointer: coarse) {
  .qh-foot__link, .qh-banner__dot, .aside-contact__content a, .qh-foot a[href^="tel"] { position: relative; }
  .qh-foot__link::after, .aside-contact__content a::after, .qh-foot a[href^="tel"]::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
  .qh-banner__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}

/* ══ 11-24 16:49〜16:53 Eric 手機(375)熱鍵五處 ══ */
/* ① 「文字顏色不對 要跟桌機版一樣」:陶瓷軸承簡介卡片,手機版標題、內文被原站寫成白字 → 跟桌機一樣深灰(英文小標原本就是淡灰) */
.top-alumi .top-alumi__heading .c-title__en, .top-alumi .top-alumi__body { color: rgb(62, 76, 89); }
/* ② 「logo之間間距小一點」:品牌帶 logo 間距手機 64 → 40 */
@media (max-width: 767.98px) { .qh-logos__track { gap: 40px; } }
/* ③ 「膠囊跑版了 拉太長」:窄版消息列分類膠囊落在 1fr 那欄被撐滿 → 只包住字 */
.qh-news__tag { justify-self: start; }
/* ④ 「放在news下方」:單欄排法時「看全部消息」從標題旁移到消息清單下面(標題 → 清單 → 按鈕,間距同標題到清單 40) */
@media (max-width: 1023.98px) {
  .qh-news__head { display: contents; }
  .qh-news__heading { order: 1; }
  .qh-news__list { order: 2; }
  .qh-news__more { order: 3; justify-self: start; }
}
/* ⑤ 「不要壓到toshin大字 / toshin大字左右邊要對齊系統左右padding值 / 3D模型放大字下方 要有padding」(手機):
   大字字墨寬 = 版心寬(Inter Tight 600、字距 −.03em,字墨寬 3.3632em、字墨左緣在 .0209em 量的);3D 不再往上疊(原本 −24),放到大字下面隔 32 */
@media (max-width: 575.98px) {
  .qh-foot__word { font-size: calc((100vw - 40px) / 3.3833); margin-left: -.0209em;   /* 實測字母拆開後字墨寬 3.3833em(畫面量 20→355) */ }
}
/* 字母拆成一個個 span 後會換行(寬度剛好卡版心時斷成 TOSHI/N)→ 一律不換行 */
.qh-foot__word { white-space: nowrap; }
@media (max-width: 575.98px) {
  .qh-foot__gl { margin-top: 32px; }
}

/* 11-24 Eric「那個since 1999可以放在按鈕下面啊」:手機(575 以下)英文小標只留材質三項,「Since 1999」移到輪播小橫線下面(同一款眉標字,隔 16);桌機一行放得下,不動 */
.qh-banner__since { display: none; }
@media (max-width: 575px) {
  .qh-banner__en .qh-nowrap { display: none; }
  .qh-banner__since { display: block; margin: 16px 0 0; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 14px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
}
