/* 경로: /css/ */
/* 파일명: style.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500;700;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --hanji: #d4c49a;
    --ink: #1a0e05;
    --ink-mid: #2a1a08;
    --ink-light: #4a3218;
    --seal: #a02020;
    --seal-bg: rgba(160,32,32,0.06);
    --text-sub: rgba(42,26,8,0.72);
    --text-hint: rgba(42,26,8,0.45);
    --line: rgba(80,55,20,0.18);
    --line-dark: rgba(60,38,12,0.32);
    --ff: 'Noto Serif KR', serif;
}

html { scroll-behavior: smooth; font-size: 18px; }
body { font-family: var(--ff); color: var(--ink); line-height: 1.8; min-height: 100vh; }
a { color: var(--ink-mid); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--seal); }

/* ── 한지 배경 ── */
.hanji-bg {
    position: fixed; inset: 0; z-index: -2;
    background-color: #cfc09a;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(160,130,70,0.09) 2px, rgba(160,130,70,0.09) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(140,110,55,0.07) 3px, rgba(140,110,55,0.07) 4px),
        radial-gradient(ellipse at 15% 25%, rgba(145,110,50,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 65%, rgba(135,100,45,0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 45% 80%, rgba(150,115,55,0.15) 0%, transparent 45%),
        radial-gradient(ellipse at center, rgba(205,185,135,0.3) 0%, rgba(165,140,88,0.55) 100%);
}
.hanji-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(100,70,25,0.07) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(100,70,25,0.06) 1px, transparent 1px),
        radial-gradient(circle at 45% 55%, rgba(80,55,20,0.05) 1px, transparent 1px);
    background-size: 17px 19px, 23px 21px, 31px 29px;
}
.hanji-bg::after {
    content: ''; position: absolute; inset: 0;
    box-shadow:
        inset 0 0 180px rgba(80,50,10,0.35),
        inset 0 0 500px rgba(60,35,8,0.15);
    pointer-events: none;
}

svg.filters { position: absolute; width: 0; height: 0; }

/* ── 세로 괘선 ── */
.ruled-lines {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045;
}

/* ── 먹물 얼룩 ── */
.ink-stain {
    position: fixed; border-radius: 50%; z-index: -1; pointer-events: none;
}
.ink-stain-1 {
    width: 120px; height: 90px; top: 10%; right: 6%;
    background: radial-gradient(ellipse, rgba(26,14,5,0.09) 0%, transparent 70%);
    transform: rotate(-12deg);
}
.ink-stain-2 {
    width: 70px; height: 55px; bottom: 22%; left: 8%;
    background: radial-gradient(ellipse, rgba(26,14,5,0.07) 0%, transparent 70%);
    transform: rotate(8deg);
}
.ink-stain-3 {
    width: 50px; height: 40px; top: 38%; left: 3%;
    background: radial-gradient(ellipse, rgba(26,14,5,0.05) 0%, transparent 70%);
    transform: rotate(-5deg);
}

/* ── 헤더 ── */
.site-header {
    position: relative; z-index: 1000;
    background: rgba(175,155,105,0.96);
    box-shadow: 0 2px 12px rgba(40,20,5,0.18);
}
.header-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.header-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 2px double var(--line-dark);
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-stamp {
    width: 42px; height: 42px; border: 2px solid var(--seal); border-radius: 2px;
    display: flex; justify-content: center; align-items: center;
    background: rgba(160,32,32,0.06);
    box-shadow: inset 0 0 0 1px rgba(160,32,32,0.2), 0 0 8px rgba(160,32,32,0.1);
}
.logo-stamp span { font-size: 11px; font-weight: 900; color: var(--seal); writing-mode: vertical-rl; letter-spacing: 2px; opacity: 0.9; }
.logo-title { font-size: 1.3rem; font-weight: 900; color: var(--ink); letter-spacing: 0.14em; }
.logo-title small { display: block; font-size: 0.58rem; font-weight: 400; color: var(--text-sub); letter-spacing: 0.18em; margin-top: 2px; }
.header-utils { display: flex; align-items: center; gap: 14px; font-size: 0.76rem; }
.header-utils a { color: var(--text-sub); }
.header-tel { font-weight: 700; color: var(--ink) !important; font-size: 0.85rem; }

