@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;
}

/*=======================================
リセット
=======================================*/
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;
    }
}

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

select::-ms-expand {
    display: none;
}

button,
input[type="submit"],
input[type="reset"],
input[type="search"],
input[type="button"],
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);
}

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);
    }
}

.btn_back {
  a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2em;
    width: fit-content;
    color: var(--light-tx-color);
    font-weight: 700;
    background: var(--subcolor02);
    text-decoration: none;
    border: var(--border-color) solid 4px;
    border-radius: var(--parts-radius);
    padding: 0.2em var(--item-pd) 0.3em;
    margin: 0.8em 0;
    transition-duration: 0.2s;
    transition-property: background, color, transform;
    @media (width >= 920px) {
      margin: 0.8em auto 0;

    }
    [class^="material-icons"] {
      margin-top: 0.22em;
    }
    &:hover {
        color: var(--h-tx-color);
        background: var(--bg-color01);
        transform: scale(1.05);
    }
  }
}
