/* 志シートメーカー — 2026-10-12 isolated Preview UI. No clinic API or sessions. */
:root{--navy:#0a3470;--blue:#075ba9;--text:#214663;--line:#c7dff0;--muted:#5a7891;--bg:#f0f9ff;--orange:#f18c42}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--text);background:linear-gradient(180deg,#e8f7ff,#f6fbff 350px,#eef8ff);font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,system-ui,sans-serif;line-height:1.72}
button,input,select,textarea{font:inherit}
a{color:var(--blue)}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ff972f;outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0;z-index:20;background:#fff;padding:12px}.skip:focus{left:10px}
.preview-warning{background:#154d89;color:#fff;text-align:center;font-size:12px;font-weight:850;letter-spacing:.05em;padding:6px 12px}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:9px max(20px,calc((100vw - 1580px)/2));border-bottom:1px solid #cfdfed;background:#fff}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy);font-weight:950;font-size:19px}.brand img{display:block;width:84px;height:68px;object-fit:contain}.brand span{display:block}.brand small{display:block;font-size:13px;font-weight:750;color:#4377a1}
.site-header nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:16px}.site-header nav a{font-size:13px;font-weight:850;text-decoration:none}
.page-wrap{max-width:1590px;margin:0 auto;padding:30px clamp(15px,3vw,44px) 65px}
.intro{padding:14px 5px 30px}.eyebrow{margin:0;color:#1071c0;font-size:12px;font-weight:950;letter-spacing:.13em}
.intro h1{margin:8px 0 14px;color:var(--navy);font-size:clamp(30px,4.2vw,56px);line-height:1.35;letter-spacing:-.035em}.intro h1 span{color:#0b77bc}
.intro>p:not(.eyebrow){font-size:clamp(15px,1.42vw,18px);color:#3f6584;max-width:1110px;margin:0}.intro strong{color:#075ba9}
.intro-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.intro-tags span{font-size:12px;font-weight:850;border-radius:99px;background:white;color:#136aa4;border:1px solid #b9dcec;padding:5px 13px}
.workspace{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:start;gap:22px}
.editor-pane,.preview-pane{background:#fff;border:1px solid #c8dfef;border-radius:24px;box-shadow:0 14px 40px #124b7a0d;min-width:0}
.editor-pane{padding:clamp(19px,2.3vw,30px)}.pane-title{display:flex;justify-content:space-between;align-items:center;gap:14px}.pane-title h2,.preview-toolbar h2{margin:3px 0 0;color:var(--navy);font-size:clamp(22px,2.5vw,30px)}
.minutes{font-size:12px;color:#227e50;background:#e9faed;border-radius:99px;padding:7px 10px;font-weight:950;white-space:nowrap}
.pane-lead{margin:12px 0 23px;color:#52748e;font-size:14px}.pane-lead strong{color:#0b5eab}

/* Collapsible gallery of three original, fictional 志シート examples. */
.sample-explorer{margin:0 0 24px}
.sample-open{width:100%;display:flex;align-items:center;gap:12px;padding:14px 17px;text-align:left;color:#0b568f;background:linear-gradient(105deg,#ebf7ff,#fff8ee);border:1.5px solid #9bcced;border-radius:16px;box-shadow:0 3px 12px #164e8012}
.sample-open:hover{background:linear-gradient(105deg,#ddf0ff,#fff3dc);border-color:#50a2d5}
.sample-open-icon{font-size:26px;line-height:1}.sample-open-label{flex:1;font-size:17px;font-weight:950;line-height:1.4}
.sample-open-label small{display:block;font-weight:650;font-size:12px;color:#56798d;margin-top:3px}
.sample-open-arrow{font-size:28px;font-weight:850;transition:transform .15s ease;line-height:1}
.sample-open[aria-expanded="true"] .sample-open-arrow{transform:rotate(90deg)}
.sample-gallery{margin-top:11px;border:1px solid #c1dded;border-radius:16px;background:#f6fbff;padding:15px}
.sample-gallery[hidden],.sample-notice[hidden]{display:none!important}
.sample-intro{font-size:13px;line-height:1.7;color:#4b708e;margin:0 0 13px}
.sample-intro strong{color:#144e83}
.sample-cards{display:grid;gap:11px}
.sample-card{background:#fff;border:1px solid #c9dfef;border-left:5px solid #539acb;border-radius:13px;padding:15px;box-shadow:0 2px 8px #1549760a}
.sample-card.sample-nature{border-left-color:#48a67d}.sample-card.sample-ai{border-left-color:#e6a94b}
.sample-card-heading{display:flex;align-items:center;gap:10px}
.sample-emblem{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:none;font-size:25px;background:#eaf6ff}
.sample-nature .sample-emblem{background:#e8f9ec}.sample-ai .sample-emblem{background:#fff5dc}
.sample-age{font-size:11px;font-weight:850;color:#647e95;margin:0}
.sample-card h3{font-size:17px;color:#164878;line-height:1.45;margin:0}
.sample-quote{font-weight:850;color:#244563;font-size:14px;line-height:1.7;margin:12px 0 9px}
.sample-detail{font-size:12px;color:#526f86;line-height:1.7;margin:4px 0}
.sample-detail strong{color:#0b63a8;margin-right:5px}
.sample-apply{margin-top:12px;display:block;width:100%;min-height:44px;border:1px solid #3189bc;border-radius:999px;background:#1074ad;color:#fff;font-size:14px;font-weight:900;padding:10px 14px}
.sample-apply:hover{background:#075582}
.sample-disclaimer{font-size:11px;line-height:1.7;color:#617e94;margin:12px 2px 0}
.sample-notice{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;margin:10px 0 0;border:1px solid #94c9ae;border-radius:12px;background:#effaf2;padding:11px 13px;color:#176742;font-size:13px;font-weight:750}
.sample-notice a{font-weight:900;white-space:nowrap}
@media(max-width:520px){.sample-open{padding:12px}.sample-open-label{font-size:15px}.sample-open-label small{font-size:11px}.sample-gallery{padding:11px}.sample-card{padding:12px}.sample-card h3{font-size:16px}.sample-quote{font-size:13px}}
@media(prefers-reduced-motion:reduce){.sample-open-arrow{transition:none}}

.field-section{border:0;border-top:1px solid #e0edf6;padding:21px 0 7px;margin:0;min-width:0}.field-section legend{padding:5px 12px 5px 0;font-size:18px;font-weight:950;color:var(--navy)}.field-section legend span{display:inline-grid;place-items:center;border-radius:10px;width:32px;height:32px;background:#e6f4ff;color:#086ab4;margin-right:7px;font-size:13px}
.field{display:grid;gap:6px;margin-bottom:17px;min-width:0}.field>span,.field>label{font-size:14px;font-weight:850;color:#19558d}.field>span small{font-weight:550;color:#638197}
.field input,.field select,.field textarea{background:#fbfeff;border:1.5px solid #b7d2e6;border-radius:12px;padding:13px 14px;color:#183e60;font-size:16px;line-height:1.58;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.field input,.field select{min-height:53px}.field textarea{resize:vertical;min-height:78px}.field textarea::placeholder,.field input::placeholder{color:#809aaf;opacity:1}
.field-control{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.voice{justify-self:end;border:1px solid #9cc8e3;border-radius:999px;background:#fff;color:#0d61a6;min-height:38px;padding:4px 14px;font-size:12px;font-weight:900}.voice[aria-pressed="true"]{color:#b53963;background:#fff1f6;border-color:#e59db4}
.field-hint{color:#638098;margin:0 0 12px;font-size:12px;font-weight:550;line-height:1.6}
.two-fields,.three-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.three-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.suggest-button{margin:5px 0 4px;width:100%;min-height:44px;border:1px solid #eda64b;border-radius:999px;background:#fff9e9;color:#975809;padding:9px 12px;font-weight:900;font-size:14px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin:17px 0}.primary,.secondary,.danger{border-radius:99px;border:1px solid transparent;min-height:47px;padding:10px 18px;font-size:14px;font-weight:950;line-height:1.3}
.primary{color:#fff;background:#0967ba}.primary:hover{background:#064d8e}.secondary{background:#f1f9ff;border-color:#a6cce8;color:#0c67af}.danger{background:#fff;border-color:#ecbdc7;color:#a4364c}
.status{min-height:24px;color:#216e57;font-size:13px;font-weight:800}.privacy-note{padding:15px 16px;background:#f5faff;border:1px solid #d3e5f2;border-radius:14px;color:#507088;font-size:12px;line-height:1.9}.privacy-note strong{color:#20577e}
.preview-pane{position:sticky;top:12px;padding:18px;background:#eaf7ff;max-height:calc(100vh - 26px);overflow:auto;overscroll-behavior:contain}
.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.preview-toolbar h2{font-size:20px}.print-button{flex:none;font-size:12px;padding:10px 14px}
.sheet-scroll{width:100%;overflow-x:auto}
.sheet{width:100%;min-width:0;background:#fff;border:1px solid #add9f1;box-shadow:0 14px 35px #0b427329;color:#143c60;overflow:hidden}
.sheet-hero{position:relative;min-height:320px;overflow:hidden;padding:23px 23px 24px;background:linear-gradient(115deg,#fff 0 44%,#e4f7ff 100%)}
.sheet-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 14%,#ffd24a5e 0 4px,transparent 5px);background-size:60px 60px;pointer-events:none}
.sheet-title{position:relative;z-index:2;max-width:65%;line-height:1}.sheet-title span{display:block;color:#071d42;font-size:clamp(20px,2.1vw,32px);font-weight:950;letter-spacing:.02em}.sheet-title strong{display:block;color:#071d42;font-size:clamp(38px,4.25vw,64px);letter-spacing:-.055em}.sheet-title p{font-size:13px;margin:8px 0;color:#0754a3;font-weight:900;line-height:1.4}
.sheet-person{position:relative;z-index:4;display:flex;flex-wrap:wrap;gap:6px;max-width:67%;margin:15px 0 0}.sheet-person span{font-size:11px;font-weight:900;border:1px solid #b1d6ec;border-radius:99px;background:#fff;padding:4px 10px}
.sheet-agen{display:block;position:absolute;z-index:1;right:0;bottom:0;width:44%;height:83%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 6px 8px #22558a17)}
.sheet-mission{position:relative;z-index:3;width:68%;min-height:94px;margin-top:22px;padding:12px 16px;border-left:5px solid #f288ae;background:#fffffff2;box-shadow:0 5px 15px #113d5910}
.sheet-mission>span{font-size:12px;border-radius:99px;padding:3px 10px;background:#f08baa;color:#fff;font-weight:950}
.sheet-mission h3{font-size:clamp(17px,1.75vw,24px);line-height:1.43;margin:5px 0 0;color:#152c4b;white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px}
.sheet-card{border:1.5px solid #c4e0f2;border-radius:14px;padding:12px 13px;min-width:0;background:#fff}
.sheet-card h4{display:inline-block;margin:0 0 10px;background:#1268a8;border-radius:99px;padding:4px 11px;color:#fff;font-size:13px;line-height:1.28;font-weight:950}
.sheet-card h4 small{font-weight:650;font-size:10px;display:block;line-height:1.4}
.sheet-card p{margin:0;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-card.about h4{background:#e68a38}.sheet-card.future h4{background:#8054a8}.sheet-card.challenge h4{background:#1386af}.sheet-card.words h4{background:#1c75b9}
.sheet-card dl{margin:0;display:grid;gap:6px}.sheet-card dl>div{min-width:0;padding:5px 7px;background:#f4faff;border-radius:7px}.sheet-card dt{font-size:10px;color:#0e619a;font-weight:950}.sheet-card dd{margin:0;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-card.about dl{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-card.about dl>div{background:#fffaf1}
.sheet-card.about dt{color:#b86736}.sheet-card.strength ol{padding:0;margin:0;list-style:none;display:grid;gap:7px}.sheet-card.strength li{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:750}.sheet-card.strength li b{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;flex:none;color:#fff;background:#439dd0;font-size:11px}.sheet-card.strength li:nth-child(2) b{background:#66b469}.sheet-card.strength li:nth-child(3) b{background:#f0b943}
.word-cloud{display:flex;gap:7px;flex-wrap:wrap}.word-cloud span{padding:5px 10px;background:#fff5fb;border:1.5px solid #efbbd0;border-radius:99px;font-size:11px;font-weight:900;overflow-wrap:anywhere}.word-cloud span:nth-child(2){background:#fffce9;border-color:#f0db9b}.word-cloud span:nth-child(3){background:#eaf8ff;border-color:#a6d7ed}
.sheet-card .msg-label{margin:11px 0 8px;background:#1c75b9}
.sheet-footer{padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f6fcff;border-top:1px solid #cce7f5;color:#0b5899}.sheet-footer strong{font-size:15px}.sheet-footer span{font-size:10px;font-weight:800}
.preview-value[data-empty="true"]{color:#8a9fae;font-style:italic}
.preview-note{font-size:11px;color:#4f7796;text-align:center;margin:10px 6px 0}
.site-footer{background:#102f56;color:#ebf7ff;padding:23px clamp(15px,4vw,60px);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:12px}.site-footer a{color:#fff}
@media(max-width:1120px){.workspace{grid-template-columns:minmax(0,1fr)}.preview-pane{position:static;max-height:none;overflow:visible}.preview-toolbar h2{font-size:23px}.sheet{max-width:800px;margin:0 auto}.sheet-hero{min-height:350px}.sheet-title strong{font-size:62px}}
@media(max-width:720px){.site-header{padding:9px 14px}.brand{font-size:15px}.brand img{width:66px;height:55px}.site-header nav{gap:9px}.site-header nav a{font-size:11px}.page-wrap{padding:19px 12px 40px}.intro h1{font-size:30px}.intro>p:not(.eyebrow){font-size:14px}.intro br{display:none}.editor-pane,.preview-pane{border-radius:16px}.editor-pane{padding:16px}.minutes{font-size:10px}.pane-title h2{font-size:23px}.three-fields{grid-template-columns:1fr}.preview-pane{padding:10px}.preview-toolbar{flex-wrap:wrap}.preview-toolbar h2{font-size:19px}.sheet-hero{min-height:310px;padding:16px}.sheet-title span{font-size:19px}.sheet-title strong{font-size:40px}.sheet-title p{font-size:11px}.sheet-agen{width:41%;height:78%}.sheet-mission{width:70%;margin-top:18px;padding:10px 11px}.sheet-mission h3{font-size:18px}.sheet-grid{grid-template-columns:minmax(0,1fr);gap:8px;padding:8px}.sheet-card{padding:13px}.sheet-card h4{font-size:14px}.sheet-card p,.sheet-card dd{font-size:13px}.sheet-card dt{font-size:11px}.sheet-footer{align-items:flex-start;flex-direction:column}.site-footer{flex-direction:column}}
@media(max-width:390px){.two-fields{grid-template-columns:1fr}.site-header nav a:last-child{display:none}.sheet-title strong{font-size:34px}.sheet-title span{font-size:16px}.sheet-hero{min-height:300px}.sheet-mission{width:75%}.actions button{width:100%}.preview-toolbar .print-button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@page{size:A4 portrait;margin:0}
@media print{
  *,*::before,*::after{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  html,body{margin:0!important;padding:0!important;background:#fff!important;width:210mm!important;min-height:0!important;overflow:hidden!important}
  .skip,.preview-warning,.site-header,.intro,.editor-pane,.preview-toolbar,.preview-note,.site-footer{display:none!important}
  .page-wrap,.workspace,.preview-pane,.sheet-scroll{display:block!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;max-width:none!important;max-height:none!important;overflow:visible!important}
  .sheet{width:198mm!important;height:285mm!important;min-height:285mm!important;max-height:285mm!important;margin:6mm auto!important;border:0!important;box-shadow:none!important;display:grid!important;grid-template-rows:64mm minmax(0,1fr) 10mm!important;overflow:hidden!important}
  .sheet-hero{height:64mm!important;min-height:0!important;max-height:64mm!important;padding:5mm 7mm!important}
  .sheet-title{max-width:57%!important}.sheet-title span{font-size:6mm!important}.sheet-title strong{font-size:13mm!important;letter-spacing:-.05em}.sheet-title p{font-size:3mm!important;margin-top:1mm}
  .sheet-person{margin-top:2mm;max-width:57%}.sheet-person span{font-size:2.5mm;padding:1mm 2mm}
  .sheet-agen{right:1mm;width:42%!important;height:94%!important}
  .sheet-mission{position:absolute!important;top:30mm!important;left:5mm!important;width:57%!important;min-height:0!important;max-height:30mm!important;overflow:hidden!important;margin:0!important;padding:2.5mm 3mm!important;border-left-width:1.4mm!important;box-shadow:none!important}
  .sheet-mission>span{font-size:2.65mm;padding:.5mm 2mm}.sheet-mission h3{font-size:3.9mm!important;line-height:1.28!important;margin-top:1mm}
  .sheet-grid{display:grid!important;min-height:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:2mm!important;padding:2.2mm!important;overflow:hidden!important}
  .sheet-card{padding:2.5mm 2.8mm!important;min-height:0!important;overflow:hidden!important;border-radius:3mm!important}
  .sheet-card h4{font-size:3mm!important;line-height:1.16!important;padding:1mm 2mm!important;margin-bottom:1.5mm!important}.sheet-card h4 small{font-size:2mm!important}
  .sheet-card p{font-size:2.55mm!important;line-height:1.36!important}
  .sheet-card dt{font-size:2.2mm!important}.sheet-card dd{font-size:2.5mm!important;line-height:1.3!important}
  .sheet-card dl{gap:1.3mm!important}.sheet-card dl>div{padding:1mm 1.4mm!important}
  .sheet-card.about dl{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sheet-card.strength ol{gap:1.7mm!important}.sheet-card.strength li{font-size:2.55mm!important;gap:1.5mm!important}.sheet-card.strength li b{width:6mm!important;height:6mm!important;font-size:2.1mm!important}
  .word-cloud{gap:1.1mm!important}.word-cloud span{padding:1mm 1.8mm!important;font-size:2.45mm!important}.sheet-card .msg-label{margin-top:2.1mm!important;margin-bottom:1.3mm!important}
  .sheet-footer{height:10mm!important;padding:1.8mm 4mm!important}.sheet-footer strong{font-size:3.25mm!important}.sheet-footer span{font-size:2.4mm!important}
  .sheet,.sheet-hero,.sheet-grid,.sheet-card,.sheet-footer{break-inside:avoid!important;page-break-inside:avoid!important}
}


/* Future AI illustration handoff; six A4 profile cards stay unchanged. */
.future-image-panel{margin:0 0 24px;padding:18px;border:1.5px solid #abd3e9;background:linear-gradient(120deg,#f4faff,#fffdf6);border-radius:17px}
.future-image-heading h3{margin:3px 0 8px;color:#0a3470;font-size:19px;font-weight:950}
.future-image-explainer{color:#4b708a;font-size:13px;line-height:1.7;margin:0 0 12px}
.future-image-preview-box{min-height:130px;display:flex;align-items:center;justify-content:center;padding:12px;border:1px dashed #a8d0e6;background:#fff;border-radius:13px;text-align:center}
.future-image-preview-box img{display:block;max-width:100%;max-height:290px;object-fit:contain;border-radius:9px}
.future-image-preview-box img[hidden],.sheet-future-visual[hidden],.future-image-remove[hidden]{display:none!important}
.future-image-preview-box p{max-width:330px;font-size:13px;line-height:1.8;color:#58778b;margin:10px}
.future-image-controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.future-image-start,.future-image-remove{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:45px;border-radius:99px;padding:10px 15px;font-weight:900;font-size:13px;text-decoration:none}
.future-image-start{background:#0a74b7;color:#fff;border:1px solid #0a74b7}
.future-image-start:hover{background:#07558a;color:#fff}
.future-image-remove{background:#fff;color:#a34352;border:1px solid #e3b1bb}
.future-image-status{font-size:12px;color:#1e6b54;font-weight:750;min-height:0;margin:9px 1px 0}
.sheet-hero.has-future-image .sheet-agen{display:none}
.sheet-future-visual{position:absolute;right:0;bottom:0;z-index:2;width:44%;height:84%;margin:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.sheet-future-visual img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.sheet-future-visual figcaption{position:absolute;right:5px;bottom:4px;background:#ffffffe8;border-radius:99px;padding:3px 7px;color:#115f9f;box-shadow:0 2px 8px #103d5930;font-size:10px;font-weight:900;letter-spacing:.04em}
@media(max-width:720px){.future-image-panel{padding:13px}.future-image-controls{flex-direction:column}.future-image-start,.future-image-remove{width:100%}.sheet-future-visual{width:41%;height:78%}}
@media print{
  .sheet-future-visual{right:1mm!important;bottom:0!important;width:42%!important;height:94%!important;display:flex!important}
  .sheet-future-visual[hidden]{display:none!important}
  .sheet-future-visual img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
  .sheet-future-visual figcaption{right:1.2mm!important;bottom:1mm!important;font-size:2mm!important;padding:.5mm 1mm!important}
}
