/* Shared portal foundation; isolated from Japanese inner pages. */
:root{--navy:#2f4d6a;--deep:#243d56;--brand:#936b7b;--ink:#223347;--muted:#5a6c7d;--line:#d6e0ea;--gold:#936b7b;--ease:cubic-bezier(.2,.7,.3,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-size:16px;line-height:1.8}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}h1,h2,h3,p{margin-top:0}a:focus-visible{outline:2px solid var(--navy);outline-offset:4px}.skip{position:fixed;top:-80px;left:16px;z-index:30;background:white;padding:10px 15px}.skip:focus{top:12px}
/* ==========================================================================
   首頁入口 — 一個螢幕高，不捲動
   風格走簡潔秀氣：細線、留白、小字距，動態只做淡入與上浮，不做花俏效果。
   只在 body.is-portal 生效，不影響其餘 31 頁。
   ========================================================================== */

body.is-portal{
  margin:0;
  min-height:100svh;
  display:grid;
  place-items:center;
  background:
    radial-gradient(1100px 620px at 50% -10%, #FFFFFF 0%, #F7F8FB 45%, #F2F3F6 100%);
  color:var(--ink);
  /* 入口頁不捲動；內容真的放不下時才讓它捲 */
  overflow:hidden}
@media (max-height:660px),(max-width:520px){
  body.is-portal{overflow:auto;place-items:start center}}

.portal{width:100%;padding:clamp(1.8rem,5vh,3.4rem) 1.5rem}
.portal-inner{
  max-width:880px;margin:0 auto;text-align:center;
  display:flex;flex-direction:column;align-items:center}

/* ---- 標誌與公司名 ---- */
.portal-brand{
  display:inline-flex;align-items:center;gap:.85rem;text-decoration:none;
  margin-bottom:clamp(1.4rem,3.4vh,2.2rem)}
.portal-brand img{width:auto;height:clamp(62px,9vh,86px);display:block}
.portal-brand span{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.portal-brand b{font-size:clamp(1.15rem,2.4vw,1.45rem);font-weight:800;
  color:var(--navy);letter-spacing:.09em}
.portal-brand i{font-style:normal;font-size:.6rem;letter-spacing:.24em;
  color:var(--muted);font-weight:600;margin-top:.3rem}

/* ---- 標題 ---- */
.portal-eyebrow{
  margin:0 0 .9rem;font-size:.66rem;letter-spacing:.26em;font-weight:700;
  color:var(--brand)}
.portal-title{
  margin:0;font-size:clamp(1.7rem,4.4vw,2.9rem);line-height:1.5;
  font-weight:800;letter-spacing:.01em;color:var(--ink)}
.portal-sub{
  margin:1rem 0 0;font-size:clamp(.82rem,1.6vw,.95rem);
  letter-spacing:.14em;color:var(--muted)}

/* 標題下方一道細線，秀氣感來自這種地方 */
/* 細線改由 .portal-rule 取代，見下方裝飾元素 */

/* ---- 五個去處 ---- */
/* 六格排 3x2，不會留空位 */
.portal-grid{
  margin-top:clamp(1.4rem,3.4vh,2.2rem);
  display:grid;gap:.8rem;width:100%;
  grid-template-columns:repeat(3,minmax(0,1fr))}
@media (min-width:1080px){.portal-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:520px){.portal-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}}

.portal-item{
  --ease:cubic-bezier(.2,.7,.3,1);
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  padding:clamp(1rem,2.6vh,1.5rem) .6rem;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  text-decoration:none;color:var(--ink);
  box-shadow:0 1px 2px rgba(23,33,46,.04);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),
             border-color .3s ease,color .3s ease}
.portal-item:hover{
  transform:translateY(-4px);border-color:transparent;color:var(--navy);
  box-shadow:0 4px 10px -4px rgba(28,31,135,.18),
             0 20px 36px -22px rgba(28,31,135,.4)}
.portal-item:active{transform:translateY(-1px)}

.portal-ico{color:var(--navy);transition:color .3s ease,transform .45s var(--ease)}
.portal-ico svg{width:30px;height:30px;display:block}
.portal-item:hover .portal-ico{color:var(--brand);transform:translateY(-2px)}
.portal-zh{font-size:.95rem;font-weight:700;letter-spacing:.06em}
.portal-en{font-size:.56rem;letter-spacing:.2em;color:var(--muted);font-weight:600}

/* ---- 頁尾一行 ---- */
.portal-foot{
  margin:clamp(1.5rem,3.6vh,2.4rem) 0 0;
  font-size:.74rem;letter-spacing:.06em;color:var(--muted)}
.portal-foot a{color:var(--muted);text-decoration:none;
  border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.portal-foot a:hover{color:var(--navy);border-bottom-color:var(--line)}

/* ==========================================================================
   進場序列
   分六拍，總長約 2.2 秒。用 CSS 動畫而不是 JS：入口頁只有一屏，
   不需要捲動偵測，JS 沒載入時也該看得到完整畫面。

   1  底層光暈由中央擴散
   2  標誌由小放大、從模糊收斂成清晰，帶一點回彈
   3  公司名由左往右掀開
   4  英文小標逐字浮現
   5  主標兩行各自被遮罩掀開（外層 overflow:hidden，內層從下推上）
   6  五張卡以 3D 傾斜翻正，依序進場
   ========================================================================== */

/* 1 ─ 底層光暈 */
body.is-portal::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(760px 560px at 50% 42%,
    rgba(28,31,135,.09) 0%, rgba(28,31,135,.03) 42%, transparent 70%);
  opacity:0;transform:scale(.72);
  animation:bloom 1.5s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes bloom{
  from{opacity:0;transform:scale(.72)}
  60%{opacity:1}
  to{opacity:1;transform:scale(1)}}
.portal{position:relative;z-index:1}

/* 2 ─ 標誌 */
.portal-brand img{
  opacity:0;
  animation:mark-in 1.05s cubic-bezier(.2,.9,.28,1.08) .1s forwards}
@keyframes mark-in{
  from{opacity:0;transform:scale(.56) translateY(14px);filter:blur(9px)}
  70%{opacity:1;filter:blur(0)}
  to{opacity:1;transform:none;filter:blur(0)}}

/* 3 ─ 公司名由左掀開 */
.portal-brand span{
  opacity:0;
  animation:wipe-r .82s cubic-bezier(.2,.7,.3,1) .62s forwards}
@keyframes wipe-r{
  from{opacity:0;clip-path:inset(0 100% 0 0);transform:translateX(-8px)}
  to{opacity:1;clip-path:inset(0 0 0 0);transform:none}}

/* 4 ─ 英文小標逐字 */
.portal-eyebrow span{
  display:inline-block;opacity:0;
  animation:char-in .5s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay:calc(1.02s + var(--c) * .028s)}
@keyframes char-in{
  from{opacity:0;transform:translateY(9px) scale(.9)}
  to{opacity:1;transform:none}}

/* 5 ─ 主標遮罩掀開 */
.portal-title .ln{display:block;overflow:hidden}
.portal-title .ln i{
  display:block;font-style:normal;
  transform:translateY(105%);
  animation:line-up .92s cubic-bezier(.16,.84,.26,1) forwards;
  animation-delay:calc(1.16s + var(--l) * .13s)}
@keyframes line-up{to{transform:none}}

/* 副標與細線 */
.portal-sub{opacity:0;animation:portal-in .7s cubic-bezier(.2,.7,.3,1) 1.5s forwards}
.portal-sub::after{width:0;animation:rule-grow .7s cubic-bezier(.2,.7,.3,1) 1.76s forwards}
@keyframes rule-grow{to{width:34px}}
@keyframes portal-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* 6 ─ 五張卡 3D 翻正 */
.portal-grid{perspective:1100px}
.portal-item{
  opacity:0;transform-origin:50% 100%;
  animation:card-in .78s cubic-bezier(.2,.8,.28,1.02) forwards;
  animation-delay:calc(1.86s + var(--i) * .085s)}
@keyframes card-in{
  from{opacity:0;transform:perspective(1100px) rotateX(24deg) translateY(30px) scale(.94)}
  to{opacity:1;transform:none}}

/* 頁尾 */
.portal-foot{opacity:0;animation:portal-in .7s cubic-bezier(.2,.7,.3,1) 2.34s forwards}

/* 動畫跑完才讓 hover 生效，否則進場中滑過去會打架 */
.portal-item{animation-fill-mode:forwards}

@media (prefers-reduced-motion:reduce){
  body.is-portal::before{opacity:1;transform:none;animation:none}
  .portal-brand img,.portal-brand span,.portal-eyebrow span,
  .portal-sub,.portal-item,.portal-foot{opacity:1;animation:none;transform:none;
    clip-path:none;filter:none}
  .portal-title .ln i{transform:none;animation:none}
  .portal-sub::after{width:34px;animation:none}
  .portal-item:hover{transform:none}
}

/* ==========================================================================
   進場的方向變化
   參考站（udilife.com）用的是 slideUp／slideDown／slideLeft 多種方向，
   全部同一個方向會顯得單調。這裡讓五張卡交錯從不同方向進來，
   並在進場結束後給標誌一個很慢的呼吸，畫面才不會完全靜止。
   ========================================================================== */

/* 五張卡交錯方向：左、下、右、下、左 */
.portal-item:nth-child(1){animation-name:card-left}
.portal-item:nth-child(2){animation-name:card-up}
.portal-item:nth-child(3){animation-name:card-right}
.portal-item:nth-child(4){animation-name:card-up}
.portal-item:nth-child(5){animation-name:card-left}

@keyframes card-left{
  from{opacity:0;transform:perspective(1100px) translate3d(-46px,14px,0) rotateY(14deg)}
  to{opacity:1;transform:none}}
@keyframes card-right{
  from{opacity:0;transform:perspective(1100px) translate3d(46px,14px,0) rotateY(-14deg)}
  to{opacity:1;transform:none}}
@keyframes card-up{
  from{opacity:0;transform:perspective(1100px) translate3d(0,40px,0) rotateX(20deg) scale(.95)}
  to{opacity:1;transform:none}}

/* 主標第二行從右側帶一點斜度進來，跟第一行不同調 */
.portal-title .ln:nth-child(2) i{animation-name:line-up-skew}
@keyframes line-up-skew{
  from{transform:translateY(105%) translateX(12px) skewY(2.2deg)}
  to{transform:none}}

/* 副標由下往上，細線由中間往兩側展開 */
.portal-sub::after{
  animation-name:rule-spread;left:50%;position:relative}
@keyframes rule-spread{
  from{width:0}
  to{width:34px}}

/* 進場結束後，標誌很慢地呼吸；幅度小到不會讓人分心 */
.portal-brand img{
  animation:mark-in 1.05s cubic-bezier(.2,.9,.28,1.08) .1s forwards,
            mark-breathe 7s ease-in-out 2.6s infinite}
@keyframes mark-breathe{
  0%,100%{transform:translateY(0) rotate(0)}
  50%{transform:translateY(-4px) rotate(-1.1deg)}}

/* 卡片指到時有一道光掃過 */
.portal-item{overflow:hidden}
.portal-item::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,
    rgba(255,255,255,.55) 50%,transparent 62%);
  transform:translateX(-120%);transition:transform .7s cubic-bezier(.2,.7,.3,1)}
