:root {
    --main-color: #3C4986;
    --bg-color: #F9F9F9;
    --black-color: #3A3A3A;
    --sub-txt-color: #555555;
    --sub-txt-color-02: #777777;
    --sub-txt-color-03: #999999;
    --border-color: #D9D9D9;
    --red-color: #DA6257;
    --yellow-color: #FF9800;
}

@media screen and (max-width: 1099px) {
    .wrap {
        padding: 0 8px;
    }
    .user-wrap {
        padding: 0 8px;
    }
}
@media screen and (max-width: 1023px) {
    /*공통*/
    main {
        padding-top: 138px;    
    }

    /*header*/
    .gnb > li > a {
        font-size: 14px;
    }
    .gnb > li:not(:last-child)::after {
        margin: 0 12px;
    }
    .logo {
        width: 150px;
    }
    .header-tp .btn-wrap a {
        gap: 4px;
    }
    .header-tp .btn-wrap a img {
        width: 18px;
    }
    .header-tp .btn-wrap {
        gap: 16px;
    }

    /*footer*/
    footer {
        padding-bottom: 110px;
    }
    .footer-tp {
        height: 80px;
    }
    .footer-bt {
        height: 60px;
    }
    .nav-area {
        height: auto;
        flex-direction: column;
        gap: 0;
    }
    .fixed-nav .wrap {
        padding: 0;
    }
    .bottom-btn {
        width: 100%;
    }
    .bottom-btn button, .bottom-btn a {
        width: 100%;
        position: relative;
    }
    .hot {
        width: 100%;
        height: 26px;
        padding: 0 8px;
    }
    .hot::after {
        display: none;
    }
    .now {
        width: 100%;
        height: 26px;
        padding: 0 8px;
    }
    .bottom-btn a .num, .bottom-btn button .num {
        top: -6px;
    }

    /*메인*/
    .intro-area {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }
    .rank-area {
        padding: 16px;
    }
    .rank-area .tit {
        font-size: 16px;
    }
    .scroll-item {
        max-height: 150px;
    }
    .tit-lg {
        font-size: 20px;
    }
    .tit-sm {
        font-size: 16px;
    }
    .board-grid .item {
        padding: 16px;
    }
    .board-grid {
        margin: 16px 0;
        gap: 16px;
    }
    .board-list li {
        padding: 12px 0;
    }

    /*페이지*/
    .category-tab {
        padding: 12px 0;
    }
    .category-tab a:not(:last-child)::after {
        margin: 0 12px;
    }
    .tit-area .tit {
        padding: 12px 0;
    }
    .view-info {
        padding: 12px 0;
    }
    .editor-area {
        padding: 24px 0;
        min-height: 150px;
    }
    .reply-area {
        margin-top: 24px;
    }
    .reply-info {
        padding: 8px;
    }
    .reply-list li .content {
        padding: 8px;
    }
    .reply-write textarea {
        padding: 8px;
        height: 60px;
    }
    .reply-write > button {
        width: 60px;
        min-width: 60px;
        height: 60px;
        font-size: 12px;
    }
    .input-box input {
        padding: 0 8px;
        height: 40px;
        line-height: 40px;
    }
    .input-box select {
        height: 40px;
        line-height: 40px;
    }
    .input-lg {
        height: 40px;
        line-height: 40px;
        padding: 0 8px;
    }
    .input-box select {
        padding: 0 8px;
    }
    .dashboard {
        margin: 24px 0;
        padding: 16px 0;
    }
    .dashboard .item {
        padding: 0 12px;
    }
    .dashboard .item > p {
        font-size: 12px;
    }
    .dashboard .item > div {
        font-size: 14px;
        line-height: 1.3;
    }
    .mypage-tab {
        padding: 16px 0;
    }
    .mypage-tab a:not(:last-child)::after {
        margin: 0 12px;
    }
    .btn-large {
        height: 40px;
        line-height: 40px;
    }
    .alarm-box {
        z-index: 5;
        width: calc(100dvw - 8px);
        position: fixed;
        bottom: 54px;
        left: 50%;
        transform: translateX(-50%);
        right: unset;
    }
}
@media screen and (max-width: 767px) {
    .modal .modal-box {
        max-width: calc(100dvw - 16px);
    }
    .modal .modal-box .tit-box span {
        font-size: 14px;
    }
    .modal .terms-box {
        height: 200px;
    }
    .top-btn {
        display: none !important;
    }
    main {
        padding-top: 74px;
    }
    .input {
        font-size: 13px;
    }
    .btn-large {
        font-size: 13px;
    }
    /*header*/

    .ham {
        display: block;
    }
    .header-tp {
        height: 60px;
        border-bottom: 1px solid var(--border-color);
    }
    .header-btn {
        border-top: 1px solid var(--border-color);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 0 8px;
        background-color: #fff;
        width: 100%;
        height: 50px;
        display: none;
    }
    .header-bt {
        position: absolute;
        top: 110px;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 100dvh;
        background-color: var(--black-color);
        padding: 16px 8px;
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
        align-items: flex-start;
        display: none;
    }
    .header-bt .wrap {
        flex-direction: column-reverse;
        justify-content: flex-end;
    }
    .header-search {
        padding: 16px;
    }
    .gnb {
        margin-top: 24px;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .gnb > li {
        width: 100%;
    }
    .gnb > li > a {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .gnb > li > a::after {
        content: "";
        background-image: url('../images/icons/gnb_arrow.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        width: 20px;
        height: 20px;
        transition: .2s ease-in-out;
    }
    .gnb > li:not(:last-child)::after {
        background-color: transparent;
        margin: 0;
    }
    .header-search {
        max-width: 100%;
    }
    .header-tp .btn-wrap {
        width: 100%;
        height: 100%;
        gap: 12px;
    }
    .board-list li .view {
        display: none;
    }
    .board-list li .thumb img {
        width: 13px;
    }


    /*footer*/
    footer {
        margin-top: 60px;
    }
    .footer-tp {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        height: auto;
        padding: 24px 0;
    }
    .footer-bt {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        height: auto;
        padding: 24px 0;
    }
    .footer-bt .footer-btn a {
        font-size: 13px;
    }

    /*메인*/
    .board-grid {
        grid-template-columns: repeat(1, 1fr); 
    }

    /*페이지*/
    .category-tab a {
        font-size: 13px;
    }
    .board-list li .thumb {
        font-size: 13px;
    }
    .board-list li .tit > a {
        font-size: 13px;
    }
    .board-list li .writer {
        font-size: 13px;
    }
    .board-list li .date {
        font-size: 13px;
    }
    .dashboard {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
    }
    .dashboard .item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .dashboard .item > p {
        font-size: 14px;
    }
    .board-search select {
        width: 70px;
        font-size: 13px;
        padding: 0 8px;
    }
    .board-search input {
        width: 140px;
        font-size: 13px;
        padding: 0 8px;
    }
    .view-info .writer {
        font-size: 13px;
    }
    .view-info .lt > span {
        font-size: 13px;
    }
    .view-info .lt > span:not(:last-child)::after {
        margin: 0 8px;
    }
    .view-info .view, .view-info .date, .view-info .area, .view-info .price {
        font-size: 13px;
        display: flex;
        align-items: center;
    }
    .view-info .rt > span:not(:last-child)::after {
        margin: 0 8px;
    }
    .thumb-area .item button {
        font-size: 13px;
    }
    .thumb-area .item .cnt {
        font-size: 13px;
    }
    .tit-lg {
        font-size: 16px;
    }
    .nav-area .head {
        font-size: 13px;
    }
    .nav-area .head img {
        width: 14px;
    }
    .fixed-slider .swiper-slide .tit {
        font-size: 13px;
    }
    .fixed-slider .swiper-slide .num {
        width: 14px;
        min-width: 14px;
        height: 14px;
        font-size: 10px;
    }
    .bt-area {
        flex-direction: column-reverse;
        gap: 6px;
    }
    .btn-box a, .btn-box button {
        font-size: 12px;
        letter-spacing: -1px;
        width: 80px;
        gap: 2px;
    }
    .btn-box img {
        width: 14px;
    }
    .reply-info .name {
        font-size: 13px;
    }
    .reply-info .rt button::after {
        margin: 0 8px;
    }
    .reply-info .rt button, .reply-info .rt span {
        font-size: 13px;
        letter-spacing: -1px;
    }
    .reply-list li .content {
        font-size: 13px;
    }
    .reply-write textarea {
        font-size: 13px;
    }
    .user-banner {
        height: 150px;
    }
    .user-form .input-item > p {
        font-size: 13px;
    }
    .pagination li a {
        font-size: 13px;
    }
    .rank-area .item .name {
        font-size: 13px;
    }
    .rank-area .item .point {
        font-size: 13px;
    }
    .find-link {
        font-size: 13px;
    }
    .register-link {
        font-size: 13px;
    }
    .input-terms .item label {
        font-size: 13px;
    }
    .input-terms .item button {
        font-size: 13px;
    }
    .board-list li.empty {
        font-size: 13px;
        align-items: center;
    }
    .board-list li {
        height: auto;
    }
    #smart_editor2 {
        min-width: unset !important;
    }

}
@media screen and (max-width: 480px) {
    /*header*/
    .header-tp .btn-wrap .name {
        letter-spacing: -1px;
    }
    .header-tp .btn-wrap a span {
        letter-spacing: -1px;
    }

    /*footer*/
    .fnb {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .footer-bt .footer-btn {
        gap: 24px;
    }
    .fixed-slider .swiper-slide a {
        padding-left: 16px;
    }

    /*메인*/
    .rank-area {
        padding: 12px 8px;
        border-radius: 8px;
    }
    .board-grid .item {
        padding: 12px 8px;
    }

    /*페이지*/
    .category-tab {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        overflow-x: auto;
    }
    .view-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .view-info .writer::after {
        margin: 0 8px;
    }
    .reply-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .reply-list {
        gap: 8px;
    }
    .reply-list li.re {
        padding-left: 12px;
    }
    .reply-list li.re::before {
        width: 12px;
        height: 12px;
    }
    .mypage-tab a {
        font-size: 13px;
        letter-spacing: -1px;
    }
    .mypage-tab a:not(:last-child)::after {
        margin: 0 8px;
    }
    .user-form {
        padding: 24px 16px;
    }
    .talk-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 0;
    }
    .talk-list li .content {
        padding: 4px;
        background-color: var(--bg-color);
    }
    .talk-list li .date br {
        display: none;
    }
    .talk-list li .lt {
        width: 100%;
    }
    .talk-list li .lt .from {
        font-size: 13px;
    }
    .talk-list li .lt .from img {
        width: 14px;
    }
    .mypage-btn > button {
        font-size: 10px;
        height: 20px;
        line-height: 20px;
        padding: 0 4px;
    }
    .board-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .board-list li .view {
        display: flex;
    }
    .board-list li .thumb {
        min-width: unset;
    }
    .board-list li .writer {
        font-size: 12px;
        min-width: unset;
    }
    .board-list li .writer img {
        width: 14px;
    }
    .board-list li .view {
        font-size: 12px;
        min-width: unset;
    }
    .board-list li .date {
        font-size: 12px;
        min-width: unset;
    }
    .board-list li .tit {
        gap: 2px;
    }
    .board-list li .tit .reply-cnt {
        padding: 2px 4px;
    }
    .board-list li .tit .review-point {
        padding: 2px 6px;
    }
    .dashboard .item > p {
        font-size: 13px;
    }
    .dashboard .item > div {
        font-size: 13px;
    }
    .user-banner .txt-box {
        padding: 24px 16px;
    }
    .user-banner .txt-box .txt p:first-child {
        font-size: 13px;
    }
    .user-banner .txt-box .txt p:nth-child(2) {
        font-size: 20px;
    }
    .user-ballon {
        left: 0;
        transform: unset;
    }
    .user-ballon::after {
        left: 16px;
        transform: unset;
    }
    .btn-box {
        flex-direction: column;
    }
    .question-info .ballon {
        left: 50%;
        transform: translateX(-50%);
    }
    .question-info .ballon::after {
        left: 50%;
        transform: translateX(-50%);
    }
}