:root{
  /* 書体は日本語フォントだけを候補にする。Google Fonts が読めない環境でも、
     OS の汎用フォント（中国語の字形になることがある）へ落ちないよう、各 OS の日本語フォントを先に並べる */
  --font-sans:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",YuGothic,Meiryo,"Noto Sans CJK JP","Source Han Sans JP",sans-serif;
  --font-serif:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif CJK JP","Source Han Serif JP",serif;
  --blue:#5083cb;
  --blue-deep:#315f9f;
  --blue-pale:#edf4ff;
  --green:#2e9d5a;
  --ink:#24364b;
  --muted:#66788d;
  --line:#d7e0ea;
  --surface:#fff;
  --canvas:#f3f6fa;
  --shadow:0 18px 50px rgba(35,59,88,.16);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--font-sans);color:var(--ink);background:var(--canvas)}
button,input{font:inherit}
button{cursor:pointer}
.demo-shell{min-height:100vh}
.demo-topbar{height:64px;padding:0 24px;display:flex;align-items:center;gap:24px;background:var(--blue);color:#fff;box-shadow:0 2px 12px rgba(27,54,89,.2)}
.brand{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:800;letter-spacing:.04em}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:var(--blue);background:#fff;font-size:26px;line-height:1}
.brand-plus{color:#ffe889}
.demo-label{padding-left:24px;border-left:1px solid rgba(255,255,255,.35);font-size:14px;font-weight:700}
.demo-topbar .quiet-button{margin-left:auto;color:#fff;border-color:rgba(255,255,255,.6);background:transparent}
.chapter-start{min-height:calc(100vh - 64px);padding:54px 24px 64px;display:flex;flex-direction:column;align-items:center;background:radial-gradient(circle at 50% 0,#fff 0,#f4f8fe 44%,#edf2f8 100%)}
.start-copy{max-width:760px;text-align:center}
.eyebrow{display:inline-block;margin-bottom:13px;padding:6px 13px;border-radius:999px;background:#dff0e6;color:#247b48;font-size:13px;font-weight:800}
h1{margin:0;font-size:clamp(30px,4vw,48px);line-height:1.25;letter-spacing:.02em}
.start-copy p{margin:18px auto 0;max-width:640px;color:var(--muted);font-size:17px;line-height:1.8}
.chapter-grid{width:min(1020px,100%);margin:38px auto 24px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.chapter-card{position:relative;min-height:220px;padding:26px;text-align:left;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.94);color:var(--ink);box-shadow:0 10px 32px rgba(45,71,100,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.chapter-card:hover,.chapter-card:focus-visible{transform:translateY(-4px);border-color:var(--blue);box-shadow:0 18px 42px rgba(45,71,100,.15);outline:none}
.chapter-card--featured{border-width:2px;border-color:var(--blue)}
.chapter-card--featured::after{content:"おすすめ";position:absolute;right:18px;top:18px;padding:4px 8px;border-radius:999px;background:var(--blue-pale);color:var(--blue-deep);font-size:12px;font-weight:800}
.chapter-number{display:block;margin-bottom:28px;color:var(--blue);font-size:14px;font-weight:900;letter-spacing:.14em}
.chapter-card strong{display:block;font-size:21px;line-height:1.4}
.chapter-card>span:not(.chapter-number){display:block;margin-top:10px;color:var(--muted);font-size:14px;line-height:1.6}
.chapter-card small{position:absolute;left:26px;bottom:22px;color:var(--blue-deep);font-weight:800}
.primary-button,.quiet-button{min-height:42px;padding:0 18px;border-radius:8px;font-weight:800;border:1px solid transparent}
.primary-button{background:var(--blue);color:#fff;box-shadow:0 6px 16px rgba(80,131,203,.25)}
.primary-button:hover{background:var(--blue-deep)}
.quiet-button{background:#fff;color:var(--muted);border-color:var(--line)}
.start-all{min-width:230px}
.start-all span{margin-left:10px}
.product-stage{min-height:calc(100vh - 64px);display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start;padding:24px;background:#e9eef5}
.workspace{min-width:0}
.loading-card{width:280px;margin:15vh auto;padding:40px;text-align:center;border-radius:16px;background:#fff;box-shadow:var(--shadow);color:var(--muted)}
.loading-ring{display:block;width:34px;height:34px;margin:0 auto 16px;border:4px solid #dbe6f4;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* 実画面の撮影画像と、クリック位置の枠 */
.shot{position:relative;margin:0 auto;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow);line-height:0}
.shot img{display:block;width:100%;height:auto}
.shot--phone{width:min(330px,100%);padding:10px;border:8px solid #24364b;border-radius:38px}
.shot-screen{position:relative;overflow:hidden}
.shot--phone .shot-screen{border-radius:24px}
.shot--pdf{padding:18px;border:0;background:#5f656d}
.shot--pdf .shot-screen{box-shadow:0 6px 18px rgba(0,0,0,.35)}
.shot-hotspot{position:absolute;padding:0;border:0;border-radius:8px;background:transparent;cursor:pointer;outline:4px solid #ffd36a;box-shadow:0 0 0 8px rgba(255,211,106,.28),0 0 0 9999px rgba(20,36,54,.32);animation:pulseFocus 1.8s ease-in-out infinite}
.shot-hotspot:focus-visible{outline-color:#ffbd2e}
.shot-missing{padding:40px;border-radius:12px;background:#fff;color:var(--muted);line-height:1.8}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.guide-panel{position:sticky;top:24px;padding:0 22px 22px;border-radius:16px;background:#fff;box-shadow:var(--shadow);z-index:10}
.guide-progress{height:5px;margin:0 -22px 18px;background:#e7edf5;border-radius:16px 16px 0 0;overflow:hidden}
.guide-progress span{display:block;width:16%;height:100%;background:var(--green);transition:width .3s ease}
.guide-meta{display:flex;justify-content:space-between;color:var(--blue-deep);font-size:12px;font-weight:800}
.guide-panel h2{margin:13px 0 8px;font-size:20px;line-height:1.45}
.guide-panel p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}
.guide-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}

[hidden]{display:none!important}
.product-stage:has(.guide-panel[hidden]){grid-template-columns:1fr}
.completion{max-width:960px;margin:26px auto;padding:50px;text-align:center;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.completion-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;border-radius:50%;background:#dff3e7;color:#247b48;font-size:28px;font-weight:900}.completion h2{font-size:32px;line-height:1.5}.outcome-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:32px 0}.outcome-grid button{display:flex;flex-direction:column;justify-content:flex-start;padding:22px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:var(--ink);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.outcome-grid button:hover,.outcome-grid button:focus-visible{transform:translateY(-3px);border-color:var(--blue);box-shadow:0 12px 28px rgba(45,71,100,.12);outline:none}.outcome-grid b,.outcome-grid strong,.outcome-grid span,.outcome-grid em{display:block}.outcome-grid em{margin-top:auto;padding-top:14px;color:var(--blue-deep);font-size:13px;font-style:normal;font-weight:800}.outcome-grid b{margin-bottom:18px;color:var(--blue)}.outcome-grid span{margin-top:7px;color:var(--muted);font-size:13px}.completion-cta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.completion .quiet-button{display:block;margin:12px auto 0}
.screen-enter{animation:screenIn .22s ease-out}
/* 位置は動かさない（ずらすとハイライト枠の位置を測った時点で数px ずれるため） */
@keyframes screenIn{from{opacity:.2}to{opacity:1}}
@keyframes pulseFocus{50%{outline-color:#ffbd2e;box-shadow:0 0 0 12px rgba(255,211,106,.14),0 0 0 9999px rgba(20,36,54,.32)}}

@media(max-width:980px){
  .product-stage{grid-template-columns:1fr;gap:16px;padding:16px}
  .guide-panel{position:sticky;top:auto;bottom:12px}
}
@media(max-width:760px){
  .demo-topbar{height:58px;padding:0 14px}.demo-label{display:none}.brand{font-size:17px}.brand-mark{width:29px;height:29px}
  .chapter-start{min-height:calc(100vh - 58px);padding:32px 16px 48px}.chapter-grid{grid-template-columns:1fr;margin-top:28px}.chapter-card{min-height:150px}.chapter-number{margin-bottom:16px}.chapter-card small{position:static;display:block;margin-top:15px}
  .product-stage{min-height:calc(100vh - 58px)}
  .guide-panel{padding:0 18px 18px}.guide-progress{margin:0 -18px 15px}.guide-panel h2{font-size:18px}.guide-panel p{font-size:14px}
  .guide-actions{flex-direction:column-reverse}.guide-actions button{width:100%}
  .completion{padding:30px 18px}.completion h2{font-size:24px}.outcome-grid{grid-template-columns:1fr}
}

/* 法人運営ガイドツアーと共通のUI・書体。撮影画像は変更しない。 */
:root{
  --blue:#5183ca;
  --blue-deep:#2f5da3;
  --blue-pale:#eaf1fb;
  --ink:#2d3540;
  --muted:#5a626d;
  --line:#dfe2e7;
  --canvas:#f6f8fb;
  --shadow:0 18px 50px rgba(24,33,48,.22);
}
html,body{
  font-family:var(--font-sans);
  font-size:15px;
  line-height:1.7;
}
button:focus-visible,a:focus-visible{outline:3px solid #ef7c6e;outline-offset:3px}

.demo-shell:not(.is-running) .demo-topbar{display:none}
.demo-topbar{
  position:fixed;
  top:12px;
  right:16px;
  z-index:30;
  width:auto;
  height:auto;
  padding:0;
  background:transparent;
  box-shadow:none;
}
.demo-topbar .quiet-button{
  min-height:36px;
  margin:0;
  padding:0 13px;
  color:var(--muted);
  background:#fff;
  border:1px solid var(--line);
  border-radius:7px;
  box-shadow:0 4px 14px rgba(24,33,48,.12);
  font-size:12px;
  font-weight:700;
}

.chapter-start{
  min-height:100vh;
  padding:42px 24px 38px;
  justify-content:center;
  background:linear-gradient(145deg,#315f9f 0%,#5183ca 100%);
  color:#fff;
}
.start-copy{max-width:760px;margin-left:auto;margin-right:auto}
.chapter-start .eyebrow{
  margin-bottom:24px;
  padding:5px 14px;
  color:#fff;
  background:rgba(255,255,255,.16);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
}
.start-brand{
  margin:0 0 24px!important;
  color:#fff!important;
  font-family:var(--font-serif);
  font-size:31px!important;
  font-weight:700;
  letter-spacing:.05em;
}
.start-brand span{color:#f9c4b9}
.chapter-start h1{
  margin:0 auto;
  font-family:var(--font-serif);
  font-size:clamp(25px,3vw,32px);
  font-weight:600;
  line-height:1.55;
  letter-spacing:.02em;
}
.start-copy>p:not(.start-brand):not(.start-note){
  margin:20px auto 0;
  max-width:660px;
  color:rgba(255,255,255,.92);
  font-size:14px;
  line-height:1.9;
}
.chapter-start .start-all{
  min-width:190px;
  min-height:52px;
  margin-top:32px;
  color:var(--blue-deep);
  background:#fff;
  border-color:#fff;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(30,54,94,.18);
  font-size:14px;
}
.chapter-start .start-all:hover{background:#f1f5fb}
.start-note{
  max-width:620px!important;
  margin:22px auto 0!important;
  color:rgba(255,255,255,.72)!important;
  font-size:11px!important;
  line-height:1.7!important;
}
.chapter-prompt{margin:34px 0 10px;color:rgba(255,255,255,.78);font-size:12px;letter-spacing:.08em}
.chapter-grid{width:min(760px,100%);margin:0;gap:10px}
.chapter-card{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:12px 16px;
  color:#fff;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.32);
  border-radius:8px;
  box-shadow:none;
}
.chapter-card:hover,.chapter-card:focus-visible{
  transform:translateY(-2px);
  color:var(--blue-deep);
  background:#fff;
  border-color:#fff;
  box-shadow:0 10px 26px rgba(24,33,48,.16);
}
.chapter-card .chapter-number{margin:0;color:inherit;opacity:.7;font-family:Inter,var(--font-sans);font-size:11px;font-weight:700}
.chapter-card strong{flex:1;font-size:12px;font-weight:700;white-space:nowrap}
.chapter-card small{position:static;color:inherit;font-size:14px;font-weight:500}

.product-stage{
  display:block;
  min-height:100vh;
  padding:16px;
  background:var(--canvas);
}
.workspace{width:min(1280px,100%);margin:0 auto}
.shot{border-radius:7px;box-shadow:0 4px 16px rgba(24,33,48,.13)}
.shot--phone{margin:16px auto 280px}
.shot--pdf{max-width:1280px}
.shot-hotspot{
  outline:3px solid #fff;
  box-shadow:0 0 0 7px rgba(81,131,202,.52),0 0 0 9999px rgba(24,33,48,.52);
  animation:none;
}
.shot-hotspot:focus-visible{outline-color:#ef7c6e}

.guide-panel{
  position:fixed;
  top:auto;
  right:28px;
  bottom:28px;
  z-index:40;
  width:min(355px,calc(100% - 56px));
  padding:22px 22px 18px;
  border-radius:14px;
  box-shadow:var(--shadow),0 0 0 1px rgba(24,33,48,.04);
}
.guide-meta{display:block;color:var(--blue-deep)}
.guide-meta span{
  display:inline-block;
  padding:3px 7px;
  border-radius:4px;
  color:var(--blue-deep);
  background:var(--blue-pale);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
}
.guide-panel h2{
  margin:13px 0 8px;
  color:var(--ink);
  font-family:var(--font-serif);
  font-size:17px;
  font-weight:700;
  line-height:1.5;
}
.guide-panel p{color:var(--muted);font-size:13.5px;line-height:1.85}
.guide-actions{
  display:flex;
  align-items:end;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid #edf0f3;
}
.guide-progress-wrap{min-width:84px;margin-right:auto}
.guide-progress-wrap>span{color:#8b939e;font-family:Inter,var(--font-sans);font-size:11px;font-weight:600}
.guide-progress{width:78px;height:3px;margin:6px 0 0;background:#e8ebef;border-radius:99px}
.guide-progress span{background:var(--blue)}
.guide-actions .quiet-button,.guide-actions .primary-button{
  min-height:38px;
  padding:0 12px;
  border-radius:7px;
  box-shadow:none;
  font-size:12px;
  font-weight:700;
}
.guide-actions .quiet-button{background:#fff;color:var(--muted);border:1px solid var(--line)}
.guide-actions .quiet-button:disabled{opacity:.4;cursor:default}
.completion h2{font-family:var(--font-serif)}

@media(max-width:760px){
  .chapter-start{padding:40px 18px}
  .chapter-start h1{font-size:24px}
  .start-brand{margin-bottom:18px!important;font-size:27px!important}
  .chapter-prompt{margin-top:28px}
  .chapter-grid{grid-template-columns:1fr}
  .chapter-card{min-height:48px}
  .product-stage{min-height:100vh;padding:8px}
  .demo-topbar{top:12px;right:12px}
  .guide-panel{
    right:12px;
    bottom:12px;
    width:calc(100% - 24px);
    max-height:42vh;
    padding:18px 18px 15px;
    overflow:auto;
  }
  .guide-panel h2{font-size:16px}
  .guide-panel p{font-size:12px}
  .guide-actions{flex-direction:row}
  .guide-actions button{width:auto}
  .guide-progress-wrap{min-width:52px}
  .guide-progress{width:48px}
  .guide-actions .quiet-button,.guide-actions .primary-button{padding:0 9px;font-size:11px}
}

/* ガイドをクリック位置の横に吹き出しで出す（広い画面）。狭い画面は画面下に固定し、画像を拡大する */
.product-stage{position:relative}
.shot-viewport{position:relative;overflow:hidden}
.shot-screen{transform-origin:0 0;transition:transform .35s ease}
.shot-hotspot{
  outline-width:calc(3px / var(--zoom,1));
  box-shadow:0 0 0 calc(7px / var(--zoom,1)) rgba(81,131,202,.52),0 0 0 9999px rgba(24,33,48,.52);
}
.guide-arrow{display:none}
.guide-actions button{white-space:nowrap}
/* ボタンの文言が長いときは、進み具合を上の段に残してボタンを次の段へ送る（はみ出さない） */
.guide-actions{flex-wrap:wrap;row-gap:10px}
.guide-actions .guide-progress-wrap{flex-shrink:0}
@media(min-width:761px){
  .guide-panel{
    position:absolute;
    right:auto;
    bottom:auto;
    width:340px;
    visibility:hidden;
    transition:top .3s ease,left .3s ease;
  }
  .guide-panel.is-placed{visibility:visible}
  .guide-panel[data-place] .guide-arrow{
    display:block;
    position:absolute;
    width:14px;
    height:14px;
    background:#fff;
    transform:rotate(45deg);
  }
  .guide-panel[data-place="right"] .guide-arrow{left:-7px;top:calc(var(--arrow) - 7px);box-shadow:-2px 2px 3px rgba(24,33,48,.08)}
  .guide-panel[data-place="left"] .guide-arrow{right:-7px;top:calc(var(--arrow) - 7px);box-shadow:2px -2px 3px rgba(24,33,48,.08)}
  .guide-panel[data-place="bottom"] .guide-arrow{top:-7px;left:calc(var(--arrow) - 7px);box-shadow:-2px -2px 3px rgba(24,33,48,.06)}
  .guide-panel[data-place="top"] .guide-arrow{bottom:-7px;left:calc(var(--arrow) - 7px);box-shadow:2px 2px 3px rgba(24,33,48,.08)}
  .shot--phone{margin-bottom:24px}
}
@media(max-width:760px){
  .shot-screen{transition:none}
}

/* 入口ページへ戻るリンク（開始画面・完了画面） */
.start-back{display:block;width:fit-content;margin:0 auto 18px;color:rgba(255,255,255,.8);font-size:12px;text-decoration:none}
.start-back:hover{color:#fff;text-decoration:underline}
.completion-portal{display:block;margin-top:14px;color:var(--blue-deep);font-size:13px}

/* 入口ページ（site/index.html）：4 つのデモを選ぶ */
.portal .start-copy>p:not(.start-brand):not(.start-note){margin-bottom:0}
.portal-grid{width:min(880px,100%);margin:38px auto 0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.portal-card{display:flex;flex-direction:column;gap:8px;min-height:132px;padding:22px 22px 18px;color:#fff;text-decoration:none;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.32);border-radius:10px;transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}
.portal-card:hover,.portal-card:focus-visible{transform:translateY(-2px);color:var(--blue-deep);background:#fff;border-color:#fff;box-shadow:0 10px 26px rgba(24,33,48,.16)}
.portal-card strong{font-family:var(--font-serif);font-size:19px;font-weight:700;letter-spacing:.04em}
.portal-card strong em{margin-left:10px;padding:2px 8px;border-radius:99px;background:rgba(255,255,255,.2);font-family:var(--font-sans);font-size:11px;font-style:normal;font-weight:700;letter-spacing:0;vertical-align:middle}
.portal-card:hover strong em,.portal-card:focus-visible strong em{background:var(--blue-pale)}
.portal-card span{font-size:13px;line-height:1.7;opacity:.9}
.portal-card small{margin-top:auto;font-size:12px;font-weight:700}
.portal .start-note{margin-top:28px!important}
@media(max-width:760px){.portal-grid{grid-template-columns:1fr;margin-top:28px}.portal-card{min-height:auto}}

/* 縦長の書類（履歴書・証明書など）は 1 ページ全体が画面に収まる幅にする */
.shot--pdf.is-portrait{max-width:min(680px,100%)}

/* ハイライト枠（法人運営デモと同じ見た目・動き）。手順をまたいで 1 つの枠が次の対象へ滑る */
.tour-spot{
  position:fixed;z-index:35;border-radius:10px;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(24,33,48,.60);
  outline:2px solid rgba(255,255,255,.9);
  transition:top .4s cubic-bezier(.4,0,.2,1),left .4s cubic-bezier(.4,0,.2,1),width .4s cubic-bezier(.4,0,.2,1),height .4s cubic-bezier(.4,0,.2,1);
  animation:tourFade .25s ease both;
}
.tour-spot.is-tracking{transition:none}
.tour-spot::after{content:"";position:absolute;inset:-4px;border-radius:13px;box-shadow:0 0 0 3px rgba(81,131,202,.55);animation:tourPulse 2s ease-in-out infinite}
@keyframes tourPulse{0%,100%{box-shadow:0 0 0 3px rgba(81,131,202,.5)}50%{box-shadow:0 0 0 7px rgba(81,131,202,.12)}}
@keyframes tourFade{from{opacity:0}to{opacity:1}}
@keyframes tipIn{from{opacity:0}to{opacity:1}}
/* クリックできる範囲は画像の上に透明で重ねる（見た目は .tour-spot が受け持つ） */
.shot-hotspot{outline:none!important;box-shadow:none!important;background:transparent;animation:none!important;border-radius:10px}
.shot-hotspot:focus-visible{outline:3px solid #ef7c6e!important;outline-offset:2px}
/* 吹き出しは手順をまたいで表示したまま、枠と同じ速さで移動し、中身だけ出し直す */
.guide-panel{z-index:40}
@media(min-width:761px){.guide-panel{transition:top .4s cubic-bezier(.4,0,.2,1),left .4s cubic-bezier(.4,0,.2,1)}}
.guide-panel.is-refresh>*:not(.guide-arrow){animation:tipIn .28s ease both}
.demo-topbar{z-index:45}

/* ダイジェスト版と全手順の選択（開始画面） */
.start-meta{margin:14px auto 0!important;color:rgba(255,255,255,.8)!important;font-size:12px!important}
.start-full{padding:0;border:0;background:none;color:#fff;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
/* 「次へ」ボタンの矢印（法人運営デモと同じ） */
#guide-next::after{content:"→";margin-left:6px}
/* 完了画面の「あわせて見る」 */
.related{margin-top:30px;padding-top:24px;border-top:1px solid var(--line);text-align:left}
.related-title{margin:0 0 12px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.related-card{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;color:var(--ink);text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.related-card:hover,.related-card:focus-visible{transform:translateY(-2px);border-color:var(--blue);box-shadow:0 10px 24px rgba(45,71,100,.1)}
.related-card strong{font-family:var(--font-serif);font-size:15px}
.related-card span{color:var(--muted);font-size:12.5px;line-height:1.7}
.related-card em{margin-top:auto;color:var(--blue-deep);font-size:12px;font-style:normal;font-weight:700}
@media(max-width:760px){.related-grid{grid-template-columns:1fr}}

/* 開始画面・入口ページ：青い背景をやめ、完了画面と同じ明るい背景と白いカードにする（ボタンを見やすく） */
.chapter-start{background:var(--canvas);color:var(--ink);justify-content:center}
.start-card{width:min(860px,100%);margin:0 auto;padding:44px 48px 40px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);text-align:center}
.chapter-start .eyebrow{color:var(--blue-deep);background:var(--blue-pale)}
.start-brand{color:var(--ink)!important}
.start-brand span{color:#ef7c6e}
.chapter-start h1{color:var(--ink)}
.start-copy>p:not(.start-brand):not(.start-note):not(.start-meta){color:var(--muted)!important}
.chapter-start .start-all{color:#fff;background:var(--blue);border-color:var(--blue);box-shadow:0 8px 22px rgba(81,131,202,.35)}
.chapter-start .start-all:hover{background:var(--blue-deep)}
.start-note{color:#8b939e!important}
.start-meta{color:var(--muted)!important}
.start-full{color:var(--blue-deep)}
.start-back,.start-back:hover{color:var(--blue-deep)}
.chapter-prompt{margin:30px 0 12px;padding-top:24px;border-top:1px solid var(--line);color:#8b939e;font-weight:700}
.chapter-grid{width:100%}
.chapter-card{color:var(--ink);background:#f8fafc;border:1px solid var(--line);min-height:58px}
.chapter-card:hover,.chapter-card:focus-visible{color:var(--ink);background:#fff;border-color:var(--blue);box-shadow:0 10px 24px rgba(45,71,100,.1)}
.chapter-card .chapter-number{color:var(--blue);opacity:1}
.chapter-card small{color:var(--blue-deep)}
/* 入口ページのカード */
.portal-card{color:var(--ink);background:#f8fafc;border:1px solid var(--line)}
.portal-card:hover,.portal-card:focus-visible{color:var(--ink);background:#fff;border-color:var(--blue)}
.portal-card strong em,.portal-card:hover strong em,.portal-card:focus-visible strong em{background:var(--blue-pale);color:var(--blue-deep)}
.portal-card span{color:var(--muted);opacity:1}
.portal-card small{color:var(--blue-deep)}
.portal-grid{margin-top:30px}
@media(max-width:760px){.start-card{padding:30px 18px 26px}}
.start-brand{margin-left:auto!important;margin-right:auto!important}
@media(max-width:760px){.chapter-card small{display:inline;margin-top:0}}

/* TOP（入口ページ）はカードにせず、白い背景にそのまま並べる */
.portal{background:#fff}
.portal .start-card{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}

/* 完了画面：お問い合わせと「最初に戻る」を同じ大きさで並べる */
.completion-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.completion-actions .completion-cta{min-height:48px;padding:0 26px}
.home-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border:2px solid var(--blue);border-radius:8px;background:#fff;color:var(--blue-deep);font-size:14px;font-weight:800;text-decoration:none;transition:background .18s ease}
.home-button:hover,.home-button:focus-visible{background:var(--blue-pale)}
.completion .quiet-button{margin-top:14px}
@media(max-width:760px){.completion-actions{flex-direction:column}.completion-actions>*{width:100%}}
.portal .start-copy{margin:0 auto}
.completion .outcome-grid{margin-top:28px}

/* 章が4つあるデモは、章のカードと完了画面の章を 2 列 × 2 段で並べる */
@media(min-width:761px){
  .chapter-grid:has(>:nth-child(4)),.outcome-grid:has(>:nth-child(4)){grid-template-columns:repeat(2,1fr)}
}

/* デモの切り替え（開始画面・完了画面の上部）。「← デモ一覧」と各デモへのボタンを並べ、見ているデモは色付き */
.demo-switch{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:0 auto 22px}
.demo-switch a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:13px;font-weight:700;text-decoration:none;transition:border-color .18s ease,color .18s ease,background .18s ease}
.demo-switch a:hover,.demo-switch a:focus-visible{border-color:var(--blue);color:var(--blue-deep);outline:none}
.demo-switch a.is-current{background:var(--blue);border-color:var(--blue);color:#fff;cursor:default}
.demo-switch .demo-switch-home{border:1.5px solid var(--blue);color:var(--blue-deep)}
.demo-switch .demo-switch-home:hover,.demo-switch .demo-switch-home:focus-visible{background:var(--blue-pale)}
.completion .demo-switch{margin-bottom:26px}
@media(max-width:760px){.demo-switch{gap:6px}.demo-switch a{min-height:36px;padding:0 12px;font-size:12px}}
/* 完了画面の「ほかの機能のデモを見る」は、相談ボタンと同じ大きさの塗りボタン */
.completion .home-button{border-color:var(--ink);background:var(--ink);color:#fff}
.completion .home-button:hover,.completion .home-button:focus-visible{border-color:#000;background:#000;color:#fff}

/*
 * 画面の枠をそろえる（入口・開始画面・完了画面、法人運営デモも同じ値）。
 * 上部のデモ切り替えを押しても枠・文字・切り替えボタンの位置が動かないよう、
 * 枠は画面の上から 40px（スマホは 16px）に固定し、幅 860px・余白・文字の大きさを共通にする。
 * 開始画面の枠の高さも、章が 4 つある職員管理に合わせて全デモ同じにする。
 */
.chapter-start{justify-content:flex-start;padding:40px 24px 48px}
.start-card,.completion{box-sizing:border-box;width:min(860px,100%);max-width:none;padding:44px 48px 40px;border:1px solid var(--line);border-radius:18px}
@media(min-width:761px){.chapter-start:not(.portal) .start-card{min-height:672px}}
.portal .start-card{padding:44px 48px 40px;border:1px solid transparent}
.start-copy{max-width:760px;margin-left:auto;margin-right:auto}
.demo-switch{max-width:760px}
.chapter-card strong{font-size:13px}
/* 完了画面は撮影画像の台（.product-stage）の余白の内側にあるため、その分を差し引いて開始画面と同じ位置にする */
.completion{margin:24px auto 48px}
@media(max-width:760px){
  .chapter-start{padding:16px 16px 32px}
  .start-card,.completion,.portal .start-card{padding:30px 18px 26px}
  .completion{width:calc(100% - 16px);margin:8px auto 32px}
}

/*
 * 文字を大きく・濃く（利用者の中心は 40〜60 代）。本文 16px、ボタン 15px、注記 13px を基準にする。
 * 法人運営デモ（corporate-src/styles.css の末尾）も同じ値にしている。
 */
:root{--soft:#5f6874}
@media(min-width:761px){.guide-panel{width:380px}}
.guide-meta span{padding:4px 9px;font-size:12px;letter-spacing:.06em}
.guide-panel h2{margin:12px 0 8px;font-size:20px;line-height:1.5}
.guide-panel p{font-size:16px;line-height:1.8;color:#4a525c}
.guide-actions .quiet-button,.guide-actions .primary-button{min-height:44px;padding:0 16px;font-size:15px}
.guide-progress-wrap>span{color:var(--soft);font-size:13px}
.demo-switch a{font-size:15px}
.chapter-card strong{font-size:15px}
.chapter-prompt{color:var(--soft)!important;font-size:14px}
.start-note{color:var(--soft)!important;font-size:13px!important}
.start-copy>p:not(.start-brand):not(.start-note){font-size:16px}
.portal-card span{font-size:15px}
.portal-card small{font-size:15px}
.outcome-grid strong{font-size:16px}
.outcome-grid span{font-size:15px}
.related-title{font-size:14px!important;color:var(--soft)!important}
.related-card strong{font-size:17px}
.related-card span{font-size:15px}
.related-card em{font-size:15px}
.completion-actions .completion-cta,.completion .home-button{font-size:16px}
.completion .quiet-button{font-size:15px}
@media(max-width:760px){
  .guide-panel h2{font-size:18px}
  .guide-panel p{font-size:15px}
  .guide-actions .quiet-button,.guide-actions .primary-button{min-height:42px;padding:0 12px;font-size:14px}
  .demo-switch a{font-size:14px}
}
.demo-topbar .quiet-button{font-size:14px}

/* 「閉じる」：スマホで WordPress のページから画面いっぱいで開いたときだけ出す（shared/return.js が <html> に has-return を付ける） */
.demo-switch .demo-switch-close{display:none;gap:6px;color:var(--muted)}
.has-return .demo-switch .demo-switch-close{display:inline-flex}
