:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Noto Sans JP','Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:#1c2c42;background:#f4f7fb;font-size:14px}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{width:236px;flex:none;background:#102238;color:white;padding:28px 15px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:2px 9px 38px;font-size:18px}.brand small{display:block;color:#8fa8c0;font-size:9px;letter-spacing:1.7px;margin-top:3px}.brandicon{width:40px;height:40px;border-radius:12px;background:#3b78e7;display:grid;place-items:center;font-size:28px}.side-label{font-size:10px;letter-spacing:2px;color:#6e88a6;margin:0 12px 13px}.nav{display:block;text-align:left;background:transparent;color:#a9bbd0;border:0;padding:15px;border-radius:10px;margin-bottom:5px;font-weight:600}.nav.active{background:#24446a;color:white}.side-note{margin-top:auto;border-top:1px solid #2b405a;padding:22px 10px 0;color:#c8d5e5;font-size:12px;line-height:1.8}.side-note small{color:#7e9bb6}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2fc58e;margin-right:5px}main{flex:1;min-width:0}header{height:72px;background:white;border-bottom:1px solid #e5eaf1;padding:0 38px;display:flex;align-items:center;justify-content:space-between}.crumb{color:#7d8ba0;font-size:12px}.crumb span{margin:0 10px}.crumb strong{color:#263b53}.header-right{display:flex;align-items:center;gap:18px}.avatar{background:#e9f0ff;color:#3566bb;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:11px;font-weight:800}.tag{font-size:11px;border-radius:20px;padding:7px 12px}.neutral{background:#edf2f8;color:#5b6d83}.content{max-width:1700px;margin:auto;padding:34px 36px 55px}.hidden{display:none!important}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.eyebrow{font-size:10px;color:#4481df;font-weight:800;letter-spacing:2px;margin-bottom:7px}h1{font-size:27px;letter-spacing:-.7px;margin:0 0 7px}p{margin:0;color:#8492a4;line-height:1.6}.outline{background:white;border:1px solid #dbe4ef;border-radius:9px;padding:11px 16px;color:#41546c;font-weight:700}.switchbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.tabs{display:flex;background:#e9eef6;padding:4px;border-radius:11px;gap:4px}.tab{border:0;background:transparent;padding:11px 20px;border-radius:8px;color:#71829a;font-weight:800}.tab span{font-weight:400;font-size:11px;margin-left:4px}.tab.active{background:white;color:#255db8;box-shadow:0 1px 6px #18345812}.hint{font-size:12px;color:#71839b}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.stat{background:white;border:1px solid #e8edf4;border-radius:14px;padding:19px 22px;box-shadow:0 3px 16px #1d3d6110}.stat>span{font-size:12px;font-weight:700;color:#74859a}.stat div{margin:10px 0 5px}.stat strong{font-size:32px;letter-spacing:-1px}.stat div small{margin-left:5px;color:#6c7f95}.stat>small{font-size:11px;color:#a1adba}.buildings{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(600px,2.2fr);gap:20px;align-items:start}.building{border-radius:17px;border:1px solid #e5ebf2;padding:20px;background:white;min-width:0;box-shadow:0 4px 20px #1d3d610a}.sakura{border-top:4px solid #eb91b4}.hills{border-top:4px solid #6f9fea}.building-title{display:flex;align-items:center;gap:11px;padding-bottom:18px;border-bottom:1px solid #edf1f5;margin-bottom:16px}.building-title h2{margin:0;font-size:19px}.building-title p{font-size:9px;letter-spacing:1.5px}.building-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;font-size:23px;background:#fff0f6;color:#d86d9a}.hills .building-mark{background:#edf4ff;color:#5489d9}.building-pill{margin-left:auto;border-radius:20px;background:#f1f4f8;color:#71849c;font-size:10px;padding:6px 9px}.apartment{border:1px solid #e5eaf0;border-radius:11px;padding:11px;margin-bottom:12px;background:#fff}.apartment-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:4px}.apartment-num{font-size:16px;font-weight:850;color:#263a53}.occupancy{font-size:10px;color:#77889c;white-space:nowrap}.room-grid{display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));gap:8px}.room{border:1px solid #e7edf3;background:#fafcfe;border-radius:9px;padding:9px;min-width:0}.room-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:3px}.room-head b{font-size:11px}.count{font-size:10px;color:#8090a5;white-space:nowrap}.person{display:flex;align-items:center;gap:7px;margin-bottom:7px;min-width:0}.person:last-child{margin-bottom:0}.photo{width:34px;height:40px;flex:none;object-fit:cover;object-position:center 25%;border-radius:6px;border:1px solid #e3e8ee;background:#e9eef4}.photo-placeholder{display:grid;place-items:center;color:#a0acba;font-size:20px}.person-details{min-width:0}.person-name{font-size:10px;font-weight:700;overflow-wrap:anywhere;line-height:1.3}.workplace{display:inline-block;margin-top:4px;padding:3px 5px;border-radius:4px;font-size:9px;line-height:1.3;overflow-wrap:anywhere}.vacant{color:#a5b0bf;font-size:10px;border:1px dashed #d8e0ea;padding:8px;border-radius:6px;text-align:center;margin-top:6px}.not-rented{font-size:10px;color:#ad8790;background:#fff2f3;border-radius:5px;padding:4px 6px}.hills-plan{display:grid;grid-template-columns:minmax(0,1.3fr) 32px minmax(0,1fr);gap:9px}.hills-plan .room-grid{--cols:3}.hills-right .room-grid{--cols:2}.hills-plan .apartment{padding:9px}.hills-plan .room{padding:7px}.hills-plan .photo{width:29px;height:35px}.hills-plan .person{gap:5px}.hills-plan .person-name{font-size:9px}.hills-plan .workplace{font-size:8px}.corridor{background:#e9edf2;border:1px dashed #c8d1de;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#8b9bad;font-weight:800;font-size:12px;min-height:400px}.legend{background:white;border:1px solid #e8edf4;border-radius:12px;padding:18px 20px;margin-top:20px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.legend>b{font-size:12px}.legend>div{display:flex;gap:8px;flex-wrap:wrap}.legend .workplace{font-size:11px;padding:6px 10px;margin:0}.footnote{font-size:11px;color:#9aa6b6;margin-top:18px}.schedule-intro{background:#eaf2ff;border:1px solid #d7e6ff;padding:22px;border-radius:14px;margin-bottom:20px}.schedule-intro strong{font-size:17px}.schedule-intro p{margin-top:8px;color:#647f9d}.schedule-card{display:flex;align-items:start;gap:20px;background:white;border:1px solid #e6edf5;border-radius:12px;padding:20px;margin-bottom:12px}.date-box{flex:none;background:#edf3ff;color:#3164ae;border-radius:9px;padding:12px 15px;font-weight:800;min-width:90px;text-align:center}.schedule-body{flex:1}.schedule-body h3{margin:0 0 9px;font-size:16px}.schedule-body ul{margin:0;padding-left:20px;color:#687d95;line-height:1.9}.schedule-check{accent-color:#3378db;width:18px;height:18px;margin-top:15px}.schedule-card.done{opacity:.6}@media(max-width:1350px){.buildings{grid-template-columns:1fr}.hills-plan{grid-template-columns:minmax(0,1.2fr) 40px minmax(0,1fr)}.hills-plan .person-name{font-size:11px}.hills-plan .workplace{font-size:9px}}@media(max-width:800px){.sidebar{width:66px;padding:20px 8px}.brand{padding:0 0 30px;justify-content:center}.brand>div:last-child,.side-label,.side-note{display:none}.nav{font-size:0;padding:16px 5px;text-align:center}.nav:first-letter{font-size:20px}header{padding:0 17px;height:60px}.content{padding:24px 14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:14px}.stat strong{font-size:26px}.heading{align-items:start}.heading h1{font-size:21px}.hills-plan{grid-template-columns:1fr}.corridor{min-height:32px;flex-direction:row}.hills-plan .room-grid{--cols:3}.hills-right .room-grid{--cols:2}.hint{display:none}}@media(max-width:480px){.sidebar{width:50px}.brandicon{width:33px;height:33px}.building{padding:11px}.hills-plan .room-grid{--cols:1}.hills-right .room-grid{--cols:1}.room-grid{--cols:1!important}.room{padding:10px}.hills-plan .photo{width:36px;height:42px}.hills-plan .person-name{font-size:12px}.hills-plan .workplace{font-size:10px}.heading .actions{display:none}.tab{padding:10px 12px}.schedule-card{gap:10px;padding:13px}.date-box{min-width:60px;padding:9px 5px;font-size:11px}}@media print{.sidebar,header,.switchbar,.actions,.schedule-check{display:none!important}.content{padding:0}.buildings{grid-template-columns:1fr 2fr}.building{break-inside:avoid}.hills-plan .room-grid{--cols:3}.hills-right .room-grid{--cols:2}body{background:white}}

