@charset "UTF-8";
/* =========================================================
   KAWASAKI ELEX — motion.css
   動きのテーマは「通電」。
   ・線は電流のように「走る」（描画・スイープ）
   ・文字や灯りは蛍光灯のように「点く」（フリッカー）
   ・画像は青いシャッターが横切って「現れる」（ワイプ）
   ========================================================= */

:root {
  --c-bg: #0E1420;
  --c-deep: #080C14;
  --c-panel: #111927;
  --c-blue: #2E7BE8;
  --c-blue-l: #8FB6EA;
  --c-spark: #E6B26E; /* ロゴの「i」の点の色 */
  --c-text: #EAEEF5;
  --c-sub: #B9C4D6;
  --c-line: #253044;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-sweep: cubic-bezier(.7, 0, .2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; }
a { transition: color .3s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
::selection { background: var(--c-blue); color: #fff; }
[data-phrase] { word-break: auto-phrase; }

/* ---------------------------------------------------------
   ページ遷移パネル（読み込み中の空白も隠す）
   --------------------------------------------------------- */
#pt {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--c-deep);
  pointer-events: none;
  transform: translateY(0);
}
#pt::before, #pt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--c-blue);
  box-shadow: 0 0 18px 2px rgba(46, 123, 232, .75);
  opacity: 0;
}
#pt::after { bottom: 0; }
#pt::before { top: 0; }
html.pt-ready #pt { transform: translateY(-100%); transition: transform .9s var(--ease-io); }
html.pt-ready #pt::after { opacity: 1; }
html.pt-off #pt { display: none; }
html.pt-leave #pt { transform: translateY(100%); transition: none; }
html.pt-leave.pt-go #pt { transform: translateY(0); transition: transform .6s var(--ease-io); }
html.pt-leave #pt::before { opacity: 1; }
html.pt-leave #pt::after { opacity: 0; }

/* ---------------------------------------------------------
   オープニング（トップページ・セッション中1回だけ）
   --------------------------------------------------------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-deep);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
html.no-intro #splash { display: none !important; }
#splash .sp-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
#splash .sp-logo { width: min(520px, 78vw) !important; height: auto; display: block; opacity: 0; }
#splash .sp-bar { display: block; position: relative; width: min(520px, 78vw); height: 1px; background: #1B2434; }
#splash .sp-bar i {
  position: absolute; inset: 0; display: block;
  background: var(--c-blue); box-shadow: 0 0 10px var(--c-blue);
  transform: scaleX(0); transform-origin: left center;
}
#splash .sp-bar b {
  position: absolute; top: 50%; left: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: var(--c-spark); box-shadow: 0 0 10px 2px var(--c-spark);
  opacity: 0;
}
#splash::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-blue); box-shadow: 0 0 18px 2px rgba(46, 123, 232, .75);
  opacity: 0; transition: opacity .2s;
}
html.intro-run #splash .sp-logo { animation: spFlicker 1s linear .05s forwards; }
html.intro-run #splash .sp-bar i { animation: spCharge .95s var(--ease-sweep) .3s forwards; }
html.intro-run #splash .sp-bar b { animation: spSpark .95s var(--ease-sweep) .3s forwards; }
html.intro-out #splash { transform: translateY(-100%); transition: transform .95s var(--ease-io); }
html.intro-out #splash::after { opacity: 1; }
@keyframes spFlicker {
  0% { opacity: 0 } 7% { opacity: .85 } 11% { opacity: .08 } 18% { opacity: .75 }
  22% { opacity: .15 } 32% { opacity: 1 } 38% { opacity: .55 } 44%, 100% { opacity: 1 }
}
@keyframes spCharge { to { transform: scaleX(1); } }
@keyframes spSpark { 0% { left: 0; opacity: 1 } 90% { opacity: 1 } 100% { left: 100%; opacity: 0 } }

/* ---------------------------------------------------------
   ヘッダー（追従・縮小・スクロール方向で出し入れ）
   --------------------------------------------------------- */
#site-header {
  position: sticky !important; top: 0; z-index: 60 !important;
  transition: transform .55s var(--ease-out), padding .45s var(--ease-out), background-color .45s, box-shadow .45s;
}
#site-header img { transition: width .45s var(--ease-out); }
#site-header[data-scrolled="1"] {
  padding-top: 10px !important; padding-bottom: 10px !important;
  background: rgba(8, 12, 20, .94) !important;
  box-shadow: 0 1px 0 #1B2434;
}
#site-header[data-scrolled="1"] img[alt="KAWASAKI ELEX"] { width: 260px !important; }
#site-header[data-hidden="1"] { transform: translateY(-100%); }

