/* Only API presentation adjustments; established screen styles stay in the theme. */
.mk-ab-legacy .mk-error,.mk-ab-legacy .mk-notice{max-width:102rem;margin:2rem auto;padding:1.6rem;font-size:1.6rem;line-height:1.7;overflow-wrap:anywhere}
.mk-ab-legacy .mk-error{background:#ffe9e9;color:#a00}
.mk-ab-legacy .mk-notice{background:#e6f5e6;color:#173e17}
.mk-ab-legacy :focus-visible{outline:3px solid #276ab3;outline-offset:3px}
.mk-ab-legacy .password-toggle{cursor:pointer}
.mk-ab-legacy button[type=submit] img{pointer-events:none;display:block}
.mk-ab-legacy button[type=submit]:hover img{content:normal!important}
.mk-ab-legacy .form-person button{font-size:1.4rem;margin-top:1rem;padding:1rem 2rem;background:#ffc300;color:#003c96;border:1px solid #003c96;cursor:pointer}
.mk-ab-legacy .header_account form{margin:0}
.mk-ab-legacy [hidden]{display:none!important}
.mk-ab-legacy .form-person-img>img{width:100%;height:100%;object-fit:contain}
.mk-ab-legacy textarea{max-width:100%;box-sizing:border-box;min-height:12rem;font:inherit;line-height:1.7}
.mk-ab-legacy button.home{background:transparent;border:0;font:inherit;cursor:pointer}
.mk-ab-legacy .api-job-photo{font-size:1.4rem;line-height:1.7;margin-bottom:3rem}
.mk-ab-legacy .form-body-wrap>summary{font-size:1.6rem;line-height:1.7;color:#003c96;font-weight:700;cursor:pointer;padding:1.5rem 0}
.mk-ab-legacy .mk-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mk-ab-legacy .recovery-link{font-size:1.4rem;line-height:1.7;margin-top:2rem}
.mk-ab-legacy .api-keyword{font-size:1.6rem;display:flex;align-items:center;gap:1rem;margin:2rem 0}
.mk-ab-legacy .api-keyword input{font:inherit;border:1px solid #003c96;padding:1rem;min-width:0;flex:1}
.mk-ab-legacy .api-empty,.mk-ab-legacy nav[aria-label="ページ"]{font-size:1.6rem;line-height:1.7;margin:3rem 0}
.mk-ab-legacy nav[aria-label="ページ"]{display:flex;flex-wrap:wrap;gap:2rem}
.mk-ab-legacy nav[aria-label="ページ"] [aria-current]{font-weight:700;text-decoration:underline}
.mk-ab-legacy .good-img{border:0;padding:0;background:transparent;cursor:pointer}
@media(max-width:768px){.mk-ab-legacy .mk-error,.mk-ab-legacy .mk-notice{margin:2rem}}

/* API forms retain the static header layout and accessible controls. */
.mk-ab-legacy .account-menu{max-width:calc(100vw - 4rem)}
.mk-ab-legacy .account-menu:focus-within{z-index:1001}
.mk-ab-legacy .header_login .user:focus-visible{outline:3px solid #276ab3;outline-offset:4px}

.mk-ab-legacy .api-rank-unavailable::after{display:none}
.mk-ab-legacy .api-results-count,.mk-ab-legacy .api-history-title{font-size:1.6rem;line-height:1.7}
.mk-ab-legacy .api-candidate-resume{font-size:1.6rem;line-height:1.7;margin:4rem 0;background:#fff;padding:3rem;border:1px solid #d2d2d2}
.mk-ab-legacy .api-candidate-resume h2{font-size:2.2rem;line-height:1.7;margin-bottom:2rem}
.mk-ab-legacy .api-candidate-resume dt{font-weight:700;margin-top:1.5rem}
.mk-ab-legacy .api-candidate-resume dd{white-space:pre-wrap;overflow-wrap:anywhere}

.mk-ab-legacy .form-person .file{position:relative;overflow:hidden;cursor:pointer}
.mk-ab-legacy .form-person .file .file-input{display:block!important;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.mk-ab-legacy .form-person .file:focus-within{outline:3px solid #276ab3;outline-offset:3px}
.mk-ab-legacy .form-person-img>img.form-person-img-person{position:absolute;width:82%;height:82%;left:50%;top:50%;transform:translate(-50%,-50%);object-fit:contain}
.mk-ab-legacy .form-person-img>img.form-person-img-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}

.mk-ab-legacy .sec_top .list:empty{display:none}

/* Forms replace the original links without changing the supplied button styles. */
.mk-ab-legacy .sec_recruitment .btn-box form{display:flex;flex-direction:column;align-items:center;gap:1rem;font-size:1.4rem;line-height:1.7}
.mk-ab-legacy .sec_recruitment .btn-box select{font:inherit}
.mk-ab-legacy .sec_recruitment .btn-box button.btn-public:not(:disabled){pointer-events:auto}
