@charset "UTF-8";
/*=======================================
form 設定
=======================================*/
:root {
    /*form font-size ------*/
    --form-font-size: 1.6rem;
    /*form color ------*/
    --form-bg: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(241, 241, 241, 1) 100%);
    --form-border: #c3c3c3;
    /*box ----*/
    --form-block: 0.5em;
    --form-inline: 0.8em;
    --form-radius: 4px;
    /*重なったとき用*/
    --form-spacer: 0.1em;
    /*ステータス ------*/
    /*入力中*/
    --focus-color: #ffa500;
}

/*=======================================
リセット
=======================================*/
:where(input[type="text"], input[type="tel"], input[type="password"], input[type="email"], input[type="number"], input[type="url"]) {
    padding: 0;
    border: none;
    border-radius: 0;
    outline: none;
    background: none;
    box-sizing: border-box;
    font-size: var(--form-font-size);

    /*入力中*/
    &:focus {
        border: var(--focus-color) 1px solid;
    }
}

:where(select) {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    font-size: var(--form-font-size);
}

:where(select::-ms-expand) {
    display: none;
}

:where(button, input[type="submit"], input[type="reset"], input[type="search"], input[type="date"]) {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    font-size: var(--form-font-size);
}

:where(textarea) {
    -webkit-appearance: none;
    appearance: none;
    resize: none;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    font-size: var(--form-font-size);
}

textarea {
    /*可変*/
    &.sizing_textarea {
        line-height: 1.5;
        field-sizing: content;
        min-height: 2lh;
        width: 100%;
        /*最大サイズ*/
        max-height: 4lh;
    }
}

/*入力例の文字装飾*/
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    color: var(--placeholder);
}
input:focus::-webkit-input-placeholder,
input:focus:-moz-placeholder,
input:focus::-moz-placeholder {
    color: transparent;
}

textarea:focus::-webkit-input-placeholder,
textarea:focus:-moz-placeholder,
textarea:focus::-moz-placeholder {
    color: transparent;
}

/*form　item*/
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    border: 1px solid var(--form-border);
    background: var(--form-bg);
    padding: var(--form-block) var(--form-inline);
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);
    border-radius: var(--form-radius);
}

textarea {
    border: 1px solid var(--form-border);
    background: var(--form-bg);
    padding: var(--form-block) var(--form-inline);
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);
    border-radius: var(--form-radius);
}

/*=======================================
form table
=======================================*/
#contact {
    /*form*/
    --form-table-bd: #999;
    --form-th-bg: color-mix(in srgb, var(--maincolor) 20%, white);
    --form-td-bg: #fff;
    --form-td-child-bg: #eee;
    --form-table-block: 12px;
    --form-table-inline: 16px;
    width: 100%;
    border-left: 1px solid var(--form-table-bd);
    border-top: 1px solid var(--form-table-bd);
    background: var(--bg-white);

    @media (width >= 768px) {
        border-collapse: separate;
    }

    :is(tr) {
        & > th,
        & > td {
            padding: var(--form-table-block) var(--form-table-inline);
            text-align: left;
            line-height: 1.2;
        }

        & > th {
            display: block;
            border-right: 1px solid var(--form-table-bd);
            border-bottom: 1px solid var(--form-table-bd);
            background: var(--form-th-bg);

            @media (width >= 768px) {
                display: table-cell;
                border-right: 1px dotted var(--form-table-bd);
                width: 28%;
            }
        }
        & > td {
            display: block;
            border-right: 1px solid var(--form-table-bd);
            border-bottom: 1px solid var(--form-table-bd);
            background: var(--form-td-bg);

            &.td_child {
                background: var(--form-td-child-bg);
            }

            & > label {
                display: inline-block;
                margin-right: 1em;
                padding-top: var(--form-spacer);
                padding-bottom: var(--form-spacer);

                & > input[type="radio"],
                & > input[type="checkbox"] {
                    margin-right: 0.4em;
                    vertical-align: middle;
                }
            }
            & > select {
                border: 1px solid var(--form-border);
                background: var(--form-bg);
                padding-block: var(--form-block);
                padding-inline: var(--form-inline);
                margin-block: var(--form-spacer);
                border-radius: var(--form-radius);
            }

            & > p {
                & + * {
                    margin-top: 0.4em;
                }
            }
            * + p {
                margin-top: 0.4em;
            }

            @media (width >= 768px) {
                display: table-cell;

                &.bottom_dotted {
                    border-bottom: 1px dotted var(--form-table-bd);
                }

                &.td_child {
                    border-right: 1px dotted var(--form-table-bd);
                    border-bottom: 1px solid var(--form-table-bd);
                }
            }
        }
    }
}

/*必須/任意----------*/
.txt_required,
.txt_optional {
    display: inline-block;
    width: max-content;
    color: var(--light-tx-color);
    font-size: clamp(1rem, 12vw/13.66, 1.2rem);
    border-radius: 100px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    line-height: 1.4;
    vertical-align: middle;
    margin-right: 0.5em;
}
.txt_required {
    background: var(--error-color);
}
.txt_optional {
    background: var(--gray);
}