/* ── 네비게이션 ── */
.nav-row { display: flex; justify-content: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: 6px 20px; font-size: 0.88rem; font-weight: 700;
    color: var(--ink); letter-spacing: 0.1em;
}
.nav-sep { color: var(--text-hint); font-size: 0.5rem; line-height: 1; padding: 0 4px; align-self: center; }
.nav-item:hover > a { color: var(--seal); }
.nav-drop {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 160px; background: rgba(195,178,130,0.98); backdrop-filter: blur(8px);
    border: 1px solid var(--line-dark); border-top: 2px solid var(--seal);
    list-style: none; padding: 6px 0; z-index: 100;
    box-shadow: 0 4px 16px rgba(40,20,5,0.15);
}
.nav-item:hover .nav-drop { display: block; }
.nav-drop li a { display: block; padding: 7px 20px; font-size: 0.8rem; color: var(--ink-light); text-align: center; }
.nav-drop li a:hover { color: var(--seal); background: var(--seal-bg); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ── 의궤 프레임 ── */
.uigwe-frame { max-width: 960px; margin: 32px auto; padding: 0 24px; }
.uigwe-inner {
    border: 2px solid var(--line-dark); padding: 4px; position: relative;
    box-shadow: 0 4px 32px rgba(40,20,5,0.18), inset 0 0 40px rgba(40,20,5,0.04);
}
.uigwe-inner::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.uigwe-content { padding: 40px 36px; position: relative; z-index: 1; }

.corner { position: absolute; width: 20px; height: 20px; z-index: 2; }
.corner-tl { top: -1px; left: -1px; border-top: 3px solid var(--seal); border-left: 3px solid var(--seal); opacity: 0.6; }
.corner-tr { top: -1px; right: -1px; border-top: 3px solid var(--seal); border-right: 3px solid var(--seal); opacity: 0.6; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 3px solid var(--seal); border-left: 3px solid var(--seal); opacity: 0.6; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 3px solid var(--seal); border-right: 3px solid var(--seal); opacity: 0.6; }

/* ── 히어로 ── */
.hero-center {
    text-align: center; padding-bottom: 36px; margin-bottom: 36px;
    border-bottom: 1px solid var(--line-dark); position: relative;
}
.hero-center::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px; background: var(--seal); opacity: 0.5;
}
.hero-center .hc-top-line {
    font-size: 0.72rem; color: var(--text-hint); letter-spacing: 0.3em; margin-bottom: 20px;
}
.hero-center h1 {
    font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 900; color: var(--ink);
    letter-spacing: 0.12em; line-height: 2.2;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.08), 0 0 1px rgba(26,14,5,0.3);
}
.hero-center .hc-desc {
    margin-top: 20px; font-size: 0.85rem; color: var(--text-sub);
    letter-spacing: 0.06em; line-height: 2.1; max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero-seal-row { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.mini-seal {
    width: 32px; height: 32px; border: 2px solid var(--seal); border-radius: 2px;
    display: flex; justify-content: center; align-items: center; opacity: 0.75;
    box-shadow: inset 0 0 0 1px rgba(160,32,32,0.15), 0 0 6px rgba(160,32,32,0.08);
}
.mini-seal span { font-size: 8px; font-weight: 900; color: var(--seal); writing-mode: vertical-rl; }

/* ── 3열 기둥 ── */
.three-pillars { display: flex; margin-bottom: 36px; border-bottom: 1px solid var(--line-dark); padding-bottom: 36px; }
.tp-col { flex: 1; padding: 20px 20px; text-align: center; border-right: 1px solid var(--line); transition: all 0.3s ease; }
.tp-col:last-child { border-right: none; }
.tp-col:hover { background: rgba(210,195,155,0.45); }
.tp-col .tp-hanja {
    font-size: 2rem; color: var(--ink); opacity: 0.22; font-weight: 900; line-height: 1; margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}
.tp-col h3 { font-size: 0.95rem; font-weight: 900; color: var(--ink); letter-spacing: 0.08em; margin-bottom: 8px; }
.tp-col p { font-size: 0.78rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 12px; }
.tp-col .tp-link { font-size: 0.73rem; color: var(--seal); letter-spacing: 0.04em; font-weight: 700; }

/* ── 공지 + 상담 ── */
.dual-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
    margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark);
}
.ds-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ds-head .ds-dot { width: 6px; height: 6px; background: var(--seal); opacity: 0.6; }
.ds-head h2 { font-size: 1rem; font-weight: 900; color: var(--ink); letter-spacing: 0.1em; }

