@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600&display=swap');

:root {
    --label-background-color: #F2F2F8;
    --border-color: #C0C0D7;
}

.container {
    padding: 0;
    font-family: "IBM Plex Sans JP", sans-serif;
}

.form-page {
    width: min(800px, 100%);
}

.badge-required,
legend .badge-required {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    background-color: #cd3232;
    border-radius: 2px;
    padding: 4px 4px 2px;
}

legend .badge-required {
    align-self: flex-start;
    position: initial;
    margin-left: 0;
}

.badge-required {
    margin-left: 10px;
}

.label {
    font-weight: 600;
    font-size: 16px;
    padding: 16px;
}

.form-column-checkbox .label {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: 16px;
}

input[type="text"],
input[type="email"] {
    border-radius: 5px;
    height: auto;
    min-height: 42px;
    padding: 0.4em 0.5em;
}

input[type="text"][aria-invalid="true"],
input[type="email"][aria-invalid="true"],
input[type="checkbox"][aria-invalid="true"] {
    border-color: #C50000;
    background-color: #FBEBEB;
}

input[type="checkbox"] {
    appearance: none;
    margin: 0;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #C0C0C0;
    border-radius: 2px;
    position: relative;
    display: grid;
    place-items: center;
    cursor: pointer !important;
}

input[type="checkbox"]::before {
    content: "";
    display: block;
    width: 10px;
    height: 5px;
    border-left: 1px solid;
    border-bottom: 1px solid;
    rotate: -45deg;
    translate: 0 -1.5px;
    opacity: 0;
}

input[type="checkbox"]:checked::before {
    opacity: 1;
}

.option-text {
    font-size: 16px;
}

.description-block {
    font-size: 14px;
}

.description-block a {
    text-decoration: underline;
}

.button-group {
    margin-top: 16px;
}

.button {
    margin: 0 auto !important;
    max-width: 163px;
    font-weight: 600;
    background-color: #003399;
    border-radius: 2px;
    padding: 12px;
}

.l-contact__text {
    line-height: 1.8;
    font-size: 16px;
}

.l-contact__note {
    margin-top: 16px;
}

.l-contact__note span {
    margin-right: 5px;
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    background-color: #cd3232;
    border-radius: 2px;
    padding: 0 5px;
}

.form-column:first-of-type {
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0 0 16px 0;
}

/* 確認画面 */
.content-confirmation .badge-required,
.content-confirmation legend .badge-required {
    display: none;
}

.content-confirmation .label {
    padding: 8px 16px;
}

.content-confirmation .description-block {
    display: none;
}

.content-confirmation .button {
    max-width: initial;
    padding: 16px;
}

.content-confirmation button.button-submit {
    background-color: #003399;
}

.content-confirmation button.button-back {
    background-color: initial !important;
    color: #032550;
    text-decoration: underline;
    padding: 8px;
}

.content-confirmation .l-contact__text,
.content-confirmation .l-contact__note {
    display: none;
}

.message-block-confirmation {
    margin-bottom: 0;
    font-size: 16px;
}

/* PC */
@media screen and (min-width: 768px) {
    .form-column {
        grid-template-columns: 345px 1fr;
    }

    .badge-required,
    legend .badge-required {
        font-size: 13px;
        padding: 4px 4px 3px;
    }

    legend .badge-required {
        margin-left: 10px;
    }

    .label {
        font-size: 17px;
        align-content: center;
        padding: 28px 20px;
    }

    .button-group {
        display: inline-block;
    }

    .button {
        font-size: 15px;
        max-width: 163px;
        min-width: initial;
    }

    .form-column-checkbox .input-group label:last-child {
        padding-top: 22px;
    }

    a {
        transition: color .3s;
    }

    a:hover {
        opacity: 1;
        color: #5059C8;
    }

    .content-confirmation .label {
        padding: 20px;
    }

    .form-column-checkbox .label {
        /* padding: 36px 5px 36px 20px; */
        /* display: grid;
        justify-items: start; */
        display: block;
        padding: 20px 15px 20px 20px;
    }

    .content-confirmation .preview-block {
        padding: 21px 20px;
    }

    .content-confirmation .preview-block[data-tf-column-id="c6b2ffaa-d953-434c-b04e-3a4f48f79afc"] {
        padding-block: 36px;
    }

    .content-confirmation button.button-submit {
        min-width: 200px;
    }

    .content-confirmation button.button-back {
        padding: 0;
    }

    .content-confirmation .button-group {
        display: flex;
        flex-direction: column-reverse;
        row-gap: 16px;
        align-items: start !important;
    }

    .content-confirmation .form-column:first-of-type {
        padding: 0;
    }

    .content-confirmation .button {
        margin: initial !important;
    }

    .button-group .help-block {
        text-align: left;
    }

    .grecaptcha-badge {
        margin-right: auto !important;
    }

    .l-contact__text {
        font-size: 17px;
    }

    .l-contact__note {
        margin-top: 16px;
        font-size: 15px;
    }

    .l-contact__note span {
        font-size: 13px;
    }

    @media screen and (min-width: 1024px) {
        .l-contact__text {
            width: 128%;
        }
    }

    .description-block {
        margin-top: -10px;
    }
}

.button-confirm {
    transition: background-color .3s;
}

.button-confirm:hover {
    opacity: 1;
    background-color: #052566;
}