.portal-item{position:relative}
.portal-item:hover::after{transform:translateX(120%)}

@media (prefers-reduced-motion:reduce){
  .portal-brand img{animation:none}
  .portal-item::after{display:none}
}

/* ==========================================================================
   持續變化
   進場結束後畫面不該完全靜止。四層循環，週期都不同（9/12/16/21 秒），
   彼此不會同步，看起來才像自然呼吸而不是整齊踏步。
   幅度一律很小 —— 這是企業站，動得太明顯會干擾閱讀。
   ========================================================================== */

/* 1 ─ 底層光暈緩慢漂移並呼吸（21 秒） */
body.is-portal::before{
  animation:bloom 1.5s cubic-bezier(.2,.7,.3,1) forwards,
            bloom-drift 21s ease-in-out 2.4s infinite}
@keyframes bloom-drift{
  0%,100%{background-position:50% 42%;transform:scale(1)}
  33%{background-position:44% 38%;transform:scale(1.06)}
  66%{background-position:56% 46%;transform:scale(1.03)}}

/* 2 ─ 副標三句輪播（12 秒一輪，每句停約 3 秒） */
/* 三個 span 絕對定位後不再撐寬度，而 .portal-inner 是 align-items:center 的 flex，
   父層會縮成 0 寬，文字就變成一個字一行。這裡明確給寬度。 */
