/* Shared mock component library — extracted from home (nm-mocks). 
   Pages link this instead of duplicating the block. Tokens must exist on page. */
/* ============================================================
   Refined product mocks + choreography (assembly upgrade v2)
   All colors/radii from tokens. Sequences fire when .go lands
   (hero: on load / others: IntersectionObserver on [data-anim]).
   ============================================================ */

/* ---- shared window / phone chrome ---- */
.mk-window { background: var(--white); border-radius: 16px; box-shadow: 0 24px 64px rgba(8, 20, 32, 0.35); overflow: hidden; font-size: 13px; color: var(--text-1); text-align: left; }
.mk-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--linen); border-bottom: 1px solid var(--neutral-lighter); }
.mk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-lighter); }
.mk-dot.r { background: #E8968B; } .mk-dot.y { background: #F3C98B; } .mk-dot.g { background: #9CC8B5; }
.mk-title { margin-left: 8px; font-weight: 600; font-size: 12px; color: var(--text-2); }
.mk-phone { background: var(--white); border-radius: 28px; box-shadow: 0 24px 64px rgba(8, 20, 32, 0.4); border: 6px solid var(--elephant-dark); overflow: hidden; font-size: 13px; text-align: left; }
.mk-phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--elephant); color: var(--white); }
.mk-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--apricot); color: var(--white); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mk-phone-head .st { font-size: 10px; color: var(--black-squeeze); display: flex; align-items: center; gap: 4px; }
.mk-phone-head .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9CC8B5; }

/* ---- chat bubbles (refined) ---- */
.mk-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.mk-b { max-width: 85%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; }
.mk-b.guest { background: var(--neutral-lightest); border-bottom-left-radius: 4px; align-self: flex-start; }
.mk-b.ai { background: var(--elephant); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.mk-b .mk-meta { display: block; font-size: 10px; opacity: 0.7; margin-top: 4px; }
.mk-chips { display: flex; gap: 6px; align-self: flex-end; flex-wrap: wrap; }
.mk-chip { font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--apricot-lightest); color: var(--apricot-dark); border: 1px solid var(--apricot-light); }
.mk-typing { display: inline-flex; gap: 4px; padding: 10px 14px; background: var(--neutral-lightest); border-radius: 14px; border-bottom-left-radius: 4px; align-self: flex-start; }
.mk-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: mkBlink 1s infinite; }
.mk-typing i:nth-child(2) { animation-delay: 0.18s; } .mk-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes mkBlink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

