@charset "UTF-8";

.pagetitle_wrap {
    background: url(../img/contact_img/pagetitle_bg.jpg) center center no-repeat;
    background-size: cover;
}

/*----------------------------------form*/

:root {
    --form-table-border: #999;
    --form-table-th: color-mix(in srgb, var(--subcolor-light), var(--white) 50%);
    --form-table-td_child: color-mix(in srgb, var(--subcolor-light), var(--white) 80%);
}

table#contact {
    width: 100%;
    margin: 20px 0;
    border-left: 1px solid var(--form-table-border);
    border-top: 1px solid var(--form-table-border);
}

table#contact tr th {
    display: block;
    padding: 10px;
    border-right: 1px solid var(--form-table-border);
    border-bottom: 1px solid var(--form-table-border);
    background: var(--form-table-th);
    line-height: 150%;
    text-align: left;
}

table#contact tr td {
    display: block;
    padding: 10px;
    border-right: 1px solid var(--form-table-border);
    border-bottom: 1px solid var(--form-table-border);
    text-align: left;
    background: #fff;
}

table#contact tr td.td_child {
    border-bottom: 1px dotted var(--form-table-border);
    background: var(--form-table-td_child);
}

table#contact p {
    margin-bottom: 5px;
}

table#contact tr td .attention {
    white-space: nowrap;
}

table#contact tr th span.form_title {
    display: block;
    overflow: hidden;
}

/*必須アイコン*/
table#contact tr th span.txt_required {
    float: left;
    font-size: 11px;
    font-weight: normal;
    text-align: center;
    border-radius: 2px;
    color: #fff;
    background: var(--error-color);
    padding: 6px 0;
    margin-right: 10px;
    line-height: 70%;
    width: 40px;
    display: block;
}

/*任意アイコン*/
table#contact tr th span.txt_optional {
    float: left;
    font-size: 11px;
    text-align: center;
    font-weight: normal;
    border-radius: 2px;
    color: #fff;
    background: var(--gray);
    padding: 6px 0;
    margin-right: 10px;
    line-height: 70%;
    width: 40px;
    display: none;
}

/*入力エリア装飾*/
input[type="text"],
input[type="tel"],
textarea {
    padding: 10px;
    font-size: 1.6rem;
    border-radius: 0;
    border: 1px solid #e8e8e8;
    background: linear-gradient(90deg, #e8e8e8 0%, #e8e8e8 100%);
}

select {
    padding: 10px;
    font-size: 1.6rem;
    border-radius: 0;
    border: none;
    background: #e8e8e8;
}

select:focus {
    padding: 10px;
    font-size: 1.6rem;
    border-radius: 0;
    border: none;
}

/*入力エリアサイズ*/
.input_10 {
    width: 10%;
}

.input_20 {
    width: 20%;
}

.input_30 {
    width: 30%;
}

.input_50 {
    width: 50%;
}

.input_70 {
    width: 70%;
}

.input_100 {
    width: 100%;
}

.input_zip {
    width: 180px;
}

.input_tel {
    width: 200px;
}

/*入力モード*/
.ime_dis {
    ime-mode: disabled;
}

.ime_act {
    ime-mode: active;
}

/*入力例の文字装飾*/
::-webkit-input-placeholder {
    color: #bbb;
}

::-moz-placeholder {
    color: #bbb;
}

input:focus::-webkit-input-placeholder {
    color: transparent;
}

/*ラジオボタン余白調整*/
input[type="radio"],
input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

label:has(input[type="radio"])+label:has(input[type="radio"]),
label:has(input[type="checkbox"])+label:has(input[type="checkbox"]) {
    margin-left: 16px;
}


/*送信・戻るボタン*/
ul.submit_btn {
    display: flex;
    flex-direction: column;
    gap: 16px 24px;
    margin-bottom: 32px;

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


ul.submit_btn li.inp_submit01 input {
    color: var(--light-tx-color);
    background: var(--maincolor);
    border: 1px solid var(--maincolor);
    font-size: 20px;
    font-weight: 700;
    padding: 14px 24px;
    margin: 0 5px;
    cursor: pointer;
    min-width: 180px;
    transition: 0.2s;
    min-width: 240px;

    &:hover {
        background: color-mix(in srgb, var(--maincolor), white 10%);
    }

    @media (width >=768px) {
        font-size: 20px;

        padding: 16px;
    }
}

ul.submit_btn li.inp_submit02 input {
    color: var(--gray);
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    font-size: 20px;
    font-weight: 700;
    padding: 14px 24px;
    margin: 0 5px;
    cursor: pointer;
    min-width: 180px;
    transition: 0.2s;
    min-width: 240px;

    &:hover {
        background: color-mix(in srgb, var(--light-gray), white 20%);
    }

    @media (width >=768px) {
        font-size: 20px;

        padding: 16px;
    }
}

/*エラーメッセージ用*/
.errtop {
    position: relative;
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #c33;
    background: #fcc;
}

.errtop::after {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 0;
    height: 0;
    margin-left: -15px;
    content: "";
    border: solid 15px transparent;
    border-top: solid 15px #fcc;
}

.errmsg span {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    font-weight: bold;
    color: #c33;
    background: #fcc;
}

.errmsg span::after {
    position: absolute;
    left: 30px;
    top: -20px;
    width: 0;
    height: 0;
    content: "";
    border: solid 10px transparent;
    border-bottom: solid 10px #fcc;
}

/*遷移後のランディング位置調整*/
#form_landing {
    margin-top: -80px;
    padding-top: 80px;
}

/*送信完了画面用*/
#thanks {
    margin: 20px 0;
}

