:root{font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;color:#343239;background:#fffbfc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper:#fff;--cream:#fffbfc;--surface:#fff4f7;--pink:#f5c5d5;--pink-light:#fff0f5;--pink-deep:#a83d65;--pink-mid:#d991aa;--text:#343239;--muted:#70666e;--line:#ebdfe5;--shadow:0 18px 55px rgba(103,57,74,.075);--shadow-sm:0 5px 21px rgba(103,57,74,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:104px}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}svg{display:block}a{color:var(--pink-deep)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:3px solid #9e3f68;outline-offset:3px;border-radius:5px}.shell{width:min(1150px,calc(100% - 48px));margin-inline:auto}.ico{width:20px;height:20px;flex-shrink:0}.skip-link{position:absolute;left:10px;top:-100px;z-index:10000;padding:12px 18px;background:white}.skip-link:focus{top:10px}.boot{text-align:center;padding:30vh 24px}.boot strong{color:var(--pink-deep);font-size:30px}.boot p{color:var(--muted)}
.site-header{background:rgba(255,251,252,.96);border-bottom:1px solid rgba(222,199,208,.65);position:sticky;top:0;z-index:30;backdrop-filter:blur(20px)}.nav-wrap{min-height:85px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{border:none;background:none;display:flex;gap:12px;align-items:center;padding:0;text-align:left;color:var(--text)}.brand-mark{width:45px;height:45px;border-radius:15px;display:grid;place-items:center;background:#f7cfdd;color:var(--pink-deep);box-shadow:inset 0 0 0 1px rgba(168,61,101,.12)}.brand-mark .ico{width:25px;height:25px;stroke-width:1.7}.brand-word{display:flex;flex-direction:column;gap:1px}.brand-word strong{font-size:23px;letter-spacing:.025em;font-weight:800}.brand-word small{font-size:9px;letter-spacing:.09em;color:#8a777d}.desktop-nav{display:flex;gap:6px;align-items:center;margin-left:auto}.nav-link{padding:12px 14px;border:none;background:none;font-size:13px;font-weight:700;color:#68606a;border-radius:12px;white-space:nowrap}.nav-link:hover,.nav-link.active{background:#faedf2;color:#a13c62}.nav-side{display:flex;align-items:center;gap:12px}.tiny-free{white-space:nowrap;font-size:11px;font-weight:700;color:#ae6880}.top-sheet{border:1px solid #edbcd0;background:#fff;border-radius:12px;color:#98385c;font-size:12px;font-weight:700;padding:11px 13px;display:flex;align-items:center;gap:6px;white-space:nowrap}.top-sheet .ico{width:16px;height:16px}.top-sheet:hover{background:#fff1f6}
.hero{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:15px;min-height:540px;padding-top:46px;padding-bottom:46px}.hero-text{position:relative;z-index:1}.eyebrow,.section-kicker{font-size:11px;font-weight:800;letter-spacing:.15em;color:var(--pink-deep)}.hero h1{font-size:clamp(37px,4.25vw,58px);line-height:1.48;letter-spacing:.025em;margin:16px 0 18px;font-weight:800}.hero h1 em{color:var(--pink-deep);font-style:normal;box-shadow:inset 0 -.20em #f9dbe5}.hero-lead{font-size:15px;line-height:2.08;color:#625d64;max-width:515px;margin:0 0 21px}.hero-chips{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:29px}.hero-chips span{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#6a5862;font-weight:700}.hero-chips .ico{width:16px;height:16px;color:var(--pink-deep)}.btn{border:none;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:800;padding:15px 22px;min-height:48px;transition:transform .15s,box-shadow .15s,background .15s;text-decoration:none}.btn:not(:disabled):hover{transform:translateY(-1px)}.btn .ico{width:18px;height:18px}.btn-primary{background:var(--pink-deep);color:#fff;box-shadow:0 7px 17px rgba(168,61,101,.2)}.btn-primary:hover{background:#8e3154}.btn-large{font-size:15px;min-height:56px;padding:16px 24px;border-radius:14px}.btn-light{background:#fff;color:var(--pink-deep)}.btn-outline{background:#fff;color:var(--pink-deep);border:1px solid #dfb4c4}.btn-soft{background:#fff0f5;color:var(--pink-deep)}.btn-full{width:100%}.hero-note{font-size:11px;color:#907f89;margin:12px 0 0}.hero-visual{position:relative}.hero-scene{width:100%;height:auto;filter:drop-shadow(0 18px 30px rgba(151,71,102,.08))}.svg-title{font-size:16px;font-weight:800;fill:#654a56}.svg-kicker{font-size:10px;font-weight:800;letter-spacing:1.5px;fill:#b57e96}.float-label{position:absolute;padding:13px 18px;display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #f2dce4;border-radius:16px;box-shadow:var(--shadow);font-size:12px;font-weight:800;color:#88576d;z-index:2}.float-label .ico{height:16px;width:16px;color:#c96888}.float-top{top:5%;right:-2%}.float-bottom{bottom:4%;left:1%}
.choose-section{background:linear-gradient(180deg,#fff6f9 0%,#fff9fb 100%);padding:65px 0 72px;border-block:1px solid #fae5ec}.section-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:27px}.section-head h2{font-size:clamp(24px,2.8vw,33px);line-height:1.5;letter-spacing:.01em;margin:6px 0 7px}.section-head p{font-size:14px;color:#7d727a;line-height:1.75;margin:0}.soft-guide{background:#fff;padding:9px 15px;border-radius:30px;border:1px solid #f1dce3;color:#ad6480;font-size:11px;font-weight:800;white-space:nowrap}.stage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.stage-card{min-height:188px;padding:21px 17px;border:2px solid #f0e5e9;border-radius:19px;background:#fff;text-align:left;display:flex;flex-direction:column;align-items:flex-start;position:relative;gap:18px;box-shadow:var(--shadow-sm);transition:border .18s,transform .18s,box-shadow .18s}.stage-card:hover{transform:translateY(-3px);border-color:#ecc5d3;box-shadow:0 14px 24px rgba(124,68,90,.11)}.stage-card.selected{border-color:#b44c72;background:#fff8fa;box-shadow:0 0 0 2px rgba(180,76,114,.08)}.stage-icon{height:53px;width:53px;border-radius:16px;background:#fff0f5;color:#bc6987;display:grid;place-items:center}.stage-icon .ico{width:27px;height:27px;stroke-width:1.7}.stage-1{background:#ebf5f8;color:#6a9cad}.stage-2{background:#eaf5f1;color:#6b9e8d}.stage-3{background:#fff4df;color:#c19c60}.stage-card-text{display:flex;flex-direction:column;gap:8px}.stage-card strong{font-size:14px;font-weight:800;line-height:1.5;color:#494047}.stage-card small{font-size:11px;color:#827681;line-height:1.5}.stage-arrow{position:absolute;right:17px;top:35px;color:#c792a6;width:17px}.topic-section{margin-top:58px;padding-top:10px;scroll-margin-top:95px}.topic-section:not(.revealed){opacity:.66}.section-head.compact{margin-bottom:20px}.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.topic-card{min-height:145px;border:1.5px solid #eadde3;border-radius:16px;padding:17px;background:#fff;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;color:var(--text)}.topic-card:not(:disabled):hover{border-color:#d995af}.topic-card.selected{border:2px solid var(--pink-deep);background:#fff5f8}.topic-icon{width:37px;height:37px;border-radius:12px;display:grid;place-items:center;background:#ffedf3;color:#b55578;margin-bottom:3px}.topic-card strong{font-size:13px}.topic-card small{font-size:11px;color:var(--muted);line-height:1.5}.topic-next{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:23px}.step-help{display:flex;align-items:center;gap:7px;font-size:12px;color:#826b78}.step-help .ico{width:16px;height:16px;flex:none}.features{padding-top:80px;padding-bottom:87px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.feature-card{overflow:hidden;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm)}.feature-art{height:200px;display:grid;place-items:center;position:relative}.feature-art>.ico{height:108px;width:108px;stroke-width:1;filter:drop-shadow(0 9px 11px rgba(105,57,77,.1))}.feature-art-a{background:#fff0f5;color:#bd7391}.feature-art-b{background:#edf7f4;color:#91b7a7}.feature-art-c{background:#fff1e5;color:#c99f80}.mini-bubble{position:absolute;top:40px;right:30%;background:#fff;color:#a13d63;border-radius:50%;height:34px;width:34px;display:grid;place-items:center;font-size:16px;font-weight:800;box-shadow:var(--shadow-sm)}.feature-copy{padding:27px 26px 31px}.feature-no{font-size:11px;letter-spacing:.12em;color:#bb8198;font-weight:900}.feature-copy h3{font-size:20px;margin:8px 0 9px}.feature-copy p{font-size:13px;line-height:1.9;color:#706671;min-height:73px;margin:0 0 20px}.text-btn{background:none;border:none;padding:0;color:var(--pink-deep);font-size:13px;font-weight:800;display:inline-flex;align-items:center;gap:6px;text-decoration:none}.text-btn .ico{width:17px;height:17px}.text-btn:hover{text-decoration:underline}.closer{background:#b45a7a;color:#fff;overflow:hidden}.closer-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:310px;gap:70px;padding:43px 60px}.closer .section-kicker{color:#ffdbeb}.closer h2{margin:12px 0;font-size:30px;line-height:1.55}.closer p{font-size:13px;line-height:1.95;color:#fff5fa;max-width:480px;margin-bottom:23px}.paper-peek{transform:rotate(5deg) translateY(25px);width:280px;min-height:340px;margin:0 auto -90px;background:#fff;border-radius:8px;padding:30px 27px;color:#4b434a;box-shadow:0 20px 36px rgba(59,29,44,.2)}.paper-title{font-size:15px;font-weight:900}.paper-mini-sub{font-size:9px;color:#7c7079;margin:7px 0 25px}.paper-line{display:flex;gap:11px;align-items:center;margin-bottom:18px;color:#b5597c}.paper-line i{display:block;width:85%;height:5px;background:#eee5e9;border-radius:4px}.paper-mini-box{padding:13px;background:#fff0f5;border-radius:8px;color:#a54b6d;font-size:10px;margin-top:26px}
.page-heading{padding-top:56px;padding-bottom:33px}.page-heading h1{font-size:clamp(27px,3.5vw,41px);line-height:1.5;margin:8px 0 8px}.page-heading p{font-size:14px;line-height:1.85;color:var(--muted);margin:0;max-width:820px}.back-link{display:inline-flex;align-items:center;gap:6px;color:var(--pink-deep);background:none;border:none;font-weight:800;font-size:12px;padding:0;margin-bottom:23px}.back-link .ico{width:17px}.page-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.result-progress{display:grid;place-items:center;min-width:110px;min-height:92px;border-radius:18px;background:#fff0f5;border:1px solid #f0d9e2}.result-progress strong{font-size:28px;color:var(--pink-deep);line-height:1}.result-progress strong span{font-size:15px;color:#876a7a}.result-progress small{font-size:11px;color:#896879}.guide-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr);align-items:start;gap:28px;padding-bottom:90px}.notice-callout{border:1px solid #f2d6e1;background:#fff4f7;border-radius:14px;padding:17px;display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.8;color:#704f5b;margin-bottom:18px}.notice-callout .ico{color:#ad5478;flex-shrink:0}.notice-callout.subtle{margin:20px 0 0}.task-list{display:grid;gap:13px}.task-card{display:flex;gap:18px;background:#fff;border:1px solid #ecdee5;border-radius:18px;padding:22px;box-shadow:var(--shadow-sm)}.task-card.is-done{background:#fcfbfc}.task-check{position:relative;flex:none;cursor:pointer;align-self:flex-start;margin-top:6px}.task-check input{position:absolute;inset:0;opacity:0;width:26px;height:26px;cursor:pointer}.check-visual{height:26px;width:26px;border:2px solid #d7abbc;border-radius:8px;display:grid;place-items:center;background:#fff;color:transparent}.check-visual .ico{height:18px;width:18px}.task-check input:checked+.check-visual{background:#a83d65;color:white;border-color:#a83d65}.task-check input:focus-visible+.check-visual{outline:3px solid var(--pink-deep);outline-offset:4px}.task-content{flex:1;min-width:0}.task-top{display:flex;gap:8px;align-items:center;margin-bottom:8px}.task-index,.evidence-badge{font-size:10px;font-weight:800;background:#f9e8ee;color:#a74f70;border-radius:6px;padding:4px 7px}.evidence-badge{background:#e9f4ef;color:#447a68}.task-card h3{font-size:17px;line-height:1.5;margin:0 0 9px}.task-card.is-done h3{color:#8b7b82}.task-content>p{font-size:13px;color:#736a71;line-height:1.8;margin:0 0 14px}.ask-inline{background:#fcf6f8;border-radius:12px;padding:12px 14px}.ask-inline>span{font-size:11px;font-weight:800;color:#9e5471;display:flex;align-items:center;gap:6px}.ask-inline .ico{width:15px;height:15px}.ask-inline p{margin:7px 0;font-size:12px;line-height:1.8}.ask-inline small{font-size:11px;color:#86747e}.source-link{margin-top:12px;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;text-decoration:none;color:#9c486b;line-height:1.6}.source-link .ico{width:15px;height:15px}.source-link:hover{text-decoration:underline}.guide-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.guide-aside{position:sticky;top:103px}.aside-card{background:white;border:1px solid var(--line);padding:22px;border-radius:19px;box-shadow:var(--shadow-sm)}.aside-card h3{font-size:15px;margin:0 0 10px;display:flex;gap:8px;align-items:center}.aside-card h3 .ico{color:#ae6680}.aside-card>p{font-size:12px;line-height:1.85;color:var(--muted);margin:0 0 14px}.divider-line{height:1px;background:var(--line);margin:23px 0}.context-panel{border-radius:12px;background:#fff5f8;border:1px solid #f0d9e2}.context-panel summary{display:flex;align-items:center;gap:7px;padding:13px;font-size:12px;color:#9e4164;font-weight:800;cursor:pointer;list-style:none;flex-wrap:wrap}.context-panel summary::-webkit-details-marker{display:none}.context-panel summary>span{display:block;width:100%;margin-left:25px;color:#907985;font-size:10px;font-weight:500}.context-panel summary>.ico:first-child{width:17px}.context-panel summary>.ico:last-child{margin-left:auto;width:16px}.context-body{padding:4px 13px 15px}.field-label{font-size:12px;color:#655760;font-weight:800;display:block;margin:12px 0 7px}.select{width:100%;border-radius:10px;background:#fff;border:1px solid #ddd0d6;color:#4d4148;min-height:43px;padding:9px 11px;font-size:12px}.check-group{display:grid;gap:12px;margin-top:16px}.check-group label,.save-check{display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.6;cursor:pointer}.check-group input,.save-check input{accent-color:#a83d65;width:17px;height:17px;flex:none}.fine-print{font-size:11px;color:#8c7a83;line-height:1.7}.aside-help{display:flex;align-items:flex-start;gap:10px;padding:17px 8px}.aside-help>.ico{color:#9b8b93;flex:none}.aside-help p{margin:0;font-size:11px;color:#8c7982;line-height:1.75}
.diagrams-wrap{padding-bottom:88px}.diagram-selector{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:20px}.diagram-tab{min-height:91px;border:1px solid #ebdce2;background:#fff;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:9px;color:#6e5b66}.diagram-tab strong{font-size:14px}.diagram-tab small{font-size:11px}.diagram-tab.selected{border:2px solid var(--pink-deep);background:#fff0f5;color:#9a3c5e}.diagram-panel{background:white;border:1px solid var(--line);border-radius:23px;padding:24px 35px 37px;box-shadow:var(--shadow-sm)}.diagram-panel-header h2{font-size:23px;margin:5px 0 18px}.diagram-stage{border-radius:18px;background:linear-gradient(145deg,#fff8fa 0%,#fff 55%,#fbf4f5 100%);border:1px solid #f1e3e9;padding:14px;overflow:hidden}.diagram-stage svg{width:100%;max-height:440px;height:auto}.diagram-kicker{fill:#ae8094;font-size:12px;letter-spacing:.02em}.diagram-label{fill:#5c4a53;font-size:17px;font-weight:800}.diagram-large-number{fill:#a04b6c;font-size:30px;font-weight:800}.diagram-muted{fill:#82707c;font-size:12px}.diagram-header{fill:#65515b;font-size:21px;font-weight:800}.diagram-tip{font-size:13px;line-height:1.9;color:#786d74;padding:6px 2px}.stage-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:19px}.mini-route{display:flex;align-items:center;gap:9px;border:1px solid #ead8df;background:#fff;padding:12px 9px;border-radius:12px;color:#655461;text-align:left;font-size:12px;font-weight:800}.mini-route span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#ad5b7b;background:#fff0f5;flex-shrink:0}.mini-route .ico{width:17px;height:17px}.mini-route>.ico:last-child{margin-left:auto;width:14px}.mini-route:hover{background:#fff6f9}.packing-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.pack-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #efdee5;border-radius:13px;padding:12px;background:#fff;min-width:0}.pack-item-name{display:flex;align-items:center;gap:10px;min-width:0}.pack-item-name>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.pack-item-name strong{font-size:12px;line-height:1.5}.pack-item-name small{font-size:10px;color:#897680;line-height:1.5}.pack-dot{display:grid;place-items:center;background:#fff0f5;border-radius:10px;color:#aa5c7b;flex:none;width:33px;height:33px}.pack-dot .ico{width:17px;height:17px}.pack-select{width:117px;min-width:112px;height:42px;font-size:11px;padding-inline:7px}.diagram-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}.info-tile{padding:20px;background:#fff8fa;border:1px solid #f1e0e8;border-radius:14px}.info-tile strong{font-size:15px}.info-tile p{font-size:12px;line-height:1.8;color:var(--muted)}.room-map{cursor:pointer;transition:opacity .15s}.room-map:hover{filter:brightness(.98)}.room-map.active rect:first-child{stroke:#b65378;stroke-width:4}.room-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.room-tab{border:1px solid #e6d2db;border-radius:30px;padding:10px 16px;background:#fff;font-size:12px;font-weight:700;color:#695d65}.room-tab.selected{background:#a83d65;border-color:#a83d65;color:#fff}.room-result{display:flex;align-items:flex-start;gap:15px;border-radius:15px;background:#fff5f8;border:1px solid #f1d8e2;margin-top:19px;padding:19px}.room-result-mark{flex-shrink:0;height:42px;width:42px;display:grid;place-items:center;border-radius:12px;background:white;color:#ae5b7b}.room-kicker{font-size:11px;color:#ad6782;font-weight:800}.room-result h3{font-size:21px;margin:4px 0 8px}.room-result p{font-size:13px;color:#675a62;line-height:1.8;margin:0 0 10px}.room-ask{font-size:12px;background:#fff;padding:12px;border-radius:10px;line-height:1.9;margin-bottom:9px}.room-ask strong{font-weight:700}.room-result small{display:block;color:#796a72;margin-bottom:12px}.diagram-bottom{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:25px 2px}.diagram-bottom p{font-size:13px;line-height:1.8;color:#776972}
.scheme-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.75fr);gap:25px;align-items:start;padding-bottom:90px}.scheme-card{background:#fff;border:1px solid #ebdce3;border-radius:15px;overflow:hidden;margin-bottom:12px;box-shadow:var(--shadow-sm)}.scheme-toggle{display:flex;justify-content:space-between;align-items:center;gap:15px;background:transparent;border:none;padding:23px 22px;text-align:left;width:100%;color:#3f343b}.scheme-toggle>span{display:grid;gap:6px}.scheme-toggle small{font-size:11px;color:#b06281;font-weight:800}.scheme-toggle strong{font-size:18px}.scheme-toggle .ico{transition:transform .2s;color:#ac6984}.scheme-toggle .ico.rotate{transform:rotate(180deg)}.scheme-content{padding:0 22px 23px}.scheme-content>p{font-size:13px;line-height:1.9;color:#71636d;border-top:1px solid var(--line);padding-top:18px}.scheme-content>div{margin-top:13px}.detail-label{font-size:12px;font-weight:800}.scheme-content>div>p{font-size:12px;line-height:1.8;color:#736870;margin:7px 0}.scheme-action{background:#f0f8f5;border-radius:12px;padding:12px}.scheme-action span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#357d6d}.scheme-action .ico{height:17px;width:17px}.scheme-caution{display:flex;align-items:flex-start;gap:9px;color:#805c47;background:#fff8ec;border-radius:10px;padding:11px}.scheme-caution .ico{height:17px;width:17px;flex:none}.scheme-caution p{margin:0!important}.scheme-side{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;position:sticky;top:106px}.scheme-side h3{font-size:16px;margin:0 0 8px}.scheme-side p{font-size:12px;line-height:1.8;color:#766972}.source-stack{display:grid;gap:1px;margin-top:15px}.source-stack a{border-bottom:1px solid var(--line);padding:12px 0;display:grid;grid-template-columns:1fr auto;gap:4px;color:#74656f;text-decoration:none;font-size:10px}.source-stack a strong{grid-column:1;font-size:12px;color:#8d4a66}.source-stack a .ico{grid-column:2;grid-row:1/3;width:15px;height:15px;align-self:center}.source-stack a:hover strong{text-decoration:underline}.scheme-side .verified{font-size:11px;color:#9b8491}
.sheet-layout{display:grid;grid-template-columns:292px minmax(0,1fr);gap:27px;align-items:start;padding-bottom:92px}.sheet-settings{background:white;border:1px solid var(--line);padding:21px;border-radius:17px;position:sticky;top:104px;box-shadow:var(--shadow-sm)}.settings-block{padding-bottom:19px;margin-bottom:19px;border-bottom:1px solid var(--line)}.settings-block h3{font-size:15px;margin:0 0 10px}.settings-block>p{font-size:12px;color:var(--muted);line-height:1.75}.settings-block .btn{margin-top:11px;padding:12px 10px;font-size:12px}.save-check{margin-top:16px}.text-danger{border:none;background:none;display:inline-flex;align-items:center;gap:7px;color:#ab365c;font-size:11px;font-weight:800;padding:10px 0 0}.text-danger .ico{width:14px;height:14px}.sheet-preview{background:#f8f0f4;border:1px solid #efe4e8;border-radius:17px;padding:22px;overflow:hidden}.preview-label{display:block;font-size:11px;color:#856e7a;font-weight:700;margin:0 0 13px;text-align:center}.print-sheet{width:100%;max-width:680px;min-height:770px;background:#fff;color:#2b292c;margin:0 auto;padding:38px 43px 35px;box-shadow:0 16px 40px rgba(83,46,61,.14);font-size:12px}.sheet-brand{display:flex;align-items:center;gap:13px;color:#a83d65;font-size:17px;font-weight:800}.sheet-brand small{color:#8b7980;font-size:9px;font-weight:400}.print-title{font-size:25px;font-weight:900;color:#383037;margin:17px 0 4px}.print-sub{font-size:11px;color:#71636b}.print-meta{border-top:2px solid #d8a4b8;border-bottom:1px solid #e7dce1;display:flex;flex-wrap:wrap;gap:12px;margin-top:24px;padding:11px 0;font-size:11px}.print-topbar{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px;gap:12px}.print-topbar small{font-size:9px;color:#786e73}.print-mini-figure{display:flex;gap:7px;align-items:center;color:#a34b6d}.print-mini-figure strong{color:#352e34;font-size:14px}.print-mini-figure .ico{width:17px}.print-tasks{list-style:none;padding:0;margin:0;display:grid;gap:5px}.print-tasks li{display:flex;gap:11px;align-items:flex-start;border-bottom:1px solid #eee9eb;padding:8px 2px}.print-tasks li strong{font-size:11px;line-height:1.55}.print-tasks li small{display:block;color:#736c71;font-size:9px;margin-top:3px}.print-check{font-size:18px;line-height:1;color:#a83d65;flex:none}.print-two{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:23px}.print-two h3{font-size:13px;border-left:4px solid #d7a1b7;padding-left:9px;margin:0 0 10px}.print-questions,.print-items{list-style:disc;padding-left:15px;margin:0}.print-questions li,.print-items li{font-size:10px;line-height:1.7;margin-bottom:9px}.empty-print{font-size:10px;color:#786e75;line-height:1.8}.memo-title{margin-top:23px!important}.memo-lines{height:68px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 23px,#e7e2e5 24px)}.print-footnote{margin-top:31px;border-top:1px solid #d8c9d0;padding-top:13px;color:#7b7479;font-size:9px;line-height:1.7}
.site-footer{background:#f7edf0;border-top:1px solid #ecdde2;padding:50px 0 26px;color:#61545d}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.footer-grid strong{font-size:15px;color:#624350}.footer-grid p{font-size:11px;line-height:1.85;color:#81717a}.footer-bottom{border-top:1px solid #e8d7df;padding-top:18px;margin-top:23px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;color:#8e7b84}.footer-bottom .text-btn{font-size:11px}.mobile-bottom{display:none}.toast{position:fixed;bottom:29px;left:50%;transform:translateX(-50%);background:#3d3038;color:#fff;border-radius:12px;padding:14px 22px;font-size:12px;z-index:100;box-shadow:0 10px 25px #0002;max-width:calc(100% - 32px);text-align:center}
@media(max-width:1000px){.shell{width:min(100% - 36px,950px)}.desktop-nav{gap:0}.nav-link{padding:10px 8px;font-size:12px}.tiny-free{display:none}.nav-wrap{gap:12px}.brand-word small{font-size:8px}.hero{min-height:480px}.stage-card{padding:18px 13px}.stage-card strong{font-size:12px}.stage-card small{font-size:10px}.float-top{right:0}.closer-inner{padding-inline:20px}.pack-row{flex-wrap:wrap}.pack-select{width:100%}}
@media(max-width:740px){html{scroll-padding-top:72px}.shell{width:calc(100% - 32px)}.nav-wrap{min-height:69px}.brand-mark{width:38px;height:38px;border-radius:12px}.brand-word strong{font-size:19px}.brand-word small{font-size:8px}.desktop-nav,.top-sheet{display:none}.site-header{position:sticky}.hero{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding-top:47px;padding-bottom:50px;min-height:auto}.hero h1{font-size:39px;line-height:1.5;margin:12px 0 15px}.hero-lead{font-size:13px;line-height:1.95}.hero-visual{max-width:520px;width:100%;margin:5px auto 0}.hero-chips{gap:13px;margin-bottom:23px}.hero-chips span{font-size:11px}.float-label{padding:9px 10px;border-radius:10px;font-size:9px}.float-top{right:-2px;top:3%}.float-bottom{bottom:4%;left:0}.choose-section{padding:48px 0}.section-head{align-items:start}.section-head h2{font-size:25px}.section-head p{font-size:12px}.soft-guide{display:none}.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stage-card{min-height:161px;padding:16px 13px;gap:13px;border-radius:16px}.stage-icon{height:45px;width:45px}.stage-icon .ico{height:23px;width:23px}.stage-arrow{right:11px;top:28px}.stage-card strong{font-size:12px}.stage-card small{font-size:10px}.topic-section{margin-top:39px}.topic-grid{grid-template-columns:repeat(2,1fr);gap:10px}.topic-card{min-height:126px;padding:14px 9px}.topic-next{flex-direction:column;align-items:stretch}.topic-next .btn{width:100%}.features{padding-top:62px;padding-bottom:65px}.feature-grid{grid-template-columns:1fr;gap:16px}.feature-card{display:grid;grid-template-columns:110px 1fr;border-radius:17px}.feature-art{height:100%;min-height:185px}.feature-art>.ico{height:73px;width:73px}.mini-bubble{height:25px;width:25px;font-size:11px;top:24px;right:7px}.feature-copy{padding:23px 16px}.feature-copy h3{font-size:18px;margin:6px 0}.feature-copy p{min-height:0;font-size:12px;margin-bottom:12px}.closer-inner{grid-template-columns:1fr;gap:8px;padding:42px 8px 0}.closer h2{font-size:27px}.paper-peek{margin:20px auto -90px;transform:rotate(4deg)}.page-heading{padding-top:33px;padding-bottom:22px}.page-heading h1{font-size:30px}.page-heading p{font-size:12px}.page-title-row{align-items:flex-start}.result-progress{min-width:75px;min-height:78px}.result-progress strong{font-size:24px}.guide-grid,.scheme-layout,.sheet-layout{grid-template-columns:1fr;gap:16px;padding-bottom:68px}.guide-aside,.scheme-side,.sheet-settings{position:static}.guide-aside{order:-1}.aside-card{padding:18px}.guide-actions{flex-direction:column}.guide-actions .btn{width:100%}.task-card{padding:17px;gap:13px}.task-card h3{font-size:15px}.task-content>p{font-size:12px}.diagrams-wrap{padding-bottom:65px}.diagram-selector{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:7px}.diagram-tab{flex:0 0 128px;min-height:77px;scroll-snap-align:start}.diagram-panel{padding:18px 13px 21px;border-radius:17px}.diagram-panel-header h2{font-size:19px}.diagram-stage{padding:2px}.diagram-stage svg{min-height:180px}.diagram-label{font-size:20px}.diagram-muted{font-size:16px}.diagram-kicker{font-size:14px}.stage-shortcuts{grid-template-columns:1fr 1fr}.mini-route{min-height:65px}.packing-list{grid-template-columns:1fr}.pack-row{flex-wrap:nowrap}.pack-select{width:114px;min-width:114px}.diagram-info-grid{grid-template-columns:1fr}.room-tabs{gap:7px}.room-tab{font-size:11px;padding:10px 12px}.room-result{padding:14px;gap:10px}.room-result h3{font-size:18px}.room-ask{font-size:11px}.diagram-bottom{flex-direction:column;align-items:stretch}.diagram-bottom .btn{width:100%}.scheme-toggle{padding:18px}.scheme-toggle strong{font-size:16px}.scheme-content{padding:0 18px 20px}.sheet-settings{display:grid;gap:0}.sheet-preview{padding:12px}.print-sheet{padding:27px 22px;min-height:0}.print-title{font-size:20px}.print-two{grid-template-columns:1fr 1fr;gap:12px}.print-meta{font-size:9px}.print-tasks li strong{font-size:10px}.print-questions li,.print-items li{font-size:9px}.footer-grid{grid-template-columns:1fr;gap:17px}.site-footer{padding-top:41px;padding-bottom:94px}.footer-bottom{padding-bottom:6px}.mobile-bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:40;bottom:0;left:0;right:0;background:rgba(255,255,255,.98);border-top:1px solid #eedde4;box-shadow:0 -8px 20px #00000008;padding:5px 4px calc(5px + env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom))}.mobile-bottom button{background:none;border:none;color:#796a73;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:10px;font-weight:800;border-radius:9px;min-height:45px}.mobile-bottom button[aria-current=page]{background:#fff0f5;color:#9f3b61}.mobile-bottom .ico{height:22px;width:22px}.toast{bottom:75px}.site-footer .footer-bottom{align-items:flex-start}.site-footer .text-btn{font-size:10px}}
@media(max-width:390px){.hero h1{font-size:35px}.hero-scene{height:270px}.feature-card{grid-template-columns:95px 1fr}.feature-copy{padding:16px 13px}.feature-art>.ico{height:65px;width:65px}.feature-copy h3{font-size:16px}.room-tab{padding:9px 9px}.pack-row{align-items:flex-start}.pack-select{min-width:100px;width:100px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@page{size:A4 portrait;margin:12mm}
@media print{*{box-shadow:none!important}body{margin:0!important;background:#fff!important}body *{visibility:hidden!important}.print-sheet,.print-sheet *{visibility:visible!important}.print-sheet{position:absolute;left:0;top:0;width:100%!important;max-width:none!important;min-height:0!important;padding:0!important;margin:0!important;box-shadow:none!important;display:block!important}.print-title{font-size:23pt!important}.print-sub{font-size:10pt}.sheet-brand{font-size:14pt}.print-tasks li{break-inside:avoid}.print-two{break-inside:avoid}.print-footnote{break-before:auto}.mobile-bottom{display:none!important}a[href]::after{content:none!important}}

/* v1.1 — 退院準備スケジュールと図解からの個別シート作成 */
.timeline-promo{display:flex;align-items:center;gap:22px;margin-top:18px;margin-bottom:88px;padding:29px 35px;border:1px solid #eed6e0;border-radius:22px;background:linear-gradient(110deg,#fff0f5,#fffafc 70%)}
.timeline-promo-mark{display:grid;place-items:center;flex:none;height:72px;width:72px;border-radius:19px;background:#f9dce8;color:#a83d65}
.timeline-promo-mark .ico{height:36px;width:36px}
.timeline-promo h2{font-size:26px;margin:8px 0 6px;letter-spacing:-.04em}
.timeline-promo p{font-size:13px;line-height:1.8;color:#70636b;margin:0}
.timeline-promo>.btn{margin-left:auto;white-space:nowrap;flex:none}
.aside-timeline{margin-top:10px}
.room-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.room-actions .btn{font-size:12px;padding:12px 14px;min-height:44px}
.room-actions .text-btn{min-height:44px}
.timeline-layout{padding-bottom:95px}
.timeline-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;background:linear-gradient(120deg,#fff1f5,#fffafc);border:1px solid #ecd5df;border-radius:22px;padding:30px 34px;margin-bottom:18px}
.timeline-hero h2{font-size:26px;line-height:1.5;letter-spacing:-.045em;margin:9px 0}
.timeline-hero p{font-size:13px;line-height:1.7;color:#6e626a;margin:0}
.timeline-date{display:grid;gap:8px;min-width:230px;font-weight:750;font-size:13px;color:#6b5662}
.timeline-date .select{width:100%;font-size:16px;min-height:50px}
.timeline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:30px}
.timeline-card{display:flex;gap:12px;border:1px solid #eddae2;background:white;border-radius:19px;padding:23px 19px;min-width:0;box-shadow:0 8px 22px #9a61750d}
.timeline-number{height:35px;width:35px;border-radius:50%;display:grid;place-items:center;background:#f8dce5;color:#9f3b61;font-size:16px;font-weight:800;flex:none}
.timeline-body{min-width:0}
.timeline-card h3{margin:7px 0 6px;font-size:19px;line-height:1.35}
.timeline-card p{font-size:12px;color:#766b72;line-height:1.7;margin:0 0 18px}
.timeline-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.timeline-list label{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.65;cursor:pointer}
.timeline-list input{accent-color:#a83d65;width:18px;height:18px;margin:2px 0 0;flex:none}
.timeline-list input:checked+span{color:#7f727b;text-decoration:line-through;text-decoration-thickness:1px}
.timeline-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:28px}
.timeline-actions p{margin-right:auto;color:#796872;font-size:13px;font-weight:750}
.print-room-section{margin-top:18px}
.print-room-section h3{border-left:4px solid #d7a1b7;padding-left:10px;font-size:12px;margin:0 0 12px}
.print-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.print-room-item{display:grid;gap:4px;align-content:start;padding:9px 10px;border:1px solid #e8dce2;border-radius:7px}
.print-room-item strong{color:#8b3154;font-size:11px}
.print-room-item span,.print-room-item small{color:#635961;line-height:1.45;font-size:9px}
.print-date-note{margin:14px 0 0;font-size:10px;color:#695e65}
.print-timeline-note{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-radius:7px;padding:9px 11px;margin-top:13px;background:#fff4f7;font-size:10px}
.print-timeline-note strong{color:#8e385c}
@media(max-width:1000px){.timeline-grid{grid-template-columns:1fr 1fr}.timeline-grid .timeline-card:last-child{grid-column:span 2}}
@media(max-width:740px){.timeline-promo{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:22px;margin-bottom:56px}.timeline-promo-mark{height:52px;width:52px}.timeline-promo-mark .ico{height:28px;width:28px}.timeline-promo h2{font-size:21px}.timeline-promo .btn{grid-column:1/-1;width:100%}.timeline-hero{display:grid;padding:20px;gap:17px}.timeline-hero h2{font-size:22px}.timeline-date{min-width:0}.timeline-grid{grid-template-columns:1fr;gap:13px}.timeline-grid .timeline-card:last-child{grid-column:auto}.timeline-card{padding:18px 15px}.timeline-actions{display:grid;grid-template-columns:1fr;gap:10px}.timeline-actions .btn{width:100%}.timeline-promo p{font-size:12px}}
@media(max-width:390px){.print-room-grid{grid-template-columns:1fr}.room-actions .btn{width:100%}}
@media print{.print-room-section{break-inside:avoid}.print-room-item{break-inside:avoid}.print-date-note{break-inside:avoid}}
/* 印刷時、編集画面の背景や非表示領域が空白ページを作らないようにする */
@media print{
 html,body,#app,main,.sheet-layout,.sheet-preview{display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
 #app>header,#app>footer,#app>nav,main>.page-heading,.sheet-settings,.preview-label,.mobile-bottom{display:none!important}
 .sheet-preview{border:0!important;box-shadow:none!important}
 .print-sheet{position:static!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important}
}

/* v2.0 — Multi-select research concierge, visual refinement and compact action guides */
:root{--pink-deep:#993a60;--pink:#f5c5d5;--muted:#625860;--shadow-sm:0 7px 24px rgba(105,54,81,.055)}
.hero-v2{min-height:425px;padding-top:29px;padding-bottom:35px;grid-template-columns:1.2fr .8fr}
.hero-v2 h1{font-size:clamp(31px,3.7vw,48px);line-height:1.43;margin:13px 0}
.hero-v2 .hero-lead{max-width:540px;line-height:1.8;margin-bottom:17px}
.hero-v2 .hero-chips{margin-bottom:18px}
.hero-v2 .hero-scene{max-height:345px}
.hero-v2 .float-label{padding:10px 14px}
.choose-v2{padding:44px 0 64px;background:linear-gradient(155deg,#fff2f7,#fffafa 55%,#fff4f8);scroll-margin-top:86px}
.chooser-intro,.picker-heading{margin-bottom:18px}
.chooser-intro h2,.picker-heading h2{font-size:clamp(23px,2.45vw,30px);line-height:1.35;margin:6px 0 8px;font-weight:800}
.chooser-intro p,.picker-heading p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
.choose-v2 .stage-card{min-height:118px;padding:16px;flex-direction:row;align-items:center;gap:12px;border-radius:17px}
.choose-v2 .stage-card .stage-icon{width:46px;height:46px;flex:none}
.choose-v2 .stage-card .stage-arrow{right:9px;top:11px;width:14px}
.choose-v2 .stage-card strong{font-size:13px}
.choose-v2 .stage-card small{font-size:10px}
.multi-picker{position:relative;margin-top:29px;padding:27px;border:1px solid #ecd4dd;border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 16px 38px rgba(126,61,86,.06);scroll-margin-top:93px}
.multi-picker:not(.ready) .interest-grid{opacity:.57;pointer-events:none;filter:saturate(.55)}
.picker-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.picker-help{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:20px;background:#f4fbf8;color:#377560;font-size:11px;font-weight:800}
.picker-help .ico{width:14px;height:14px}
.interest-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.interest-card{min-height:143px;background:#fff;border:1.5px solid #e9dce2;box-shadow:0 3px 9px rgba(111,54,81,.035);border-radius:15px;text-align:left;padding:15px 13px 12px;display:flex;flex-direction:column;align-items:flex-start;position:relative;gap:5px;transition:background .18s,border-color .18s,transform .18s;color:#453a42}
.interest-card:hover{transform:translateY(-2px);border-color:#c7839e}
.interest-card.selected{border:2px solid #a3456b;background:#fff2f7;box-shadow:0 0 0 2px #f6d7e2 inset}
.interest-art{width:39px;height:39px;border-radius:12px;background:#fbebf1;color:#9f4667;display:grid;place-items:center;margin-bottom:3px}
.interest-art .ico{width:23px;height:23px}
.interest-art-1,.interest-art-2{background:#fff2e7;color:#a7673e}
.interest-art-3,.interest-art-7{background:#edf1fb;color:#6479a7}
.interest-art-4,.interest-art-5{background:#e9f5f1;color:#427e6c}
.interest-art-6{background:#f1effa;color:#75649d}
.interest-check{position:absolute;right:12px;top:12px;height:23px;width:23px;border:1.5px solid #d5c2c9;border-radius:8px;background:#fff;display:grid;place-items:center;color:#fff}
.interest-card.selected .interest-check{background:#a3456b;border-color:#a3456b}
.interest-check .ico{width:16px;height:16px;stroke-width:3}
.interest-card strong{font-size:13px;line-height:1.45;padding-right:4px}
.interest-card small{color:#746b70;font-size:10px;line-height:1.6}
.selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:19px;padding:12px 0;border-top:1px solid #f1e4e9}
.selection-count{font-size:12px;color:#71636b}.selection-count strong{color:#953758;font-size:17px;margin-right:4px}.selection-count>span{padding-left:7px;color:#8d7e86}
.selection-actions{display:flex;gap:15px}.selection-actions .text-btn{font-size:12px}
.selection-footer{border-top:1px solid #f1e4e9;margin-top:2px;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.selection-tip{font-size:12px;color:#675f65;line-height:1.65}.selection-tip .ico{width:15px;height:15px;display:inline-block;vertical-align:middle;color:#a15475}.selection-tip small{color:#857781}
.selection-footer .btn{min-width:260px}
.features-v2{padding-top:68px;padding-bottom:68px}
.features-v2 .feature-art{height:150px}
.features-v2 .feature-art>.ico{width:86px;height:86px}
.features-v2 .feature-copy{padding:19px 22px 23px}
.features-v2 .feature-copy p{min-height:57px}
.closer-paper{width:min(290px,100%);transform:rotate(4deg) translateY(36px);background:#fff;padding:27px 25px;display:flex;flex-direction:column;gap:16px;color:#55414c;border-radius:10px;box-shadow:0 12px 35px #42233555;margin:auto}
.closer-paper-title{font-weight:900;color:#a03e63;border-bottom:2px solid #ead2dc;padding-bottom:15px}
.closer-paper>span{font-size:13px;border-bottom:1px solid #f0e7eb;padding-bottom:11px}
.closer-paper small{font-size:11px;color:#9f6e81}
.selected-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.selected-tags span{font-size:11px;background:#fff0f5;color:#973f61;border:1px solid #efd4df;border-radius:100px;padding:6px 9px;display:inline-flex;align-items:center;gap:4px}
.selected-tags .ico{width:13px;height:13px}
.guide-heading{padding-bottom:25px}
.guide-section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:28px 0 17px}
.guide-section-head h2{font-size:24px;margin:5px 0 0}.guide-section-head p{font-size:12px;color:var(--muted);margin:3px 0 0}
.guide-section-head.follow-up{margin-top:43px;border-top:1px solid #eedce3;padding-top:26px}
.filter-button{background:#fff;border:1px solid #e5c7d2;border-radius:10px;min-height:42px;padding:9px 12px;display:inline-flex;align-items:center;gap:6px;color:#934766;font-size:12px;font-weight:700;white-space:nowrap}
.filter-button.active{color:#fff;background:#a34669;border-color:#a34669}
.filter-button .ico{width:16px;height:16px}
.task-card-v2{box-shadow:0 5px 20px rgba(115,53,80,.05);border:1px solid #ece1e5}
.task-card-v2 .task-content>p{margin-bottom:7px}
.task-details{border-top:1px solid #f0e5e9;margin-top:13px;padding-top:12px}
.task-details summary{cursor:pointer;color:#994065;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;list-style:none;padding:3px 0;min-height:31px}
.task-details summary::-webkit-details-marker{display:none}
.task-details summary .ico{width:17px;height:17px}
.task-details summary .ico:last-child{margin-left:auto}
.task-details[open] summary .ico:last-child{transform:rotate(180deg)}
.task-details .ask-inline{margin:10px 0 0;padding:12px;border-radius:10px;background:#fff5f8}
.task-details .ask-inline p{font-weight:700;line-height:1.65;margin:6px 0}
.group-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.group-heading .group-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#fff0f5;color:#9d4265}
.group-heading .group-icon .ico{width:20px;height:20px}
.group-heading h3{font-size:17px;margin:0}.group-heading small{font-size:11px;color:#766a72}
.group-heading>span{margin-left:auto;padding:5px 9px;border-radius:20px;background:#f5ebef;color:#78616a;font-size:12px;font-weight:800}
.guide-topic-group{margin:28px 0}
.guide-topic-group .task-list{gap:11px}
.all-done,.empty-selection{padding:20px;border:1px dashed #d9a9bb;border-radius:13px;color:#785c69;background:#fff7fa}
.empty-selection p{font-size:13px;line-height:1.8}
.sheet-interest-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0 17px}
.sheet-interest-options label{display:flex;align-items:center;gap:6px;border:1px solid #eadce2;background:#fff;padding:9px 7px;min-height:43px;border-radius:8px;font-size:11px;line-height:1.4;cursor:pointer}
.sheet-interest-options input{accent-color:#a03d64;min-width:16px;min-height:16px}
.print-topics{font-size:10px;color:#7a5365;margin:5px 0 0;line-height:1.55}
.print-counter{font-size:10px;color:#915b70;font-weight:500}
@media(max-width:1000px){.interest-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.interest-card{min-height:140px;padding:13px 10px}.interest-card strong{font-size:12px}.selection-footer .btn{min-width:230px}}
@media(max-width:740px){.hero-v2{padding-top:27px;padding-bottom:30px;gap:0}.hero-v2 h1{font-size:clamp(27px,7vw,35px);line-height:1.42;margin:10px 0}.hero-v2 .hero-lead{line-height:1.75;margin-bottom:12px}.hero-v2 .hero-chips{margin-bottom:12px}.hero-v2 .hero-visual{display:none}.hero-v2 .btn{width:100%}.choose-v2{padding:30px 0 48px}.chooser-intro h2,.picker-heading h2{font-size:23px}.choose-v2 .stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.choose-v2 .stage-card{min-height:111px;flex-direction:column;align-items:flex-start;padding:13px 11px;gap:6px}.choose-v2 .stage-card .stage-icon{height:33px;width:33px;border-radius:10px}.choose-v2 .stage-card .stage-icon .ico{width:19px;height:19px}.choose-v2 .stage-card strong{font-size:12px}.choose-v2 .stage-card small{font-size:10px}.multi-picker{padding:16px 12px;margin-top:21px;border-radius:17px}.picker-heading{display:block}.picker-help{margin-top:9px}.interest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.interest-card{min-height:128px;padding:11px 10px;border-radius:13px}.interest-card strong{font-size:12px}.interest-card small{font-size:10px}.interest-art{width:32px;height:32px;border-radius:10px}.interest-art .ico{width:19px;height:19px}.interest-check{top:10px;right:10px;width:21px;height:21px}.selection-toolbar{align-items:flex-start;flex-wrap:wrap;gap:7px}.selection-actions{gap:18px}.selection-footer{flex-direction:column;align-items:stretch;gap:12px}.selection-footer .btn{width:100%;min-width:0;font-size:13px}.features-v2{padding-top:46px;padding-bottom:42px}.features-v2 .feature-art{height:auto}.closer-paper{transform:rotate(3deg) translateY(33px)}.guide-section-head{align-items:start;flex-wrap:wrap}.guide-section-head h2{font-size:21px}.guide-heading{padding-top:28px}.guide-grid .guide-aside{order:0}.guide-topic-group{margin:23px 0}.guide-section-head.follow-up{margin-top:28px}.sheet-interest-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:359px){.interest-card strong{font-size:11px}.interest-card small{font-size:9px}.selection-count>span{display:none}.selection-actions .text-btn{font-size:11px}.sheet-interest-options{grid-template-columns:1fr 1fr}}
@media print{.print-topics{font-size:9pt!important}.print-counter{font-size:9pt!important}.print-tasks li{break-inside:avoid!important;page-break-inside:avoid!important}.print-room-section{break-inside:avoid!important}.print-sheet{font-size:10pt!important}}

/* v2.1 — readibility and diagram affordances */
.flow-node{cursor:pointer;outline:none}
.flow-node circle{transition:stroke .16s,stroke-width .16s,fill .16s}
.flow-node:hover circle,.flow-node:focus-visible circle{stroke:#963e60;stroke-width:5;fill:#f8d8e5}
.flow-node:focus-visible{filter:drop-shadow(0 0 4px #c87393)}
.room-map{cursor:pointer}
@media(max-width:740px){
 .choose-v2 .stage-card strong{font-size:13px}
 .choose-v2 .stage-card small{font-size:11px}
 .interest-card{min-height:141px}
 .interest-card strong{font-size:13px}
 .interest-card small{font-size:11px}
 .task-card-v2 h3{font-size:16px;line-height:1.5}
 .task-card-v2 .task-content>p{font-size:13px;line-height:1.75}
 .task-details summary{font-size:13px;min-height:44px}
 .task-details .ask-inline p{font-size:13px}
 .group-heading h3{font-size:16px}
 .group-heading small{font-size:12px}
 .selection-tip{font-size:12px}
 .selection-actions .text-btn{min-height:38px;padding:5px 2px}
 .mobile-bottom{height:calc(68px + env(safe-area-inset-bottom))}
 .guide-grid,.scheme-layout,.sheet-layout{padding-bottom:90px}
}
@media(max-width:359px){.interest-card strong{font-size:12px}.interest-card small{font-size:10px}}
.print-stage-flow{width:100%;height:auto;max-height:62px;display:block;margin:10px 0 7px}
.print-room-diagram{border:1px solid #e7dbe0;padding:11px;border-radius:10px;margin:9px 0 14px}
.print-room-diagram-title{font-size:11px;font-weight:800;margin-bottom:9px;color:#8e4a67}
.print-room-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.print-room-tile{border:1px solid #e4dce0;border-radius:7px;min-height:53px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#736a6e;font-size:10px;text-align:center;background:#f8f7f7}
.print-room-tile.marked{background:#f9dfe9;border-color:#bd7895;color:#843454;font-weight:800}
.print-room-tile .ico{width:16px;height:16px}
.print-room-diagram>small{font-size:9px;color:#857681;display:block;margin-top:6px}
@media(max-width:740px){.print-room-tiles{gap:3px}.print-room-tile{font-size:8px;min-height:48px}.print-room-tile .ico{height:13px;width:13px}}
@media print{.print-stage-flow{max-height:16mm!important}.print-room-diagram{break-inside:avoid!important}.print-room-tile{break-inside:avoid!important}}

/* v3.0 — Useful illustrations, accessible wayfinding and complete paper handout */
.pack-visual-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:3px 0 16px}
.pack-visual-intro h3{font-size:21px;margin:5px 0}
.pack-visual-intro p{font-size:14px;line-height:1.75;color:var(--muted);margin:0;max-width:650px}
.pack-visual-intro>strong{font-size:26px;color:#963a5e;white-space:nowrap}
.pack-visual-intro>strong span{font-size:13px;font-weight:600;color:var(--muted)}
.pack-visual-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pack-visual-item{border:1.5px solid #ead8e0;background:linear-gradient(#fff,#fff9fb);border-radius:15px;min-width:0;min-height:153px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 6px;color:#42333c;text-align:center;transition:box-shadow .16s,border-color .16s}
.pack-visual-item:hover,.pack-visual-item:focus-visible{border-color:#a83d65;box-shadow:0 8px 18px #b46a861f}
.pack-visual-item.sorted{background:#fff1f6;border-color:#c68ba2}
.pack-visual-item strong{font-size:13px;line-height:1.35}
.pack-visual-item small{font-size:12px;color:#7b445f;font-weight:750;background:#fbe6ef;padding:4px 10px;border-radius:999px}
.pack-picto{width:110px;max-width:100%;height:83px;flex-shrink:0}
.pack-row{scroll-margin-top:125px}
.pack-row:focus-within{outline:2px solid #a83d65;outline-offset:3px;border-radius:10px}
.print-choice-list{display:grid;gap:8px}
.print-choice-list label{display:flex;align-items:center;gap:10px;border:1px solid #eee0e5;padding:9px 10px;border-radius:9px;cursor:pointer;min-height:52px}
.print-choice-list label:hover{background:#fff7fa}
.print-choice-list input{width:19px;height:19px;accent-color:#a83d65;flex:none}
.print-choice-list label span{display:flex;flex-direction:column;gap:2px}
.print-choice-list label strong{font-size:13px}
.print-choice-list label small{font-size:11px;color:#776970}
.print-sheet .print-content-section{margin-top:17px}
.print-sheet .print-content-section>h3,.print-memo h3{font-size:14px;margin:0 0 9px;padding-left:9px;border-left:4px solid #d7a1b7;color:#523b47}
.print-sheet .print-hint{font-size:10px;line-height:1.65;color:#665e63;margin:0 0 8px}
.print-sheet .print-questions{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.print-sheet .print-questions li{margin:0;padding:8px;border:1px solid #e9dfe3;border-radius:7px;display:grid;align-content:start;gap:4px;font-size:11px;line-height:1.6;break-inside:avoid}
.print-sheet .print-questions li strong{font-size:11px;color:#954667}
.print-sheet .print-questions li span{font-size:10px}
.print-sheet .print-questions li small{font-size:9px;color:#74666d}
.print-sheet .print-items.full{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;list-style:none;padding:0}
.print-sheet .print-items.full li{display:flex;align-items:start;justify-content:space-between;gap:7px;border-bottom:1px solid #ece1e5;padding:5px 0;margin:0;font-size:10px}
.print-sheet .print-items.full li strong{font-size:10px;color:#873e5b;white-space:nowrap}
.print-sheet .print-timeline-group{margin-bottom:9px;break-inside:avoid}
.print-sheet .print-timeline-group h4{font-size:11px;color:#8e3c60;margin:0 0 4px;background:#fff2f6;padding:5px 8px}
.print-sheet .print-timeline-group ul{margin:0;padding:0;list-style:none;display:grid;gap:3px}
.print-sheet .print-timeline-group li{font-size:10px;line-height:1.55;padding-left:7px;break-inside:avoid}
.print-sheet .print-timeline-group li span{color:#9e4164;font-weight:bold}
.print-memo{margin-top:22px;break-inside:avoid}
.print-memo .memo-lines{height:55px}
@media(max-width:740px){
 .mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:2px}
 .mobile-bottom button{font-size:10px;min-height:48px}
 .pack-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .pack-visual-intro{align-items:start;flex-direction:column}
 .pack-visual-item{min-height:146px}
 .pack-visual-item strong{font-size:14px}
 .pack-visual-item small{font-size:12px}
 .choose-v2 .stage-card strong,.interest-card strong{font-size:14px}
 .choose-v2 .stage-card small,.interest-card small{font-size:12px}
 .interest-card{min-height:152px}
 .picker-heading p,.chooser-intro p,.selection-tip{font-size:14px}
 .guide-heading p,.task-card-v2 .task-content>p,.guide-section-head p{font-size:14px}
 .room-tabs{flex-wrap:wrap}
 .room-tab{min-height:44px;font-size:13px}
 .sheet-interest-options label{font-size:13px;min-height:48px}
 .pack-row strong,.pack-row small{line-height:1.55}
 .print-sheet .print-questions{grid-template-columns:1fr}
 .print-sheet .print-items.full{grid-template-columns:1fr}
}
@media print{
 .print-sheet .print-questions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .print-sheet .print-items.full{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .print-sheet .print-questions li,.print-sheet .print-items li,.print-sheet .print-timeline-group,.print-sheet .print-memo,.print-sheet .print-room-item{break-inside:avoid!important;page-break-inside:avoid!important}
 .print-sheet .print-content-section{break-before:auto!important}
 .print-sheet .print-content-section>h3,.print-memo h3{break-after:avoid!important}
}

/* v3.1 — Legible document preview, especially on small phones. Print is a separate layout. */
@media screen and (max-width:740px){
 .sheet-preview{padding:8px}
 .print-sheet{padding:21px 15px}
 .print-sheet .print-tasks li strong{font-size:14px}
 .print-sheet .print-tasks li small{font-size:12px;line-height:1.5}
 .print-sheet .print-check{font-size:20px}
 .print-sheet .print-content-section>h3,.print-memo h3{font-size:15px}
 .print-sheet .print-questions li strong{font-size:13px}
 .print-sheet .print-questions li span{font-size:13px}
 .print-sheet .print-questions li small{font-size:12px}
 .print-sheet .print-items.full li,.print-sheet .print-items.full li strong{font-size:13px}
 .print-sheet .print-timeline-group h4,.print-sheet .print-timeline-group li{font-size:13px}
 .print-sheet .print-room-item strong,.print-sheet .print-room-item span,.print-sheet .print-room-item small{font-size:12px}
 .print-sheet .print-content-section .print-hint,.print-sheet .print-footnote{font-size:12px}
 .print-sheet .print-topics,.print-sheet .print-meta,.print-sheet .print-sub{font-size:12px}
 .print-sheet .print-room-diagram>small{font-size:11px}
 .print-sheet .print-room-tile{min-height:54px;font-size:10px}
 .print-sheet .print-room-tile .ico{width:16px;height:16px}
}
@media print{
 .print-sheet .print-tasks li strong{font-size:10pt!important}
 .print-sheet .print-tasks li small{font-size:8.5pt!important}
 .print-sheet .print-questions li strong{font-size:9.5pt!important}
 .print-sheet .print-questions li span{font-size:9.25pt!important}
 .print-sheet .print-questions li small{font-size:8pt!important}
 .print-sheet .print-items.full li,.print-sheet .print-items.full li strong{font-size:9.25pt!important}
 .print-sheet .print-timeline-group h4{font-size:10pt!important}
 .print-sheet .print-timeline-group li{font-size:9.25pt!important;line-height:1.6}
 .print-sheet .print-content-section>h3,.print-memo h3{font-size:12pt!important}
 .print-sheet .print-room-item strong{font-size:9.5pt!important}
 .print-sheet .print-room-item span,.print-sheet .print-room-item small{font-size:8.5pt!important}
}

/* v3.2 — Interactive expense and consultation maps */
.diagram-note{border-left:4px solid #ba6e8a;padding:2px 0 3px 16px;margin:0 0 15px}
.diagram-note strong{font-size:18px;color:#683e52}
.diagram-note p{font-size:14px;color:#655a62;line-height:1.75;margin:5px 0 0}
.cost-visual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;position:relative;padding:8px 0 20px}
.cost-visual-item{min-height:129px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;background:#fffafa;border:2px solid #e8dce1;border-radius:17px;text-align:left;padding:14px 18px;color:#54404b}
.cost-visual-item.active,.consult-node.active{border-color:#b45379;background:#fff0f5;box-shadow:0 0 0 2px #f9dce8}
.cost-visual-item:hover,.consult-node:hover{border-color:#b45379}
.cost-icon{display:grid;place-items:center;width:41px;height:41px;background:#f8dfe8;border-radius:12px;color:#914264}
.cost-visual-item strong{font-size:16px}
.cost-visual-item small{font-size:13px;color:#72636c}
.diagram-detail{border:1px solid #ecd9e3;border-radius:18px;background:#fff;padding:23px;margin-top:3px}
.diagram-detail h3{font-size:20px;line-height:1.55;margin:6px 0 8px}
.diagram-detail p{font-size:14px;line-height:1.85;color:#675f65}
.diagram-contact{font-weight:650}
.diagram-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:17px}
.consult-network{position:relative;display:grid;grid-template-columns:170px 1fr;gap:22px;align-items:center;margin:12px 0 18px}
.consult-center{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;width:155px;height:155px;background:#fbe5ee;border:3px solid #e9b4c8;color:#874461;gap:6px;z-index:1}
.consult-center .ico{width:28px;height:28px}
.consult-center strong{font-size:16px}
.consult-center span{font-size:12px}
.consult-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.consult-node{min-height:105px;border:2px solid #e9dce1;background:#fff;border-radius:14px;display:grid;grid-template-columns:38px 1fr;align-content:center;align-items:center;text-align:left;column-gap:8px;padding:13px 12px;color:#543a48}
.consult-node>span{grid-row:span 2;background:#f9e7ee;color:#a24d6d;border-radius:12px;width:38px;height:38px;display:grid;place-items:center}
.consult-node strong{font-size:15px}
.consult-node small{font-size:12px;color:#7d6a73}
@media(max-width:740px){
 .consult-network{display:block}
 .consult-center{width:112px;height:112px;margin:0 auto 14px}
 .consult-center strong{font-size:14px}
 .consult-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .consult-node{grid-template-columns:1fr;padding:11px;min-height:133px;gap:4px}
 .consult-node>span{grid-row:auto;width:33px;height:33px}
 .consult-node strong{font-size:14px}
 .consult-node small{font-size:12px}
 .cost-visual-item{padding:12px;min-height:145px}
 .cost-visual-item strong{font-size:14px}
 .cost-visual-item small{font-size:12px}
 .diagram-detail{padding:17px 14px}
 .diagram-detail-actions .btn{min-height:48px}
}
@media(max-width:360px){.cost-visual{gap:8px}.cost-visual-item{padding:10px}.consult-node{padding:9px}}
@media screen and (max-width:740px){.hero-v2{min-height:0}}
/* v4: usability and comprehension improvements */
.group-empty-note{margin:0;padding:13px 16px;color:#765f6a;background:#fff6f9;border:1px dashed #e8cbd8;border-radius:10px;font-size:14px;line-height:1.7}
.sheet-stage-notice{padding:13px 14px;border:1px solid #e6c4d1;border-radius:11px;background:#fff2f7;color:#7b3456;font-size:14px;line-height:1.65}
.print-mode-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff7fa;border-radius:10px;padding:10px 12px;margin:10px 0;font-size:13px;color:#714258}
.print-mode-row button{min-height:42px}
.guide-save{margin-top:10px;display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.5;color:#593c4b}
.guide-save input{width:21px;height:21px;flex:none;accent-color:#a83d65}
.aside-help small{display:block;font-size:12px;line-height:1.5;margin-top:4px;color:#756c71}
.room-result{scroll-margin-top:78px}
.diagram-detail-actions .btn{white-space:normal;text-align:center}
@media(max-width:740px){
  .hero-v2{padding-top:15px;padding-bottom:19px}
  .hero-v2 h1{font-size:clamp(25px,7vw,32px);line-height:1.35;margin:8px 0}
  .hero-v2 .hero-chips{margin-bottom:8px}
  .hero-v2 .hero-note{margin-bottom:0}
  .choose-v2{padding-top:19px}
  .room-tab{font-size:14px;min-height:44px}
  .room-ask{font-size:14px;line-height:1.7}
  .interest-card small,.stage-card small{font-size:12px;line-height:1.4}
  .interest-card strong,.stage-card strong{font-size:14px}
  .selection-tip,.fine-print,.aside-help small{font-size:12px;line-height:1.6}
  .mobile-bottom button{font-size:11px}
  .guide-save{font-size:14px}
}
@media(max-width:359px){.interest-card strong,.stage-card strong{font-size:13px}.interest-card small,.stage-card small{font-size:11px}}

/* v5: Practical, task-first UI — large targets, visible search, grouped packing */
.quick-headline{font-size:clamp(27px,3vw,40px);line-height:1.35;color:#45343f;margin:8px 0 9px}
.quick-actions{display:flex;align-items:center;gap:15px;margin:14px 0 23px;flex-wrap:wrap}
.quick-emergency{display:flex;align-items:center;text-align:left;gap:12px;padding:13px 15px;background:#fff;border:2px solid #b65879;border-radius:14px;min-height:66px;color:#77314e;box-shadow:0 5px 14px #9d406010;max-width:100%}
.quick-emergency>.ico:first-child{background:#fae0e9;border-radius:10px;padding:8px;box-sizing:content-box;width:23px;height:23px;flex:none}
.quick-emergency>.ico:last-child{width:19px;height:19px;margin-left:auto;flex:none}
.quick-emergency span{display:flex;flex-direction:column;gap:3px;min-width:0}
.quick-emergency strong{font-size:15px;line-height:1.45}
.quick-emergency small,.quick-privacy{font-size:12px;color:#765c69;line-height:1.5}
.quick-emergency:hover,.quick-emergency:focus-visible{background:#fff1f6;border-color:#873353}
.hero-after{margin-top:35px;margin-bottom:30px;background:#fff9fb;border:1px solid #f4e0e9;border-radius:22px;padding:27px 34px;min-height:0}
.hero-after .hero-tagline{font-size:clamp(26px,3.2vw,38px);line-height:1.43;margin:10px 0}
.hero-after .hero-scene{max-height:250px}
.hero-after .hero-text .btn{background:#fff;color:#8c3a5a;border:1px solid #eac0d0;box-shadow:none}
.hero-after .hero-text .btn:hover{background:#fff0f5}
.guide-search{padding:18px 18px 12px;background:#fff;border:1px solid #e6d8de;border-radius:17px;box-shadow:0 3px 15px #8c546015;margin:10px 0 16px}
.guide-search>label{display:block;font-size:15px;font-weight:800;color:#684256;margin-bottom:10px}
.guide-search-wrap{display:flex;gap:8px;align-items:center;border:2px solid #d3a1b7;background:#fffafc;border-radius:12px;padding:6px 10px;min-height:54px}
.guide-search-wrap>.ico{width:18px;height:18px;color:#a64a6e;flex:none}
.guide-search-wrap input{flex:1;min-width:0;border:0;background:transparent;font-size:16px;color:#40363c;padding:8px 2px;outline:none}
.guide-search-wrap:focus-within{outline:3px solid #f3cddd;outline-offset:2px}
.guide-search-wrap button{background:transparent;border:0;color:#93466a;font-weight:800;font-size:13px;padding:9px 4px;min-height:42px;cursor:pointer}
.guide-search>p{font-size:12px;line-height:1.6;color:#70636a;margin:8px 0 0}
.task-card[hidden]{display:none!important}
.guide-topic-group.search-empty{display:none}
.packing-list{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.packing-group{min-width:0;border:1px solid #eedee5;border-radius:15px;padding:12px;background:#fff}
.packing-group h4{font-size:16px;font-weight:850;color:#853e5d;margin:0 0 9px;padding:2px 5px 10px;border-bottom:1px solid #f3e4ea}
.packing-group .pack-row{padding:11px 6px;min-height:72px}
.packing-group .pack-item-name strong{font-size:14px;line-height:1.4}
.packing-group .pack-item-name small{font-size:12px;line-height:1.5;color:#736570}
.packing-group .pack-select{font-size:13px;min-height:44px;flex:none}
@media (max-width:740px){
 .quick-headline{font-size:26px}
 .quick-actions{margin-bottom:15px}
 .quick-emergency{width:100%;padding:12px 10px;gap:8px}
 .quick-emergency strong{font-size:14px}
 .hero-after{margin-top:16px;margin-bottom:16px;padding:16px}
 .hero-after .hero-tagline{font-size:25px;margin:6px 0}
 .hero-after .hero-lead{font-size:14px}
 .hero-after .hero-chips{display:none}
 .hero-after .hero-visual{display:none}
 .hero-after .hero-text .btn{min-height:47px}
 .guide-search{padding:13px 12px}
 .guide-search-wrap{padding:5px 8px}
 .packing-list{grid-template-columns:1fr;gap:12px}
 .packing-group{padding:10px}
 .packing-group .pack-row{gap:7px;flex-wrap:wrap}
 .packing-group .pack-select{width:120px;min-width:120px;margin-left:auto}
}
@media (max-width:359px){.quick-emergency strong{font-size:13px}.packing-group .pack-select{width:100%;margin-left:0}}
@media print{.quick-actions,.guide-search,.hero-after{display:none!important}}
@media (prefers-reduced-motion:reduce){.quick-emergency,.interest-card,.pack-visual-item{transition:none!important;scroll-behavior:auto!important}}
.print-legal-note{color:#755e69;background:#fff5f8;border-left:3px solid #d4a4b6;padding:8px 10px;font-size:12px;line-height:1.7;margin:12px 0 15px}
@media print{
 .print-legal-note{font-size:8pt!important;line-height:1.4!important;padding:4pt 6pt!important;margin:4pt 0 8pt!important;break-inside:avoid}
 .print-footnote{display:none!important}
}
/* v5 A4 density: preserve 9pt minimum body while avoiding isolated last-page fragments. */
@media print{
 .print-sheet .print-content-section{margin-top:11px!important}
 .print-sheet .print-questions{gap:5px!important}
 .print-sheet .print-questions li{padding:5px 7px!important;gap:2px!important;line-height:1.45!important}
 .print-sheet .print-items.full{gap:2px!important}
 .print-sheet .print-items.full li{padding:3px 0!important;line-height:1.3!important}
 .print-sheet .print-hint{margin-bottom:4px!important}
 .print-memo{margin-top:12px!important}
 .print-memo .memo-lines{height:36px!important}
}
@media print{
 .print-memo .memo-lines{height:45px!important;border-bottom:1px solid #bfb3b8;background:repeating-linear-gradient(to bottom,#ffffff 0,#ffffff 19px,#ded6d9 19px,#ded6d9 20px)!important}
}

/* v6: evidence-grounded diagrams: distinct fee categories and age-based care eligibility */
.payment-flow{border:1px solid #ead9e1;background:#fff;border-radius:18px;margin:14px 0 18px;padding:18px;box-shadow:0 5px 18px #8e536010}
.flow-head{font-size:16px;font-weight:850;text-align:center;color:#68364c;background:#fce8ef;border-radius:12px;padding:12px}
.payment-fork{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:24px;position:relative}
.payment-fork:before{content:"";position:absolute;top:6px;left:25%;right:25%;height:14px;border:2px solid #d7afbf;border-top:0;border-radius:0 0 8px 8px;pointer-events:none}
.payment-branch{padding:15px;display:flex;flex-direction:column;gap:8px;border-radius:14px;border:2px solid #d0b4bf;min-width:0}
.payment-branch.covered{background:#f0f8f5;border-color:#86b8a8}
.payment-branch.not-covered{background:#fff6f9;border-color:#d5a7b7}
.payment-branch-tag{font-size:12px;font-weight:800;color:#653f51}
.payment-branch strong{font-size:16px;line-height:1.5}
.payment-branch small{font-size:13px;line-height:1.55;color:#66575f}
.flow-legend{font-size:13px;line-height:1.6;color:#6e5c65;margin:13px 0 0}
.eligibility-diagram{background:#fff;border:1px solid #eadde3;border-radius:18px;padding:21px;margin:0 0 20px;box-shadow:0 5px 18px #7a495011}
.eligibility-heading h2{font-size:20px;line-height:1.5;margin:4px 0 8px}
.eligibility-heading p{font-size:14px;line-height:1.7;color:#665860;margin:0 0 16px}
.eligibility-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.eligibility-card{border:1px solid #e4cdd7;background:#fffbfd;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.eligibility-card:nth-child(2){background:#fff6fa;border-color:#cd91a9}
.eligibility-age{font-size:13px;font-weight:850;color:#8a3b5c}
.eligibility-card strong{font-size:15px;line-height:1.5;color:#43343c}
.eligibility-card p{font-size:13px;color:#665961;line-height:1.65;margin:0}
.eligibility-steps{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:14px;padding:14px;background:#f9f3f5;border-radius:12px;font-size:13px;font-weight:750;color:#5f4350}
.eligibility-source{font-size:12px;line-height:1.6;color:#6d5f66;margin:11px 0 0}
.eligibility-source a{color:#923d60;text-decoration:underline;text-underline-offset:3px}
@media(max-width:740px){
 .payment-flow,.eligibility-diagram{padding:13px}
 .payment-fork{gap:8px}.payment-branch{padding:10px;gap:6px}.payment-branch strong{font-size:14px}.payment-branch small{font-size:12px}
 .eligibility-grid{grid-template-columns:1fr}.eligibility-card{gap:4px}.eligibility-steps{display:grid;justify-content:stretch;text-align:center}.eligibility-steps span[aria-hidden]{display:none}
}
@media(max-width:359px){.payment-fork{grid-template-columns:1fr}.payment-fork:before{display:none}}
@media print{.payment-flow,.eligibility-diagram{break-inside:avoid}}

/* v7: concise handout and family-sharing flow. */
.sheet-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.sheet-style-button{display:flex;flex-direction:column;gap:7px;text-align:left;padding:13px;border:1.5px solid #dfcbd3;border-radius:12px;background:#fff;color:#453841;min-width:0;cursor:pointer;min-height:94px}
.sheet-style-button strong{font-size:16px}
.sheet-style-button small{font-size:13px;line-height:1.5;color:#60555a}
.sheet-style-button.is-active{border-color:#a83d65;background:#fff1f6;box-shadow:inset 0 0 0 1px #a83d65}
.sheet-style-button:focus-visible{outline:3px solid #704258;outline-offset:3px}
.settings-block[hidden]{display:none!important}
.print-brief .print-title{margin-bottom:2px}
.print-brief .print-stage-flow{margin:8px 0}
.brief-section{margin-top:16px;break-inside:avoid}
.brief-section h3{font-size:15px;color:#73304e;border-bottom:2px solid #eab6c9;padding-bottom:6px;margin:0 0 8px}
.brief-section h3 small{font-size:11px;color:#61575c;font-weight:500;margin-left:6px}
.brief-task-list,.brief-questions,.brief-packing{margin:0;padding:0;list-style:none}
.brief-task-list li{display:flex;gap:10px;align-items:start;padding:6px 4px;border-bottom:1px solid #e9dce2;break-inside:avoid;font-size:13px}
.brief-task-list li>span{color:#953c62;font-size:18px}
.brief-task-list li div{display:flex;flex-direction:column;gap:1px}
.brief-task-list li small{font-size:11px;color:#62565e}
.brief-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.brief-questions li{display:flex;flex-direction:column;gap:5px;font-size:12px;padding:9px;border:1px solid #e9dce2;border-radius:7px;break-inside:avoid}
.brief-questions li strong{color:#8e3357}
.brief-packing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
.brief-packing li{display:flex;justify-content:space-between;border-bottom:1px solid #e9dce2;padding:4px 0;gap:10px;font-size:12px}
.brief-packing li strong{color:#87425e;white-space:nowrap}
.brief-omit,.brief-empty{font-size:12px;color:#6b5b64;margin:6px 0}
.brief-notes{display:flex;flex-direction:column;gap:12px;margin-top:20px;border:1px solid #e4cdd8;border-radius:8px;padding:10px;font-size:12px;break-inside:avoid}
.brief-notes span{border-bottom:1px solid #d4c8cd;white-space:nowrap;overflow:hidden}
@media(max-width:450px){.sheet-style-grid{grid-template-columns:1fr}}
@media print{
 .print-brief{padding:4mm!important}
 .print-brief .print-title{font-size:18pt!important}
 .print-brief .print-stage-flow{max-height:12mm!important}
 .print-brief .brief-section{margin-top:8px!important;break-inside:avoid!important}
 .print-brief .brief-task-list li{padding:3px!important;font-size:9.5pt!important}
 .print-brief .brief-task-list li small{font-size:8pt!important}
 .print-brief .brief-questions li{padding:5px!important;font-size:8.5pt!important}
 .print-brief .brief-packing li{font-size:9pt!important;padding:2px 0!important}
 .print-brief .brief-notes{margin-top:9px!important;padding:7px!important;gap:6px!important}
 .print-brief .brief-notes span{height:12px!important}
 .print-brief .brief-section h3{font-size:11pt!important}
 .print-brief .brief-omit{font-size:8pt!important}
}
/* v7.1: readable tap targets and medical text for family members */
.task-check{min-width:44px;min-height:44px;display:grid;place-items:center;margin-top:0}
.task-check input{inset:0;width:100%;height:100%;margin:0}
.task-check .check-visual{height:27px;width:27px}
.task-content>p,.room-result p,.scheme-content>p{font-size:14px;line-height:1.8}
.ask-inline p,.scheme-content>div>p{font-size:14px;line-height:1.7}
.pack-item-name strong{font-size:14px}
.pack-item-name small,.pack-select{font-size:12px}
.context-panel summary,.context-body,.check-group label,.save-check{font-size:14px}
@media(max-width:740px){
 .task-card{gap:9px;padding:15px 13px}
 .task-card h3{font-size:16px}
 .task-content>p{font-size:14px}
 .ask-inline p{font-size:14px}
 .choose-v2 .stage-card strong,.interest-card strong{font-size:14px}
 .choose-v2 .stage-card small,.interest-card small{font-size:12px}
 .interest-card{min-height:140px}
 .pack-item-name strong{font-size:14px}
 .pack-item-name small{font-size:12px}
 .room-ask{font-size:13px}
}
@media print{
 .print-brief .brief-task-list li{font-size:11pt!important;padding:4px 3px!important}
 .print-brief .brief-task-list li small{font-size:9pt!important}
 .print-brief .brief-questions li{font-size:10pt!important}
 .print-brief .brief-packing li{font-size:10pt!important}
 .print-brief .brief-section h3{font-size:12pt!important}
 .print-brief .brief-omit,.print-brief .brief-empty{font-size:9.5pt!important}
}
/* Keep focused controls clear of the persistent mobile navigation. */
@media(max-width:740px){
 html{scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 .task-card,.pack-row,.room-result,.scheme-card{scroll-margin-bottom:calc(90px + env(safe-area-inset-bottom))}
}

/* v8 — novices-first UX: no required checkboxes at the start. */
.choose-v2 .chooser-intro h1{font-size:clamp(27px,3.2vw,41px);line-height:1.3;margin:8px 0 14px;color:#3e313a}
.choose-v2 .chooser-intro p{font-size:16px;line-height:1.85;max-width:720px;color:#52464f}
.home-guide-next{background:#fff;border:2px solid #deb0c3;border-radius:19px;padding:18px 20px;margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 5px 20px #7b355016;scroll-margin-top:95px}
.home-guide-next strong{display:block;font-size:17px;color:#80324f}
.home-guide-next p{margin:7px 0 0;font-size:14px;line-height:1.65;color:#665860}
.home-guide-next .btn{min-width:230px;min-height:56px;font-size:16px;flex-shrink:0}
.optional-topic-picker{margin-top:14px}
.optional-topic-picker>summary{cursor:pointer;display:flex;gap:9px;align-items:center;color:#8e4162;font-size:15px;font-weight:800;min-height:54px;padding:13px 16px;border:1px solid #ebcfd9;background:#fff;border-radius:14px;list-style:none}
.optional-topic-picker>summary::-webkit-details-marker{display:none}
.optional-topic-picker>summary .ico{width:20px;height:20px;flex:none}
.optional-topic-picker>summary .ico:last-child{margin-left:auto}
.optional-topic-picker[open]>summary .ico:last-child{transform:rotate(180deg)}
.optional-topic-picker .multi-picker{margin-top:10px}
.interest-status{position:absolute;right:10px;top:10px;font-size:11px;font-weight:800;padding:5px 7px;color:#8c4561;border:1px solid #dabdca;border-radius:8px;background:#fff}
.interest-card.selected .interest-status{background:#9c3b60;color:white;border-color:#9c3b60}
.interest-card{padding-top:39px;min-height:155px}
.guide-main .notice-callout{font-size:15px;line-height:1.8;padding:18px}
.task-card-v2{display:block;padding:18px 20px}
.task-content{width:100%}
.task-content>p{font-size:15px;line-height:1.75}
.task-contact{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:10px;background:#f7f1f4;color:#533e48;font-size:14px;line-height:1.6;margin-top:12px}
.task-contact .ico{width:19px;height:19px;color:#95486a;flex:none}
.task-details summary{font-size:14px;min-height:44px}
.task-complete-row{border-top:1px solid #eee0e7;padding-top:14px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.task-state-hint{font-size:13px;line-height:1.5;color:#64575e;max-width:340px}
.task-complete-btn{min-height:48px;min-width:160px;border-radius:11px;border:2px solid #9a4466;background:#fff5f8;color:#8e3658;font-size:15px;font-weight:800;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.task-complete-btn .ico{width:19px;height:19px}
.task-complete-btn.done{background:#e7f3ed;border-color:#38866c;color:#28644f}
.task-card.is-done{background:#fbfdfb;border-color:#b5d9c8}
.guide-topic-group{background:#fff;border:1px solid #ead9e1;border-radius:15px;padding:0;overflow:hidden;margin:13px 0}
.guide-topic-group>summary.group-heading{cursor:pointer;padding:16px;min-height:76px;margin:0;list-style:none}
.guide-topic-group>summary::-webkit-details-marker{display:none}
.guide-topic-group .group-heading>span{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px}
.guide-topic-group .group-heading>span .ico{height:16px;width:16px}
.guide-topic-group[open] .group-heading>span .ico{transform:rotate(180deg)}
.guide-topic-group>.task-list{padding:12px;background:#fff9fb;border-top:1px solid #f0e3e9}
@media(max-width:680px){.home-guide-next{display:block;padding:16px}.home-guide-next .btn{margin-top:14px;width:100%;min-width:0}.task-complete-row{display:block}.task-state-hint{display:block;margin-bottom:12px}.task-complete-btn{width:100%}.optional-topic-picker>summary{font-size:14px}.choose-v2 .chooser-intro p{font-size:15px}.guide-topic-group .group-heading>span{font-size:11px}}
@media print{.home-guide-next,.optional-topic-picker,.task-complete-btn{display:none!important}}

/* v9: prepare-first entrance: usable without answering a single question. */
.emergency-bag {background:linear-gradient(180deg,#fff9fb 0%,#fff 58%);padding:23px 0 45px}
.emergency-bag .shell {max-width:1050px}
.first-notice{display:flex;align-items:flex-start;gap:11px;padding:12px 16px;border-left:4px solid #a83d65;background:#fff3f6;border-radius:8px;margin-bottom:28px;color:#542b39;font-size:14px;line-height:1.6}
.first-notice .ico{flex:0 0 22px;margin-top:2px}.first-notice p{margin:0}
.first-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:22px}
.first-heading h1{font-size:clamp(30px,4.5vw,52px);line-height:1.3;letter-spacing:-.035em;margin:9px 0 15px;color:#372c33}
.first-heading h1 em{color:#a83d65;font-style:normal}
.first-heading p{font-size:16px;line-height:1.8;margin:0;max-width:680px;color:#453a40}
.bag-simple-illustration{flex:0 0 165px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:22px;background:#fce8f0;border-radius:28px;color:#8b3c5b;transform:rotate(-2deg)}
.bag-simple-illustration span{font-size:76px;line-height:1.2}.bag-simple-illustration small{font-size:12px;font-weight:700}
.bag-summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border:2px solid #eac1d0;background:#fff;border-radius:16px;padding:14px 16px;margin-bottom:30px}
.bag-summary strong{font-size:16px;color:#71354b;margin-right:8px}.bag-summary span{border-radius:99px;background:#fbe8ef;padding:7px 12px;color:#74354d;font-weight:750;font-size:14px}
.bag-section-heading{display:flex;align-items:flex-start;gap:12px;margin:22px 0 11px}
.bag-number{display:grid;place-items:center;width:36px;height:36px;flex:none;background:#a83d65;color:white;font-weight:850;border-radius:11px}
.bag-section-heading h2{margin:0 0 4px;font-size:24px;line-height:1.35;color:#382d33}
.bag-section-heading p{margin:0;font-size:14px;color:#60545a;line-height:1.55}
.quick-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;margin-bottom:30px}
.bag-checklist-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:13px 15px;margin:-11px 0 23px;border:1px solid #f0d5df;border-radius:14px;background:#fff;color:#5b3947;font-size:14px;line-height:1.55}
.bag-checklist-hint strong{font-size:16px;color:#74344d}.bag-checklist-hint span{flex:1 1 260px}.bag-checklist-hint output{font-weight:750;color:#a83d65;font-variant-numeric:tabular-nums}
.quick-item{min-width:0;display:grid;grid-template-columns:26px 37px minmax(0,1fr);column-gap:10px;align-items:center;background:#fff;border:1px solid #ebdce1;border-radius:14px;padding:13px;box-shadow:0 2px 9px rgba(110,59,77,.035);cursor:pointer;min-height:70px}
.quick-item.is-packed{border-color:#a8cfc0;background:#f6fcf8}
.quick-checkbox{width:24px;height:24px;min-width:24px;accent-color:#a83d65;cursor:pointer;margin:0}
.quick-print-check{display:none}
.quick-symbol{font-size:28px;text-align:center;line-height:1.3}
.quick-item-copy{display:block;min-width:0}
.quick-item-copy strong{display:block;color:#392e35;font-size:17px;line-height:1.45}
.quick-item-detail{display:block;font-size:13px;color:#60565a;line-height:1.6;margin-top:4px}
.quick-item:focus-within{outline:3px solid #994360;outline-offset:2px}
.quick-item:hover{border-color:#c98aa2}
.emergency-bag button:focus-visible{outline:3px solid #994360;outline-offset:3px}
.bag-controls{border:1px solid #e8c3d1;background:#fff5f8;border-radius:17px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px}
.bag-controls-copy{display:grid;gap:6px}.bag-controls-copy strong{color:#773650;font-size:16px}.bag-controls-copy span{font-size:12px;line-height:1.6;color:#574b50;max-width:580px}
.bag-control-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.bag-control-buttons .btn{min-height:45px;font-size:14px}
.hospital-confirm{margin-top:35px;border:2px solid #d49caf;background:#fff;padding:23px;border-radius:19px}
.hospital-confirm-tag{background:#a83d65;color:#fff;font-size:13px;font-weight:800;border-radius:99px;padding:7px 13px;display:inline-block}
.hospital-confirm h2{font-size:23px;margin:13px 0}.hospital-confirm blockquote{font-size:19px;line-height:1.7;background:#fff3f7;border-left:4px solid #a83d65;padding:16px;margin:0 0 13px;color:#482e39;font-weight:700}
.hospital-confirm-note{font-size:13px;line-height:1.75;color:#5b5055;margin-bottom:0}
.bag-cautions{margin-top:23px;background:#f7f7f7;border-radius:15px;padding:17px 20px}
.bag-cautions h3{font-size:19px;margin:0 0 8px}.bag-cautions-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bag-cautions-grid p{margin:0;line-height:1.8;font-size:14px}
.bag-sources{margin-top:21px;border-top:1px solid #e8d9df;padding:13px 4px}.bag-sources summary{cursor:pointer;font-size:14px;font-weight:700;color:#7e3e59}.bag-sources p,.bag-sources li{font-size:13px;line-height:1.75}.bag-sources a{color:#8e375e;text-decoration:underline}
.secondary-entry{padding:52px 0 80px}.secondary-intro h2{font-size:27px;margin:6px 0 9px}.secondary-intro p{font-size:15px;line-height:1.7;margin:0 0 21px}.secondary-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}
@media(max-width:700px){
 .emergency-bag{padding:12px 0 30px}.first-notice{padding:11px 12px;font-size:13px;margin-bottom:19px}
 .first-heading{gap:6px;align-items:flex-start;margin-bottom:14px}.first-heading h1{font-size:30px;margin:5px 0 10px}.first-heading p{font-size:14px;line-height:1.7}.bag-simple-illustration{display:none}
 .bag-summary{margin-bottom:21px;padding:11px 12px;gap:7px}.bag-summary strong{width:100%;font-size:15px}.bag-summary span{font-size:12px;padding:6px 9px}
 .bag-section-heading h2{font-size:21px}.bag-section-heading p{font-size:13px}
 .quick-items{grid-template-columns:1fr;gap:8px;margin-bottom:24px}
 .quick-item{grid-template-columns:26px 30px minmax(0,1fr);padding:11px 10px;column-gap:8px;min-height:68px}
 .quick-checkbox{width:24px;height:24px}.quick-symbol{font-size:26px}.quick-item-copy strong{font-size:16px}.quick-item-detail{font-size:13px}.bag-controls{padding:15px;display:grid;gap:12px}.bag-control-buttons{display:grid}.bag-control-buttons .btn{width:100%;justify-content:center}
 .hospital-confirm{padding:15px;margin-top:26px}.hospital-confirm h2{font-size:20px}.hospital-confirm blockquote{padding:13px;font-size:16px}
 .bag-cautions{padding:14px}.bag-cautions-grid{grid-template-columns:1fr;gap:11px}.secondary-entry{padding:35px 0 85px}
}
@media print{
 body.bag-print{background:white!important;color:#222!important}
 body.bag-print .print-sheet,body.bag-print .print-sheet *{display:none!important;visibility:hidden!important}
 body.bag-print .emergency-bag,body.bag-print .emergency-bag *{visibility:visible!important}
 body.bag-print .emergency-bag{position:absolute!important;top:0!important;left:0!important;width:100%!important;margin:0!important;padding:0!important;background:white!important}
 body.bag-print .emergency-bag .shell{max-width:none!important;margin:0!important;padding:0!important}
 body.bag-print .first-notice{font-size:10pt!important;margin-bottom:9pt!important;padding:7pt!important}
 body.bag-print .first-heading{margin-bottom:7pt!important}.bag-simple-illustration{display:none!important}
 body.bag-print .first-heading h1{font-size:19pt!important;margin:0 0 6pt!important}
 body.bag-print .first-heading p{font-size:9pt!important;line-height:1.5!important}
 body.bag-print .bag-summary{margin:8pt 0!important;padding:7pt!important}
 body.bag-print .bag-section-heading{margin:12pt 0 5pt!important}
 body.bag-print .bag-section-heading h2{font-size:14pt!important}
 body.bag-print .bag-section-heading p{font-size:9pt!important}
 body.bag-print .quick-items{grid-template-columns:1fr 1fr!important;gap:5pt!important;margin:0 0 8pt!important}
 body.bag-print .bag-checklist-hint{display:none!important}
 body.bag-print .quick-item{display:grid!important;grid-template-columns:13pt 22pt minmax(0,1fr)!important;column-gap:4pt!important;align-items:center!important;padding:5pt!important;border:1px solid #ccc!important;box-shadow:none!important;break-inside:avoid!important}
 body.bag-print .quick-checkbox{display:none!important}
 body.bag-print .quick-print-check{display:block!important;font-family:Arial,sans-serif;font-size:16pt!important;color:#222!important;line-height:1!important;text-align:center}
 body.bag-print .quick-symbol{font-size:16pt!important}
 body.bag-print .quick-item-copy strong{font-size:10pt!important}
 body.bag-print .quick-item-detail{font-size:8pt!important;margin:1pt 0!important;line-height:1.35!important}
 body.bag-print .emergency-actions,body.bag-print .hospital-confirm button,body.bag-print .bag-sources,body.bag-print .bag-cautions{display:none!important}
 body.bag-print .hospital-confirm{margin-top:10pt!important;padding:8pt!important;break-inside:avoid!important}
 body.bag-print .hospital-confirm h2{font-size:13pt!important;margin:7pt 0!important}
 body.bag-print .hospital-confirm blockquote{font-size:10pt!important;line-height:1.5!important;margin:4pt 0!important;padding:6pt!important}
 body.bag-print .hospital-confirm-note{font-size:8pt!important;line-height:1.4!important}
 body.bag-print .first-notice,.bag-summary,.quick-item,.hospital-confirm{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
@media print{
 /* One-page emergency handout: item labels and arrival script are the useful output. */
 body.bag-print .first-heading p,body.bag-print .bag-summary,
 body.bag-print .bag-section-heading p,body.bag-print .quick-item-detail{display:none!important}
 body.bag-print .quick-item{padding:7pt!important;min-height:27pt!important}
 body.bag-print .quick-items{gap:5pt!important;margin:0 0 5pt!important}
 body.bag-print .bag-section-heading{margin:7pt 0 4pt!important}
 body.bag-print .hospital-confirm{margin-top:8pt!important}
 body.bag-print .first-heading{margin-bottom:5pt!important}
 body.bag-print .first-notice{margin-bottom:6pt!important}
 body.bag-print .quick-item-copy strong{font-size:10.5pt!important}
}

.bag-ifmissing{margin:-18px 0 28px;background:#f6fbf9;border-left:4px solid #66a08c;padding:11px 14px;border-radius:8px;color:#315649;font-size:14px;line-height:1.7}
@media(max-width:700px){.bag-ifmissing{margin:-12px 0 21px;font-size:13px}}
@media print{body.bag-print .bag-ifmissing{display:none!important}}

/* v10: answer-first cards; questions are optional and visually subordinate. */
.answer-first h3{font-size:19px;color:#332b31;margin-bottom:13px}
.answer-panel{background:#fff6f8;border-left:4px solid #ad5476;border-radius:12px;padding:15px 17px;margin:12px 0}
.answer-label{display:block;color:#843450;font-size:14px;font-weight:900;margin-bottom:6px}
.answer-panel p{font-size:16px;line-height:1.85;color:#342d32;margin:0;font-weight:600}
.ready-panel{background:#f0f7f3;border-radius:12px;padding:15px 17px;margin:12px 0}
.ready-label{display:block;color:#23644c;font-size:14px;font-weight:900;margin-bottom:6px}
.ready-panel p{font-size:15px;line-height:1.85;color:#343f3a;margin:0}
.exception-note{font-size:14px!important;line-height:1.85;color:#53454e!important;padding:0 3px;margin:13px 0!important}
.answer-first .task-details{margin-top:16px}
.answer-first .task-details summary{color:#6c5360;font-weight:700}
.answer-first .task-details .ask-inline a{display:flex;align-items:center;max-width:max-content;font-size:13px}
@media(max-width:740px){.answer-panel,.ready-panel{padding:14px}.answer-panel p{font-size:16px}.ready-panel p{font-size:15px}.answer-first h3{font-size:18px}.exception-note{font-size:14px!important}}
@media print{.answer-panel,.ready-panel{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.answer-diagram{background:#fff2f6;border-radius:10px;padding:14px 16px;font-size:16px!important;line-height:1.85!important;color:#342e34!important}
.ready-diagram{background:#eff7f2;border-radius:10px;padding:13px 16px;font-size:15px!important;line-height:1.8!important}
.room-regular{background:#eff7f2;border-radius:9px;padding:11px;font-size:15px!important;line-height:1.7!important}
.print-tasks li small{display:block;line-height:1.5;margin-top:4px}
.brief-task-list li small{line-height:1.5}

/* v10 mobile: show the first useful answer without excessive introduction. */
@media(max-width:740px){
 .guide-heading{padding-top:10px!important;padding-bottom:13px!important}
 .guide-heading .back-link{margin-bottom:8px;font-size:12px}
 .guide-heading h1{font-size:23px!important;line-height:1.3!important;margin:0 0 3px!important}
 .guide-heading p{font-size:12px!important;line-height:1.35!important}
 .guide-heading .page-title-row{gap:9px}
 .guide-heading .result-progress{min-height:56px;min-width:60px;border-radius:12px}
 .guide-heading .result-progress strong{font-size:21px}
 .guide-heading .result-progress strong span{font-size:11px}
 .guide-heading .result-progress small{font-size:9px}
 .guide-heading .selected-tags{margin-top:9px;gap:5px;max-height:28px;overflow:hidden}
 .guide-heading .selected-tags span{font-size:10px;padding:4px 8px}
 .guide-main .notice-callout{font-size:13px;line-height:1.55;padding:10px 12px;margin-bottom:11px;gap:7px}
 .guide-section-head{margin-top:10px;margin-bottom:11px}
 .guide-section-head h2{font-size:19px!important;margin:3px 0 0}
 .guide-section-head .section-kicker{font-size:10px}
 .guide-section-head .filter-button{min-height:36px;font-size:11px}
}

/* v11: profession-specific family handoff sheet */
.professional-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff0f5;border:1px solid #e7b7c8;border-radius:18px;padding:22px 24px;margin:22px 0}
.professional-entry strong{font-size:20px;color:#873052}.professional-entry p{font-size:14px;line-height:1.6;color:#594750;margin:6px 0 0}.professional-entry button{flex:none}
.handoff-page{padding-top:30px;padding-bottom:100px}.handoff-heading h1{font-size:clamp(26px,3.2vw,40px);margin:8px 0}.handoff-heading p{font-size:16px;line-height:1.7;max-width:720px;color:#63565e}
.handoff-how{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 23px}.handoff-how span{display:flex;align-items:center;gap:8px;padding:9px 13px;background:#fff5f8;border:1px solid #f1d9e2;border-radius:999px;font-weight:700;font-size:14px}.handoff-how b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#a83d65;color:white}
.handoff-recipient-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 17px}.handoff-recipient{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;background:white;border:2px solid #eddce3;color:#3b2f36;border-radius:15px;padding:16px;min-height:145px;cursor:pointer}.handoff-recipient>span{font-size:28px}.handoff-recipient strong{font-size:16px;line-height:1.35}.handoff-recipient small{font-size:12px;line-height:1.45;color:#695d65}.handoff-recipient i{font-size:12px;font-style:normal;color:#8a3153;font-weight:700}.handoff-recipient.is-current{background:#fff0f5;border-color:#a83d65;box-shadow:0 4px 14px #a83d6510}.handoff-recipient:focus-visible{outline:3px solid #613b50;outline-offset:2px}
.handoff-privacy{display:flex;gap:10px;align-items:flex-start;background:#f8f4f6;border-radius:12px;color:#5c5056;padding:13px 16px;font-size:13px;line-height:1.65;margin-bottom:23px}.handoff-privacy .ico{flex:none;color:#a83d65;margin-top:2px}
.handoff-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:24px;align-items:start}.handoff-editor,.handoff-preview-panel{min-width:0;background:white;border:1px solid #eadbe1;border-radius:18px;padding:22px;box-shadow:0 8px 22px #9d6b7d0c}.handoff-editor-intro h2{font-size:24px;margin:2px 0 9px}.handoff-editor-intro p{font-size:14px;line-height:1.7;color:#66565e;margin:0}.handoff-count{display:inline-block;background:#fff0f5;border-radius:10px;color:#99385e;padding:8px 12px;font-size:13px;font-weight:750;margin:14px 0 4px}
.handoff-question{border:0;border-top:1px solid #eedfe5;padding:20px 0 19px;margin:8px 0 0;min-width:0}.handoff-question legend{font-weight:800;font-size:17px;line-height:1.5;padding-top:20px;width:100%}.handoff-question legend small{display:block;font-weight:400;color:#665960;font-size:13px}.handoff-answer-tip{font-size:13px;color:#755c69;margin:6px 0 11px}.handoff-options{display:grid;gap:8px}.handoff-option{display:flex;align-items:center;gap:12px;border:1.5px solid #e7d7df;background:#fff;border-radius:11px;padding:12px;cursor:pointer;min-height:48px}.handoff-option:hover{background:#fff8fb}.handoff-option.selected,.handoff-option:has(input:checked){border-color:#ad5276;background:#fff0f6}.handoff-option input{accent-color:#a83d65;width:21px;height:21px;flex:none}.handoff-option span{line-height:1.45;font-size:15px;font-weight:600}.handoff-option:focus-within{outline:2px solid #743852;outline-offset:2px}
.handoff-notes{display:flex;flex-direction:column;gap:9px;margin:17px 0 18px}.handoff-notes strong{font-size:16px}.handoff-notes span{font-size:13px;color:#62545b}.handoff-notes textarea{border:1.5px solid #d8bdc9;border-radius:10px;padding:13px;font:inherit;font-size:15px;line-height:1.55;resize:vertical;min-height:95px;width:100%;box-sizing:border-box}
.handoff-action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.handoff-action-row .btn{justify-content:center;min-height:48px}.handoff-secondary-actions{display:flex;gap:13px;flex-wrap:wrap;align-items:center;margin-top:10px}.handoff-secondary-actions .btn{min-height:44px}
.handoff-preview-panel{background:#fff5f9;position:sticky;top:102px;padding:16px}.handoff-preview-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.handoff-preview-title strong{font-size:15px}.handoff-preview-title small{font-size:12px;color:#64555d}.handoff-paper{background:white;border:1px solid #e2d4db;padding:28px 25px;min-height:460px;color:#302c2f;box-shadow:0 12px 25px #89536a1a;font-size:13px}.handoff-paper-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#7d5365;border-bottom:2px solid #c1849e;padding-bottom:10px}.handoff-paper-brand{font-weight:850;color:#a83d65}.handoff-paper h2{font-size:21px;line-height:1.4;margin:19px 0 7px}.handoff-paper-lead{font-size:12px;color:#66505d;margin:0 0 12px}.handoff-paper-caution{border-radius:8px;background:#fbf0f5;font-size:11px;line-height:1.6;padding:9px 11px}.handoff-paper-section{border-bottom:1px solid #ede2e7;padding:10px 0;break-inside:avoid;page-break-inside:avoid}.handoff-paper-section h3{font-size:13px;color:#863956;margin:0 0 4px}.handoff-paper-section p{font-size:13px;line-height:1.7;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.handoff-paper-footer{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:28px;flex-wrap:wrap}.handoff-paper-small{font-size:10px;color:#696069;margin-top:13px;line-height:1.6}.handoff-empty{color:#68606a;line-height:1.8;border:1px dashed #dec8d3;padding:18px 14px}.handoff-smallprint{font-size:12px;color:#63535e;line-height:1.6}.handoff-print-root{display:none}
@media(max-width:980px){.handoff-layout{grid-template-columns:1fr}.handoff-preview-panel{position:static}.handoff-recipient-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.professional-entry{display:grid;padding:17px}.professional-entry strong{font-size:17px}.professional-entry button{width:100%}.handoff-page{padding-top:15px}.handoff-recipient-tabs{gap:8px}.handoff-recipient{min-height:125px;padding:11px}.handoff-recipient strong{font-size:14px}.handoff-recipient small{font-size:11px}.handoff-editor,.handoff-preview-panel{padding:14px}.handoff-editor-intro h2{font-size:22px}.handoff-option span{font-size:15px}.handoff-action-row{grid-template-columns:1fr}.handoff-paper{padding:20px 16px}.handoff-paper h2{font-size:19px}.handoff-paper-section p{font-size:13px}}
@media print{
 body.handoff-print{background:white!important}
 body.handoff-print #app>header,body.handoff-print #app>footer,body.handoff-print #app>nav,body.handoff-print .handoff-page>:not(.handoff-print-root){display:none!important;visibility:hidden!important}
 body.handoff-print .handoff-print-root,body.handoff-print .handoff-print-root *{display:revert;visibility:visible!important}
 body.handoff-print .handoff-print-root{display:block!important;position:static!important;margin:0!important;padding:0!important;width:100%!important}
 body.handoff-print .handoff-print-root .handoff-paper{display:block!important;box-shadow:none!important;border:0!important;padding:0!important;min-height:0!important;max-width:100%!important;margin:0!important;break-after:page!important;page-break-after:always!important}
 body.handoff-print .handoff-print-root .handoff-paper:not(.handoff-has-data){display:none!important}
 body.handoff-print .handoff-print-root .handoff-paper h2{font-size:18pt!important;margin:9pt 0 5pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-section{padding:7pt 0!important}
 body.handoff-print .handoff-print-root .handoff-paper-section h3{font-size:11pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-section p{font-size:11pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-caution{font-size:9pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-head{font-size:10pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-footer{font-size:10pt!important;margin-top:19pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-small{font-size:8pt!important}
 @page{size:A4;margin:13mm 15mm}
}

@media print{body.handoff-print .handoff-print-root .handoff-paper:not(.handoff-has-data){display:none!important}}

.handoff-shortcut{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#fff8fb;border:1px solid #ebceda;border-radius:12px;padding:12px 15px;margin:-8px 0 20px;font-size:13px;line-height:1.55}.handoff-shortcut button{border:1px solid #b2587d;color:#903858;border-radius:8px;padding:11px 13px;background:white;min-height:44px;cursor:pointer;font-size:13px;font-weight:800;white-space:nowrap;display:flex;align-items:center;gap:5px}.handoff-shortcut button .ico{width:14px}.handoff-shortcut button:hover{background:#ffe4ee}@media(max-width:700px){.handoff-shortcut{display:grid;gap:8px}.handoff-shortcut button{justify-content:center;white-space:normal}}

.handoff-clear-answer{margin-top:11px;border:none;background:none;color:#7b3b59;font-weight:700;font-size:12px;text-decoration:underline;cursor:pointer;min-height:36px;padding:6px 0}.handoff-paper-identity{font-size:12px;border-top:1px solid #f0e6ec;border-bottom:1px solid #f0e6ec;padding:10px 0;line-height:1.65;overflow-wrap:anywhere;margin:12px 0}.handoff-paper-footer{flex-direction:column;gap:7px}@media print{body.handoff-print .handoff-print-root .handoff-paper-identity{font-size:10pt!important}}

.handoff-clear-answer[hidden]{display:none!important}
/* Ctrl+P follows the same rule as the print button: all completed sheets, once each. */
@media print{
 body:has(.handoff-page):not(.handoff-print) .handoff-page>:not(.handoff-print-root){display:none!important;visibility:hidden!important}
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root{display:block!important;width:100%!important;margin:0!important;padding:0!important}
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root *{visibility:visible!important}
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper{display:block!important;min-height:0!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper:not(.handoff-has-data){display:none!important}
}

/* v12 — first-use input is progressive; summary and printed handoff use same data. */
.handoff-start-hint{background:#fff3f7;border-left:3px solid #ac5175;padding:10px 12px;border-radius:4px;color:#653a4d!important;font-size:14px!important;line-height:1.6!important;margin-top:8px!important}
.handoff-more{margin:15px 0;border:1.5px solid #e5c3d2;background:#fffafd;border-radius:13px;overflow:hidden}
.handoff-more>summary{list-style:none;padding:17px 16px;cursor:pointer;color:#873a5a;font-size:17px;font-weight:800;line-height:1.55;min-height:58px}
.handoff-more>summary::-webkit-details-marker{display:none}
.handoff-more>summary::after{content:'＋';float:right;color:#9c4768;font-weight:700}
.handoff-more[open]>summary::after{content:'－'}
.handoff-more>summary span{display:block;color:#645861;font-weight:500;font-size:13px}
.handoff-more>div{padding:0 15px 12px}
.handoff-datetime{display:flex;flex-direction:column;gap:6px;margin-top:12px;background:#fff8fb;border:1px solid #ecd8e2;border-radius:10px;padding:12px}
.handoff-datetime span{font-size:14px;font-weight:750;color:#73425b}
.handoff-datetime input{font:inherit;border:1px solid #b68da0;border-radius:8px;padding:10px 9px;min-height:46px;max-width:100%;box-sizing:border-box}
.handoff-datetime small{font-size:12px;color:#60565b;line-height:1.65}
.handoff-paper-end{break-inside:avoid;page-break-inside:avoid}
.handoff-mobile-actions{display:none}
@media(max-width:980px){.handoff-editor-intro{scroll-margin-top:78px}}
@media(max-width:650px){
 .handoff-heading{margin-bottom:12px}.handoff-heading h1{font-size:25px!important}.handoff-heading p{font-size:14px!important;line-height:1.6!important;margin:6px 0 0!important}
 .handoff-recipient-tabs{margin-bottom:12px;gap:7px}
 .handoff-recipient{min-height:92px;padding:11px;gap:4px}.handoff-recipient>span{font-size:23px}
 .handoff-recipient small{display:none}.handoff-recipient strong{font-size:14px}
 .handoff-privacy{margin-bottom:12px;font-size:12px;line-height:1.5;padding:9px 11px}
 .handoff-question{padding:10px 0 12px;margin:5px 0 0}.handoff-question legend{font-size:16px;padding-top:13px}
 .handoff-answer-tip{font-size:12px;margin:4px 0 7px}
 .handoff-option{min-height:49px;padding:10px}.handoff-option span{font-size:15px}
 .handoff-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:65px;background:#fff8fbeF;padding:8px;border:1px solid #ead5de;border-radius:12px;box-shadow:0 -4px 16px #713b4c1f;z-index:7;margin-top:16px}
 .handoff-mobile-actions .btn{min-height:45px;font-size:12px;line-height:1.3;padding:7px}
 #handoff-preview-panel{scroll-margin-top:75px}
}
@media print{
 body.handoff-print .handoff-print-root .handoff-paper-end,
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper-end{break-inside:avoid!important;page-break-inside:avoid!important}
 body.handoff-print .handoff-print-root .handoff-paper-footer{margin-top:8pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-section{padding:5pt 0!important}
 body.handoff-print .handoff-print-root .handoff-paper-small{margin-top:7pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-caution{line-height:1.45!important}
 body.handoff-print .handoff-print-root .handoff-paper h2{margin:7pt 0 4pt!important}
}

@media(max-width:650px){
 .handoff-mobile-actions:not(.is-ready){display:none}
 .handoff-recipient{min-height:78px;padding:9px;gap:2px}
 .handoff-recipient>span{font-size:20px}
 .handoff-recipient strong{font-size:13px}
 .handoff-editor-intro h2{font-size:20px}
 .handoff-editor-intro p{font-size:13px}
 .handoff-count{margin:9px 0 3px;padding:6px 10px}
}

/* v13: 一段目の選択に応じて開く、任意の詳細回答。 */
.handoff-followups:empty{display:none}
.handoff-detail-group{background:#fff5f9;border:1.5px solid #e2b2c8;border-left:4px solid #a74771;border-radius:12px;margin:14px 0 4px;padding:13px 14px 8px;min-width:0}
.handoff-detail-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:5px;margin:0 0 6px}
.handoff-detail-head strong{font-size:16px;line-height:1.45;color:#71304d}
.handoff-detail-head span{font-size:12px;color:#63515b}
.handoff-detail-hint{font-size:13px;line-height:1.65;color:#594852;margin:7px 0 11px}
.handoff-detail-group .handoff-child-question{border:0;border-top:1px solid #ecd4df;margin:0;padding:12px 0 13px;min-width:0}
.handoff-detail-group .handoff-child-question legend{font-size:15px;line-height:1.5;color:#512e40;padding:12px 0 0;font-weight:750}
.handoff-detail-group .handoff-child-question legend small{font-size:12px}
.handoff-detail-group .handoff-answer-tip{margin:3px 0 6px}
.handoff-detail-group .handoff-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.handoff-detail-group .handoff-option{margin:0;min-height:46px;padding:9px 10px;background:white}
.handoff-detail-group .handoff-option span{font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.handoff-paper-detail{border-left:2px solid #b45a7c;padding:4px 0 4px 11px;margin:6px 0 4px;background:#fffafd;break-inside:avoid-page}
.handoff-paper-detail>strong{font-size:12px;line-height:1.5;color:#71364f}
.handoff-paper-detail p{font-size:11px;line-height:1.55;margin:3px 0!important;overflow-wrap:anywhere}
.handoff-paper-detail p span{font-weight:700;color:#55444c}
@media(max-width:650px){
 .handoff-detail-group{padding:11px 10px;margin:12px 0 2px}
 .handoff-detail-group .handoff-options{grid-template-columns:1fr}
 .handoff-detail-group .handoff-child-question legend{font-size:15px}
 .handoff-detail-group .handoff-option span{font-size:15px}
 .handoff-detail-head strong{font-size:16px}
}
@media print{
 body.handoff-print .handoff-paper-detail,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-detail{background:transparent!important;margin:5pt 0!important;padding:3pt 0 3pt 8pt!important;break-inside:avoid!important}
 body.handoff-print .handoff-paper-detail p,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-detail p{font-size:10pt!important;line-height:1.4!important;margin:3pt 0!important}
}
/* 数字・手すりなど短い選択肢はスマホでも二列にして、縦スクロールを軽減 */
@media(max-width:650px){
 .handoff-detail-group .handoff-child-question:has([data-handoff-field="r_entry_count"]) .handoff-options,
 .handoff-detail-group .handoff-child-question:has([data-handoff-field="r_entry_height"]) .handoff-options,
 .handoff-detail-group .handoff-child-question:has([data-handoff-field="r_entry_rail"]) .handoff-options,
 .handoff-detail-group .handoff-child-question:has([data-handoff-field="r_stairs_number"]) .handoff-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v15: 日付は任意入力。初期画面の項目を圧迫しない。 */
.handoff-date-only{margin-top:5px}
.handoff-date-only span{display:none}
.handoff-date-only input{width:100%;max-width:290px;background:white}
.handoff-child-question:has(.handoff-date-only){padding-bottom:10px}
.handoff-child-question:has(.handoff-date-only) .handoff-options{display:none}
@media(max-width:600px){.handoff-date-only input{max-width:100%}}
/* v15: SW相談シートは詳細を保ったまま、末尾だけの別ページを減らす。 */
@media print {
 body.handoff-print .handoff-print-root .handoff-paper-section,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-section{padding:3.5pt 0!important}
 body.handoff-print .handoff-print-root .handoff-paper-section p,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-section p{font-size:10pt!important;line-height:1.48!important}
 body.handoff-print .handoff-print-root .handoff-paper-section h3,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-section h3{font-size:10pt!important;margin-bottom:2pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-detail,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-detail{margin:3pt 0!important;padding:2pt 0 2pt 7pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-detail p,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper-detail p{font-size:9.5pt!important;line-height:1.35!important;margin:1.5pt 0!important}
}

/* v16: 共通→必要な職種へ、二段階で迷わない選択画面 */
.handoff-flow{display:grid;gap:10px;margin:16px 0 14px}
.handoff-flow-first,.handoff-flow-second{display:flex;gap:13px;align-items:center;border:1px solid #ead4df;border-radius:15px;background:#fffafc;padding:14px 16px}
.handoff-flow-first{border:2px solid #bc6488;background:#fff0f6}
.handoff-flow-first>div,.handoff-flow-second>div{flex:1;min-width:0;display:grid;gap:4px}
.handoff-flow strong{font-size:16px;color:#503342}
.handoff-flow small{font-size:13px;color:#695762;line-height:1.55}
.handoff-step-number{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#a83d65;color:white;font-weight:800}
.handoff-flow-second .handoff-step-number{background:#78576a}
.handoff-flow-first .btn{flex-shrink:0;min-height:44px}
.handoff-next{border:1px solid #e6c1d3;background:#fff4f8;border-radius:13px;padding:17px;margin:15px 0;display:grid;gap:10px}
.handoff-next>strong{font-size:16px}
.handoff-next>p{margin:0;color:#654d5d;font-size:13px;line-height:1.55}
.handoff-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.handoff-next-grid .btn{justify-content:space-between;min-height:48px;text-align:left;font-size:13px}
.handoff-common-status{font-size:13px;color:#6c4f5e;line-height:1.65}
@media(max-width:650px){.handoff-flow-first{flex-wrap:wrap}.handoff-flow-first .btn{width:100%}.handoff-flow strong{font-size:15px}.handoff-flow small{font-size:13px}.handoff-next-grid{grid-template-columns:1fr}.handoff-flow-first,.handoff-flow-second{padding:12px}}
@media print{.handoff-flow,.handoff-next,.handoff-common-status{display:none!important}}

/* v17: 共通を主軸に、専門項目は任意。共通情報を重複させない印刷導線 */
.handoff-quick-roles{background:#fff9fc;border:1px solid #eccddb;border-radius:16px;padding:18px;margin:8px 0 16px}
.handoff-quick-roles>strong{font-size:16px;color:#693148}
.handoff-quick-roles p{font-size:14px;line-height:1.65;color:#66555e;margin:6px 0 12px}
.handoff-quick-roles-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.handoff-quick-roles-grid .btn{min-height:48px;font-size:13px;white-space:normal;padding:9px 8px}
.handoff-common-recap{margin:14px 0 2px;border-left:4px solid #b85f82;background:#fff8fb;padding:13px 15px;border-radius:7px}
.handoff-common-recap strong{font-size:15px;color:#66364b}.handoff-common-recap p{font-size:13px;line-height:1.6;margin:6px 0}
.handoff-common-recap ul{font-size:13px;line-height:1.65;padding-left:19px;margin:8px 0;color:#54434b}
.handoff-pair-option{border:1px solid #e7cad8;border-radius:12px;background:#fff7fb;padding:15px;margin:12px 0}
.handoff-pair-option p{font-size:14px;line-height:1.6;margin:0 0 9px}
.handoff-pair-option small{font-size:12px;color:#66545c;display:block;margin-top:8px}
@media(max-width:820px){.handoff-quick-roles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.handoff-quick-roles-grid{grid-template-columns:1fr 1fr}.handoff-quick-roles-grid .btn{font-size:12px;min-height:48px}}


/* v18: Common answers are reused; professional sheets only ask for details. */
.handoff-shared-detail{margin:14px 0;padding:13px 16px;background:#fff8fb;border-left:3px solid #b45f80;border-radius:9px}
.handoff-shared-detail>strong{display:block;font-size:15px;color:#67354c;line-height:1.5}
.handoff-shared-detail>p{font-size:13px;line-height:1.6;color:#5c5057;margin:5px 0 9px}
.handoff-shared-detail>.handoff-detail-group{margin-top:9px}
.handoff-shared-detail .handoff-question{background:white;border-radius:8px;padding:10px}

/* Checklist updates are intentionally local, so focus and scroll remain stable. */
@media (prefers-reduced-motion:reduce){.quick-item{transition:none}}
@media print{
  body.bag-print .handoff-shortcut{display:none!important}
  body.bag-print .quick-item:focus-within{outline:none!important}
}

/* v20: keep professional sheet navigation in reach while completing long questionnaires. */
.handoff-role-switch{position:sticky;top:86px;z-index:15;display:grid;gap:5px;background:rgba(255,250,252,.98);border:1px solid #eacbd8;box-shadow:0 4px 14px #713b4c16;border-radius:13px;padding:8px;margin:-9px -9px 16px;backdrop-filter:blur(10px)}
.handoff-role-switch-title{font-size:11px;line-height:1.3;color:#735467;font-weight:800;padding:0 4px}
.handoff-role-switch-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;min-width:0}
.handoff-role-switch-button{border:1px solid #ecd5df;background:white;border-radius:8px;color:#69495b;cursor:pointer;font-size:12px;font-weight:800;min-width:0;min-height:42px;padding:6px 2px;line-height:1.25;white-space:nowrap}
.handoff-role-switch-button.is-current{background:#a83d65;border-color:#a83d65;color:white}
.handoff-role-switch-button:focus-visible{outline:3px solid #58384a;outline-offset:2px}
.handoff-role-switch-dot{font-size:8px;vertical-align:middle}
.handoff-editor-intro{scroll-margin-top:172px}
@media(max-width:740px){.handoff-role-switch{top:70px;margin:-5px -5px 14px;padding:7px}.handoff-role-switch-title{font-size:11px}.handoff-role-switch-button{font-size:11px;padding:5px 1px;min-height:42px}.handoff-editor-intro{scroll-margin-top:162px}}
@media(max-width:359px){.handoff-role-switch-buttons{gap:2px}.handoff-role-switch-button{font-size:10px;letter-spacing:-.3px}}
@media print{.handoff-role-switch{display:none!important}}
/* Tablet widths: keep the header on one row instead of squeezing seven links. */
@media screen and (min-width:741px) and (max-width:1000px){
 .desktop-nav,.top-sheet{display:none!important}
 .nav-wrap{min-height:85px}
 .mobile-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:40;bottom:0;left:0;right:0;background:rgba(255,255,255,.98);border-top:1px solid #eedde4;box-shadow:0 -8px 20px #00000008;padding:5px 4px calc(5px + env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom))}
 .mobile-bottom button{background:none;border:none;color:#796a73;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:11px;font-weight:800;border-radius:9px;min-height:45px}
 .mobile-bottom button[aria-current=page]{background:#fff0f5;color:#9f3b61}
 .mobile-bottom .ico{height:22px;width:22px}
 .site-footer{padding-bottom:94px}
}
@media print{.mobile-bottom{display:none!important}}
@media screen and (min-width:1001px){.handoff-role-switch{top:98px}}

/* v21: 選択した項目のすぐ下にだけ詳細を展開し、長い項目一覧でも探し回らない。 */
.handoff-inline-followups:empty{display:none}
.handoff-inline-followups:not(:empty){min-width:0;margin:-5px 0 5px 9px;animation:handoff-detail-appear .16s ease-out}
.handoff-inline-followups .handoff-detail-group{margin:0 0 5px;border-radius:0 11px 11px 11px}
@keyframes handoff-detail-appear{from{opacity:.55;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.handoff-inline-followups:not(:empty){animation:none}}

/* v21.1: 略語を使わない職種名でもスマホで途切れないナビゲーション */
.handoff-role-switch-buttons{grid-template-columns:repeat(4,minmax(0,1fr));}
.handoff-role-switch-button{white-space:normal;overflow-wrap:anywhere;padding:7px 4px;}
.handoff-role-switch-button[data-value="social"]{font-size:11px;}
@media(max-width:740px){.handoff-role-switch-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.handoff-role-switch-button{min-height:48px;font-size:12px;padding:7px 4px}.handoff-role-switch-button[data-value="social"]{font-size:11px}.handoff-editor-intro{scroll-margin-top:210px}}
@media(max-width:359px){.handoff-role-switch-button{font-size:11px;letter-spacing:normal}}

/* v21.1 QR: fixed public link only; visible in A4 handouts and on preview. */
/* にゅういんず 印刷用QR — external resources and personal data are not used. */
.nz-print-qr {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4mm;
  width: 100%;
  min-height: 25mm;
  padding: 2mm 0 0;
  border-top: .3mm solid #d7bdc8;
  color: #30343a;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", sans-serif;
  break-inside: avoid;
  page-break-inside: avoid;
}
.nz-print-qr__text { min-width: 0; flex: 1; }
.nz-print-qr__brand { font-size: 10pt; font-weight: 700; color: #7f354f; margin: 0 0 1.2mm; }
.nz-print-qr__title { font-size: 9pt; font-weight: 700; margin: 0 0 .8mm; }
.nz-print-qr__note { font-size: 7.3pt; line-height: 1.55; color: #4e535b; margin: 0; }
.nz-print-qr__url { display: block; margin-top: 1mm; font-size: 7pt; overflow-wrap: anywhere; color: #42464c; }
.nz-print-qr__image { display: block; flex: 0 0 auto; width: 21mm; height: 21mm; border: 0; background: #fff; image-rendering: auto; }
@media print {
  .nz-print-qr { color: #1a1a1a!important; background:#fff!important; }
  .nz-print-qr__brand { color:#1a1a1a!important; }
  .nz-print-qr__image { width:21mm!important; height:21mm!important; }
  .nz-print-qr, .nz-print-qr * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Avoid showing QR in the regular landing page except its print mode. */
@media screen{.emergency-bag .nz-print-qr{display:none!important}}
@media print{
  .nz-print-qr{display:flex!important;visibility:visible!important;min-height:25mm;gap:4mm}
  .nz-print-qr *{visibility:visible!important}
  body.handoff-print .handoff-print-root .handoff-paper-end .nz-print-qr,
  body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper-end .nz-print-qr{display:flex!important}
  body.bag-print .emergency-bag .nz-print-qr{display:flex!important}
  body.bag-print .emergency-bag .nz-print-qr *{display:revert!important;visibility:visible!important}
  .nz-print-qr__image{display:block!important;visibility:visible!important;width:21mm!important;height:21mm!important}
  .nz-print-qr__text{display:block!important;visibility:visible!important}
  .handoff-paper-end .nz-print-qr{margin-top:6pt}
}

/* v21.2 — respectful introduction, response preference, and chronological history */
.handoff-course{display:flex;flex-direction:column;gap:8px;margin:19px 0;border:1px solid #e8cbd8;background:#fff8fb;border-radius:12px;padding:16px}
.handoff-course>strong{font-size:16px;color:#743852;line-height:1.55}
.handoff-course>span,.handoff-course>small{font-size:13px;color:#5b5256;line-height:1.65}
.handoff-course textarea{width:100%;box-sizing:border-box;border:1.5px solid #b98fa2;border-radius:9px;background:#fff;color:#302b2e;padding:12px;font:inherit;font-size:15px;line-height:1.7;resize:vertical;min-height:130px}
.handoff-course textarea:focus-visible,.handoff-reply-choice input:focus-visible{outline:3px solid #9c4b71;outline-offset:3px}
.handoff-reply-choice{border:1px solid #e8cbd8;padding:14px;border-radius:12px;margin:16px 0;background:#fff}
.handoff-reply-choice legend{font-weight:800;color:#713a53;line-height:1.6;padding:0 4px;max-width:100%;font-size:15px}
.handoff-reply-choice label{display:flex;align-items:start;gap:10px;padding:10px 8px;border-bottom:1px solid #f0e4e9;cursor:pointer;font-size:14px;line-height:1.6}
.handoff-reply-choice label input{width:19px;height:19px;accent-color:#983d64;flex:none;margin-top:3px}
.handoff-reply-choice label span{flex:1}.handoff-reply-choice label strong{color:#753b55}
.handoff-reply-choice>small{display:block;color:#64575e;font-size:12px;line-height:1.6;padding:9px 6px 0}
.handoff-paper-letter{background:#fff9fc;border:1px solid #edd4de;padding:10px 12px;border-radius:8px;break-inside:avoid-page;margin:12px 0 8px}
.handoff-paper-letter>strong{font-size:12px;color:#773c57}
.handoff-paper-letter>p{font-size:12px;line-height:1.65;margin:4px 0;overflow-wrap:anywhere}
.handoff-paper-letter .handoff-paper-reply{border-top:1px solid #e9d5df;padding-top:6px;margin-top:7px}
.handoff-paper-letter>small{display:block;font-size:10px;color:#60535b;line-height:1.5}
.handoff-paper-course p{white-space:pre-wrap;overflow-wrap:anywhere}
@media print{
 body.handoff-print .handoff-print-root .handoff-paper-letter,
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper-letter{break-inside:avoid!important;padding:7pt 9pt!important;margin:7pt 0 5pt!important}
 body.handoff-print .handoff-print-root .handoff-paper-letter p,
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper-letter p{font-size:9.5pt!important;line-height:1.42!important;margin:3pt 0!important}
 body.handoff-print .handoff-print-root .handoff-paper-letter small,
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper-letter small{font-size:8pt!important;line-height:1.35!important}
}

.handoff-course-wrap{margin:16px 0 20px;border:1px solid #e8cbd8;border-radius:12px;overflow:hidden;background:#fff8fb}
.handoff-course-wrap>summary{list-style:none;cursor:pointer;padding:15px;font-size:15px;font-weight:800;line-height:1.5;color:#743852}
.handoff-course-wrap>summary::-webkit-details-marker{display:none}
.handoff-course-wrap>summary::before{content:'＋';display:inline-block;margin-right:8px;color:#8a4562}
.handoff-course-wrap[open]>summary::before{content:'－'}
.handoff-course-wrap>summary span{display:block;font-size:12px;font-weight:500;color:#63515c;margin:3px 0 0 24px}
.handoff-course-wrap .handoff-course{margin:0;padding:12px 15px 16px;border:0;border-top:1px solid #e8cbd8;background:#fff}

/* v21.4: purpose-first home, emergency-only checklist, clear mobile navigation */
.home-purpose{background:linear-gradient(155deg,#fff8fb 0%,#fff1f6 48%,#fffdfd 100%);padding:clamp(27px,4vw,56px) 0 37px;border-bottom:1px solid #f1dce5}
.home-intro{max-width:720px;margin:0 0 28px}
.home-intro h1{margin:11px 0;font-size:clamp(30px,4.4vw,49px);line-height:1.36;letter-spacing:-.025em;color:#392c34}
.home-intro h1 em{font-style:normal;color:#9c395c}
.home-intro p{font-size:16px;line-height:1.85;color:#564b52;margin:0}
.home-section-head{margin-bottom:17px}
.home-section-head h2{font-size:clamp(20px,2.5vw,27px);line-height:1.45;color:#3b3037;margin:0 0 4px}
.home-section-head p{color:#61565f;line-height:1.65;margin:0;font-size:13px}
.home-purpose-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-purpose-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;text-align:left;padding:19px 16px 18px;gap:15px;background:#fff;border:2px solid #edd7e1;border-radius:18px;color:#382e35;box-shadow:0 7px 20px rgba(91,46,65,.06);min-width:0;min-height:206px;transition:transform .15s,border-color .15s,box-shadow .15s}
.home-purpose-card:hover{border-color:#c47596;transform:translateY(-2px);box-shadow:0 12px 25px rgba(91,46,65,.1)}
.home-purpose-card:focus-visible,.home-tool-card:focus-visible,.home-after-link:focus-visible{outline:3px solid #893253;outline-offset:3px}
.home-purpose-icon{display:grid;place-items:center;height:47px;width:47px;border-radius:14px;background:#fbe3ed;color:#963a60}
.home-purpose-icon .ico{height:26px;width:26px}
.home-purpose-inpatient .home-purpose-icon{background:#e9f5f8;color:#306d80}
.home-purpose-discharge .home-purpose-icon{background:#eaf5ef;color:#396e59}
.home-purpose-urgent .home-purpose-icon{background:#fff0e6;color:#9d592d}
.home-purpose-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.home-purpose-body small{font-size:11px;font-weight:750;color:#81586a}
.home-purpose-body strong{font-size:19px;line-height:1.45;color:#3b2c35}
.home-purpose-body>span{font-size:12px;line-height:1.65;color:#685e64}
.home-purpose-arrow{position:absolute;right:15px;top:25px;color:#b26a86}
.home-purpose-arrow .ico{width:18px;height:18px}
.home-after-link{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px;padding:10px 0;border:0;background:none;color:#853753;font-size:14px;font-weight:800;text-align:left}
.home-after-link span{font-size:12px;color:#6c6067;font-weight:500}
.home-after-link .ico{height:17px;width:17px}
.home-tools{padding-top:35px;padding-bottom:68px}
.home-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.home-tool-card{display:flex;gap:15px;align-items:center;text-align:left;background:#fff;border:1px solid #ead9e0;border-radius:15px;padding:18px;min-height:104px;color:#3e3238;box-shadow:0 4px 14px rgba(72,30,50,.03)}
.home-tool-card:hover{border-color:#c47596;background:#fffbfd}
.home-tool-feature{background:#fff5f9;border-color:#d6a2b8}
.home-tool-icon{flex:0 0 39px;width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#fbe6ef;color:#913958}
.home-tool-card>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.home-tool-card strong{font-size:15px;line-height:1.5}
.home-tool-card small{font-size:12px;line-height:1.6;color:#696069}
.home-tool-arrow{width:17px;height:17px;color:#a45a7b}
.home-safety-note{max-width:930px;font-size:12px;line-height:1.8;color:#665c62;margin:22px 0 0}
.bag-page-back{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:0 0 15px}
.bag-page-back .back-link{margin:0;min-height:38px}
.bag-next{padding-top:23px;padding-bottom:54px}
.bag-next h2{font-size:21px;margin:0 0 15px}
.bag-next-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:900px){.home-purpose-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-purpose-card{min-height:165px}}
@media(max-width:560px){
 .home-purpose{padding:23px 0 27px}.home-intro{margin-bottom:23px}.home-intro h1{font-size:30px}.home-intro p{font-size:14px;line-height:1.7}
 .home-purpose-grid{gap:9px}.home-purpose-card{padding:13px 11px;min-height:164px;gap:11px;border-radius:14px}
 .home-purpose-icon{width:36px;height:36px;border-radius:10px}.home-purpose-icon .ico{width:20px;height:20px}
 .home-purpose-arrow{top:17px;right:10px}.home-purpose-arrow .ico{width:15px;height:15px}
 .home-purpose-body strong{font-size:15px}.home-purpose-body small{font-size:10px}.home-purpose-body>span{font-size:11px}
 .home-after-link{font-size:13px;gap:7px}.home-after-link span{font-size:11px}
 .home-tools{padding-top:26px;padding-bottom:90px}.home-tools-grid{grid-template-columns:1fr;gap:9px}
 .home-tool-card{min-height:81px;padding:12px;gap:11px}.home-tool-card strong{font-size:14px}.home-tool-card small{font-size:11px}
 .home-tool-icon{flex-basis:35px;width:35px;height:35px}.home-section-head h2{font-size:21px}
 .bag-page-back{align-items:flex-start;flex-direction:column;gap:0}.bag-next-actions{display:grid;grid-template-columns:1fr}.bag-next-actions .btn{width:100%}
}
@media print{.home-purpose,.home-tools,.bag-page-back,.bag-next{display:none!important}}

/* v21.5: four stages, planned packing and optional post-discharge care help */
.home-purpose-after .home-purpose-icon{background:#f5eaf6;color:#795386}
.guide-direct-bag{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fff6fa;border:1px solid #e6bbcc;border-radius:16px;padding:16px 18px;margin:0 0 17px}
.guide-direct-bag>span{display:flex;flex-direction:column;gap:5px;flex:1;min-width:190px}
.guide-direct-bag strong{font-size:16px;color:#563243}
.guide-direct-bag small{font-size:13px;color:#66545f;line-height:1.6}
.after-care-guide{background:#fffafc;border:2px solid #e5c2d0;border-radius:18px;padding:20px;margin-bottom:21px}
.after-care-heading h2{font-size:21px;line-height:1.5;margin:5px 0 6px;color:#553143}
.after-care-heading p,.after-care-result p,.after-care-small{line-height:1.75;color:#60545b;font-size:13px;margin:0}
.after-care-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0 6px}
.after-care-option{border:1.5px solid #dfc5d0;border-radius:12px;padding:13px 12px;text-align:left;background:white;color:#43333c;min-height:78px;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.after-care-option strong{font-size:14px;line-height:1.45}
.after-care-option small{font-size:11px;color:#685b62;line-height:1.45}
.after-care-option.selected{border-color:#983d63;background:#fbeaf1;box-shadow:inset 0 0 0 1px #983d63}
.after-care-option:focus-visible{outline:3px solid #893253;outline-offset:2px}
.after-care-result{margin:15px 0 0;padding:13px 15px;background:#fff;border-left:4px solid #b96d8e;border-radius:10px;display:flex;align-items:flex-start;flex-direction:column;gap:12px}
.after-care-result .btn{max-width:100%;white-space:normal;text-align:left;min-height:44px}
.after-care-coming{font-size:12px!important;color:#655562!important}
.after-care-small{font-size:12px;margin-top:12px}
@media(max-width:560px){.after-care-guide{padding:13px}.after-care-heading h2{font-size:18px}.after-care-options{gap:7px}.after-care-option{padding:10px 9px;min-height:86px}.after-care-option strong{font-size:13px}.after-care-option small{font-size:11px}.guide-direct-bag{padding:13px}.guide-direct-bag .btn{width:100%}}
@media print{.after-care-guide,.guide-direct-bag{display:none!important}}

/* v21.6: concise first-screen actions and unambiguous checklist semantics */
@media screen {
  .emergency-bag{padding-top:12px}
  .emergency-bag .first-heading{margin:2px 0 15px}
  .emergency-bag .first-heading h1{font-size:clamp(24px,3vw,34px);margin:0;line-height:1.4}
  .emergency-bag .bag-checklist-hint{margin:0 0 14px;background:#fff6fa;padding:13px}
  .emergency-bag .bag-section-heading{align-items:center;margin:21px 0 9px}
  .emergency-bag .bag-section-heading h2{margin:0;font-size:clamp(18px,2vw,21px)}
  .emergency-bag .quick-items{margin-bottom:17px}
  .emergency-bag .quick-item{padding:10px 12px;min-height:60px}
  .emergency-bag .quick-item-detail{font-size:12px;line-height:1.45}
  .emergency-bag .bag-controls{margin-top:18px}
  .bag-essential-note{color:#625159;font-size:13px;line-height:1.6;margin:15px 2px}
  .bag-extra-details{margin:12px 0 4px;border:1px solid #ead6df;border-radius:12px;background:white;padding:12px}
  .bag-extra-details summary{cursor:pointer;font-weight:750;font-size:13px;color:#843958;line-height:1.6}
  .bag-extra-inner{padding:10px 0 0;font-size:13px;line-height:1.7;color:#564951}
  .bag-extra-inner .hospital-confirm{border:0;background:#fff8fa;padding:12px;margin:0 0 10px;border-radius:10px}
  .bag-extra-inner .hospital-confirm h2{font-size:16px;margin:0 0 7px}
  .bag-extra-inner .hospital-confirm p{font-size:13px;margin:0 0 9px}
  .bag-next{padding-top:7px}
  .bag-next h2{font-size:17px}
  .guide-main .guide-use-hint{font-size:13px;line-height:1.55;margin:4px 0 15px;color:#5b4450}
  .guide-main .guide-use-hint strong{color:#813958}
  .task-simple{padding:17px}
  .task-simple h3{margin:0 0 10px}
  .task-simple .ready-panel{margin:0 0 10px}
  .task-more{padding:0;border:0}
  .task-more summary{font-size:13px;color:#8d3d61;padding:10px 0;cursor:pointer;font-weight:750}
  .task-more-body{border-top:1px solid #efe5e9;padding:8px 0 3px}
  .task-more-body>p{font-size:13px;line-height:1.7;margin:7px 0;color:#50464b}
  .task-simple .task-complete-row{margin-top:6px}
}
@media(max-width:740px){
 .guide-aside{order:initial}
 .emergency-bag .bag-page-back{margin-bottom:6px}
 .emergency-bag .bag-checklist-hint{padding:12px;font-size:13px}
 .emergency-bag .quick-item-detail{font-size:12px}
}
@media print {
  body.bag-print .bag-essential-note{display:block!important;font-size:9pt!important;margin:6pt 0!important}
  body.bag-print .bag-extra-details,body.bag-print .bag-extra-inner{display:none!important}
  body.bag-print .bag-checklist-hint{display:block!important;font-size:9pt!important;margin:0 0 5pt!important;padding:0!important;border:0!important}
  body.bag-print .bag-checklist-hint output{display:none!important}
  body.bag-print .bag-checklist-hint strong{font-size:9pt!important}
  body.bag-print .bag-section-heading{margin:7pt 0 4pt!important}
}

@media screen{
  /* Labels first; detailed information remains in the opt-in disclosure below. */
  .emergency-bag .quick-item-detail{display:none!important}
  .emergency-bag .quick-item{min-height:56px}
  .emergency-bag .bag-controls{justify-content:flex-start;padding:12px 15px}
  .emergency-bag .bag-control-buttons{justify-content:flex-start}
  .bag-item-definition{margin:8px 0 0;display:grid;gap:10px}
  .bag-item-definition>div{border-bottom:1px solid #efe3e9;padding-bottom:8px}
  .bag-item-definition dt{font-weight:800;font-size:13px}
  .bag-item-definition dd{font-size:13px;margin:2px 0 0;line-height:1.6}
}

/* v21.7: one continuous packing list; item-specific notes replace duplicate group help. */
@media screen {
  .emergency-bag .bag-all-items{margin-top:4px;margin-bottom:8px}
  .emergency-bag .bag-all-items .quick-item-detail{display:block!important;font-size:12px;line-height:1.5;color:#675761;margin-top:3px}
  .emergency-bag .bag-all-items .quick-item{align-items:start;min-height:70px}
  .emergency-bag .bag-all-items .quick-checkbox,.emergency-bag .bag-all-items .quick-symbol{align-self:center}
}
@media print {
  body.bag-print .bag-all-items{margin:3pt 0 7pt!important;gap:5pt!important}
  body.bag-print .bag-all-items .quick-item-detail{display:block!important;font-size:8.5pt!important;line-height:1.32!important;margin-top:1.5pt!important;color:#444!important}
  body.bag-print .bag-all-items .quick-item{min-height:0!important;padding:5pt!important;align-items:start!important}
  body.bag-print .bag-all-items .quick-print-check,body.bag-print .bag-all-items .quick-symbol{align-self:center!important}
}

/* v21.8 — Only four situation choices + one medical handoff link on home.
   Keep the brand and a single return-home action on subpages. */
.nav-wrap{min-height:68px;gap:12px}
.nav-home-back{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:44px;border:1px solid #e7c2d1;border-radius:12px;background:white;color:#873759;font-size:13px;font-weight:800;padding:8px 12px;white-space:nowrap}
.nav-home-back .ico{width:17px;height:17px}
.nav-home-back:focus-visible{outline:3px solid #873759;outline-offset:3px}
.home-handoff{padding-top:22px;padding-bottom:38px}
.home-handoff .home-tool-card{width:100%;max-width:720px;margin-inline:auto}
.guide-aside .aside-schemes{margin-top:9px}
/* Legacy persistent menu was removed; forms should not reserve its space. */
@media screen and (max-width:1000px){
 .mobile-bottom{display:none!important}
 .site-footer{padding-bottom:28px}
}
@media screen and (max-width:740px){
 html{scroll-padding-bottom:20px}
 .task-card,.pack-row,.room-result,.scheme-card{scroll-margin-bottom:20px}
 .handoff-mobile-actions{bottom:8px}
 .nav-wrap{min-height:65px}
 .nav-home-back{font-size:12px;padding:8px 10px}
 .home-handoff{padding-top:20px;padding-bottom:32px}
}
@media print{.nav-home-back,.home-handoff{display:none!important}}

/* v21.9: one print choice. Desktop uses the inline action, phones use the sticky equivalent. */
.handoff-print-hint{font-size:13px;line-height:1.6;color:#64525d;margin:8px 0 14px}
@media (max-width:650px){
 .handoff-action-row{grid-template-columns:1fr}
 .handoff-page:has(.handoff-mobile-actions.is-ready) .handoff-action-row>[data-action="handoff-print"]{display:none!important}
}
@media print{
 body.handoff-print .handoff-print-root .handoff-paper:not(.handoff-has-data),
 body:has(.handoff-page):not(.handoff-print) .handoff-print-root .handoff-paper:not(.handoff-has-data){display:none!important}
}

/* v21.10: 編集可能なA4プレビュー。個人情報は入力後も DOM とメモリ内だけ。 */
.handoff-mode-switch{display:flex;gap:8px;padding:6px;background:#fff0f5;border:1px solid #f0d9e2;border-radius:14px;margin:0 0 18px}
.handoff-mode-switch button{flex:1;min-width:0;min-height:48px;padding:9px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#634852;font-size:14px;font-weight:750;cursor:pointer}
.handoff-mode-switch button.is-current{background:#fff;border-color:#b35f80;color:#7b2649;box-shadow:0 2px 7px #7a45611a}
.handoff-mode-switch button:focus-visible,.handoff-paper-edit-button:focus-visible,.handoff-preview-role-switch button:focus-visible{outline:3px solid #72374f;outline-offset:2px}
.handoff-preview-help{margin:0 0 12px;color:#5f4d57;font-size:13px;line-height:1.6}
.handoff-preview-role-switch{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.handoff-preview-role-switch button{border:1px solid #dec4d0;border-radius:999px;background:#fff;padding:7px 10px;min-height:35px;color:#574650;font-size:12px;font-weight:700;cursor:pointer}
.handoff-preview-role-switch button.is-current{background:#9c3d64;color:#fff;border-color:#9c3d64}
.handoff-paper-identity-edit{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.handoff-paper-identity-edit label{display:flex;flex-direction:column;gap:4px;min-width:0;color:#614b55;font-size:12px;font-weight:700}
.handoff-paper-identity-edit input{min-width:0;width:100%;box-sizing:border-box;border:1px solid #cda7b8;border-radius:6px;background:#fff;padding:8px 9px;color:#2e2930;font-size:15px;font-weight:500;font-family:inherit}
.handoff-paper-identity-edit input::placeholder{font-size:11px;color:#796b73}
.handoff-paper-identity-edit input:focus{outline:2px solid #a64e74;outline-offset:2px}
.handoff-paper-section-head{display:flex;align-items:start;justify-content:space-between;gap:8px}
.handoff-paper-section-head h3{min-width:0;flex:1}
.handoff-paper-edit-button,.handoff-paper-edit-done{border:1px solid #cc9cb0;border-radius:7px;background:#fff9fc;color:#7c2b50;padding:4px 9px;min-height:32px;font-size:12px;font-weight:750;cursor:pointer;flex:none}
.handoff-paper-edit-form{display:block;font-size:12px;font-weight:700;color:#694657}
.handoff-paper-edit-form textarea{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:5px;margin-bottom:7px;padding:10px 9px;border:1.5px solid #a84b71;border-radius:7px;font-size:15px;line-height:1.6;font-family:inherit;resize:vertical;white-space:pre-wrap;color:#302c2f;background:#fff}
.handoff-paper-edit-form textarea:focus{outline:2px solid #a84b71;outline-offset:2px}
.handoff-paper-edited-text{white-space:pre-wrap;overflow-wrap:anywhere}
.handoff-preview-actions{margin:12px 0 0}.handoff-preview-actions .btn{width:100%;justify-content:center}
#handoff-preview-panel{scroll-margin-top:115px}
@media(max-width:980px){
 .handoff-layout.handoff-questions-active>.handoff-preview-panel{display:none}
 .handoff-layout.handoff-preview-active>.handoff-editor{display:none}
 .handoff-layout.handoff-preview-active>.handoff-preview-panel{display:block}
 .handoff-preview-panel{margin-top:0}
}
@media(max-width:450px){
 .handoff-paper-identity-edit{grid-template-columns:1fr 1fr}
 .handoff-paper-identity-edit label:first-child{grid-column:1/-1}
 .handoff-mode-switch button{font-size:13px}
 .handoff-preview-role-switch button{font-size:11px;padding:7px 8px}
}
@media print{
 .handoff-mode-switch,.handoff-preview-help,.handoff-preview-actions,.handoff-preview-role-switch,.handoff-paper-edit-button,.handoff-paper-edit-done,.handoff-paper-edit-form{display:none!important}
 body.handoff-print .handoff-print-root .handoff-paper-section-head{display:block!important}
 body.handoff-print .handoff-print-root .handoff-paper-identity{line-height:1.65!important;overflow-wrap:anywhere!important}
}
@media(max-width:980px){.handoff-preview-active .handoff-preview-actions{display:none}}

/* v21.11 A4上で各文書の全文編集。通常プレビューでは入力枠を出さない。 */
.handoff-full-edit-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.handoff-full-edit-tools .btn{font-size:13px;min-height:40px}
.handoff-full-edit-tools small{color:#594954;line-height:1.5}
.handoff-inline-edit{display:block;width:100%;min-width:0;font-weight:500;font-style:normal;text-align:left}
.handoff-inline-edit>span{display:block;margin:1px 0 4px;color:#75435a;font-size:11px;font-weight:700;line-height:1.4}
.handoff-inline-edit input,.handoff-inline-edit textarea{display:block;width:100%;min-width:0;box-sizing:border-box;border:1.5px solid #bd8ca4;background:#fff;color:#2d2830;border-radius:6px;padding:8px 9px;font-size:15px;line-height:1.55;font-family:inherit;font-weight:500;resize:vertical;overflow-wrap:anywhere;white-space:pre-wrap}
.handoff-inline-edit input:focus,.handoff-inline-edit textarea:focus{outline:2px solid #965071;outline-offset:1px}
.handoff-paper h2>.handoff-inline-edit input{font-size:17px;font-weight:700}
.handoff-paper-section-head h3 .handoff-inline-edit input{font-size:14px;font-weight:700}
.handoff-paper-reply .handoff-inline-edit{margin-top:5px}
.handoff-paper-letter>strong .handoff-inline-edit{font-weight:500}
.handoff-paper-footer span .handoff-inline-edit{min-width:0}
.handoff-paper-footer span .handoff-inline-edit input{font-size:13px}
.handoff-paper-edited-text{white-space:pre-wrap;overflow-wrap:anywhere}
.handoff-paper-lead,.handoff-paper-caution,.handoff-paper-small,.handoff-paper-letter p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:640px){.handoff-full-edit-tools .btn{width:100%;justify-content:center}.handoff-inline-edit input,.handoff-inline-edit textarea{font-size:16px}}
@media print{.handoff-full-edit-tools,.handoff-inline-edit,.handoff-paper-edit-form{display:none!important}}

/* Allow long manually written paragraphs to flow naturally across A4 pages. */
@media print {
 body.handoff-print .handoff-print-root .handoff-paper.handoff-long-text .handoff-paper-section,
 body.handoff-print .handoff-print-root .handoff-paper.handoff-long-text .handoff-paper-letter,
 body:has(.handoff-page):not(.handoff-print) .handoff-paper.handoff-long-text .handoff-paper-section{break-inside:auto!important;page-break-inside:auto!important;}
}

/* v21.12: short explanation on the medical information sheet entry. */
.home-handoff .home-tool-card .home-handoff-description{font-size:13px;line-height:1.7;color:#544750;font-weight:400}
@media(max-width:560px){.home-handoff .home-tool-card .home-handoff-description{font-size:13px;line-height:1.65}}


/* v21.13 — the printed handout is edited directly in a readable, paper-like preview. */
.bag-preview-page{padding:18px 0 60px;background:#fff8fb}
.bag-preview-page .shell{max-width:1080px}
.bag-preview-tools{max-width:760px;margin:0 auto 20px}
.bag-preview-tools .back-link{margin-bottom:16px}
.bag-preview-tools h1{margin:0 0 8px;font-size:clamp(22px,3vw,30px);line-height:1.4}
.bag-preview-tools>p{margin:0 0 14px;font-size:14px;line-height:1.7;color:#5c5058}
.bag-preview-choice{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 15px}
.bag-preview-choice label{display:flex;align-items:center;gap:9px;border:1px solid #e4c7d2;border-radius:10px;background:#fff;padding:12px 14px;cursor:pointer;font-size:14px;font-weight:700;min-height:48px}
.bag-preview-choice input{width:19px;height:19px;accent-color:#9c3b60}
.bag-preview-buttons{display:flex;gap:10px;flex-wrap:wrap}
.bag-preview-buttons button{min-height:45px}
.bag-print-paper{box-sizing:border-box;width:100%;max-width:190mm;min-height:250mm;margin:0 auto;padding:11mm 11mm 9mm;background:#fff;border:1px solid #e6ced8;border-radius:3px;box-shadow:0 9px 35px #6a2b4323;color:#2a2830;font-family:-apple-system,BlinkMacSystemFont,'Noto Sans JP','Yu Gothic',sans-serif}
.bag-paper-brand{font-size:11px;font-weight:800;color:#8b3d5d;letter-spacing:.04em;margin-bottom:7px}
.bag-print-paper h2{font-size:22px;line-height:1.45;margin:0 0 8px;color:#342a30}
.bag-print-paper>p{font-size:12px;line-height:1.55;margin:0 0 13px;color:#58515a}
.bag-preview-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
.bag-preview-item{border:1px solid #e4dce0;border-radius:6px;padding:8px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;align-items:start;break-inside:avoid;page-break-inside:avoid;min-width:0}
.bag-preview-check{font-size:18px;line-height:1.2;color:#7b3955}
.bag-preview-item-text{min-width:0}
.bag-preview-item strong{display:block;font-size:12px;line-height:1.5;font-weight:800;overflow-wrap:anywhere}
.bag-preview-item p{font-size:10px;line-height:1.5;color:#55505a;margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.bag-preview-optional{border-top:1px solid #e7d1dc;padding-top:9px;margin:12px 0;break-inside:avoid}
.bag-preview-optional[hidden]{display:none!important}
.bag-preview-optional h3{font-size:13px;margin:0 0 4px}
.bag-preview-optional p{font-size:12px;line-height:1.6;white-space:pre-wrap;margin:0}
.bag-editable{border-radius:3px;cursor:text;white-space:pre-wrap;overflow-wrap:anywhere}
.bag-editable:hover{background:#fff5f8;box-shadow:0 0 0 1px #e3a9c1}
.bag-editable:focus{background:#fff;border:0;outline:2px solid #a04e72;outline-offset:2px}
.bag-preview-privacy{max-width:760px;margin:14px auto 0;font-size:12px;line-height:1.65;color:#65535d}
.bag-print-paper .nz-print-qr{margin-top:8mm}
@media(max-width:700px){
 .bag-preview-page{padding-top:12px}
 .bag-preview-buttons{display:grid;grid-template-columns:1fr}
 .bag-preview-choice{display:grid;grid-template-columns:1fr;gap:7px}
 .bag-print-paper{padding:16px 13px;min-height:0}
 .bag-preview-items{grid-template-columns:1fr;gap:7px}
 .bag-preview-item{padding:9px}
 .bag-preview-item strong{font-size:14px}
 .bag-preview-item p{font-size:12px}
 .bag-print-paper h2{font-size:20px}
}
@media print{
 body.bag-preview-print{margin:0!important;background:#fff!important}
 body.bag-preview-print #app>header,body.bag-preview-print #app>footer{display:none!important}
 body.bag-preview-print .bag-preview-tools,body.bag-preview-print .bag-preview-privacy{display:none!important}
 body.bag-preview-print .bag-preview-page,body.bag-preview-print .bag-preview-page *{visibility:visible!important}
 body.bag-preview-print .bag-preview-page{position:static!important;padding:0!important;margin:0!important;background:#fff!important;width:100%!important;display:block!important}
 body.bag-preview-print .bag-preview-page .shell{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
 body.bag-preview-print .bag-print-paper{max-width:none!important;width:100%!important;min-height:0!important;border:0!important;padding:0!important;box-shadow:none!important;margin:0!important}
 body.bag-preview-print .bag-preview-items{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5pt!important;margin-bottom:9pt!important}
 body.bag-preview-print .bag-preview-item{padding:5pt!important;gap:4pt!important;grid-template-columns:17pt minmax(0,1fr)!important;break-inside:avoid!important}
 body.bag-preview-print .bag-preview-item strong{font-size:10pt!important;line-height:1.35!important}
 body.bag-preview-print .bag-preview-item p{font-size:8pt!important;line-height:1.35!important}
 body.bag-preview-print .bag-print-paper h2{font-size:18pt!important;margin:0 0 5pt!important}
 body.bag-preview-print .bag-print-paper>p{font-size:9pt!important;margin-bottom:8pt!important}
 body.bag-preview-print .bag-preview-optional{margin:7pt 0!important;padding-top:6pt!important}
 body.bag-preview-print .bag-preview-optional h3{font-size:11pt!important}
 body.bag-preview-print .bag-preview-optional p{font-size:9pt!important}
 body.bag-preview-print .bag-editable{box-shadow:none!important;background:transparent!important;outline:none!important}
 body.bag-preview-print .bag-preview-optional[hidden]{display:none!important;visibility:hidden!important}
 body.bag-preview-print .nz-print-qr{margin-top:5mm!important}
}

/* v21.15: guide categories chosen by the user; no ranked top-three block */
.guide-interest-picker{border:1px solid #ead9e1;border-radius:12px;background:#fff;padding:10px 14px;margin:12px 0 16px}
.guide-interest-picker>summary{cursor:pointer;font-size:14px;font-weight:700;color:#853f5f;list-style:none;display:flex;align-items:center;gap:6px}
.guide-interest-picker>summary::-webkit-details-marker{display:none}
.guide-interest-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.guide-interest-options label{display:flex;align-items:center;gap:8px;padding:10px 9px;border:1px solid #f0e1e8;border-radius:10px;font-size:13px;line-height:1.5;cursor:pointer}
.guide-interest-options input{accent-color:#a3456a;flex:none;width:18px;height:18px}
@media(max-width:440px){.guide-interest-options{grid-template-columns:1fr}}
