/* ご相談 → できたもの（ファーストビューの下） */
.pairs { width: 100%; max-width: 1000px; margin-top: 56px; }
.pair-stage { display: grid; grid-template-columns: 300px 72px minmax(0, 1fr); align-items: center; text-align: left; }

/* 左：ご相談 */
.ask { position: relative; padding: 26px 26px 30px; border-radius: 28px 28px 28px 8px; background: var(--soft); }
.ask-label, .made-label { font-size: 12px; font-weight: 800; color: var(--sub); letter-spacing: .04em; }
.ask-quote { margin-top: 10px; text-wrap: balance; font-size: 21px; font-weight: 800; line-height: 1.6; }
.ph { display: inline-block; }
/* 3場面分の文章を同じ場所に重ね、今の場面だけを見せる（高さは一番長い文章で決まる） */
.ask-text, .made-caption { display: grid; }
.ask-layer, .cap-layer { grid-area: 1 / 1; visibility: hidden; }
.ask-layer.is-active, .cap-layer.is-active { visibility: visible; }
.cap-layer { display: grid; align-content: start; gap: 2px; }
.ch { position: relative; opacity: 0; }
.ch.on { opacity: 1; }
/* 入力中のカーソル：最後に出た文字の右に重ねる（幅を取らないので行が動かない） */
.pairs.is-typing .ch.is-last::after { content: ""; position: absolute; right: -3px; top: .2em; width: 2px; height: 1.1em; background: var(--ai); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 真ん中：流れ */
.flow { display: flex; justify-content: center; gap: 7px; }
.flow span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.pairs.is-flowing .flow span, .pairs.is-made .flow span { animation: flow 1s ease-in-out infinite; }
.flow span:nth-child(2) { animation-delay: .15s !important; }
.flow span:nth-child(3) { animation-delay: .3s !important; }
@keyframes flow { 0%, 100% { background: var(--line); transform: none; } 40% { background: var(--ai); transform: translateX(3px); } }

/* 右：できたもの */
.made-label { margin-bottom: 10px; }
.made-frame { position: relative; height: 330px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgb(28 29 33 / .35); overflow: hidden; }
.made-caption { margin-top: 14px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.pairs.is-made .made-caption { opacity: 1; transform: none; }
.made-title { font-size: 16px; font-weight: 800; }
.made-proof { font-size: 12px; color: var(--sub); }
.made-proof a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line); }
.made-proof a:hover { color: var(--ai); text-decoration-color: currentColor; }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s; }
.scene.is-active { visibility: visible; }
.pairs.is-made .scene.is-active { opacity: 1; }