.notice-list { list-style: none; }
.notice-list li {
    padding: 9px 0; border-bottom: 1px solid rgba(60,38,12,0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.notice-list li a { font-size: 0.82rem; color: var(--ink-mid); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; font-weight: 500; }
.notice-list li a:hover { color: var(--seal); }
.notice-list li .date { font-size: 0.68rem; color: var(--text-hint); flex-shrink: 0; }

.counsel-center {
    text-align: center; padding: 24px 20px; border: 1px solid var(--line-dark);
    background: rgba(26,14,5,0.03);
    box-shadow: inset 0 0 20px rgba(26,14,5,0.04);
}
.counsel-center .cc-label { font-size: 0.76rem; color: var(--text-sub); letter-spacing: 0.12em; }
.counsel-center .cc-tel {
    font-size: 1.5rem; font-weight: 900; color: var(--ink); letter-spacing: 0.05em; margin: 8px 0;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.08);
}
.counsel-center .cc-hours { font-size: 0.74rem; color: var(--text-sub); line-height: 1.9; }

/* ── 바로가기 ── */
.registry-links { display: grid; grid-template-columns: repeat(5, 1fr); }
.registry-links a {
    display: block; padding: 20px 8px; text-align: center; font-size: 0.82rem;
    color: var(--ink-mid); letter-spacing: 0.06em; border-right: 1px solid var(--line);
    transition: all 0.3s ease; font-weight: 500;
    border-top: 1px solid var(--line);
}
.registry-links a:last-child { border-right: none; }
.registry-links a:hover { color: var(--seal); background: rgba(160,32,32,0.05); }
.registry-links a .rl-sub { display: block; font-size: 0.65rem; color: var(--text-hint); margin-top: 4px; font-weight: 400; }

/* ── 페이지 제목 ── */
.page-head {
    text-align: center; padding-bottom: 32px; margin-bottom: 32px;
    border-bottom: 1px solid var(--line-dark); position: relative;
}
.page-head::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--seal); opacity: 0.4;
}
.page-head-sub  { font-size: 0.72rem; color: var(--text-hint); letter-spacing: 0.3em; margin-bottom: 12px; }
.page-head-title { font-size: clamp(1.2rem,3vw,1.6rem); font-weight: 900; color: var(--ink); letter-spacing: 0.15em; margin-bottom: 8px; }
.page-head-desc { font-size: 0.8rem; color: var(--text-sub); letter-spacing: 0.06em; }

/* ── 공통 폼 ── */
.form-wrap { max-width: 480px; margin: 0 auto; }
.form-section-title { font-size: 0.82rem; font-weight: 700; color: var(--ink-mid); letter-spacing: 0.1em; margin: 20px 0 12px; padding-left: 8px; border-left: 2px solid var(--seal); }
.form-divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-mid); letter-spacing: 0.06em; margin-bottom: 6px; }
.form-label .required { color: var(--seal); }
.form-input {
    width: 100%; padding: 10px 14px; font-family: var(--ff); font-size: 0.85rem;
    color: var(--ink); background: rgba(255,250,235,0.6);
    border: 1px solid var(--line-dark); border-radius: 0; outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--ink-mid); background: rgba(255,252,240,0.9); }
.form-btns { display: flex; gap: 10px; margin-top: 24px; }
.btn-primary {
    flex: 1; padding: 12px; font-family: var(--ff); font-size: 0.88rem; font-weight: 700;
    color: #f5edd8; background: var(--ink); border: none; cursor: pointer;
    letter-spacing: 0.1em; transition: all 0.2s;
}
.btn-primary:hover { background: var(--seal); }
.btn-secondary {
    flex: 1; padding: 12px; font-family: var(--ff); font-size: 0.88rem; font-weight: 500;
    color: var(--ink-mid); background: transparent; border: 1px solid var(--line-dark);
    cursor: pointer; letter-spacing: 0.06em; text-align: center; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--ink-mid); color: var(--ink); }