/* ナビのホバー：下線が電流のように左から走る */
#nav-links a { position: relative; }
#nav-links a > .nav-en { position: relative; display: inline-block; padding: 6px 0; }
#nav-links a > .nav-en::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-sweep);
}
#nav-links a:hover > .nav-en::after,
#nav-links a[aria-current="page"] > .nav-en::after { transform: scaleX(1); transform-origin: left center; }
#nav-links a[aria-current="page"] { color: var(--c-blue); }
#nav-links .nav-ja { display: none; }

/* フッター等のテキストリンク */
[data-ul] { position: relative; }
[data-ul]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-sweep);
}
[data-ul]:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ハンバーガー → × */
#nav-toggle span { transition: transform .45s var(--ease-out), opacity .3s; }
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#nav-toggle { display: none; }
@media (max-width: 760px) {
  #site-header img[alt="KAWASAKI ELEX"] { width: 208px !important; }
  #site-header[data-scrolled="1"] img[alt="KAWASAKI ELEX"] { width: 170px !important; }
  #site-header > a, #site-header > img, #nav-toggle { position: relative; z-index: 2; }
  #nav-toggle { display: inline-flex !important; }
  #nav-links {
    display: flex !important; position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px !important; padding: 96px 32px 48px;
    background: #080C14;
    font-size: 30px !important; letter-spacing: .08em !important;
    visibility: hidden; opacity: 0;
    transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
  }
  #nav-links[data-open="1"] { visibility: visible; opacity: 1; transition: opacity .45s var(--ease-out); }
  #nav-links a {
    display: flex; align-items: baseline; gap: 16px;
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
  }
  #nav-links[data-open="1"] a { opacity: 1; transform: none; }
  #nav-links[data-open="1"] a:nth-child(1) { transition-delay: .08s; }
  #nav-links[data-open="1"] a:nth-child(2) { transition-delay: .14s; }
  #nav-links[data-open="1"] a:nth-child(3) { transition-delay: .20s; }
  #nav-links[data-open="1"] a:nth-child(4) { transition-delay: .26s; }
  #nav-links .nav-ja { display: inline; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; letter-spacing: .12em; color: #6E7C93; }
  #nav-links a > .nav-en { padding: 2px 0; }
  html[data-menu="1"], html[data-menu="1"] body { overflow: hidden; }
}

/* ---------------------------------------------------------
   ボタン：塗りが左から走る＋矢印が進む
   --------------------------------------------------------- */
[data-btn] { position: relative; isolation: isolate; overflow: hidden; transition: border-color .45s, color .45s; }
[data-btn]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-blue);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease-sweep);
}
[data-btn]:hover::before { transform: scaleX(1); transform-origin: left center; }
[data-btn]:hover { border-color: var(--c-blue) !important; }
[data-btn] > span:last-child { display: inline-block; transition: transform .45s var(--ease-out); }
[data-btn]:hover > span:last-child { transform: translateX(8px); }
[data-btn="solid"]::before { background: var(--c-text); }
[data-btn="solid"]:hover { color: var(--c-deep) !important; }

/* ---------------------------------------------------------
   スクロールで現れる要素（JS有効時だけ隠す）
   --------------------------------------------------------- */
/* 見出し：マスクの下からせり上がる */
html.js-motion [data-rv="head"]:not([data-in]) > * {
  transform: translateY(100%);
  clip-path: inset(0 0 100% 0);
}
[data-rv="head"][data-in] > * {
  transform: none; clip-path: inset(-20% -5% -20% -5%);
  transition: transform 1.1s var(--ease-out), clip-path 1.1s var(--ease-out);
}
[data-rv="head"][data-in] > *:nth-child(2) { transition-delay: .1s; }
[data-rv="head"][data-in] > *:nth-child(3) { transition-delay: .2s; }

/* 本文・カード：静かに浮かぶ */
html.js-motion [data-rv="up"]:not([data-in]),
html.js-motion [data-rv="card"]:not([data-in]) { opacity: 0; transform: translateY(28px); }
[data-rv="up"][data-in],
[data-rv="card"][data-in] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out) var(--rd, 0s), transform 1.2s var(--ease-out) var(--rd, 0s);
}

