
:root{
    --site_width:1440px;
    /* --color_primary:#d4b886; */
    --color_primary:#375F16;
    /* --color_primary:#82C3D5; */
    --color_secondary:#19470b15;
    --header_height:100px;
    --scroll_h:64px;
    --bg:#ffffff;
    --bg_soft:#CDC6BE;
    --line:#e8efe8;
    --txt:#0f172a;
    --muted:#64748b;
    --radius:16px;
    --shadow:0 8px 22px rgba(2,6,23,.06);
    --shadow2:0 10px 28px rgba(2,6,23,.08);
}
*,*::before,*::after{box-sizing:border-box;}html,body{margin:0;padding:0;}
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;color:#111;line-height:1.5;word-break:keep-all;}a{color:inherit;text-decoration:none;}a:hover,a:focus,a:active{text-decoration:none;}a:focus-visible,button:focus-visible,input:focus-visible,
textarea:focus-visible,select:focus-visible{outline:2px solid var(--color_primary);outline-offset:2px;}ul,ol{margin:0;padding:0;list-style:none;}img{vertical-align:middle;border:0;max-width:100%;height:auto;}
button{background:none;border:0;cursor:pointer;font:inherit;color:inherit;}
table{border-collapse:collapse;border-spacing:0;}
input,textarea,select{font-family:inherit;}::placeholder{color:#abb4bd;opacity:1;}::-webkit-input-placeholder{color:#abb4bd;}:-ms-input-placeholder{color:#abb4bd;}i{font-style:normal;}


.home-nav{top:0;z-index:1000;background:#fff;border-bottom:1px solid #ebebeb}
.home-nav-inner{width:min(1400px,96vw);margin:0 auto;height:80px;display:flex;justify-content:space-between;align-items:center}
.home-nav-logo img{height:40px;width:auto;display:block}

.home-nav-icons{display:flex;align-items:center;gap:4px}
.home-nav-icon-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:56px;padding:6px 8px;color:#222;text-decoration:none;background:none;border:0;cursor:pointer;font:inherit;border-radius:6px;transition:background .12s}
.home-nav-icon-item:hover{background:none}
.home-nav-icon-item:hover i{color:tomato}
.home-nav-icon-item i{font-size:1.15rem;line-height:1}
.home-nav-icon-item span{font-size:.75rem;color:#444;white-space:nowrap}
@media (max-width: 768px) {
  .home-nav-icon-item:not([data-hnm-open]) { display: none; }
  .home-nav-logo img{margin: 10px; height: 30px ;}
}

.home-nav-searchbar{display:none;border-top:1px solid #ebebeb;background:#fff;padding:12px min(calc(50vw - 300px),5vw)}
.home-nav-searchbar.open{display:block}
.home-nav-searchbar form{display:flex;align-items:center;gap:0;border:1.5px solid #222;border-radius:6px;overflow:hidden;max-width:600px;margin:0 auto}
.home-nav-searchbar input{flex:1;border:0;padding:10px 14px;font-size:.95rem;outline:none}
.home-nav-searchbar button{border:0;background:#222;color:#fff;width:48px;height:44px;cursor:pointer;font-size:1rem}
.home-nav-searchbar button:hover{background:#444}
/* 검색 모달 */
.nav-search-overlay{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.55);align-items:center;justify-content:center}
.nav-search-overlay.open{display:flex}
.nav-search-modal{background:#fff;border-radius:18px;padding:36px 28px 28px;width:min(520px,92vw);position:relative;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.nav-search-hint{font-size:1.05rem;font-weight:700;color:#0f172a;margin:0 0 16px;text-align:center}
.nav-search-close{position:absolute;top:14px;right:16px;background:none;border:0;font-size:1.3rem;color:#94a3b8;cursor:pointer;padding:4px;line-height:1;transition:color .15s}
.nav-search-close:hover{color:#0f172a}
/* 카테고리 칩 */
.nav-search-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:16px}
.nsc-chip{padding:7px 18px;border-radius:50px;border:1.5px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:.88rem;font-weight:600;cursor:pointer;transition:all .18s}
.nsc-chip:hover{border-color:#e50914;color:#e50914}
.nsc-chip.active{background:#e50914;border-color:#e50914;color:#fff}
/* 검색 폼 */
.nav-search-form{display:flex;align-items:center;border:2px solid #e2e8f0;border-radius:50px;overflow:hidden;transition:border-color .2s}
.nav-search-form:focus-within{border-color:#e50914}
.nav-search-form input{flex:1;border:0;outline:0;padding:13px 16px;font-size:.97rem;color:#333;background:transparent;min-width:0}
.nav-search-form input::placeholder{color:#bbb}
.nav-search-form button[type="submit"]{background:#e50914;color:#fff;border:0;padding:12px 22px;font-size:1.1rem;cursor:pointer;flex-shrink:0;transition:background .15s}
.nav-search-form button[type="submit"]:hover{background:#c40812}


/* ════════════════════════
   회원가입 / 로그인 페이지
════════════════════════ */
.register-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #f4f6fb;
}
.register-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(15,23,42,0.10);
    padding: 48px 44px 44px;
    width: 100%;
    max-width: 480px;
}
.register-header { text-align: center; margin-bottom: 32px; }
.register-header .logo { display: block; margin: 0 auto 16px; height: 36px; }
.register-header h2 { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.register-header p { font-size: 0.9rem; color: #94a3b8; }

.social-btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 20px; border-radius: 12px; border: none;
    font-size: 0.95rem; font-weight: 700; cursor: pointer; text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.social-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.social-btn img { width: 22px; height: 22px; object-fit: contain; }
.btn-kakao { background: #FEE500; color: #191919; }
.btn-naver { background: #03C75A; color: #fff; }

.normal-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 20px; border-radius: 12px;
    border: 1.5px solid #e0e6f0; background: #fafbfc;
    font-size: 0.95rem; font-weight: 700; color: #555; cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s; text-align: center;
}
.normal-toggle:hover, .normal-toggle.open { border-color: #FF2D6B; color: #FF2D6B; background: #fff1f5; }
.normal-toggle .toggle-arrow { font-size: 0.8rem; transition: transform 0.25s; }
.normal-toggle.open .toggle-arrow { transform: rotate(180deg); }
.normal-form-wrap { overflow: hidden; max-height: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s; opacity: 0; margin-top: 0; }
.normal-form-wrap.open { max-height: 1200px; opacity: 1; margin-top: 20px; }

.register-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: #374151; }
.form-group input {
    border: 1.5px solid #e0e6f0; border-radius: 10px; padding: 13px 16px;
    font-size: 0.95rem; color: #1a1a2e; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; background: #fafbfc;
}
.form-group input:focus { border-color: #FF2D6B; box-shadow: 0 0 0 3px rgba(255,45,107,0.10); background: #fff; }
.form-group input::placeholder { color: #bbb; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.agree-box { background: #f8f9fc; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: #555; }
.agree-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.agree-item input[type="checkbox"] { accent-color: #FF2D6B; width: 16px; height: 16px; cursor: pointer; }
.agree-item a { color: #FF2D6B; text-decoration: underline; }
.agree-modal-btn { background: none; border: none; padding: 0; color: #FF2D6B; text-decoration: underline; cursor: pointer; font-size: inherit; font-family: inherit; }
.agree-modal-btn:hover { opacity: 0.8; }
.agree-all { font-weight: 700; color: #1a1a2e; padding-bottom: 8px; border-bottom: 1px solid #e8edf5; }

.btn-register {
    margin-top: 4px; background: linear-gradient(135deg, #FF2D6B, #ff6b9d);
    color: #fff; border: none; border-radius: 12px; padding: 15px; width: 100%;
    font-size: 1rem; font-weight: 800; cursor: pointer; letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.15s; box-shadow: 0 6px 18px rgba(255,45,107,0.25);
}
.btn-register:hover { opacity: 0.88; transform: translateY(-1px); }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.alert-error { background: #fff1f5; color: #e0235d; border: 1px solid #ffd0de; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.login-link { text-align: center; margin-top: 22px; font-size: 0.88rem; color: #94a3b8; }
.login-link a { color: #FF2D6B; font-weight: 700; }
.login-link a:hover { text-decoration: underline; }

/* 주소 검색 */
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row input { flex: 1; }
.btn-addr-search {
    flex-shrink: 0; background: #f0f4ff; border: 1.5px solid #c7d2fe;
    border-radius: 10px; padding: 0 14px; color: #6366f1; font-weight: 700;
    font-size: 0.82rem; cursor: pointer; white-space: nowrap;
    transition: background 0.15s; height: auto; align-self: stretch;
}
.btn-addr-search:hover { background: #e0e7ff; }

/* ===== 푸터 ===== */
.site-footer { background: #1a1a2e; color: #cbd5e1; font-size: 0.85rem; margin-top: auto; }
.site-footer-inner {
    width: min(1400px, 96vw); margin: 0 auto;
    padding: 40px 0 28px;
    display: flex; flex-direction: column; gap: 20px;
}
.site-footer-top {
    display: flex; flex-wrap: wrap; gap: 32px;
    justify-content: space-between; align-items: flex-start;
}
.site-footer-logo img { height: 32px; filter: brightness(0) invert(1); opacity: 0.9; }
.site-footer-logo span { display: block; margin-top: 8px; font-size: 0.8rem; color: #64748b; }
.site-footer-info { line-height: 2; color: #94a3b8; }
.site-footer-info strong { color: #e2e8f0; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.site-footer-links button {
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 0.85rem; font-family: inherit; padding: 0; text-decoration: underline;
    transition: color 0.15s;
}
.site-footer-links button:hover { color: #e2e8f0; }
.site-footer-links span { color: #334155; }
.site-footer-copy {
    border-top: 1px solid #293246; padding-top: 20px;
    font-size: 0.78rem; color: #475569; text-align: center;
}
@media (max-width: 640px) {
    .site-footer-top { flex-direction: column; gap: 20px; }
}

/* 구분선 */
.divider-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: #bbb; font-size: 0.82rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: #e8edf5; }

/* 비밀번호 보기 토글 */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #94a3b8;
    font-size: 1rem; padding: 4px; line-height: 1;
    transition: color 0.15s;
}
.pw-toggle:hover { color: #FF2D6B; }

/* ===== 약관 모달 ===== */
.terms-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 9000;
    align-items: center; justify-content: center; padding: 20px;
}
.terms-modal-overlay.open { display: flex; }
.terms-modal-box {
    background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
    max-height: 80vh; display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25); animation: termsModalIn 0.2s ease;
}
@keyframes termsModalIn { from { transform: scale(0.93) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.terms-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 14px; border-bottom: 1px solid #eef0f5;
}
.terms-modal-header h3 { font-size: 1.05rem; font-weight: 800; color: #1a1a2e; margin: 0; }
.terms-modal-close {
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    color: #94a3b8; cursor: pointer; padding: 2px 6px; border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.terms-modal-close:hover { background: #f1f5f9; color: #374151; }
.terms-modal-body {
    flex: 1; overflow-y: auto; padding: 18px 22px;
    font-size: 0.875rem; color: #374151; line-height: 1.75;
}
.terms-modal-body h4 { font-size: 0.9rem; font-weight: 700; color: #1a1a2e; margin: 16px 0 6px; }
.terms-modal-body h4:first-child { margin-top: 0; }
.terms-modal-body p { margin: 0 0 8px; }
#daumRoughmapContainer1772959621872 { max-width: 100% !important; }
#daumRoughmapContainer1772959621872 img { max-width: 100% !important; height: auto !important; }
.terms-modal-footer {
    padding: 14px 22px 18px; border-top: 1px solid #eef0f5; text-align: right;
}
.terms-modal-confirm {
    background: linear-gradient(135deg, #FF2D6B, #ff6b9d); color: #fff;
    border: none; border-radius: 10px; padding: 11px 28px;
    font-size: 0.92rem; font-weight: 800; cursor: pointer;
    transition: opacity 0.2s, transform 0.15s; box-shadow: 0 4px 14px rgba(255,45,107,0.3);
}
.terms-modal-confirm:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-user-info { display: none; }

/* ── 햄버거 슬라이드 메뉴 ── */
.hnm-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 9200;
    -webkit-tap-highlight-color: transparent;
}
.hnm-backdrop.open { display: block; }

.home-nav-menu {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 80%; max-width: 360px;
    background: #fff; z-index: 9300;
    display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
.home-nav-menu.open { transform: translateX(0); }

.hnm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.hnm-logo { display: flex; align-items: center; }
.hnm-logo img { height: 32px; width: auto; object-fit: contain; }
.hnm-user-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px 12px; border-bottom: 1px solid #f1f5f9;
}
.hnm-user-info { min-width: 0; }
.hnm-user-name  { font-size: .92rem; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnm-user-email { font-size: .74rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnm-footer {
    padding: 16px 18px; border-top: 1px solid #f1f5f9; margin-top: auto;
}
.hnm-login-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 16px; background: #e50914; color: #fff;
    border-radius: 10px; font-size: .92rem; font-weight: 700;
    text-decoration: none; transition: opacity .15s;
}
.hnm-login-btn:hover { opacity: .88; }
.hnm-nav-divider { height: 1px; background: #f1f5f9; margin: 8px 0; }
.hnm-close {
    width: 36px; height: 36px; flex-shrink: 0;
    border: none; background: #f1f5f9; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem; color: #475569;
    display: flex; align-items: center; justify-content: center;
}
.hnm-close:hover { background: #e2e8f0; }

.hnm-nav { padding: 12px 0 24px; flex: 1; }
.hnm-nav-label {
    padding: 14px 20px 6px;
    font-size: .68rem; font-weight: 800; color: #94a3b8;
    letter-spacing: .08em; text-transform: uppercase;
}
.hnm-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    font-size: .92rem; font-weight: 600; color: #1a1a2e;
    text-decoration: none; transition: background .12s;
}
.hnm-nav-item i { width: 20px; text-align: center; color: #64748b; font-size: .9rem; }
.hnm-nav-item:hover { background: #f8fafc; color: #e50914; }
.hnm-nav-item:hover i { color: #e50914; }

@media (max-width: 520px) {
    .register-card { padding: 32px 20px 28px; border-radius: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .register-header h2 { font-size: 1.3rem; }
}