.form-note { font-size: 0.72rem; color: var(--text-hint); margin-top: 12px; text-align: center; }
.form-links { text-align: center; margin-top: 20px; font-size: 0.78rem; }
.form-links a { color: var(--text-sub); }
.form-links a:hover { color: var(--seal); }
.form-link-sep { color: var(--text-hint); margin: 0 8px; }
.form-alert {
    background: rgba(160,32,32,0.07); border: 1px solid rgba(160,32,32,0.25);
    color: var(--seal); font-size: 0.82rem; padding: 12px 16px; margin-bottom: 20px;
    text-align: center; letter-spacing: 0.04em;
}
.form-success-msg, .form-success {
    background: rgba(26,14,5,0.04); border: 1px solid var(--line-dark);
    color: var(--ink-mid); font-size: 0.82rem; padding: 12px 16px; margin-bottom: 20px;
    text-align: center; letter-spacing: 0.04em;
}

/* 가입완료 */
.success-seal { font-size: 2rem; font-weight: 900; color: var(--seal); opacity: 0.6; margin-bottom: 12px; text-align: center; }
.success-msg  { font-size: 1rem; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 6px; }
.success-sub  { font-size: 0.8rem; color: var(--text-sub); text-align: center; }

/* 헤더 회원명 */
.header-member-name { font-size: 0.78rem; color: var(--ink-mid); }
.header-member-name .member-greet { font-weight: 700; color: var(--ink); }

/* ── 게시판 공통 ── */
.board-search-form { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.board-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; margin-bottom: 16px; }
.board-table thead th {
    background: rgba(26,14,5,0.06); padding: 11px 10px;
    border-top: 2px solid var(--line-dark); border-bottom: 2px solid var(--line-dark);
    font-weight: 700; color: var(--ink); letter-spacing: 0.05em; white-space: nowrap;
}
.board-table tbody td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board-table tbody tr:hover td { background: rgba(210,195,155,0.3); }
.board-num  { color: var(--text-hint); font-size: 0.75rem; }
.board-subject a { color: var(--ink-mid); font-weight: 500; }
.board-subject a:hover { color: var(--seal); }
.board-name { font-size: 0.78rem; color: var(--text-sub); }
.board-date { font-size: 0.75rem; color: var(--text-hint); }
.board-hit  { font-size: 0.75rem; color: var(--text-hint); }
.board-empty { padding: 40px 0 !important; color: var(--text-sub); font-size: 0.83rem; }