/* ---- hero composition ---- */
.hero-mock { position: relative; min-height: 470px; }
.hero-inbox { position: absolute; top: 0; left: 0; width: min(480px, 88%); }
.hero-inbox .bd { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }  /* 2026-08-28: 中身より縮めるように（ページ幅のはみ出し防止） */
.hero-inbox .rail { border-right: 1px solid var(--neutral-lightest); padding: 10px 0; }
.hero-inbox .rail .it { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; font-size: 12px; color: var(--text-2); }
.hero-inbox .rail .it.on { background: var(--linen); color: var(--text-1); font-weight: 600; box-shadow: inset 3px 0 0 var(--apricot); }
.hero-inbox .rail .ct { font-size: 10px; font-weight: 600; background: var(--apricot); color: var(--white); border-radius: 100px; padding: 1px 7px; }
.hero-inbox .rail .ct.q { background: var(--neutral-lightest); color: var(--text-2); }
.hero-inbox .thread { padding: 12px 14px; min-width: 0; }
.hero-inbox .frm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.hero-inbox .frm .who { font-weight: 600; font-size: 12px; }
.hero-inbox .frm .ch { font-size: 10px; font-weight: 600; color: var(--text-2); background: var(--neutral-lightest); border-radius: 100px; padding: 2px 8px; }
.hero-inbox .msg { background: var(--neutral-lightest); border-radius: 10px; padding: 9px 11px; font-size: 12px; line-height: 1.5; }
.hero-inbox .draft { margin-top: 10px; border: 1px solid var(--apricot-light); background: var(--apricot-lightest); border-radius: 10px; padding: 9px 11px; font-size: 12px; line-height: 1.5; }
.hero-inbox .draft .lb { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--apricot-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.hero-inbox .draft .lb::before { content: "✦"; }
.hero-inbox .act { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.hero-inbox .snd { font-size: 11px; font-weight: 600; background: var(--elephant); color: var(--white); border-radius: 100px; padding: 6px 16px; }
.hero-inbox .apr { font-size: 11px; color: var(--text-2); }
.hero-phone { position: absolute; right: 0; bottom: 0; width: min(250px, 62%); z-index: 2; }
.mk-badge { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--elephant); font-size: 12px; font-weight: 600; border-radius: 100px; padding: 8px 14px; box-shadow: 0 12px 32px rgba(8, 20, 32, 0.3); }
.mk-badge .tick { width: 16px; height: 16px; border-radius: 50%; background: #9CC8B5; color: var(--white); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.mk-badge.b1 { right: max(190px, 40%); top: 76%; }
.mk-badge.b2 { left: 58%; top: -14px; }
@media (max-width: 991px) { .hero-mock { min-height: 430px; } }
@media (max-width: 600px) {
  .hero-inbox { position: relative; width: 100%; }
  /* 2026-08-28 M-3: 左の一覧列(150px固定)をやめ、上に横並びのタブとして出す */
  .hero-inbox .bd { grid-template-columns: 1fr; }
  .hero-inbox .rail { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--neutral-lightest); padding: 8px; }
  .hero-inbox .rail .it { gap: 6px; padding: 5px 9px; border-radius: 100px; background: var(--neutral-lightest); }
  .hero-inbox .rail .it.on { box-shadow: none; background: var(--linen); }
  .hero-phone { position: relative; margin: -40px 0 0 auto; }
  /* 2026-08-28: バッジは見本に重ねず、電話の下に並べる。電話も受信箱に重ねない */
  .hero-phone { margin: 12px 0 0 auto; }
  .mk-badge, .mk-badge.b1, .mk-badge.b2 { position: static; display: inline-flex; margin: 12px 8px 0 0; left: auto; right: auto; top: auto; bottom: auto; }
}

/* hero choreography */
.hero-mock .hs { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.hero-mock.go .hs { opacity: 1; transform: none; }
.hero-mock.go .hs.s2 { transition-delay: 0.25s; }
.hero-mock .pop { opacity: 0; transform: translateY(8px) scale(0.96); }
.hero-mock.go .pop { animation: mkPop 0.45s var(--ease) forwards; }
.hero-mock.go .p1 { animation-delay: 0.7s; }
.hero-mock.go .p2 { animation-delay: 2.3s; }
.hero-mock.go .p3 { animation-delay: 2.7s; }
.hero-mock.go .p4 { animation-delay: 3.1s; }
.hero-mock.go .p5 { animation-delay: 3.4s; }
.hero-mock .mk-typing { display: none; }
.hero-mock.go .mk-typing { display: inline-flex; animation: mkGone 0.01s linear 2.25s forwards; }
@keyframes mkPop { to { opacity: 1; transform: none; } }
@keyframes mkGone { to { display: none; opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; } }
.hero-mock.go .mk-badge { animation-name: mkPop, mkFloat; animation-duration: 0.45s, 5s; animation-timing-function: var(--ease), ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
.hero-mock.go .mk-badge.b1 { animation-delay: 3.1s, 4s; }
.hero-mock.go .mk-badge.b2 { animation-delay: 3.4s, 4.5s; }
@keyframes mkFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -6px; } }

/* ---- challenge: channel storm ---- */
.mk-storm { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; gap: var(--sp-3); align-items: center; background: var(--white); border-radius: var(--radius-card-lg); padding: var(--sp-4); box-shadow: var(--shadow-card); margin-top: var(--sp-5); text-align: left; }
.mk-storm .chs { display: flex; flex-direction: column; gap: 8px; }
.mk-storm .chn { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--linen); border-radius: 100px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--text-1); }
.mk-storm .chn .n { font-size: 11px; font-weight: 700; background: var(--apricot); color: var(--white); border-radius: 100px; padding: 1px 8px; min-width: 26px; text-align: center; }
.mk-storm .arrow { color: var(--linen-dark); font-size: 22px; }
.mk-storm .desk { background: var(--elephant); color: var(--white); border-radius: var(--radius-card); padding: var(--sp-3); }
.mk-storm .desk .who { display: flex; gap: 10px; align-items: center; }
.mk-storm .desk .who small { color: var(--black-squeeze); display: block; font-size: 11px; }
.mk-storm .desk .queue { margin-top: 12px; font-size: 12px; color: var(--black-squeeze); border-top: 1px solid rgba(255,255,255,0.2); padding-top: 10px; }
.mk-storm .desk .queue b { display: block; font-size: 26px; font-weight: 700; color: var(--white); }
.mk-storm[data-anim] .chn { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.mk-storm.go .chn { opacity: 1; transform: none; }
.mk-storm.go .chn:nth-child(2) { transition-delay: 0.12s; } .mk-storm.go .chn:nth-child(3) { transition-delay: 0.24s; }
.mk-storm.go .chn:nth-child(4) { transition-delay: 0.36s; } .mk-storm.go .chn:nth-child(5) { transition-delay: 0.48s; } .mk-storm.go .chn:nth-child(6) { transition-delay: 0.6s; }
@media (max-width: 767px) { .mk-storm { grid-template-columns: 1fr; } .mk-storm .arrow { display: none; } }

/* ---- journey SVG upgrade ---- */
.jn-band, .jn-pill, .jn-node { opacity: 0; }
svg.go .jn-node { animation: mkPop 0.4s var(--ease) forwards; transform-box: fill-box; transform-origin: center; transform: scale(0.5); }
svg.go .jn-node:nth-of-type(1) { animation-delay: 0.30s; } svg.go .jn-node:nth-of-type(2) { animation-delay: 0.55s; }
svg.go .jn-node:nth-of-type(3) { animation-delay: 0.80s; } svg.go .jn-node:nth-of-type(4) { animation-delay: 1.05s; }
svg.go .jn-node:nth-of-type(5) { animation-delay: 1.30s; } svg.go .jn-node:nth-of-type(6) { animation-delay: 1.55s; }
svg.go .jn-pill { animation: mkPop 0.4s var(--ease) forwards; transform-box: fill-box; transform-origin: center; transform: translateY(6px); }
svg.go .jn-pill:nth-of-type(1) { animation-delay: 0.45s; } svg.go .jn-pill:nth-of-type(2) { animation-delay: 0.70s; }
svg.go .jn-pill:nth-of-type(3) { animation-delay: 0.95s; } svg.go .jn-pill:nth-of-type(4) { animation-delay: 1.20s; }
svg.go .jn-pill:nth-of-type(5) { animation-delay: 1.45s; } svg.go .jn-pill:nth-of-type(6) { animation-delay: 1.70s; }
svg.go .jn-band { animation: mkPop 0.6s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }
svg.go .jn-band.top { animation-delay: 1.9s; }
svg.go .jn-band.bot { animation-delay: 2.1s; }

/* ---- vignette mini-mocks ---- */
.mk-mini { border: 1px solid var(--neutral-lightest); border-radius: var(--radius-card); overflow: hidden; margin-top: var(--sp-2); background: var(--white); font-size: 12px; text-align: left; }
.mk-mini-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--linen); border-bottom: 1px solid var(--neutral-lightest); font-size: 11px; font-weight: 600; color: var(--text-2); }
.mk-mini-head .tm { margin-left: auto; font-weight: 700; color: var(--elephant); }
.mk-mini .mk-chat { padding: 12px; gap: 6px; }
.mk-draftline { position: relative; }
.mk-draftline .pers { background: var(--apricot-lightest); border-bottom: 2px solid var(--apricot); padding: 1px 3px; border-radius: 3px; }
.mk-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--neutral-lightest); }
.mk-row:last-child { border-bottom: none; }
.mk-row .ok { color: #4E9B7E; font-weight: 700; }
.mk-row .hl { background: var(--apricot-lightest); color: var(--apricot-dark); font-weight: 600; border-radius: 100px; padding: 2px 10px; font-size: 11px; }
.mk-wave { display: flex; align-items: center; gap: 3px; height: 26px; padding: 0 12px; }
.mk-wave i { width: 3px; border-radius: 2px; background: var(--apricot); height: 30%; }
.go .mk-wave i { animation: mkWave 0.9s ease-in-out infinite; }
.mk-wave i:nth-child(2n) { animation-delay: 0.15s; } .mk-wave i:nth-child(3n) { animation-delay: 0.3s; } .mk-wave i:nth-child(5n) { animation-delay: 0.45s; }
@keyframes mkWave { 0%, 100% { height: 25%; } 50% { height: 90%; } }
[data-anim] .mk-seq { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.go .mk-seq { opacity: 1; transform: none; }
.go .mk-seq.d1 { transition-delay: 0.3s; } .go .mk-seq.d2 { transition-delay: 0.7s; }
.go .mk-seq.d3 { transition-delay: 1.1s; } .go .mk-seq.d4 { transition-delay: 1.5s; }

/* ---- flat scene chips (industry router / story) ---- */
.mk-scene { border-radius: var(--radius-card); overflow: hidden; display: block; width: 100%; height: auto; margin-bottom: var(--sp-2); }

/* ---- booking stack (featured story) ---- */
.mk-bookings { margin: var(--sp-2) 0; }
.mk-bookings .mk-row { background: var(--white); border: 1px solid var(--neutral-lightest); border-radius: 12px; margin-bottom: 8px; font-size: 12px; }
.mk-bookings .amt { margin-left: auto; font-weight: 700; color: var(--elephant); }

/* ---- reduced motion: everything visible, nothing moves ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-mock .hs, .hero-mock .pop, .mk-storm[data-anim] .chn, [data-anim] .mk-seq,
  .jn-band, .jn-pill, .jn-node { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero-mock .mk-typing, .hero-mock.go .mk-typing { display: none !important; }
  .go .mk-wave i, .mk-typing i, .hero-mock.go .mk-badge { animation: none !important; }
}
