@charset "utf-8";

/*
 * ============================================================
 *  common_responsive.css — 공통 요소 반응형 (신규 작성)
 *  원본 참조: common.css (절대 수정 금지)
 *
 *  변경 내용:
 *   - 버튼 고정 px → 유연한 크기
 *   - input/textarea 고정 px → 100%
 *   - 테이블 폼 → 반응형 스택
 *   - 동의 박스 → 반응형
 * ============================================================
 */


/* ============================================================
   글로벌 폰트 — Pretendard (2025 트렌드)
   ============================================================ */
html {
    font-size: 15px;
}
body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #333 !important;
    letter-spacing: -0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 제목 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard Variable', Pretendard, sans-serif !important;
    letter-spacing: -0.4px;
}

/* input/select/textarea/button */
input, select, textarea, button {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Noto Sans KR', 'Malgun Gothic', sans-serif !important;
}

/* 테이블 */
table, th, td {
    font-family: inherit !important;
}


/* ============================================================
   버튼 — 파스텔톤 모던 스타일
   ============================================================ */

/* 회색 버튼 → 파스텔 그레이 */
button.but_bg_162, button.but_bg_120, button.but_bg_95,
button.but_bg_75, button.but_bg_56, button.but_bg_40 {
    background: #f0f4f8 !important;
    border: 1px solid #d0d8e0 !important;
    border-radius: 6px !important;
    color: #555 !important;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
button.but_bg_162:hover, button.but_bg_120:hover, button.but_bg_95:hover,
button.but_bg_75:hover, button.but_bg_56:hover, button.but_bg_40:hover {
    background: #e4ecf4 !important;
    border-color: #b8c8d8 !important;
}

/* 파란 버튼 → 파스텔 블루 */
button.but_blue_150x50, button.but_blue_100x76,
button.but_blue_100x30, button.but_blue_190x76 {
    background: #e3f2fd !important;
    border: 1px solid #90caf9 !important;
    border-radius: 6px !important;
    color: #1976d2 !important;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}
button.but_blue_150x50:hover, button.but_blue_100x76:hover,
button.but_blue_100x30:hover, button.but_blue_190x76:hover {
    background: #bbdefb !important;
    border-color: #64b5f6 !important;
}

/* 회색 버튼2 → 파스텔 그레이 */
button.but_gray_100x30, button.but_gray_150x50, button.but_gray_190x76,
button.but_gray2_100x36, button.but_gray2_80x46,
button.but_gray2_80x46_right, button.but_gray2_80x46_right_absolute {
    background: #f5f5f5 !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    color: #666 !important;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
button.but_gray_100x30:hover, button.but_gray_150x50:hover, button.but_gray_190x76:hover,
button.but_gray2_100x36:hover, button.but_gray2_80x46:hover {
    background: #e8e8e8 !important;
    border-color: #bbb !important;
}

/* 스카이블루 버튼 → 파스텔 시안 */
button.but_skyblue {
    background: #e0f7fa !important;
    border: 1px solid #80deea !important;
    border-radius: 6px !important;
    color: #00838f !important;
    font-weight: 600;
}

/* 크기 유지 */
button.but_bg_162 { width: auto; min-width: 100px; max-width: 162px; padding: 0 12px; }
button.but_bg_120 { width: auto; min-width: 80px;  max-width: 120px; padding: 0 10px; }
button.but_bg_95  { width: auto; min-width: 70px;  max-width: 95px;  padding: 0 8px; }
button.but_bg_75  { width: auto; min-width: 60px;  max-width: 75px;  padding: 0 6px; }
button.but_bg_56  { width: auto; min-width: 44px;  max-width: 56px;  padding: 0 4px; }
button.but_bg_40  { width: auto; min-width: 36px;  max-width: 40px;  padding: 0 4px; }

button.but_blue_150x50  { width: 100%; max-width: 150px; height: 44px; font-size: 15px; }
button.but_blue_100x76  { width: 100%; max-width: 100px; height: 60px; font-size: 14px; }
button.but_blue_100x30  { width: 100%; max-width: 100px; height: 30px; font-size: 13px; }
button.but_blue_190x76  { width: 100%; max-width: 190px; height: 60px; font-size: 15px; }
button.but_gray_100x30  { width: 100%; max-width: 100px; height: 30px; font-size: 13px; }
button.but_gray_150x50  { width: 100%; max-width: 150px; height: 44px; font-size: 15px; }
button.but_gray_190x76  { width: 100%; max-width: 190px; height: 60px; font-size: 15px; }
button.but_gray2_100x36 { width: 100%; max-width: 100px; height: 36px; font-size: 13px; }
button.but_gray2_80x46  { width: 100%; max-width: 80px;  height: 40px; font-size: 12px; }
button.but_gray2_80x46_right          { float: right; width: 80px; height: 40px; }
button.but_gray2_80x46_right_absolute { position: absolute; right: 0; top: 0; width: 80px; height: 40px; }
button.but_122x82       { width: 100%; max-width: 122px; height: 70px; }
button.but_122x82_right { float: right; max-width: 122px; height: 70px; }
button.but_122x82_right_absolute { position: absolute; right: 0; top: 0; max-width: 122px; height: 70px; }


/* ============================================================
   테이블 폼 design1 — 모바일: 세로 스택
   ============================================================ */
/* table.design1 — 모던 폼 테이블 (카드 내부용) */
table.design1 {
    display: block; width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
table.design1 caption { display: none; }
table.design1 tbody { display: block; width: 100%; }
table.design1 tr { display: block; width: 100%; border-bottom: 1px solid #f0f0f0; }
table.design1 tr:last-child { border-bottom: none; }
table.design1 tr th {
    display: block;
    width: 100%;
    padding: 12px 16px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    line-height: 24px;
    background: transparent !important;
    border: none !important;
}
table.design1 tr th.wide { width: 100%; }
table.design1 tr td {
    display: block;
    width: 100%;
    padding: 4px 16px 14px;
    font-size: 13px;
    line-height: 24px;
}

/* input — 모던 스타일 */
table.design1 tr td input[type=text],
table.design1 tr td input[type=password] {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #333 !important;
    outline: none;
    transition: border-color .2s;
}
table.design1 tr td input[type=text]:focus,
table.design1 tr td input[type=password]:focus {
    border-color: #90caf9 !important;
    box-shadow: 0 0 0 3px rgba(144,202,249,.15);
}

/* file input */
table.design1 tr td input[type=file] {
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    padding: 8px 0;
}

/* select */
table.design1 tr td select {
    width: 100%; max-width: 100%; font-size: 14px;
    padding: 8px 12px; border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important; background: #fff !important;
    color: #333; outline: none;
}
table.design1 tr td select:focus { border-color: #90caf9 !important; }
table.design1 tr td select.wide { width: 100%; max-width: 100%; }

/* textarea — 934x300px → 100% */
table.design1 tr td textarea {
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    height: auto;
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
}
table.design1 tr td textarea.w718p { width: 100%; max-width: 100%; }

/* 전화번호 슬라이스 */
table.design1 tr td span.tel_slice { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 36px; }


/* ============================================================
   페이징 — 터치 영역 확대
   ============================================================ */
span.list_paging1,
span.list_paging2,
span.list_paging3 {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 13px;
    padding: 0 8px;
}

div.paging_design1 { height: 36px; }
div.paging_design1 > span.area { height: 36px; line-height: 36px; }
div.paging_design1 > span.area > span { height: 36px; line-height: 36px; padding: 0 8px; min-width: 34px; }


/* ============================================================
   동의 박스 — 모바일
   ============================================================ */
#agree_check > span {
    font-size: 14px;
    margin-bottom: 20px;
}

#agree_check > div.agree_group > span.title {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    font-size: 13px;
    height: auto;
    min-height: 42px;
    line-height: 42px;
}

#agree_check > div.agree_group > span.title2,
#agree_check > div.agree_group > span.title3 {
    width: 50%;
    max-width: 50%;
    height: auto;
    min-height: 38px;
    line-height: 38px;
    font-size: 12px;
}

#agree_check > div.agree_group > textarea.content {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
}

#agree_check > span.check { font-size: 13px; }


/* ============================================================
   태블릿 (768px ~)
   ============================================================ */
@media (min-width: 768px) {

    /* 버튼 원본 크기 복원 */
    button.but_bg_162 { width: 162px; }
    button.but_bg_120 { width: 120px; }
    button.but_bg_95  { width: 95px; }
    button.but_bg_75  { width: 75px; }
    button.but_bg_56  { width: 56px; }
    button.but_bg_40  { width: 40px; }

    /* 테이블 폼 — 태블릿: 가로 레이아웃 복원 */
    table.design1         { display: table; }
    table.design1 tbody   { display: table-row-group; }
    table.design1 tr      { display: table-row; }
    table.design1 tr th   { display: table-cell; width: 120px; padding: 12px; font-size: 14px; line-height: 36px; }
    table.design1 tr th.wide { width: 170px; }
    table.design1 tr td   { display: table-cell; padding: 12px; font-size: 14px; line-height: 36px; }

    table.design1 tr td input[type=text],
    table.design1 tr td input[type=password] {
        width: 100%;
        max-width: 528px;
        font-size: 14px;
        height: 34px;
        line-height: 34px;
        padding-left: 20px;
    }
    table.design1 tr td input[type=file] {
        width: 548px;
        max-width: 548px;
        font-size: 14px;
        height: 34px;
    }
    table.design1 tr td select { width: auto; font-size: 14px; }
    table.design1 tr td select.wide { width: 548px; }
    table.design1 tr td textarea {
        width: 934px;
        max-width: 934px;
        height: 300px;
        min-height: 300px;
        padding: 20px;
        font-size: 14px;
        line-height: 1.5;
    }
    table.design1 tr td textarea.w718p { width: 718px; max-width: 718px; }

    /* 동의 박스 */
    #agree_check > div.agree_group > span.title { width: 968px; }
    #agree_check > div.agree_group > span.title2 { width: 332px; }
    #agree_check > div.agree_group > span.title3 { width: 332px; }
    #agree_check > div.agree_group > textarea.content { width: 938px; padding: 20px 30px; }
}


/* ============================================================
   데스크탑 (1025px ~)
   ============================================================ */
@media (min-width: 1025px) {

    button.but_blue_150x50 { width: 150px; height: 50px; font-size: 16px; }
    button.but_blue_100x76 { width: 100px; height: 76px; font-size: 16px; }
    button.but_blue_190x76 { width: 190px; height: 76px; font-size: 16px; }
    button.but_gray_150x50 { width: 150px; height: 50px; font-size: 16px; }
    button.but_gray_190x76 { width: 190px; height: 76px; font-size: 16px; }
    button.but_122x82      { width: 122px; height: 82px; }
    button.but_122x82_right { width: 122px; height: 82px; }

    /* 페이징 — board_responsive.css 모던 스타일 우선 (복원 삭제) */
}


/* ============================================================
   원본 CSS font-family Override → Pretendard
   ============================================================ */
#main_contents span.subject,
#main_contents span.title,
#main_contents span.title2,
#main_contents span.title3,
#main_contents span.main_board_title2,
#content_left_area div.title_n_loc span.title,
#content_area div.title_n_loc span.title,
#dp_board_pc_view_title,
#member_myreg span.myreg_group_title {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Noto Sans KR', 'Malgun Gothic', sans-serif !important;
}


/* ============================================================
   Member — 로그인/가입 카드 + 파스텔 버튼
   ============================================================ */
#member_login,
#member_find_form,
#member_join_form {
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
}
#member_login button,
#member_find_form button,
#member_join_form button {
    background-image: none !important;
    background: #e3f2fd !important;
    border: 1px solid #90caf9 !important;
    border-radius: 6px !important;
    color: #1976d2 !important;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
}
#member_login button:hover,
#member_find_form button:hover,
#member_join_form button:hover {
    background: #bbdefb !important;
    border-color: #64b5f6 !important;
}


