/* 제목/소제목용 폰트 로드 */

    /* 손글씨 느낌 한글 폰트 로드 (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=East+Sea+Dokdo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Brush+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=East+Sea+Dokdo&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Song+Myung&family=Nanum+Myeongjo:wght@400;700&display=swap");

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: #ffffff;
    font-family: system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.page {
    min-height: 100vh;
    /* 항상 화면 높이만큼 */
    padding: 4vh 5vw 6vh;
    /* 화면 크기에 비례하는 여백 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.main-title {
    margin-top: 3vh;
    margin-bottom: 2vh;
    font-size: clamp(22px, 3vw, 24px);
    letter-spacing: 0.25em;
    text-align: center;
    font-family: "Gungsuh", "Batang", "궁서", "바탕", serif;
    font-weight: 700;
}

.title-box {
    margin-top: 1vh;
    padding: 1.2vh 3vw;
    background-color: #d0d0d0;
    text-align: center;
    font-size: clamp(16px, 2.2vw, 24px);
    line-height: 1.6;
    letter-spacing: 0.2em;
    font-family: "Gungsuh", "Batang", "궁서", "바탕", serif;
    font-weight: 700;
}

.title-box span {
    display: block;
}

.membership-row {
    display: flex;
    justify-content: center;
    gap: 8vw;
    width: 100%;
    max-width: 1200px;
}

.form-actions {
    margin-top: 2vh;
    display: flex;
    justify-content: flex-end;
    /* 오른쪽 정렬 */
}

.primary-button {
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #666;
    background-color: #f5f5f5;
    cursor: pointer;
}

.greeting-box {
    margin-top: 50px;
    max-width: 720px;
    text-align: center;

    /* 궁서체 느낌 폰트 우선 순서 */
    font-family:
        "Song Myung",          /* 1순위: 붓맛 있는 명조 */
        "Nanum Myeongjo",      /* 2순위: 안정적인 명조 */
        "Gungsuh", "Batang",   /* 3순위: 윈도우 궁서/바탕 */
        "궁서", "바탕",
        serif;

    font-size: 18px;
    line-height: 1;
}



/* 회원 유형 선택용 스타일 */


/* 카드 기본 스타일(이미 있다면 거기에 합쳐도 됨) */

