.textGalItem {}

@media screen and (min-width: 320px) {
    .textGalItem {
        width: 45rem;
    }
}

@media screen and (min-width: 600px) {
    .textGalItem {
        width: 62rem;
    }
}

#contact {
    max-width: 1000px;
    margin: 0 auto;
}

#contact ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: flex-start;
    margin-top: 6vw;
    margin-bottom: 3vw;
}

#contact ul li {
    width: 46%;
    max-width: 320px;
    margin-right: 3%;
}

#contact ul li.cur {}

#contact ul li.cur a {
    background: #CB9D5E;
    color: #fff;
}

#contact ul li>a {
    display: block;
    width: 100%;
    margin-right: 2%;
    line-height: 64px;
    border: 1px solid #CB9D5E;
    color: #CB9D5E;
    font-family: Noto Serif JP;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.8px;
    text-align: center;
    border-radius: 10px;
}

#contact form {}

#contact form p {
    font-family: Noto Serif JP;
    font-weight: 400;
    font-size: 16px;
    line-height: 34px;
    letter-spacing: 0.8px;
    vertical-align: middle;
    color: #000000;
    border-bottom: 1px solid #B3B3B3;
    padding-bottom: 1vw;
}

#contact form table {
    width: 100%;
}

#contact form table tr {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    -webkit-align-items: center;
    border-bottom: 1px solid #B3B3B3;
    padding: 2vw 1vw;
}

#contact form table td:nth-child(1) {
    font-family: Noto Serif JP;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 1.8px;
    color: #111111;
    max-width: 300px;
    width: 30%;
}

#contact form table td:nth-child(2) {
    width: 60%;
}

#contact form table td[colspan="2"] {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

#contact form table td:nth-child(1) .any {
    display: inline-block;
    border: 1px solid #CB9D5E;
    color: #CB9D5E;
    font-family: Noto Serif JP;
    font-weight: 500;
    font-size: 13px;
    line-height: 36px;
    letter-spacing: 0.65px;
    vertical-align: middle;
    width: 60px;
    line-height: 27px;
    text-align: center;
    margin-right: 15px;
    border-radius: 999px;
    vertical-align: text-top;
}

#contact form table td:nth-child(1) .req {
    display: inline-block;
    border: 1px solid #CB9D5E;
    background: #CB9D5E;
    color: #fff;
    font-family: Noto Serif JP;
    font-weight: 500;
    font-size: 13px;
    line-height: 36px;
    letter-spacing: 0.65px;
    vertical-align: middle;
    width: 60px;
    line-height: 27px;
    text-align: center;
    margin-right: 15px;
    border-radius: 999px;
    vertical-align: text-top;
}

#contact form table td:nth-child(1) .txt {
    font-family: Noto Serif JP;
    font-weight: 500;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 1.8px;
    vertical-align: middle;
    color: #111111;
}

#contact form table td input {
    width: 100%;
    background: #EFEFEF;
    color: #111111;
    font-family: Noto Serif JP;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.8px;
    vertical-align: middle;
    line-height: 1.6;
    max-width: 500px;
    border-radius: 10px;
    border: none;
    padding: 10px;
}

#contact form table td input::placeholder {
    color: #B3B3B3;
}

#contact form table td textarea {
    width: 100%;
    max-width: 660px;
    background: #EFEFEF;
    color: #111111;
    font-family: Noto Serif JP;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.8px;
    vertical-align: middle;
    line-height: 1.6;
    border-radius: 10px;
    border: none;
    text-indent: 10px;
    padding: 10px;
}

#contact form table td textarea::placeholder {
    color: #B3B3B3;
    font-size: 15px;
}

#contact form table tr.tr-privacy {
    border: none;
    font-family: Noto Serif JP;
    font-weight: 400;
    font-size: 15px;
    line-height: 34px;
    letter-spacing: 0.75px;
    vertical-align: middle;
    text-decoration-skip-ink: auto;
    color: #000000;
    padding-top: 3vw;
}

#contact form table tr.tr-privacy input {}

#contact form table tr.tr-privacy input[type=checkbox] {
    cursor: pointer;
    position: relative;
    width: 29px;
    height: 29px;
    margin-right: 10px;
    border: none;
    outline: none;
}

#contact form table tr.tr-privacy input[type=checkbox]::after {
    position: absolute;
    top: -1px;
    left: -1px;
    color: #cb9d5e;
    width: 30px;
    height: 30px;
    display: inline-block;
    content: ' ';
    border: 1px solid #cb9d5e;
    line-height: 29px;
    background: #fff;
    border-radius: 3px;
}

#contact form table tr.tr-privacy input[type=checkbox]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: #cb9d5e;
}

#contact form table tr.tr-privacy a {
    text-decoration: underline;
}

#contact form table tr.tr-button {
    border: none;
    padding-top: 1vw;
}

#contact form table tr.tr-button #confirm {
    width: 320px;
    line-height: 60px;
    background: #CB9D5E;
    color: #fff;
    text-align: center;
    position: relative;
}

#contact form table tr.tr-button #confirm span {
    font-size: 16px;
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

#contact form .step {
    margin-top: 4vw;
}

#contact form .step h4 {
    font-family: Noto Serif JP;
    font-weight: 400;
    font-size: 22px;
    line-height: 34px;
    letter-spacing: 0.8px;
    color: #000000;
    margin-bottom: 1vw;
}

#contact form.quote table td:nth-child(2) {
    width: 65%;
}

#contact form.quote table td label {
    display: inline-block;
    width: calc(97% / 3);
}

#contact form.quote table td input {
    max-width: 100%;
}

#contact form.quote table td label input {
    width: 90%;
    max-width: 112px;
}

#contact form.quote table tr.c-date td label input {
    max-width: 160px;
}

@media screen and (max-width: 991px) {

    #contact form table tr,
    #contact form table td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 3% 0;
    }

    #contact {
        padding: 0 2%;
    }

    #contact ul li>a {
        font-size: 15px;
        line-height: 58px;
    }

    #contact form table tr.tr-privacy td[colspan="2"] {
        font-size: 15px;
    }
    #contact form table tr.tr-privacy input[type=checkbox],
    #contact form table tr.tr-privacy input[type=checkbox]::after{
        width: 20px;
        height: 20px;
    }

    #contact form p {
        padding-bottom: 5vw;
        padding-top: 5vw;
    }

    #contact form .step h4 {
        font-size: 18px;
    }
    #contact form table td:nth-child(1){
        font-size: 15px;
    }
    #contact form table td input {
        font-size: 14px;
    }
    #contact form.quote table td label input {
        width: 50%;
        line-height: 40px;
    }

    #contact form.quote table tr.c-date td label input {
        width: 76%;
    }
    .sp_none {
        display: none !important;
    }
    #contact form table td:nth-child(1) .req {
        vertical-align: baseline;
    }
}