/* ===== かんたん説明モード ===== */
:root{--coach:#f08c00;--coach-soft:#fff3d6}

/* Mode switch (topbar) */
.mode-switch{display:flex;padding:3px;border-radius:12px;background:#e9efe6;border:1px solid #d6e2d3}
.mode-switch button{border:0;background:transparent;border-radius:9px;padding:7px 12px;font-size:13px;font-weight:800;color:#3d5a4b;white-space:nowrap}
.mode-switch button[aria-pressed="true"]{background:#fff;color:var(--forest);box-shadow:0 1px 3px #17392b26}

.story-steps,.story-panel{display:none}

body.story-mode .hero,
body.story-mode .navigation,
body.story-mode .stage,
body.story-mode .demo-tag,
body.story-mode .present-toggle,
body.story-mode .line-area .view-label span:last-child{display:none}

/* Step bar */
body.story-mode .story-steps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;list-style:none;margin:22px 0 18px;padding:0;counter-reset:none}
.story-step{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:2px solid #d6e2d3;border-radius:14px;background:#fffdf8;text-align:left;font-size:16px;font-weight:800;color:#4b6457;min-height:58px}
.story-step:hover{background:#f0f6ec}
.story-num{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e6eee2;font:800 17px/1 system-ui;color:#3d5a4b}
.story-step.finished{border-color:#bcd9be}
.story-step.finished .story-num{background:#2c945f;color:#fff}
.story-step.current{border-color:var(--forest);background:var(--forest);color:#fff;box-shadow:0 8px 20px -10px #17392b99}
.story-step.current .story-num{background:var(--lime);color:var(--forest)}

/* Layout: phone + explanation */
body.story-mode .desk{gap:clamp(20px,3vw,48px)}
body.story-mode .story-panel{display:block;position:sticky;top:96px}
.story-inner{background:#fffdf8;border:1px solid #d8e2d6;border-radius:24px;padding:clamp(22px,3vw,40px);box-shadow:0 18px 40px -24px #193a2440}
.story-count{display:inline-block;margin:0 0 14px;padding:6px 14px;border-radius:99px;background:#e6f1df;color:#215436;font-size:16px;font-weight:800}
.story-inner h2{margin:0 0 16px;font-size:clamp(28px,2.8vw,42px);line-height:1.3;letter-spacing:-.02em;color:var(--ink)}
.story-body{font-size:clamp(18px,1.5vw,21px);line-height:1.85;color:#2f473b;white-space:pre-line}
.story-task{display:flex;gap:14px;align-items:flex-start;margin-top:24px;padding:18px 20px;border-radius:16px;background:var(--coach-soft);border:2px solid #f6c56b;color:#5a3a00}
.story-task svg{width:34px;height:34px;flex:none;color:var(--coach);stroke-width:1.8}
.story-task p{font-size:clamp(17px,1.4vw,20px);line-height:1.7;font-weight:800}
.story-task.done{background:#e3f4e1;border-color:#9ccf9f;color:#17502f}
.story-task.done svg{color:#2c945f}
.story-nav{display:grid;grid-template-columns:auto 1fr;gap:12px;margin-top:26px}
.story-back,.story-next{min-height:62px;border-radius:16px;font-size:20px;font-weight:900;padding:0 24px}
.story-back{border:2px solid #cfdccc;background:#fff;color:#3d5a4b}
.story-back:hover:not(:disabled){background:#f0f6ec}
.story-next{border:0;background:var(--forest);color:#fff}
.story-next:hover{background:#0f2a1e}
.story-link{margin-top:14px;border:0;background:transparent;font-size:16px;font-weight:800;color:#206749;text-decoration:underline;text-underline-offset:4px;padding:6px 0}

/* Bigger, easier phone contents (営業プレゼン) */
body.story-mode .desk{grid-template-columns:minmax(360px,460px) minmax(0,1fr)}
body.story-mode .chat{padding:14px 12px 18px;background:#e2ede7}
body.story-mode .chat-date{font-size:13px;padding:4px 14px;color:#24493a;background:#ffffffd9}

/* Card frame */
body.story-mode .chat-card{border-radius:18px;background:#fff;box-shadow:0 1px 2px #163d2314,0 6px 16px -8px #163d2340}
body.story-mode .card-main{padding:18px 18px 16px}
body.story-mode .card-head{gap:9px;margin-bottom:12px;font-size:14px;color:#1f3b30}
body.story-mode .card-head img{width:30px;height:30px}
body.story-mode .card-head .card-kicker{font-size:12px;padding:4px 9px;border-radius:7px;color:#1e4d35;background:#e6f1e3;font-weight:800}

/* Text */
body.story-mode .chat-card h3{font-size:23px;line-height:1.4;margin:0 0 10px;color:#10241b;letter-spacing:0}
body.story-mode .chat-card p,body.story-mode .bubble{font-size:17px;line-height:1.85;color:#1d3128;letter-spacing:.01em}
body.story-mode .bubble{padding:11px 15px}
body.story-mode .msg-meta{font-size:11px;color:#3c5a4c}
body.story-mode .msg-avatar{width:34px;height:34px}
body.story-mode .review-stars{font-size:22px;color:#b27a00}

/* Buttons inside the chat */
body.story-mode .card-actions{gap:8px;padding:0 16px 16px}
body.story-mode .card-button{font-size:17px;min-height:52px;border-radius:12px;font-weight:800}
body.story-mode .weekly-card .card-actions{padding:0 16px 16px}

/* Support list (初回のご案内) */
body.story-mode .support-list{gap:8px;margin:12px 0 14px}
body.story-mode .support-row{grid-template-columns:28px 1fr auto;gap:10px;padding:12px 12px;border-radius:10px;font-size:16px;background:#edf5ea}
body.story-mode .support-row strong{font-size:19px;color:#1c6a45}
body.story-mode .support-row b{font-weight:800;color:#13281f}
body.story-mode .support-row span{font-size:13px;padding:4px 9px;border-radius:7px;background:#fff;color:#1e4d35;box-shadow:inset 0 0 0 1px #cfe2cd}

/* Carousel hint + next card */
body.story-mode .carousel .chat-card{flex-basis:90%}
body.story-mode .carousel-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 2px 14px;font-size:14px;color:#24493a;font-weight:800}
body.story-mode .carousel-hint button{flex:none;margin:0;font-size:16px;font-weight:900;padding:10px 16px;border-radius:12px;background:#fff;color:#17392b;box-shadow:0 1px 0 #c9dbc8,inset 0 0 0 1.5px #b8cfba}

/* Weekly cards */
body.story-mode .weekly-card-head{padding:16px 18px 14px}
body.story-mode .weekly-brand{font-size:14px}
body.story-mode .weekly-brand span{font-size:12px}
body.story-mode .weekly-kicker{font-size:13px}
body.story-mode .weekly-card-head h3{font-size:23px}
body.story-mode .weekly-card-head p{font-size:14px}
body.story-mode .weekly-card-body{padding:14px 18px 10px}
body.story-mode .publication-content h4,body.story-mode .weekly-sources h4{font-size:17px}
body.story-mode .publication-content .publication-label{font-size:13px}
body.story-mode .publication-content .destination-copy{font-size:17px;line-height:1.85}
body.story-mode .weekly-sources p{font-size:15px}
body.story-mode .weekly-source-link{font-size:15px}
body.story-mode .small-button{font-size:14px;min-height:40px}

/* Metrics (毎月の報告) */
body.story-mode .chat .metric-grid{gap:8px;margin:12px 0}
body.story-mode .chat .metric{padding:11px 10px;font-size:13px;color:#24493a;border-radius:11px}
body.story-mode .chat .metric strong{font-size:27px}
body.story-mode .chat .metric-delta{font-size:11px;padding:2px 7px}

/* Phone header */
body.story-mode .phone-top{height:58px}
body.story-mode .phone-top b{font-size:19px}
body.story-mode .phone-top div span{font-size:13px;color:#3c5a4c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Bottom of phone */
body.story-mode .composer input{height:42px;font-size:16px}
body.story-mode .input-status{font-size:13px;padding:7px 14px}

/* The button to press next */
.coach-target{position:relative;z-index:1;outline:3px solid var(--coach)!important;outline-offset:3px}
@media (prefers-reduced-motion:no-preference){
  .coach-target{animation:coach 1.3s ease-in-out infinite}
  .story-next.pulse{animation:next-pulse 1.6s ease-in-out infinite}
}
@keyframes coach{0%,100%{outline-offset:3px;outline-color:var(--coach)}50%{outline-offset:7px;outline-color:#f08c0066}}
@keyframes next-pulse{0%,100%{box-shadow:0 0 0 0 #2c945f80}50%{box-shadow:0 0 0 10px #2c945f00}}

/* Tablet */
@media(max-width:1100px){
  .story-step{font-size:14px;padding:8px;gap:7px}
  .story-num{width:28px;height:28px;font-size:15px}
}
@media(max-width:850px){
  body.story-mode .desk{grid-template-columns:1fr}
  body.story-mode .story-panel{position:static;order:-1}
  body.story-mode .line-area{max-width:430px;width:100%;margin:0 auto}
  body.story-mode .story-steps{display:flex;overflow-x:auto;gap:6px;margin:14px 0 12px;padding-bottom:4px;scroll-margin-top:70px}
  body.story-mode .story-steps li{flex:none}
  .story-step{min-height:48px}
  .story-task:not(.done) p::after{content:"↓ 下のスマホ画面で操作します";display:block;margin-top:6px;font-size:.85em;color:#8a5a00}
}
/* Phone */
@media(max-width:575px){
  .mode-switch button{padding:5px 8px;font-size:11px}
  .story-step b{display:none}
  .story-step.current b{display:inline}
  .story-inner{padding:20px 18px;border-radius:18px}
  .story-inner h2{font-size:25px}
  .story-body{font-size:17px}
  .story-task{padding:14px;margin-top:16px}
  .story-task svg{width:28px;height:28px}
  .story-task p{font-size:16px}
  .story-back,.story-next{min-height:56px;font-size:18px;padding:0 16px}
  body.story-mode .store-select{display:none}
}

/* ===== 営業メモ（営業担当だけが見る） ===== */
.talk{margin-top:16px;border-radius:20px;background:#1d3a2e;color:#e8f1e9;padding:18px 20px 16px;box-shadow:0 14px 30px -20px #0f2a1c}
.talk-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.talk-title{display:flex;align-items:center;gap:8px;min-width:0}
.talk-title svg{width:20px;height:20px;color:var(--lime)}
.talk-title b{font-size:16px;color:#fff}
.talk-title small{font-size:11px;color:#a9c3b2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.talk-toggle{flex:none;border:1px solid #4d6b5c;background:transparent;color:#d8e8dc;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:800}
.talk-toggle:hover{background:#2a4b3c}
.talk.collapsed{padding:12px 16px;background:#e6eee2;color:var(--ink);box-shadow:none}
.talk.collapsed .talk-title b{color:var(--forest)}
.talk.collapsed .talk-title svg{color:#2c945f}
.talk.collapsed .talk-title small{color:var(--muted)}
.talk.collapsed .talk-toggle{border-color:#bccdbb;color:var(--forest)}
.talk-row{display:grid;grid-template-columns:84px 1fr;gap:10px;align-items:start;margin-top:12px}
.talk-row p{font-size:15px;line-height:1.7;color:#f2f7f2}
.talk-label{display:inline-block;justify-self:start;padding:3px 9px;border-radius:99px;font-size:12px;font-weight:900;background:#2e5241;color:#cfe5d4;white-space:nowrap}
.talk-row.say .talk-label{background:var(--lime);color:#17392b}
.talk-row.ask .talk-label{background:#ffd98a;color:#4f3500}
.talk-qa{margin-top:14px;padding-top:12px;border-top:1px solid #355a49}
.talk-qa h4{margin:0 0 6px;font-size:12px;color:#a9c3b2;letter-spacing:.06em}
.talk-qa details{border-radius:10px;background:#244536;margin-top:6px}
.talk-qa summary{cursor:pointer;padding:9px 12px;font-size:14px;font-weight:800;color:#fff;list-style:none}
.talk-qa summary::-webkit-details-marker{display:none}
.talk-qa summary::after{content:"＋";float:right;color:#a9c3b2}
.talk-qa details[open] summary::after{content:"－"}
.talk-qa details p{padding:0 12px 10px;font-size:14px;line-height:1.7;color:#d8e8dc}
@media(max-width:1100px){.story-step b{font-size:13px}}
@media(max-width:575px){.talk{padding:14px}.talk-row{grid-template-columns:1fr;gap:4px}.talk-title small{display:none}}
@media(max-width:850px){
  body.story-mode .story-panel{display:contents}
  body.story-mode .story-inner{order:-1}
  body.story-mode .talk{order:1;margin-top:0}
}

/* ===== MEO ===== */
.meo-factors{margin-top:18px}
.meo-caption{font-size:14px;font-weight:800;color:#3d5a4b;margin-bottom:8px}
.meo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.meo-card{border-radius:14px;padding:12px 14px;background:#f1f3ef;border:1.5px solid #dfe3dc}
.meo-card.ours{background:#eef7ea;border-color:#a9d0aa}
.meo-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.meo-card-head b{font-size:19px;color:#13281f}
.meo-card-head span{font-size:11px;font-weight:900;padding:3px 8px;border-radius:99px;background:#dfe3dc;color:#5d6b63;white-space:nowrap}
.meo-card.ours .meo-card-head span{background:#206749;color:#fff}
.meo-what{font-size:14px;line-height:1.6;color:#2f473b}
.meo-how{margin-top:6px;font-size:13px;line-height:1.6;font-weight:800;color:#1b6a43}
.meo-card:not(.ours) .meo-how{color:#7a847e}
.story-meo{margin-top:18px;padding:14px 16px;border-radius:14px;background:#eef4ff;border:1.5px solid #c4d6f5}
.meo-tag{display:inline-flex;align-items:center;gap:8px;margin-bottom:6px}
.meo-tag b{font-size:14px;font-weight:900;color:#1f4f9a}
.meo-tag span{font-size:12px;font-weight:900;padding:3px 9px;border-radius:99px;background:#1f5fbf;color:#fff}
.story-meo p{font-size:clamp(16px,1.3vw,18px);line-height:1.75;color:#1f3350}
mark.kw{background:linear-gradient(transparent 55%,#ffe08a 55%);color:inherit;font-weight:800;padding:0 1px}
@media(max-width:1100px){.meo-grid{grid-template-columns:1fr}}
@media(max-width:575px){.story-meo{padding:12px}.meo-card-head b{font-size:17px}}

/* ===== お客様のお店で作る ===== */
.prospect-btn{border:0;border-radius:10px;background:#f08c00;color:#fff;font-size:13px;font-weight:900;padding:9px 14px;white-space:nowrap;box-shadow:0 2px 0 #c06f00}
.prospect-btn:hover{background:#e07f00}
body:not(.story-mode) .prospect-btn{background:#fff;color:#a35b00;box-shadow:inset 0 0 0 1.5px #f0b45a}
dialog:has(.pf){width:min(520px,calc(100% - 24px))}
.pf{display:grid;gap:14px}
.pf-lead{font-size:15px;line-height:1.75;color:#24493a;font-weight:700}
.pf-field{display:grid;gap:6px}
.pf-label{font-size:14px;font-weight:900;color:#13281f}
.dialog-content .pf input,.dialog-content .pf select{height:50px;margin:0;padding:0 14px;border:2px solid #cfdccc;border-radius:12px;font-size:17px;background:#fff}
.dialog-content .pf input:focus{border-color:#2c945f;outline:0}
.pf-hint{font-size:12px;color:#557064}
.pf-submit{min-height:56px;border:0;border-radius:14px;background:#f08c00;color:#fff;font-size:18px;font-weight:900}
.pf-submit:hover{background:#e07f00}
.pf-note{font-size:12px;line-height:1.6;color:#5d6b63;background:#f4f7f2;border-radius:10px;padding:10px 12px}

/* ===== いまの状態チェック ===== */
.ck{margin-top:18px;display:grid;gap:14px}
.ck-rows{display:grid;border:1px solid #dfe8dc;border-radius:16px;background:#fff;overflow:hidden}
.ck-row{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center;padding:10px 14px;border-top:1px solid #edf1eb}
.ck-row:first-child{border-top:0}
.ck-label{font-size:15px;font-weight:900;color:#13281f}
.ck-options{display:flex;flex-wrap:wrap;gap:6px}
.ck-opt{min-height:40px;padding:0 14px;border:1.5px solid #cfdccc;border-radius:99px;background:#fff;font-size:14px;font-weight:800;color:#2f4a3d}
.ck-opt:hover{background:#f3f8f1}
.ck-opt.on{background:#206749;border-color:#206749;color:#fff}
.ck-opt.on.gap{background:#f08c00;border-color:#f08c00}
.ck-result{border-radius:16px;background:#fff8ea;border:1.5px solid #f6c56b;padding:16px}
.ck-score{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ck-score b{font:900 32px/1 system-ui;color:#13281f}
.ck-score span{font-size:14px;font-weight:800;color:#5a3a00}
.ck-title{margin:12px 0 8px;font-size:17px;font-weight:900;color:#5a3a00}
.ck-good{margin-top:8px;font-size:16px;font-weight:800;color:#1b6a43}
.ck-gaps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ck-gaps li{background:#fff;border-radius:12px;padding:10px 12px;border:1px solid #f1dcb4}
.ck-gap-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ck-gap-head b{font-size:15px;color:#13281f}
.ck-gap-head span{font-size:11px;font-weight:900;padding:3px 8px;border-radius:99px;background:#e3edff;color:#1f4f9a;white-space:nowrap}
.ck-gaps p{margin-top:4px;font-size:14px!important;line-height:1.6;color:#2f473b!important}
@media(max-width:1100px){.ck-row{grid-template-columns:1fr;gap:6px}}
@media(max-width:575px){.prospect-btn{padding:6px 8px;font-size:11px}body.story-mode .mode-switch{display:none}.ck-opt{min-height:44px}}

/* ===== 無料診断（Googleの公開データ） ===== */
.dg{border-radius:16px;border:2px solid #9cc4f2;background:#f3f8ff;padding:16px;display:grid;gap:12px}
.dg-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.dg-head b{font-size:18px;color:#13294d}
.dg-head span{font-size:13px;color:#3d5b85;font-weight:700}
.dg-form{display:grid;grid-template-columns:1.3fr 1fr auto;gap:8px}
.dg-form input{height:48px;padding:0 12px;border:2px solid #c3d4ec;border-radius:12px;font-size:16px;background:#fff;min-width:0}
.dg-form input:focus{outline:0;border-color:#1f5fbf}
.dg-go{height:48px;padding:0 18px;border:0;border-radius:12px;background:#1f5fbf;color:#fff;font-size:16px;font-weight:900;white-space:nowrap}
.dg-go:hover:not(:disabled){background:#174c9b}
.dg-error{font-size:14px;font-weight:800;color:#a0420b;background:#fff1e6;border-radius:10px;padding:10px 12px}
.dg-place{display:grid;gap:2px}
.dg-place b{font-size:18px;color:#13294d}
.dg-place span{font-size:13px;color:#3d5b85}
.dg-place .weekly-source-link{font-size:13px}
.dg-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.dg-fact{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #d6e3f5}
.dg-fact span{font-size:12px;font-weight:800;color:#5a6b7a}
.dg-fact b{font-size:17px;color:#13294d}
.dg-fact.ng{background:#fff8ea;border-color:#f6c56b}
.dg-fact.ng b{color:#8a5a00}
.dg-note{font-size:12px!important;line-height:1.6;color:#5a6b7a!important}
.dg-other{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:#3d5b85;font-weight:800}
.dg-alt{border:1px solid #c3d4ec;background:#fff;border-radius:99px;padding:6px 12px;font-size:13px;font-weight:800;color:#1f4f9a}
.dg-rest{font-size:14px!important;line-height:1.7;color:#5a3a00!important;background:#fff8ea;border-radius:12px;padding:10px 12px}
.ck-label{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ck-auto{font-size:11px;font-weight:900;padding:2px 7px;border-radius:99px;background:#1f5fbf;color:#fff}
@media(max-width:1100px){.dg-form{grid-template-columns:1fr 1fr}.dg-go{grid-column:1/-1}}
@media(max-width:575px){.dg-form{grid-template-columns:1fr}}

/* ===== 商談で見せる品質への仕上げ（2026-11） ===== */

/* --- LINEのトーク画面らしく --- */
.chat,body.story-mode .chat{background:#9fb5d9;scrollbar-color:#6f88b3 transparent}
.chat-date,body.story-mode .chat-date{background:#2a3f6338;color:#fff;font-weight:700}
.msg-meta,body.story-mode .msg-meta{color:#2b3d5e}
.bubble.out{background:#a8ec8a}
.chat p,.chat .bubble,dialog.in-phone p{word-break:normal;text-wrap:wrap;line-break:strict}
.chat.swap{animation:fade .22s ease}

/* カードも、アイコンは左の外・時刻は右下 */
.card-row{align-items:flex-end;gap:6px}
.card-row>:not(.msg-avatar):not(.msg-meta){flex:1 1 auto;min-width:0;max-width:none;margin:0}
.card-row .chat-card{max-width:none}
.card-row.wide .carousel-hint{margin-bottom:0}
.card-head .card-kicker{margin-left:0}
.weekly-brand .weekly-kicker{color:#145fae;font-size:11px;font-weight:850}
.weekly-brand img,.weekly-brand img:first-child{width:17px;height:17px;margin-left:auto}
.weekly-brand .weekly-pos{font-variant-numeric:tabular-nums}
body.story-mode .weekly-brand .weekly-kicker{font-size:13px}
body.story-mode .carousel-hint{color:#1f3050}
body.story-mode .card-main{padding:14px 16px 14px}
body.story-mode .card-head{margin-bottom:8px}
body.story-mode .chat-card h3{font-size:21px;margin-bottom:8px}
body.story-mode .chat-card p,body.story-mode .bubble{font-size:16px;line-height:1.75}
body.story-mode .card-actions{padding:0 14px 14px}
body.story-mode .card-button{min-height:48px;font-size:16px}
body.story-mode .weekly-card-head{padding:12px 16px 12px}
body.story-mode .weekly-card-head h3{font-size:21px;margin-bottom:2px}
body.story-mode .weekly-card-body{padding:12px 16px 8px}
body.story-mode .publication-content .destination-copy{font-size:16px;line-height:1.75}
body.story-mode .msg-avatar{width:32px;height:32px}

/* ヘッダー：LINEと同じ並び（戻る・名前・検索・メニュー） */
.phone-icons{display:flex;gap:14px;flex:none;color:#1c2b3a;padding-right:4px}
.phone-icons svg{width:22px;height:22px;stroke-width:1.9}
.view-label .phone-help{width:22px;height:22px;margin-left:6px;font-size:12px;line-height:1;padding:0;vertical-align:middle}
body.story-mode .phone-top{height:54px}

/* 下のメニューバー */
.menu-toggle{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:36px;padding:4px 10px 12px;font-size:13px;color:#2b3a4a;background:#fff}
.menu-toggle b{text-align:center;font-weight:800;letter-spacing:.02em}
.menu-toggle #menu-caret{font-size:9px;margin-left:3px;vertical-align:1px;color:#6b7a8a}
.menu-kbd{display:grid;place-items:center;width:32px;height:24px;color:#5a6878}
.menu-kbd svg{width:22px;height:22px}
.menu-toggle[aria-expanded="true"]{padding-bottom:6px}

/* スマホの下の断り書き */
.phone-note{margin:10px 6px 0;font-size:11px;line-height:1.5;color:var(--muted);text-align:center}

/* --- お客様がスマホで見る画面（アンケート・口コミ文・レポート）は枠の中で開く --- */
dialog.in-phone{margin:0;max-width:none;max-height:none;border:0;border-radius:0 0 33px 33px;box-shadow:none;overflow:hidden;background:#fff}
dialog.in-phone[open]{display:flex;flex-direction:column}
dialog.in-phone::backdrop{background:#14291f40}
dialog.in-phone .dialog-head{flex:none;padding:8px 10px 8px 16px;background:#f6f7f8;border-bottom:1px solid #e1e5ea}
dialog.in-phone .dialog-head h2{font-size:15px;font-weight:800;color:#2b3a4a}
dialog.in-phone .dialog-head button{width:30px;height:30px;background:transparent;font-size:22px;color:#5a6878}
dialog.in-phone .dialog-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px 26px;scrollbar-width:thin}
dialog.in-phone .sv-q h3{font-size:20px}
dialog.in-phone .sv-rate{min-height:52px}
dialog.in-phone .rv-text{font-size:17px;line-height:1.85}
dialog.in-phone .rv-card{padding:14px 14px 12px}
dialog.in-phone .rv-copy,dialog.in-phone .rv-sub{min-height:50px;font-size:16px}
dialog.in-phone .rv-wrap{gap:12px}
dialog.in-phone .rv-lead{font-size:15px}
.report-view .metric strong{font-size:24px}
.report-view .metric{font-size:12px}
.report-view .stage-box h3{margin:0 0 6px;font-size:15px}
.report-view .stage-box p{font-size:15px;line-height:1.7}
.report-view .trend-figure figcaption,.report-view .terms figcaption{font-size:14px}
.report-view .term-name{font-size:14px}
.report-view .trend-value,.report-view .trend-month{font-size:12px}
.report-view .trend-col.now .trend-value{font-size:13px}

/* --- ステップの見出しは1行に --- */
.story-step{white-space:nowrap}
@media(min-width:1101px) and (max-width:1500px){
  .story-step{font-size:15px;gap:8px;padding:10px 10px}
  .story-num{width:30px;height:30px;font-size:15px}
}

/* --- 光るボタンは控えめに --- */
@media (prefers-reduced-motion:no-preference){.coach-target{animation-duration:1.7s}}
@keyframes coach{0%,100%{outline-offset:3px;outline-color:var(--coach)}50%{outline-offset:5px;outline-color:#f08c0099}}

/* --- 営業プレゼン：スマホを画面の高さに合わせる --- */
@media(min-width:851px){
  body.story-mode .chat{height:clamp(320px,calc(100svh - 440px),640px)}
  body.story-mode .present-toggle{display:inline-block}

  /* プレゼン表示（P）：1366×768 でもスマホ・説明・「つぎへ」が1画面に収まる */
  body.presenting.story-mode{overflow:hidden}
  body.presenting .masthead{min-height:44px}
  body.presenting .brand{font-size:19px}
  body.presenting .brand img{width:30px;height:30px}
  body.presenting .brand small{display:none}
  body.presenting .top-tools{gap:8px}
  body.presenting .prospect-btn,body.presenting .mode-switch button,body.presenting .store-select select,body.presenting .subtle{padding-top:5px;padding-bottom:5px;font-size:12px}
  body.presenting.story-mode .shell{padding-top:0}
  body.presenting.story-mode .story-steps{margin:8px 0 10px}
  body.presenting .story-step{min-height:42px;padding:5px 10px;font-size:14px;border-radius:12px}
  body.presenting .story-num{width:26px;height:26px;font-size:14px}
  body.presenting.story-mode .line-area .view-label{display:none}
  body.presenting.story-mode .phone-note{margin-top:6px;font-size:10px}
  body.presenting.story-mode .chat{height:calc(100svh - 342px)}
  body.presenting.story-mode .phone:has(.input-status:not([hidden])) .chat{height:calc(100svh - 376px)}
  body.presenting.story-mode .story-panel{position:static;display:flex;flex-direction:column;height:calc(100svh - 118px)}
  body.presenting .story-inner{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;padding:20px 28px 0;scrollbar-width:thin}
  body.presenting .story-inner>*{flex:none}
  body.presenting .story-count{align-self:flex-start;margin-bottom:8px;padding:4px 12px;font-size:13px}
  body.presenting .story-inner h2{margin-bottom:8px;font-size:clamp(25px,2.4vw,36px);line-height:1.25}
  body.presenting .story-body{font-size:clamp(16px,1.3vw,19px);line-height:1.7}
  body.presenting .story-meo{margin-top:12px;padding:10px 14px}
  body.presenting .story-meo p{font-size:15px;line-height:1.65}
  body.presenting .meo-factors{margin-top:12px}
  body.presenting .story-task{margin-top:12px;padding:12px 16px;gap:12px}
  body.presenting .story-task svg{width:28px;height:28px}
  body.presenting .story-task p{font-size:16px;line-height:1.6}
  body.presenting .story-nav{position:sticky;bottom:0;z-index:2;margin-top:auto;padding:12px 0 16px;background:linear-gradient(#fffdf800,#fffdf8 10px)}
  body.presenting .story-back,body.presenting .story-next{min-height:52px;font-size:18px}
  body.presenting .story-link{margin:-6px 0 10px}
  body.presenting .talk{flex:none;margin-top:10px;max-height:min(30svh,205px);overflow:auto;padding:12px 16px;scrollbar-width:thin}
  body.presenting .talk.collapsed{padding:8px 14px}
  body.presenting .talk-row{margin-top:8px}
  body.presenting .talk-row p{font-size:14px;line-height:1.6}
}
@media(max-width:575px){.card-row>.msg-avatar{display:none}.phone-icons{gap:10px}dialog.in-phone{border-radius:0 0 17px 17px}}

/* ===== 診断結果：点数・内訳・優先順位 ===== */
.ck-head{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center}
.ck-score{display:grid;gap:2px;padding-right:20px;border-right:1px solid #f1dcb4}
.ck-score-label{font-size:13px!important;font-weight:900;color:#5a3a00!important}
.ck-score-num{margin:0;display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.ck-score-num b{font:900 56px/1 system-ui;color:#13281f;font-variant-numeric:tabular-nums}
.ck-score-num small{font-size:15px;font-weight:900;color:#5a3a00}
.ck-bars{display:grid;gap:8px}
.ck-bar{display:grid;grid-template-columns:96px 1fr 62px;gap:10px;align-items:center}
.ck-bar>span{font-size:13px;font-weight:900;color:#2f473b}
.ck-track{height:12px;border-radius:99px;background:#f3e3c2;overflow:hidden}
.ck-track i{display:block;height:100%;border-radius:99px;background:#206749;transition:width .4s}
.ck-bar>b{font:900 16px/1 system-ui;color:#13281f;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ck-bar>b small{font-size:12px;font-weight:800;color:#7a6a4a}
.ck-title{margin:16px 0 8px}
.ck-title.sub{font-size:14px;margin-top:14px}
.ck-gaps{counter-reset:none}
.ck-gaps li.ck-gap{display:flex;gap:12px;align-items:flex-start}
.ck-gaps li.top{border:1.5px solid #f0b955;padding:12px 14px}
.ck-rank{flex:none;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#f08c00;color:#fff;font:900 16px/1 system-ui}
.ck-gap-body{flex:1;min-width:0;display:grid;gap:4px}
.ck-gap-head{justify-content:flex-start;flex-wrap:wrap}
.ck-gap-head .ck-plus{margin-left:auto;background:#fff1d6;color:#8a4b00;font-size:13px;padding:4px 10px}
.ck-gaps p.ck-now{margin:2px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px!important}
.ck-now span{font-size:11px;font-weight:900;color:#6b7a70}
.ck-now b{padding:2px 9px;border-radius:8px;background:#fdebd0;color:#8a4b00;font-size:14px}
.ck-now b.ck-goal{background:#dff0e4;color:#1b6a43}
.ck-now i{font-style:normal;color:#9aa69e}
.ck-gaps p.ck-fix{margin:0}
.ck-gaps p.ck-where{margin:0;font-size:12px!important;font-weight:800;color:#1f4f9a!important}
.ck-gaps.rest{grid-template-columns:1fr 1fr}
.ck-gaps.rest li{padding:8px 12px}
.ck-gaps.rest .ck-gap-head b{font-size:14px}
.ck-more{margin:8px 0 0;font-size:14px!important;font-weight:800;color:#5a3a00!important}
.ck-note{margin:12px 0 0;font-size:12px!important;line-height:1.6;color:#7a6a4a!important}
@media(max-width:1100px){.ck-head{grid-template-columns:1fr;gap:12px}.ck-score{border-right:0;padding-right:0}.ck-gaps.rest{grid-template-columns:1fr}}

/* ===== ステップ1の最初の1画面：なぜ、いまGoogleマップなのか ===== */
.why{margin:0 0 18px}
.why p.why-title{display:inline-block;margin:0 0 12px;padding:5px 12px;border-radius:8px;background:#eef6ee;font-size:15px!important;font-weight:900;color:#206749!important}
.story-inner h2.why-head{margin:0 0 22px;white-space:pre-line}
.why-hero{display:flex;align-items:center;gap:22px;padding:22px 26px;border-radius:18px;background:#eef6ee;border:1.5px solid #cfe2cf}
.why-num{margin:0;display:flex;align-items:baseline;gap:4px;white-space:nowrap;color:#206749}
.why-num b{font:900 clamp(56px,6vw,84px)/1 system-ui;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.why-num small{font-size:28px;font-weight:900}
.why p.why-text{margin:0;font-size:clamp(18px,1.5vw,22px)!important;line-height:1.5;font-weight:900;color:#13281f!important}
.why p.why-sub{margin:6px 0 0;font-size:15px!important;line-height:1.5;color:#5c6f64!important}
.why-more{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.why-more li{display:flex;align-items:baseline;gap:10px;font-size:16px;line-height:1.6;color:#2b3d33}
.why-more b{flex:none;min-width:5.5em;font-size:18px;font-weight:900;color:#206749}
.why p.why-source{margin:14px 0 0;font-size:11px!important;line-height:1.6;color:#6b7a70!important}
/* 「なぜ」を話している間は、左のLINEを薄くして右に目が行くようにする */
.line-area .phone,.line-area .phone-note{transition:opacity .35s,filter .35s}
body.why-intro .line-area .phone,body.why-intro .line-area .phone-note{opacity:.28;filter:grayscale(.7)}
.talk-scripts summary::before{content:"▸ ";color:var(--lime)}
@media(max-width:700px){.why-hero{flex-direction:column;align-items:flex-start;gap:8px;padding:16px 18px}.why-more li{flex-direction:column;gap:0}}
/* プレゼン表示（画面共有）では、営業用のボタン類を隠す（Esc で戻せる） */
body.presenting .prospect-btn,body.presenting .mode-switch,body.presenting .demo-tag,body.presenting .store-select,body.presenting #reset{display:none}

/* ===== 営業プレゼン：スマホを画面の高さいっぱいに大きく見せる =====
   拡大率 --pz と、スマホに使える高さ --ph は demo.js の fitPhone() が画面の大きさから決める。
   トーク欄の高さは「使える高さ ÷ 拡大率 − トーク欄以外の高さ」。 */
@media(min-width:851px){
  body.story-mode .line-area .view-label{display:none}
  body.story-mode .story-steps{margin:12px 0 12px}
  body.story-mode .phone-note{margin-top:6px;font-size:10px}
  body.story-mode .phone{zoom:var(--pz,1)}
  body.story-mode .desk{grid-template-columns:minmax(360px,calc(460px * var(--pz,1))) minmax(0,1fr)}
  body.story-mode.phone-fit .chat{height:max(240px,calc(var(--ph) / var(--pz,1) - 200px))}
  body.story-mode.phone-fit .phone:has(.input-status:not([hidden])) .chat{height:max(220px,calc(var(--ph) / var(--pz,1) - 234px))}
}

/* ===== 営業メモの別ウィンドウ（memo.html） ===== */
.talk-tools{display:flex;gap:6px;flex:none}
body.memo-window{margin:0;min-height:100vh;background:#1d3a2e;color:#e8f1e9}
.memo-window #memo{padding:14px 16px 24px}
.memo-window .talk{margin:0;padding:6px 2px 0;box-shadow:none;background:transparent}
.memo-window .talk-row p{font-size:16px;line-height:1.7}
.memo-bar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:-14px -16px 8px;padding:10px 16px;background:#16301f;border-bottom:1px solid #2f4d3e}
.memo-bar b{font-size:15px;color:#fff}
.memo-nav{display:flex;gap:6px}
.memo-nav .talk-toggle{padding:8px 14px;font-size:14px}
.memo-nav .talk-toggle:disabled{opacity:.4}
.memo-wait{margin:40px 8px;font-size:15px;line-height:1.8;color:#a9c3b2}

/* ===== 営業メモ：話す流れ（上から順に話す） ===== */
.talk-flow{margin-top:12px}
.talk-flow h4{margin:12px 0 8px;font-size:13px;color:#a9c3b2;letter-spacing:.02em}
.talk-prep{margin-top:4px;padding:10px 12px;border-radius:10px;background:#2a4b3c;border:1px dashed #5b7f6c}
.talk-prep b{font-size:13px;color:var(--lime)}
.talk-prep p{margin:4px 0 0;font-size:14px;line-height:1.6}
.talk-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px;counter-reset:talk}
.talk-steps li{counter-increment:talk;display:grid;grid-template-columns:28px 92px 1fr;gap:8px;align-items:start}
.talk-steps li::before{content:counter(talk);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e9f5c8;color:#1d3a2e;font-size:13px;font-weight:900}
.talk-role{justify-self:start;padding:2px 8px;border-radius:99px;background:#2f5443;color:#dfeee2;font-size:12px;font-weight:800;line-height:1.6;white-space:nowrap}
.talk-steps p{margin:0;font-size:15px;line-height:1.7}
.memo-window .talk-steps p{font-size:16px}
@media(max-width:575px){.talk-steps li{grid-template-columns:24px 1fr}.talk-steps .talk-role{grid-column:2}.talk-steps p{grid-column:2}}

/* 見出しの改行位置を指定できるように（文中の改行で折り返す） */
.story-inner h2{white-space:pre-line}

/* ===== スマホ：お客様に見せながら操作する ===== */
.m-bar,.m-backdrop,.m-more{display:none}
@media(max-width:850px){
  /* 下に固定のバー：メモ・もどる・ステップ番号・つぎへ */
  body.story-mode{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  body.story-mode .m-bar{display:grid;grid-template-columns:64px 52px auto minmax(0,1fr);align-items:center;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffdf8f2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);box-shadow:0 -10px 24px -20px #0f2a1c}
  .m-bar button{min-height:54px;border-radius:14px;font-size:16px;font-weight:900;white-space:nowrap}
  .m-memo{border:0;background:#1d3a2e;color:#fff}
  .m-memo[aria-expanded="true"]{background:var(--lime);color:#17392b}
  .m-back{border:2px solid #cfdccc;background:#fff;color:#3d5a4b;font-size:20px!important}
  .m-back:disabled{opacity:.35}
  .m-count{min-width:34px;text-align:center;font-size:14px;font-weight:900;color:#5d6b63}
  .m-next{border:0;background:var(--forest);color:#fff;padding:0 12px;overflow:hidden;text-overflow:ellipsis}
  body.story-mode .story-inner .story-nav{display:none}
  body.story-mode .toast{bottom:calc(88px + env(safe-area-inset-bottom))}

  /* 営業メモ：最初は隠し、「メモ」で下から引き出す */
  body.story-mode #talk-sheet{position:fixed;left:0;right:0;bottom:calc(74px + env(safe-area-inset-bottom));z-index:19;max-height:calc(100svh - 150px);overflow:auto;overscroll-behavior:contain;margin:0;border-radius:20px 20px 0 0;transform:translateY(calc(100% + 90px));visibility:hidden;transition:transform .25s ease,visibility .25s}
  body.memo-sheet #talk-sheet{transform:none;visibility:visible}
  body.story-mode #talk-sheet .talk-toggle{min-height:40px;padding:6px 14px;font-size:14px}
  body.memo-sheet .m-backdrop{display:block;position:fixed;inset:0;z-index:18;background:#0f2a1c73}

  /* 説明文とMEOのポイントは「くわしい説明」にたたむ */
  .story-more{margin-top:12px;border-radius:14px;background:#f4f6f1;border:1px solid #e1e6dd}
  .story-more summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 14px;font-size:15px;font-weight:800;color:#3d5a4b;cursor:pointer;list-style:none}
  .story-more summary::-webkit-details-marker{display:none}
  .story-more summary::after{content:"＋";color:#8a9a90}
  .story-more[open] summary::after{content:"－"}
  .story-more .story-body{padding:0 14px 12px}
  .story-more .story-meo{margin:0 10px 12px}
  body.story-mode .story-inner h2{margin-bottom:0}

  /* 上の小さいボタンは「…」にまとめる */
  body.story-mode .m-more{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #ced8cd;border-radius:12px;background:#fff;font-size:20px;font-weight:900;color:var(--forest)}
  body.story-mode .m-more[aria-expanded="true"]{background:var(--forest);color:#fff}
  body.story-mode .prospect-btn{min-height:44px;padding:0 12px;font-size:13px}
  body.story-mode .top-tools>:is(.mode-switch,.demo-tag,.store-select,#reset,.present-toggle){display:none}
  body.story-mode .top-tools.tools-open{flex-wrap:wrap;justify-content:flex-end;padding:8px 0 10px;gap:8px}
  body.story-mode .top-tools.tools-open>:is(.store-select,.mode-switch,#reset){display:flex;width:100%;justify-content:stretch}
  body.story-mode .top-tools.tools-open .store-select select{flex:1;max-width:none;min-height:44px;font-size:14px;padding:0 10px}
  body.story-mode .top-tools.tools-open .mode-switch button{flex:1;min-height:42px;font-size:14px}
  body.story-mode .top-tools.tools-open #reset{min-height:44px;justify-content:center;align-items:center;font-size:14px}

  /* 指で押しやすい大きさに */
  .composer-icon{width:44px;height:44px}
}
.m-step-title{display:none}
@media(max-width:850px){
  body.story-mode .m-step-title{display:flex;align-items:baseline;gap:8px;margin:0 2px 8px;scroll-margin-top:64px;font-size:15px;line-height:1.45;color:var(--forest)}
  body.story-mode .m-step-title span{flex:none;padding:2px 8px;border-radius:99px;background:#e3f0df;font-size:12px;font-weight:900;color:#205735}
  body.story-mode .m-step-title b{font-weight:900}
  body.story-mode .line-area>.view-label{display:none}
  body.story-mode .ck-result{scroll-margin-top:70px}
  body.story-mode .story-link{min-height:44px}
}
@media(max-width:850px){body.story-mode .chat{max-height:max(260px,calc(100svh - 326px))}}
@media(max-width:850px){body.story-mode .masthead:has(.tools-open){align-items:flex-start}body.story-mode .masthead:has(.tools-open) .brand{margin-top:15px}}
/* スマホ：モックを縦いっぱいに（上の帯は固定せず、スマホ画面＋見出し＋下のバーで1画面） */
@media(max-width:850px){
  body.story-mode .topbar{position:static}
  body.story-mode .m-step-title{scroll-margin-top:8px}
  body.story-mode .story-steps{scroll-margin-top:8px}
  body.story-mode .ck-result{scroll-margin-top:12px}
  body.story-mode .chat{height:max(300px,calc(100svh - 292px));max-height:none}
}

/* ===== 営業メモ：たたんである追加の流れ（着いてから／登録の手順） ===== */
.talk-extra{margin-top:12px;border-radius:12px;background:#244536;border:1px solid #3b6350}
.talk-extra summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 14px;font-size:15px;font-weight:900;color:#fff;cursor:pointer;list-style:none}
.talk-extra summary::-webkit-details-marker{display:none}
.talk-extra summary::after{content:"＋";flex:none;color:var(--lime)}
.talk-extra[open] summary::after{content:"－"}
.talk-extra-note{margin:0 14px 10px;font-size:13px;line-height:1.6;color:#a9c3b2}
.talk-extra .talk-steps{padding:0 14px 14px}

/* ===== 営業メモ：対面／Zoomの切り替え、1つずつのカード、コツ・質問のタブ ===== */
.talk-bar{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-top:12px}
.talk-seg{display:flex;padding:3px;border-radius:12px;background:#15301f;border:1px solid #355a49}
.talk-seg button{min-height:40px;padding:0 16px;border:0;border-radius:9px;background:transparent;color:#a9c3b2;font-size:14px;font-weight:900;white-space:nowrap}
.talk-seg button.on{background:var(--lime);color:#17392b}
.talk-card{margin-top:12px;padding:16px;border-radius:16px;background:#fffdf8;color:#13281f}
.talk-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.talk-num{font-size:13px;font-weight:900;color:#5d6b63;font-variant-numeric:tabular-nums}
.talk-card .talk-role{display:inline-block;padding:3px 10px;border-radius:99px;background:#17392b;color:#fff;font-size:13px;font-weight:900;white-space:nowrap}
.talk-group{margin-left:auto;font-size:12px;font-weight:800;color:#5d6b63}
.talk-say{margin:0;font-size:19px;line-height:1.75;font-weight:700;color:#13281f}
.talk-say+.talk-say{margin-top:10px}
.talk-note{margin:10px 0 0;padding:8px 12px;border-radius:10px;background:#fff1cf;border-left:4px solid #f0a020;font-size:14px;line-height:1.65;font-weight:700;color:#5a3a00}
.talk-note:first-of-type{margin-top:0}
.talk-note+.talk-say{margin-top:10px}
.talk-card-nav{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:10px}
.talk-step{min-height:48px;padding:0 16px;border-radius:12px;border:1.5px solid #4d6b5c;background:transparent;color:#e8f1e9;font-size:15px;font-weight:900}
.talk-step.next{border:0;background:var(--lime);color:#17392b}
.talk-step:disabled{opacity:.35}
.talk-end{margin:10px 0 0;font-size:13px;color:#a9c3b2;text-align:center}
.talk-view{display:block;margin:12px auto 0;min-height:40px;padding:0 12px;border:0;background:transparent;color:#cfe5d4;font-size:13px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.talk-point b{color:#ffd98a}
.talk .talk-prep{margin-top:12px}
.memo-window .talk-say{font-size:21px}
@media(min-width:851px){body.presenting .talk-say{font-size:16px;line-height:1.6}body.presenting .talk-card{padding:10px 14px;margin-top:8px}}
@media(max-width:850px){#talk-sheet .talk-card{min-height:216px}}
/* プレゼン表示（P）：メモは低い場所に収めるので、詰めて出す */
@media(min-width:851px){
  body.presenting .talk{max-height:min(36svh,260px)}
  body.presenting .talk-bar{margin-top:6px}
  body.presenting .talk-seg button{min-height:30px;padding:0 12px;font-size:13px}
  body.presenting .talk-card-nav{margin-top:6px}
  body.presenting .talk-step{min-height:36px;font-size:14px}
  body.presenting .talk-view,body.presenting .talk-end{display:none}
}

/* ===== お客様に渡す画面（body.share）：LINEの画面だけ ===== */
.share-tabs,.share-badge{display:none}
.pf-copy{width:100%;min-height:44px;margin-top:8px;border:1.5px solid #f0b45a;border-radius:10px;background:#fff;color:#a35b00;font-size:14px;font-weight:900}
.pf-link{width:100%;margin-top:8px;padding:8px 10px;border:1px solid #cbdccd;border-radius:10px;background:#f6f8f3;font-size:12px;line-height:1.5;word-break:break-all;resize:none}
body.share{background:#e9efe6;padding:0}
body.share .topbar,body.share .hero,body.share .story-steps,body.share .navigation,body.share .stage,body.share .story-panel,body.share footer,body.share .line-area>.view-label,body.share .m-bar,body.share .m-backdrop,body.share .m-step-title{display:none!important}
body.share .shell{max-width:none;padding:0}
body.share .desk{display:block}
body.share .line-area{width:min(430px,100%);max-width:none;margin:0 auto;padding:max(16px,calc((100svh - 860px) / 2)) 0 12px}
body.share .phone{display:flex;flex-direction:column;height:min(820px,calc(100svh - 64px));zoom:1}
body.share .chat{flex:1;height:auto;max-height:none;min-height:0}
body.share .phone-note{margin-top:8px}
body.share .share-badge{display:inline-block;flex:none;padding:3px 9px;border-radius:99px;background:#e8f3e8;border:1px solid #d4e6d6;color:#205735;font-size:11px;font-weight:900}
body.share .phone-icons{display:none}
body.share .share-tabs{display:flex;flex:none;gap:6px;overflow-x:auto;padding:8px 10px;background:#fffefa;border-bottom:1px solid #dde8dd;scrollbar-width:none}
body.share .share-tabs::-webkit-scrollbar{display:none}
.share-tab{flex:none;min-height:38px;padding:0 14px;border-radius:99px;border:1.5px solid #cfdccc;background:#fff;color:#3d5a4b;font-size:14px;font-weight:900;white-space:nowrap;display:inline-flex;align-items:center;text-decoration:none}
.share-tab[aria-current="step"]{background:var(--forest);border-color:var(--forest);color:#fff}
.share-contact{margin-left:auto;background:#f08c00;border-color:#f08c00;color:#fff}
body.share .composer-icon{width:44px;height:44px}
body.share .composer input{height:40px;font-size:16px}
body.share .menu-toggle{min-height:40px;font-size:13px}
body.share .toast{bottom:calc(20px + env(safe-area-inset-bottom))}
/* スマホ：画面いっぱいがLINE */
@media(max-width:600px){
  body.share .line-area{width:100%;padding:0}
  body.share .phone{height:100svh;border:0;border-radius:0;box-shadow:none}
  body.share .phone::after,body.share .status-bar,body.share .phone-note{display:none}
  body.share .phone-top{padding-top:env(safe-area-inset-top);height:calc(52px + env(safe-area-inset-top))}
  body.share .rich-menu{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  body.share .chat-card p,body.share .bubble{font-size:15px}
}
body.share .carousel-hint button{min-height:40px;padding:0 14px;font-size:14px}
body.share .carousel-hint{font-size:13px}
/* お客様に渡す画面：最初のカードの帯、カードの並び、はじめるボタン */
.share-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;height:150px;padding:14px 16px;overflow:hidden;color:#fff;background:linear-gradient(135deg,#17392b,#2c7a55)}
.share-hero.plain{background-image:linear-gradient(#ffffff17 1px,transparent 1px),linear-gradient(90deg,#ffffff17 1px,transparent 1px),linear-gradient(135deg,#17392b,#2f8259);background-size:26px 26px,26px 26px,auto}
.share-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.share-hero:not(.plain)::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0b1f1700 25%,#0b1f17d9)}
.share-hero-chip{position:absolute;z-index:1;top:12px;left:12px;display:flex;align-items:center;gap:6px;padding:5px 11px 5px 8px;border-radius:99px;background:#fff;color:#1f2933;font-size:12px;box-shadow:0 2px 8px #0003}
.share-hero-chip img{width:15px;height:15px}
.share-hero-name{position:relative;z-index:1;display:grid;gap:2px}
.share-hero-name b{font-size:22px;line-height:1.3;letter-spacing:-.01em;text-shadow:0 1px 6px #0006}
.share-hero-name span{font-size:13px;font-weight:700;opacity:.92}
.share-pin{position:absolute;right:26px;top:26px;width:44px;height:44px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#ea4335;box-shadow:0 8px 16px #0004}
.share-pin::after{content:"";position:absolute;inset:13px;border-radius:50%;background:#fff}
body.share .carousel{scrollbar-width:none;gap:10px;padding-bottom:6px}
body.share .carousel::-webkit-scrollbar{display:none}
body.share .carousel .chat-card{border-radius:18px;box-shadow:0 10px 26px -14px #163d2366}
body.share .chat-card h3{font-size:19px}
body.share .carousel-hint{display:flex;align-items:center;gap:10px;margin:6px 2px 10px;color:#2f4f43}
body.share .carousel-hint button{margin:0;border-radius:99px;background:#17392b;color:#fff;font-weight:900}
.share-start{display:none}
body.share .share-start{display:inline-flex;align-items:center;flex:none;min-height:36px;padding:0 14px;border-radius:99px;background:#f08c00;color:#fff;font-size:13px;font-weight:900;text-decoration:none;box-shadow:0 2px 0 #c06f00}
body.share .share-hero{height:118px}
body.share .phone-top div{min-width:0}
body.share .phone-top div span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.share .setup-mini{grid-template-columns:1fr 1fr}
body.share .setup-summary{gap:8px;margin:8px 0 2px}
body.share .setup-cat{padding:8px 12px}
@media(min-width:601px) and (max-height:860px){body.share .share-hero{height:96px}body.share .carousel .chat-card:first-child .card-text{display:none}}