.portal-sub{position:relative;width:100%;min-height:1.7em;
  text-align:center;animation-fill-mode:forwards}
.portal-sub span{
  position:absolute;left:0;right:0;top:0;opacity:0;
  animation:sub-cycle 12s ease-in-out infinite;
  animation-delay:calc(1.5s + var(--s) * 4s)}
/* 每句佔 12 秒的三分之一（4 秒）。淡出拉到 36% 才結束，
   跟下一句 0% 開始的淡入重疊約 0.4 秒，中間才不會出現空白行。 */
@keyframes sub-cycle{
  0%{opacity:0;transform:translateY(7px)}
  3%,30%{opacity:1;transform:none}
  36%{opacity:0;transform:translateY(-7px)}
  100%{opacity:0;transform:translateY(-7px)}}
/* 輪播時細線固定在下方，不跟著字跑 */
.portal-sub::after{position:absolute;left:50%;transform:translateX(-50%);
  top:calc(100% + clamp(1.3rem,3.2vh,2rem))}

/* 3 ─ 五張卡各自錯相浮動（16 秒，相位差 1.3 秒） */
.portal-item{
  animation-fill-mode:forwards;
  will-change:transform}
.portal-item:nth-child(1){animation:card-left .78s cubic-bezier(.2,.8,.28,1.02) 1.86s forwards,
  float-a 16s ease-in-out 2.9s infinite}
.portal-item:nth-child(2){animation:card-up .78s cubic-bezier(.2,.8,.28,1.02) 1.945s forwards,
  float-b 16s ease-in-out 4.2s infinite}
.portal-item:nth-child(3){animation:card-right .78s cubic-bezier(.2,.8,.28,1.02) 2.03s forwards,
  float-a 16s ease-in-out 5.5s infinite}
.portal-item:nth-child(4){animation:card-up .78s cubic-bezier(.2,.8,.28,1.02) 2.115s forwards,
  float-b 16s ease-in-out 6.8s infinite}
.portal-item:nth-child(5){animation:card-left .78s cubic-bezier(.2,.8,.28,1.02) 2.2s forwards,
  float-a 16s ease-in-out 8.1s infinite}
@keyframes float-a{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}}
@keyframes float-b{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}}
/* 指到時停住浮動，游標才不會追著卡片跑 */
.portal-item:hover{animation-play-state:paused}

/* 4 ─ 圖示依序輕輕脈動（9 秒一輪，五個依序差 0.55 秒） */
.portal-ico{
  animation:ico-pulse 9s ease-in-out infinite;
  animation-delay:calc(3.2s + var(--i) * .55s)}
@keyframes ico-pulse{
  0%,88%,100%{transform:translateY(0) scale(1)}
  93%{transform:translateY(-3px) scale(1.08)}}

@media (prefers-reduced-motion:reduce){
  body.is-portal::before,.portal-item,.portal-ico{animation:none}
  .portal-sub span{position:static;opacity:1;animation:none}
  .portal-sub span:not(:first-child){display:none}
  .portal-sub::after{position:relative;left:auto;transform:none;top:auto}
}

/* ==========================================================================
   漂浮的器物線稿
   用品類卡那八個圖形當背景裝飾，散在四周慢慢漂移與旋轉。
   透明度壓到 .07～.12，只當氛圍，不跟內容搶注意力；
   每個週期都不同（34～45 秒）且起始相位錯開，不會整齊擺動。
   ========================================================================== */
.portal-deco{
  position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.dc{
  position:absolute;left:var(--x);top:var(--y);
  width:var(--sz);height:var(--sz);
  margin-left:calc(var(--sz) / -2);margin-top:calc(var(--sz) / -2);
  color:var(--navy);opacity:0;
  animation:dc-appear 1.6s ease-out calc(1.9s + var(--dl, 0s) * 0) forwards,
            dc-float var(--dur) ease-in-out var(--dl) infinite}
.dc svg{width:100%;height:100%;display:block}

@keyframes dc-appear{from{opacity:0}to{opacity:.085}}
@keyframes dc-float{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg) scale(1)}
  25%{transform:translate3d(14px,-22px,0) rotate(5deg) scale(1.05)}
  50%{transform:translate3d(-9px,-34px,0) rotate(-4deg) scale(.97)}
  75%{transform:translate3d(-17px,-14px,0) rotate(3deg) scale(1.03)}}

/* 小螢幕收掉一半，免得跟內容擠 */
@media (max-width:760px){
  .dc:nth-child(3),.dc:nth-child(4),.dc:nth-child(6){display:none}
  .dc{--sz:62px !important}
}
@media (prefers-reduced-motion:reduce){
  .dc{animation:none;opacity:.07}
}

/* 卡片圖示進場時自己描一遍線 */
.portal-ico svg path,.portal-ico svg circle,.portal-ico svg rect{
  stroke-dasharray:96;stroke-dashoffset:96;
  animation:ico-draw 1.1s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay:calc(2.05s + var(--i) * .085s)}
@keyframes ico-draw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){
  .portal-ico svg path,.portal-ico svg circle,.portal-ico svg rect{
    stroke-dasharray:none;stroke-dashoffset:0;animation:none}
}

