/* 公開サイトのヘッダー(site/base.html の header.sh)。全ページ共通。
   上にいるときは背景に溶け込み、スクロールすると、すりガラスの帯になって少し低くなる(.is-scrolled は site-motion.js が付ける) */
.hd.sh{--sh-h:72px;--sh-ink:var(--fg);--sh-sub:var(--fg2);--sh-pill:color-mix(in srgb,var(--fg) 6%,transparent);--sh-grad:linear-gradient(135deg,#0A3A75 0%,#0A5FB4 55%,#2b8ad8 100%);
  position:sticky;top:0;z-index:60;background:transparent;border-bottom:1px solid transparent;backdrop-filter:none;-webkit-backdrop-filter:none;
  transition:background-color .3s ease,border-color .3s ease,box-shadow .3s ease,backdrop-filter .3s ease}
.hd.sh.is-scrolled,.hd.sh.m-open{background:color-mix(in srgb,var(--bg) 80%,transparent);border-bottom-color:color-mix(in srgb,var(--line) 85%,transparent);
  backdrop-filter:saturate(1.8) blur(18px);-webkit-backdrop-filter:saturate(1.8) blur(18px);box-shadow:0 10px 30px -22px rgba(11,31,58,.45)}
:root[data-theme=dark] .hd.sh.is-scrolled{box-shadow:0 10px 30px -18px rgba(0,0,0,.8)}
.sh-in{max-width:1240px;margin:0 auto;padding:0 24px;height:var(--sh-h);display:flex;align-items:center;gap:18px;transition:height .3s ease}
.hd.sh.is-scrolled .sh-in{height:60px}
.hd.sh.m-open{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--bg)}   /* すりガラスは、中の固定位置のメニューの基準を変えてしまうので、開いている間は止める */
.sh .ic{width:18px;height:18px;flex:none}
.sh svg:not(.ic){fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ロゴ */
.sh-logo{display:inline-flex;align-items:center;flex:none;border-radius:10px;padding:4px 2px}
.sh-logo img{display:block;width:auto;height:50px;transition:height .3s ease}
.hd.sh.is-scrolled .sh-logo img{height:44px}
.sh-logo .lg-dk,.logo.wm .lg-dk{display:none}:root[data-theme=dark] .sh-logo .lg-lt,:root[data-theme=dark] .logo.wm .lg-lt{display:none}:root[data-theme=dark] .sh-logo .lg-dk,:root[data-theme=dark] .logo.wm .lg-dk{display:block}  /* ラクダ郎の3段のロゴ: ダークは白抜き */
.sh-logo:hover{text-decoration:none;opacity:.9}

/* メニュー(パソコン): 丸いレールの上に、項目を並べる */
.sh-nav{flex:1;display:flex;justify-content:center;min-width:0}
.sh-menu{list-style:none;margin:0;padding:4px;display:flex;align-items:center;gap:2px;border-radius:999px;background:var(--sh-pill);border:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.sh-menu>li{position:relative}
.sh-l{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 15px;border:0;border-radius:999px;background:none;
  font:inherit;font-size:14px;font-weight:600;color:var(--sh-sub);cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s}
.sh-l:hover,.sh-dd.open>.sh-l{color:var(--sh-ink);background:color-mix(in srgb,var(--card) 92%,transparent);text-decoration:none}
.sh-l.on,.sh-dd.on>.sh-l{color:var(--pri);background:var(--card);box-shadow:0 1px 2px rgba(11,31,58,.08),0 4px 12px -6px rgba(11,31,58,.18);font-weight:800}
:root[data-theme=dark] .sh-l.on,:root[data-theme=dark] .sh-dd.on>.sh-l{color:#9cc9f3}
.sh-chev{width:14px;height:14px;stroke-width:2.6;transition:transform .25s ease;opacity:.7}
.sh-dd.open .sh-chev{transform:rotate(180deg)}
.sh-l:focus-visible,.sh-act a:focus-visible,.sh-act button:focus-visible,.sh-pan a:focus-visible,.sh-m a:focus-visible,.sh-logo:focus-visible{outline:2.5px solid var(--pri);outline-offset:2px}

/* ドロップダウンのパネル */
.sh-pan{position:absolute;top:calc(100% + 14px);left:50%;z-index:70;min-width:300px;padding:16px;border-radius:20px;background:var(--card);border:1px solid var(--line);
  box-shadow:0 30px 60px -20px rgba(11,31,58,.35),0 8px 18px -10px rgba(11,31,58,.18);
  opacity:0;visibility:hidden;transform:translate(-50%,-6px) scale(.98);transform-origin:top center;transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
.sh-pan::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px}   /* パネルまでマウスを動かしても閉じない */
.sh-pan::after{content:"";position:absolute;top:-7px;left:50%;width:14px;height:14px;background:var(--card);border-left:1px solid var(--line);border-top:1px solid var(--line);transform:translateX(-50%) rotate(45deg);border-radius:3px 0 0 0}
.sh-dd.open>.sh-pan{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1);transition:opacity .2s ease,transform .2s ease,visibility 0s}
:root[data-theme=dark] .sh-pan{box-shadow:0 30px 60px -20px rgba(0,0,0,.85)}
.sh-cap{display:block;font-size:11.5px;font-weight:800;letter-spacing:.12em;color:var(--muted);margin:2px 10px 8px}
.sh-pan a,.sh-m-grid a{display:flex;align-items:flex-start;gap:12px;padding:10px;border-radius:12px;color:var(--sh-ink);text-decoration:none;transition:background .15s}
.sh-pan a:hover,.sh-pan a.on{background:color-mix(in srgb,var(--pri) 7%,transparent);text-decoration:none}
.sh-pan a>.ic{margin-top:2px;width:20px;height:20px;padding:7px;box-sizing:content-box;border-radius:10px;background:color-mix(in srgb,var(--pri) 9%,transparent);color:var(--pri)}
.sh-pan a span{display:grid;gap:1px;min-width:0}
.sh-pan b{font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:7px}
.sh-pan small{font-size:12px;color:var(--muted);font-weight:500}

/* 製品のパネル: 左に3つの製品、右に「はじめての方へ」 */
.sh-pan-prod{width:min(720px,calc(100vw - 48px));display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.sh-prods{display:grid;gap:6px}
.sh-prod{display:flex;align-items:center;gap:14px;padding:12px 14px!important;border-radius:16px!important;border:1px solid transparent;background:none}
.sh-prod:hover,.sh-prod.on{border-color:color-mix(in srgb,var(--c) 30%,transparent);background:color-mix(in srgb,var(--c) 8%,transparent)!important}
.sh-prod img{width:40px;height:40px;border-radius:12px;flex:none;box-shadow:0 8px 18px -8px color-mix(in srgb,var(--c) 80%,transparent)}
.sh-prod.tk{--c:#0A5FB4}.sh-prod.ik{--c:#059669}.sh-prod.gi{--c:#d97706}
.sh-side{border-left:1px solid var(--line);padding-left:12px;display:flex;flex-direction:column;gap:2px}
.sh-side a>.ic{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--sh-sub)}
.sh-trial{margin-top:auto;justify-content:center;align-items:center!important;gap:6px!important;font-weight:800;font-size:14px;color:#fff!important;background:var(--sh-grad)!important;border-radius:999px!important;padding:11px 14px!important;box-shadow:0 10px 20px -12px rgba(10,95,180,.9)}
.sh-trial:hover{filter:brightness(1.07)}
.sh-pan a.sh-trial>.ic{width:16px;height:16px;padding:0;margin:0;background:none;color:inherit;border-radius:0}

/* 情報・サポートのパネル: 2列 */
.sh-pan-res{width:min(600px,calc(100vw - 48px));display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sh-col+.sh-col{border-left:1px solid var(--line);padding-left:6px}

/* 稼働状況の点 */
.sh-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px color-mix(in srgb,#16a34a 22%,transparent);flex:none;margin-left:6px}
.sh-dot.s-maintenance{background:#2563eb;box-shadow:0 0 0 3px color-mix(in srgb,#2563eb 22%,transparent)}
.sh-dot.s-degraded,.sh-dot.s-partial{background:#f59e0b;box-shadow:0 0 0 3px color-mix(in srgb,#f59e0b 25%,transparent)}
.sh-dot.s-major{background:#e11d48;box-shadow:0 0 0 3px color-mix(in srgb,#e11d48 25%,transparent)}
.sh-l .sh-dot{margin:0 0 0 2px}

/* 右側: ダーク切替・お問い合わせ(従)・ログイン・主ボタン */
.sh-act{display:flex;align-items:center;gap:6px;flex:none}
.sh-ico{appearance:none;-webkit-appearance:none;width:40px;height:40px;display:inline-grid;place-items:center;padding:0;margin:0;border-radius:999px;border:1px solid transparent;background:none;color:var(--sh-sub);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.sh-ico:hover{background:var(--sh-pill);color:var(--sh-ink)}
.sh-ico svg{width:19px;height:19px}
.themebtn .i-sun{display:none}:root[data-theme=dark] .themebtn .i-sun{display:block}:root[data-theme=dark] .themebtn .i-moon{display:none}
.sh-contact,.sh-login{display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:700;color:var(--sh-ink);white-space:nowrap;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
.sh-contact{border:1px solid var(--line2);background:color-mix(in srgb,var(--card) 70%,transparent)}
.sh-contact:hover,.sh-contact.on{border-color:var(--pri);color:var(--pri);text-decoration:none}
.sh-login:hover{background:var(--sh-pill);text-decoration:none}
.sh-cta{position:relative;display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 18px 0 20px;border-radius:999px;font-size:14px;font-weight:800;color:#fff!important;white-space:nowrap;text-decoration:none!important;
  background:var(--sh-grad);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 10px 22px -12px rgba(10,95,180,.95);transition:transform .2s ease,box-shadow .2s ease,filter .2s}
.sh-cta .ic{width:16px;height:16px;transition:transform .2s ease}
.sh-cta:hover{filter:brightness(1.07);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 14px 26px -12px rgba(10,95,180,1)}
.sh-cta:hover .ic{transform:translateX(3px)}
.sh-burger{display:none;position:relative}
.sh-burger span{position:absolute;left:11px;right:11px;height:2px;border-radius:2px;background:currentColor;transition:transform .25s ease,opacity .2s ease,top .25s ease}
.sh-burger span:nth-child(1){top:13px}.sh-burger span:nth-child(2){top:19px}.sh-burger span:nth-child(3){top:25px}
.sh-burger[aria-expanded=true] span:nth-child(1){top:19px;transform:rotate(45deg)}
.sh-burger[aria-expanded=true] span:nth-child(2){opacity:0}
.sh-burger[aria-expanded=true] span:nth-child(3){top:19px;transform:rotate(-45deg)}

/* スマホ・タブレットのメニュー(下に広がるシート) */
.sh-m{position:fixed;left:0;right:0;top:var(--sh-top,72px);bottom:0;z-index:59;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);border-top:1px solid var(--line);
  animation:sh-down .25s ease both}
.sh-m[hidden]{display:none}
@keyframes sh-down{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.sh-m-in{max-width:720px;margin:0 auto;padding:18px 20px calc(24px + env(safe-area-inset-bottom))}
.sh-m .sh-cap{margin:6px 4px 8px}
.sh-m-prods{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.sh-m-prods .sh-prod{flex-direction:column;align-items:flex-start;gap:8px;padding:12px!important;border:1px solid var(--line);color:var(--sh-ink);text-decoration:none}
.sh-m-prods .sh-prod img{width:36px;height:36px}
.sh-m-prods .sh-prod span{display:grid;gap:2px}
.sh-m-prods b{font-size:15px}
.sh-m-prods small{font-size:11.5px;color:var(--muted);line-height:1.4}
.sh-m-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;padding-top:10px;border-top:1px solid var(--line)}
.sh-m-grid a{align-items:center;padding:11px 8px;font-size:15.5px;font-weight:600}
.sh-m-grid a:hover,.sh-m-grid a.on{background:color-mix(in srgb,var(--pri) 7%,transparent)}
.sh-m-grid a.on{color:var(--pri);font-weight:800}
.sh-m-grid a .ic{width:19px;height:19px;color:var(--pri)}
.sh-m-foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.sh-m-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:48px;border-radius:999px;font-weight:800;font-size:15px;color:#fff!important;background:var(--sh-grad);text-decoration:none!important}
.sh-m-btn.sec{background:var(--card);color:var(--sh-ink)!important;border:1px solid var(--line2)}
.sh-m-btn:last-child:nth-child(odd){grid-column:1/-1}
.sh-m-btn .ic{width:17px;height:17px}
html.sh-lock,html.sh-lock body{overflow:hidden}

/* 幅ごとの出し分け */
@media(max-width:1180px){.sh-login{display:none}.sh-l{padding:0 12px}}
@media(max-width:1060px){
  .sh-nav,.sh-contact{display:none}
  .sh-burger{display:inline-grid}
  .sh-in{justify-content:space-between}
  .sh-act{margin-left:auto}
}
@media(max-width:600px){
  .hd.sh{--sh-h:62px}
  .sh-in{padding:0 12px 0 16px;gap:8px}
  .hd.sh.is-scrolled .sh-in{height:56px}
  .sh-logo img,.hd.sh.is-scrolled .sh-logo img{height:40px}  /* スマホは2段(説明の行なし。picture で切り替え) */
  .sh-act{gap:2px}
  .sh-cta{height:38px;padding:0 14px;font-size:13px}
  .sh-cta .ic{display:none}
  .sh-m-in{padding:14px 16px calc(20px + env(safe-area-inset-bottom))}
  .sh-m-prods{grid-template-columns:1fr}
  .sh-m-prods .sh-prod{flex-direction:row;align-items:center}
  .sh-m-grid{grid-template-columns:1fr}
}
@media(max-width:360px){.sh-act .themebtn{display:none}}
@media(prefers-reduced-motion:reduce){.hd.sh,.sh-in,.sh-logo img,.sh-pan,.sh-cta,.sh-cta .ic,.sh-chev,.sh-burger span{transition:none}.sh-m{animation:none}}
@media print{.hd.sh{position:static;background:none;box-shadow:none}.sh-act,.sh-nav,.sh-m{display:none}}
