/* Bekito 展示会ノート — landing page. Kit tokens only. Animations move transform and opacity only. */

.tl-hero__grid { display: grid; gap: clamp(28px, 6vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .tl-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); } }
.tl-hero .bk-hero__in { padding-block: clamp(36px, 7vw, 88px); }
/* a short window (a laptop with toolbars, or zoomed in): less air above, so the main button is never cut off */
@media (max-height: 720px) and (min-width: 900px) { .tl-hero .bk-hero__in { padding-block: 28px 36px; } .tl-hero__grid { align-items: start; } .tl-art { max-width: 460px; } }
/* two lines, each kept whole: the size follows the width so neither line ever breaks inside a phrase */
.tl-hero h1 { font-size: clamp(1.625rem, 7.4vw, 2.75rem); }
.tl-hero h1 .tl-line { display: block; white-space: nowrap; }
html[lang="en"] .tl-hero h1 { font-size: clamp(1.375rem, 6.4vw, 2.5rem); }
@media (min-width: 900px) { .tl-hero h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); } html[lang="en"] .tl-hero h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); } }
.tl-cta { gap: 12px 16px; }
@media (max-width: 480px) { .tl-cta .bk-btn { flex: 1 1 100%; } }
.tl-art { margin: 0; width: 100%; max-width: 560px; justify-self: center; border-radius: var(--bk-r-lg); background: var(--bk-bg); box-shadow: var(--bk-shadow-3); padding: clamp(10px, 2.5vw, 18px); }
.tl-art .il { width: 100%; height: auto; }

