/* ===================== BASE / GLOBALS (LIGHT THEME) ===================== */
html,body{scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;background:#F6F7FC;color:#10122B;font-family:'Plus Jakarta Sans','Noto Sans JP',sans-serif;overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

@keyframes fadeUp{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.material-symbols-outlined{font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;user-select:none}
.show-lt-1024{display:none}
.show-lt-768{display:none}
image-slot{display:block;width:100%;height:auto}

#shot-reports,#shot-security{aspect-ratio:16/11}

/* Shared screenshot slot */
.shot-img{display:block;width:100%}

/* Scroll-reveal helpers */
.reveal{animation-name:var(--reveal,fadeUp);animation-duration:1ms;animation-timing-function:ease-out;animation-fill-mode:both;animation-timeline:view()}
.reveal--18{animation-range:entry 0% cover 18%}
.reveal--22{animation-range:entry 0% cover 22%}
.reveal--30{animation-range:entry 0% cover 30%}

@media (max-width:1023px){.hide-lt-1024{display:none !important}.show-lt-1024{display:inline-flex !important}}
@media (max-width:767px){.hide-lt-768{display:none !important}.show-lt-768{display:inline-flex !important}.cta-btn{width:100% !important}.pad-x{padding-left:12px !important;padding-right:12px !important}}

/* ===================== NAVBAR ===================== */
.navbar{position:relative;z-index:60;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);background:rgba(246,247,252,0.78);border-bottom:1px solid rgba(16,18,43,0.08)}
.nav__inner{max-width:1325px;margin:0 auto;height:95px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 32px}
.nav__brand{display:flex;align-items:center;gap:14px;min-width:0}
.nav__logo{height:55px;width:235px;object-fit:contain;display:block}
/* the logo links to the corporate site */
.nav__brand-corp{display:flex;align-items:center;min-width:0}
.nav__divider{width:1px;height:28px;background:rgba(16,18,43,0.18)}
.nav__product{display:flex;align-items:center;gap:10px;min-width:0}
.nav__product-logo{height:44px;width:44px;object-fit:contain;display:block}
.nav__product-name{font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-weight:600;font-size:20px;letter-spacing:0.02em;white-space:nowrap}
.nav__links{display:flex;align-items:center;gap:6px}
.nav__link{background:none;border:none;cursor:pointer;font-family:inherit;font-size:15px;font-weight:500;color:rgba(16,18,43,0.62);padding:12px 13px;min-height:44px;border-radius:8px;transition:color 0.2s}
.nav__link:hover{color:color-mix(in oklab, var(--accent,#5176FE) 80%, #10122B)}
.nav__actions{display:flex;align-items:center;gap:12px}
/* Material Symbols icon helper */
.cis-icon{font-family:'Material Symbols Outlined';font-weight:400;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.cis-icon--16{font-size:16px}
.cis-icon--muted{color:#94A3B8}
/* Language menu (dropdown) */
.cis-langmenu{position:relative}
.cis-langbtn{border:1px solid #E2E8F0;cursor:pointer;font-family:inherit;background:#fff;padding:10px 10px;border-radius:35px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:600;color:#0F172A;box-shadow:0 1px 3px rgba(15,23,42,0.06);height:45px;width:85px}
/* Down chevron inside the language button: fixed 10x10 */
.cis-langbtn .cis-icon{font-size:10px;width:10px;height:10px}
.cis-langmenu__dropdown{position:absolute;top:calc(100% + 4px);right:0;background:#fff;border:1px solid #E2E8F0;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,0.12);overflow:hidden;z-index:200;min-width:130px}
.cis-langmenu__item{display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;font-size:13px;font-weight:600;color:#0F172A}
.cis-langmenu__divider{height:1px;background:#F1F5F9;margin:0 8px}
/* Drawer variant: keep the button compact and open the dropdown from the left edge */
.cis-langmenu--drawer{}
.cis-langmenu--drawer .cis-langmenu__dropdown{left:0;right:auto}
/* Smartphone only: pill-shaped, fixed-size language button */
@media (max-width:767px){
  /* Drawer language button keeps the larger touch-friendly size */
  .cis-langmenu--drawer .cis-langbtn{border:1px solid #E2E8F0;cursor:pointer;font-family:inherit;background:#fff;padding:10px 10px;border-radius:35px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:600;color:#0F172A;box-shadow:0 1px 3px rgba(15,23,42,0.06);height:54px;width:108px}
  /* Navbar shows language + CTA (no hamburger) on phone/tablet — compact so it fits */
  .nav__inner{gap:8px;height:64px}
  .nav__actions{gap:8px;width:170.73px;height:40px}
  .nav__logo{width:162.36px;height:38px}
  .nav__actions .cis-langbtn{height:40px;width:66px;padding:0 14px;font-size:13px}
  .nav__actions .nav__cta{width:96.73px;height:40px;min-height:0;padding:9px 12px;font-size:12px}
}
/* Ultra-narrow phones (e.g. Galaxy Z Fold 5 cover screen ~344px): shrink the logo
   so logo + language + CTA still fit on one row without breaking the layout */
@media (max-width:360px){
  .nav__logo{width:140px;height:33px}
  .nav__actions{width:156px}
  .nav__actions .cis-langbtn{width:60px;padding:0 10px}
  .nav__actions .nav__cta{width:88px;font-size:11px;padding:9px 8px}
  /* Extra specificity (0,2,0) so it wins over the phone-wide .hero__sub{13.5px}
     rule that comes later in the file (equal specificity would lose by order) */
  .hero__inner .hero__sub{font-size:13px}
}
.nav__cta{display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(96deg, var(--accent, #5176FE), color-mix(in oklab, var(--accent, #5176FE) 72%, #10122B));
    color: #FFFFFF;
    transition: filter 0.25s, transform 0.25s;
    box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--accent, #5176FE) 65%, transparent);
    width: 155px;
    height: 45px;
    white-space: nowrap;
}
.nav__cta:hover{filter:brightness(1.08);transform:translateY(-1px)}
.nav__menu-btn{align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid rgba(16,18,43,0.12);background:#FFFFFF;cursor:pointer;color:#10122B}
.nav__menu-btn .material-symbols-outlined{font-size:24px}

/* ===================== HERO ===================== */
.hero{position:relative;overflow:hidden}
.hero__glow{position:absolute;top:-160px;left:50%;transform:translateX(-50%);width:960px;max-width:120vw;height:620px;background:radial-gradient(closest-side, color-mix(in oklab, var(--accent,#5176FE) 26%, transparent), transparent 72%);opacity:calc(0.5 * var(--glow,1));filter:blur(30px);pointer-events:none}
.hero__dots{position:absolute;top:40px;left:50%;transform:translateX(-50%);width:560px;max-width:86vw;height:300px;background-image:radial-gradient(rgba(16,18,43,0.12) 0.8px, transparent 0.9px);background-size:16px 16px;-webkit-mask-image:radial-gradient(closest-side, black, transparent);mask-image:radial-gradient(closest-side, black, transparent);pointer-events:none}
.hero__inner{position:relative;max-width:1325px;margin:0 auto;padding:32px 32px 0;text-align:center}
.hero__eyebrow{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:999px;border:1px solid rgba(16,18,43,0.12);background:rgba(255,255,255,0.7);font-size:14px;font-weight:500;letter-spacing:0.16em;text-transform:uppercase;color:black}
.hero__eyebrow-dot{width:6px;height:6px;border-radius:50%;background:linear-gradient(96deg, var(--accent,#5176FE), color-mix(in oklab, var(--accent,#5176FE) 72%, #10122B));display:inline-block}
/* Narrow phones (Galaxy Z Fold cover screen 344px, Galaxy S8+ 360px, iPhone SE gen 1
   320px): TIME & ATTENDANCE PLATFORM is 16.21em of glyphs, so at 14px + 0.16em tracking
   the pill measures 18+6+8+285+18+2 = 337px — wider than the 12px .pad-x column (320px
   at 344px viewport) and it wrapped to two lines. 12.5px + 0.1em tracking + 14px side
   padding brings it to 279px, which clears even the 296px column at 320px. EN only:
   勤怠管理プラットフォーム is 11 full-width glyphs (~231px pill) and never wrapped. */
@media (max-width:374px){
  html[lang="en"] .hero__eyebrow{font-size:12.5px;letter-spacing:0.1em;padding:9px 14px}
}
.hero__title{font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-size:clamp(32px,4.8vw,64px);line-height:1.16;font-weight:700;letter-spacing:0.005em;margin:26px auto 20px;text-wrap:pretty;white-space:pre-line}
/* desktop: hero title fixed to 44px */
@media (min-width:1024px){.hero__title{font-size:44px}}
/* iPad (tablet portrait 768-1023px): hero title fixed to 28px */
@media (min-width:768px) and (max-width:1023px){.hero__title{font-size:28px}}
/* phone (<=767px): hero title fixed to 25px */
@media (max-width:767px){.hero__title{font-size:25px}}
.hero__sub{font-size:clamp(15.5px,1.4vw,18px);line-height:1.9;color:rgba(16,18,43,0.62);max-width:640px;margin:0 auto 30px;text-wrap:pretty;white-space:pre-line}
/* EN only: its first line (up to the em dash) is ~655px, so 640px would wrap it and
   turn the intended two lines into three. JA lines are shorter and stay at 640px. */
@media (min-width:768px){html[lang="en"] .hero__sub{max-width:700px}}
.hero__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.hero__cta-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;cursor:pointer;text-decoration:none;font-family:inherit;font-size:16px;font-weight:600;padding:15px 32px;min-height:52px;border-radius:999px;background:linear-gradient(96deg, var(--accent,#5176FE), color-mix(in oklab, var(--accent,#5176FE) 72%, #10122B));color:#FFFFFF;transition:filter 0.25s,transform 0.25s;box-shadow:0 16px 34px -16px color-mix(in oklab, var(--accent,#5176FE) 70%, transparent)}
.hero__cta-primary:hover{filter:brightness(1.08);transform:translateY(-2px)}
.hero__cta-primary .material-symbols-outlined{font-size:19px}
.hero__cta-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-family:inherit;font-size:16px;font-weight:500;padding:15px 32px;min-height:52px;border-radius:999px;border:1px solid rgba(16,18,43,0.16);background:#FFFFFF;color:#10122B;transition:border-color 0.25s,background 0.25s}
.hero__cta-secondary:hover{border-color:rgba(16,18,43,0.34);background:rgba(16,18,43,0.03)}
.hero__shot{position:relative;margin:40px auto 0;}
.hero__shot-glow{position:absolute;inset:8% 6% -4%;background:radial-gradient(closest-side, color-mix(in oklab, var(--accent,#5176FE) 24%, transparent), transparent 75%);opacity:calc(0.55 * var(--glow,1));filter:blur(46px);pointer-events:none}
.hero__shot-frame{position:relative;padding:14px;border-radius:24px;background:#FFFFFF;border:1px solid rgba(16,18,43,0.10);box-shadow:0 40px 120px -40px rgba(49,64,144,0.35)}
.hero__shot-fade{position:absolute;left:-2px;right:-2px;bottom:-2px;height:42%;background:linear-gradient(to bottom, rgba(246,247,252,0) 0%, #F6F7FC 94%);pointer-events:none}

/* ===================== MARQUEE ===================== */
.marquee{overflow:hidden;padding:24px 0 24px}
.marquee__track{display:flex;width:max-content;animation:marquee 42s linear infinite;animation-play-state:var(--anim,running)}
.marquee__text{white-space:nowrap;flex:none;font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-weight:700;font-size:clamp(44px,6.5vw,86px);color:rgba(16,18,43,0.07);letter-spacing:0.02em}

/* ===================== SECTION HEAD (shared) ===================== */
.section-head{position:relative;text-align:center;margin-bottom:52px}
.section-head__dots{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:440px;max-width:82vw;height:230px;background-image:radial-gradient(rgba(16,18,43,0.12) 0.8px, transparent 0.9px);background-size:16px 16px;-webkit-mask-image:radial-gradient(closest-side, black, transparent);mask-image:radial-gradient(closest-side, black, transparent);pointer-events:none}
.section-head__eyebrow{position:relative;display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:999px;border:1px solid rgba(16,18,43,0.12);background:rgba(255,255,255,0.7);font-size:14px;font-weight:500;letter-spacing:0.16em;text-transform:uppercase;color:black}
.section-head__eyebrow-dot{width:6px;height:6px;border-radius:50%;background:linear-gradient(96deg, var(--accent,#5176FE), color-mix(in oklab, var(--accent,#5176FE) 72%, #10122B));display:inline-block}
.section-head__title{position:relative;font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-size:clamp(28px,3.2vw,44px);font-weight:700;margin:18px 0 0;letter-spacing:0.005em}

/* ===================== FEATURES ===================== */
.features{max-width:1362px;margin:0 auto;padding:32px 40px}
/* min(310px,100%) not a bare 310px: below ~334px the track would stay 310px and
   the cards would spill past the 12px .pad-x gutter, clipped by body overflow-x. */
.features__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:22px}
.feature-card{position:relative;padding:30px 28px;border-radius:20px;background-color:#FFFFFF;border:1px solid rgba(16,18,43,0.09);box-shadow:0 14px 40px -22px rgba(49,64,144,0.22);background-image:radial-gradient(rgba(16,18,43,0.05) 0.8px, transparent 0.9px);background-size:15px 15px;transition:transform 0.3s,border-color 0.3s,box-shadow 0.3s}
.feature-card:hover{transform:translateY(-4px);border-color:color-mix(in oklab, var(--accent,#5176FE) 35%, rgba(16,18,43,0.12));box-shadow:0 22px 52px -22px rgba(49,64,144,0.32)}
.feature-card__head{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.feature-card__icon-box{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:13px;border:1px solid color-mix(in oklab, var(--accent,#5176FE) 22%, rgba(16,18,43,0.08));background:color-mix(in oklab, var(--accent,#5176FE) 8%, #FFFFFF);flex-shrink:0}
.feature-card__icon{font-size:27px;background:linear-gradient(96deg, var(--accent,#5176FE), color-mix(in oklab, var(--accent,#5176FE) 60%, #10122B));-webkit-background-clip:text;background-clip:text;color:transparent}
.feature-card__title{font-size:18.5px;font-weight:700;margin:0;font-family:'Plus Jakarta Sans','Noto Sans JP',sans-serif}
/* pre-line so a \n in the copy breaks the line. Kept on at every width on purpose:
   with white-space:normal the \n would collapse into a visible space between two
   Japanese sentences (記録し、 一覧で確認。). Cards without a \n are unaffected. */
.feature-card__desc{font-size:15px;line-height:1.85;color:rgba(16,18,43,0.62);margin:0;text-wrap:pretty;white-space:pre-line}

/* ===================== DEEP DIVE (kiosk / reports) ===================== */
.deepdive{max-width:1362px;margin:0 auto;padding:50px 32px}
.deepdive__row{display:flex;flex-wrap:wrap;align-items:center;gap:52px}
.deepdive__row--reverse{flex-direction:row-reverse}
.deepdive__text{flex:1 1 360px;min-width:0}
.deepdive__tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.deepdive__tab{padding:7px 13px;border-radius:9px;border:1px solid rgba(16,18,43,0.12);background:#FFFFFF;font-size:12.5px;font-weight:500;color:rgba(16,18,43,0.62)}
/* desktop: deep-dive mock tab labels fixed to 14px */
@media (min-width:1024px){.deepdive__tab{font-size:14px}}
.deepdive__title{font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-size:clamp(26px,2.7vw,36px);font-weight:700;line-height:1.3;margin:0 0 16px;text-wrap:pretty}
.deepdive__desc{font-size:16px;line-height:1.95;color:rgba(16,18,43,0.62);margin:0 0 26px;text-wrap:pretty}
/* phone (<=767px): deep-dive descriptions fixed to 15px */
@media (max-width:767px){.deepdive__desc{font-size:15px}}
.deepdive__link{display:inline-flex;align-items:center;gap:7px;background:none;border:none;padding:10px 0;min-height:44px;cursor:pointer;text-decoration:none;font-family:inherit;font-size:15.5px;font-weight:600;color:color-mix(in oklab, var(--accent,#5176FE) 82%, #10122B);transition:gap 0.25s}
.deepdive__link:hover{gap:12px}
.deepdive__link .material-symbols-outlined{font-size:19px}
.deepdive__media{flex:1.15 1 420px;min-width:0;position:relative}
.deepdive__media-glow{position:absolute;inset:12% 8%;background:radial-gradient(closest-side, color-mix(in oklab, var(--accent,#5176FE) 20%, transparent), transparent 75%);opacity:calc(0.5 * var(--glow,1));filter:blur(42px);pointer-events:none}
.deepdive__media-frame{position:relative;padding:13px;border-radius:22px;}

/* ===================== KIOSK MOCK (platform-visual, ported from CIS_landing_page) ===================== */
/* All child sizes are in em so the whole device scales via the stage font-size. */
.platform-visual{
  /* Local design tokens for the ported mock */
  --brand-primary:#2563EB;
  --brand-accent:#06B6D4;
  --brand-indigo:#4338CA;
  --brand-gradient:linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  --text-strong:#0F172A;
  --text-muted:#64748B;
  --text-subtle:#94A3B8;
  --text-soft:#475569;
  --surface-alt:#F8FAFC;
  --border:#E2E8F0;
  --line:#F1F5F9;
  --blue-100:#DBEAFE;
  --blue-700:#1D4ED8;
  --indigo-50:#EEF2FF;
  --success:#16A34A;
  --success-bg:#DCFCE7;
  --device-shell-top:#48484A;
  --device-shell-bottom:#3A3A3C;
  --device-camera:#2D2D30;
  --device-home:#2A2A2E;
  --clip-top:#D4D4D8;
  --clip-bottom:#A8A8B0;
  flex:1 1 360px;min-width:280px;display:flex;justify-content:center;
}

.msym{font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased;font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;user-select:none}
.u-center{text-align:center}

@keyframes kioskShellFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-.5em)}}
@keyframes kioskBadgeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-.625em)}}
@keyframes kioskScanPulse{0%,100%{box-shadow:0 0 0 0 rgba(6,182,212,0)}50%{box-shadow:0 0 0 .5em rgba(6,182,212,.18)}}
@keyframes kioskScanLine{0%{top:8%;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:90%;opacity:0}}
@keyframes kioskPopCheck{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
@keyframes kioskRiseIn{0%{transform:translateY(.5em);opacity:0}100%{transform:translateY(0);opacity:1}}

.kiosk-stage{position:relative;width:32.5em;height:35em}
.kiosk-stage--fluid{font-size:clamp(8px, 2.4vw, 12px)}

.kiosk__shell{
  position:absolute;
  left:0;
  bottom:0;
  /* Scale the whole device via font-size so its height fills the .kiosk-stage frame (35em).
     Intrinsic content height is ~18.69em, so 35 / 18.69 ≈ 1.87. All child sizes are in em
     and scale proportionally, keeping the device's aspect ratio intact. */
  font-size:1.87em;
  /* Widened for a chunkier tablet (iPad) look with even side bezels; height is
     unchanged so the font-size height-fill scaling above stays valid. */
  width:14.875em;
  background:linear-gradient(155deg, var(--device-shell-top), var(--device-shell-bottom));
  border-radius:1.75em;
  padding:0.6875em 0.6875em 0.625em;
  box-shadow:0 30px 64px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.07), inset -1px 0 0 rgba(255,255,255,.04);
  animation:kioskShellFloat 6s ease-in-out infinite;
}
.kiosk__camera{display:flex;justify-content:center;align-items:center;height:0.8125em;margin-bottom:0.1875em}
.kiosk__camera-dot{width:0.4375em;height:0.4375em;border-radius:50%;border:0.3125em solid var(--device-camera);box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}

.kiosk__screen{width:13.5em;height:15.25em;background:#fff;border-radius:0.75em;overflow:hidden;position:relative}
.kiosk__topbar{display:flex;align-items:center;justify-content:space-between;padding:0.5625em 0.6875em;border-bottom:0.0625em solid var(--border)}
.kiosk__brand{display:flex;align-items:center;gap:0.375em}
.kiosk__logo{width:1.25em;height:1.25em;object-fit:contain}
.kiosk__brand-name{font-size:0.65625em;font-weight:700;color:var(--text-strong)}
.kiosk__time{font-size:0.625em;font-weight:600;color:var(--text-muted);font-variant-numeric:tabular-nums}

.kiosk__scene{position:relative;height:10.6875em;overflow:hidden}

/* idle / scan view */
.kiosk-idle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75em;padding:0.5em 0.75em}
.scan-box{width:7em;height:7em;border-radius:0.875em;background:var(--line);overflow:hidden;position:relative}
.scan-corner{position:absolute;width:1.375em;height:1.375em}
.scan-corner--tl{left:0.5em;top:0.5em;border-top:0.15625em solid var(--brand-primary);border-left:0.15625em solid var(--brand-primary);border-radius:0.3125em 0 0 0}
.scan-corner--tr{right:0.5em;top:0.5em;border-top:0.15625em solid var(--brand-primary);border-right:0.15625em solid var(--brand-primary);border-radius:0 0.3125em 0 0}
.scan-corner--bl{left:0.5em;bottom:0.5em;border-bottom:0.15625em solid var(--brand-primary);border-left:0.15625em solid var(--brand-primary);border-radius:0 0 0 0.3125em}
.scan-corner--br{right:0.5em;bottom:0.5em;border-bottom:0.15625em solid var(--brand-primary);border-right:0.15625em solid var(--brand-primary);border-radius:0 0 0.3125em 0}
.scan-line{position:absolute;left:8%;right:8%;top:8%;height:0.125em;background:linear-gradient(90deg, transparent, var(--brand-accent), transparent);box-shadow:0 0 10px 2px rgba(6,182,212,.55);animation:kioskScanLine 1.5s ease-in-out infinite}
.kiosk-idle__text{font-size:0.6875em;color:var(--text-soft);text-align:center;line-height:1.4;white-space:pre-line}

/* success / checkout share the centered rise-in layout */
.kiosk-success,.kiosk-checkout{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.625em;padding:0.5em 0.625em;animation:kioskRiseIn .5s ease-out}
.kiosk-success__icon{width:3.25em;height:3.25em;border-radius:9999px;background:var(--success-bg);display:flex;align-items:center;justify-content:center;animation:kioskPopCheck .45s ease-out}
.kiosk-success__icon .msym{font-size:1.875em;color:var(--success)}
.kiosk-success__title{font-size:0.71875em;font-weight:700;color:var(--success);text-align:center}

.kiosk-card{display:flex;align-items:center;gap:0.5625em;background:var(--surface-alt);border:0.0625em solid var(--border);border-radius:0.6875em;padding:0.5625em 0.625em;width:100%}
.kiosk-card__avatar{flex:none;width:2.125em;height:2.125em;border-radius:50%;background:var(--brand-gradient);color:#fff;font-weight:700;font-size:0.875em;display:flex;align-items:center;justify-content:center}
.kiosk-card__body{flex:1;min-width:0}
.kiosk-card__name{display:block;font-size:0.75em;font-weight:700;color:var(--text-strong)}
.kiosk-card__dept{display:block;font-size:0.59375em;color:var(--text-muted);margin-top:0.0625em}
.kiosk-card__meta{flex:none;text-align:right}
.kiosk-card__meta-label{display:block;font-size:0.53125em;color:var(--text-muted)}
.kiosk-card__meta-value{display:block;font-size:0.6875em;font-weight:700;color:var(--text-strong);font-variant-numeric:tabular-nums}

.kiosk-checkout__icon{width:3.25em;height:3.25em;border-radius:9999px;background:var(--indigo-50);display:flex;align-items:center;justify-content:center;animation:kioskPopCheck .45s ease-out}
.kiosk-checkout__icon .msym{font-size:1.625em;color:var(--brand-indigo)}
.kiosk-checkout__title{font-size:0.71875em;font-weight:700;color:var(--brand-indigo)}
.kiosk-checkout__sub{font-size:0.625em;color:var(--text-muted);margin-top:0.125em}
.kiosk-checkout__stats{display:flex;gap:0.5em;width:100%}
.kiosk-stat{flex:1;background:var(--surface-alt);border:0.0625em solid var(--border);border-radius:0.625em;padding:0.5em 0.625em;text-align:center}
.kiosk-stat__label{font-size:0.53125em;color:var(--text-muted)}
.kiosk-stat__value{font-size:0.8125em;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text-strong)}

/* fee view */
.kiosk-fee{position:absolute;inset:0;display:flex;flex-direction:column;gap:0.5625em;padding:0.625em 0.625em 0}
.kiosk-fee__title{font-size:0.71875em;font-weight:700;color:var(--text-strong)}
.kiosk-fee__label{font-size:0.5625em;font-weight:600;color:var(--text-muted);margin-bottom:0.3125em}
.kiosk-fee__modes{display:flex;gap:0.3125em}
.kiosk-fee__mode{flex:1;text-align:center;padding:0.4375em 0;border-radius:0.5em;font-size:0.6875em}
.kiosk-fee__mode--active{background:var(--blue-100);border:0.09375em solid var(--brand-primary);color:var(--blue-700);font-weight:700}
.kiosk-fee__mode--idle{background:var(--surface-alt);border:0.0625em solid var(--border);color:var(--text-muted);font-weight:600}
.kiosk-fee__amount{display:flex;align-items:center;background:var(--surface-alt);border:0.0625em solid var(--border);border-radius:0.5625em;padding:0.5625em 0.6875em;gap:0.1875em}
.kiosk-fee__yen{font-size:0.875em;color:var(--text-subtle)}
.kiosk-fee__value{font-size:1.125em;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text-strong)}
.kiosk-fee__submit{margin-top:auto;text-align:center;padding:0.625em 0;border-radius:0.625em;background:var(--brand-primary);color:#fff;font-size:0.75em;font-weight:700;margin-bottom:0.625em}

/* tab bar + home indicator */
.kiosk__tabbar{position:absolute;left:0;right:0;bottom:0;display:flex;border-top:0.0625em solid var(--border);background:#fff}
.kiosk__tab{flex:1;text-align:center;padding:0.375em 0;font-size:0.59375em}
.kiosk__tab--inactive{font-weight:500;color:var(--text-subtle);border-top:0.125em solid transparent}
.kiosk__home{display:flex;justify-content:center;align-items:center;height:0.875em;margin-top:0.25em}
.kiosk__home-bar{width:2.375em;height:0.25em;border-radius:9999px;background:var(--device-home)}

/* employee QR badge (wrapper keeps dynamic badgeWrapperStyle inline) */
.qr-badge{position:absolute;right:0.75em;top:2em;z-index:2}
.qr-badge__clip{width:1.375em;height:0.5em;background:linear-gradient(180deg, var(--clip-top), var(--clip-bottom));border-radius:0.1875em;box-shadow:0 1px 3px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);margin:0 auto}
.qr-badge__ring{width:0.625em;height:0.25em;border:0.125em solid var(--clip-bottom);border-radius:9999px;margin:0.0625em auto 0}
.qr-badge__card{width:6.5em;background:#fff;border-radius:0.875em;box-shadow:0 16px 40px rgba(0,0,0,.1);overflow:hidden;margin-top:0.3125em;animation:kioskBadgeFloat 9s ease-in-out infinite}
.qr-badge__stripe{height:0.4375em;background:linear-gradient(90deg, var(--brand-primary), var(--brand-accent))}
.qr-badge__body{padding:0.625em 0.5625em 0.8125em}
.qr-badge__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5625em}
.qr-badge__brand{display:flex;align-items:center;gap:0.25em}
.qr-badge__logo{width:1.1875em;height:1.1875em;object-fit:contain}
.qr-badge__brand-name{font-size:0.5em;font-weight:700;color:var(--text-strong)}
.qr-badge__staff-id{font-size:0.4375em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-subtle)}
.qr-badge__qr{width:4.75em;display:block;margin:0 auto 0.5625em;background:#fff}
.qr-badge__divider{height:0.0625em;background:var(--line);margin-bottom:0.5625em}
.qr-badge__foot{text-align:center}
.qr-badge__name{font-size:0.75em;font-weight:700;color:var(--text-strong);line-height:1.3}
.qr-badge__emp{font-size:0.5625em;color:var(--text-subtle);margin-top:0.125em}
.qr-badge__dept{display:inline-flex;background:var(--blue-100);border-radius:0.3125em;padding:0.125em 0.4375em;margin-top:0.3125em;font-size:0.5625em;font-weight:700;color:var(--blue-700)}

/* ===================== HOW IT WORKS ===================== */
.flow{max-width:1325px;margin:0 auto;padding: 52px 32px 60px}
.flow__grid{display:flex;flex-wrap:wrap;gap:22px}
.flow-card{flex:1 1 260px;min-width:0;padding:34px 30px;border-radius:20px;background-color:#FFFFFF;border:1px solid rgba(16,18,43,0.09);box-shadow:0 14px 40px -22px rgba(49,64,144,0.22);transition:transform 0.3s,border-color 0.3s,box-shadow 0.3s}
.flow-card:hover{transform:translateY(-4px);border-color:color-mix(in oklab, var(--accent,#5176FE) 35%, rgba(16,18,43,0.12));box-shadow:0 22px 52px -22px rgba(49,64,144,0.32)}
.flow-card__head{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.flow-card__num{font-family:'Space Grotesk','Plus Jakarta Sans',sans-serif;font-size:42px;font-weight:600;line-height:1;background:linear-gradient(96deg, var(--accent,#5176FE), color-mix(in oklab, var(--accent,#5176FE) 60%, #10122B));-webkit-background-clip:text;background-clip:text;color:transparent;flex-shrink:0}
.flow-card__title{font-size:19.5px;font-weight:700;margin:0;font-family:'Plus Jakarta Sans','Noto Sans JP',sans-serif}
/* desktop: feature-card & flow-card titles fixed to 20px */
@media (min-width:1024px){.feature-card__title,.flow-card__title{font-size:20px}}
/* phone (<=767px): flow-card titles fixed to 18.5px */
@media (max-width:767px){.flow-card__title{font-size:18.5px}}
.flow-card__desc{font-size:15px;line-height:1.85;color:rgba(16,18,43,0.62);margin:0;text-wrap:pretty}
/* desktop: feature-card & flow-card descriptions fixed to 16px (placed after the
   base rules above so it wins on source order) */
@media (min-width:1024px){.feature-card__desc,.flow-card__desc{font-size:16px}}
/* Below iPad Pro (phones + iPad Mini/Air, Zenbook Fold): stack the flow cards in one
   full-width column like Samsung Galaxy S8+, avoiding the ugly 2 + 1 wrap on tablets.
   iPad Pro (>=1024px) keeps the 3-in-a-row layout. */
@media (max-width:1023px){.flow-card{flex-basis:100%;max-width:none}}
/* Phones + iPad (portrait / Mini / Air): drop the forced break in the 勤怠管理 blurb so
   the sentence flows instead of breaking right after 、. Scoped to that one card because
   white-space is shared by .feature-card__desc — the QR and CSV blurbs keep their breaks.
   Both sides of the \n are wide CJK glyphs (、 / 一), so the segment break is removed
   outright rather than collapsing to a space. iPad Pro / desktop (>=1024px) keep the
   forced break, matching the 3-in-a-row breakpoint used above. */
@media (max-width:1023px){
  .features__grid > .feature-card:nth-child(2) .feature-card__desc{white-space:normal}
}

/* ===================== FINAL CTA ===================== */
.final{position:relative;overflow:hidden;padding:110px 32px 130px;text-align:center;background:linear-gradient(115deg, var(--accent,#5176FE) 0%, color-mix(in oklab, var(--accent,#5176FE) 78%, #10122B) 55%, color-mix(in oklab, var(--accent,#5176FE) 30%, #10122B) 100%)}
.final__inner{position:relative}
.final__ring{position:absolute;border-radius:50%;border:1.5px solid rgba(255,255,255,0.16);pointer-events:none}
.final__ring--1{left:-60px;top:-80px;width:260px;height:260px;border-color:rgba(255,255,255,0.20)}
.final__ring--2{left:40px;top:-30px;width:150px;height:150px;border-color:rgba(255,255,255,0.12)}
.final__ring--3{right:-90px;bottom:-120px;width:340px;height:340px}
@media (max-width:767px){
  .final__ring--1{width:170px;height:170px;left:-50px;top:-60px}
  .final__ring--2{width:100px;height:100px;left:20px;top:-20px}
  .final__ring--3{width:220px;height:220px;right:-70px;bottom:-90px}
}
.final__title{font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-size:clamp(30px,4vw,52px);font-weight:700;margin:0 0 34px;letter-spacing:0.005em;text-wrap:pretty;color:#FFFFFF}
.final__cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;font-family:inherit;font-size:16.5px;font-weight:600;padding:16px 38px;min-height:54px;border-radius:999px;background:#FFFFFF;color:color-mix(in oklab, var(--accent,#5176FE) 80%, #10122B);transition:transform 0.25s;box-sizing:border-box;animation:ctaPulse 2.4s ease-out infinite}
.final__cta:hover{transform:translateY(-2px)}
@keyframes ctaPulse{
  0%{box-shadow:0 18px 40px -18px rgba(0,0,0,0.45), 0 0 0 0 rgba(255,255,255,0.55)}
  70%{box-shadow:0 18px 40px -18px rgba(0,0,0,0.45), 0 0 0 18px rgba(255,255,255,0)}
  100%{box-shadow:0 18px 40px -18px rgba(0,0,0,0.45), 0 0 0 0 rgba(255,255,255,0)}
}
@media (prefers-reduced-motion: reduce){.final__cta{animation:none;box-shadow:0 18px 40px -18px rgba(0,0,0,0.45)}}
.final__cta .material-symbols-outlined{font-size:20px}
/* Title line break: single line on desktop, split into two lines on phone */
.final__br,.hero__br{display:none}
/* Deep-dive body copy: one sentence per line, at every width, JA only. Both blurbs are
   split into separate dict keys (kP/kPPost and rP/rPPost/rPPost2) so each boundary is a
   real <br> that CSS can toggle. The EN copy leaves the trailing keys empty and the
   selector is scoped to html[lang="ja"], which the language switch keeps in sync
   (root.lang in index.html).
   Cost of keeping the breaks on narrow phones: at 15px in a V-24px column the longest
   sentence of each blurb (~376px kiosk, ~525px reports) still wraps on its own, so the
   kiosk copy runs to 4 lines below ~410px and the reports copy to 5 lines — one more
   than the natural wrap would give. Accepted deliberately: the sentence boundaries
   matter more here than the tighter line count. */
.deepdive__br{display:none}
html[lang="ja"] .deepdive__br{display:inline}
/* Phone: don't stretch the final CTA full width — fit content and center it */
@media (max-width:767px){
  .final .final__cta{width:auto !important;margin-left:auto;margin-right:auto}
  .hero__actions .hero__cta-secondary{width:auto !important}
  .final__br,.hero__br{display:inline}
  /* Phone: 28px side padding costs ~7px too much — the 勤怠管理 blurb's first line
     (up to 、) is 300px and would not fit the resulting 293px text column. */
  .feature-card{padding:26px 22px}
  /* Phone only: smaller hero subtitle (iPad/desktop keep the clamp size) */
  .hero__sub{font-size:13.5px}
  /* Phone only: section headings (主な機能 / わずか3ステップで導入完了) at 25px */
  .section-head__title{font-size:25px}
  /* Phone only: deep-dive headings (ストレスのない打刻体験を / 勤怠データをリアルタイムに可視化) at 23px */
  .deepdive__title{font-size:23px}
}
/* Narrow phones (Galaxy Z Fold cover screen 344px, Galaxy S8+ 360px, iPhone SE gen 1
   320px). The section headings are the longest single-line strings on the page: in
   Space Grotesk Bold, EN "Everything your team needs" is 13.12em and "Get started in 3
   easy steps" 12.62em, against JA 主な機能 (4em) and わずか3ステップで導入完了 (~12.6em).
   At the 25px phone size the EN pair measures 328 / 319px — wider than the 320px column
   a 344px viewport leaves after the 12px .pad-x gutters, so both wrapped to two lines.
   22px brings them to 289 / 281px. JA only needed the 23px step (314px -> 289px), which
   this file already applied at 320px. */
@media (max-width:374px){
  .section-head__title{font-size:23px}
  html[lang="en"] .section-head__title{font-size:22px}
}
/* iPhone 5 / SE gen 1 (320px). Text column is 320 - 2x12px .pad-x = 296px, so the EN
   headings need one more step down (22px -> 289px leaves only 7px; 21px gives 276px).
   JA わずか3ステップで導入完了 is 289px at the 23px set above and still fits. */
@media (max-width:320px){
  html[lang="en"] .section-head__title{font-size:21px}
  /* Card text column is only 250px here, so the pre-line breaks (which sit after a
     ~300px first half) would each add a third line. Natural wrapping keeps both
     blurbs at two lines. The \n then collapses to a space, which is barely visible
     because it lands right after 、 / 。 — those glyphs already sit left of centre. */
  .feature-card__desc{white-space:normal}
}

/* ===================== FOOTER ===================== */
.footer{border-top:1px solid rgba(16,18,43,0.08);background:#FFFFFF}
.footer__inner{max-width:1325px;margin:0 auto;padding:36px}
.footer__top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:36px}
.footer__brand{display:flex;flex-direction:column;gap:14px}
.footer__brand-head{display:flex;align-items:center;gap:10px}
.footer__logo{height:52px;width:52px;object-fit:contain;display:block}
.footer__brand-name{font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-weight:600;font-size:17px;letter-spacing:0.02em}
.footer__mail{display:inline-flex;align-items:center;gap:7px;color:rgba(16,18,43,0.55);text-decoration:none;font-size:14.5px;padding:6px 0;transition:color 0.2s}
.footer__mail:hover{color:color-mix(in oklab, var(--accent,#5176FE) 80%, #10122B)}
.footer__mail .material-symbols-outlined{font-size:18px}
.footer__links{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.footer__link{background:none;border:none;cursor:pointer;font-family:inherit;font-size:14.5px;font-weight:500;color:rgba(16,18,43,0.55);padding:11px 10px;min-height:44px;border-radius:8px;transition:color 0.2s}
.footer__link:hover{color:color-mix(in oklab, var(--accent,#5176FE) 80%, #10122B)}
.footer__copy{text-align:center;font-size:16px;color:rgba(16,18,43,0.4)}
@media (max-width:767px){.footer__copy{font-size:12px}}

/* ===================== MOBILE DRAWER ===================== */
.drawer{position:fixed;inset:0;z-index:100;background:rgba(246,247,252,0.97);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);display:flex;flex-direction:column;padding:14px 24px 40px;overflow:auto}
.drawer__head{display:flex;align-items:center;justify-content:space-between;height:60px}
.drawer__brand{display:flex;align-items:center;gap:10px}
.drawer__logo{height:40px;width:40px;object-fit:contain;display:block}
.drawer__brand-name{font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-weight:600;font-size:16px}
.drawer__close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid rgba(16,18,43,0.12);background:#FFFFFF;cursor:pointer;color:#10122B}
.drawer__close .material-symbols-outlined{font-size:24px}
.drawer__links{display:flex;flex-direction:column;margin-top:26px}
.drawer__link{text-align:left;background:none;border:none;border-bottom:1px solid rgba(16,18,43,0.08);color:#10122B;font-size:23px;font-weight:600;font-family:'Plus Jakarta Sans','Noto Sans JP',sans-serif;padding:19px 4px;min-height:60px;cursor:pointer}
.drawer__actions{display:flex;justify-content: center; align-items: center;gap:22px;margin-top:34px}
.drawer__lang-toggle{display:inline-flex;align-items:center;gap:2px;padding:4px;border-radius:999px;border:1px solid rgba(16,18,43,0.12);background:rgba(16,18,43,0.04);align-self:flex-start}
.drawer__lang-btn{border:none;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;padding:12px 22px;border-radius:999px;min-height:44px;transition:background 0.25s,color 0.25s}
.drawer__cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;cursor:pointer;text-decoration:none;font-family:inherit;font-size:16px;font-weight:600;padding:15px 32px;min-height:52px;border-radius:999px;background:linear-gradient(96deg, var(--accent,#5176FE), color-mix(in oklab, var(--accent,#5176FE) 72%, #10122B));color:#FFFFFF;width: 160px;height: 54px;}

/* ===================== ADMIN MOCK (ported from CIS_landing_page) ===================== */
/* Rendered inside .hero__shot-frame; replaces the former shot-dashboard image slot. */
.admin-scale{
  /* Local design tokens for the ported admin mock (same values as CIS_landing_page.css) */
  --brand-primary:#2563EB;
  --brand-primary-hover:#1D4ED8;
  --brand-indigo:#4338CA;
  --text-strong:#0F172A;
  --text-body:#334155;
  --text-muted:#64748B;
  --text-subtle:#94A3B8;
  --text-soft:#475569;
  --surface-alt:#F8FAFC;
  --surface-tint:#EFF6FF;
  --border:#E2E8F0;
  --border-soft:#E5E7EB;
  --line:#F1F5F9;
  --success:#16A34A;
  --warning:#EA580C;
  --danger:#DC2626;
  --danger-hover:#B91C1C;
  --danger-soft:#EF4444;
  --radius-sm:8px;
  --radius-md:12px;
  --radius-xl:20px;
}

/* Text utilities used by the admin mock */
.u-num{font-variant-numeric:tabular-nums}
.u-muted{color:var(--text-muted)}
.u-soft{color:var(--text-soft)}
.u-subtle{color:var(--text-subtle)}
.u-semibold{font-weight:600}
.u-bold{font-weight:700}
.u-time-in{color:var(--success);font-weight:700}
.u-time-out{color:var(--warning);font-weight:700}

.admin{background:#fff;border:1px solid var(--border);border-radius:var(--radius-xl);overflow:hidden;display:flex}
.admin__sidebar{width:210px;flex:none;background:#fff;border-right:1px solid var(--border-soft);padding:16px 12px;display:flex;flex-direction:column;gap:2px}
.admin__brand{display:flex;align-items:center;gap:9px;padding:4px 6px 14px}
.admin__brand-logo{width:32px;height:32px;object-fit:contain}
.admin__brand-text{line-height:1.1}
.admin__brand-line{display:block;font-size:11px;font-weight:800;color:var(--text-strong)}
.admin__nav-item{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:9px;color:var(--text-soft);font-weight:600;font-size:13px}
.admin__nav-item .msym{font-size:18px;color:var(--text-subtle)}
.admin__nav-item:hover{background:var(--line)}
.admin__nav-item--active{background:var(--surface-tint);color:var(--brand-primary);font-weight:700}
.admin__nav-item--active .msym{color:var(--brand-primary)}

.admin__main{flex:1;min-width:0;display:flex;flex-direction:column}
.admin__topbar{height:56px;flex:none;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 20px}
.admin__topbar-title{font-weight:800;font-size:16px;color:var(--text-strong)}
.admin__user{display:flex;align-items:center;gap:9px}
.admin__user-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg, var(--brand-primary), var(--brand-indigo));color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center}
.admin__user-name{font-size:13px;font-weight:600;color:var(--text-body)}
.admin__content{padding:18px 20px;background:var(--surface-alt);flex:1;overflow-x:auto}

.admin__search-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;display:flex;gap:12px;align-items:flex-end}
.admin__search-actions{display:flex;gap:8px;margin-left:auto}

.field{display:flex;flex-direction:column; align-items: start;gap:5px;font-size:11.5px;font-weight:600;color:var(--text-soft);flex:1}
.field__req-row{display:flex;align-items:center;gap:3px}
.field__req{color:var(--danger-soft)}
.input,.select{font-family:inherit;font-size:13px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);width:100%}
.input:focus,.select:focus{outline:2px solid var(--brand-primary);outline-offset:0;border-color:var(--brand-primary)}

.admin__table-wrap{margin-top:14px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden}
.admin__table{width:100%;border-collapse:collapse;font-size:12.5px;white-space:nowrap}
.admin__table thead tr{background:var(--brand-primary);color:#fff}
.admin__table th{padding:11px 10px;font-weight:700;text-align:left}
.admin__table td{padding:11px 10px;text-align:left}
.admin__table th.u-center,.admin__table td.u-center{text-align:center}
.admin__table tbody tr{border-top:1px solid var(--border)}
.admin__table tbody tr:hover{background:var(--surface-tint)}
.icon-edit{font-size:17px;color:var(--brand-primary);cursor:pointer}
.icon-delete{font-size:17px;color:var(--danger);cursor:pointer}

.admin__foot{margin-top:14px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.admin__foot-actions{display:flex;gap:9px}
.pagination{display:flex;align-items:center;gap:14px}
.pagination__count{font-size:12.5px;color:var(--text-muted)}
.pagination__nav{display:flex;align-items:center;gap:3px;font-size:12.5px;color:var(--text-soft)}
.pagination__nav .msym{font-size:16px;color:var(--text-subtle)}
.pagination__page{width:24px;height:24px;display:grid;place-items:center;border-radius:6px}
.pagination__page:hover{background:var(--line)}
.pagination__page--active{background:var(--brand-primary);color:#fff;font-weight:700}

.btn-clear{font-family:inherit;display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--text-soft);background:var(--line);border:1px solid var(--border);border-radius:var(--radius-sm);padding:9px 14px;cursor:pointer}
.btn-clear:hover{background:var(--border)}
.btn-search{font-family:inherit;display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:#fff;background:var(--brand-primary);border:none;border-radius:var(--radius-sm);padding:9px 16px;cursor:pointer}
.btn-search:hover{background:var(--brand-primary-hover)}
.btn-clear .msym,.btn-search .msym{font-size:16px}

.btn-csv-out{font-family:inherit;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--brand-primary);background:#fff;border:1px solid var(--brand-primary);border-radius:var(--radius-sm);padding:9px 15px;cursor:pointer}
.btn-csv-out:hover{background:var(--surface-tint)}
.btn-delete{font-family:inherit;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#fff;background:var(--danger);border:none;border-radius:var(--radius-sm);padding:9px 15px;cursor:pointer}
.btn-delete:hover{background:var(--danger-hover)}
.btn-csv-out .msym,.btn-delete .msym{font-size:17px}

/* Safari/WebKit mis-evaluates tan(atan2()) when its arguments contain
   unresolved relative units (100vw / 100cqw mixed with px), yielding wrong or
   even negative scale factors on real iOS devices (mock rendered unscaled or
   mirrored). Registering the lengths as typed custom properties forces them
   to resolve to absolute px BEFORE atan2() runs, which every engine computes
   correctly. See https://css-tricks.com/typecasting-and-viewport-transitions-in-css-with-tanatan2/ */
@property --vw-px { syntax:"<length>"; initial-value:0px; inherits:true; }
@property --cqw-px { syntax:"<length>"; initial-value:0px; inherits:true; }

/* Admin mock scaler (phones only): render the mock at its design size (900 x 420 px)
   and scale it to the hero frame's content width:
   100vw - 2x12px .pad-x - 2x14px frame padding - 2x1px frame border = 54px. */
@media (max-width:640px){
  .admin-scale{
    --vw-px:100vw;
    --adm-s:calc(tan(atan2(var(--vw-px) - 54px, 900px)));
    height:calc(420px * var(--adm-s));
  }
  .admin-scale > .admin{
    width:900px;
    flex:none;
    transform:scale(var(--adm-s));
    transform-origin:top left;
  }
}

/* Admin mock scaler (tablets: 641-1023px): same proportional-scale technique.
   Frame content width = 100vw - 2x32px .hero__inner padding - 2x14px frame
   padding - 2x1px frame border = 94px. Scale is capped at 1 so the mock never
   renders larger than its design size near the desktop breakpoint. */
@media (min-width:641px) and (max-width:1023px){
  .admin-scale{
    --vw-px:100vw;
    --adm-s:min(1, calc(tan(atan2(var(--vw-px) - 94px, 900px))));
    height:calc(420px * var(--adm-s));
  }
  .admin-scale > .admin{
    width:900px;
    flex:none;
    margin:0 auto;
    transform:scale(var(--adm-s));
    transform-origin:top left;
  }
}

/* Below 768px .pad-x forces 12px side padding, so the offset shrinks to 54px */
@media (min-width:641px) and (max-width:767px){
  .admin-scale{
    --vw-px:100vw;
    --adm-s:calc(tan(atan2(var(--vw-px) - 54px, 900px)));
  }
}

/* ===================== MACBOOK MOCK (ported from CIS_landing_page hero scene) ===================== */
/* Rendered inside the Reports .deepdive__media-frame; replaces the shot-reports
   image slot. The device is a static 394x260px block; .mac-scale stretches it
   to the frame's content width (scales up or down as needed). */
.deepdive__media-frame{container-type:inline-size}
.mac-scale{
  /* tan(atan2(a, b)) yields the unitless ratio a/b; plain calc() division of
     two lengths is not supported in older browsers, this trick is.
     100cqw goes through the typed --cqw-px property so Safari resolves it
     to absolute px before atan2() (see @property note above). */
  --cqw-px:100cqw;
  --mac-s:calc(tan(atan2(var(--cqw-px), 394px)));
  width:calc(394px * var(--mac-s));
  height:calc(260px * var(--mac-s));
  margin:0 auto;
}
.mac-mock{
  width:394px;
  height:260px;
  font-family:'Plus Jakarta Sans','Noto Sans JP',system-ui,sans-serif;
  color:#0F172A;
  transform:scale(var(--mac-s));
  transform-origin:top left;
}
/* Gentle float of the device (same motion as the source hero scene) */
@keyframes hm-floatA{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.mac-float{animation:hm-floatA 7s ease-in-out infinite;display: flex;
    flex-direction: column;
    align-items: center;}
@media (prefers-reduced-motion:reduce){
  .mac-float{animation:none !important}
}

/* --- Device shell --- */
.mac-lid{background:linear-gradient(180deg,#343437 0%,#1d1d1f 11%,#161618 100%);border-radius:15px 15px 6px 6px;padding:10px 10px 13px;position:relative;box-shadow:0 30px 60px rgba(0,0,0,0.42),inset 0 0 0 1px rgba(255,255,255,0.05)}
.mac-notch{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:60px;height:9px;background:#0a0a0c;border-radius:0 0 7px 7px;z-index:3;display:flex;align-items:center;justify-content:center}
.mac-notch-cam{width:4px;height:4px;border-radius:50%;background:#23262b;box-shadow:inset 0 0 1px rgba(120,150,180,0.7)}
.mac-screen{width:348px;height:218px;background:#0F172A;border-radius:6px;overflow:hidden;position:relative}
.mac-menubar{height:22px;background:#1E1E2E;display:flex;align-items:center;padding:0 9px;gap:5px;flex-shrink:0}
.mac-dot{width:9px;height:9px;border-radius:50%}
.mac-dot--red{background:#FF5F57}
.mac-dot--yellow{background:#FEBC2E}
.mac-dot--green{background:#28C840}
.mac-menubar-title{font-size:10px;font-weight:600;color:rgba(255,255,255,0.55);margin-left:10px;letter-spacing:.01em}
.mac-menubar-sub{font-size:10px;color:rgba(255,255,255,0.28);margin-left:4px}
/* App viewport: everything inside .mac-canvas is laid out at 690px design width,
   then scaled down to fit the 348px screen (348 / 690 = 0.5043). */
/* Dark strip under the sidebar column: during the float animation the scaled
   canvas edges land on fractional pixels, so the light app background can bleed
   through above/below .kt-side for a frame. Matching the underlay color to the
   sidebar (#0F172A) makes that sub-pixel bleed invisible. 78px is the .kt-side
   design width, 0.5043 is the .mac-canvas scale. */
.mac-app{height:calc(100% - 22px);background:linear-gradient(90deg,#0F172A 0 calc(78px * 0.5043),#F9FAFB calc(78px * 0.5043));overflow:hidden;position:relative}
.mac-canvas{width:690px;box-sizing:border-box;transform:scale(0.5043);transform-origin:top left;display:flex;align-items:stretch}
.mac-hinge{width:356px;height:6px;background:linear-gradient(180deg,#2a2a2c,#3a3a3d);border-radius:0 0 2px 2px;margin:0 auto}
.mac-base{width:380px;height:13px;background:linear-gradient(180deg,#5c5c5f,#37373a);border-radius:0 0 13px 13px;margin-left:-14px;position:relative;box-shadow:0 8px 16px rgba(0,0,0,0.3)}
.mac-base-notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:80px;height:5px;background:linear-gradient(180deg,#2b2b2d,#3a3a3d);border-radius:0 0 9px 9px}

/* --- Attendance-list app UI on the screen (kt- = kintai) --- */
/* Sidebar */
.kt-side{width:78px;flex-shrink:0;background:#0F172A;padding:14px 0 16px;display:flex;flex-direction:column;align-items:center;gap:5px}
.kt-side-logo{width:36px;height:36px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:12px;padding:5px;box-sizing:border-box}
.kt-side-logo img{width:100%;height:100%;object-fit:contain;display:block}
.kt-nav{width:60px;padding:7px 0;border-radius:9px;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;color:#94A3B8}
.kt-nav--active{background:rgba(37,99,235,.26);color:#fff}
.kt-nav .msym{font-size:20px}
.kt-nav-label{font-size:8.5px;font-weight:500;letter-spacing:.01em}
.kt-nav--active .kt-nav-label{font-weight:700}
/* Main column + top bar */
.kt-main{flex:1;min-width:0;padding:18px;display:flex;flex-direction:column;gap:14px}
.kt-topbar{display:flex;align-items:center;justify-content:space-between}
.kt-title{font-size:17px;font-weight:700;color:#111827;letter-spacing:-.01em}
.kt-user{display:flex;align-items:center;gap:6px}
.kt-user-avatar{width:30px;height:30px;border-radius:9999px;background:#E5E7EB}
.kt-user-info{display:flex;flex-direction:column}
.kt-user-name{font-size:11px;font-weight:600;color:#374151}
.kt-user-mail{font-size:9.5px;color:#9CA3AF}
/* Search panel */
.kt-search{background:#fff;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 8px 16px rgba(0,0,0,0.06);padding:10px;display:flex;align-items:flex-end;gap:11px}
/* All search fields (text, select, date) share the same width; only the
   action buttons keep their intrinsic size. */
.kt-field{flex:1 1 0;min-width:0}
.kt-field-label{font-size:11.5px;font-weight:600;color:#374151;margin-bottom:5px;white-space:nowrap}
.kt-req{color:#EF4444}
.kt-input{display:flex;align-items:center;gap:7px;border:1px solid #D1D5DB;border-radius:9px;padding:8px 10px}
.kt-input--select{justify-content:space-between}
.kt-input .msym{font-size:16px;color:#9CA3AF}
.kt-date{border:1px solid #D1D5DB;border-radius:9px;padding:8px 10px;font-size:11.5px;color:#374151;font-variant-numeric:tabular-nums}
.kt-search-actions{display:flex;gap:8px;flex-shrink:0}
.kt-btn{display:flex;align-items:center;gap:5px;color:#fff;border-radius:9px;font-size:11.5px;font-weight:600}
.kt-btn--gray{background:#6B7280;padding:9px 12px}
.kt-btn--blue{background:#2563EB;padding:9px 13px}
.kt-btn .msym{font-size:15px;color:#fff}
/* Table card */
.kt-table{background:#fff;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 8px 16px rgba(0,0,0,0.06);overflow:hidden;flex:1;display:flex;flex-direction:column}
.kt-thead,.kt-row{display:grid;grid-template-columns:26px 30px 1.5fr 1.05fr 0.85fr 0.8fr 0.8fr 0.6fr 0.9fr 1fr}
.kt-thead{background:#2563EB;color:#fff;font-size:11px;font-weight:700;letter-spacing:.02em}
.kt-th{display:flex;align-items:center;padding:8px 9px;border-right:1px solid rgba(255,255,255,.18)}
.kt-th:last-child{border-right:none}
.kt-th--check{justify-content:center;padding:8px 0}
.kt-th--no{justify-content:flex-end;padding:8px 6px}
.kt-th--center{justify-content:center;padding:8px 5px}
.kt-cb{width:13px;height:13px;border:1.6px solid #CBD5E1;border-radius:3px}
.kt-cb--head{border-color:#fff}
.kt-tbody{flex:1;overflow:hidden}
.kt-row{border-bottom:1px solid #F3F4F6;font-size:11px;color:#374151}
.kt-row:last-child{border-bottom:none}
.kt-td{display:flex;align-items:center;padding:6px 9px}
.kt-td--check{justify-content:center;padding:6px 0}
.kt-td--no{justify-content:flex-end;padding:6px 6px;color:#6B7280;font-variant-numeric:tabular-nums}
.kt-td--name{font-weight:600}
.kt-td--center{justify-content:center;padding:6px 5px;font-variant-numeric:tabular-nums}
.kt-td--strong{font-weight:600}
.kt-td--actions{justify-content:center;gap:7px;padding:6px 5px}
.kt-icon-btn{width:21px;height:21px;border-radius:9999px;display:flex;align-items:center;justify-content:center}
.kt-icon-btn .msym{font-size:14px}
.kt-icon-btn--edit{background:#EFF6FF}
.kt-icon-btn--edit .msym{color:#3B82F6}
.kt-icon-btn--del{background:#FEF2F2}
.kt-icon-btn--del .msym{color:#EF4444}
/* Table footer (pagination + bulk actions) */
.kt-foot{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-top:1px solid #E5E7EB}
.kt-foot-left{display:flex;align-items:center;gap:11px}
.kt-foot-label{font-size:11px;color:#6B7280}
.kt-pagesize{display:flex;align-items:center;gap:5px;border:1px solid #D1D5DB;border-radius:7px;padding:5px 9px;font-size:11px;color:#374151}
.kt-pagesize .msym{font-size:13px;color:#9CA3AF}
.kt-pager{display:flex;align-items:center;gap:4px}
.kt-page{width:27px;height:27px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:11px;color:#6B7280}
.kt-page--nav{color:#9CA3AF}
.kt-page--active{background:#2563EB;color:#fff;font-weight:700}
.kt-foot-right{display:flex;gap:9px}
.kt-btn-csv{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #E5E7EB;border-radius:9px;padding:8px 13px;font-size:11.5px;font-weight:600;color:#374151;box-shadow:0 1px 2px rgba(0,0,0,0.05)}
.kt-btn-csv .msym{font-size:15px;color:#6B7280}
.kt-btn-csv .kt-btn-csv-caret{font-size:13px;color:#9CA3AF}
.kt-btn-del{display:flex;align-items:center;gap:6px;background:#D90606;color:#fff;border-radius:9px;padding:8px 14px;font-size:11.5px;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,0.05)}
.kt-btn-del .msym{font-size:15px;color:#fff}