/* 第六格（線上商城）的進場方向與浮動，接續前五格的交錯 */
.portal-item:nth-child(6){
  animation:card-right .78s cubic-bezier(.2,.8,.28,1.02) 2.285s forwards,
            float-b 16s ease-in-out 9.4s infinite}

/* ==========================================================================
   裝飾元素
   線條＋端點的框飾、輪播指示點、左側社群直列。
   線條一律 1px、端點很小，份量壓住才不會搶掉主標。
   ========================================================================== */

/* ---- 線條框飾 ---- */
.portal-rule{
  display:flex;align-items:center;gap:.6rem;width:100%;
  justify-content:center}
.portal-rule--top{margin-bottom:.15rem}
.portal-rule--bottom{margin-top:clamp(1.1rem,2.8vh,1.7rem)}
.portal-rule .portal-eyebrow{margin:0;white-space:nowrap}

.rl{display:block;flex:none;opacity:0;
  animation:rl-in .8s cubic-bezier(.2,.7,.3,1) 1.34s forwards}
.rl-line{height:1px;background:var(--line);flex:1 1 auto;max-width:180px;
  transform-origin:left;transform:scaleX(0);
  animation:rl-grow .9s cubic-bezier(.2,.7,.3,1) 1.34s forwards,
            rl-in .5s ease 1.34s forwards}
.rl-line--thin{transform-origin:right;max-width:150px}
.rl-dot{width:9px;height:9px;border-radius:50%;background:var(--brand)}
.rl-tip{width:5px;height:5px;border-radius:50%;
  background:var(--navy);opacity:.42}
@keyframes rl-in{to{opacity:1}}
@keyframes rl-grow{to{transform:scaleX(1)}}

/* 實心圓進場後緩慢脈動，呼應參考站那個圓點 */
.rl-dot{animation:rl-in .8s ease 1.34s forwards,
        dot-beat 4.5s ease-in-out 2.4s infinite}
@keyframes dot-beat{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(215,53,120,.35)}
  55%{transform:scale(1.14);box-shadow:0 0 0 7px rgba(215,53,120,0)}}

/* ---- 輪播指示點：三句各一顆，亮起來的就是現在這句 ---- */
.portal-dots{display:flex;gap:.45rem;margin-top:.9rem;opacity:0;
  animation:rl-in .7s ease 1.9s forwards}
.portal-dots i{
  width:5px;height:5px;border-radius:50%;background:var(--line);
  animation:dot-cycle 12s ease-in-out infinite;
  animation-delay:calc(1.5s + var(--d) * 4s)}
@keyframes dot-cycle{
  0%{background:var(--line);transform:scale(1)}
  3%,30%{background:var(--brand);transform:scale(1.35)}
  36%,100%{background:var(--line);transform:scale(1)}}

/* ---- 左側社群直列 ---- */
.portal-social{
  position:fixed;left:clamp(14px,2.4vw,34px);top:50%;transform:translateY(-50%);
  z-index:3;display:flex;flex-direction:column;align-items:center;gap:1rem}
.portal-social a{
  color:var(--muted);opacity:0;
  animation:social-in .65s cubic-bezier(.2,.7,.3,1) forwards;
  transition:color .25s ease,transform .25s cubic-bezier(.2,.7,.3,1)}
.portal-social a:nth-child(1){animation-delay:2.5s}
.portal-social a:nth-child(2){animation-delay:2.62s}
.portal-social a:nth-child(3){animation-delay:2.74s}
.portal-social a:hover{color:var(--brand);transform:translateX(3px) scale(1.12)}
.portal-social svg{width:19px;height:19px;display:block}
.ps-line{
  width:1px;height:64px;background:linear-gradient(var(--line),transparent);
  transform-origin:top;transform:scaleY(0);
  animation:rl-grow-y .9s cubic-bezier(.2,.7,.3,1) 2.9s forwards}
@keyframes rl-grow-y{to{transform:scaleY(1)}}
@keyframes social-in{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}

@media (max-width:860px){.portal-social{display:none}}
@media (max-width:520px){
  .rl-line{max-width:46px}.rl-line--thin{max-width:38px}
}

@media (prefers-reduced-motion:reduce){
  .rl,.rl-line,.rl-dot,.portal-dots,.portal-dots i,.portal-social a,.ps-line{
    animation:none;opacity:1;transform:none}
  .portal-dots i:first-child{background:var(--brand)}
}

/* ==========================================================================
   主標輪播
   三句疊在同一個位置交替。與副標、指示點共用 12 秒週期，一起換。
   容器要給高度 —— 三句都絕對定位的話父層會塌掉。
   ========================================================================== */
.portal-titles{
  position:relative;width:100%;
  min-height:calc(2 * 1.5em * clamp(1.7rem,4.4vw,2.9rem) / 1rem * .34)}
.portal-titles .tt{
  margin:0;position:absolute;left:0;right:0;top:0;
  font-size:clamp(1.7rem,4.4vw,2.9rem);line-height:1.5;
  font-weight:800;letter-spacing:.01em;color:var(--ink);text-align:center}
/* 第一句留在文件流裡撐開容器高度，其餘疊上去 */
.portal-titles .tt:first-child{position:relative}

/* 進場：只有第一句做遮罩掀開，另外兩句等輪播 */
.portal-titles .tt:not(:first-child) .ln i{animation:none;transform:none}
.portal-titles .tt:not(:first-child){opacity:0}

/* 輪播：與副標同一組時間 */
.portal-titles .tt{
  animation:title-cycle 12s ease-in-out infinite;
  animation-delay:calc(1.5s + var(--s) * 4s)}
@keyframes title-cycle{
  0%{opacity:0;transform:translateY(12px)}
  3%,30%{opacity:1;transform:none}
  36%{opacity:0;transform:translateY(-12px)}
  100%{opacity:0;transform:translateY(-12px)}}

/* 第一句跟其他兩句共用同一組時間（delay 1.5s），不能另外延後，
   否則進場後它會一直亮著、跟輪到的那句疊在一起。
   遮罩掀開對齊到它真正顯示的時刻（1.5s + 3% x 12s = 1.86s）。 */
