/* 売却査定チャット：チャット画面のCSS（#wsChat 配下のみに適用。サイトの既存CSSと干渉しないようスコープ化） */
#wsChat{--ink:#4a391e;--sub:#847662;--line:#e8dece;--gold:#a68739;--gold-dark:#80631f;--gold-light:#fff1c6;--bg:#fffaf4;--white:#fff;--red:#b4493e;--radius:11px;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;color:var(--ink)}
#wsChat *{box-sizing:border-box}
#wsChat{margin:0;background:var(--bg);font-size:15px;line-height:1.75}
#wsChat button,#wsChat input,#wsChat select,#wsChat textarea{font:inherit}
#wsChat button{cursor:pointer}
#wsChat button:disabled{cursor:not-allowed;opacity:.45}
#wsChat a{color:inherit}
#wsChat button:focus-visible,#wsChat a:focus-visible,#wsChat input:focus-visible,#wsChat select:focus-visible,#wsChat textarea:focus-visible{outline:3px solid #d1a53d;outline-offset:3px}
#wsChat [hidden]{display:none!important}
#wsChat .shell{max-width:1180px;margin:0 auto;padding:24px 30px 80px;display:grid;grid-template-columns:minmax(0,820px) 230px;gap:50px;align-items:start}
#wsChat .form-column{min-width:0}
#wsChat .card{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
#wsChat .progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 32px}
#wsChat .progress-item{border:0;background:transparent;text-align:left;padding:7px 0 12px;color:#a99b84;font-size:11px;position:relative;line-height:1.55;white-space:nowrap}
#wsChat .progress-item:after{content:"";height:3px;background:#e8dfd1;position:absolute;left:0;right:0;bottom:0;border-radius:6px}
#wsChat .progress-item.active{font-weight:700;color:#61491d}
#wsChat .progress-item.active:after,#wsChat .progress-item.done:after{background:#aa883e}
#wsChat .progress-item.done{color:#8a774f}
#wsChat .progress-item[data-stage]:hover{color:#775817}
#wsChat .progress-item .step-no{font-size:10px;letter-spacing:.07em;display:block}
#wsChat .progress-aside{position:sticky;top:24px;padding-top:2px}
#wsChat .progress-card{background:#fff;border:1px solid #efe6d9;border-radius:12px;box-shadow:0 12px 36px #6348210d;padding:24px 20px 19px;text-align:center}
#wsChat .progress-card h2{font-size:15px;margin:0 0 17px;font-weight:700;color:#42331d}
#wsChat .progress-ring{width:158px;height:158px;margin:auto;position:relative;border-radius:50%;display:grid;place-items:center;background:conic-gradient(from 0deg,#c97942 0%,#c97942 var(--progress),#e8e6e2 var(--progress),#e8e6e2 100%)}
#wsChat .progress-ring:before{content:"";position:absolute;inset:17px;border-radius:50%;background:white}
#wsChat .ring-text{position:relative;z-index:1;display:flex;flex-direction:column;line-height:1.3}
#wsChat .ring-text strong{font-size:34px;font-weight:700;color:#bb7044;font-family:Arial,sans-serif}
#wsChat .ring-text span{font-size:13px;color:#bb7044;font-weight:700}
#wsChat .progress-caption{margin:17px 0 0;padding-top:15px;border-top:1px solid #eee8df;font-size:11px;line-height:1.8;color:#817767}
#wsChat .progress-caption strong{display:block;color:#69552d}
#wsChat .mobile-progress{display:none}
#wsChat .footer-note{margin:28px 0 0;text-align:center;color:#938775;font-size:11px;line-height:1.9}
#wsChat .footer-note a{color:#77613a;text-underline-offset:3px}
#wsChat .mobile-only{display:none}
#wsChat .conversation{padding:0;min-height:320px}
#wsChat .timeline-stage{padding:0 0 36px;margin:0 0 36px;border-bottom:1px dashed #d9c9ae;min-width:0}
#wsChat .timeline-stage:last-child{border-bottom:0;margin-bottom:0}
#wsChat .section-heading{display:flex;align-items:center;gap:13px;margin:0 0 22px}
#wsChat .section-icon{width:39px;height:39px;flex:none;display:grid;place-items:center;background:#eee0c1;border-radius:11px;color:#93702c}
#wsChat .section-icon svg{width:21px;height:21px}
#wsChat .section-heading h2{margin:0;font-size:21px;line-height:1.35;letter-spacing:.02em}
#wsChat .section-heading p{margin:4px 0 0;color:#91836f;font-size:12px;line-height:1.6}
#wsChat .section-heading .stage-count{margin-left:auto;border:1px solid #dfcfac;border-radius:30px;padding:3px 10px;font-size:10px;color:#937849;white-space:nowrap}
#wsChat .answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:0 0 23px}
#wsChat .answer-grid:empty{display:none}
#wsChat .answer-card{min-width:0;position:relative;display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;background:white;border:1.5px solid #b8a16e;border-radius:9px;color:#5a441e;padding:11px 13px;min-height:68px;transition:background .15s,border-color .15s;box-shadow:0 2px 0 #b6a06b0b}
#wsChat .answer-card:hover{background:#fffdf7;border-color:#88651f}
#wsChat .answer-card.wide{grid-column:1/-1}
#wsChat .answer-card.is-empty{border-style:dashed;color:#9a8b72}
#wsChat .answer-card-content{min-width:0;overflow-wrap:anywhere}
#wsChat .answer-card small{display:block;color:#95836a;font-size:10px;line-height:1.5;margin-bottom:3px}
#wsChat .answer-card strong{display:block;font-size:15px;line-height:1.55;font-weight:700}
#wsChat .answer-card.is-empty strong{font-weight:400}
#wsChat .answer-card .check{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#b2a122;color:#fff;flex:none}
#wsChat .answer-card .check svg{width:15px;height:15px}
#wsChat .answer-card.is-empty .check{background:#e8e0d3;color:#998a70}
#wsChat .answer-card .edit-mark{position:absolute;right:12px;top:5px;font-size:9px;color:#a08e6e;opacity:0}
#wsChat .answer-card:hover .edit-mark,#wsChat .answer-card:focus-visible .edit-mark{opacity:1}
#wsChat .question-block{scroll-margin-top:30px}
#wsChat .question-line{display:flex;align-items:flex-start;gap:11px;margin:0 0 18px}
#wsChat .guide-avatar{width:36px;height:36px;border-radius:50%;background:#f1e3cb;color:#8a6b35;display:grid;place-items:center;flex:none}
#wsChat .guide-avatar svg{width:19px;height:19px}
#wsChat .question-bubble{background:#fff;border:1.5px solid #b4a051;border-radius:18px;padding:18px 22px;max-width:calc(100% - 47px);position:relative;box-shadow:0 2px 0 #b6a06b0b}
#wsChat .question-bubble:before,#wsChat .question-bubble:after{content:none}
#wsChat .question-bubble p{margin:0;font-weight:700;font-size:15px;line-height:1.7;color:#5e471d}
#wsChat .question-bubble small{display:block;margin-top:5px;font-size:11px;font-weight:400;color:var(--sub)}
#wsChat .guide-name{display:block;font-size:10px;color:#99866a;text-align:center;line-height:1.4;margin-top:4px}
#wsChat .guide-side{flex:none;width:44px;display:flex;flex-direction:column;align-items:center}
#wsChat .guide-intro{display:flex;align-items:flex-start;gap:11px;margin:0 0 20px}
#wsChat .guide-intro .question-bubble{font-size:13px;font-weight:500;line-height:1.8;color:#67522a;max-width:560px}
#wsChat .guide-intro .question-bubble strong{font-weight:700}
#wsChat .gentle-note{background:#fff0be;border-radius:15px 15px 15px 3px;color:#715518;padding:11px 16px;font-size:12px;font-weight:700;line-height:1.7;max-width:max-content;margin:0 0 24px 55px}
#wsChat .required{display:inline-block;background:#a94b41;border-radius:4px;color:#fff;font-size:10px;padding:0 5px;line-height:20px;margin-left:7px;vertical-align:2px}
#wsChat .optional{font-weight:400;color:#a29581;font-size:11px;margin-left:7px}
#wsChat .answer-area{padding-left:55px}
#wsChat .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#wsChat .choices.one{grid-template-columns:1fr}
#wsChat .choice{border:1.5px solid #ac9056;background:white;border-radius:9px;padding:13px 16px;min-height:58px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#624a1e;font-weight:700;font-size:14px;line-height:1.6;transition:border-color .15s,background .15s,box-shadow .15s}
#wsChat .choice:hover{border-color:#836118;background:#fff9e9}
#wsChat .choice.selected{border-color:#a08832;background:#fff8e2;box-shadow:inset 0 0 0 1px #a08832}
#wsChat .choice .check{border:1.5px solid #cbbd9b;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;flex:none;color:transparent;font-size:15px;line-height:1}
#wsChat .choice.selected .check{background:#b2a122;border-color:#b2a122;color:#fff}
#wsChat .choice .multi{border-radius:6px}
#wsChat .choice-desc{display:block;color:#8a7e6c;font-size:11px;font-weight:400;line-height:1.6;margin-top:2px}
#wsChat .field{display:flex;flex-direction:column;gap:7px;min-width:0}
#wsChat .field>label{font-size:12px;font-weight:700;color:#6a5431}
#wsChat .field .hint{font-weight:400;color:#959187;font-size:11px}
#wsChat .field input,#wsChat .field select,#wsChat .field textarea{width:100%;min-width:0;border:1.5px solid #baa06c;border-radius:9px;background:#fff;padding:12px 14px;color:var(--ink);min-height:55px;outline:none}
#wsChat .field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2380672b' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;padding-right:35px}
#wsChat .field input:focus,#wsChat .field select:focus,#wsChat .field textarea:focus{border-color:#9c762b;box-shadow:0 0 0 3px #b6975b22}
#wsChat .field textarea{min-height:110px;resize:vertical}
#wsChat .field input::placeholder,#wsChat .field textarea::placeholder{color:#b0a494}
#wsChat .field-error{font-size:11px;color:var(--red);min-height:0}
#wsChat .field input.invalid,#wsChat .field select.invalid,#wsChat .field textarea.invalid{border-color:var(--red)}
#wsChat .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
#wsChat .address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
#wsChat .field-grid+.field-grid,#wsChat .field-grid+.field,#wsChat .field+.field{margin-top:15px}
#wsChat .field.wide{grid-column:1/-1}
#wsChat .help{font-size:11px;color:var(--sub);margin:10px 0 0}
#wsChat .help a{text-decoration:underline}
#wsChat .subtle-btn{background:none;border:0;color:#907747;padding:4px 0;font-size:12px;text-decoration:underline;text-underline-offset:3px}
#wsChat .actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:25px}
#wsChat .primary{border:1px solid #795b24;border-radius:9px;background:#866526;color:white;padding:14px 24px;min-height:54px;font-weight:700;flex:1;max-width:330px;transition:background .15s,transform .15s}
#wsChat .primary:hover{background:#6c4f1d;transform:translateY(-1px)}
#wsChat .secondary{border:1px solid #d6c5a4;border-radius:9px;background:#fff;padding:12px 16px;font-size:12px;min-height:50px;color:#7d6a49}
#wsChat .skip{background:none;border:0;color:#8d7851;text-decoration:underline;font-size:12px;min-height:48px;padding:0 4px}
#wsChat .inline-message{background:#fff6db;border:1px solid #e7d7ad;border-radius:9px;color:#70592e;padding:11px 13px;font-size:12px;margin:12px 0}
#wsChat .error-box{border:1px solid #e5bcb8;background:#fff8f7;color:#a5453c;border-radius:9px;padding:10px 13px;font-size:12px;margin-top:14px}
#wsChat .loading{font-size:12px;color:#8b7c5e}
#wsChat .review{display:grid;gap:19px}
#wsChat .review-section{border:1px solid #e5d9c4;border-radius:10px;overflow:hidden;background:#fff}
#wsChat .review-section h3{margin:0;padding:12px 15px;background:#f6f0e6;font-size:13px}
#wsChat .review-row{display:grid;grid-template-columns:145px minmax(0,1fr);gap:15px;padding:10px 15px;border-top:1px solid #f0e9de;font-size:12px;overflow-wrap:anywhere}
#wsChat .review-row dt{color:#82725a}
#wsChat .review-row dd{margin:0}
#wsChat .consent{display:flex;align-items:flex-start;gap:10px;margin-top:21px;font-size:12px;line-height:1.8}
#wsChat .consent input{width:18px;height:18px;accent-color:#9d7f45;flex:none;margin-top:2px}
#wsChat .completion{text-align:center;padding:35px 5px 35px}
#wsChat .completion .icon{width:72px;height:72px;border:1px solid #d8c8a6;background:#fff;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;color:#a88b51;font-size:28px}
#wsChat .completion h3{font-size:23px;margin:0 0 10px}
#wsChat .completion p{color:var(--sub);font-size:13px}
#wsChat .completion .primary{margin-top:19px}
#wsChat .address-mode{display:flex;gap:9px;margin-bottom:18px}
#wsChat .mode-button{border:1px solid #dfd2b9;background:white;border-radius:8px;padding:10px 14px;font-size:12px;color:#806b48}
#wsChat .mode-button.selected{background:#f5eacb;border-color:#ad9056;color:#6e562e;font-weight:700}
#wsChat .special-note{display:block;color:#827b6b;font-size:11px;margin-top:8px}
#wsChat .request-panel{border:1px solid #e2d8c3;border-radius:10px;padding:17px;background:#fff}
#wsChat .request-panel strong{font-size:15px}
#wsChat .request-panel p{font-size:12px;color:#777064;margin:6px 0 0}
#wsChat .request-panel .checkline{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px}
#wsChat .request-panel input{width:18px;height:18px;accent-color:#a38854}
#wsChat .return-edit{display:flex;justify-content:flex-end;margin:0 0 14px}
#wsChat .return-edit button{background:none;border:0;text-decoration:underline;color:#8b733f;font-size:12px}
#wsChat .privacy-lead{font-size:11px;color:#8a7e6c;margin:12px 0 0}
@media(max-width:1000px){#wsChat .shell{gap:28px;grid-template-columns:minmax(0,1fr) 200px}
#wsChat .progress-card{padding:20px 13px}
#wsChat .progress-ring{width:142px;height:142px}
#wsChat .shell{padding-left:24px;padding-right:24px}}
@media(max-width:760px){#wsChat .shell{display:block;padding:18px 16px 45px}
#wsChat .progress-aside{display:none}
#wsChat .mobile-progress{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e8decd;border-radius:10px;padding:10px 13px;margin-bottom:20px}
#wsChat .mobile-progress-label{flex:none;font-size:11px;color:#8a795e}
#wsChat .mobile-progress-label strong{font-size:16px;color:#a37635}
#wsChat .mobile-progress-track{flex:1;height:6px;background:#eee8dc;border-radius:10px;overflow:hidden}
#wsChat .mobile-progress-track span{display:block;height:100%;width:0;background:#b47a3f;transition:width .2s}
#wsChat .progress{gap:3px;margin-bottom:25px}
#wsChat .progress-item{font-size:10px;padding:4px 0 10px;line-height:1.4}
#wsChat .progress-item .step-no{font-size:9px}
#wsChat .timeline-stage{padding-bottom:27px;margin-bottom:27px}
#wsChat .section-heading{gap:10px;margin-bottom:18px}
#wsChat .section-icon{width:34px;height:34px;border-radius:9px}
#wsChat .section-icon svg{width:19px;height:19px}
#wsChat .section-heading h2{font-size:19px}
#wsChat .section-heading p{font-size:11px}
#wsChat .section-heading .stage-count{font-size:9px;padding:2px 7px}
#wsChat .answer-grid{gap:9px;margin-bottom:21px}
#wsChat .answer-card{padding:10px;min-height:64px;gap:5px}
#wsChat .answer-card strong{font-size:12px}
#wsChat .answer-card small{font-size:9px}
#wsChat .answer-card .check{width:21px;height:21px}
#wsChat .answer-card .check svg{width:13px;height:13px}
#wsChat .answer-card .edit-mark{opacity:1;top:4px;right:9px;font-size:8px}
#wsChat .question-line,#wsChat .guide-intro{gap:8px}
#wsChat .guide-side{width:29px}
#wsChat .guide-avatar{width:29px;height:29px}
#wsChat .guide-avatar svg{width:16px;height:16px}
#wsChat .guide-name{display:none}
#wsChat .question-bubble{max-width:calc(100% - 37px);padding:14px 16px;border-radius:16px}
#wsChat .question-bubble:before,#wsChat .question-bubble:after{content:none}
#wsChat .question-bubble p{font-size:14px}
#wsChat .question-bubble small{font-size:10px}
#wsChat .guide-intro .question-bubble{font-size:12px}
#wsChat .gentle-note{margin-left:37px;padding:10px 13px;font-size:11px}
#wsChat .answer-area{padding-left:0}
#wsChat .choices{gap:9px}
#wsChat .choice{min-height:57px;padding:12px 11px;gap:6px;font-size:12px;line-height:1.5}
#wsChat .choice .check{width:21px;height:21px;font-size:12px}
#wsChat .choice-desc{font-size:10px}
#wsChat .field input,#wsChat .field select,#wsChat .field textarea{min-height:53px;padding:12px;font-size:16px}
#wsChat .field select{padding-right:29px;background-position:right 11px center}
#wsChat .field-grid,#wsChat .address-grid{grid-template-columns:1fr;gap:10px}
#wsChat .actions{margin-top:22px;gap:8px}
#wsChat .primary{min-height:52px;padding:12px 14px;font-size:13px}
#wsChat .secondary{padding:11px;font-size:11px}
#wsChat .skip{font-size:11px}
#wsChat .review-row{grid-template-columns:1fr;gap:2px;padding:9px 12px}
#wsChat .footer-note{font-size:10px}
#wsChat .mobile-only{display:block}}
@media(max-width:360px){#wsChat .answer-card strong{font-size:11px}
#wsChat .choice{font-size:11px;padding:10px 8px}
#wsChat .choice .check{width:19px;height:19px}
#wsChat .section-heading h2{font-size:18px}
#wsChat .section-heading .stage-count{display:none}}
@media(prefers-reduced-motion:reduce){#wsChat *,#wsChat *:before,#wsChat *:after{transition:none!important;animation:none!important}}
body.ws-modal-open{overflow:hidden}
#wsChat .current-stage{scroll-margin-top:24px}
#wsChat .summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 25px}
#wsChat .summary-card{min-width:0;min-height:77px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#fff;border:1.5px solid #ab9055;border-radius:10px;color:#654d21;transition:background .15s,border-color .15s,box-shadow .15s}
#wsChat .summary-card:hover{background:#fff9ea;border-color:#80631f;box-shadow:0 3px 12px #6a502010}
#wsChat .summary-card.wide{grid-column:1/-1}
#wsChat .summary-copy{min-width:0;overflow-wrap:anywhere}
#wsChat .summary-copy strong{display:block;font-size:15px;line-height:1.5;font-weight:700}
#wsChat .summary-copy small{display:block;margin-top:5px;font-size:11px;line-height:1.6;color:#88765b;font-weight:400}
#wsChat .summary-icon{display:grid;place-items:center;flex:none;width:27px;height:27px;color:#80631f}
#wsChat .summary-icon svg{width:22px;height:22px}
#wsChat .summary-icon.has-value{background:#b2a122;border-radius:50%;color:#fff;width:25px;height:25px}
#wsChat .summary-icon.has-value svg{width:16px;height:16px}
#wsChat .overview-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px dashed #dccdae;padding-top:22px;margin-top:5px}
#wsChat .overview-actions p{margin:0;color:#8b7d67;font-size:12px}
#wsChat .overview-primary{max-width:280px;min-width:200px;flex:none}
#wsChat .previous-stage{border:1px solid #e7ddcb;border-radius:12px;background:#fff;margin:0 0 20px;overflow:hidden}
#wsChat .previous-stage>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:13px 17px;list-style:none;color:#6b5530;font-size:13px;font-weight:700}
#wsChat .previous-stage>summary::-webkit-details-marker{display:none}
#wsChat .previous-stage>summary>span:first-child{display:flex;align-items:center;gap:8px}
#wsChat .previous-stage svg{width:17px;height:17px;color:#a58744}
#wsChat .previous-hint{font-size:11px;color:#9a8a70;font-weight:400;white-space:nowrap}
#wsChat .previous-stage[open] .previous-hint span{display:inline-block;transform:rotate(180deg)}
#wsChat .previous-stage .summary-grid{padding:3px 15px 17px;margin:0}
#wsChat .review-overview{background:#fff;border:1px solid #e6d9c4;border-radius:12px;padding:22px}
#wsChat .review-overview p{margin:0 0 18px;font-size:13px;color:#756650}
#wsChat .modal-layer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:22px;background:rgba(31,27,22,.66);overscroll-behavior:contain}
#wsChat .modal-panel{position:relative;width:min(720px,100%);height:min(810px,calc(100dvh - 44px));min-height:min(510px,calc(100dvh - 44px));display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fffaf7;border:5px solid #80631f;border-radius:18px;box-shadow:0 22px 70px #1d16084a}
#wsChat .modal-header{display:flex;align-items:center;gap:17px;flex:none;min-height:72px;background:#68500f;color:#fff;padding:13px 18px}
#wsChat .modal-header h2{font-size:21px;line-height:1.4;margin:0;font-weight:700;flex:1;min-width:0;overflow-wrap:anywhere}
#wsChat .modal-back{border:1px solid #fff9e4;background:transparent;color:#fff;padding:8px 19px;min-height:39px;font-size:12px;white-space:nowrap}
#wsChat .modal-back:hover,#wsChat .modal-close:hover{background:#ffffff1c}
#wsChat .modal-close{width:43px;height:43px;flex:none;display:grid;place-items:center;border:0;background:transparent;color:#fff;border-radius:5px}
#wsChat .modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px 104px;background:#fffaf7}
#wsChat .modal-description{margin:0;padding:12px 20px 0;background:#fffaf7;flex:none;font-size:12px;color:#897963;line-height:1.7}
#wsChat .modal-body .choices{grid-template-columns:1fr;gap:8px}
#wsChat .modal-body .modal-choices.dense-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#wsChat .modal-body .modal-choices.dense-3{grid-template-columns:repeat(4,minmax(0,1fr))}
#wsChat .modal-body .choice{min-height:62px;padding:12px 16px;border:1.5px solid transparent;border-radius:2px;background:#f7e8db;color:#3e3933;font-size:16px;font-weight:500;line-height:1.45;box-shadow:none}
#wsChat .modal-body .choice:hover{background:#f1dfce;border-color:#d9c5ad}
#wsChat .modal-body .choice.selected{background:#fff2dc;border-color:#a88745;box-shadow:inset 0 0 0 1px #a88745}
#wsChat .modal-body .choice-copy{min-width:0;overflow-wrap:anywhere}
#wsChat .modal-body .choice-indicator{display:grid;place-items:center;flex:none;width:25px;height:25px;border:1.5px solid #c3ae89;border-radius:50%;background:#fff;color:transparent;font-size:15px;font-weight:700}
#wsChat .modal-body .choice.selected .choice-indicator{background:#a88c37;border-color:#a88c37;color:#fff}
#wsChat .modal-body .choice-indicator.multi{border-radius:5px}
#wsChat .modal-body .choice-desc{font-size:12px;margin-top:4px}
#wsChat .modal-body .field{margin:0 0 16px}
#wsChat .modal-body .field>label{font-size:13px}
#wsChat .modal-body .field input,#wsChat .modal-body .field select,#wsChat .modal-body .field textarea{font-size:16px}
#wsChat .modal-body .field-grid .field,#wsChat .modal-body .address-grid .field{margin-bottom:0}
#wsChat .modal-body .field-grid,#wsChat .modal-body .address-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
#wsChat .modal-body .field.wide{grid-column:1/-1}
#wsChat .modal-body .address-mode{margin-bottom:20px}
#wsChat .modal-body .mode-button{min-height:46px;flex:1;font-size:12px}
#wsChat .modal-action-dock{position:absolute;left:0;right:0;bottom:0;z-index:30;margin:0;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(255,250,247,.96),#fffaf7 18%);border-top:1px solid #e9dcc8;box-shadow:0 -10px 24px rgba(80,61,20,.09)}
#wsChat .modal-action-dock #formError:empty{display:none}
#wsChat .modal-action-dock .error-box{margin:0 0 8px}
#wsChat .modal-body .modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0;padding:0;border:0}
#wsChat .modal-body .modal-actions .primary{max-width:270px;flex:0 1 270px}
#wsChat .modal-body .modal-actions .skip{margin-right:auto}
#wsChat .modal-body .review{gap:15px}
#wsChat .modal-body .review-section{background:#fff}
#wsChat .modal-body .review-row{grid-template-columns:120px minmax(0,1fr)}
#wsChat .modal-body .request-panel{margin-top:18px}
#wsChat .modal-body .consent{margin-top:18px}
@media(max-width:760px){#wsChat .summary-grid{gap:9px}
#wsChat .summary-card{padding:12px 11px;min-height:66px;gap:7px}
#wsChat .summary-copy strong{font-size:12px}
#wsChat .summary-copy small{font-size:10px}
#wsChat .summary-icon{width:21px;height:21px}
#wsChat .summary-icon svg{width:19px;height:19px}
#wsChat .summary-icon.has-value{width:21px;height:21px}
#wsChat .summary-icon.has-value svg{width:13px;height:13px}
#wsChat .overview-actions{display:block}
#wsChat .overview-actions p{margin-bottom:12px}
#wsChat .overview-primary{width:100%;max-width:none}
#wsChat .previous-stage>summary{padding:12px;font-size:12px}
#wsChat .previous-hint{font-size:10px}
#wsChat .previous-stage .summary-grid{padding:0 10px 12px}
#wsChat .modal-layer{padding:0}
#wsChat .modal-panel{width:100%;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0}
#wsChat .modal-header{min-height:65px;padding:11px 13px;gap:11px}
#wsChat .modal-header h2{font-size:18px}
#wsChat .modal-back{padding:7px 12px;min-height:38px}
#wsChat .modal-close{width:37px;height:37px}
#wsChat .modal-body{padding:12px 10px calc(96px + env(safe-area-inset-bottom))}
#wsChat .modal-body .choice{min-height:58px;padding:10px 11px;font-size:14px;gap:7px}
#wsChat .modal-body .choice-indicator{width:22px;height:22px}
#wsChat .modal-body .modal-choices.dense-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#wsChat .modal-body .modal-choices.dense-3{grid-template-columns:repeat(3,minmax(0,1fr))}
#wsChat .modal-body .modal-choices.dense-3 .choice{font-size:13px;padding:9px 7px}
#wsChat .modal-action-dock{left:0;right:0;bottom:0;margin:0;padding-left:10px;padding-right:10px}
#wsChat .modal-body .field-grid,#wsChat .modal-body .address-grid{grid-template-columns:1fr;gap:10px}
#wsChat .modal-body .field-grid .field,#wsChat .modal-body .address-grid .field{margin-bottom:0}
#wsChat .modal-body .mode-button{padding:9px 7px;font-size:11px}
#wsChat .modal-body .modal-actions{gap:8px}
#wsChat .modal-body .modal-actions .primary{max-width:none;flex:1 1 auto;min-height:50px}
#wsChat .modal-body .modal-actions .skip{flex:0 0 auto;margin:0;min-height:44px}
#wsChat .modal-body .review-row{grid-template-columns:1fr;gap:3px}}
@media(prefers-reduced-motion:reduce){#wsChat .modal-panel,#wsChat .summary-card{transition:none!important}}
#wsChat{--ink:#3f3a39;
 --sub:#77716c;
 --line:#e5e1d9;
 --gold:#d2a717;
 --gold-dark:#b68e08;
 --gold-light:#fbf6df;
 --bg:#ffffff;
 --white:#ffffff;
 --red:#b4493e;
 --radius:2px;
 font-family:"Yu Gothic","YuGothic","Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
 color:var(--ink)}
#wsChat{background:#fff;color:#3f3a39;font-family:"Yu Gothic","YuGothic","Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;letter-spacing:.035em}
#wsChat .shell{max-width:1180px;padding-top:30px}
#wsChat .progress-item{color:#8a8580;font-weight:600;letter-spacing:.05em}
#wsChat .progress-item:after{height:2px;background:#e5e1d9;border-radius:0}
#wsChat .progress-item.active{color:#3f3a39;font-weight:700}
#wsChat .progress-item.active:after,#wsChat .progress-item.done:after{background:#d2a717}
#wsChat .progress-item.done{color:#6f6965}
#wsChat .progress-card{border:1px solid #e4e0d8;border-radius:0;box-shadow:none;padding:24px 20px;background:#fff}
#wsChat .progress-card h2{color:#3f3a39;letter-spacing:.08em}
#wsChat .progress-ring{background:conic-gradient(from 0deg,#d2a717 0%,#d2a717 var(--progress),#ece9e2 var(--progress),#ece9e2 100%)}
#wsChat .ring-text strong,#wsChat .ring-text span{color:#3f3a39}
#wsChat .progress-caption{border-top-color:#e5e1d9;color:#77716c}
#wsChat .progress-caption strong{color:#3f3a39}
#wsChat .mobile-progress{border:1px solid #e5e1d9;border-radius:0;background:#fff}
#wsChat .mobile-progress-label{color:#77716c}
#wsChat .mobile-progress-label strong{color:#3f3a39}
#wsChat .mobile-progress-track{background:#ece9e2;border-radius:0}
#wsChat .mobile-progress-track span{background:#d2a717}
#wsChat .timeline-stage{border-bottom:1px solid #e8e4dc}
#wsChat .section-icon{background:#3f3a39;color:#fff;border-radius:0;position:relative}
#wsChat .section-icon:after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:3px;background:#d2a717}
#wsChat .section-heading h2{color:#3f3a39;font-weight:700;letter-spacing:.07em}
#wsChat .section-heading p{color:#77716c}
#wsChat .section-heading .stage-count{border-color:#d8d1c3;color:#6d655b;border-radius:0}
#wsChat .answer-card{background:#fff;border:1px solid #c8c2b8;border-radius:0;color:#3f3a39;box-shadow:none;min-height:66px}
#wsChat .answer-card:hover{background:#fcfbf7;border-color:#d2a717}
#wsChat .answer-card small{color:#8d8780}
#wsChat .answer-card .check{background:#d2a717;border-radius:0}
#wsChat .answer-card.is-empty{color:#88827c}
#wsChat .answer-card.is-empty .check{background:#e5e1d9;color:#857f78;border-radius:0}
#wsChat .question-bubble{border:1px solid #cfc9bf;border-left:5px solid #d2a717;border-radius:0;box-shadow:none;background:#fff;padding:18px 22px}
#wsChat .question-bubble p{color:#3f3a39;letter-spacing:.04em}
#wsChat .question-bubble small{color:#77716c}
#wsChat .guide-avatar{background:#f2f0eb;color:#3f3a39;border-radius:50%}
#wsChat .guide-name{color:#77716c}
#wsChat .gentle-note{background:#f8f5eb;color:#3f3a39;border-radius:0;border-left:5px solid #d2a717}
#wsChat .required{background:#3f3a39;border-radius:0}
#wsChat .optional{color:#8c8781}
#wsChat .choice{border:1px solid #bdb7ad;background:#fff;border-radius:0;color:#3f3a39;font-weight:700;box-shadow:none}
#wsChat .choice:hover{border-color:#d2a717;background:#fcfbf7}
#wsChat .choice.selected{border-color:#d2a717;background:#fbf6df;box-shadow:inset 0 0 0 1px #d2a717}
#wsChat .choice .check{border-color:#c6c0b7;border-radius:0}
#wsChat .choice.selected .check{background:#d2a717;border-color:#d2a717}
#wsChat .choice .multi{border-radius:0}
#wsChat .choice-desc{color:#7c7670}
#wsChat .field>label{color:#3f3a39;font-weight:700;letter-spacing:.05em}
#wsChat .field .hint{color:#85807b}
#wsChat .field input,#wsChat .field select,#wsChat .field textarea{border:1px solid #bdb7ad;border-radius:0;background:#fff;color:#3f3a39}
#wsChat .field input:focus,#wsChat .field select:focus,#wsChat .field textarea:focus{border-color:#d2a717;box-shadow:0 0 0 2px rgba(210,167,23,.16)}
#wsChat .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%233f3a39' stroke-width='1.8'/%3E%3C/svg%3E")}
#wsChat .help,#wsChat .loading{color:#77716c}
#wsChat .subtle-btn,#wsChat .skip{color:#6d655b}
#wsChat .primary{border:0;border-radius:0;background:#d2a717;color:#fff;font-weight:700;letter-spacing:.08em;box-shadow:none}
#wsChat .primary:hover{background:#c59c0b;transform:none}
#wsChat .secondary{border:1px solid #aaa39a;border-radius:0;background:#fff;color:#3f3a39}
#wsChat .inline-message{background:#fbf6df;border:1px solid #e7d9a2;border-radius:0;color:#3f3a39}
#wsChat .error-box{border-radius:0}
#wsChat .review-section,#wsChat .request-panel{border-color:#dcd7ce;border-radius:0}
#wsChat .review-section h3{background:#f5f3ef;color:#3f3a39}
#wsChat .review-row{border-top-color:#ece8e1}
#wsChat .review-row dt{color:#77716c}
#wsChat .mode-button{border:1px solid #bdb7ad;background:#fff;border-radius:0;color:#3f3a39}
#wsChat .mode-button.selected{background:#3f3a39;border-color:#3f3a39;color:#fff}
#wsChat .completion .icon{border-color:#d2a717;border-radius:0;color:#d2a717}
#wsChat .completion h3{color:#3f3a39}
#wsChat .summary-card{border:1px solid #c8c2b8;border-radius:0;background:#fff;box-shadow:none;color:#3f3a39}
#wsChat .summary-card:hover{border-color:#d2a717;background:#fcfbf7}
#wsChat .summary-card.is-active,#wsChat .summary-card.is-complete{border-color:#d2a717}
#wsChat .summary-card .summary-arrow{color:#d2a717}
#wsChat .modal-layer{background:rgba(20,20,20,.64)}
#wsChat .modal-panel{background:#fff;border:1px solid #3f3a39;border-radius:0;box-shadow:0 24px 70px rgba(0,0,0,.26)}
#wsChat .modal-header{background:#3f3a39;color:#fff;min-height:76px;padding:14px 20px;border-bottom:5px solid #d2a717}
#wsChat .modal-header h2{font-weight:700;letter-spacing:.07em}
#wsChat .modal-back{border:1px solid rgba(255,255,255,.9);background:transparent;color:#fff;border-radius:0;font-weight:700}
#wsChat .modal-back:hover,#wsChat .modal-close:hover{background:rgba(255,255,255,.10)}
#wsChat .modal-description{background:#fff;color:#77716c;padding-top:16px}
#wsChat .modal-body{background:#fff}
#wsChat .modal-body .choice{background:#fff;border:1px solid #c6c0b7;border-radius:0;color:#3f3a39;min-height:58px;font-weight:700}
#wsChat .modal-body .choice:hover{background:#fbf9f2;border-color:#d2a717}
#wsChat .modal-body .choice.selected{background:#fbf6df;border-color:#d2a717;box-shadow:inset 0 0 0 1px #d2a717}
#wsChat .modal-body .choice-indicator{border-color:#c3bdb4;border-radius:0;background:#fff}
#wsChat .modal-body .choice.selected .choice-indicator{background:#d2a717;border-color:#d2a717}
#wsChat .modal-body .choice-indicator.multi{border-radius:0}
#wsChat .modal-action-dock{background:linear-gradient(to bottom,rgba(255,255,255,.96),#fff 18%);border-top:1px solid #e5e1d9;box-shadow:0 -10px 22px rgba(0,0,0,.06)}
#wsChat .modal-body .field input,#wsChat .modal-body .field select,#wsChat .modal-body .field textarea{border-color:#bdb7ad}
#wsChat .modal-body .field input:focus,#wsChat .modal-body .field select:focus,#wsChat .modal-body .field textarea:focus{border-color:#d2a717}
@media(max-width:760px){#wsChat .shell{padding-top:18px}
#wsChat .question-bubble{border-left-width:4px}
#wsChat .modal-panel{border:0}
#wsChat .modal-header{border-bottom-width:4px}}
#wsChat .summary-copy small{color:#77716c}
#wsChat .summary-icon{color:#3f3a39}
#wsChat .summary-icon.has-value{background:#d2a717;border-radius:0;color:#fff}
#wsChat .overview-actions{border-top:1px solid #e5e1d9}
#wsChat .overview-actions p{color:#77716c}
#wsChat .previous-stage{border:1px solid #ded9d0;border-radius:0;background:#fff}
#wsChat .previous-stage>summary{color:#3f3a39}
#wsChat .previous-stage svg{color:#d2a717}
#wsChat .previous-hint{color:#77716c}
#wsChat .review-overview{border-color:#ded9d0;border-radius:0}
#wsChat .review-overview p{color:#77716c}
#wsChat .return-edit button{color:#3f3a39}
#wsChat .privacy-lead{color:#77716c}
#wsChat .conversation{background:#fdf8e6;padding:26px 24px 30px}
#wsChat .timeline-stage.current-stage{border-bottom:0;padding-bottom:0;margin-bottom:0}
#wsChat .section-heading{margin-bottom:22px}
#wsChat .guide-intro{position:relative;margin:0 0 10px;padding-top:18px}
#wsChat .guide-intro:before{content:"売却専門スタッフ";position:absolute;top:0;left:56px;font-size:11px;color:#6d655b;letter-spacing:.05em}
#wsChat .guide-intro .guide-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;overflow:hidden;background:#f2f0eb}
#wsChat .guide-intro .guide-avatar img{width:100%;height:100%;object-fit:cover}
#wsChat .guide-intro .guide-name{display:none}
#wsChat .guide-intro .guide-side{width:40px}
#wsChat .guide-intro .question-bubble{position:relative;max-width:calc(100% - 52px);padding:12px 18px;border:1px solid #e3dcc6;border-left:1px solid #e3dcc6;border-radius:6px;background:#fff;box-shadow:none;color:#3f3a39;font-size:14px;font-weight:700;line-height:1.7}
#wsChat .guide-intro .question-bubble:before{content:"";display:block;position:absolute;left:-7px;top:14px;width:11px;height:11px;background:#fff;border-left:1px solid #e3dcc6;border-bottom:1px solid #e3dcc6;transform:rotate(45deg)}
#wsChat .guide-intro .question-bubble.is-next{margin-top:0}
#wsChat .guide-intro:has(.is-next){margin-top:22px}
#wsChat .gentle-note{position:relative;margin:0 0 14px 51px;padding:12px 18px;border:1px solid #e3dcc6;border-left:1px solid #e3dcc6;border-radius:6px;background:#fff;box-shadow:none;color:#3f3a39;font-size:13px;font-weight:700}
#wsChat .gentle-note:before{content:"";position:absolute;left:-7px;top:14px;width:11px;height:11px;background:#fff;border-left:1px solid #e3dcc6;border-bottom:1px solid #e3dcc6;transform:rotate(45deg)}
#wsChat .pre-wrap{margin:0 0 18px}
#wsChat .pre-block{margin:0}
#wsChat .pre-label{display:block;margin:18px 0 8px;color:#3f3a39;font-size:12px;font-weight:700}
#wsChat .pre-label small{margin-left:10px;color:#77716c;font-size:12px;font-weight:400}
#wsChat .pre-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#wsChat .pre-grid .pre-box,#wsChat .pre-select{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:60px;padding:0 16px;border:2px solid #3f3a39;border-radius:4px;background:#fff;color:#3f3a39;font-size:18px;font-weight:700;text-align:left}
#wsChat .pre-select{font-size:16px;color:#a8a29a}
#wsChat .pre-select.is-filled{font-size:18px;color:#3f3a39}
#wsChat .pre-select svg{width:18px;height:18px;color:#3f3a39;flex:none}
#wsChat .pre-box i,#wsChat .pre-select i{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#d2a717;color:#fff;font-size:15px;font-style:normal;line-height:1}
#wsChat .pre-edit{display:inline-block;margin:10px 0 0;padding:0;border:0;background:none;color:#6d655b;font-size:12px;text-decoration:underline;text-underline-offset:3px}
#wsChat .pre-select:hover{background:#fffaf0}
#wsChat .overview-actions{border-top:0;padding-top:8px}
#wsChat .overview-actions p{color:#6d655b}
#wsChat .overview-primary{border-radius:4px}
#wsChat .field select{background-repeat:no-repeat;background-position:right 15px center;background-size:12px 8px;padding-right:35px}
@media(max-width:760px){#wsChat .field select{background-position:right 11px center;padding-right:29px}
#wsChat{background:#fdf8e6}
#wsChat .shell{padding:12px 0 45px}
#wsChat .conversation{padding:18px 12px 22px;border-radius:0}
#wsChat .section-heading{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"icon title step" "icon desc desc";column-gap:10px;row-gap:2px;align-items:center}
#wsChat .section-heading>div{display:contents}
#wsChat .section-heading .section-icon{grid-area:icon}
#wsChat .section-heading h2{grid-area:title}
#wsChat .section-heading p{grid-area:desc;margin:0}
#wsChat .section-heading .stage-count{grid-area:step;margin-left:0}
#wsChat .previous-stage{margin-bottom:8px}
#wsChat .previous-stage+.timeline-stage{margin-top:16px}
#wsChat .guide-intro:before{left:48px}
#wsChat .gentle-note{margin-left:45px}
#wsChat .pre-grid{gap:10px}
#wsChat .pre-grid .pre-box,#wsChat .pre-select{min-height:54px;padding:0 12px;font-size:16px}
#wsChat .pre-grid .pre-box:nth-child(3){grid-column:1/-1}}
#wsChat .summary-copy small .nb{white-space:nowrap}
#wsChat .section-icon:after{content:none}
#wsChat .summary-icon.has-value svg{color:#fff}
@media(min-width:761px){#wsChat .shell{display:block;max-width:820px;margin:0 auto;padding:30px 24px 80px}
#wsChat .progress-aside{position:fixed;top:30px;right:0;z-index:30;width:230px;padding:0}
#wsChat .progress-aside .progress-card{border-right:0;box-shadow:0 8px 24px rgba(0,0,0,.12)}}
@media(min-width:761px) and (max-width:1239px){#wsChat .progress-aside{display:none}
#wsChat .mobile-progress{display:flex}}
@media(max-width:760px){#wsChat .progress,#wsChat .mobile-progress{display:none}}
#wsChat .area-search{position:relative;z-index:4;padding:0 0 8px}
#wsChat .area-search input{width:100%;min-height:55px;padding:12px 14px;border:1px solid #bdb7ad;border-radius:0;background:#fff;color:#3f3a39;font-size:16px;outline:none}
#wsChat .area-search input:focus{border-color:#d2a717;box-shadow:0 0 0 2px rgba(210,167,23,.16)}
#wsChat .area-skip{position:sticky;top:-14px;z-index:3;margin:-14px 0 0;padding:14px 0 8px;background:#fff}
@media(max-width:760px){#wsChat .area-skip{top:-12px;margin-top:-12px;padding:12px 0 5px}
#wsChat .summary-card{min-height:50px;padding:7px 10px;gap:6px}
#wsChat .summary-card .summary-copy strong{font-size:11px;line-height:1.4}
#wsChat .summary-card.is-complete .summary-copy strong{font-size:10px;font-weight:400;color:#77716c}
#wsChat .summary-card.is-complete .summary-copy small{margin-top:1px;font-size:13px;font-weight:700;line-height:1.4;color:#3f3a39}
#wsChat .overview-actions{position:sticky;bottom:0;z-index:20;margin:0 -12px;padding:8px 12px calc(10px + env(safe-area-inset-bottom));background:#fdf8e6;border-top:1px solid #e3dcc6;box-shadow:0 -6px 14px rgba(80,60,20,.08)}
#wsChat .overview-actions p{margin:0 0 6px;font-size:11px;line-height:1.5}
#wsChat .overview-actions .overview-primary{min-height:48px;padding:10px 14px}
#wsChat .sp-hide{display:none}
#wsChat .modal-header h2.is-long{font-size:15px;letter-spacing:0}
#wsChat .modal-body .modal-choices.dense-2{grid-template-columns:1fr;gap:5px}
#wsChat .modal-body .area-list{gap:5px}
#wsChat .modal-body .modal-choices.dense-2 .choice,#wsChat .modal-body .area-list .choice,#wsChat .modal-body .area-skip .choice{min-height:44px;padding:6px 12px}
#wsChat .area-search{padding-bottom:5px}
#wsChat .area-search input{min-height:44px;padding:8px 14px}}
#wsChat .modal-body .choice.is-skip{background:#fbf6df;border-color:#d2a717}

/* ページ内の配置（テーマのヘッダー・フッターの間に表示） */
#wsChat{display:block;width:100%;min-height:60vh}
.ws_chat_formwrap{position:absolute;left:-9999px;top:0;width:1px;height:1px;overflow:hidden}

/* 完了画面では高さの下限を外し、下の白い余白をなくす */
#wsChat.is-complete{min-height:0}
#wsChat.is-complete .conversation{min-height:0}
