/* 01 扱う技術：一面スライド＋動く仕組み（2026-11-03） */
.tx { position: relative; margin: 40px calc(50% - 50vw) 0; }
.tx-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tx-track::-webkit-scrollbar { display: none; }
.tx-slide { flex: 0 0 100vw; scroll-snap-align: start; min-height: min(84vh, 720px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; padding: 56px max(24px, calc((100vw - 1160px) / 2 + 24px)); background: var(--paper); }
.tx-slide:nth-child(2n) { background: #eef2f6; }
.tx-copy .tag { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.tx-copy .no { display: block; font-family: var(--head); font-weight: 900; font-size: 15px; color: var(--faint); letter-spacing: .1em; margin-bottom: 18px; }
.tx-copy h3 { margin-top: 14px; font-family: var(--head); font-weight: 900; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.25; letter-spacing: .02em; }
.tx-copy p.one { margin-top: 20px; font-size: 17px; line-height: 1.9; color: var(--soft); max-width: 24em; }
.tx-copy .chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tx-copy .chips span { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--soft); border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }

/* 舞台：600×400 で描き、幅に合わせて拡大縮小 */
.stage { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.stage-in { position: absolute; left: 0; top: 0; width: 600px; height: 400px; transform-origin: 0 0; font-family: var(--head); }

/* 進み具合・操作 */
.tx-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(17,23,29,.08); z-index: 3; }
.tx-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.tx-nav { position: absolute; right: max(24px, calc((100vw - 1160px) / 2 + 24px)); bottom: 34px; z-index: 3; }

.tx-nav .cnt { font-family: var(--head); font-weight: 900; font-size: 14px; letter-spacing: .1em; color: var(--ink); min-width: 4.5em; text-align: right; }
.tx-tabs { position: absolute; left: max(24px, calc((100vw - 1160px) / 2 + 24px)); bottom: 34px; display: flex; gap: 22px; z-index: 3; }
.tx-tabs a { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.tx-tabs a.on { color: var(--ink); border-color: var(--accent); }
@media (max-width: 860px) {
  .tx-slide { grid-template-columns: 1fr; gap: 24px; padding: 48px 24px 96px; min-height: 0; align-items: start; }
  .tx-copy h3 { font-size: 28px; word-break: auto-phrase; }
  .tx-copy h3 br { display: none; }
  .tx-copy p.one { font-size: 15px; }
  .tx-tabs { display: none; }
  .tx-nav { left: 24px; right: 24px; bottom: 28px; }
  .tx-nav .cnt { display: block; text-align: left; }
}

/* ── 共通の部品 ── */
.w { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(17,23,29,.08); overflow: hidden; }
.w .bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #f1f4f7; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--dim); }
.w .bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfd6dd; }
.w .bar span { margin-left: 6px; }
.slbl { position: absolute; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--faint); }

/* ── 1 MCP ── */
.mcp .chat { left: 0; top: 70px; width: 236px; height: 262px; }
.mcp .q { position: absolute; right: 12px; top: 42px; max-width: 200px; min-height: 20px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.5; padding: 7px 11px; border-radius: 12px 12px 3px 12px; }
.mcp .q .caret { display: inline-block; width: 1.5px; height: 1em; background: #fff; vertical-align: -2px; margin-left: 1px; animation: blink .8s steps(1) infinite; }
.mcp .a { position: absolute; left: 12px; top: 112px; width: 206px; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 9px 11px 10px; background: #fff; opacity: 0; transform: translateY(8px); }
.mcp .a p { font-size: 11.5px; font-weight: 700; }
.mcp .a p b { color: var(--accent); }
.mcp .bars { margin-top: 8px; height: 66px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.mcp .bars span { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; height: 0; }
.mcp .bars span:nth-child(odd) { background: #c7d3ea; }
.mcp .gate { position: absolute; left: 288px; top: 166px; width: 96px; height: 68px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; font-size: 12.5px; font-weight: 900; line-height: 1.35; }
.mcp .gate small { display: block; font-size: 9.5px; font-weight: 700; color: #9fb3d8; letter-spacing: .1em; }
.mcp .gate::after { content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 2px solid var(--accent); opacity: 0; }
.mcp .sys { position: absolute; left: 448px; width: 150px; height: 56px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); transition: none; }
.mcp .sys::before { content: ""; width: 22px; height: 26px; border-radius: 3px; border: 2px solid #b7c0ca; background: repeating-linear-gradient(#e7ebef 0 3px, transparent 3px 7px); flex: none; }
.mcp .s1 { top: 70px; } .mcp .s2 { top: 172px; } .mcp .s3 { top: 274px; }
.mcp svg.ln { position: absolute; left: 0; top: 0; width: 600px; height: 400px; overflow: visible; }
.mcp svg.ln path { fill: none; stroke: #c9d1d9; stroke-width: 1.5; }
.mcp svg.ln path.p { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 18 400; stroke-dashoffset: 18; opacity: 0; }
.mcp svg.ln path.r { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 18 400; stroke-dashoffset: 18; opacity: 0; }

.play .mcp .gate::after { animation: ring 1.2s ease-out 1.7s 1 both; }
.play .mcp .p1 { animation: pulse .7s ease-in 2.0s both; }
.play .mcp .p2 { animation: pulse .7s ease-in 2.25s both; }
.play .mcp .p3 { animation: pulse .7s ease-in 2.5s both; }
.play .mcp .p0 { animation: pulse .6s ease-in 1.4s both; }
.play .mcp .s1 { animation: lit 1.4s ease 2.6s both; }
.play .mcp .s2 { animation: lit 1.4s ease 2.85s both; }
.play .mcp .s3 { animation: lit 1.4s ease 3.1s both; }
.play .mcp .r1 { animation: pulse-r .7s ease-in 3.5s both; }
.play .mcp .r2 { animation: pulse-r .7s ease-in 3.6s both; }
.play .mcp .r3 { animation: pulse-r .7s ease-in 3.7s both; }
.play .mcp .r0 { animation: pulse-r .6s ease-in 4.2s both; }
.play .mcp .a { animation: pop .5s cubic-bezier(.2,.9,.3,1.3) 4.7s both; }
.play .mcp .bars span { animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.play .mcp .bars span:nth-child(1) { animation-delay: 5.0s; --h: 38%; }
.play .mcp .bars span:nth-child(2) { animation-delay: 5.08s; --h: 56%; }
.play .mcp .bars span:nth-child(3) { animation-delay: 5.16s; --h: 44%; }
.play .mcp .bars span:nth-child(4) { animation-delay: 5.24s; --h: 70%; }
.play .mcp .bars span:nth-child(5) { animation-delay: 5.32s; --h: 62%; }
.play .mcp .bars span:nth-child(6) { animation-delay: 5.40s; --h: 92%; }

/* ── 2 専門のAI ── */
.sai .zone { position: absolute; left: 0; top: 30px; width: 600px; height: 340px; border: 2px dashed var(--accent); border-radius: 14px; }
.sai .zone .slbl { left: 16px; top: -9px; background: var(--paper); padding: 0 8px; color: var(--accent); }
.tx-slide:nth-child(2n) .sai .zone .slbl { background: #eef2f6; }
.sai .pn { position: absolute; top: 28px; width: 178px; height: 236px; }
.sai .pn > :not(.bar):not(.cap) { margin-left: 22px; }
.sai .pn .bar { font-size: 10px; }
.sai .p-img { left: 16px; } .sai .p-aud { left: 209px; } .sai .p-num { left: 402px; }
.sai .photo { position: absolute; left: 10px; top: 36px; width: 112px; height: 112px; border-radius: 6px; background: linear-gradient(160deg, #dfe6f0, #b9c6d8); overflow: hidden; }
.sai .photo::before { content: ""; position: absolute; left: 22px; bottom: 0; width: 68px; height: 62px; border-radius: 34px 34px 0 0; background: #8fa1bb; }
.sai .photo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px 2px rgba(43,95,217,.5); opacity: 0; }
.sai .box { position: absolute; left: 26px; top: 64px; width: 80px; height: 84px; border: 2px solid var(--accent); border-radius: 3px; opacity: 0; transform: scale(1.25); }
.sai .box b { position: absolute; left: -2px; top: -18px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.sai .wave { position: absolute; left: 12px; top: 56px; width: 110px; height: 64px; display: flex; align-items: center; gap: 3px; }
.sai .wave i { flex: 1; height: 20%; background: var(--accent); border-radius: 2px; }
.sai .tr { position: absolute; left: 12px; top: 140px; width: 112px; font-size: 11px; font-weight: 700; line-height: 1.55; color: var(--ink); min-height: 50px; }
.sai .chart { position: absolute; left: 6px; top: 40px; width: 122px; height: 120px; }
.sai .chart .past { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; }
.sai .chart .fut { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 5 5; opacity: 0; }
.sai .chart .dot { fill: var(--accent); opacity: 0; }
.sai .keep { position: absolute; left: 0; right: 0; top: 278px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--accent); }
.sai .keep svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sai .pn .cap { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; font-weight: 900; }

.play .sai .photo::after { animation: scan 1.6s ease-in-out .4s 2 both; }
.play .sai .box { animation: boxin .45s cubic-bezier(.2,.9,.3,1.2) 3.4s both; }
.play .sai .wave i { animation: wv .5s ease-in-out infinite alternate; }
.play .sai .wave i:nth-child(3n) { animation-duration: .38s; } .play .sai .wave i:nth-child(4n) { animation-duration: .62s; } .play .sai .wave i:nth-child(5n) { animation-duration: .44s; }
.play .sai .chart .past { animation: draw 1.6s ease-out .8s both; }
.play .sai .chart .fut { animation: fadein .3s ease 2.4s both, dash 1.2s linear 2.4s infinite; }
.play .sai .chart .dot { animation: fadein .3s ease 3.4s both; }

/* ── 3 アプリの中のAI ── */
.app .form { left: 40px; top: 30px; width: 340px; height: 340px; }
.app .f { position: absolute; left: 18px; right: 18px; height: 46px; }
.app .f1 { top: 42px; } .app .f2 { top: 104px; } .app .f3 { top: 166px; } .app .f4 { top: 228px; }
.app .f small { display: block; font-size: 10px; font-weight: 700; color: var(--faint); letter-spacing: .06em; }
.app .f .in { margin-top: 3px; height: 26px; border: 1px solid var(--line); border-radius: 5px; padding: 0 36px 0 9px; display: flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; position: relative; }
.app .f .in em { font-style: normal; opacity: 0; }
.app .f .mk { position: absolute; right: 5px; top: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: var(--accent); opacity: 0; transform: scale(.4); }
.app .f4 .mk { background: #d97a1a; }
.app .f4 .warn { position: absolute; left: 10px; top: 20px; line-height: 26px; font-size: 11.5px; font-weight: 700; color: #b35f0e; opacity: 0; }
.app .scan { position: absolute; left: 10px; right: 10px; top: 36px; height: 58px; border-radius: 8px; background: rgba(43,95,217,.07); border: 1.5px solid rgba(43,95,217,.45); opacity: 0; }
.app .ok { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 34px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 900; }
.app .note { position: absolute; left: 404px; top: 92px; width: 190px; }
.app .note .ai { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 24px rgba(17,23,29,.07); font-size: 12px; font-weight: 700; line-height: 1.6; opacity: 0; transform: translateX(-10px); }
.app .note .ai b { color: #b35f0e; }
.app .note .ai span { display: block; font-size: 10px; letter-spacing: .12em; color: var(--accent); margin-bottom: 2px; }
.app .note .hu { margin-top: 16px; font-size: 12px; font-weight: 900; color: var(--ink); opacity: 0; }
.app .cursor { position: absolute; left: 470px; top: 330px; width: 18px; height: 22px; opacity: 0; }
.app .cursor::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 0 100%, 30% 75%, 52% 100%, 66% 92%, 45% 68%, 80% 68%); }

.play .app .f1 .in em { animation: fadein .25s ease .4s both; }
.play .app .f2 .in em { animation: fadein .25s ease .8s both; }
.play .app .f3 .in em { animation: fadein .25s ease 1.2s both; }
.play .app .scan { animation: scanform 2.6s cubic-bezier(.6,0,.4,1) 1.8s both; }
.play .app .f1 .mk { animation: mark .3s cubic-bezier(.2,.9,.3,1.4) 2.3s both; }
.play .app .f2 .mk { animation: mark .3s cubic-bezier(.2,.9,.3,1.4) 2.95s both; }
.play .app .f3 .mk { animation: mark .3s cubic-bezier(.2,.9,.3,1.4) 3.6s both; }
.play .app .f4 .mk { animation: mark .3s cubic-bezier(.2,.9,.3,1.4) 4.25s both; }
.play .app .f4 .in { animation: warnbg .4s ease 4.25s both; }
.play .app .f4 .warn { animation: fadein .3s ease 4.4s both; }
.play .app .note .ai { animation: slidein .45s ease 4.7s both; }
.play .app .note .hu { animation: fadein .4s ease 5.6s both; }
.play .app .cursor { animation: cur 1.6s cubic-bezier(.5,0,.3,1) 5.8s both; }
.play .app .ok { animation: press .25s ease 7.25s both; }

/* ── 4 古い仕組み ── */
.leg .sheet { left: 0; top: 46px; width: 260px; height: 300px; }
.leg .cells { position: absolute; left: 0; right: 0; top: 26px; bottom: 30px; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 1fr; gap: 1px; background: var(--line); }
.leg .cells i { background: #fff; }
.leg .cells i:nth-child(7n), .leg .cells i:nth-child(11n) { background: #eef1f4; }
.leg .hang { position: absolute; left: 0; right: 0; top: 26px; bottom: 30px; display: grid; place-items: center; background: rgba(255,255,255,.55); }
.leg .hang b { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; color: #c8402f; background: #fff; border: 1px solid #f0c8c2; padding: 6px 12px; border-radius: 999px; }
.leg .hang b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #f0c8c2; border-top-color: #c8402f; animation: rot .8s linear infinite; }
.leg .sheet .foot { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 10.5px; font-weight: 700; color: var(--dim); border-top: 1px solid var(--line); background: #f7f9fa; }
.leg .web { left: 330px; top: 74px; width: 270px; height: 244px; opacity: 0; transform: translateX(-24px) scale(.96); }
.leg .web .fast { margin-left: auto; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 999px; font-size: 10px; }
.leg table { width: 100%; border-collapse: collapse; margin: 0; background: none; font-size: 11.5px; }
.leg th, .leg td { border: none; border-bottom: 1px solid var(--line); padding: 7px 12px; text-align: left; line-height: 1.4; font-family: var(--head); }
.leg th { background: var(--accent); color: #fff; font-size: 10.5px; letter-spacing: .06em; }
.leg td:last-child { color: var(--accent); font-weight: 900; }
.leg tr.rw { opacity: 0; }
.leg .fly { position: absolute; width: 30px; height: 14px; background: #e3e8ee; border-radius: 2px; opacity: 0; }
.leg .fl1 { left: 60px; top: 120px; } .leg .fl2 { left: 120px; top: 170px; } .leg .fl3 { left: 90px; top: 220px; } .leg .fl4 { left: 170px; top: 140px; }
.leg .same { position: absolute; left: 330px; top: 334px; font-size: 12px; font-weight: 900; color: var(--ink); opacity: 0; }
.leg .same::before { content: "同じ並び・同じ計算・"; color: var(--soft); font-weight: 700; }

.play .leg .sheet { animation: shake .5s ease-in-out .6s 3; }
.play .leg .hang { animation: fadeout .4s ease 2.6s both; }
.play .leg .cells { animation: dim .6s ease 2.6s both; }
.play .leg .fl1 { animation: fly 1s cubic-bezier(.5,0,.2,1) 2.9s both; --dx: 300px; --dy: -10px; }
.play .leg .fl2 { animation: fly 1s cubic-bezier(.5,0,.2,1) 3.0s both; --dx: 250px; --dy: -30px; }
.play .leg .fl3 { animation: fly 1s cubic-bezier(.5,0,.2,1) 3.1s both; --dx: 290px; --dy: -50px; }
.play .leg .fl4 { animation: fly 1s cubic-bezier(.5,0,.2,1) 3.2s both; --dx: 200px; --dy: 10px; }
.play .leg .web { animation: webin .7s cubic-bezier(.2,.9,.3,1) 3.7s both; }
.play .leg tr.rw:nth-child(2) { animation: fadein .3s ease 4.2s both; }
.play .leg tr.rw:nth-child(3) { animation: fadein .3s ease 4.35s both; }
.play .leg tr.rw:nth-child(4) { animation: fadein .3s ease 4.5s both; }
.play .leg tr.rw:nth-child(5) { animation: fadein .3s ease 4.65s both; }
.play .leg .same { animation: fadein .4s ease 5s both; }

/* keyframes */
@keyframes blink { 50% { opacity: 0; } }
@keyframes ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes pulse { 0% { opacity: 1; stroke-dashoffset: 18; } 100% { opacity: 1; stroke-dashoffset: -400; } }
@keyframes pulse-r { 0% { opacity: 1; stroke-dashoffset: -400; } 100% { opacity: 1; stroke-dashoffset: 18; } }
@keyframes lit { 0%, 100% { border-color: var(--line); box-shadow: none; } 20%, 70% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,95,217,.12); } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes grow { to { height: var(--h); } }
@keyframes scan { 0% { opacity: 1; top: 0; } 100% { opacity: 1; top: 110px; } }
@keyframes boxin { to { opacity: 1; transform: none; } }
@keyframes wv { from { height: 18%; } to { height: 95%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes blinkx { 50% { opacity: .25; } }
@keyframes scanform { 0% { opacity: 0; top: 36px; } 8% { opacity: 1; top: 36px; } 25% { top: 36px; } 50% { top: 98px; } 75% { top: 160px; } 92% { opacity: 1; top: 222px; } 100% { opacity: 0; top: 222px; } }
@keyframes mark { to { opacity: 1; transform: none; } }
@keyframes warnbg { to { border-color: #e9a55c; background: #fff7ee; } }
@keyframes slidein { to { opacity: 1; transform: none; } }
@keyframes cur { 0% { opacity: 0; left: 470px; top: 330px; } 15% { opacity: 1; } 85% { opacity: 1; left: 210px; top: 330px; } 100% { opacity: 1; left: 210px; top: 330px; } }
@keyframes press { 50% { transform: scale(.96); background: var(--accent); } 100% { background: var(--accent); } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes dim { to { opacity: .35; filter: blur(.5px); } }
@keyframes fly { 0% { opacity: 0; transform: none; } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.6); } }
@keyframes webin { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tx * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; } }

html, body { overflow-x: clip; }

/* 扉の背景 */
.hero-silk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
