
:root{--oml-navy:#15304f;--oml-red:#e85045;--oml-blue:#2f88d8;--oml-green:#37aa96;--oml-orange:#f3a12b;--oml-purple:#8c6bc6;--oml-cream:#fffaf3}
.oml-wrap{max-width:760px;margin:0 auto;background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 18px 55px rgba(22,44,70,.12);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#1f2937}
.oml-brand{padding:18px 24px 2px}.oml-brand img{width:min(390px,78%);height:auto;display:block}
.oml-hero{min-height:335px;padding:22px 28px 18px;display:grid;grid-template-columns:42% 58%;align-items:center;background:linear-gradient(180deg,#fff 0%,#f5fbff 100%);overflow:visible}
.oml-lumina-main{width:100%;height:300px;max-width:100%;object-fit:contain;object-position:center;justify-self:center;align-self:center;display:block;box-sizing:border-box;padding:4px 12px;overflow:visible}
.oml-speech{position:relative;background:#fff;border:2px solid var(--oml-navy);border-radius:34px;padding:28px 28px;box-shadow:0 10px 30px rgba(21,48,79,.06);color:var(--oml-navy)}
.oml-speech:before{content:"";position:absolute;left:-14px;bottom:50px;width:24px;height:24px;background:#fff;border-left:2px solid var(--oml-navy);border-bottom:2px solid var(--oml-navy);transform:rotate(45deg)}
.oml-speech strong{font-size:clamp(22px,4vw,32px);line-height:1.45}.oml-speech strong span{color:var(--oml-red)}.oml-speech p{font-size:clamp(18px,3.4vw,26px);font-weight:700;line-height:1.55;margin:18px 0 0}
.oml-topics{padding:18px 24px 30px;background:#fff}.oml-topics button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;margin:10px 0;border:1px solid #e4e9ef;border-radius:20px;background:#fff;box-shadow:0 7px 18px rgba(30,50,75,.06);font-size:clamp(17px,3vw,23px);color:var(--oml-navy);cursor:pointer}
.oml-topics button:nth-child(1){border-color:#cfe7fb}.oml-topics button:nth-child(2){border-color:#cceee5}.oml-topics button:nth-child(3){border-color:#ffd9cd}.oml-topics button:nth-child(4){border-color:#ffe5b6}.oml-topics button:nth-child(5){border-color:#e5d9f8}
.oml-topics button span{font-size:36px;line-height:1}.oml-topics button:nth-child(1) span{color:var(--oml-blue)}.oml-topics button:nth-child(2) span{color:var(--oml-green)}.oml-topics button:nth-child(3) span{color:var(--oml-red)}.oml-topics button:nth-child(4) span{color:var(--oml-orange)}.oml-topics button:nth-child(5) span{color:var(--oml-purple)}
.oml-chat{min-height:720px;background:#f8fafc;position:relative;padding-bottom:92px}.oml-chat-head{display:flex;align-items:center;gap:14px;padding:15px 18px;background:#fff;border-bottom:1px solid #e7ebf0;position:sticky;top:0;z-index:5}
.oml-chat-head img{width:210px;max-width:45%;height:auto}.oml-back{border:0;background:#eef3f7;color:var(--oml-navy);width:42px;height:42px;border-radius:50%;font-size:30px;line-height:1;cursor:pointer}.oml-chat-title{margin-left:auto;color:var(--oml-navy)}
.oml-messages{padding:20px 18px}.oml-row{display:flex;gap:10px;align-items:flex-end;margin:14px 0}.oml-row.user{justify-content:flex-end}.oml-avatar{width:58px;height:78px;object-fit:contain;object-position:center;flex:0 0 auto;display:block;overflow:visible}
.oml-bubble{max-width:78%;padding:15px 17px;border-radius:20px;line-height:1.72;white-space:pre-wrap;font-size:15.5px}.oml-row.assistant .oml-bubble{background:#fff;border:1px solid #e5e9ee;border-bottom-left-radius:7px;box-shadow:0 5px 16px rgba(21,48,79,.04)}.oml-row.user .oml-bubble{background:#e6f2ff;color:#183a61;border-bottom-right-radius:7px}
.oml-thinking{opacity:.65;font-style:italic}
.oml-cta{margin:8px 18px 20px;padding:16px;background:#fff;border:1px solid #e8ebef;border-radius:20px}.oml-cta>p{margin:0 0 12px;font-weight:800;color:var(--oml-navy)}
.oml-cta-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.oml-cta-grid button{padding:15px 12px;border-radius:16px;background:#fff;text-align:left;cursor:pointer}.oml-continue{border:1.5px solid #a9d2f2;color:#245b85}.oml-contact{border:1.5px solid #a7d9cb;color:#176552}.oml-cta-grid b{display:block;font-size:15px;line-height:1.45}.oml-cta-grid small{display:block;margin-top:5px;line-height:1.45;color:#667085}
.oml-composer{position:absolute;left:0;right:0;bottom:0;display:flex;gap:8px;padding:12px;background:rgba(255,255,255,.97);border-top:1px solid #e5e9ee}.oml-composer textarea{flex:1;min-height:50px;max-height:110px;resize:none;border:1px solid #d8dee7;border-radius:15px;padding:13px;font:inherit}.oml-composer button{width:52px;border:0;border-radius:14px;background:var(--oml-navy);color:#fff;font-size:20px;cursor:pointer}
@media(max-width:600px){.oml-wrap{border-radius:0;box-shadow:none}.oml-brand{padding:14px 16px 0}.oml-hero{grid-template-columns:40% 60%;min-height:270px;padding:12px 10px;overflow:visible}.oml-lumina-main{width:100%;height:225px;max-width:100%;padding:3px 5px}.oml-speech{padding:20px 17px;border-radius:28px}.oml-speech strong{font-size:21px}.oml-speech p{font-size:18px;margin-top:12px}.oml-topics{padding:12px}.oml-topics button{padding:17px 16px;font-size:17px}.oml-chat{min-height:calc(100vh - 20px)}.oml-chat-head img{max-width:42%}.oml-avatar{width:46px;height:64px}.oml-bubble{max-width:82%;font-size:14.5px}.oml-cta-grid{grid-template-columns:1fr}}

/* v0.1.6: Office-Mine問い合わせをmailアプリ起動ではなく画面内フォームに */
.oml-contact-panel{margin:8px 18px 20px}
.oml-contact-card{background:#fff;border:1px solid #dce9e4;border-radius:20px;padding:18px;box-shadow:0 7px 20px rgba(21,48,79,.05)}
.oml-contact-back{border:0;background:transparent;color:#35566f;font:inherit;font-weight:700;padding:0 0 10px;cursor:pointer}
.oml-contact-card h3{margin:0 0 8px;color:#176552;font-size:20px}
.oml-contact-lead{margin:0 0 16px;color:#566576;line-height:1.7;font-size:14px}
.oml-contact-form{display:grid;gap:12px}
.oml-contact-form label{display:grid;gap:6px;color:#243b53;font-size:14px;font-weight:700}
.oml-contact-form label span{font-weight:400;color:#7b8794;font-size:12px;margin-left:4px}
.oml-contact-form input,.oml-contact-form textarea{width:100%;box-sizing:border-box;border:1px solid #ccd6df;border-radius:12px;padding:12px 13px;font:inherit;background:#fff}
.oml-contact-form textarea{resize:vertical;min-height:82px}
.oml-contact-submit{border:0;border-radius:13px;padding:13px 16px;background:#176552;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.oml-contact-submit:disabled{opacity:.55;cursor:wait}
.oml-contact-status{margin:0;line-height:1.6;font-size:14px;color:#35566f}
.oml-contact-status.is-error{color:#b42318}
.oml-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
@media(max-width:600px){.oml-contact-panel{margin:8px 12px 18px}.oml-contact-card{padding:16px}.oml-contact-card h3{font-size:18px}.oml-contact-lead{font-size:13.5px}}

/* v0.1.8: 相談ログの案内 */
.oml-privacy-note{margin:0;padding:0 24px 22px;color:#7a8794;font-size:11.5px;line-height:1.6;background:#fff}
.oml-privacy-note a{color:#55758f;text-decoration:underline}
@media(max-width:600px){.oml-privacy-note{padding:0 14px 18px;font-size:10.5px}}


/* v2.0: 終了画面 + ルミナ画像の完全表示 */
.oml-finish{display:block;margin:12px auto 0;border:0;background:transparent;color:#7b8794;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;padding:7px 10px}
.oml-end-panel{margin:12px 18px 26px}
.oml-end-card{background:linear-gradient(180deg,#fff 0%,#f5fbff 100%);border:1px solid #dfe7ee;border-radius:26px;padding:24px 22px 22px;box-shadow:0 10px 28px rgba(21,48,79,.07)}
.oml-end-visual{display:grid;grid-template-columns:35% 65%;align-items:center;gap:14px}
.oml-end-lumina{display:block;width:100%;height:290px;object-fit:contain;object-position:center}
.oml-end-speech{position:relative;background:#fff;border:2px solid #9cc8ea;border-radius:30px;padding:28px 26px;color:var(--oml-navy);text-align:center}
.oml-end-speech:before{content:"";position:absolute;left:-13px;top:48%;width:22px;height:22px;background:#fff;border-left:2px solid #9cc8ea;border-bottom:2px solid #9cc8ea;transform:rotate(45deg)}
.oml-end-title{margin:0;color:var(--oml-navy);font-size:28px;line-height:1.4}
.oml-end-subtitle{margin:7px 0 0;color:var(--oml-navy);font-weight:800;font-size:18px}
.oml-end-message{margin:22px auto 0;padding-top:18px;border-top:1px dashed #b9d7ee;max-width:520px;color:#65778a;line-height:1.75;font-size:14.5px}
.oml-end-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.oml-restart,.oml-end-contact{border-radius:16px;font:inherit;font-weight:800;padding:15px 18px;cursor:pointer}
.oml-restart{border:1.5px solid #83baf0;background:#fff;color:#155b99}
.oml-end-contact{border:0;background:var(--oml-navy);color:#fff}
.oml-end-contact[hidden]{display:none!important}
@media(max-width:600px){.oml-end-panel{margin:10px 12px 20px}.oml-end-card{padding:18px 14px}.oml-end-visual{grid-template-columns:34% 66%;gap:7px}.oml-end-lumina{height:210px}.oml-end-speech{padding:20px 14px;border-radius:24px}.oml-end-title{font-size:21px}.oml-end-subtitle{font-size:15px}.oml-end-message{font-size:13px;margin-top:15px;padding-top:14px}.oml-end-actions{grid-template-columns:1fr;gap:9px}.oml-restart,.oml-end-contact{padding:13px 14px}.oml-finish{font-size:12.5px}}

/* v2.0.4: reliable mobile width + screen switching support */
.oml-wrap [hidden]{display:none!important}
.oml-wrap,.oml-wrap *,.oml-wrap *::before,.oml-wrap *::after{box-sizing:border-box}
.oml-wrap{width:100%;max-width:760px}
.oml-row,.oml-bubble,.oml-composer,.oml-composer textarea{min-width:0}
.oml-bubble{overflow-wrap:anywhere;word-break:break-word}
.oml-composer{width:100%;max-width:100%;z-index:20}
.oml-composer textarea{max-width:100%}
.oml-composer button{flex:0 0 52px;position:relative;z-index:21}
.oml-topics button{touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,0,0,0)}
@media(max-width:600px){
  .oml-wrap{max-width:100%;overflow-x:hidden}
  .oml-home,.oml-chat{width:100%;max-width:100%;overflow-x:hidden}
  .oml-messages{width:100%;max-width:100%;padding-left:12px;padding-right:12px}
  .oml-row{width:100%;max-width:100%}
  .oml-row.user .oml-bubble{max-width:78%}
  .oml-composer{left:0;right:0;width:100%;max-width:100%;gap:8px;padding:10px 74px 10px 10px}
  .oml-composer textarea{width:auto;flex:1 1 auto;min-width:0;min-height:48px;max-height:96px;padding:12px 11px;font-size:16px}
  .oml-composer button{flex:0 0 48px;width:48px;height:48px;border-radius:13px}
}