/* Click-to-enlarge portraits */
.zoomable-photo{cursor:zoom-in;transition:transform .15s ease,box-shadow .15s ease}.zoomable-photo:hover{transform:scale(1.08);box-shadow:0 2px 9px #0002}.zoomable-photo:focus-visible{outline:3px solid #4388e9;outline-offset:3px}.photo-lightbox[hidden]{display:none!important}.photo-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(9,19,35,.86);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.lightbox-open{overflow:hidden}.lightbox-panel{position:relative;max-width:min(92vw,650px);width:max-content;text-align:center;color:white}.lightbox-panel img{display:block;max-width:90vw;max-height:76vh;width:auto;height:auto;object-fit:contain;border-radius:12px;background:#e7edf4;box-shadow:0 12px 45px #0007}.lightbox-close{position:absolute;top:-18px;right:-18px;width:42px;height:42px;border:0;border-radius:50%;background:white;color:#182b43;font-size:30px;line-height:1;box-shadow:0 4px 16px #0005}.lightbox-name{font-size:18px;font-weight:700;margin-top:16px}.lightbox-tip{font-size:11px;color:#d5dce8;margin-top:8px}@media(max-width:480px){.photo-lightbox{padding:16px}.lightbox-close{right:0;top:-44px}.lightbox-panel img{max-width:92vw;max-height:72vh}}@media print{.photo-lightbox{display:none!important}}

/* One-sheet housing plan print layout (A3 landscape). */
@page { size: A3 landscape; margin: 7mm; }
@media print {
  html, body { width: 100%; margin: 0 !important; padding: 0 !important; background: #fff !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .shell { display: block !important; min-height: 0 !important; }
  main { width: 100% !important; }
  .sidebar, header, .switchbar, .actions, .schedule-check, .stats, .footnote, .photo-lightbox { display: none !important; }
  #layoutPage:not(.hidden) { display: block !important; }
  .content { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .heading { margin: 0 0 3mm !important; }
  .heading h1 { font-size: 18pt !important; margin: 0 !important; }
  .heading p, .eyebrow { display: none !important; }
  .buildings { display: grid !important; grid-template-columns: minmax(0, .78fr) minmax(0, 2.22fr) !important; gap: 3mm !important; align-items: start !important; }
  .building { box-shadow: none !important; border-radius: 2mm !important; padding: 2mm !important; break-inside: avoid !important; }
  .building-title { padding-bottom: 2mm !important; margin-bottom: 2mm !important; }
  .building-title h2 { font-size: 13pt !important; }
  .building-mark { width: 8mm !important; height: 8mm !important; }
  .hills-plan { grid-template-columns: minmax(0,1.3fr) 7mm minmax(0,1fr) !important; gap: 1.5mm !important; }
  .hills-plan .room-grid { --cols: 3 !important; }
  .hills-right .room-grid { --cols: 2 !important; }
  .room-grid { grid-template-columns: repeat(var(--cols,2), minmax(0,1fr)) !important; gap: 1.2mm !important; }
  .apartment, .hills-plan .apartment { padding: 1.7mm !important; margin-bottom: 1.7mm !important; break-inside: avoid !important; }
  .apartment-top { margin-bottom: 1.5mm !important; }
  .room, .hills-plan .room { padding: 1.3mm !important; break-inside: avoid !important; }
  .room-head { margin-bottom: 1.5mm !important; }
  .person, .hills-plan .person { gap: 1mm !important; margin-bottom: 1.5mm !important; }
  .photo, .hills-plan .photo { width: 8mm !important; height: 10mm !important; }
  .person-name, .hills-plan .person-name { font-size: 7pt !important; line-height: 1.15 !important; }
  .workplace, .hills-plan .workplace { font-size: 6.5pt !important; margin-top: .5mm !important; padding: .5mm 1mm !important; }
  .room-head b, .count, .occupancy { font-size: 7pt !important; }
  .vacant { padding: 1mm !important; font-size: 7pt !important; margin-top: 1mm !important; }
  .corridor { min-height: 0 !important; }
  .legend { margin-top: 2mm !important; padding: 2mm !important; break-inside: avoid !important; }
  .legend .workplace { font-size: 7pt !important; padding: 1mm 2mm !important; }
  .schedule-card { break-inside: avoid !important; }
}

/* Schedule is visible in print only when the AFTER plan is selected. */
.print-schedule { display:none; }
@media print {
  #schedulePage { display:none !important; }
  .print-schedule { display:none !important; }
  body.print-after #layoutPage:not(.hidden) .print-schedule {
    display:block !important; margin-top:2.5mm !important; padding-top:1.5mm !important;
    border-top:1px solid #b9c8da; break-inside:avoid !important;
  }
  .print-schedule h2 { font-size:10pt !important; margin:0 0 1.5mm !important; }
  .print-schedule h2 small { font-size:8pt; color:#6b7788; }
  #printScheduleItems { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:1.5mm !important; }
  .print-schedule-item { border:1px solid #dce5f0; border-radius:1mm; padding:1.5mm; min-width:0; background:#f8fbff; }
  .print-schedule-item b { display:block; font-size:7pt; line-height:1.3; margin-bottom:1mm; }
  .print-schedule-item ul { padding-left:3mm; margin:0; font-size:6.4pt; line-height:1.35; color:#40546a; }
  .print-schedule-item li { margin-bottom:.4mm; }
}
