.resume-mhlw-page #preview-panel{top:calc(var(--headerH,80px) + 16px)}
.resume-mhlw-page #document-pages{max-height:none;overflow:hidden;scrollbar-gutter:auto}
.resume-mhlw-page #resume-preview{width:100%;height:auto;display:block;background:#fff;box-shadow:0 1px 5px #173c4d15}
.resume-face-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 12px}
.resume-face-controls button{padding:6px;min-height:40px;border-radius:4px;background:transparent;font-size:14px}
.resume-face-controls button[aria-pressed=true]{background:#237e76;color:white;border-color:#237e76}
.resume-preview-caption{font-size:13px;color:#607985;margin:8px 0 0}
.resume-mhlw-page .resume-row{display:grid;grid-template-columns:90px 65px minmax(0,1fr);gap:10px}
.resume-mhlw-page .resume-row .document-field.wide{grid-column:auto}
.resume-group-info{color:#607985;font-size:13px;line-height:1.7;margin:0 0 16px}
.resume-group-error{color:#a63737;font-size:14px;line-height:1.6;margin-top:12px}
.resume-check{display:flex;gap:10px;align-items:center;margin:0 0 18px;min-height:44px;font-size:15px}
.resume-check input{width:20px;height:20px;accent-color:#237e76}
.resume-mhlw-page .photo-layout{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;margin-top:16px;align-items:start}
#photo-crop{width:96px;height:128px;border:1px solid #bac9ce;background:#fff}
.photo-sliders label{display:block;font-size:14px;margin-bottom:8px}.photo-sliders input{width:100%;accent-color:#237e76;min-height:32px}
.resume-preview-modal{width:min(1100px,calc(100% - 32px));max-height:90vh;background:#eef2f3;color:#173c4d;border:1px solid #aabbc1;border-radius:8px;padding:18px;box-sizing:border-box}
.resume-preview-modal::backdrop{background:#173c4d99}.resume-preview-modal h2{font-size:18px;margin:0}.resume-preview-modal .modal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.resume-preview-modal button{min-height:44px;padding:8px 12px;border:1px solid #aabbc1;border-radius:6px;cursor:pointer}.resume-preview-modal canvas{width:100%;height:auto;background:white;display:block}
.resume-mhlw-page [role=alert]{overflow-wrap:anywhere}.resume-mhlw-page .document-field label{overflow-wrap:anywhere}
@media(max-width:900px){.resume-mhlw-page .resume-row{grid-template-columns:1.3fr 1fr}.resume-mhlw-page .resume-row .document-field:last-child{grid-column:1/-1}}
@media(max-width:600px){.resume-mhlw-page .photo-layout{grid-template-columns:80px minmax(0,1fr);gap:14px}#photo-crop{width:78px;height:104px}.resume-mhlw-page #document-pages{overflow:hidden}.resume-preview-modal{padding:12px}.resume-mhlw-page .document-export>.primary{width:100%}}

.resume-mhlw-page{--doc-ink:#272b2d;--doc-line:#dedfe0;background:#fff;color:var(--doc-ink)}
.resume-mhlw-page .document-shell{margin-top:24px;font-family:system-ui,-apple-system,"Yu Gothic","Meiryo",sans-serif;line-height:1.6}
.resume-mhlw-page .document-hero{background:none;border:0;padding:0 0 24px;margin:0 0 28px;border-bottom:1px solid var(--doc-line)}
.resume-mhlw-page .document-hero h1{font-size:28px;margin:0 0 10px;color:#202729}
.resume-mhlw-page .document-hero p{font-size:14px;color:#626769}
.resume-mhlw-page #document-form section{margin:0 0 30px;padding:0 0 30px}
.resume-mhlw-page #document-form h2{font-size:18px;color:#272b2d}
.resume-mhlw-page .document-field input,.resume-mhlw-page .document-field textarea{border-color:#bfc3c5;border-radius:3px;color:#272b2d}
.resume-mhlw-page .document-field input{min-height:46px}
.resume-mhlw-page .document-field small,.resume-mhlw-page .resume-group-info,.resume-mhlw-page output{color:#6a7073}
.resume-mhlw-page button,.resume-mhlw-page a.primary{border-radius:3px;color:#343b3e;border-color:#c6cacc}
.resume-mhlw-page button:hover{background:#f2f4f4}
.resume-mhlw-page button.primary,.resume-mhlw-page a.primary{color:#fff;background:#237e76;border-color:#237e76}
.resume-mhlw-page button.primary:hover,.resume-mhlw-page a.primary:hover{background:#195e58}
.resume-mhlw-page .gender-field{border:0;padding:0;margin:0;min-width:0;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.gender-field legend{font-size:14px;font-weight:600;margin-bottom:6px}
.gender-field label{min-height:46px;display:inline-flex;align-items:center;gap:7px;font-size:15px;cursor:pointer}
.gender-field input{width:18px;height:18px;accent-color:#237e76;margin:0}
.resume-mhlw-page .postal-link{font-size:12px;color:#237e76;text-decoration:underline;text-underline-offset:3px;line-height:1.6}
.postal-notice{font-size:12px;color:#73787a;margin:4px 0 0}
.resume-mhlw-page #postal-status{margin:12px 0 0}
.resume-mhlw-page #address-choice{width:100%;min-height:46px;font:inherit;font-size:14px;margin-top:12px}
.input-assistance{margin:0 0 22px}
.input-assistance summary{color:#237e76;font-size:14px;cursor:pointer;min-height:44px;display:list-item;align-content:center}
.input-assistance .document-fields{margin:10px 0}
.input-assistance p{margin:12px 0}
.assistance-status{font-size:13px;color:#626769;line-height:1.7}
.qualification-assistance{margin:0 0 20px}
.qualification-assistance p{margin:0 0 8px}
.resume-mhlw-page .qualification-assistance button{font-size:13px;margin:0 8px 8px 0;min-height:44px;padding:6px 9px;background:transparent}
.resume-mhlw-page .qualification-assistance .resume-group-info{font-size:12px}
.resume-mhlw-page .text-assistance{align-self:flex-start;border:0;padding:0 4px;font-size:13px;min-height:40px;color:#237e76;text-decoration:underline;text-underline-offset:3px}
.resume-mhlw-page .repeat-toolbar strong{font-size:13px;font-weight:500;color:#6a7073}
.resume-mhlw-page .repeat-toolbar button{font-size:12px;gap:3px}
.resume-mhlw-page .repeat-entry{border-color:#e7e8e8;padding:12px 0 18px}
.resume-mhlw-page #preview-panel{border-radius:0;background:#f1f2f2;padding:18px;max-height:calc(100dvh - var(--headerH,80px) - 32px);overflow:auto}
.resume-mhlw-page #preview-status{font-size:12px;color:#6a7073;line-height:1.7}
.resume-mhlw-page .resume-face-controls button[aria-pressed=true]{background:#fff;color:#237e76;border-color:#237e76}
.resume-mhlw-page .resume-preview-caption{color:#6a7073}
.resume-mhlw-page .document-export{background:#fff;border-top:2px solid #343b3e;padding:24px 0;margin:0}
.resume-mhlw-page .document-export h2{font-size:18px}
.resume-mhlw-page .document-export p{font-size:13px;color:#6a7073}
.resume-mhlw-page .document-information{margin-top:64px;max-width:850px}
.resume-mhlw-page .document-information h2{font-size:17px;margin-bottom:12px}
.resume-mhlw-page .document-information section{margin:0 0 28px;padding:0 0 24px}
.resume-mhlw-page .resume-preview-modal{font-family:system-ui,-apple-system,"Yu Gothic","Meiryo",sans-serif;line-height:1.6}
.resume-mhlw-page .document-information p,.resume-mhlw-page .document-information li{font-size:14px;color:#626769}
.resume-instructions{padding-left:22px}
.resume-instructions li{margin:5px 0}
.resume-mhlw-page .document-shell{width:calc(100% - 48px);max-width:1800px}
.resume-mhlw-page .document-hero{padding-bottom:20px;margin-bottom:24px}
.resume-mhlw-page .document-editor{grid-template-columns:minmax(0,48fr) minmax(0,52fr);gap:24px;align-items:start}
#resume-editing{min-width:0;--progress-height:150px}
.resume-mhlw-page #preview-panel{padding:14px;top:calc(var(--headerH,80px) + 12px)}
.resume-progress{position:sticky;top:var(--headerH,80px);z-index:4;background:#f5f8f7;border:1px solid #d8dfdc;border-radius:0;margin-bottom:26px;padding:8px 10px 12px}
.resume-progress summary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:14px;font-weight:600;cursor:pointer;list-style:none;min-height:36px}
.resume-progress summary::-webkit-details-marker{display:none}
.resume-progress summary::after{content:'＋';margin-left:auto;font-size:18px;font-weight:400;color:#74797b}
.resume-progress[open] summary::after{content:'−'}
.resume-progress output{font-size:12px;font-weight:400;color:#62696c}
.progress-current{display:none;color:#62696c;font-size:12px;font-weight:400}
.resume-progress:not([open]) .progress-current{display:block}
.resume-progress ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:2px;margin:0;padding:0}
.resume-mhlw-page .resume-progress button{display:grid;grid-template-columns:12px minmax(0,1fr);gap:2px 5px;width:100%;text-align:left;justify-content:start;align-content:center;min-height:54px;border:0;border-radius:0;padding:5px;background:transparent;font-size:12px;line-height:1.4}
.resume-mhlw-page .resume-progress button[aria-current]{background:#e9efec;box-shadow:inset 2px 0 #237e76}
.resume-progress button[data-state=complete] .progress-marker,.resume-progress button[aria-current] .progress-marker{color:#237e76}
.progress-marker{grid-row:1/3;color:#979d9f}
.progress-name{min-width:0;overflow-wrap:anywhere}
.progress-optional{font-size:10px;color:#74797b;margin-left:3px;white-space:nowrap}
.progress-state{grid-column:2;font-size:10px;color:#74797b}
.progress-note{font-size:11px;color:#74797b;display:block;margin-top:6px}
.resume-mhlw-page [data-progress-section]{scroll-margin-top:calc(var(--headerH,80px) + var(--progress-height,150px) + 28px)}
.resume-mhlw-page [data-progress-section]:focus{outline:none}
.resume-mhlw-page [data-progress-section]:focus-visible{outline:2px solid #237e76;outline-offset:4px}
.resume-mhlw-page .is-jump-target>h2,.resume-mhlw-page .is-jump-target>label{color:#237e76}
.resume-clear{border-top:1px solid #dedfe0;padding-top:16px;margin:0 0 24px}
.resume-mhlw-page .resume-clear button{border:0;padding-left:0;color:#6c7275;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.resume-ad-rail{display:none;min-width:0;border-left:1px solid #dedfe0;padding-left:12px;color:#7a8184;font-size:11px}
.resume-ad-slot{margin-top:8px;min-height:480px;border:1px dashed #cbd1d4;background:#f7f9fa;display:flex;align-items:center;justify-content:center;padding:10px;box-sizing:border-box;text-align:center}
.resume-ad-slot small{font-size:11px;line-height:1.8}
.resume-related{margin:32px 0}
.resume-related h2{font-size:15px;margin-bottom:12px}
.resume-related ul{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;font-size:14px}
.resume-related a{color:#237e76;text-underline-offset:3px}
@media(min-width:1440px){.resume-mhlw-page .document-editor{grid-template-columns:minmax(0,44fr) minmax(0,56fr) 144px;gap:16px}.resume-ad-rail{display:block}.resume-mhlw-page .document-export{margin-right:160px}.resume-bottom-ad{display:none}}
@media(min-width:1800px){.resume-mhlw-page .document-editor{grid-template-columns:minmax(0,44fr) minmax(0,56fr) 160px;gap:20px}.resume-mhlw-page .document-export{margin-right:180px}}
@media(min-width:601px) and (max-width:1050px){.resume-progress ol{grid-template-columns:repeat(2,minmax(0,1fr))}.resume-progress summary{gap:6px}.resume-progress summary>span:first-child{width:100%}.resume-mhlw-page .document-editor{grid-template-columns:minmax(0,48fr) minmax(0,52fr);gap:16px}}
@media(max-width:900px){.resume-mhlw-page .document-editor{grid-template-columns:minmax(0,58fr) minmax(0,42fr)}.resume-mhlw-page #preview-panel{padding:12px}.resume-mhlw-page .gender-field{gap:14px}}
@media(max-width:600px){.resume-mhlw-page .document-shell{width:calc(100% - 32px);margin-top:20px}.resume-mhlw-page .document-hero{padding:0 0 20px;margin-bottom:20px}.resume-mhlw-page .document-hero h1{font-size:24px}.resume-mhlw-page .document-editor{display:block}.resume-mhlw-page .view-tabs{gap:0;position:sticky;top:var(--headerH,80px);background:white;z-index:5;padding:8px 0;margin-bottom:24px}.resume-mhlw-page .view-tabs button{border:0;border-bottom:2px solid #d6dadb;border-radius:0;background:#fff;color:#73787a}.resume-mhlw-page .view-tabs [aria-selected=true]{background:#fff;color:#237e76;border-color:#237e76;font-weight:600}.resume-mhlw-page .is-preview #preview-panel{max-height:none;overflow:visible}.resume-mhlw-page .document-export{margin-top:12px}.resume-mhlw-page .document-information{margin-top:44px}.resume-mhlw-page .repeat-toolbar button{font-size:12px}.resume-mhlw-page .gender-field{gap:22px}}
@media(max-width:900px) and (min-width:601px){.resume-mhlw-page .document-editor{grid-template-columns:minmax(0,48fr) minmax(0,52fr)}}
@media(max-width:600px){.resume-mhlw-page .is-preview #resume-editing{display:none}.resume-progress{top:calc(var(--headerH,80px) + 60px);padding:6px 0;margin-bottom:22px}.resume-progress summary{gap:6px}.resume-progress summary>span:first-child{width:auto}.resume-progress:not([open]) .progress-current{flex-basis:100%;order:3}.resume-progress ol{grid-template-columns:repeat(2,minmax(0,1fr))}.resume-progress button{min-height:48px}.resume-mhlw-page [data-progress-section]{scroll-margin-top:calc(var(--headerH,80px) + var(--progress-height,90px) + 88px)}.resume-related ul{display:block}.resume-related li{margin-bottom:12px}}

/* The editor grid bounds preview tracking; export, ads and footer stay independent. */
@media(min-width:601px){.resume-mhlw-page .document-editor>#preview-panel{position:sticky;align-self:start;min-width:0;top:calc(var(--headerH,80px) + 12px);max-height:calc(100dvh - var(--headerH,80px) - 32px);overflow-y:auto}}
@media(max-width:600px){.resume-mhlw-page .document-editor>#preview-panel{position:static;max-height:none;overflow:visible}.resume-progress{padding-inline:10px}}