.portal-titles .tt:first-child .ln i{
  animation:line-up .92s cubic-bezier(.16,.84,.26,1) forwards;
  animation-delay:calc(1.86s + var(--l) * .13s)}
.portal-titles .tt:first-child .ln:nth-child(2) i{animation-name:line-up-skew}

@media (prefers-reduced-motion:reduce){
  .portal-titles .tt{animation:none}
  .portal-titles .tt:not(:first-child){display:none}
  .portal-titles .tt:first-child{opacity:1;position:relative}
}


/* ---- 小圓點移除 ----
   輪播指示點與線條端點都拿掉，只留 eyebrow 左側那顆實心圓。
   規則留著但停用，之後要恢復只要刪掉這一段。 */
.portal-dots{display:none}
.rl-tip{display:none}
/* 端點沒了，右側細線改成往外淡出收尾 */
.rl-line--thin{
  background:linear-gradient(to right,var(--line),transparent)}
.portal-rule--bottom .rl-line{
  background:linear-gradient(to right,transparent,var(--line),transparent);
  max-width:120px}


/* ==========================================================================
   置中校正
   ========================================================================== */

/* ---- 1. 小標：左右臂補成等長 ----
   原本 左臂 = 線180 + 間距 + 圓點9 + 間距，右臂 = 間距 + 線150，
   差 48px，整列雖然置中，文字卻落在中線右邊 24px。
   兩道線改成等長，右側再補一段等於「圓點 + 間距」的外距，左右臂就一樣寬。
   字距會在最後一個字後面多留一格，一併扣掉。 */
.rl-line--thin{max-width:180px;margin-right:calc(9px + .6rem)}
.portal-eyebrow span:last-child{margin-right:-.26em}

/* 兩道線都從文字那頭往外淡出，份量才對稱 */
.portal-rule--top .rl-line{background:linear-gradient(to left,var(--line),transparent)}
.portal-rule--top .rl-line--thin{background:linear-gradient(to right,var(--line),transparent)}

/* ---- 2. 主標：全形標點的視覺置中 ----
   text-indent 會讓置中的那一行往右移一半，所以填入「標點右邊的空白」本身：
   「，」0.364em、「。」0.303em，取 0.33em，兩者誤差都在 0.6px 以內。
   前提是每一行都以全形標點收尾 —— 之後若有不是的行，那一行要拿掉這個值。 */
.portal-title .ln i{text-indent:.33em}

/* 前面的 max-width:180px 寫在響應式規則後面，會把 520px 的縮短蓋掉，補回來 */
@media (max-width:520px){
  .rl-line--thin{max-width:46px}   /* 窄螢幕兩道線一起縮，仍然等長 */
}


/* ==========================================================================
   背景層次
   原本只有一層藍光暈，畫面是平的。往下疊六層，每層都壓在 .12 以下，
   單獨看幾乎看不出來，合起來才有紙的厚度。
   順序（由後往前）：底色 → 方格 → 色暈 → 線稿 → 顆粒 → 斜光 → 取景框
   ========================================================================== */

