#contents {
    width: 1080px;
    position: relative;
    margin: 30px auto 0;
    padding: 0;
}
#topicpath {
    margin: 0 0 30px;
}
#topicpath ul {
    width: 1080px;
    margin: 0 auto;
}
#topicpath li {
    font-size: 75%;
    line-height: 150%;
    display: inline;
    list-style-type: none;
    padding: 0 0 0 15px;
    background: url(../image/topicpath.gif) 0 50% no-repeat;
}
#topicpath li.home {
    padding: 0 5px 0 0;
    background: none;
}
#topicpath li a {
    color: rgb(51, 51, 51);
}
#topicpath li strong {
    color: rgb(32, 32, 32);
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
}
#contents .contact h2 {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: url(/common/design/user/img/images_index-add/title-common-bg.png) left top repeat;
    margin: 0 0 20px;
    padding: 20px 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
p {
    margin: 0 0 15px;
}
#mail_form > dl > dt.selec > span.note,
#mail_form > dl > dd.fileup > fieldset > legend,
#mail_form > dl > dt > span.note,
#contents > div.message > p,
body > div > div > footer.footer-sp-inquiry > div:nth-child(1) > div > p,
.ex {
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 10%;
    text-align: center;
}
form#mail_form dl dt {padding: 18px 16px}
ul.checkBtn li img {
    width: 50%;
}
#mail_form > dl > dd:nth-child(18) > ul > li:nth-child(1) {margin-top: 10px}

.w-full {
    width: 100%;
}

.template-contact-form * {
    box-sizing: border-box;
}

.template-contact-form {
    margin-bottom: 30px;
}

.template-contact-form .contact {
    width: 100%;
}

.template-contact-form .contact .ex {
    display: block;
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 1.6px;
    text-align: center;
}

.template-contact-form .common-title_s1 {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: url(/common/design/user/img/images_index-add/title-common-bg.png) left top repeat;
    margin: 0 0 20px;
    padding: 20px 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: auto;
    min-height: 70px;
}

.template-contact-form .wrapper-content {
    max-width: 800px;
    margin: auto;
    border: 1px solid #E8E8E8;
    padding: 30px;
}

.template-contact-form .label-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    margin-bottom: 5px;
    margin-top: 30px;
}

.template-contact-form .label-title .require {
    padding: 5px 10px;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    vertical-align: middle;
    background-color: #C2172D;
    color: #fff;
    border-radius: 6px;
    margin-right: 5px;
}

.template-contact-form .label-title .note {
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #575757;
    margin-bottom: 0px;
}

.template-contact-form#mail_form input,
.template-contact-form#mail_form textarea#mail_contents {
    width: 100%;
    padding: 11px 10px;
    border-radius: 6px;
    border: 1px solid #E8E8E8;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    vertical-align: middle;
    background-color: #fff;
    height: auto;
    max-height: 40px;
    outline: none;
}

.template-contact-form#mail_form input::placeholder{
    font-size: 16px;
    color: #C9C9C9;
}

.template-contact-form #mail_form textarea#mail_contents {
    resize: none;
}

.template-contact-form#mail_form ul.checkBtn {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.template-contact-form#mail_form ul.checkBtn li {
    width: 100%;
    margin-bottom: 0;
}
.template-contact-form#mail_form ul.checkBtn .choose-item {
    width: 100%;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    background: #fff;
    margin: 0;
    overflow: hidden;
    padding: 15px;
    position: relative;
}

.template-contact-form .checkBtn .choose-item svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.template-contact-form#mail_form ul.checkBtn li p {
    padding: 0;
    text-align: center;
    border: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    margin-bottom: 0;
}

.template-contact-form ul.checkBtn li img {
    margin-bottom: 5px;
    width: 147px;
    height: 147px;
    object-fit: contain;
}

.template-contact-form#mail_form ul.checkBtn li .choose-input[type="checkbox"]:checked+.choose-item {
    display: block;
    background-color: #F7F7F7;
    border: 1px solid #F7F7F7;
}

.template-contact-form#mail_form ul.checkBtn li .choose-input[type="checkbox"]:checked+.choose-item p {
    background-color: transparent;
    color: #000;
}

.choose-input:checked + .choose-item svg path {
    fill: #0084FF;
}

.template-contact-form .custom-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    font-weight: 500;
}

.template-contact-form .custom-radio input[type="radio"] {
    display: none;
}

