/* Bekito シラセ — the landing page. Kit tokens only; the hero drawing carries its own (brand) colours as SVG attributes. */

/* ---------- hero ---------- */
.sh-hero { align-items: center; }
.sh-hero__note { color: rgba(243, 238, 230, .72); }
.sh-figure { margin: 0; }
.sh-art { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; overflow: visible; }
.sh-art text { font-family: var(--bk-font); font-weight: 700; }
html[lang="en"] .sh-art text { font-family: var(--bk-font-latin); }
.sh-art__label { font-size: 19px; }
.sh-art .sh-art__label--sm { font-size: 16px; }
.sh-art__btntext, .sh-art__small { font-size: 17px; }
.sh-art .sh-art__btntext--sm { font-size: 14px; }
.sh-art__head { font-size: 19px; }
.sh-art text.sh-art__tiny { font-size: 12px; font-weight: 500; }
.sh-art text.sh-art__tiny--b { font-weight: 700; }
.sh-art text.sh-art__mono, .sh-art text.sh-art__digits { font-family: var(--bk-font-latin); font-weight: 600; }
.sh-art text.sh-art__mono { font-size: 12.5px; letter-spacing: .02em; }
.sh-art text.sh-art__digits { font-size: 18px; letter-spacing: .02em; }
@media (min-width: 900px) { .bk-hero .sh-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

/*
 * The loop, 9 seconds:
 *   the phone scans the label → "registered" travels to the ledger → the new row appears →
 *   a notice travels back to the phone → 確認 is pressed and becomes the green stamp →
 *   a stamp flies to the new row and lands.
 * The resting styles below ARE the last frame, so a browser that plays nothing
 * (reduced motion, no animation support, the social image) shows the finished story.
 * Only transform and opacity move.
 */
.sh-art__beam, .sh-art__view, .sh-art__chip, .sh-art__notice, .sh-art__btn, .sh-art__fly, .sh-art__ring { opacity: 0; }
.sh-art__btn-in, .sh-art__pstamp-in, .sh-art__lstamp-in, .sh-art__ring { transform-box: fill-box; transform-origin: center; }

.sh-art__beam { animation: sh-beam 9s var(--bk-ease) infinite both; }
.sh-art__phone { animation: sh-phone 9s var(--bk-ease) infinite both; }
.sh-art__view { animation: sh-view 9s var(--bk-ease) infinite both; }
.sh-art__screen { animation: sh-screen 9s var(--bk-ease) infinite both; }
.sh-art__chip { animation: sh-chip 9s var(--bk-ease) infinite both; }
.sh-art__row { animation: sh-row 9s var(--bk-ease) infinite both; }
.sh-art__notice { animation: sh-notice 9s var(--bk-ease) infinite both; }
.sh-art__btn { animation: sh-btn 9s var(--bk-ease) infinite both; }
.sh-art__btn-in { animation: sh-press 9s var(--bk-ease) infinite both; }
.sh-art__pstamp { animation: sh-pstamp 9s var(--bk-ease) infinite both; }
.sh-art__pstamp-in { animation: sh-pstamp-in 9s var(--bk-ease) infinite both; }
.sh-art__fly { animation: sh-fly 9s var(--bk-ease) infinite both; }
.sh-art__lstamp { animation: sh-lstamp 9s var(--bk-ease) infinite both; }
.sh-art__lstamp-in { animation: sh-lstamp-in 9s var(--bk-ease) infinite both; }
.sh-art__ring { animation: sh-ring 9s var(--bk-ease) infinite both; }
.sh-art.is-paused * { animation-play-state: paused; }
.sh-art.is-still * { animation: none; }

@keyframes sh-beam { 0%, 6% { opacity: 0; } 9%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes sh-phone { 0%, 5% { transform: translateY(0); } 9%, 18% { transform: translateY(-8px); } 23%, 100% { transform: translateY(0); } }
@keyframes sh-view { 0%, 2% { opacity: 0; } 4%, 20% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes sh-screen { 0% { opacity: 1; } 3%, 56% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes sh-chip {
  0%, 22% { opacity: 0; transform: translateX(0); }
  24% { opacity: 1; transform: translateX(0); }
  33% { opacity: 1; transform: translateX(76px); }
  36%, 100% { opacity: 0; transform: translateX(76px); }
}
@keyframes sh-row { 0% { opacity: 1; transform: none; } 3%, 34% { opacity: 0; transform: translateY(6px); } 39%, 100% { opacity: 1; transform: none; } }
@keyframes sh-notice {
  0%, 42% { opacity: 0; transform: translateX(0); }
  44% { opacity: 1; transform: translateX(0); }
  55% { opacity: 1; transform: translateX(-84px); }
  58%, 100% { opacity: 0; transform: translateX(-84px); }
}
@keyframes sh-btn { 0%, 2% { opacity: 0; } 3%, 68% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes sh-press { 0%, 63% { transform: scale(1); } 65.5% { transform: scale(.9); } 68%, 100% { transform: scale(1); } }
@keyframes sh-pstamp { 0% { opacity: 1; } 3%, 68% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes sh-pstamp-in { 0% { transform: scale(1); } 3%, 68% { transform: scale(1.8); } 72% { transform: scale(.94); } 75%, 100% { transform: scale(1); } }
@keyframes sh-fly {
  0%, 73% { opacity: 0; transform: translate(0, 0); }
  75% { opacity: 1; transform: translate(0, 0); }
  85% { opacity: 1; transform: translate(332px, 32px); }
  87%, 100% { opacity: 0; transform: translate(332px, 32px); }
}
@keyframes sh-lstamp { 0% { opacity: 1; } 3%, 85% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes sh-lstamp-in { 0% { transform: scale(1); } 3%, 85% { transform: scale(1.7); } 89% { transform: scale(.94); } 92%, 100% { transform: scale(1); } }
@keyframes sh-ring { 0%, 86% { opacity: 0; transform: scale(1); } 88% { opacity: .75; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(2); } }

/* ---------- how it works ---------- */
.sh-steps { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
@media (min-width: 700px) { .sh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sh-step__art { width: 100%; max-width: 230px; height: auto; margin-block: 2px 8px; }
.sh-step__art .s { fill: none; stroke: var(--bk-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-step__art .thin { stroke-width: 1.5; }
.sh-step__art .paper { fill: var(--bk-bg); }
.sh-step__art .white, .sh-step__art .page { fill: var(--bk-surface); }
.sh-step__art .ink { fill: var(--bk-fg); }
.sh-step__art .soft { opacity: .3; }
.sh-step__art .faint { opacity: .16; }
.sh-step__art .dash { stroke-dasharray: 2 7; opacity: .5; }
.sh-step__art .off { opacity: .3; }
.sh-step__art .c { fill: none; stroke: var(--bk-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sh-step__art .cf { fill: var(--bk-accent); }
.sh-step__art .g { fill: none; stroke: var(--bk-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 699px) {
  .sh-steps { grid-template-columns: minmax(0, 1fr); }
  .sh-steps .bk-step { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 16px; }
  .sh-steps .bk-step::before { grid-column: 2; align-self: end; }
  .sh-steps .bk-step h3 { grid-column: 2; }
  .sh-steps .bk-step p { grid-column: 2; align-self: start; }
  .sh-step__art { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .sh-family { gap: 8px; }
  .sh-family__card { padding: 12px 16px; }
}
.sh-step__scan { animation: sh-step-scan 3.6s var(--bk-ease) infinite alternate both; }
@keyframes sh-step-scan { from { transform: translateY(-22px); } to { transform: translateY(22px); } }

/* ---------- the working screens ---------- */
.sh-band { background: var(--bk-bg-sunken); }
.sh-strip { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .sh-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "label maker" "user maker"; }
  .sh-strip__label { grid-area: label; }
  .sh-strip__maker { grid-area: maker; }
  .sh-strip__user { grid-area: user; }
}
.sh-strip .bk-table td, .sh-strip .bk-table th { padding-inline: 12px; }
.sh-g5 { flex-grow: 5; }
.sh-g3 { flex-grow: 3; }
.sh-try { display: flex; flex-direction: column; align-items: center; min-height: 64px; justify-content: center; }
.sh-try__done { display: inline-flex; align-items: center; gap: 14px; color: var(--bk-ok); }

/* ---------- data ---------- */
.sh-trustwrap > * { max-width: 760px; }
.sh-mini { display: flex; flex-direction: column; font-size: var(--bk-text-sm); border-top: 1px solid var(--bk-line); }
.sh-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px solid var(--bk-line); }
.sh-trust { display: grid; gap: 18px; }
.sh-trust li { display: flex; align-items: flex-start; gap: 16px; }
.sh-trust p { padding-top: 8px; }

/* ---------- close ---------- */
.sh-talk { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; font-weight: 700; }
.sh-family { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.sh-family__card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; }
.sh-message { gap: 24px; }
.sh-msgpage { display: flex; flex-direction: column; }
.sh-msgpage > main { flex: 1 0 auto; }
.sh-message h1, .sh-message h2 { color: var(--bk-fg); }
.sh-message [lang="en"] { font-family: var(--bk-font-latin); }

/* ---------- first reveal (set by landing.js; without script everything is simply there) ---------- */
.sh-wait { opacity: 0; transform: translateY(8px); }
.sh-show { opacity: 1; transform: none; transition: opacity 360ms var(--bk-ease), transform 360ms var(--bk-ease); }
.sh-show:nth-child(2) { transition-delay: 60ms; }
.sh-show:nth-child(3) { transition-delay: 120ms; }

@media print { .sh-skip { display: none; } }