/* ---- 底色：帶一點藍，明暗也拉開，白卡片才浮得起來 ---- */
body.is-portal{
  background:
    radial-gradient(1200px 720px at 50% -14%,
      #FFFFFF 0%, #F7F9FD 44%, #EDF0F8 100%)}

/* ---- 製圖紙方格 ----
   132px 主格 + 26.4px 細格（剛好五等分，位移動畫才接得起來）。
   中央用遮罩淡掉，字的後面是乾淨的。 */
body.is-portal::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:
    linear-gradient(to right,rgba(28,31,135,.055) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(28,31,135,.055) 1px,transparent 1px),
    linear-gradient(to right,rgba(28,31,135,.026) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(28,31,135,.026) 1px,transparent 1px);
  background-size:132px 132px,132px 132px,26.4px 26.4px,26.4px 26.4px;
  -webkit-mask-image:radial-gradient(780px 640px at 50% 46%,
    transparent 0%,rgba(0,0,0,.5) 44%,#000 76%);
          mask-image:radial-gradient(780px 640px at 50% 46%,
    transparent 0%,rgba(0,0,0,.5) 44%,#000 76%);
  opacity:0;
  animation:grid-in 2.4s ease 1.1s forwards,
            grid-drift 80s linear 1.1s infinite}
@keyframes grid-in{to{opacity:1}}
@keyframes grid-drift{
  to{background-position:132px 132px,132px 132px,132px 132px,132px 132px}}

/* ---- 第二、三顆色暈：桃紅在右上、藍在左下，反向漂移 ----
   原本那顆藍光暈固定在正中央，畫面只會呼吸不會流動。 */
.portal-deco::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(640px 470px at 84% 16%,
      rgba(215,53,120,.10) 0%,rgba(215,53,120,.028) 46%,transparent 72%),
    radial-gradient(580px 430px at 14% 86%,
      rgba(28,31,135,.085) 0%,transparent 70%);
  opacity:0;
  animation:bloom2-in 2.2s ease .9s forwards,
            bloom2-drift 29s ease-in-out 3.1s infinite}
@keyframes bloom2-in{to{opacity:1}}
@keyframes bloom2-drift{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  33%{transform:translate3d(-28px,20px,0) scale(1.09)}
  66%{transform:translate3d(22px,-16px,0) scale(1.04)}}

/* ---- 紙張顆粒 ----
   feTurbulence 內嵌成 data URI，不多一個圖檔請求。
   去彩度後只剩灰階雜訊，疊上去就是紙的手感。 */
.portal-deco::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity:.055}

/* ---- 斜光：每 20 秒掃過一次 ---- */
.dc-sheen{
  position:absolute;top:-30%;bottom:-30%;left:-70%;right:-70%;
  pointer-events:none;
  background:linear-gradient(104deg,
    transparent 44%,rgba(255,255,255,.62) 50%,transparent 56%);
  transform:translate3d(-58%,0,0);
  animation:sheen 20s ease-in-out 4.2s infinite}
@keyframes sheen{
  0%{transform:translate3d(-58%,0,0)}
  52%,100%{transform:translate3d(58%,0,0)}}

/* ---- 四角取景框：靜止的結構，壓住那些一直在動的東西 ---- */
.pf{
  position:absolute;pointer-events:none;
  width:clamp(24px,3.6vw,50px);height:clamp(24px,3.6vw,50px);
  border:0 solid rgba(28,31,135,.20);
  opacity:0;animation:pf-in 1.1s cubic-bezier(.2,.7,.3,1) 2.6s forwards}
.pf-tl,.pf-tr{top:clamp(14px,2.4vh,30px)}
.pf-bl,.pf-br{bottom:clamp(14px,2.4vh,30px)}
.pf-tl,.pf-bl{left:clamp(14px,2.2vw,34px)}
.pf-tr,.pf-br{right:clamp(14px,2.2vw,34px)}
.pf-tl{border-top-width:1px;border-left-width:1px}
.pf-tr{border-top-width:1px;border-right-width:1px}
.pf-bl{border-bottom-width:1px;border-left-width:1px}
.pf-br{border-bottom-width:1px;border-right-width:1px}
@keyframes pf-in{from{opacity:0;transform:scale(.62)}to{opacity:1;transform:none}}

/* 窄螢幕：線稿只留三個（新增的 7~9 一併收掉），取景框留著但縮小 */
@media (max-width:760px){
  .dc:nth-child(n+7){display:none}
}
@media (prefers-reduced-motion:reduce){
  body.is-portal::after{animation:none;opacity:1}
  .portal-deco::before{animation:none;opacity:1}
  .dc-sheen{display:none}
  .pf{animation:none;opacity:1}
}

/* 2026-10-22: white space, restrained blue cards and no large colour wash. */
body.is-portal {
  --intro-glint-delay: .3s;
  --intro-glint-duration: 2.2s;
  --intro-logo-delay: calc(var(--intro-glint-delay) + var(--intro-glint-duration) + .1s);
  --followup-glint-delay: calc(var(--intro-logo-delay) + 2.2s + 3s);
  background: #e7eef5;
}
body.is-portal::before {
  background: radial-gradient(720px 480px at 50% 34%, rgba(255,255,255,.9), transparent 75%);
}
body.is-portal::after {
  background-image: none;
}
.portal-deco::before, .portal::before { background: none; }

/* Clean, substantial sans-serif type for the three rotating messages. */
.portal-titles .tt {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: clamp(1.6rem, 4.9vw, 3.125rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
  color: #203c58;
  text-shadow: none;
}
.portal-titles .tt .ln { white-space: nowrap; }
@media (max-width: 420px) {
  .portal-titles .tt {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
    letter-spacing: .025em;
  }
}

/* One shared 21-second timeline: three seven-second scenes. */
.portal-titles .tt.portal-title {
  display: block;
  opacity: 1;
  transform: none;
  animation: none;
}
.portal-titles .tt .ln { overflow: visible; }
/* Override the original first-slide reveal so every scene follows the same motion. */
.is-portal .portal-titles .tt.portal-title .ln i {
  opacity: 0;
  transform-origin: 50% 50%;
  animation: portal-cinema-title 21s linear infinite both;
  animation-delay: calc(1.95s + var(--s) * 7s + var(--l) * .18s);
  will-change: transform, opacity, filter;
}
@keyframes portal-cinema-title {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translate3d(0, 22px, 0) scale(1.055);
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  6% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    animation-timing-function: linear;
  }
  25% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -2px, 0) scale(1.012);
    animation-timing-function: cubic-bezier(.55, 0, .85, .5);
  }
  33%, 100% {
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(0, -14px, 0) scale(.98);
  }
}
.is-portal .portal-sub span {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  animation: portal-cinema-sub 21s linear infinite both;
  animation-delay: calc(2.2s + var(--s) * 7s);
}
@keyframes portal-cinema-sub {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 8px, 0);
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  5%, 24% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
  31%, 100% { opacity: 0; filter: blur(3px); transform: translate3d(0, -6px, 0); }
}
.portal-item {
  background: #ffffff;
  border-color: #d6e0ea;
  border-radius: 8px;
  box-shadow: none;
}
.portal-item:is(:hover, :focus-visible) {
  background: #ffffff;
  border-color: #d6e0ea;
  color: var(--ink);
  box-shadow: none;
  /* The entrance must keep running even when the pointer is already over a card. */
  animation-play-state: running, paused;
}
.portal-item:focus-visible {
  outline: 2px solid var(--entry-color);
  outline-offset: 3px;
}
.portal-ico {
  display: grid;
  place-items: center;
  overflow: visible;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 14px;
  background-color: var(--entry-tint, #d4e0eb);
  background-image: linear-gradient(145deg, rgba(255,255,255,.22), transparent 64%);
  color: var(--entry-color, var(--navy));
  scale: 1;
  translate: 0 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8),
              inset 0 -3px 4px rgba(32,60,88,.09),
              0 4px 0 var(--entry-side, #9cafc2),
              0 9px 14px -5px rgba(32,60,88,.3);
  transition: color .25s, background-color .25s, box-shadow .35s, transform .3s,
              scale .35s cubic-bezier(.2,.8,.25,1), translate .35s cubic-bezier(.2,.8,.25,1);
}
.portal-glyph {
  display: block;
  width: 44px;
  height: 44px;
  background-image: url("portal-icons.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  filter: drop-shadow(0 2px 2px rgba(32,60,88,.14));
  transition: transform .35s cubic-bezier(.2,.8,.25,1), filter .25s;
}
.portal-item:nth-child(1) .portal-glyph { background-position: 0 0; }
.portal-item:nth-child(2) .portal-glyph { background-position: 50% 0; }
.portal-item:nth-child(3) .portal-glyph { background-position: 100% 0; }
.portal-item:nth-child(4) .portal-glyph { background-position: 0 100%; }
.portal-item:nth-child(5) .portal-glyph { background-position: 50% 100%; }
.portal-item:nth-child(6) .portal-glyph { background-position: 100% 100%; }
.portal-glyph.portal-glyph--b2b { background-image: none; }
.portal-glyph--b2b > svg { display:block; width:100%; height:100%; overflow:visible; }
.portal-glyph--b2b svg * { animation:none; stroke-dasharray:none; stroke-dashoffset:0; }
.portal-item:is(:hover, :focus-visible) .portal-ico {
  scale: 1;
  translate: 0 0;
  transform: none;
  animation: none;
  color: var(--entry-color);
  background-color: var(--entry-tint);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8),
              inset 0 -3px 4px rgba(32,60,88,.09),
              0 4px 0 var(--entry-side),
              0 9px 14px -5px rgba(32,60,88,.3);
}
.portal-item:is(:hover, :focus-visible) .portal-glyph {
  transform: translateY(-3px) scale(2.05);
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.22)) brightness(1.05);
}
.portal-item:is(:hover, :focus-visible) .portal-zh { color: var(--ink); }
/* One restrained slate-blue finish across all six business entry points. */
.portal-grid .portal-item { --entry-color: #2f4d6a; --entry-tint: #d4e0eb; --entry-side: #9cafc2; }

/* Keep the accent pulse, with a softer rose halo. */
@keyframes dot-beat {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(147,107,123,.18); }
  55% { transform: scale(1.14); box-shadow: 0 0 0 7px rgba(147,107,123,0); }
}