/* 画像：青いシャッターが横切って現れる */
html.js-motion [data-wipe] { position: relative; overflow: hidden; }
html.js-motion [data-wipe]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--c-blue); transform: translateX(-101%);
}
html.js-motion [data-wipe][data-rv]:not([data-in]) img,
html.js-motion [data-rv]:not([data-in]) [data-wipe] img { opacity: 0; transform: scale(1.14); }
[data-in][data-wipe]::after, [data-in] [data-wipe]::after {
  animation: rvWipe 1.15s var(--ease-io) calc(var(--rd, 0s) + .1s) forwards;
}
[data-in][data-wipe] img, [data-in] [data-wipe] img {
  opacity: 1; transform: scale(1);
  transition: opacity 0s linear calc(var(--rd, 0s) + .68s), transform 1.6s var(--ease-out) calc(var(--rd, 0s) + .68s);
}
@keyframes rvWipe { 0% { transform: translateX(-101%) } 50% { transform: translateX(0) } 100% { transform: translateX(101%) } }

/* 会社概要の表：行の罫線が走る */
html.js-motion [data-rv="table"]:not([data-in]) > div { opacity: 0; transform: translateY(10px); }
html.js-motion [data-rv="table"] > div { border-bottom-color: transparent !important; position: relative; }
html.js-motion [data-rv="table"] > div::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--row-line, #253044); transform: scaleX(0); transform-origin: left center;
}
[data-rv="table"][data-in] > div { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--rd, 0s), transform .9s var(--ease-out) var(--rd, 0s); }
[data-rv="table"][data-in] > div::after { transform: scaleX(1); transition: transform 1.1s var(--ease-sweep) var(--rd, 0s); }

/* タグ（チップ）：順番に点く */
html.js-motion [data-chips][data-rv]:not([data-in]) > span,
html.js-motion [data-rv]:not([data-in]) [data-chips] > span { opacity: 0; transform: translateY(8px); }
[data-in] [data-chips] > span, [data-chips][data-in] > span {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), border-color .3s, color .3s;
}
[data-chips] > span:nth-child(1) { transition-delay: calc(var(--rd, 0s) + .35s) !important; }
[data-chips] > span:nth-child(2) { transition-delay: calc(var(--rd, 0s) + .43s) !important; }
[data-chips] > span:nth-child(3) { transition-delay: calc(var(--rd, 0s) + .51s) !important; }
[data-chips] > span:nth-child(4) { transition-delay: calc(var(--rd, 0s) + .59s) !important; }
[data-chips] > span:nth-child(5) { transition-delay: calc(var(--rd, 0s) + .67s) !important; }

/* リンクカード（事業内容）：画像がゆっくり寄り、下辺を電流が走る */
[data-card-link] { position: relative; transition: background-color .5s; }
[data-card-link]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-blue); transform: scaleX(0); transform-origin: right center;
  transition: transform .6s var(--ease-sweep);
}
[data-card-link]:hover { background-color: #162032 !important; }
[data-card-link]:hover::after { transform: scaleX(1); transform-origin: left center; }
[data-card-link] [data-wipe][data-done] img,
[data-card-link][data-done] [data-wipe] img { transition: transform 1.2s var(--ease-out) !important; }
[data-card-link]:hover [data-wipe] img { transform: scale(1.06) !important; }
[data-card-link] .card-more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; font-family: 'Noto Sans', 'Noto Sans JP', sans-serif; font-size: 13px; letter-spacing: .12em; color: var(--c-blue-l); }
[data-card-link] .card-more i { display: block; width: 28px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
[data-card-link]:hover .card-more i { width: 48px; }

/* ---------------------------------------------------------
   ヒーロー
   --------------------------------------------------------- */
html.js-motion [data-ha="up"] { opacity: 0; }
html.is-ready [data-ha="up"] { animation: haUp 1.1s var(--ease-out) var(--hd, 0s) forwards; }
@keyframes haUp { from { opacity: 0; transform: translateY(26px) } to { opacity: 1; transform: none } }

html.js-motion [data-ha="ch"] { display: inline-block; transform: translateY(100%); clip-path: inset(-30% -10% 100% -10%); }
html.is-ready [data-ha="ch"] { animation: haCh 1.05s var(--ease-out) var(--hd, 0s) forwards; }
@keyframes haCh { to { transform: none; clip-path: inset(-30% -10% -30% -10%); } }

html.js-motion [data-ha="line"] { width: 0 !important; }
html.is-ready [data-ha="line"] { animation: haLine .9s var(--ease-sweep) var(--hd, 0s) forwards; }
@keyframes haLine { from { width: 0 } to { width: var(--lw, 96px) } }

html.js-motion [data-ha="img"] { opacity: 0; transform: scale(1.1); }
html.is-ready [data-ha="img"] { animation: haImg 2.6s var(--ease-out) var(--hd, 0s) forwards; }
@keyframes haImg { 0% { opacity: 0; transform: scale(1.1) } 40% { opacity: 1 } 100% { opacity: 1; transform: scale(1) } }

/* 下層ページのヒーロー画像はゆっくり寄っていく */
html.is-ready [data-ha="kb"] { animation: haImg 2.4s var(--ease-out) forwards, haDrift 26s ease-out 2.4s forwards; }
html.js-motion [data-ha="kb"] { opacity: 0; transform: scale(1.1); }
@keyframes haDrift { from { transform: scale(1) } to { transform: scale(1.06) } }

/* スクロール誘導：縦線の中を電気の粒が流れ落ちる */
.scroll-cue {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif; font-size: 11px; letter-spacing: .3em; color: var(--c-blue-l);
  pointer-events: none;
}
.scroll-cue > span:first-child { writing-mode: vertical-rl; }
.scroll-cue > span:last-child { position: relative; display: block; width: 1px; height: 72px; background: rgba(143, 182, 234, .25); overflow: hidden; }
.scroll-cue > span:last-child::after {
  content: ""; position: absolute; left: -2px; top: -8px; width: 5px; height: 8px; border-radius: 3px;
  background: var(--c-spark); box-shadow: 0 0 8px 1px var(--c-spark);
  animation: cueDrop 2.2s var(--ease-io) infinite;
}
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: 1 } 80% { opacity: 1 } 100% { transform: translateY(84px); opacity: 0 } }