.membership-option {
    cursor: pointer;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


/* 동그란 아이콘 기본 색상 */

.membership-option .bullet {
    background-color: #cccccc;
    transition: background-color 0.2s ease;
}


/* 카드 전체 hover 시 효과 */

.membership-option:hover {
    background-color: #f5f5f5;
    /* 카드 배경색 살짝 밝게 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    /* 살짝 떠오르는 느낌(원하지 않으면 삭제해도 됨) */
}


/* 카드 아무 곳이나 올려도 동그라미 색도 같이 변경 */

.membership-option:hover .bullet {
    background-color: #888888;
}


/* 공통 레이아웃: 사이드 메뉴 + 메인 내용 */

.page {
    min-height: 100vh;
    padding: 4vh 0 6vh;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}


/* 사이드 메뉴 */

.side-nav {
    width: 120px;
    min-width: 100px;
    padding: 2vh 0.5vw;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
}

.nav-item {
     white-space: nowrap;   /* ✅ 글자 줄바꿈 금지 */
    flex: 0 0 auto;        /* 아이템 자체는 한 줄 유지 */
    padding: 6px 8px;      /* (선택) 터치 영역 */
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-family: "Nanum Myeongjo", "Gungsuh", "궁서", serif;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-item:hover {
    background-color: #eee;
    color: #000;
    transform: translateX(2px);
}


/* 메인 내용 공통 */
.main-content {
    flex: 1;
    padding: 4vh 5vw 6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}


/* 뒤로가기 버튼 */

.back-button {
    position: absolute;
    top: 1.5vh;
    left: 1.5vw;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    font-size: 14px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #eaeaea;
}


/* 서브 타이틀 (예: 일반회원, 정회원 등) */

.sub-title {
    margin-bottom: 2vh;
    text-align: center;
    font-family: "Nanum Myeongjo", "Gungsuh", "궁서", serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
}


/* 입력 폼 공통 */

.form {
    margin-top: 6vh;
    width: 100%;
    max-width: 640px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.form-label {
    min-width: 230px;
}

.form-input {
    flex: 1;
    max-width: 280px;
    padding: 4px 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* 정회원 선택 페이지의 2열 구성 */

.two-column {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1000px;
}

.two-column .col-left {
    flex: 1;
}
.two-column .col-right {
    flex: 1;
}

/* 조직도 레이아웃 (좌/우 2열) */
.org-center {
    max-width: 480px;
    margin-left: -60px;
    font-size: 14px;
    line-height: 1.8;
}

.org-line {
    font-size: 16px;
    margin: 4px 0;
}

.org-line.indent {
    padding-left: 40px;
}



.org-divider {
    margin: 12px 0 12px 0;
    border: none;
    width: auto;
    border-top: 1px solid #999;
}

.org-section-title {
    font-size: 14px;
    margin-top: 20px;
    font-weight: 700;
}

.org-left,
.org-right {
    flex: 1;
    font-size: 20px;
    line-height: 2;
}

.assosication-content {
    display: flex;
    flex-direction: column;
    font-family: "Nanum Myeongjo", "Gungsuh", "궁서", serif;
    align-items: center;
    margin-left: 4vw;
    font-size: 24px;
    line-height: 2;
}


/* 오른쪽을 아래쪽으로 조금 내려 보이게 */

.org-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 4vw;
}

.org-block {
    margin-bottom: 3rem;
}

.org-heading {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== 정회원 페이지 전용 스타일 ===== */


/* "(1년 협회비 납부)" 텍스트 */

.regular-sub-note {
    text-align: center;
    font-size: 18px;
    margin-bottom: 3vh;
}


/* 왼쪽 설명 텍스트 블럭 */

.regular-text-block {
    font-size: 16px;
    line-height: 1.9;
    margin-top: 2vh;
}


/* 계좌 영역 */

.regular-account {
    margin-top: 3vh;
    line-height: 1.6;
}

.regular-account-number {
    font-weight: 700;
    margin-top: 4px;
}

/* 하단 작은 안내문 3줄 */
.regular-notice {
    margin-top: 2vh;
    padding-left: 1.2em;
    font-size: 12px;
    line-height: 1.6;
    list-style-type: "* ";
}


/* 모바일 */
@media (max-width: 600px) {
        /* 1. 레이아웃: 위에 side-nav, 아래에 main-content */
    .page {
        flex-direction: column;      /* 🔹 세로 배치 */
        align-items: stretch;
        padding: 3vh 4vw 5vh;
    }

    /* 2. 사이드 메뉴를 화면 맨 위, 가로 전체로 */
    .side-nav {
        width: 100%;
        min-width: 0;
        padding: 1vh 0;
        border-right: none;
        border-bottom: 1px solid #ddd;

        display: flex;
        flex-direction: row;         /* 가로로 나열 */
        justify-content: center;     /* 가운데 정렬 */
        gap: 6px;
          /* 폰트가 화면에 따라 자동으로 줄어듦 */
        font-size: 12px;
    }

    /* 3. 메인 내용은 그 아래, 전체 폭 사용 */
    .main-content {
        flex: 1;
        padding: 3vh 0 5vh;
        margin: 0 auto;
        width: 100%;
        max-width: 520px;
    }
    .greeting-box {
    margin-top: 50px;
    max-width: 720px;
    text-align: center;

    /* 궁서체 느낌 폰트 우선 순서 */
    font-family:
        "Song Myung",          /* 1순위: 붓맛 있는 명조 */
        "Nanum Myeongjo",      /* 2순위: 안정적인 명조 */
        "Gungsuh", "Batang",   /* 3순위: 윈도우 궁서/바탕 */
        "궁서", "바탕",
        serif;

    font-size: 14px;
    line-height: 1;
    }


    .main-title {
        margin-top: 3vh;
        margin-bottom: 5vh;
    }
    .two-column .col-right {
        flex: 1;
        margin-top: -60px;
    }
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-label {
        margin-bottom: 4px;
    }
    .form-input {
        max-width: 100%;
    }
    .two-column {
        flex-direction: column;
    }
   
    .regular-text-block {
        font-size: 14px;
    }
    .regular-sub-note {
        font-size: 16px;
        margin-bottom: 1.5vh;
    }
    .regular-account {
        margin-top: 2.5vh;
    }
    .regular-notice {
        font-size: 11px;
    }

    .org-layout {
        flex-direction: column;
        max-width: 100%;
    }
    .org-right {
        margin-left: 0;
        margin-top: 2rem;
    }

    
}