.template-contact-form .radio-mark {
    width: 26px;
    height: 26px;
    border: 2px solid #D6D6D6;
    border-radius: 50%;
    position: relative;
}

.template-contact-form .custom-radio input[type="radio"] + .radio-mark::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    background-color: #D6D6D6;
    border-radius: 50%;
}

.template-contact-form .custom-radio input[type="radio"]:checked + .radio-mark::after {
    background-color: #E61E02;
}

.template-contact-form .submitBtnArea {
    text-align: center;
}

.template-contact-form#mail_form ul.radio li {
    width: max-content;
    margin: 0 20px 0 0;
}

.template-contact-form .preview-area {
    width: 120px;
    height: 120px;
    background-color: #E8E8E8;
    border: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.template-contact-form .preview-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.template-contact-form #upload-btn {
    display: block;
    margin-top: 8px;
    padding: 5px 18px;
    background-color: #363636;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 5px;
}

.template-contact-form .note {
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #575757;
}

.template-contact-form#mail_form textarea#mail_contents {
    min-height: 230px;
}

.mail_submit_button {
    background: #e61e02;
    border-radius: 10px;
    padding: 18px;
    width: 378px;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 33px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    justify-self: center;
    height: 70px;
    margin-top: 30px;
}

.mail_submit_button svg {
    width: 22px;
    height: 22px;
}

.date-input {
    position: relative;
}

.date-input .input-group-addon {
    position: absolute;
    z-index: 999;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

@media (min-width: 1024px) {
    .template-contact-form {
        margin-bottom: 100px;
    }

    .template-contact-form#mail_form ul.checkBtn {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    #contents {
        width: 100%;
        padding: 0 0 10px 0;
    }
    #topicpath {
        margin: 0 auto;
        width: 94%;
    }
    #topicpath ul {
        width: 98%;
    }
    #contents .contact {
        width: 96%;
        margin: 0 auto;
    }
    #contents .contact h2 {
        font-size: 100%;
        text-align: center;
    }
    form#mail_form {
        width: 100%;
    }
    form#mail_form dl {
        width: 96%;
        margin: 10px auto 0 auto;
    }
    form#mail_form dl dt {
        width: auto;
        float: none;
        text-align: left;
        font-size: 96%;
        padding: 12px 20px 10px 20px;
    }
    form#mail_form dl dt span {
        font-size: 68%;
    }
    form#mail_form dl dd {
        width: auto;
        float: none;
        border-top: none;
        background: none;
        padding: 10px 20px;
    }
    form#mail_form input {
        width: 80%;
        font-size: 110%;
        padding: 4px 0 4px 6px;
    }
    .submitBtnArea {
        text-align: center;
        margin: 0 auto 40px auto;
        clear: both;
    }
    form#mail_form ul.checkBtn li p {
        padding: 8px 0 8px;
        font-size: 70%;
    }

    .template-contact-form#mail_form input::placeholder{
        font-size: 14px;
        color: #C9C9C9;
    }

    .template-contact-form .custom-radio {
        font-size: 14px;
    }

    .template-contact-form .common-title_s1  {
        font-size: 18px;
        line-height: 27px;
        font-weight: 700;
        min-height: 47px;
        padding: 10px;
    }

    .template-contact-form .contact .ex {
        font-size: 14px;
        font-weight: 500;
        color: #000000;
        text-align: left;
        margin: 0;
    }

    .template-contact-form .wrapper-content {
        padding: 20px;
    }

    .template-contact-form .label-title {
        font-size: 14px;
    }

    .template-contact-form .label-title .note {
        font-size: 12px;
        line-height: 18px;
    }

    .d-flex-reverse-row {
        display: flex;
        flex-direction: row-reverse;
        gap: 20px;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 5px;
    }

    .template-contact-form .note {
        font-size: 12px;
        line-height: 18px;
    }

    .template-contact-form #upload-btn {
        max-height: 31px;
        max-width: 118px;

    }

    .template-contact-form#mail_form textarea#mail_contents {
        min-height: 160px;
    }

    .template-contact-form .radio {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mail_submit_button {
        padding: 13px;
        width: 100%;
        font-size: 16px;
        line-height: 24px;
        font-weight: 700;
        height: 50px;
    }

    .mail_submit_button svg {
        width: 16px;
        height: 16px;
    }

}