/* ============================================================
   통합 모던 버튼 시스템 (.btn-modern)
   ============================================================ */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    vertical-align: middle;
    background-image: none !important;
}
.btn-modern.btn-primary {
    color: #fff;
    background: #1976d2 !important;
    border-color: #1565c0;
}
.btn-modern.btn-primary:hover {
    background: #1565c0 !important;
    box-shadow: 0 2px 8px rgba(25,118,210,.25);
}
.btn-modern.btn-secondary {
    color: #555;
    background: #f0f4f8 !important;
    border-color: #d0d8e0;
}
.btn-modern.btn-secondary:hover {
    background: #e3e8ee !important;
    border-color: #bcc4cc;
}
.btn-modern.btn-outline {
    color: #555;
    background: #fff !important;
    border-color: #ddd;
}
.btn-modern.btn-outline:hover {
    background: #f8f9fa !important;
    border-color: #bbb;
}
.btn-modern.btn-danger-outline {
    color: #e53935;
    background: #fff !important;
    border-color: #ffcdd2;
}
.btn-modern.btn-danger-outline:hover {
    background: #fff5f5 !important;
    border-color: #ef9a9a;
}


/* ============================================================
   통합 CSS 배지 시스템 (이미지 아이콘 대체)
   ============================================================ */
.badge-new {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.3;
    margin-left: 3px;
}
.badge-mob {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #42a5f5;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.3;
    margin-left: 3px;
}
.badge-secret {
    display: inline-block;
    font-size: 13px;
    vertical-align: middle;
    margin-left: 3px;
    opacity: .7;
}
.badge-reply {
    display: inline-block;
    font-size: 14px;
    vertical-align: middle;
    margin-left: 2px;
}