/*入力エリアサイズ*/
.input_10 {
    width: clamp(40px, 10%, 48px);
}
.input_20 {
    width: clamp(80px, 20%, 160px);
}
.input_30 {
    width: clamp(180px, 30%, 240px);
}
.input_50 {
    width: clamp(240px, 50%, 400px);
}
.input_70 {
    width: min(100%, 600px);
}
.input_100 {
    width: 100%;
}

.input_zip {
    width: 180px;
}
.input_tel {
    width: 100%;
    @media (width >= 768px) {
        width: 240px;
    }
}

/*送信・戻るボタン----------*/
.submit_btn {
    --btn-block: 0.8em;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    @media (width >= 768px) {
        flex-direction: row;
    }

    :is(input) {
        border: none;
        border-radius: var(--btn-radius);
        padding: var(--btn-block) calc(var(--btn-block) * 2);
        cursor: pointer;
        transition: 0.2s;
        font-size: 1.2em;
        width: 100%;

        &:hover {
            opacity: 0.8;
        }
    }

    [class^="inp_submit0"] {
        width: 100%;
        @media (width >= 768px) {
            width: max-content;
            min-width: 240px;
        }
    }

    .inp_submit01 {
        & > input {
            color: var(--light-tx-color);
            background: var(--maincolor);
        }
    }
    .inp_submit02 {
        & > input {
            color: var(--light-tx-color);
            background: var(--gray);
        }
    }
}

* + .submit_btn {
    margin-top: 32px;
}

/*エラーメッセージ用 ----------*/
/*top*/
.errtop {
    --err-arrow-size: 16px;

    position: relative;
    margin: calc(var(--err-arrow-size) + calc(var(--err-arrow-size) / 2)) 0;
    padding: 0.8em;
    text-align: center;
    font-weight: bold;
    color: var(--error-color);
    background: color-mix(in srgb, var(--error-color) 20%, white);
    &::after {
        position: absolute;
        left: 50%;
        bottom: calc(calc(var(--err-arrow-size) * 1.9) * -1);
        width: 0;
        height: 0;
        margin-left: calc(var(--err-arrow-size) * -1);
        content: "";
        border: solid var(--err-arrow-size) transparent;
        border-top: solid var(--err-arrow-size) color-mix(in srgb, var(--error-color) 20%, white);
    }
}
/*table in*/
.errmsg {
    --err-arrow-size: 16px;

    position: relative;
    margin: calc(var(--err-arrow-size) + calc(var(--err-arrow-size) / 4)) 0 0;
    padding: 0.4em 0.6em;
    text-align: left;
    font-weight: bold;
    color: var(--error-color);
    background: color-mix(in srgb, var(--error-color) 20%, white);
    &::after {
        position: absolute;
        left: 1em;
        top: calc(calc(var(--err-arrow-size) * 1.9) * -1);
        width: 0;
        height: 0;
        content: "";
        border: solid var(--err-arrow-size) transparent;
        border-bottom: solid var(--err-arrow-size) color-mix(in srgb, var(--error-color) 20%, white);
    }
}

/*=======================================
その他　パーツ
=======================================*/
/* input_list ---------*/
.input_list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;

    & > li {
        white-space: nowrap;
        & > input[type="checkbox"],
        & > input[type="radio"] {
            vertical-align: middle;
            margin-right: 0.5em;
        }
    }
}
/*select ------*/
.select_box {
    position: relative;
    width: max-content;
    border: 1px solid var(--form-border);
    background: var(--form-bg-grade);
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);
    border-radius: var(--form-radius);
    &::before {
        font-family: remixicon !important;
        font-style: normal;
        content: "\ea4e";
        pointer-events: none;
        display: block;
        position: absolute;
        inset: 50% 0.4em auto auto;
        transform: translateY(-50%);
        color: var(--maincolor);
    }
    :is(select) {
        padding-block: var(--form-block);
        padding-inline: var(--form-inline) 2em;
    }

    /*100% --------*/
    &.w100 {
        width: 100%;
        :is(select) {
            width: 100%;
        }
    }
}
.select_box:has(> select:focus) {
    border: 1px solid var(--focus-color);
}
/*time ------*/
.time_box {
    width: max-content;
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);

    :is(input[type="time"]) {
        position: relative;
        padding: var(--form-block) calc(var(--form-inline) + 1em) var(--form-block) var(--form-inline);
        border: none;
        outline: none;
        background: transparent;
        width: 100%;

        width: max-content;
        border: 1px solid var(--form-border);
        background: var(--form-bg-grade);
        margin-block: var(--form-spacer);
        border-radius: var(--form-radius);
        font-size: var(--form-font-size);

        min-height: calc(1.4em + calc(var(--form-block) * 2));
        min-width: 80px;

        cursor: pointer;

        &::after {
            pointer-events: none;
            font-family: remixicon !important;
            font-style: normal;
            content: "\f20f";
            pointer-events: none;
            display: block;
            position: absolute;
            inset: 50% 0.4em auto auto;
            transform: translateY(-50%);
            color: var(--maincolor);
        }

        &::-webkit-calendar-picker-indicator {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: auto;
            height: auto;
            color: transparent;
            background: transparent;
            z-index: 100;
        }
    }
}
.time_box:has(> input[type="time"]:focus) {
    border: 1px solid var(--focus-color);
}
/*=======================================
flatpickr使用時　ない時は削除   */
input[type="text"].flatpickr {
    font-family: "Barlow", sans-serif; /*英字フォント使っていれば*/
    font-weight: 400;
}

