.legal-career-entry {
    padding: 100px 20px;
    background: linear-gradient(to right, #f2f2f2 0%, #f2f2f2 60%, #eaeaea 60%);
    color: #333;
    font: 14px/1.8 'Noto Sans JP', sans-serif;
}

.legal-career-entry * {
    box-sizing: border-box;
}

.legal-career-entry [hidden] {
    display: none !important;
}

.legal-career-entry .lc-entry-box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
}

.legal-career-entry .lc-entry-title {
    margin: 0;
    padding: 13px 16px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: linear-gradient(to bottom right, #2d87d1, #1f4da0);
}

.legal-career-entry .lc-entry-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 32px 16px 10px;
    border-bottom: 1px solid #e8e8e8;
    list-style: none;
}

.legal-career-entry .lc-entry-steps li {
    color: #999;
    font-size: 15px;
    font-weight: 700;
}

.legal-career-entry .lc-entry-steps [aria-current="step"] {
    color: #1f4da0;
}

.legal-career-entry form,
.legal-career-entry .lc-entry-thanks {
    padding: 16px;
}

.legal-career-entry fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.legal-career-entry legend {
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.legal-career-entry .lc-entry-field {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.legal-career-entry .lc-entry-label {
    display: block;
    margin: 0 0 4px;
    font-weight: 700;
}

.legal-career-entry .lc-entry-required {
    margin-left: 4px;
    color: #b62122;
}

.legal-career-entry .lc-entry-optional {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.legal-career-entry .lc-entry-required,
.legal-career-entry .lc-entry-optional {
    padding: 0 !important;
}

.legal-career-entry label::before,
.legal-career-entry label::after {
    content: none !important;
}

.legal-career-entry input[type="text"],
.legal-career-entry input[type="email"],
.legal-career-entry input[type="tel"],
.legal-career-entry select {
    width: 100%;
    height: 50px;
    padding: 12px;
    border: 1px solid #999;
    border-radius: 10px;
    background: #f2f2f2;
    font: inherit;
    color: #333;
}

.legal-career-entry .lc-entry-pair {
    display: flex;
    gap: 10px;
}

.legal-career-entry .lc-entry-pair>* {
    flex: 1;
    min-width: 0;
}

.legal-career-entry .lc-entry-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.legal-career-entry .lc-entry-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.legal-career-entry input[type="radio"],
.legal-career-entry input[type="checkbox"] {
    position: static;
    display: inline-block;
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1f4da0;
    flex: 0 0 auto;
}

.legal-career-entry .lc-entry-other {
    margin-top: 12px;
}

.legal-career-entry .lc-entry-agree {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    gap: 4px;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
}

.legal-career-entry .lc-entry-agree label {
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    font: inherit;
}

.legal-career-entry .lc-entry-agree a {
    padding: 0 !important;
    font-size: inherit;
}

.legal-career-entry .lc-entry-agree input {
    width: 13px;
    height: 13px;
    margin: 0;
    padding: 0;
}

.legal-career-entry a {
    color: #1f4da0;
    text-decoration: underline;
}

.legal-career-entry .lc-entry-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.legal-career-entry .lc-entry-next {
    display: block;
    max-width: 270px;
    width: 100%;
    margin-left: auto;
    padding: 16px;
    border: none;
    background: #f3cb18;
    color: #222;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.legal-career-entry .lc-entry-back {
    position: relative;
    padding: 1px 6px 1px 16px;
    border: 0;
    border-bottom: 1px solid #333;
    background: transparent;
    color: #333;
    font: 13px Arial, sans-serif;
    cursor: pointer;
}

.legal-career-entry .lc-entry-back::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 1px solid #333;
    border-left: 1px solid #333;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.legal-career-entry button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.legal-career-entry button:hover:not(:disabled) {
    opacity: .8;
}

.legal-career-entry .lc-entry-error {
    margin: 4px 0 0;
    color: #b62122;
    font-size: 12px;
}

.legal-career-entry [aria-invalid="true"] {
    border-color: #b62122 !important;
}

.legal-career-entry .lc-entry-errors {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #b62122;
    color: #b62122;
}

.legal-career-entry .lc-entry-errors ul {
    padding-left: 20px;
}

.legal-career-entry :focus-visible {
    outline: 2px solid #1f4da0;
    outline-offset: 3px;
}

.legal-career-entry .lc-entry-thanks p {
    margin: 0 0 16px;
}

.legal-career-entry .lc-entry-thanks a {
    margin: 24px auto 0;
}

@media (max-width: 768px) {
    .legal-career-entry {
        padding: 50px 20px;
    }

    .legal-career-entry .lc-entry-box {
        max-width: 480px;
    }

    .legal-career-entry .lc-entry-title {
        font-size: 17px;
    }

    .legal-career-entry .lc-entry-buttons {
        flex-direction: column;
    }

    .legal-career-entry .lc-entry-next {
        margin: 0 auto;
        padding: 8px;
        max-width: 220px;
    }

    .legal-career-entry input[type="text"],
    .legal-career-entry input[type="email"],
    .legal-career-entry input[type="tel"],
    .legal-career-entry select {
        font-size: 16px;
    }
}

/* 登録画面のみ：PC/SPのフォームデザインに合わせる（完了画面には適用しない）。 */
.legal-career-entry--registration {
    --lc-entry-gradient: linear-gradient(110deg, #2d8fd5, #2550a0);
    --lc-entry-yellow: #f3cd14;
    padding: 70px 24px 80px;
    /*background: #fff;*/
}

.legal-career-entry--registration .lc-entry-box {
    max-width: 1000px;
}

.legal-career-entry--registration .lc-entry-title {
    padding: 16px;
    background: var(--lc-entry-gradient);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 15px 15px 0 0;
}

.legal-career-entry--registration .lc-entry-steps {
    gap: 0;
    max-width: 210px;
    margin: 0 auto;
    padding: 36px 0;
    border: 0;
}

.legal-career-entry--registration .lc-entry-steps li {
    flex: 1;
    text-align: center;
    font-weight: 400;
    color: #aaa;
    font-family: 'Noto Serif JP', serif;
}

.legal-career-entry--registration .lc-entry-steps [aria-current="step"] {
    color: #2550a0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-career-entry--registration form {
    padding: 0 60px 50px;
}

.legal-career-entry--registration legend {
    margin-bottom: 24px;
    font-size: 18px;
}

.legal-career-entry--registration .lc-entry-field {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 0;
    border: 0;
}

.legal-career-entry--registration .lc-entry-label {
    margin-bottom: 6px;
    font-size: 18px;
}

.legal-career-entry--registration input[type="text"],
.legal-career-entry--registration input[type="email"],
.legal-career-entry--registration input[type="tel"],
.legal-career-entry--registration select {
    height: 54px;
    padding: 12px 20px;
    border-color: #d6d6d6;
    background-color: #fff;
}

.legal-career-entry--registration input::placeholder {
    opacity: 1;
    color: #888;
    font-size: 13px;
}

.legal-career-entry--registration select:required:invalid {
    color: #888;
}

.legal-career-entry--registration select option {
    color: #333;
}

.legal-career-entry--registration .lc-entry-pair {
    gap: 32px;
}

.legal-career-entry--registration .lc-entry-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 15px;
    /* padding: 16px 0; */
}

.legal-career-entry--registration .lc-entry-choice {
    position: relative;
    min-width: 0;
}

.legal-career-entry--registration .lc-entry-choice--other {
    grid-column: 2;
}

.legal-career-entry--registration input.lc-entry-choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.legal-career-entry--registration .lc-entry-choice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    height: 100%;
    margin: 0;
    padding: 12px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
    cursor: pointer;
}

.legal-career-entry--registration .lc-entry-choice-button:hover {
    border-color: #2d8fd5;
}

.legal-career-entry--registration .lc-entry-choice-input:checked+.lc-entry-choice-button {
    border-color: transparent;
    background: var(--lc-entry-gradient);
    color: #fff;
}

.legal-career-entry--registration .lc-entry-choice-input:focus-visible+.lc-entry-choice-button {
    outline: 2px solid #2550a0;
    outline-offset: 3px;
}

.legal-career-entry--registration .lc-entry-other {
    margin-top: 24px;
}

.legal-career-entry--registration .lc-entry-options {
    gap: 20px 32px;
    padding: 12px 0;
    font-size: 16px;
}

.legal-career-entry--registration .lc-entry-options label {
    padding: 0;
}

.legal-career-entry--registration .lc-entry-options input {
    width: 16px;
    height: 16px;
}


.legal-career-entry--registration .lc-entry-submit-area .lc-entry-agree {
    margin: 0 auto 30px;
}

.legal-career-entry--registration .lc-entry-submit-area .lc-entry-back {
    margin: 16px auto 0;
    display: block;
}
.legal-career-entry--registration .lc-entry-buttons {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.legal-career-entry--registration .lc-entry-next {
    order: 0;
    margin: 0 auto;
    padding: 14px 20px;
    background: var(--lc-entry-yellow);
    font-size: 17px;
    font-weight: bold;
}

.legal-career-entry--registration .lc-entry-back {
    order: 1;
    padding: 0;
    font: inherit;
    text-decoration: none;
}

.legal-career-entry--registration .lc-entry-back::before {
    content: none;
}

@media (max-width: 768px) {
    .legal-career-entry--registration {
        padding: 40px 20px 48px;
    }

    .legal-career-entry--registration .lc-entry-box {
        max-width: 480px;
    }

    .legal-career-entry--registration .lc-entry-title {
        padding: 18px 8px;
        font-size: clamp(18px, 5.6vw, 24px);
    }

    .legal-career-entry--registration .lc-entry-steps {
        padding: 24px 0 36px;
    }

    .legal-career-entry--registration form {
        padding: 0 20px 38px;
    }

    .legal-career-entry--registration legend {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .legal-career-entry--registration .lc-entry-field {
        margin-bottom: 24px;
    }

    .legal-career-entry--registration .lc-entry-pair {
        gap: 12px;
    }

    .legal-career-entry--registration .lc-entry-choices {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        max-width: 310px;
        margin: 0 auto;
        padding: 0;
    }

    .legal-career-entry--registration .lc-entry-choice--other {
        grid-column: auto;
    }

    .legal-career-entry--registration .lc-entry-choice-button {
        min-height: 48px;
        padding: 20px 8px;
    }

    .legal-career-entry--registration input[type="text"],
    .legal-career-entry--registration input[type="email"],
    .legal-career-entry--registration input[type="tel"],
    .legal-career-entry--registration select {
        padding: 12px;
    }

    .legal-career-entry--registration .lc-entry-options {
        gap: 25px;
    }

    .legal-career-entry--registration .lc-entry-submit-area {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 36px;
    }

    .legal-career-entry--registration .lc-entry-agree {
        font-size: 13px;
        font-weight: 400;
        align-items: flex-start;
        line-height: 1.8;
    }

    .legal-career-entry--registration .lc-entry-agree input {
        margin-top: 5px;
    }

    .legal-career-entry--registration .lc-entry-buttons {
        margin-top: 24px;
    }
}