/*フォーム
-----------------------------------------*/
.form-area
{
    margin-top: 40px;

}

.form-inner
{

    margin-bottom: 40px;
    margin-top: 40px;
    padding: 40px 0;
    border-top: 2px dotted var(--primary-700);
    border-bottom: 2px dotted var(--primary-700);
}

.badge-required,
.badge-optional
{
    font-size: 14px;
    line-height: 20px;
    margin-right: 8px;
    display: inline-block;
    width: 44px;
    text-align: center;
    height: 20px;
}

.badge-required
{
    color: var(--white);
    background-color: var(--red);
}

.badge-optional
{
    color: var(--secondary-700);
    background-color: var(--secondary-200);
}

.form-row
{
    margin-bottom: 32px;
}

.form-item
{
    margin-bottom: 8px;
    display: block;
}

.hint
{
    color: var(--secondary-300);
    font-size: 14px;
    margin-top: 4px;
}

input[type="text"].short
{
    width: 160px;
    margin-right: 8px;
}

.note
{
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

/* ラジオボタン */
.radio-list
{
    display: flex;
    column-gap: 32px;
    justify-content: center
}

.radio-button
{
    cursor: pointer;
    padding-left: 36px;
    position: relative;
}

.radio-button::before,
.radio-button::after
{
    content: "";
    display: block;
    border-radius: 50%;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
}

.radio-button::before
{
    background-color: #fff;
    border: 1px solid var(--secondary-300);
    height: 24px;
    width: 24px;
    left: 4px;
}

.radio-button::after
{
    background-color: var(--primary-500);
    opacity: 0;
    height: 16px;
    width: 16px;
    left: 8px;
}

input:checked+.radio-button::after
{
    opacity: 1;
}

/* フォーム共通設定 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select
{
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--secondary-300);
    border-radius: 8px
}

textarea
{
    resize: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus
{
    outline: 1px solid var(--primary-500);
    border: 1px solid var(--primary-500);
}


/* チェックボックス */

.checkbox-item
{
    display: flex;
    align-items: center;
    column-gap: 4px;
    width: fit-content;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-item:not(:last-of-type)
{
    margin-bottom: 16px;
}

.checkbox
{
    position: relative;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1px solid var(--secondary-500);
    border-radius: 2px;
    cursor: pointer;
}

.checkbox:checked
{
    background-color: var(--white);
}

.checkbox:checked::after
{
    content: "";
    position: absolute;
    top: 8px;
    left: 5px;
    width: 16px;
    height: 8px;
    border-bottom: 2px solid var(--primary-700);
    border-left: 2px solid var(--primary-700);
    transform: rotate(-45deg);
}

.form-area .wpcf7-list-item
{
    margin: 0;
}

.btn
{
    margin: 15px auto;
    display: block;
    text-align: center;
}

input[type="submit"]
{
    width: 280px;
    height: 50px;
    margin: 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, var(--primary-700), var(--primary-500));
    box-shadow: 8px 8px 16px rgba(220, 0, 113, 0.3);
    border: 1px solid var(--primary-700);
    border-radius: 9999px;
}

input[type="button"]
{
    width: 280px;
    height: 50px;
    margin: 0 0 20px;
    text-align: center;
    color: var(--primary-700);
    background: #fff;
    border: 1px solid var(--primary-700);
    border-radius: 9999px;
}

@media (min-width: 769px)
{
    .form-row
    {
        display: flex;
        flex-flow: row wrap;
    }

    .form-item
    {
        width: 240px;
        margin-right: 16px;
    }

    .radio-list
    {
        justify-content: flex-start;
    }

    .radio-list,
    .form-right
    {
        width: calc(100% - 256px);
    }

    .form-row:has(.checkbox-item)
    {
        display: block;
        margin: 0 auto;
        max-width: 450px;
    }

    .note
    {
        text-align: center;
    }

    ::placeholder
    {
        color: #b1b1b1;
    }

    .btn
    {
        margin: 30px auto;
        display: flex;
        justify-content: center;
    }

    input[type="submit"]
    {
        width: 300px;
        height: 60px;
        margin: 0 15px;
        text-align: center;
        color: #fff;
        position: relative;
        background: linear-gradient(180deg, var(--primary-700), var(--primary-500));
        box-shadow: 8px 8px 16px rgba(220, 0, 113, 0.3);
        border: 1px solid var(--primary-700);
        border-radius: 9999px;
    }

    input[type="button"]
    {
        width: 300px;
        height: 60px;
        margin: 0 15px;
    }

    .back_button
    {
        margin-bottom: 0;
    }
}

.wpcf7-spinner
{
    display: none;
}

.confirm_area,
.thanks_area
{
    display: none;
}