/* Bekito 現場ボード — the landing page. Kit tokens only; the hero drawing carries its own colours in the SVG. */

.gl-skip { position: absolute; left: 12px; top: -80px; z-index: var(--bk-z-toast); padding: 10px 16px; border-radius: var(--bk-r-pill); background: var(--bk-surface); color: var(--bk-fg); font-weight: 700; box-shadow: var(--bk-shadow-2); }
.gl-skip:focus { top: 12px; }
.bk-topbar a.bk-brand__product { color: var(--bk-fg); text-decoration: none; }
@media (max-width: 720px) { .bk-topbar .gl-hide-phone { display: none; } }

/* ---------- hero ---------- */
.gl-hero .bk-hero__in { padding-block: clamp(32px, 6vw, 80px); }
.gl-hero__grid { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .gl-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.gl-hero__text { min-width: 0; }
.gl-hero h1 { font-size: clamp(2rem, 1.15rem + 3.2vw, 3.5rem); line-height: 1.22; }
html[lang="en"] .gl-hero h1 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.25rem); line-height: 1.12; }
.gl-hero__note { font-size: var(--bk-text-sm); color: color-mix(in srgb, var(--bk-hero-fg) 76%, transparent); }
.gl-try { margin: 0; }
.gl-art { margin: 0; min-width: 0; }
.gl-art svg { display: block; width: 100%; height: auto; max-width: 460px; margin-inline: auto; }
@media (min-width: 900px) { .gl-art svg { max-width: 540px; } }

/* the hero loop (8 s): wave → the card turns 注意 → a hand presses 「対応します」 → the stamp → a new line in the record.
   Only transform and opacity move. Without animation the drawing is the final frame. */