/* 場面1：2D間取り図 → 3D間取り図 → 360°内覧 → スタイル切替 */
.scene-plan .plan-wrap { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px; transition: opacity .7s ease; }
.scene-plan .plan { position: relative; width: 300px; height: 210px; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.scene-plan .layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.scene-plan .room { position: absolute; }
.r-ldk { left: 0; top: 0; width: 180px; height: 128px; }
.r-bed { left: 178px; top: 0; width: 122px; height: 128px; }
.r-bath { left: 178px; top: 126px; width: 70px; height: 84px; }
.r-wc { left: 246px; top: 126px; width: 54px; height: 84px; }
.r-entry { left: 96px; top: 126px; width: 84px; height: 84px; }
/* 床：2Dでは白、3Dで素材の色に */
.floor-layer .room { background: #fff; transition: background .9s ease .3s; }
.floor-layer .room b { position: absolute; left: 9px; top: 7px; display: grid; font-size: 10.5px; font-weight: 800; color: #3a3d44; line-height: 1.3; }
.floor-layer .room small { font-size: 8.5px; font-weight: 500; color: #7a7e86; }
.p2 .floor-layer .r-ldk, .p2 .floor-layer .r-bed { background: repeating-linear-gradient(90deg, #e3c9a3 0 9px, #dcc098 9px 18px); }
.p2 .floor-layer .r-entry { background: #d8d4cc; }
.p2 .floor-layer .r-bath, .p2 .floor-layer .r-wc { background: #e6ecee; }
.p2 .floor-layer .room b { opacity: 0; transition: opacity .4s; }
/* ドアの開く向き・窓 */
.door { position: absolute; width: 22px; height: 22px; border: 1.5px solid #9aa0aa; border-left: 0; border-bottom: 0; border-radius: 0 22px 0 0; }
.d1 { left: 120px; top: 106px; } .d2 { left: 190px; top: 106px; } .d3 { left: 126px; top: 188px; transform: rotate(90deg); }
.window { position: absolute; height: 5px; border-top: 1.5px solid #6c7380; border-bottom: 1.5px solid #6c7380; background: #fff; }
.w-a { left: 30px; top: -3px; width: 90px; } .w-b { left: 205px; top: -3px; width: 70px; }
.p2 .door, .p2 .window { opacity: 0; transition: opacity .4s; }
/* 壁：重ねて高さを出す。2Dでは一番上の黒い線だけが見える */
.wall-layer { transform: translateZ(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.wall-layer .room { border: 4px solid #e9e8e4; }
.wall-layer.top .room { border-color: #2e3138; }
.p2 .wall-layer.top .room { border-color: #bdbab3; }
.p2 .wall-layer { transform: translateZ(calc(var(--i) * 1.6px)); }
/* 家具：重ねて立体に */
.furn-layer { transform: translateZ(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .15s; }
.p2 .furn-layer { transform: translateZ(calc(var(--i) * 1.6px)); }
.f { position: absolute; border-radius: 3px; background: #d9d6cf; }
.furn-layer.top .f { background: #f2f0eb; outline: 1px solid #b9b5ad; }
.p2 .furn-layer .f-sofa { background: #9aa3b3; } .p2 .furn-layer.top .f-sofa { background: #b8c0cd; }
.p2 .furn-layer .f-dining, .p2 .furn-layer .f-table, .p2 .furn-layer .f-tv { background: #b98f63; } .p2 .furn-layer.top .f-dining, .p2 .furn-layer.top .f-table, .p2 .furn-layer.top .f-tv { background: #cfa77b; }
.p2 .furn-layer .f-bed { background: #c9cfdb; } .p2 .furn-layer.top .f-bed { background: #f4f5f8; }
.p2 .furn-layer.top .f { outline-color: transparent; }
.f-sofa { left: 62px; top: 44px; width: 22px; height: 60px; }
.f-table { left: 30px; top: 58px; width: 18px; height: 32px; }
.f-dining { left: 116px; top: 36px; width: 40px; height: 52px; }
.f-tv { left: 8px; top: 46px; width: 8px; height: 56px; }
.f-bed { left: 236px; top: 40px; width: 50px; height: 76px; }
.f-tub { left: 186px; top: 150px; width: 52px; height: 34px; border-radius: 10px; }
.scene-plan.p2 .plan { transform: rotateX(56deg) rotateZ(-38deg) translateY(10px) scale(.92); }

/* 360°内覧（スタイルで色が変わる） */
.pano { --wall: #f3f1ec; --wall2: #eeebe4; --ceil: #fbfaf8; --floor-a: #cfa77d; --floor-b: #c79e72; --sofa: #c9ccd0; --wood: #d9b88f; --cur: #efe9df; --metal: #2f3238; --leaf: #7fae8a;
  position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .8s ease; background: var(--wall); }
.pano-strip { position: absolute; inset: 0 auto 0 0; display: flex; width: 200%; }
.seg { position: relative; flex: 1; background: linear-gradient(var(--ceil) 0 9%, var(--wall) 9% 66%, transparent 66%); transition: background .8s; }
.seg:nth-child(even) { background: linear-gradient(var(--ceil) 0 9%, var(--wall2) 9% 66%, transparent 66%); }
.seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: repeating-linear-gradient(90deg, var(--floor-a) 0 40px, var(--floor-b) 40px 80px); border-top: 3px solid color-mix(in srgb, var(--floor-b) 80%, #000); transition: background .8s; }
.seg i, .seg b { position: absolute; display: block; transition: background .8s, opacity .8s, border-color .8s; }
.ceil { left: 45%; top: 4%; width: 8px; height: 4px; border-radius: 4px; background: #fff7d6; box-shadow: 0 0 8px 3px rgb(255 240 190 / .7); }
.win { left: 18%; top: 15%; width: 64%; height: 46%; border: 4px solid #fff; border-radius: 3px; background: linear-gradient(#cfe3f3, #eef6fb 70%, #dfe9d9 70%); }
.cur { top: -4px; bottom: -6px; width: 22%; background: var(--cur); z-index: 1; }
.cur.l { left: -14%; } .cur.r { right: -14%; }
.furn { z-index: 2; opacity: 0; }
.lamp { right: 12%; bottom: 30%; width: 3px; height: 38%; background: var(--metal); }
.lamp::before { content: ""; position: absolute; left: -10px; top: -10px; width: 23px; height: 14px; border-radius: 12px 12px 3px 3px; background: #f6efe0; }
.art { left: 30%; top: 22%; width: 40%; height: 22%; border: 3px solid var(--wood); background: linear-gradient(135deg, #e7d9c4, #c9d5d0); }
.sofa { left: 8%; bottom: 24%; width: 84%; height: 22%; border-radius: 12px 12px 5px 5px; background: var(--sofa); }
.sofa b { left: 6%; right: 6%; top: 34%; bottom: 0; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--sofa) 82%, #000); }
.ctable { left: 34%; bottom: 13%; width: 32%; height: 6%; border-radius: 4px; background: var(--wood); }
.pendant { left: 49%; top: 0; width: 2px; height: 30%; background: var(--metal); }
.pendant::after { content: ""; position: absolute; left: -12px; bottom: -10px; width: 26px; height: 14px; border-radius: 14px 14px 2px 2px; background: var(--metal); }
.dtable { left: 22%; bottom: 25%; width: 56%; height: 16%; border-top: 6px solid var(--wood); background: linear-gradient(90deg, transparent 8%, var(--wood) 8% 13%, transparent 13% 87%, var(--wood) 87% 92%, transparent 92%); }
.chair { bottom: -6px; width: 22%; height: 120%; border-radius: 5px 5px 0 0; background: color-mix(in srgb, var(--wood) 85%, #000); }
.c1 { left: -10%; } .c2 { right: -10%; }
.tvboard { left: 12%; bottom: 25%; width: 76%; height: 11%; border-radius: 3px; background: var(--wood); }
.tv { left: 14%; bottom: 140%; width: 72%; height: 230%; border-radius: 3px; background: #1f2126; }
.plant { right: 4%; bottom: 25%; width: 20px; height: 54px; }
.plant::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 16px; border-radius: 3px 3px 6px 6px; background: #c98f6b; }
.plant::after { content: ""; position: absolute; left: -7px; right: -7px; bottom: 13px; height: 42px; border-radius: 50%; background: var(--leaf); }
/* スタイル：家具なし → 北欧風 → 英国風 */
.scene-plan.p4 .furn { opacity: 1; }
.scene-plan.p4 .pano { --wall: #f6f5f1; --wall2: #f1efe9; --floor-a: #e4cca8; --floor-b: #dcc29c; --sofa: #c3c8cf; --wood: #d6b48a; --cur: #f2ede4; }
.scene-plan.p5 .pano { --wall: #3e5a4c; --wall2: #38533f; --ceil: #f1ece2; --floor-a: #6e4c34; --floor-b: #62432d; --sofa: #8f5b3b; --wood: #4f3526; --cur: #c7a364; --metal: #b38a45; --leaf: #6f9a74; }
.scene-plan.p5 .art { background: linear-gradient(135deg, #d9c49a, #8d6b4b); }

/* 360°の画面の付属表示 */
.pano-chip { position: absolute; left: 14px; top: 12px; z-index: 3; padding: 4px 12px; border-radius: 999px; background: rgb(28 29 33 / .72); color: #fff; font-size: 11px; font-weight: 800; }
.minimap { position: absolute; left: 14px; bottom: 14px; z-index: 3; width: 92px; height: 66px; border-radius: 10px; background: rgb(255 255 255 / .94); box-shadow: 0 6px 16px -10px rgb(0 0 0 / .5); }
.mm-plan { position: absolute; inset: 9px 10px; border: 2px solid #3a3d44; }
.mm-plan i { position: absolute; background: #3a3d44; }
.mm-plan i:nth-child(1) { left: 58%; top: 0; bottom: 38%; width: 2px; }
.mm-plan i:nth-child(2) { left: 30%; right: 0; top: 62%; height: 2px; }
.mm-plan i:nth-child(3) { left: 30%; top: 62%; bottom: 0; width: 2px; }
.mm-dot { position: absolute; left: 30px; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: #1f8ae0; border: 2px solid #fff; box-shadow: 0 0 0 1px #1f8ae0; }
.mm-cone { position: absolute; left: 10px; top: 5px; width: 50px; height: 50px; border-radius: 50%; background: conic-gradient(from -35deg, rgb(31 138 224 / .38) 0 70deg, transparent 70deg); transform-origin: 50% 50%; }
.styles { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .94); box-shadow: 0 6px 16px -10px rgb(0 0 0 / .5); }
.sty { padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--sub); transition: background .3s, color .3s; }
.scene-plan.p3:not(.p4) .s-none, .scene-plan.p4:not(.p5) .s-nordic, .scene-plan.p5 .s-british { background: #1f8ae0; color: #fff; }
.p3 .plan-wrap { opacity: 0; }
.p3 .pano { opacity: 1; }
.p3 .pano-strip { animation: look 9s linear infinite; }
.p3 .mm-cone { animation: turn 9s linear infinite; }
@keyframes look { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.scene-plan .steps-mini { top: 12px; bottom: auto; }
.scene-plan.p3 .steps-mini { opacity: 0; }

/* 段階の表示 */
.steps-mini { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 4px; margin: 0; padding: 4px; list-style: none; border-radius: 999px; background: rgb(255 255 255 / .92); box-shadow: 0 4px 12px -8px rgb(0 0 0 / .4); }
.steps-mini li { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--sub); transition: background .3s, color .3s; }
.scene:not(.p2) .m1, .p2:not(.p3) .m2, .p3 .m3 { background: var(--ai); color: #fff; }
.scene-plan.p4 .m3 { background: none; color: var(--sub); }
.scene-plan.p4 .m4 { background: var(--ai); color: #fff; }


/* タブ */
.pair-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.pair-tab { position: relative; overflow: hidden; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--soft); color: var(--sub); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pair-tab[aria-selected="true"] { color: var(--ai); background: var(--ai-soft); }
.pair-tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ai); }
.pair-tab[aria-selected="true"] i { animation: progress var(--dur, 12000ms) linear forwards; }
.pairs.is-static .pair-tab i { animation: none; }
@keyframes progress { to { width: 100%; } }

/* 場面2：Excel → システム → 報告書 */
.scene-sheets { background: #fbfaf7; }
.sheet { position: absolute; width: 170px; padding: 10px 12px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 20px -14px rgb(0 0 0 / .35); transition: transform .9s cubic-bezier(.5, 0, .3, 1), opacity .7s ease; }
.sheet b { display: block; font-size: 10px; color: var(--ink); }
.sheet b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; background: #3f7d58; }
.sheet .grid { display: block; height: 52px; margin-top: 7px; background: linear-gradient(#e7e6e1 1px, transparent 1px) 0 0 / 100% 13px, linear-gradient(90deg, #e7e6e1 1px, transparent 1px) 0 0 / 34px 100%; border: 1px solid #e7e6e1; }
.sheet em { position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fbf0df; color: #9a5b13; font-style: normal; font-size: 12px; font-weight: 800; }
.sh1 { left: 6%; top: 10%; transform: rotate(-6deg); }
.sh2 { left: 38%; top: 6%; transform: rotate(3deg); }
.sh3 { right: 6%; top: 16%; transform: rotate(7deg); }
.sh4 { left: 14%; bottom: 14%; transform: rotate(4deg); }
.sh5 { right: 14%; bottom: 10%; transform: rotate(-4deg); }
.p2 .sheet { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.3) rotate(0); }
.p2 .sh1 { --tx: 160px; --ty: 70px; } .p2 .sh2 { --tx: 10px; --ty: 90px; } .p2 .sh3 { --tx: -150px; --ty: 60px; } .p2 .sh4 { --tx: 120px; --ty: -60px; } .p2 .sh5 { --tx: -110px; --ty: -70px; }
.system { position: absolute; left: 50%; top: 44%; width: 340px; padding: 12px 16px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgb(28 29 33 / .35); opacity: 0; transform: translate(-50%, -46%) scale(.94); transition: opacity .6s ease .35s, transform .6s ease .35s; font-size: 12px; }
.p2 .system { opacity: 1; transform: translate(-50%, -50%); }
.p3 .system { transform: translate(-72%, -50%) scale(.94); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.sys-bar { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sys-bar b { font-size: 13px; } .sys-bar span { font-size: 11px; color: var(--sub); }
.sys-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.sys-head { font-size: 10px; color: var(--sub); }
.st { justify-self: start; padding: 1px 9px; border-radius: 999px; font-size: 10px; }
.st.ok { background: var(--ok-soft); color: var(--ok); } .st.warn { background: #fbf0df; color: #9a5b13; }
.sys-foot { padding-top: 8px; text-align: right; }
.sys-btn { position: relative; display: inline-block; overflow: hidden; padding: 6px 14px; border-radius: 999px; background: var(--ai); color: #fff; font-size: 11px; font-weight: 800; }
.tap { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgb(255 255 255 / .6); opacity: 0; }
.p3 .tap { animation: ripple .7s ease-out forwards; }
@keyframes ripple { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(14); } }
.report { position: absolute; right: 6%; top: 16%; width: 168px; padding: 12px 12px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgb(28 29 33 / .45); opacity: 0; transform: translateY(24px) rotate(3deg); transition: opacity .5s ease .6s, transform .6s cubic-bezier(.2, .8, .2, 1) .6s; }
.report b { display: block; font-size: 12px; } .report span { display: block; font-size: 9.5px; color: var(--sub); }
.report i { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--soft); }
.report i:nth-of-type(2) { width: 80%; } .report i:nth-of-type(3) { width: 60%; }
.report em { display: block; margin-top: 8px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--ok); }
.p3 .report { opacity: 1; transform: rotate(3deg); }


/* 場面2：まとまった後の画面（実績ダッシュボード風） */
.system.dash { top: 45%; width: 486px; height: 258px; padding: 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); overflow: hidden; border-radius: 14px; font-size: 10px; background: #f3f5f9; }
.d-side { padding: 10px 8px; background: linear-gradient(#3a7bc8, #3b6fae); color: #fff; }
.d-logo { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; }
.d-logo i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .85); flex: none; }
.d-menu-label { margin: 12px 0 4px; font-size: 7px; letter-spacing: .08em; color: rgb(255 255 255 / .6); }
.d-side ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.d-side li { display: flex; align-items: center; gap: 5px; padding: 4px 5px; white-space: nowrap; border-radius: 6px; font-size: 8.5px; font-weight: 700; }
.d-side li i { width: 8px; height: 8px; border-radius: 2px; border: 1.3px solid rgb(255 255 255 / .85); flex: none; }
.d-side li.on { background: rgb(255 255 255 / .18); }
.d-main { min-width: 0; display: flex; flex-direction: column; }
.d-top { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; background: #fff; border-bottom: 1px solid #e3e7ef; font-size: 8.5px; color: #4b5260; }
.d-burger { width: 10px; height: 7px; border-top: 1.5px solid #3a7bc8; border-bottom: 1.5px solid #3a7bc8; position: relative; }
.d-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 1.3px; border-top: 1.5px solid #3a7bc8; }
.dash .sys-btn { margin-left: auto; padding: 3px 9px; border-radius: 5px; background: #2f74d0; font-size: 8.5px; }
.d-title { padding: 8px 10px 4px; display: grid; }
.d-title b { font-size: 12px; color: #1f2633; }
.d-title span { font-size: 7.5px; color: #6a7180; }
.d-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 4px 10px; }
.d-cards div { padding: 6px 7px; border-radius: 6px; background: #fff; border: 1px solid #e3e7ef; }
.d-cards span { display: block; font-size: 7px; color: #6a7180; white-space: nowrap; }
.d-cards b { font-size: 13px; color: #1f2633; }
.d-cards small { margin-left: 2px; font-size: 7px; font-weight: 500; color: #6a7180; }
.d-charts { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px 10px 10px; min-height: 0; }
.d-chart { display: flex; flex-direction: column; padding: 6px 7px; border-radius: 6px; background: #fff; border: 1px solid #e3e7ef; min-height: 0; }
.d-chart > span { font-size: 7.5px; font-weight: 800; color: #1f2633; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; margin-top: 4px; border-bottom: 1px solid #e3e7ef; border-left: 1px solid #e3e7ef; padding: 0 2px; }
.bars i { flex: 1; height: 0; background: #2f74d0; border-radius: 1px 1px 0 0; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
.hbars { flex: 1; display: grid; align-content: center; gap: 5px; margin-top: 4px; }
.hbars p { display: grid; grid-template-columns: 30px 1fr; align-items: center; margin: 0; }
.hbars em { font-style: normal; font-size: 7px; color: #6a7180; }
.hbars i { height: 7px; width: 0; background: #2f74d0; border-radius: 0 2px 2px 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.p2 .bars i { height: var(--h); }
.p2 .hbars i { width: var(--w); }
.bars i:nth-child(n) { transition-delay: calc(.5s + var(--n, 0) * 50ms); }
.p2 .hbars i { transition-delay: .9s; }
.p3 .system.dash { transform: translate(-64%, -50%) scale(.92); }
.scene-sheets .report { z-index: 2; }

/* 場面3：LINEの問い合わせにAIが自動で回答（LINEのトーク画面風） */
.scene-ai { background: linear-gradient(135deg, #eef3f9, #f7f7f4); }
.always { position: absolute; left: 22px; top: 22px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgb(0 0 0 / .4); font-size: 11px; color: var(--sub); }
.always b { font-size: 22px; line-height: 1.2; color: var(--ink); }
.clock { position: relative; width: 18px; height: 18px; margin-bottom: 4px; border-radius: 50%; border: 2px solid #06c755; }
.clock::before, .clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; background: #06c755; transform-origin: 50% 0; }
.clock::before { height: 5px; transform: translateX(-50%) rotate(180deg); }
.clock::after { height: 6px; transform: translateX(-50%) rotate(-90deg); }
.line-phone { position: absolute; left: 62%; top: 14px; bottom: 14px; width: 270px; transform: translateX(-50%); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid #dfe3e8; box-shadow: 0 30px 50px -30px rgb(28 29 33 / .45); }
.lp-head { flex: none; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #06c755; color: #fff; font-size: 12px; }
.lp-back { font-size: 18px; line-height: 1; }
.lp-more { margin-left: auto; font-size: 9px; letter-spacing: 1px; }
.lp-body { flex: 1; min-height: 0; padding: 10px 10px 8px; background: #d9e6f2; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.lp-body p { margin: 0; }
.q { position: relative; align-self: flex-end; max-width: 78%; padding: 7px 11px; border-radius: 16px; background: #8de055; color: #1c1d21; font-size: 10.5px; line-height: 1.6; }
.q::after { content: ""; position: absolute; right: -4px; top: 8px; border: 5px solid transparent; border-left-color: #8de055; border-right: 0; }
.a { align-self: flex-start; max-width: 88%; display: flex; align-items: flex-end; gap: 5px; }
.bot { width: 22px; height: 22px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 40%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 65% 40%, #fff 0 2px, transparent 2.5px), linear-gradient(135deg, #5aa7e6, #2b6fc0); border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.a-msg p, .dots { padding: 7px 11px; border-radius: 16px; background: #fff; font-size: 10.5px; line-height: 1.6; }
.dots { display: flex; gap: 4px; padding: 9px 12px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #b8bcc6; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.lp-quick { flex: none; display: flex; gap: 5px; padding: 7px 8px; background: #fff; border-top: 1px solid #eceff2; overflow: hidden; }
.lp-quick span { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid #d5dae0; font-size: 9.5px; font-weight: 800; color: #3a3d44; white-space: nowrap; transition: background .3s, border-color .3s, color .3s; }
.lp-input { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px 9px; background: #fff; }
.lp-input span { flex: 1; padding: 6px 12px; border-radius: 999px; background: #f1f3f5; font-size: 9.5px; color: #9aa0a8; }
.lp-input b { padding: 5px 12px; border-radius: 999px; background: #06c755; color: #fff; font-size: 10px; }
/* 段階：質問 → 考え中 → 回答 → 次の質問 → 回答 */
.scene-ai .q1 { animation: pop .4s ease both; }
.scene-ai .typing, .scene-ai .a1, .scene-ai .q2, .scene-ai .a2 { display: none; }
.scene-ai.p2:not(.p3) .typing { display: flex; animation: pop .3s ease both; }
.scene-ai.p3 .a1 { display: flex; animation: pop .4s ease both; }
.scene-ai.p3:not(.p4) .lp-quick span:first-child { background: #06c755; border-color: #06c755; color: #fff; }
.scene-ai.p4 .q2 { display: block; animation: pop .4s ease both; }
.scene-ai.p5 .a2 { display: flex; animation: pop .4s ease both; }
.scene-ai .steps-mini { right: auto; left: 22px; bottom: auto; top: 128px; flex-direction: column; align-items: flex-start; border-radius: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .pair-tabs { margin-bottom: 20px; gap: 6px; }
  .pair-tab { padding: 7px 12px; font-size: 12px; }
  .sheet { width: 130px; } .sheet .grid { height: 38px; }
  .p2 .sh1 { --tx: 100px; --ty: 60px; } .p2 .sh2 { --tx: 0; --ty: 70px; } .p2 .sh3 { --tx: -100px; --ty: 50px; } .p2 .sh4 { --tx: 80px; --ty: -50px; } .p2 .sh5 { --tx: -80px; --ty: -50px; }
  .system.dash { transform: translate(-50%, -46%) scale(.62); }
  .p2 .system.dash { transform: translate(-50%, -50%) scale(.66); }
  .p3 .system.dash { transform: translate(-53%, -58%) scale(.6); }
  .report { right: 4%; bottom: 4%; width: 120px; }
  .always { left: 10px; top: 10px; padding: 8px 10px; } .always b { font-size: 15px; } .always span:last-child { font-size: 9.5px; }
  .line-phone { width: 210px; left: auto; right: 10px; top: 10px; bottom: 10px; transform: none; }
  .steps-mini { display: none; }
  .report { top: auto; bottom: 14px; right: 4%; width: 136px; }
}

/* スマホ：上から下へ */
@media (max-width: 760px) {
  .pairs { margin-top: 44px; }
  .pair-stage { grid-template-columns: 1fr; gap: 0; }
  .ask { padding: 20px 20px 22px; border-radius: 22px 22px 22px 8px; }
  .ask-quote { font-size: 18px; }
  .flow { flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; }
  @keyframes flow { 0%, 100% { background: var(--line); transform: none; } 40% { background: var(--ai); transform: translateY(3px); } }
  .made-frame { height: 260px; border-radius: 22px; }
  .scene-plan .plan { transform: scale(.82); }
  .scene-plan.p2 .plan { transform: rotateX(56deg) rotateZ(-38deg) translateY(8px) scale(.76); }
  .styles { right: 8px; bottom: 8px; } .sty { padding: 2px 7px; font-size: 9.5px; } .s-more { display: none; }
  .minimap { left: 8px; bottom: 46px; width: 74px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan, .wall-layer, .furn-layer, .plan-wrap, .pano, .scene, .made-caption { transition: none !important; }
}