/* An oversized optical arc: white specular light with soft spectral fringes. */
.portal-entry-glint {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: portal-entry-glint var(--intro-glint-duration) linear var(--intro-glint-delay) 1 both;
}
.portal-entry-glint::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 85%;
  width: max(205vw, 1100px);
  height: max(165vh, 1200px);
  background: radial-gradient(ellipse closest-side at 50% 50%,
    transparent 62.72%,
    rgba(141,133,211,.03) 68.48%,
    rgba(137,150,225,.12) 71.936%,
    rgba(113,180,231,.24) 75.104%,
    rgba(158,227,231,.28) 77.408%,
    rgba(228,248,255,.76) 78.992%,
    rgba(255,255,255,.98) 79.76%,
    rgba(255,255,255,.98) 80.24%,
    rgba(255,255,255,.88) 81.008%,
    rgba(255,245,204,.42) 82.448%,
    rgba(246,201,142,.24) 84.32%,
    rgba(223,149,179,.17) 86.624%,
    rgba(183,170,219,.05) 91.52%,transparent 100%);
  -webkit-mask-image: conic-gradient(from 0deg at 50% 50%,#000 0deg,transparent 28deg,transparent 222deg,rgba(0,0,0,.3) 246deg,#000 279deg,#000 330deg,#000 360deg);
  mask-image: conic-gradient(from 0deg at 50% 50%,#000 0deg,transparent 28deg,transparent 222deg,rgba(0,0,0,.3) 246deg,#000 279deg,#000 330deg,#000 360deg);
  transform: translate3d(calc(-50% - 85vw),calc(-50% + 26vh),0) rotate(-14deg);
  animation: portal-prism-pass var(--intro-glint-duration) cubic-bezier(.3,0,.7,1) var(--intro-glint-delay) 1 both;
}
@keyframes portal-entry-glint {
  0%,100% { opacity: 0; }
  16% { opacity: .55; }
  35%,62% { opacity: 1; }
  82% { opacity: .55; }
}
@keyframes portal-prism-pass {
  from { transform: translate3d(calc(-50% - 85vw),calc(-50% + 26vh),0) rotate(-14deg); }
  to { transform: translate3d(calc(-50% + 75vw),calc(-50% - 38vh),0) rotate(-8deg); }
}

/* The original white sweep starts three seconds after each 2.2-second logo turn. */
.portal-followup-glint {
  position:fixed; inset:0; overflow:hidden; z-index:5; pointer-events:none; opacity:0;
  animation:portal-followup-visibility 10s linear var(--followup-glint-delay) infinite both;
}
.portal-followup-glint::before {
  content:""; position:absolute; inset:-20% -60%;
  background:linear-gradient(108deg,transparent 38%,rgba(103,139,181,.09) 42%,
    rgba(255,255,255,.48) 46%,rgba(255,255,255,.98) 50%,
    rgba(255,255,255,.48) 54%,rgba(147,107,123,.04) 58%,transparent 62%);
  transform:translate3d(-68%,0,0);
  animation:portal-followup-pass 10s linear var(--followup-glint-delay) infinite both;
}
@keyframes portal-followup-visibility {
  0%,16.5%,100% { opacity:0; }
  2.97%,11.88% { opacity:.94; }
}
@keyframes portal-followup-pass {
  0% { transform:translate3d(-68%,0,0); animation-timing-function:cubic-bezier(.18,.55,.4,1); }
  16.5%,100% { transform:translate3d(68%,0,0); }
}

/* Start after the sweep fades; keep a 2.2-second turn in each 10-second cycle. */
.portal-brand img {
  opacity: 1;
  filter: none;
  transform-origin: 50% 50%;
  backface-visibility: visible;
  transform: perspective(760px) rotateY(0deg);
  animation: portal-logo-turn 10s linear var(--intro-logo-delay) infinite both;
}
@keyframes portal-logo-turn {
  0% {
    transform: perspective(760px) rotateY(0deg);
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  }
  22%, 100% { transform: perspective(760px) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  /* Retain the specifically requested brand effects; reduce ambient motion. */
  .portal-brand img { opacity: 1; filter: none; }
  .portal-item::after { display: block; }
  .is-portal .portal-grid .portal-item { opacity: 1; animation: none; transform: none; }
  .portal-glyph { transition: none; }
  .portal-ico { transition: none; }
}

/* Touch layouts have fixed-size icons, including after a tap or keyboard focus. */
@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .is-portal .portal-grid .portal-item {
    opacity: 1;
    animation: none;
    transform: none;
    justify-content: center;
  }
  .portal-ico {
    animation: none;
    transform: none;
    scale: 1;
    translate: 0 0;
    flex: 0 0 52px;
    place-items: center;
  }
  .portal-glyph {
    align-self: center;
    justify-self: center;
    transform: none;
  }
  .portal-item:is(:hover, :focus-visible) .portal-ico {
    scale: 1;
    translate: 0 0;
    transform: none;
    background-color: var(--entry-tint);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.8),
                inset 0 -3px 4px rgba(32,60,88,.09),
                0 4px 0 var(--entry-side),
                0 9px 14px -5px rgba(32,60,88,.3);
  }
  .portal-item:is(:hover, :focus-visible) .portal-glyph {
    transform: none;
    filter: drop-shadow(0 2px 2px rgba(32,60,88,.14));
  }
}
@media (max-width: 520px) {
  .portal { padding: 24px 24px 20px; }
  .portal-brand { margin-bottom: 20px; }
  .portal-grid { gap: 8px; margin-top: 16px; }
  .portal-item { padding: 14px 8px 12px; gap: 6px; }
  .portal-zh { line-height: 1.3; }
  .portal-en { line-height: 1.2; }
  .portal-foot { margin-top: 18px; }
}

