:root{--content-max:680px;--page-gutter:clamp(9px,2.2vw,15px);--ink:#3e4650;--muted:#737b83;--deep:#496985;--blue:#6684a0;--pale:#edf3f7;--cream:#fbf8f2;--line:#dce3e8;--shadow:0 18px 46px rgba(57,72,87,.12)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#e9edf0}
body{max-width:100%;overflow-x:hidden;margin:0;color:var(--ink);background:radial-gradient(circle at 8% 10%,#eef4f7 0,transparent 34%),radial-gradient(circle at 95% 30%,#f2ebe2 0,transparent 27%),linear-gradient(150deg,#faf9f5,#e9edf0);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;-webkit-font-smoothing:antialiased}
button,a{font:inherit}
.app{width:min(calc(100% - (var(--page-gutter)*2)),var(--content-max));min-width:0;min-height:100vh;margin:auto;padding:10px 0 calc(154px + env(safe-area-inset-bottom))}
.hero{overflow:hidden;border-radius:25px;background:#f4f3ef;box-shadow:0 9px 26px rgba(57,72,87,.09)}
.hero-link{display:block;width:100%;aspect-ratio:1989/790;overflow:hidden;border:0;border-radius:25px;padding:0;background:#f4f3ef;cursor:pointer}
.hero-link img{display:block;width:100%;height:100%;object-fit:cover}
.intro{margin-top:19px}
.intro-row{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:start;gap:12px}
.intro-avatar{display:block;width:54px;height:54px;border:3px solid #fff;border-radius:16px;background:#e4ebf1;box-shadow:0 5px 16px rgba(52,65,80,.13);object-fit:cover;object-position:50% 50%}
.intro-bubble{border:1px solid var(--line);border-radius:19px;padding:15px 18px;background:#fffdf9;box-shadow:0 5px 18px rgba(54,65,76,.035)}
.intro-bubble p{margin:0;font-size:15px;line-height:1.8}.intro-bubble p+p{margin-top:6px}
.intro-start{margin:18px 0 0 66px}.intro-start .primary{width:100%;min-height:60px}
.primary{border:0;border-radius:14px;padding:13px 17px;color:#fff;background:linear-gradient(135deg,#7291ad,#4f708c);box-shadow:0 10px 22px rgba(73,105,133,.24);font-weight:800;cursor:pointer}
.panel{min-width:0;width:100%;margin-top:15px;border:1px solid #fff;border-radius:26px;background:#fffdfbed;box-shadow:var(--shadow)}.panel[hidden]{display:none}
.content{min-width:0;width:100%;padding:24px 18px}.chat{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:13px}.chat>*{min-width:0;max-width:100%}.chat.is-answering{padding-bottom:42vh}
.row{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:start;gap:10px}
.avatar{display:block;width:50px;height:50px;border:2px solid #fff;border-radius:15px;background:#e4ebf1;box-shadow:0 6px 16px rgba(52,65,80,.14);object-fit:cover;object-position:50% 50%}
.bubble{width:100%;border:1px solid var(--line);border-radius:18px 18px 18px 5px;padding:15px 16px;background:#f2f4f5;font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.row.question{display:block;margin-left:60px;scroll-margin-top:20px}.row.question .bubble{border-color:#d8e3eb;background:#f1f6f9;font-size:16px;font-weight:800}
.user{justify-self:end;width:fit-content;max-width:88%;border-radius:18px 18px 5px 18px;padding:13px 15px;color:#fff;background:#6d88a1;box-shadow:0 7px 17px rgba(72,102,130,.18);font-size:15px;font-weight:700;line-height:1.7;text-align:left;overflow-wrap:anywhere;animation:selectedPop .34s ease-out both;scroll-margin-top:18px}
@keyframes selectedPop{0%{opacity:.3;transform:scale(.96)}70%{transform:scale(1.025)}100%{opacity:1;transform:scale(1)}}
.options{display:grid;gap:9px;margin-left:60px}.option{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:9px;width:100%;border:1px solid #d8e3eb;border-radius:15px;padding:12px;color:var(--ink);background:#fff;text-align:left;font-size:14px;font-weight:700;line-height:1.6;cursor:pointer;box-shadow:0 5px 14px rgba(57,72,87,.05)}
.option:hover,.option:focus-visible{border-color:#7895ae;background:#f3f8fb;outline:0}.option-number{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;color:#526f89;background:#e7eff5;font-size:12px}
.thinking{margin-left:60px;color:#6d8192;font-size:12px;font-weight:700}.turn-tools{display:flex;justify-content:flex-end;margin-top:3px}.text-button{border:0;padding:10px 2px;color:#59728a;background:transparent;text-decoration:underline;text-underline-offset:4px;cursor:pointer;font-size:13px}
.result{margin-top:18px;border-top:1px solid var(--line);padding-top:25px;scroll-margin-top:20px}
.result-concierge{display:block;width:126px;height:126px;margin:0 auto 10px;border:4px solid #fff;border-radius:50%;background:#e4ebf1;box-shadow:0 12px 28px rgba(57,72,87,.16);object-fit:cover;object-position:50% 50%}
.result-speech{position:relative;width:100%;margin:4px 0 22px;border:1px solid var(--line);border-radius:20px;padding:17px 20px;background:#f2f4f5;text-align:center;font-size:15px;line-height:1.85}.result-speech::before{position:absolute;top:-9px;left:50%;width:16px;height:16px;border-top:1px solid var(--line);border-left:1px solid var(--line);background:#f2f4f5;content:"";transform:translateX(-50%) rotate(45deg)}.result-speech strong{display:block;margin-bottom:4px;color:#456783;font-size:17px}.result-speech span{display:block;font-weight:700}
.result-label{margin:0 0 9px;color:#668099;font-size:12px;letter-spacing:.12em;font-weight:700}.result h2{margin:0 0 17px;color:#3f617e;font-size:clamp(21px,4.6vw,26px);line-height:1.65;letter-spacing:.025em}.result-summary{margin:0 0 23px;font-size:15px;line-height:1.95}
.conditions{margin:0 0 19px;border:1px solid #d5e1e9;border-radius:20px;padding:20px;background:#edf4f8}.conditions h3{margin:0 0 13px;color:#476986;text-align:center;font-size:18px;line-height:1.5}.conditions ul{display:grid;gap:9px;margin:0;padding:0;list-style:none}.conditions li{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:11px;border:1px solid #d7e3eb;border-radius:13px;padding:11px 13px;background:rgba(255,255,255,.82);line-height:1.55}.condition-key{color:#6a8094;font-size:12px;font-weight:700}.conditions strong{font-size:15px}
.result-value,.result-step{padding:19px 20px;border-radius:18px;background:#eaf1f6}.result h3{margin:0 0 9px;color:#4e6f8b;font-size:14px;line-height:1.6}.result-value p,.result-step p{margin:0;font-size:17px;line-height:1.85;font-weight:700}.result-rest{padding:22px 2px}.result-rest p{margin:0;font-size:15px;line-height:1.85}.result-step{border:1px solid #cbd9e3;border-left:4px solid #6686a1;background:#fff}
.referral{margin-top:28px;padding-top:23px;border-top:1px solid var(--line)}.referral summary{padding:5px 0;color:#4d6d87;font-size:15px;font-weight:700;line-height:1.7;cursor:pointer}.referral p{font-size:14px;line-height:1.85}.support-options{display:grid;gap:9px}.support-options button,.secondary{border:1px solid #cfdae3;border-radius:13px;padding:13px;color:#526f87;background:#fff;text-align:left;line-height:1.6;cursor:pointer}.support-options button[aria-pressed="true"]{border-color:#6c89a2;background:#edf4f8}.service-list{display:grid;gap:10px;margin-top:17px}.service{padding:17px;border:1px solid #d7e1e8;border-radius:15px;background:#fff}.service a{display:block;color:#466985;font-size:16px;font-weight:700;line-height:1.7;text-underline-offset:4px}.service p{margin:8px 0 0;color:#68737c;font-size:13px}.pr{display:inline-block;margin-bottom:9px;color:#7c7c7a;font-size:11px}
.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:26px}.result-actions button{text-align:center;font-size:13px}.privacy{margin:20px 10px 0;color:#77818a;font-size:11px;line-height:1.8}
.totonoeru-link{position:fixed;z-index:20;right:max(12px,env(safe-area-inset-right));bottom:calc(72px + env(safe-area-inset-bottom));display:grid;min-width:116px;min-height:48px;place-items:center;border:1px solid #dce3e8;border-radius:15px;padding:10px 16px;color:#536e84;background:rgba(255,253,251,.96);box-shadow:0 8px 24px rgba(52,65,80,.13);text-decoration:none;font-size:12px;font-weight:800}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7898b2;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:520px){.app{width:calc(100% - 18px);padding-top:8px}.hero,.hero-link{border-radius:20px}.intro{margin-top:16px}.intro-row{grid-template-columns:48px minmax(0,1fr);gap:10px}.intro-avatar{width:48px;height:48px;border-radius:14px}.intro-bubble{padding:14px 15px}.intro-bubble p{font-size:14px}.intro-start{margin:16px 0 0 58px}.intro-start .primary{min-height:56px;font-size:14px}.content{padding:20px 13px}.row{grid-template-columns:46px 1fr;gap:8px}.avatar{width:46px;height:46px}.row.question,.options,.thinking{margin-left:54px}.bubble{padding:14px;font-size:14px}.row.question .bubble{font-size:15px}.option{grid-template-columns:26px minmax(0,1fr);padding:11px;font-size:14px}.user{font-size:14px}.result-concierge{width:112px;height:112px}.result-speech{padding:16px;font-size:14px}.result-summary,.result-rest p{font-size:14px}.conditions{padding:17px 14px}.conditions h3{font-size:17px}.conditions li{grid-template-columns:1fr;gap:4px;padding:10px 12px}.result-value,.result-step{padding:17px}.result-value p,.result-step p{font-size:16px}.totonoeru-link{right:9px}}
@media(max-width:390px){.intro-start{margin-left:0}.row.question,.options,.thinking{margin-left:0}.result-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.user{animation:none}}