.flatpickr_box {
    position: relative;
    display: inline-block;
}
.flatpickr_box::before {
    font-family: remixicon !important;
    font-style: normal;
    content: "\eb21";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: auto 0 auto auto;
    font-size: 2rem;
    color: #333333;
    pointer-events: none;
}

/*=======================================
目のパスワード　  */
#fieldPassword {
    border: 1px solid var(--form-border);
    background: var(--form-bg);
    border-radius: var(--form-radius);
    padding: 0;
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);
    width: 100%;
    position: relative;
}
#fieldPassword #buttonEye {
    font-size: 1.2em;
    position: absolute;
    inset: 50% 6px auto auto;
    transform: translateY(-50%);
    cursor: pointer;
}
#fieldPassword #textPassword {
    width: 100%;
    border: none;
    background: transparent;
    padding-right: 40px;
    margin: 0;
}
#fieldPassword:has(> input[type="password"]:focus) {
    border: 1px solid var(--focus-color);
}

/*=======================================
目のパスワード　/　複数　  */
.fieldPassword {
    border: 1px solid var(--form-border);
    background: var(--form-bg);
    border-radius: var(--form-radius);
    padding: 0;
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);
    width: 100%;
    position: relative;
}
.fieldPassword [id^="buttonEye_"] {
    font-size: 1.2em;
    position: absolute;
    inset: 50% 0.8em auto auto;
    transform: translateY(-50%);
    cursor: pointer;
}
.fieldPassword [id^="textPassword_"] {
    width: 100%;
    border: none;
    background: transparent;
    padding-right: 40px;
    margin: 0;
    &:focus {
        border: none;
    }
}
.fieldPassword:has(> input[type="password"]:focus) {
    border: 1px solid var(--focus-color);
}
/*=======================================
datepicker使用時　ない時は削除   */
.datepicker_box {
    border: 1px solid var(--form-border);
    background: var(--form-bg);
    border-radius: var(--form-radius);
    padding: 0;
    margin-top: var(--form-spacer);
    margin-bottom: var(--form-spacer);
    width: max-content;
    position: relative;

    &::before {
        font-family: remixicon !important;
        font-style: normal;
        content: "\eb21";
        position: absolute;
        top: 50%;
        right: 0.5em;
        transform: translateY(-50%);
        font-size: 1.2em;
        color: var(--maincolor);
        pointer-events: none;
    }
    & > input[type="text"] {
        border: none;
        margin: 0;
        padding-right: 1.5em;
    }
}

/*data-error --*/
input[data-error] {
    border-color: var(--error-color);
    background: color-mix(in srgb, var(--error-color), white 90%);
}
#fieldPassword:has(input[data-error]) {
    border-color: var(--error-color);
    background: color-mix(in srgb, var(--error-color), white 90%);
}
.datepicker_box:has(input[data-error]) {
    border-color: var(--error-color);
    background: color-mix(in srgb, var(--error-color), white 90%);
}

/*==========================
同意でアクティブ
==========================*/
.terms_check_box {
    display: block;
    font-size: var(--font-base);

    #terms_check {
        margin-right: 0.5em;
        vertical-align: middle;
    }
}
#terms_btn {
    border: none;
    border-radius: var(--btn-radius);
    padding: 10px 24px;
    cursor: pointer;
    min-width: 240px;
    transition: 0.2s;
    font-size: 1.2em;
    font-family: "Noto Sans JP";
    font-weight: 400;
    background: var(--maincolor);
    color: var(--light-tx-color);
    pointer-events: all;
    &:hover {
        opacity: 0.8;
    }

    &:disabled {
        background: #ccc;
        pointer-events: none;
    }
}
/*==========================
複数ファイルアップロード
==========================*/
input[type="file"] {
    display: none;
}

label.fileUp_btn {
    display: flex;
    justify-content: center;
    width: max-content;
    gap: 8px;
    border: none;
    line-height: 1;
    border-radius: var(--btn-radius);
    padding: 16px 1em;
    cursor: pointer;
    min-width: 240px;
    transition: 0.2s;
    font-size: var(--font-base);
    font-weight: 700;
    color: #fff;
    background-color: var(--maincolor);
}
label.fileUp_btn i {
    font-weight: normal;
}
label.fileUp_btn:hover {
    opacity: 0.8;
}

label + .file_p {
    padding-top: 0.2em;
}

.file_preview {
    width: 240px;
    height: auto;
}