/* Japanese content on the approved Taiwan homepage design system. */
.jp-home { font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif; overflow-y:auto; overflow-x:hidden; }
.jp-home .portal { padding:52px 32px 30px; }
.jp-home .portal-inner { max-width:1000px; }
.jp-home .portal-brand { gap:18px; margin-bottom:28px; }
.jp-home .portal-brand .jp-mark {
  display:block; position:relative; flex:none; width:clamp(62px,9vh,86px); height:clamp(62px,9vh,86px); overflow:hidden;
  opacity:1; clip-path:circle(50%); border-radius:50%; mix-blend-mode:multiply;
  animation:portal-logo-turn 10s linear var(--intro-logo-delay) infinite both;
}
.jp-home .portal-brand .jp-mark img {
  position:absolute; left:0; top:0; height:100%; width:auto; max-width:none;
  animation:none; transform:none; filter:none; opacity:1;
}
.jp-home .portal-brand i { font-family:"IBM Plex Mono",monospace; }
.jp-home .portal-eyebrow { font-family:"IBM Plex Mono",monospace; }
.jp-home .portal-titles .tt { font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif !important;
}
.jp-home .portal-title .ln i { text-indent:.35em; }
.jp-home .portal-sub { letter-spacing:.12em; margin-top:16px; }
.jp-home .portal-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-top:24px; }
.jp-home .portal-item { padding:23px 10px 20px; gap:10px; opacity:1;
  animation:jp-card-in .8s cubic-bezier(.16,1,.3,1) calc(.9s + var(--i)*.09s) both; }
.jp-home .portal-item:is(:hover,:focus-visible) { animation-play-state:running; }
@keyframes jp-card-in { from {opacity:0;transform:translateY(22px);} to {opacity:1;transform:none;} }
.jp-home .portal-grid .portal-item[data-entry="company"] .portal-glyph { background-position:0 100%; }
.jp-home .portal-grid .portal-item[data-entry="contact"] .portal-glyph { background-position:50% 100%; }
.jp-home .portal-en { font-family:"IBM Plex Mono",monospace; }
.jp-home .portal-foot { margin-top:28px; display:flex; flex-wrap:wrap; justify-content:center; gap:5px 16px;
  letter-spacing:.025em; line-height:1.8; }
.jp-home .jp-location { flex-basis:100%; font-family:"IBM Plex Mono",monospace; font-size:9px;
  letter-spacing:.18em; margin-top:7px; opacity:.82; }
.jp-region { position:absolute; right:30px; top:22px; z-index:3; display:inline-flex; align-items:center;
  gap:9px; font-size:11px; color:#536f86; padding:6px 10px; border:1px solid #cbd8e3; border-radius:5px;
  background:rgba(255,255,255,.42); transition:background .2s,color .2s; }
.jp-region:hover { color:#243d56; background:#fff; }
.jp-region span { font-family:"IBM Plex Mono",monospace; font-size:9px; letter-spacing:.1em; }
@media(max-width:760px) {
  .jp-home .portal { padding:62px 24px 24px; }
  .jp-home .portal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-width:600px; margin-top:20px; }
  .jp-home .portal-item { padding:16px 8px 14px; gap:7px; }
  .jp-home .portal-grid .portal-item[data-entry="b2b"] {
    grid-column:1/-1; display:grid; grid-template-columns:52px max-content;
    grid-template-rows:auto auto; gap:4px 18px; justify-content:center; align-content:center;
    padding:14px 18px; min-height:86px;
  }
  .jp-home .portal-item[data-entry="b2b"] .portal-ico { grid-row:1/3; align-self:center; }
  .jp-home .portal-item[data-entry="b2b"] :is(.portal-zh,.portal-en) { text-align:left; }
  .jp-home .portal-brand { margin-bottom:23px; gap:14px; }
  .jp-home .portal-sub { letter-spacing:.045em; }
  .jp-home .portal-foot { margin-top:23px; gap:3px 13px; }
  .jp-home .portal-foot > span:first-child { flex-basis:100%; }
  .jp-region { right:18px; top:14px; padding:4px 8px; font-size:10px; }
}
@media(max-height:660px) and (min-width:761px) {
  .jp-home .portal { padding-top:48px; padding-bottom:22px; }
  .jp-home .portal-brand { margin-bottom:16px; }
  .jp-home .portal-grid { margin-top:16px; }
  .jp-home .portal-item { padding-top:16px; padding-bottom:15px; }
}
@media(max-width:360px) { .jp-home .portal {padding-left:18px;padding-right:18px;} }
@media(prefers-reduced-motion:reduce) {
  .jp-home .portal-item { animation:none; opacity:1; transform:none; }
}