/* longhands only: this rule is more specific than the per-part rules below, so it must not reset animation-name */
.ga [class^="ga__"] { transform-box: view-box; transform-origin: 0 0; animation-duration: 8s; animation-timing-function: var(--bk-ease); animation-iteration-count: infinite; animation-fill-mode: both; }
.ga__wave { animation-name: ga-wave; }
.ga__wave--2 { animation-delay: .25s; }
.ga__wave--3 { animation-delay: .5s; }
.ga__cover { animation-name: ga-cover; }
.ga__rise { animation-name: ga-rise; }
.ga__ok { animation-name: ga-ok; }
.ga__warn { animation-name: ga-warn; }
.ga__ring { animation-name: ga-ring; }
.ga__hand { animation-name: ga-hand; }
.ga__btn { animation-name: ga-btn; }
.ga__stamp { animation-name: ga-stamp; }
.ga__line { animation-name: ga-line; }
@keyframes ga-wave { 0%, 3% { opacity: 0; transform: scale(.7); } 9% { opacity: 1; transform: none; } 18%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes ga-cover { 0%, 13% { opacity: 1; transform: scaleX(1); } 29% { opacity: 1; transform: scaleX(0); } 29.5%, 96.5% { opacity: 0; transform: scaleX(0); } 97%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes ga-rise { 0%, 90% { opacity: 1; } 94%, 97% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes ga-ok { 0%, 26% { opacity: 1; } 29%, 93% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes ga-warn { 0%, 26% { opacity: 0; transform: scale(.8); } 30% { opacity: 1; transform: scale(1.08); } 33%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ga-ring { 0%, 27% { opacity: 0; } 31% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes ga-hand { 0%, 36% { opacity: 0; transform: translate(28px, 36px); } 44% { opacity: 1; transform: translate(2px, 4px); } 48% { opacity: 1; transform: none; } 50% { opacity: 1; transform: translate(1px, 3px); } 53% { opacity: 1; transform: none; } 61% { opacity: 1; transform: translate(8px, 12px); } 67%, 100% { opacity: 0; transform: translate(28px, 36px); } }
@keyframes ga-btn { 0%, 47% { transform: none; } 50% { transform: scale(.94); } 53%, 100% { transform: none; } }
@keyframes ga-stamp { 0%, 51% { opacity: 0; transform: scale(2.1); } 55% { opacity: 1; transform: scale(.9); } 58%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ga-line { 0%, 58% { opacity: 0; transform: translateX(-10px); } 64%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.is-paused [class^="ga__"], .is-paused [class*=" gs__"] { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ga *, .gs * { animation: none !important; } }

/* ---------- how it works ---------- */
.gl-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.gl-step { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--bk-r-lg); background: var(--bk-surface); border: 1px solid var(--bk-line); }
.gl-step__art { margin-bottom: 6px; }
.gl-step__art svg { display: block; width: 100%; max-width: 220px; height: auto; }
.gl-step h3 { display: flex; align-items: baseline; gap: 10px; font-size: var(--bk-text-xl); }
.gl-step__n { font-size: var(--bk-text-xs); font-weight: 700; letter-spacing: .1em; color: var(--bk-accent); }
.gl-step p { color: var(--bk-fg-2); }
.gs__ink { stroke: var(--bk-fg); }
.gs__soft { opacity: .4; }
.gs__fill { fill: var(--bk-surface); }
.gs__copper { stroke: var(--bk-accent); }
.gs__copper-fill { fill: var(--bk-accent); }
.gs__on { stroke: var(--bk-accent-ink); }
.gs__green { stroke: var(--bk-ok); }
.gs__pulse, .gs__blink, .gs__stamp { transform-box: view-box; transform-origin: 0 0; animation-duration: 4s; animation-timing-function: var(--bk-ease); animation-iteration-count: infinite; animation-fill-mode: both; }
.gs__pulse { animation-name: gs-fade; }
.gs__blink { animation-name: gs-fade; animation-delay: .6s; }
.gs__stamp { animation-name: gs-stamp; }
@keyframes gs-fade { 0%, 20% { opacity: .2; } 45%, 85% { opacity: 1; } 100% { opacity: .2; } }
@keyframes gs-stamp { 0%, 30% { opacity: 0; transform: scale(1.8); } 42% { opacity: 1; transform: scale(.92); } 48%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* ---------- the working screen ---------- */
.gl-real__head { display: flex; flex-direction: column; gap: 8px; }
.gl-fact { color: var(--bk-fg-2); max-width: 44em; }
.gl-frame { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.gl-frame__screen { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding: clamp(12px, 2.4vw, 24px); border-radius: var(--bk-r-lg); background: var(--bk-bg-sunken); border: 1px solid var(--bk-line); user-select: none; }
@media (min-width: 960px) { .gl-frame__screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.gl-frame__alerts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gl-frame__label { font-size: var(--bk-text-xs); font-weight: 700; color: var(--bk-fg-2); }
.gl-frame .gb-alert { background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-r-lg); overflow: hidden; box-shadow: var(--bk-shadow-1); }
.gl-frame__rec { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.gl-rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px 14px; background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-r-md); }
.gl-rec__when { font-weight: 700; }
.gl-rec__what { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.gl-rec > .bk-badge { grid-column: 2; justify-self: start; }
.gl-frame__devices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); min-width: 0; }
.gl-frame__devices .gb-dev__metrics { min-height: 0; }
.gl-frame__screen { position: relative; cursor: default; }
.gl-frame__tag { position: absolute; top: 0; right: clamp(12px, 2.4vw, 24px); transform: translateY(-50%); padding: 2px 10px; border-radius: var(--bk-r-pill); background: var(--bk-bg); border: 1px solid var(--bk-line); font-size: var(--bk-text-xs); color: var(--bk-fg-2); }
.gl-frame__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; }
.gl-frame__cap form { margin: 0; }
.gl-frame__dev { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.gl-frame__dev svg { width: 18px; height: 18px; }

/* the strip is a picture of the board: in a loop of 7 s a hand presses 「対応します」, the stamp lands, a line joins the record.
   Without animation it shows the end: the alert taken, the new line on the record. */
.gl-act { position: relative; display: grid; align-items: center; min-height: 44px; }
.gl-act__a, .gl-act__b { grid-area: 1 / 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gl-act__a { opacity: 0; }
.gl-act__b { justify-content: flex-start; }
.gl-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: var(--bk-r-pill); background: var(--bk-accent); color: var(--bk-accent-ink); font-weight: 700; font-size: var(--bk-text-sm); white-space: nowrap; }
.gl-pill svg { width: 16px; height: 16px; }
.gl-act__hand { position: absolute; right: 18px; top: 22px; opacity: 0; overflow: visible; }
.gl-hand { fill: var(--bk-surface); stroke: var(--bk-fg); stroke-width: 2; stroke-linejoin: round; }
.gl-act__a, .gl-act__b, .gl-act__hand, .gl-act__stamp, .gl-pill, .gl-rec--new { animation-duration: 7s; animation-timing-function: var(--bk-ease); animation-iteration-count: infinite; animation-fill-mode: both; }
.gl-act__a { animation-name: gl-a; }
.gl-act__b { animation-name: gl-b; }
.gl-act__hand { animation-name: gl-hand; }
.gl-pill { animation-name: gl-press; }
.gl-act__stamp { animation-name: gl-stamp; }
.gl-rec--new { animation-name: gl-new; }
@keyframes gl-a { 0%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes gl-b { 0%, 46% { opacity: 0; } 50%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes gl-hand { 0%, 18% { opacity: 0; transform: translate(22px, 30px); } 32% { opacity: 1; transform: translate(-30px, -6px); } 38% { opacity: 1; transform: translate(-32px, -10px); } 41% { transform: translate(-31px, -7px); } 44% { opacity: 1; transform: translate(-32px, -10px); } 54%, 100% { opacity: 0; transform: translate(10px, 24px); } }
@keyframes gl-press { 0%, 38% { transform: none; } 41% { transform: scale(.94); } 44%, 100% { transform: none; } }
@keyframes gl-stamp { 0%, 47% { opacity: 0; transform: rotate(-12deg) scale(2); } 52% { opacity: 1; transform: rotate(-12deg) scale(.9); } 56%, 100% { opacity: 1; transform: rotate(-12deg); } }
@keyframes gl-new { 0%, 56% { opacity: 0; transform: translateY(-6px); } 62%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
/* the record shows one line: the last one, until the new one takes its place */
.gl-frame__rows { display: grid; }
.gl-frame__rows > .gl-rec { grid-area: 1 / 1; }
.gl-rec--old { opacity: 0; animation: gl-old 7s var(--bk-ease) infinite both; }
@keyframes gl-old { 0%, 54% { opacity: 1; } 58%, 96% { opacity: 0; } 100% { opacity: 1; } }
/* on phones the picture keeps two device cards, so it stays a picture and not a second page */
@media (max-width: 639px) { .gl-frame__devices > .gb-dev:nth-child(n+3) { display: none; } }
.gl-frame.is-paused * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .gl-frame * { animation: none !important; } }

/* ---------- trust ---------- */
.gl-trust__list { display: grid; gap: 16px 28px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.gl-trust__list li { display: flex; gap: 14px; align-items: flex-start; }
.gl-trust__list p { padding-top: 9px; line-height: 1.75; }
.gl-trust .bk-note { align-items: flex-start; }
.gl-trust .bk-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--bk-warn); }

/* ---------- close ---------- */
.gl-close__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 4vw, 40px); border-radius: var(--bk-r-lg); background: var(--bk-surface); border: 1px solid var(--bk-line); box-shadow: var(--bk-shadow-1); }
.gl-close__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.gl-close__talk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.gl-close__talk svg { width: 16px; height: 16px; }
.gl-family { display: flex; flex-direction: column; gap: 10px; }
.gl-family ul { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.gl-family a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 0; border-top: 1px solid var(--bk-line); color: var(--bk-fg); text-decoration: none; }
.gl-family a:hover strong { color: var(--bk-accent); }
.gl-family span { font-size: var(--bk-text-sm); color: var(--bk-fg-2); line-height: 1.6; }

/* ---------- 404 ---------- */
.gl-404 { margin-top: clamp(24px, 6vw, 64px); }
.gl-404 > svg { width: 44px; height: 44px; color: var(--bk-fg-3); }
.gl-404 h1 { color: var(--bk-fg); }
.gl-404 .bk-row { justify-content: center; }

/* header links: full-size targets with any pointer (the kit does this on touch screens only) */
.bk-topbar__link { min-height: 44px; min-width: 44px; justify-content: center; }

/* the product name next to the logo is a link: a 44 px target with any pointer (the kit does it on touch screens only) */
.bk-topbar a.bk-brand__product { display: inline-flex; align-items: center; min-height: 44px; }