/* ---------- the pen: one drawing style for every picture ---------- */
.il { display: block; overflow: visible; }
.il-line { fill: none; stroke: var(--bk-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-thin { stroke-width: 1.5; }
.il-white { fill: var(--bk-surface); }
.il-white.il-line { fill: var(--bk-surface); }
.il-paper { fill: var(--bk-bg-sunken); }
.il-ink { fill: var(--bk-fg); }
.il-mid { opacity: .55; }
.il-soft { opacity: .24; }
.il-rule { fill: none; stroke: var(--bk-line-strong); stroke-width: 1.5; stroke-linecap: round; }
.il-copper { fill: var(--bk-accent); }
.il-copper-line { stroke: var(--bk-accent); }
.il-chip { fill: var(--bk-accent-soft); stroke: var(--bk-accent); stroke-width: 1.5; }
.il-green-line { fill: none; stroke: var(--bk-ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-corner { stroke: var(--bk-accent); stroke-width: 2.5; }
.il-flash { fill: var(--bk-surface); opacity: 0; }
.il-label { font-family: var(--bk-font); font-size: 15px; font-weight: 700; fill: var(--bk-fg-2); letter-spacing: .04em; }
.il-label--en { font-family: var(--bk-font-latin); font-size: 11.5px; letter-spacing: 0; }
.il-label--copper { fill: var(--bk-accent); }
.il-step { width: 164px; height: auto; aspect-ratio: 132 / 92; margin-bottom: 6px; }

/* ---------- hero story: 9 seconds, then again ----------
   Without animation every part rests in its last frame (cards in the photo, rows written, stamp on),
   so reduced motion, old browsers and a paused tab all show the finished picture. */
.il-hero .il-stamp { transform-box: fill-box; transform-origin: center; }
/* The story runs only once the page's script says the picture is on screen (.is-live). Without JavaScript, and on the
   first paint, the finished frame shows: rows written, stamp on. The loop starts from that frame (the negative delay). */
.il-hero.is-live { --il-shift: -6.4s; }
.il-hero.is-live .il-in, .il-hero.is-live .il-row, .il-hero.is-live .il-stamp, .il-hero.is-live .il-arrow, .il-hero.is-live .il-flash, .il-hero.is-live .il-corner { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: var(--bk-ease); animation-delay: var(--il-shift); }
.il-hero.is-live .il-in { animation-name: il-in; }
.il-hero.is-live .il-in--1 { animation-delay: calc(var(--il-shift) + .18s); }
.il-hero.is-live .il-in--2 { animation-delay: calc(var(--il-shift) + .36s); }
.il-hero.is-live .il-in--3 { animation-delay: calc(var(--il-shift) + .54s); }
.il-hero.is-live .il-flash { animation-name: il-flash; }
.il-hero.is-live .il-corner { animation-name: il-corner; }
.il-hero.is-live .il-arrow { animation-name: il-arrow; }
.il-hero.is-live .il-row { animation-name: il-row; }
.il-hero.is-live .il-row--2 { animation-delay: calc(var(--il-shift) + .32s); }
.il-hero.is-live .il-row--3 { animation-delay: calc(var(--il-shift) + .64s); }
.il-hero.is-live .il-stamp { animation-name: il-stamp; }
.il-cell { font-family: var(--bk-font); font-size: 11px; font-weight: 700; fill: var(--bk-fg); }
.il-cell--mid { fill: var(--bk-fg-2); font-weight: 500; }
.il-cell--chip { fill: var(--bk-accent); font-size: 10.5px; }
.il-cell--en { font-family: var(--bk-font-latin); font-size: 10.5px; }
.il-cell--chip.il-cell--en { font-size: 10px; }
.il.is-paused * { animation-play-state: paused !important; }

@keyframes il-in {
  0%, 4% { opacity: 0; transform: translate(-46px, 30px); }
  14%, 90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes il-flash { 0%, 23% { opacity: 0; } 26% { opacity: .85; } 32%, 100% { opacity: 0; } }
@keyframes il-corner { 0%, 20% { opacity: .35; } 26%, 90% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes il-arrow {
  0%, 30% { opacity: 0; transform: translateX(-8px); }
  36%, 90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes il-row {
  0%, 34% { opacity: 0; transform: translateY(8px); }
  41%, 90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes il-stamp {
  0%, 58% { opacity: 0; transform: scale(2.1) rotate(-12deg); }
  62% { opacity: 1; transform: scale(.9) rotate(-12deg); }
  65%, 90% { opacity: 1; transform: scale(1) rotate(-12deg); }
  97%, 100% { opacity: 0; transform: scale(1) rotate(-12deg); }
}
.il-hero .il-stamp { transform: rotate(-12deg); }

/* the small pictures: one quiet motion each, only while on screen */
.il-step .il-fill { animation: il-fill 6s var(--bk-ease) infinite; }
.il-step .il-fill--2 { animation-delay: .4s; }
.il-step .il-fill--3 { animation-delay: .8s; }
.il-step .il-shutter { animation: il-blink 6s var(--bk-ease) infinite; }
@keyframes il-fill { 0%, 8% { opacity: 0; transform: translateX(-6px); } 20%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes il-blink { 0%, 40% { opacity: 0; } 46%, 60% { opacity: 1; } 70%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .il-hero .il-in, .il-hero .il-row, .il-hero .il-stamp, .il-hero .il-arrow, .il-hero .il-flash, .il-hero .il-corner, .il-step .il-fill, .il-step .il-shutter { animation: none !important; }
  .il-step .il-shutter { opacity: 1; }
}

/* ---------- sections ---------- */
.tl-steps { margin: 0; padding: 0; list-style: none; }
.tl-steps .bk-step { padding: 22px; }
.tl-band { background: var(--bk-bg-sunken); }
.tl-real { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tl-real { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
/* the strip shows the board's own parts, laid out as on a phone (one column), whatever the window width */
.tl-real .tj-company__head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tl-real .tj-person { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb who" "thumb contact" "thumb status"; gap: 6px 12px; }
.tl-real .tj-material { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb who" "thumb contact"; gap: 6px 12px; }
.tl-real .tj-contact > * { min-width: 0; }
.tl-real .tj-thumb { display: block; width: 64px; height: 64px; border: 1px solid var(--bk-line); border-radius: var(--bk-r-sm); overflow: hidden; background: var(--bk-bg-sunken); }
.tl-real .tj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-real .tj-next__text { font-weight: 700; line-height: 1.65; margin-top: 2px; }
.tl-mail { display: flex; flex-direction: column; gap: 12px; }
.tl-mail__label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tl-mail__label .bk-ico { color: var(--bk-accent); }
.tl-mail__subject { font-weight: 700; line-height: 1.6; padding-bottom: 12px; border-bottom: 1px solid var(--bk-line); }
.tl-mail__subject > .bk-xs { display: block; font-weight: 400; } /* the label only: a part number inside the subject stays inline */
.tl-mail__body { white-space: pre-line; font-size: var(--bk-text-sm); line-height: 1.9; color: var(--bk-fg-2); }
/* the trust block starts at the same left edge as every other section; only its lines are kept short */
.tl-trust-wrap > * { max-width: 720px; }
.tl-trust { display: flex; flex-direction: column; gap: 16px; }
.tl-trust li { display: flex; gap: 14px; align-items: flex-start; }
.tl-trust p { padding-top: 9px; line-height: 1.75; font-weight: 500; }
.tl-close { border-top: 1px solid var(--bk-line); }
.tl-close .bk-chips { margin: 0; padding: 0; list-style: none; }
.tl-close .bk-chip { min-height: 44px; }

/* rise in on first sight (only parts that start below the fold; see landing.js) */
.tl-wait { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tl-wait { opacity: 1; } }


.tl-404 .bk-btn { align-self: center; }

/* Japanese inside an English page wraps by phrase too (the kit does this only when the whole page is Japanese) */
html:not([lang="ja"]) [lang="ja"] { word-break: auto-phrase; }
