/* css/assistant-launcher.css — 相談アシスタントの入口 (右下ボタン・パネル・シート) 2026-10-25 */
.ea-fab{position:fixed;right:20px;bottom:20px;z-index:900;display:none;align-items:center;gap:6px;padding:10px 16px;border-radius:999px;background:#fff;color:var(--accent-dark,#b33f1a);border:1.5px solid var(--accent,#d4572a);box-shadow:0 4px 16px rgba(0,0,0,.12);font-weight:700;font-size:.88rem;text-decoration:none;line-height:1}
.ea-fab:hover{background:var(--accent-lt,#fdf1ed)}
.ea-fab[hidden]{display:none!important}
.ea-fab-ic{font-size:1.05rem}
@media (min-width:769px){.ea-fab{display:inline-flex}}
/* ヘッダーの「相談アシスタント」: 769〜999px はメニューが詰まって電話番号が折り返すので隠す (右下ボタンがある) */
@media (min-width:769px) and (max-width:999px){.site-nav .nav-ea{display:none}}
@media print{.ea-fab,.ea-panel,.ea-overlay{display:none!important}}

.ea-overlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.35)}
.ea-overlay[hidden],.ea-panel[hidden]{display:none!important}
.ea-panel{position:fixed;z-index:10001;background:#fff;display:flex;flex-direction:column;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.ea-panel-host{flex:1;min-height:0;display:flex;flex-direction:column;font-size:.9rem;color:var(--text-light,#666)}
.ea-panel-host:not(.ea-root){align-items:center;justify-content:center}
.ea-panel .ea-root{flex:1;min-height:0;border:0;border-radius:0;box-shadow:none}
.ea-panel .ea-log{flex:1;height:auto;min-height:0}
.ea-panel .ea-note{font-size:.68rem;padding:4px 12px 6px;line-height:1.4}
.ea-panel .ea-premise{padding:6px 10px;gap:4px;font-size:.76rem}
.ea-panel .ea-premise-n{display:none}
.ea-panel .ea-choices{max-height:34%;overflow-y:auto;gap:5px;padding:8px 10px}
.ea-panel .ea-choice{padding:5px 10px;font-size:.8rem}
.ea-panel .ea-input{padding:8px 10px}
/* PC: 右下のパネル (ページの中身を隠しすぎない幅)。背景の暗幕は出さない */
@media (min-width:769px){
  .ea-overlay{display:none!important}
  .ea-panel{right:20px;bottom:20px;width:400px;height:min(680px,calc(100vh - 40px));border-radius:12px;overflow:hidden}
  .ea-panel .ea-head{border-radius:0}
}
/* スマホ: 下から引き出すシート */
@media (max-width:768px){
  .ea-panel{left:0;right:0;bottom:0;height:92vh;height:92dvh;border-radius:14px 14px 0 0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
  .ea-panel .ea-head{border-radius:14px 14px 0 0}
  html.ea-lock,html.ea-lock body{overflow:hidden}
}
.ea-close{margin-left:6px;background:transparent;border:0;color:#fff;font-size:1.4rem;line-height:1;padding:0 4px;cursor:pointer}

/* ページの中の入口 (data-ea-open のボタン) */
.ea-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;padding:12px 16px;border:1px solid var(--accent,#d4572a);border-radius:10px;background:var(--accent-lt,#fdf1ed)}
.ea-entry-tx{flex:1;min-width:200px;font-size:.88rem;line-height:1.6;color:var(--text,#333)}
.ea-entry-tx b{display:block;color:var(--accent-dark,#b33f1a);font-size:.95rem}
.ea-entry-btn{display:inline-block;padding:9px 16px;border-radius:8px;background:var(--accent,#d4572a);color:#fff!important;font-weight:700;font-size:.88rem;text-decoration:none;white-space:nowrap}
.ea-entry-btn:hover{background:var(--accent-dark,#b33f1a)}
/* ガイド記事の上部 (スマホ・タブレット) : 相談ボタンが3つになると「相談アシスタ/ント」と折れるので、3つ目は下の段に全幅で置く (2026-10-26) */
@media (max-width:900px){
  .guide-article-sidebar .guide-side-cta .guide-side-cta-btn[data-ea-open]{flex:1 1 100%}
}
