/* 医療従事者向けの製品の鍵のカード（company/block/_medical-lock.blade.php・2026-11-20 モック Q2・確認は案B）
   PC：製品のカードと同じ白いカード（角丸・影は製品のカードの指定を共有）。携帯：高さ56pxの帯。
   押すと、カードがその場で確認に変わる（画面を暗くしない）。テーマの色に合わせる。 */
.cpm-lock{ --cpm-wash:color-mix(in srgb, var(--theme-p2, #0E5A78) 7%, #fff); --cpm-ink:var(--theme-p2, #0E5A78); }
.cpm-lock__card{ position:relative; }
.cpm-lock__face{ display:flex; flex-direction:column; width:100%; height:100%; padding:0; border:0; background:transparent; text-align:left; color:inherit; cursor:pointer; }
.cpm-lock__face:focus-visible{ outline:3px solid var(--theme-p3, #1591B3); outline-offset:2px; border-radius:11px; }
.cpm-lock__pic{ display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; margin:8px 8px 0; aspect-ratio:2 / 1; border-radius:.5rem; background:var(--cpm-wash); color:var(--cpm-ink); }
.cpm-lock__pic i{ font-size:56px; }
.cpm-lock__pic b{ font-size:28px; line-height:1; }
.cpm-lock__ttl{ display:block; padding:24px 16px 0; font-size:20px; font-weight:700; color:#111; }
.cpm-lock__go{ display:block; margin:auto 16px 16px; color:#fff; text-align:left; }
/* 確認（押したあと） */
.cpm-lock__ask{ display:flex; flex-direction:column; justify-content:center; height:100%; padding:22px 18px 18px; text-align:center; animation:cpm-in .15s ease-out; }
.cpm-lock__ask[hidden]{ display:none; }
.cpm-lock.is-asking .cpm-lock__face{ display:none; }
.cpm-lock__askic{ width:56px; height:56px; margin:0 auto 12px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb, var(--theme-p2, #0E5A78) 10%, #fff); color:var(--cpm-ink); font-size:24px; }
.cpm-lock__q{ margin:0 0 6px; font-size:19px; font-weight:800; line-height:1.4; color:#111; }
.cpm-lock__t{ margin:0 0 18px; font-size:13.5px; line-height:1.7; color:#5A6572; }
.cpm-lock__acts{ display:flex; flex-direction:column; gap:10px; margin:0; }
.cpm-lock__acts button{ min-height:48px; border-radius:999px; font-weight:700; font-size:15px; cursor:pointer; transition:transform .05s ease, box-shadow .15s ease, background .15s ease; }
.cpm-lock__acts button:active{ transform:scale(.98); }
.cpm-lock__acts button:focus-visible{ outline:3px solid var(--theme-p3, #1591B3); outline-offset:2px; }
.cpm-lock__yes{ border:0; color:#fff; background:linear-gradient(120deg, var(--theme-p1, #0A1F3C), var(--theme-p2, #0E5A78)); box-shadow:0 6px 16px -8px color-mix(in srgb, var(--theme-p2, #0E5A78) 70%, transparent); }
.cpm-lock__yes:hover{ box-shadow:0 8px 20px -8px color-mix(in srgb, var(--theme-p2, #0E5A78) 80%, transparent); }
.cpm-lock__no{ background:#fff; color:#3d4651; border:1.5px solid #d6dbe1; }
.cpm-lock__no:hover{ border-color:var(--theme-p3, #1591B3); }
.cpm-lock__acts button[disabled]{ opacity:.6; cursor:progress; }
/* 携帯の帯 */
.cpm-lock--mob{ margin-top:4px; }
.cpm-lock--mob .cpm-lock__face{ flex-direction:row; align-items:center; gap:10px; min-height:56px; padding:0 14px; border-radius:11px; background:var(--cpm-wash); color:var(--cpm-ink); font-weight:700; }
.cpm-lock--mob .cpm-lock__ttl{ flex:1 1 auto; min-width:0; padding:0; font-size:15px; }
.cpm-lock--mob .cpm-lock__n{ font-size:17px; }
.cpm-lock--mob .cpm-lock__ask{ margin-top:0; padding:18px 14px 14px; border-radius:11px; background:#fff; box-shadow:rgba(0,0,0,.05) 0 0 20px 0; }
@keyframes cpm-in{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){ .cpm-lock__ask{ animation:none; } .cpm-lock__acts button{ transition:none; } }
html[data-theme="dark"] .cpm-lock__ttl, html[data-theme="dark"] .cpm-lock__q{ color:var(--cp-ink, #e8eef5); }
html[data-theme="dark"] .cpm-lock--mob .cpm-lock__ask, html[data-theme="dark"] .cpm-lock__no{ background:var(--cp-surface-2, #1d2530); color:var(--cp-ink, #e8eef5); }