#thanks h5 {
    margin: -80px 0 15px;
    padding-top: 80px;
    font-size: 16px;
    font-weight: bold;
}

@media print,
screen and (min-width: 768px) {
    table#contact {
        border-collapse: separate;
    }

    table#contact tr th {
        display: table-cell;
        border-right: 1px dotted var(--form-table-border);
        width: 28%;
    }

    table#contact tr td {
        display: table-cell;
    }

    table#contact tr td.td_child {
        border-right: 1px dotted var(--form-table-border);
        border-bottom: 1px solid var(--form-table-border);
    }

    /*入力例の文字装飾*/
    ::-webkit-input-placeholder {
        color: #666;
    }

    ::-moz-placeholder {
        color: #666;
    }

    :-ms-input-placeholder {
        color: #666;
    }
}

.form_link_btn {
    &>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
        text-decoration: none;
        border: 1px solid var(--accentcolor);
        background: var(--accentcolor);
        color: var(--light-tx-color);
        position: relative;
        padding: 0.8em 1em;
        width: 80%;
        max-width: 320px;
        margin-inline: auto;
        transition: 0.2s;


        &::after {
            content: "";
            aspect-ratio: 43/12;
            background: url(../img/common_img/arrow_rihgt.svg) center center no-repeat;
            background-size: cover;
            width: 43px;
            height: auto;
            display: block;
            pointer-events: none;
            transition: 0.2s;

        }

        &:hover {
            background: color-mix(in srgb, var(--accentcolor), white 20%);

            &::after {
                transform: translateX(4px);
            }
        }
    }

    @media (width >=768px) {
        &>a {
            margin-left: 0;
        }
    }
}

.form_step_ti {
    background: var(--subcolor);
    background: linear-gradient(90deg, var(--subcolor) 0%, rgb(from var(--subcolor) r g b / 0.5) 100%);
    color: var(--light-tx-color);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    font-size: 18px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;

    .en_tx{
        font-family: var(--font-en01);
        font-weight: var(--font-en01-weight);
        transform: translateY(4px) rotate(-10deg);
        font-size: 1.2em;
    }

    @media (width >=768px) {
        font-size: 24px;
        padding: 10px 16px;
        margin-bottom: 24px;
        gap:16px;
    }
}