:root{font-family:system-ui,-apple-system,"BIZ UDPGothic","Noto Sans JP",Meiryo,sans-serif;color:#182f46;background:#f1f5fa;font-size:16px;line-height:1.65;--blue:#1759be;--ink:#182f46;--muted:#617288;--line:#dce4ee}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,summary{touch-action:manipulation}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e3940b;outline-offset:3px}button{border:0}input[type=checkbox],input[type=radio]{accent-color:var(--blue)}[hidden]{display:none!important}.site-header{height:82px;display:flex;align-items:center;gap:24px;background:white;border-bottom:1px solid var(--line);padding:0 32px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;text-decoration:none;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--blue);color:white;font-size:25px;line-height:1}.header-caption{color:var(--muted);font-size:14px;padding-left:24px;border-left:1px solid var(--line)}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:white;border-radius:10px;font-weight:700;padding:12px 18px;min-height:46px;transition:background .15s}.primary:hover{background:#104ba5}.header-print{margin-left:auto;font-size:14px}.workspace{max-width:1440px;margin:auto;display:grid;grid-template-columns:360px minmax(0,1fr);align-items:start}.controls{background:white;border-right:1px solid var(--line);padding:28px 26px 32px}.control-intro{margin-bottom:25px}.eyebrow{font-size:12px;color:var(--blue);font-weight:700;letter-spacing:.07em;margin:0 0 7px}h1{font-size:25px;letter-spacing:.015em;line-height:1.5;margin:0 0 9px}.control-intro>p:last-child{font-size:14px;color:var(--muted);margin:0}.control-section{padding:23px 0;border-top:1px solid var(--line)}h2{font-size:16px;line-height:1.5;margin:0 0 15px;display:flex;align-items:center;gap:9px}.step{display:inline-grid;place-items:center;width:23px;height:23px;background:#eaf1fc;color:var(--blue);border-radius:7px;font-size:13px}.field-help{font-size:13px;line-height:1.75;color:var(--muted);margin:11px 0 0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.section-heading h2{margin-bottom:0}.count-badge{background:#eaf1fc;border-radius:20px;color:var(--blue);padding:2px 11px;font-size:13px;font-weight:700}.group-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.group-choice{position:relative;display:flex;align-items:center;min-height:46px;gap:9px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,border .15s}.group-choice:has(input:checked){background:#edf4ff;border-color:#a6c3ed;color:#124fa8}.group-choice:has(input:disabled){opacity:.45;cursor:not-allowed}.group-choice input{width:17px;height:17px;flex:none;margin:0}.limit-help{font-size:12px;color:var(--muted);min-height:19px;margin:9px 0 14px}.generate{width:100%;font-size:14px}.generate>span{font-size:24px;line-height:1}.text-button{background:none;color:var(--blue);font-size:13px;padding:10px 0;text-underline-offset:4px}.text-button:hover{text-decoration:underline}.reorder{width:100%}.sheet-options h2{margin-bottom:13px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;min-height:39px;cursor:pointer}.toggle{appearance:none;position:relative;margin:0;width:36px;height:22px;border:0;border-radius:20px;background:#bdcad9;flex:none;cursor:pointer;transition:background .15s}.toggle:before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .15s}.toggle:checked{background:var(--blue)}.toggle:checked:before{transform:translateX(14px)}.pair-details{padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}summary{cursor:pointer;font-size:14px;font-weight:700}summary::marker{color:var(--blue)}#lock-count{color:var(--muted);font-size:12px}.pair-row{padding:15px 0;border-bottom:1px solid #e9eef4}.pair-row:last-child{border-bottom:0;padding-bottom:0}.pair-row-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:9px}.lock-label{display:flex;align-items:center;gap:5px;color:var(--muted);cursor:pointer}.lock-label:has(input:checked){color:var(--blue);font-weight:700}.pair-images{display:grid;grid-template-columns:1fr 25px 1fr;align-items:center;gap:5px}.pair-separator{text-align:center;color:var(--muted);font-size:15px}.edit-image{border:1px solid var(--line);border-radius:9px;background:white;padding:7px 3px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;color:var(--ink);font-size:12px}.edit-image:hover{background:#edf4ff;border-color:#7aabea}.edit-image img{width:55px;height:55px;object-fit:contain}.edit-image span{overflow-wrap:anywhere}.bottom-print{width:100%;margin-top:24px;font-size:14px}.print-help{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 0}.preview-panel{padding:24px 30px 35px;min-width:0}.preview-toolbar{max-width:793.7px;display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 auto 18px;font-size:14px}.preview-toolbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:13px}.paper-size{color:var(--muted);font-size:12px}.answer-control{display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer;white-space:nowrap}.answer-control input{width:16px;height:16px}.answer-notice{max-width:793.7px;margin:0 auto 12px;border:1px solid #e6c375;background:#fff9e7;border-radius:8px;padding:7px 12px;font-size:13px;color:#805300}.preview-viewport{width:100%;max-width:793.7px;margin:auto}.paper-stage{position:relative;width:100%;}.worksheet{position:relative;background:#fff;width:210mm;height:297mm;padding:13mm 15mm 11mm;box-shadow:0 6px 24px #1a365017;transform-origin:top left;color:#10161f;font-family:"BIZ UDPGothic","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;overflow:hidden}.sheet-heading{height:26mm}.sheet-title-row{display:flex;justify-content:space-between;align-items:center;gap:4mm}.sheet-heading h2{display:block;font-size:22pt;color:#1759be;letter-spacing:.055em;font-weight:800;line-height:1.5;margin:0;white-space:nowrap}.sheet-tag{font-size:9pt;white-space:nowrap;border-radius:5mm;background:#ffdc67;color:#172c40;padding:1.2mm 3mm;font-weight:700}.sheet-heading p{font-size:12pt;letter-spacing:.03em;margin:5mm 0 0;line-height:1.8}.matching-area{position:relative;width:180mm;height:var(--area-height,239mm)}.item-column{position:absolute;top:0;bottom:0;width:47mm;height:var(--area-height,239mm);display:grid;grid-template-columns:47mm;grid-template-rows:repeat(var(--count,5),1fr)}.left-items{left:0}.right-items{right:0}.sheet-item{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;padding-bottom:4mm;min-height:0;width:37mm}.right-items .sheet-item{margin-left:10mm}.sheet-item img{height:var(--image-size,32mm);width:var(--image-size,32mm);object-fit:contain;display:block;max-height:none}.item-name{font-size:11pt;line-height:1.6;margin-top:1mm;white-space:nowrap;letter-spacing:0}.item-name.long{font-size:9.5pt}.connection-dot{position:absolute;top:calc(50% - 3.5mm);width:3.6mm;height:3.6mm;border-radius:50%;background:#ff565e}.left-items .connection-dot{left:43.2mm}.right-items .connection-dot{right:43.2mm}.answer-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;display:none}.worksheet.show-answer .answer-lines{display:block}.answer-lines line{stroke:#2873c8;stroke-width:.7;stroke-linecap:round}.sheet-footer{position:absolute;bottom:9mm;left:15mm;right:15mm;display:flex;justify-content:space-between;align-items:center;font-size:8pt;color:#708097}.sheet-footer span:first-child{font-weight:700;letter-spacing:.06em}.worksheet.hide-names .item-name{visibility:hidden}.preview-tip{font-size:12px;text-align:center;color:var(--muted);margin:17px 0 0}.status{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#182f46;color:white;box-shadow:0 4px 18px #0002;border-radius:10px;padding:11px 20px;font-size:14px;max-width:min(520px,90vw);z-index:5;transition:opacity .15s}.status:empty{display:none}.image-picker{width:min(580px,calc(100vw - 28px));max-height:85vh;overflow-y:auto;border:0;border-radius:16px;padding:25px;color:var(--ink);box-shadow:0 20px 80px #18324f33}.image-picker::backdrop{background:#10243d66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{margin:0;font-size:21px}.icon-button{background:#eff3f8;color:var(--ink);border-radius:50%;font-size:26px;line-height:1;width:38px;height:38px;flex:none}.picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:19px}.picker-option{position:relative;background:white;border:1px solid var(--line);border-radius:10px;padding:10px 5px;font-size:14px;color:var(--ink);min-width:0;display:flex;flex-direction:column;align-items:center}.picker-option img{width:80px;height:80px;max-width:100%;object-fit:contain}.picker-option:hover{border-color:var(--blue);background:#edf4ff}.picker-option[aria-pressed=true]{border:2px solid var(--blue);background:#edf4ff;padding:9px 4px}.picker-option small{font-size:12px;line-height:1.4;color:var(--muted);display:block;min-height:17px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{position:fixed;top:0;left:0;right:0;background:#fff0db;color:#6c4100;margin:0;padding:15px;z-index:10}
@media(min-width:1500px){.workspace{margin-top:24px;border:1px solid var(--line);border-radius:16px;overflow:hidden}.controls{padding-top:28px}}
@media(max-width:1090px){.workspace{grid-template-columns:325px minmax(0,1fr)}.controls{padding:25px 20px}.preview-panel{padding:23px 22px}.header-caption{display:none}}
@media(max-width:760px){.site-header{height:auto;min-height:72px;padding:15px 18px;gap:12px;flex-wrap:wrap}.brand{font-size:17px}.brand-mark{width:33px;height:33px;font-size:23px}.header-print{font-size:12px;padding:9px 12px;min-height:39px}.workspace{display:flex;flex-direction:column}.controls{border-right:0;border-bottom:1px solid var(--line);width:100%;padding:23px 20px}.control-intro{margin-bottom:19px}h1{font-size:24px}.control-section{padding:19px 0}.group-options{grid-template-columns:repeat(3,minmax(0,1fr))}.group-choice{font-size:13px;padding:9px;gap:6px}.preview-panel{width:100%;padding:22px 14px}.bottom-print{margin-top:20px}.preview-toolbar{gap:8px}.preview-toolbar>div{gap:7px}.print-help{margin-bottom:0}.pair-images{grid-template-columns:1fr 35px 1fr}.edit-image img{width:65px;height:65px}.picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:350px){.group-options{grid-template-columns:1fr 1fr}.brand{font-size:15px}.header-print{padding:8px}.preview-toolbar>div{display:block}.paper-size{display:block}}
@page{size:A4 portrait;margin:0}
@media print{html,body{margin:0!important;padding:0!important;background:white!important;width:210mm!important}body{print-color-adjust:exact;-webkit-print-color-adjust:exact}.site-header,.controls,.preview-toolbar,.answer-notice,.preview-tip,.status,.image-picker,.noscript{display:none!important}.workspace,.preview-panel,.preview-viewport,.paper-stage{display:block!important;width:210mm!important;max-width:none!important;margin:0!important;padding:0!important;height:297mm!important;border:0!important;overflow:visible!important}.worksheet{transform:none!important;box-shadow:none!important;margin:0!important;break-inside:avoid;page-break-inside:avoid}.preview-panel{min-height:0!important}}