.board-paging { display: flex; justify-content: center; gap: 4px; margin: 20px 0; flex-wrap: wrap; }
.board-btn-row { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 상세보기 */
.view-head {
    padding-bottom: 16px; margin-bottom: 0;
    border-bottom: 2px solid var(--line-dark);
}
.view-subject { font-size: 1.1rem; font-weight: 900; color: var(--ink); letter-spacing: 0.05em; line-height: 1.7; margin-bottom: 10px; }
.view-meta { font-size: 0.76rem; color: var(--text-sub); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.view-meta strong { color: var(--ink-mid); font-weight: 700; }
.view-meta-sep { color: var(--text-hint); }
.view-content {
    padding: 28px 4px; min-height: 160px;
    word-break: keep-all; word-wrap: break-word; overflow-wrap: break-word;
    font-size: 0.88rem; color: var(--ink-mid); line-height: 2;
    border-bottom: 1px solid var(--line);
}
.view-content img { max-width: 100%; height: auto; display: block; margin: 8px 0; }
.view-content p, .view-content P { margin-bottom: 0.8em; }
.view-content p:last-child, .view-content P:last-child { margin-bottom: 0; }

/* 유튜브/iframe 반응형 — 텍스트 분리 */
.view-content iframe,
.accordion-content iframe {
    display: block;
    max-width: 100%;
    width: 100% !important;
    margin: 20px 0;
    clear: both;
}
/* 16:9 비율 유지 래퍼 (그누보드 yt 태그 등) */
.view-content .yt-wrap,
.accordion-content .yt-wrap {
    position: relative; padding-bottom: 56.25%;
    height: 0; overflow: hidden; margin: 20px 0;
}
.view-content .yt-wrap iframe,
.accordion-content .yt-wrap iframe {
    position: absolute; top: 0; left: 0;
    width: 100% !important; height: 100% !important; margin: 0;
}
.view-link { padding: 8px 4px; font-size: 0.8rem; }
.view-link a { color: var(--seal); }
.view-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.view-nav-row {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 8px; border-bottom: 1px solid rgba(100,75,30,0.06); font-size: 0.82rem;
}
.view-nav-row:last-child { border-bottom: none; }
.view-nav-label { flex-shrink: 0; font-size: 0.72rem; color: var(--text-hint); width: 36px; }
.view-nav-row a { color: var(--ink-mid); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-nav-row a:hover { color: var(--seal); }

/* 글쓰기 textarea */
.form-textarea { min-height: 320px; resize: vertical; line-height: 1.9; }

.view-content a, .auto-link {
    color: var(--seal);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.view-content a:hover, .auto-link:hover { opacity: 0.75; }

/* ── 서브탭 ── */
.sub-tab {
    display: flex; border-bottom: 2px solid var(--line-dark);
    margin-bottom: 36px; flex-wrap: wrap;
}
.sub-tab-item {
    padding: 10px 22px; font-size: 0.85rem; font-weight: 500;
    color: var(--text-sub); letter-spacing: 0.08em;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: all 0.2s;
}
.sub-tab-item:hover { color: var(--ink); }
.sub-tab-item.active { color: var(--seal); border-bottom-color: var(--seal); font-weight: 700; }

/* ── 연구소소개 ── */
.about-greeting {
    display: flex; align-items: center; gap: 36px;
    padding: 32px 0; margin-bottom: 36px;
    border-bottom: 1px solid var(--line);
}
.about-seal-col { flex-shrink: 0; }
.about-seal {
    width: 56px; display: flex; flex-direction: column; align-items: center;
    border: 2px solid var(--seal); border-radius: 2px; padding: 8px 4px; gap: 4px;
    opacity: 0.65;
}
.about-seal span { font-size: 1rem; font-weight: 900; color: var(--seal); line-height: 1.4; }
.about-greeting-text h3 {
    font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 900;
    color: var(--ink); letter-spacing: 0.1em; line-height: 2; margin-bottom: 8px;
}
.about-greeting-text p { font-size: 0.8rem; color: var(--text-sub); letter-spacing: 0.15em; }

.about-body { margin-bottom: 40px; }
.about-section { padding: 24px 0; }
.about-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.about-dot { width: 6px; height: 6px; background: var(--seal); opacity: 0.55; flex-shrink: 0; }
.about-section-head h4 { font-size: 0.95rem; font-weight: 900; color: var(--ink); letter-spacing: 0.08em; }
.about-section-body p { font-size: 0.86rem; color: var(--ink-mid); line-height: 2.1; margin-bottom: 12px; }
.about-section-body p:last-child { margin-bottom: 0; }
.about-emphasis { padding: 14px 18px; border-left: 3px solid var(--seal); background: rgba(160,32,32,0.04); }
.about-divider { border: none; border-top: 1px solid var(--line); margin: 8px 0; }

.about-reflection {
    padding: 28px 32px; border: 1px solid var(--line-dark);
    background: rgba(26,14,5,0.03); margin: 8px 0;
}
.about-reflection-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.about-reflection-hanja { font-size: 1.8rem; font-weight: 900; color: var(--ink); opacity: 0.18; line-height: 1; }
.about-reflection-head h4 { font-size: 0.95rem; font-weight: 900; color: var(--ink); letter-spacing: 0.06em; }
.about-reflection-list { list-style: none; margin-bottom: 16px; }
.about-reflection-list li {
    font-size: 0.88rem; color: var(--ink-mid); padding: 7px 0 7px 20px;
    border-bottom: 1px solid var(--line); position: relative; line-height: 1.8;
}
.about-reflection-list li::before { content: '·'; position: absolute; left: 6px; color: var(--seal); }
.about-reflection-close { font-size: 0.84rem; color: var(--text-sub); line-height: 2; }

.about-cta {
    text-align: center; padding: 36px 20px; border: 1px solid var(--line-dark);
    background: rgba(26,14,5,0.03);
}
.about-cta-text  { font-size: 0.82rem; color: var(--text-sub); letter-spacing: 0.12em; margin-bottom: 10px; }
.about-cta-tel   { font-size: 1.6rem; font-weight: 900; color: var(--ink); letter-spacing: 0.05em; margin-bottom: 8px; text-shadow: 1px 1px 0 rgba(0,0,0,0.06); }
.about-cta-hours { font-size: 0.76rem; color: var(--text-sub); }

@media (max-width: 768px) {
    .about-greeting { flex-direction: column; gap: 20px; text-align: center; padding: 24px 0; }
    .about-reflection { padding: 20px 16px; }
    .sub-tab-item { padding: 10px 14px; font-size: 0.78rem; }
}

/* ── 댓글 ── */
.comment-section { margin: 28px 0 0; }
.comment-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--line-dark); margin-bottom: 0; }
.comment-head h4 { font-size: 0.9rem; font-weight: 900; color: var(--ink); letter-spacing: 0.06em; }
.comment-count { font-size: 0.78rem; color: var(--seal); margin-left: 4px; }

.comment-list { list-style: none; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-name { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.comment-date { font-size: 0.72rem; color: var(--text-hint); }
.comment-del-btn {
    font-size: 0.68rem; color: var(--text-hint); background: none;
    border: 1px solid var(--line); padding: 1px 7px; cursor: pointer;
    margin-left: auto;
}
.comment-del-btn:hover { color: var(--seal); border-color: var(--seal); }
.comment-content { font-size: 0.84rem; color: var(--ink-mid); line-height: 1.9; }
.comment-empty { padding: 24px 0; font-size: 0.82rem; color: var(--text-hint); text-align: center; border-bottom: 1px solid var(--line); }

.comment-form { margin-top: 16px; }
.comment-form-row { display: flex; gap: 8px; align-items: flex-start; }
.comment-textarea { min-height: 72px; resize: vertical; flex: 1; }
.comment-submit { flex-shrink: 0; padding: 10px 20px; align-self: stretch; }

@media (max-width: 768px) {
    .comment-form-row { flex-direction: column; }
    .comment-submit { width: 100%; }
}

/* ── 게시판 반응형 ── */
@media (max-width: 768px) {
    .board-table thead th:nth-child(3),
    .board-table tbody td:nth-child(3) { display: none; }
    .board-table thead th:nth-child(5),
    .board-table tbody td:nth-child(5) { display: none; }
    .view-subject { font-size: 0.98rem; }
}

/* ── 푸터 ── */
.site-footer { max-width: 960px; margin: 0 auto; padding: 24px 24px 32px; margin-top: 16px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; border-top: 2px double var(--line-dark); padding-top: 24px; }
.footer-info { font-size: 0.73rem; color: var(--text-sub); line-height: 2; }
.footer-info strong { color: var(--ink); font-weight: 700; }
.footer-links { display: flex; gap: 16px; list-style: none; flex-shrink: 0; }
.footer-links a { font-size: 0.73rem; color: var(--text-sub); }
.footer-copy { text-align: center; margin-top: 18px; font-size: 0.68rem; color: var(--text-hint); }

/* ── 반응형: 태블릿 ── */
@media (max-width: 900px) {
    .three-pillars { flex-direction: column; }
    .tp-col { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 0; }
    .tp-col:last-child { border-bottom: none; }
    .dual-section { grid-template-columns: 1fr; }
    .registry-links { grid-template-columns: repeat(3, 1fr); }
    .registry-links a:nth-child(3) { border-right: none; }
    .registry-links a:nth-child(n+4) { border-top: 1px solid var(--line); }
}

/* ── 반응형: 모바일 ── */
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .header-top { padding: 10px 0; }
    .logo-stamp { width: 34px; height: 34px; }
    .logo-stamp span { font-size: 9px; letter-spacing: 1px; }
    .logo-title { font-size: 1.05rem; letter-spacing: 0.1em; }
    .logo-title small { font-size: 0.5rem; letter-spacing: 0.12em; }
    .header-utils { display: none; }

    .nav-row-wrap { display: none; }
    .nav-row-wrap.open { display: block; }
    .nav-row { flex-direction: column; align-items: stretch; padding: 0; }
    .nav-sep { display: none; }
    .nav-item > a {
        padding: 14px 24px; border-bottom: 1px solid var(--line);
        font-size: 0.92rem; letter-spacing: 0.08em;
    }
    .nav-drop {
        position: static; transform: none; min-width: auto;
        background: rgba(185,168,125,0.6); border: none;
        box-shadow: none; display: none;
    }
    .nav-item.sub-open .nav-drop { display: block; }
    .nav-drop li a {
        text-align: left; padding: 12px 24px 12px 44px;
        font-size: 0.84rem; border-bottom: 1px solid rgba(60,38,12,0.08);
    }

    .uigwe-frame { margin: 16px auto; padding: 0 12px; }
    .uigwe-inner { padding: 2px; }
    .uigwe-inner::before { inset: 3px; }
    .uigwe-content { padding: 20px 14px; }
    .corner { width: 14px; height: 14px; }
    .corner-tl, .corner-tr, .corner-bl, .corner-br { border-width: 2px; }

    .hero-center { padding-bottom: 24px; margin-bottom: 24px; }
    .hero-center .hc-top-line { font-size: 0.62rem; letter-spacing: 0.2em; margin-bottom: 14px; }
    .hero-center h1 { font-size: 1.15rem; line-height: 2; letter-spacing: 0.08em; }
    .hero-center .hc-desc { font-size: 0.8rem; line-height: 1.9; margin-top: 14px; }
    .hero-seal-row { gap: 10px; margin-top: 18px; }
    .mini-seal { width: 28px; height: 28px; }
    .mini-seal span { font-size: 7px; }

    .three-pillars { margin-bottom: 24px; padding-bottom: 24px; }
    .tp-col { padding: 14px 0; }
    .tp-col .tp-hanja { font-size: 1.5rem; }
    .tp-col h3 { font-size: 0.9rem; }
    .tp-col p { font-size: 0.76rem; }

    .dual-section { gap: 24px; margin-bottom: 24px; padding-bottom: 24px; }
    .ds-head h2 { font-size: 0.92rem; }
    .notice-list li { padding: 8px 0; }
    .notice-list li a { font-size: 0.8rem; }
    .notice-list li .date { font-size: 0.65rem; }
    .counsel-center { padding: 16px; }
    .counsel-center .cc-tel { font-size: 1.2rem; }
    .counsel-center .cc-hours { font-size: 0.7rem; }

    .registry-links { grid-template-columns: 1fr 1fr; }
    .registry-links a { padding: 14px 8px; font-size: 0.78rem; }
    .registry-links a:nth-child(odd) { border-right: 1px solid var(--line); }
    .registry-links a:nth-child(even) { border-right: none; }
    .registry-links a:last-child { border-right: none; }

    .site-footer { padding: 20px 16px 24px; margin-top: 8px; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .footer-info { font-size: 0.68rem; }
    .footer-links { flex-wrap: wrap; gap: 10px; }
    .footer-links a { font-size: 0.68rem; }
    .footer-copy { font-size: 0.62rem; }
}

/* ── 반응형: 소형 모바일 ── */
@media (max-width: 400px) {
    .header-inner { padding: 0 12px; }
    .logo-area { gap: 10px; }
    .logo-title { font-size: 0.95rem; }
    .logo-title small { display: none; }
    .uigwe-content { padding: 16px 10px; }
    .hero-center h1 { font-size: 1rem; }
    .hero-center .hc-desc { font-size: 0.75rem; }
    .tp-col h3 { font-size: 0.85rem; }
    .tp-col p { font-size: 0.72rem; }
    .registry-links { grid-template-columns: 1fr; }
    .registry-links a { border-right: none !important; }
}