/* ---------------------------------------------------------
   DAY TO NIGHT（スクロールで昼→夕→夜）
   --------------------------------------------------------- */
#dn-sec { height: 250vh; }
#dn-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#dn-imgs { position: absolute; inset: 0; transform: scale(calc(1.08 - var(--p, 0) * .08)); will-change: transform; }
#dn-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#dn-dusk { opacity: var(--dusk, 0); }
#dn-night { opacity: var(--night, 0); }
#dn-title { text-shadow: 0 0 calc(var(--night, 0) * 32px) rgba(143, 182, 234, calc(var(--night, 0) * .55)); }
#dn-time { font-variant-numeric: tabular-nums; }
#dn-bar { position: relative; height: 1px; background: rgba(234, 238, 245, .22); }
#dn-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--c-blue);
  box-shadow: 0 0 10px var(--c-blue); transform: scaleX(var(--p, 0)); transform-origin: left center;
}
#dn-bar > i {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--c-spark); box-shadow: 0 0 10px 2px var(--c-spark);
}
#dn-cap { transition: opacity .3s; }
@media (max-width: 760px) { #dn-sec { height: 210vh; } }

/* ---------------------------------------------------------
   STRENGTH：建物の名前が順に「点灯」する
   --------------------------------------------------------- */
.st-words { display: flex; flex-wrap: wrap; justify-content: center; gap: .2em .9em; }
.st-words > span { display: inline-block; color: #1C2638; }
.st-words[data-in] > span { animation: stOn 1.3s linear var(--rd, 0s) forwards; }
@keyframes stOn {
  0% { color: #1C2638; text-shadow: none }
  6% { color: #EAEEF5; text-shadow: 0 0 30px rgba(46, 123, 232, .9) }
  10% { color: #2A3548; text-shadow: none }
  17% { color: #EAEEF5; text-shadow: 0 0 30px rgba(46, 123, 232, .9) }
  21% { color: #3A4760; text-shadow: none }
  34%, 100% { color: #EAEEF5; text-shadow: 0 0 22px rgba(46, 123, 232, .45) }
}
html:not(.js-motion) .st-words > span { color: #EAEEF5; }

/* ---------------------------------------------------------
   施工実績スライダー
   --------------------------------------------------------- */
#works-nav button { transition: border-color .35s, color .35s, background-color .35s, opacity .35s; }
#works-nav button:hover:not(:disabled) { border-color: var(--c-blue) !important; color: #fff !important; background: rgba(46, 123, 232, .12) !important; }
#works-nav button:disabled { opacity: .3; cursor: default !important; }
.wk-count { display: flex; align-items: center; gap: 14px; font-family: 'Noto Sans', 'Noto Sans JP', sans-serif; font-size: 13px; letter-spacing: .12em; color: #6E7C93; font-variant-numeric: tabular-nums; }
.wk-count b { font-weight: 500; color: var(--c-text); }
.wk-count > i { position: relative; display: block; width: 120px; height: 1px; background: #2A3548; }
.wk-count > i::after { content: ""; position: absolute; inset: 0; background: var(--c-blue); transform-origin: left center; transform: scaleX(var(--wk, .333)); transition: transform .6s var(--ease-out); }
[data-wm-dot] { transition: width .45s var(--ease-out), background-color .45s; border-radius: 3px !important; }
[data-wm-dot][data-active="1"] { width: 22px !important; background: var(--c-blue) !important; }

/* ---------------------------------------------------------
   お問い合わせフォーム
   --------------------------------------------------------- */
#ct-root label { transition: color .3s; }
#ct-root label:focus-within { color: var(--c-text) !important; }
#ct-root input, #ct-root textarea { transition: border-color .35s, background-color .35s; }
#ct-root input:hover, #ct-root textarea:hover { border-color: #3A4A66 !important; }
#ct-root input:focus, #ct-root textarea:focus { border-color: var(--c-blue) !important; background-color: #0B1119 !important; outline: none !important; box-shadow: 0 0 0 3px rgba(46, 123, 232, .25); }
[data-kind] { position: relative; transition: border-color .35s, color .35s, background-color .35s, padding .35s; }
[data-kind][aria-pressed="true"] { border-color: var(--c-blue) !important; color: #fff !important; background: rgba(46, 123, 232, .16) !important; padding-left: 40px !important; }
[data-kind]::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 5px; margin-top: -4px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) scale(0); transition: transform .35s var(--ease-out);
}
[data-kind][aria-pressed="true"]::before { transform: rotate(-45deg) scale(1); }
[data-pop] { animation: haUp .8s var(--ease-out) both; }
[data-shake] { animation: shake .5s var(--ease-out) both; }
@keyframes shake { 0%, 100% { transform: none } 20% { transform: translateX(-6px) } 40% { transform: translateX(5px) } 60% { transform: translateX(-3px) } 80% { transform: translateX(2px) } }
.ct-tel { display: inline-flex; align-items: baseline; gap: 16px; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-family: 'Noto Sans', 'Noto Sans JP', sans-serif; }
.ct-tel small { font-size: 12px; letter-spacing: .24em; color: var(--c-blue); }
.ct-tel strong { font-size: clamp(24px, 3.4vw, 32px); font-weight: 500; letter-spacing: .06em; color: var(--c-text); transition: color .3s; }
.ct-tel:hover strong { color: var(--c-blue-l); }

/* ---------------------------------------------------------
   カスタムカーソル（マウス操作の端末だけ）
   --------------------------------------------------------- */
#cur-dot, #cur-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10001; border-radius: 50%; opacity: 0; transition: opacity .3s; }
#cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--c-blue); }
#cur-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(143, 182, 234, .55);
  transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
html.has-cursor.cur-on #cur-dot, html.has-cursor.cur-on #cur-ring { opacity: 1; }
html.has-cursor.cur-link #cur-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(46, 123, 232, .16); border-color: transparent; }
html.has-cursor.cur-link #cur-dot { opacity: 0; }
html.has-cursor.cur-text #cur-dot, html.has-cursor.cur-text #cur-ring { opacity: 0; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text !important; }

/* ---------------------------------------------------------
   ページトップ（スクロール量をリングで表示）
   --------------------------------------------------------- */
#to-top {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px));
  z-index: 55; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(8, 12, 20, .82); color: var(--c-text);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s, transform .5s var(--ease-out), visibility 0s linear .4s, background-color .3s;
}
#to-top[data-show="1"] { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease-out), background-color .3s; }
#to-top:hover { background: var(--c-blue); }
#to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#to-top circle { fill: none; stroke-width: 1.5; }
#to-top .tt-track { stroke: #253044; }
#to-top .tt-fill { stroke: var(--c-blue); stroke-linecap: round; transition: stroke .3s; }
#to-top:hover .tt-fill { stroke: #fff; }
#to-top > span { position: relative; display: block; width: 9px; height: 9px; margin-top: 4px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .4s var(--ease-out); }
#to-top:hover > span { transform: translateY(-3px) rotate(45deg); }

/* ---------------------------------------------------------
   動きを減らす設定の方には、動きを止めてすべて表示
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  #pt, #splash { display: none !important; }
  .scroll-cue { display: none; }
}
