@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* ============================================
   검단간호전문요양원 — 디자인 토큰
   ============================================ */
:root {
    /* 색상 — white 베이스 + 골드 시그니처 + 세이지 그린 (간호 트러스트) */
    --c-bg:        #FFFFFF;
    --c-paper:     #F8F6F2;
    --c-warm:      #F4F1EB;
    --c-soft:      #FAFAF8;
    --c-text:      #2A2A2A;
    --c-text-sub:  #6E6E6E;
    --c-text-mute: #A6A6A6;
    --c-gold:      #20A040;      /* 메인 그린 — 로고 대응 */
    --c-gold-lt:   #80C070;      /* 밝은 그린 */
    --c-gold-dk:   #086828;      /* 진한 그린 */
    --c-sage:      #58B858;      /* 서브 그린 액센트 */
    --c-sage-lt:   #C0E0B8;      /* 연한 그린 (배경) */
    --c-line:      #ECECEC;
    --c-line-dk:   #D9D6CF;
    --c-shadow:    rgba(0,0,0,0.08);

    /* 타이포 — 전체 고딕 */
    --ff-display: 'Inter', 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
    --ff-body:    'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 사이즈 */
    --container: 1400px;
    --header-h:  108px;

    /* 모션 */
    --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-slow:    1.2s;
    --t-base:    0.45s;
    --t-fast:    0.22s;
}

/* ============================================
   리셋
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.75;
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--c-gold); color: #fff; }

/* 골드 스크롤바 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-soft); }
::-webkit-scrollbar-thumb { background: var(--c-gold-lt); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--c-gold); }

/* ============================================
   레이아웃 공통
   ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--paper { background: var(--c-paper); }
.section--warm  { background: var(--c-warm); }
.section--soft  { background: var(--c-soft); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-gold-dk);
    margin-bottom: 28px;
}
.eyebrow::before {
    content: '';
    width: 44px; height: 1px;
    background: var(--c-gold);
}

.h-display {
    font-family: var(--ff-body);
    font-size: clamp(34px, 4.4vw, 60px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--c-text);
}
.h-display strong { color: var(--c-gold); font-weight: 700; }

.h-section {
    font-family: var(--ff-body);
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}
.h-lead {
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 400;
    line-height: 1.85;
    color: var(--c-text-sub);
    max-width: 820px;
}

/* 버튼 */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--c-text);
    border: 1px solid var(--c-text);
    overflow: hidden;
    transition: all var(--t-base) var(--ease);
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: translateX(-100%);
    transition: transform var(--t-base) var(--ease);
    z-index: -1;
}
.btn:hover { color: #fff; border-color: var(--c-gold); }
.btn:hover::after { transform: translateX(0); }
.btn--gold { background: var(--c-gold); border-color: var(--c-gold); }
.btn--gold::after { background: var(--c-text); }
.btn--ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-line-dk);
}
.btn--ghost:hover { color: #fff; }
.btn .arr { width: 14px; height: 1px; background: currentColor; position: relative; }
.btn .arr::after {
    content: ''; position: absolute; right: 0; top: -3px;
    width: 7px; height: 7px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: rotate(45deg);
}

/* ============================================
   헤더
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,0);
    z-index: 100;
    transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-light {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--c-line);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}
.logo img {
    display: block;
    width: 240px;
    height: auto;
    max-height: 66px;
    object-fit: contain;
    transition: opacity var(--t-base) var(--ease);
}
/* 기본(투명 헤더 = index 최상단): 흰색 로고만 */
.logo .logo-dark  { display: none; }
.logo .logo-white { display: block; }
/* is-light 상태(서브페이지 or 스크롤): 검정 로고만 */
.site-header.is-light .logo .logo-white { display: none; }
.site-header.is-light .logo .logo-dark  { display: block; }

/* GNB */
.gnb { display: flex; align-items: center; gap: 6px; }
.gnb > li { position: relative; }
.gnb > li > a {
    display: block;
    padding: 36px 28px;
    font-size: 19px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
    transition: color var(--t-base) var(--ease);
}
.site-header.is-light .gnb > li > a { color: var(--c-text); }
.gnb > li > a:hover, .gnb > li.is-active > a { color: var(--c-gold) !important; }

.gnb .sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    padding: 18px 0;
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: 0 18px 50px var(--c-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base) var(--ease);
}
.gnb > li:hover .sub {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.gnb .sub li a {
    display: block;
    padding: 14px 28px;
    font-size: 16px;
    color: var(--c-text-sub);
    white-space: nowrap;
    transition: all var(--t-fast) var(--ease);
}
.gnb .sub li a:hover {
    color: var(--c-gold);
    background: var(--c-paper);
    padding-left: 34px;
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: var(--ff-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px 22px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all var(--t-base) var(--ease);
}
.header-tel:hover {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: #fff;
}
.site-header.is-light .header-tel {
    color: var(--c-text);
    border-color: var(--c-line-dk);
}
.site-header.is-light .header-tel:hover { color: #fff; border-color: var(--c-gold); }
.header-tel svg { width: 16px; height: 16px; }

/* 모바일 토글 */
.menu-toggle {
    display: none;
    width: 32px; height: 32px;
    position: relative;
    z-index: 110;
}
.menu-toggle span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all var(--t-base) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.site-header.is-light .menu-toggle span { background: var(--c-text); }
.menu-toggle.is-open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

/* ============================================
   히어로
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}
.hero-slide-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenBurns 12s var(--ease) infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2%, -1%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
}
.hero-content .container { width: 100%; }
.hero-eyebrow {
    font-family: var(--ff-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--c-gold-lt);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1.2s var(--ease) 0.3s forwards;
}
.hero-eyebrow::before {
    content: '';
    width: 48px; height: 1px;
    background: var(--c-gold);
}
.hero-title {
    font-family: var(--ff-body);
    font-size: clamp(40px, 5.5vw, 78px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
    max-width: 880px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 1.4s var(--ease) 0.5s forwards;
}
.hero-title b { color: var(--c-gold-lt); font-weight: 700; }
.hero-sub {
    margin-top: 32px;
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 1.4s var(--ease) 0.75s forwards;
}
.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 1.4s var(--ease) 0.95s forwards;
}
.hero-cta .btn { background: var(--c-gold); border-color: var(--c-gold); }
.hero-cta .btn--ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}
.hero-dots button {
    width: 36px; height: 2px;
    background: rgba(255,255,255,0.4);
    transition: all var(--t-base) var(--ease);
}
.hero-dots button.is-active { background: var(--c-gold); }

.hero-meta {
    position: absolute;
    bottom: 48px;
    right: 32px;
    z-index: 3;
    font-family: var(--ff-display);
    font-size: 10px;
    letter-spacing: 0.32em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ============================================
   서브 페이지 히어로
   ============================================ */
.sub-hero {
    position: relative;
    height: 460px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
}
.sub-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-image: var(--hero-img, linear-gradient(135deg, #2A2A2A, #1A1A1A));
    z-index: 0;
    animation: kenBurns 14s var(--ease) infinite alternate;
}
.sub-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}
.sub-hero .container { position: relative; z-index: 2; width: 100%; }
.sub-hero-eyebrow {
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--c-gold-lt);
    margin-bottom: 24px;
}
.sub-hero-title {
    font-family: var(--ff-body);
    font-size: clamp(44px, 5.6vw, 82px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.sub-hero-crumb {
    margin-top: 34px;
    font-family: var(--ff-display);
    font-size: 14px;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
}
.sub-hero-crumb span { color: var(--c-gold-lt); }

/* ============================================
   핵심 메시지 (간호사 원장)
   ============================================ */
.principal {
    position: relative;
    padding: 140px 0;
    background: var(--c-bg);
}
.principal-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 100px;
    align-items: center;
}
.principal-img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.principal-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease);
}
.principal-img:hover img { transform: scale(1.04); }
.principal-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60%; height: 4px;
    background: var(--c-gold);
}
.principal-badge {
    position: absolute;
    top: 28px; left: 28px;
    padding: 10px 18px;
    background: var(--c-gold);
    color: #fff;
    font-family: var(--ff-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.principal-meta {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--c-line);
    display: flex;
    flex-wrap: wrap;
    gap: 28px 48px;
}
.principal-meta dt {
    font-family: var(--ff-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--c-text-mute);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.principal-meta dd {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
}

/* ============================================
   특징 카드 그리드
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-line);
    border-left: 1px solid var(--c-line);
}
.feature-card {
    padding: 64px 40px;
    background: var(--c-bg);
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    transition: background var(--t-base) var(--ease);
}
.feature-card:hover { background: var(--c-paper); }
.feature-card .num {
    font-family: var(--ff-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--c-gold);
    margin-bottom: 36px;
}
.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--c-text);
}
.feature-card p {
    font-size: 15px;
    line-height: 1.78;
    color: var(--c-text-sub);
}
.feature-card .ico {
    width: 48px; height: 48px;
    color: var(--c-gold);
    margin-bottom: 28px;
}

/* ============================================
   시설 갤러리 (메인)
   ============================================ */
.fac-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.fac-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-text);
}
.fac-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease), opacity var(--t-base) var(--ease);
    opacity: 0.85;
}
.fac-cell:hover img { transform: scale(1.06); opacity: 1; }
.fac-cell::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.78) 100%);
}
.fac-cell .label {
    position: absolute;
    bottom: 28px; left: 28px;
    z-index: 2;
    color: #fff;
}
.fac-cell .label small {
    display: block;
    font-family: var(--ff-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--c-gold-lt);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.fac-cell .label strong {
    font-size: 18px;
    font-weight: 600;
}

/* ============================================
   공지사항 & 메인 정보
   ============================================ */
.notice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.notice-block .head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-line);
}
.notice-block .head h3 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.notice-block .head a {
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--c-gold);
    text-transform: uppercase;
}
.notice-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--c-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: padding var(--t-base) var(--ease);
}
.notice-list li:hover { padding-left: 8px; }
.notice-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    color: var(--c-text);
    transition: color var(--t-fast) var(--ease);
}
.notice-list li:hover a { color: var(--c-gold); }
.notice-list li .pin {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    margin-right: 10px;
}
.notice-list li time {
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--c-text-mute);
    flex-shrink: 0;
}

.info-block {
    background: var(--c-paper);
    padding: 48px;
}
.info-block h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-line-dk);
}
.info-block dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.info-block .row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: baseline;
}
.info-block dt {
    font-family: var(--ff-display);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-text-mute);
}
.info-block dd {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.6;
}
.info-block dd.big {
    font-family: var(--ff-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c-gold);
}

/* ============================================
   CTA 섹션
   ============================================ */
.cta-band {
    background: var(--c-paper);
    padding: 100px 0;
    text-align: center;
}
.cta-band .h-section { margin-bottom: 18px; }
.cta-band p {
    font-size: 17px;
    color: var(--c-text-sub);
    margin-bottom: 40px;
}
.cta-band .group { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================
   푸터
   ============================================ */
.site-footer {
    background: var(--c-paper);
    color: var(--c-text);
    padding: 80px 0 32px;
    border-top: 1px solid var(--c-line-dk);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--c-line-dk);
}
.footer-brand .name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.footer-brand .name small {
    display: inline-block;
    margin-left: 10px;
    font-family: var(--ff-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--c-text-mute);
    font-weight: 500;
}
.footer-brand p {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.8;
    margin-bottom: 24px;
}
.footer-brand .tel {
    font-family: var(--ff-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--c-gold);
    letter-spacing: 0.01em;
    display: inline-block;
}
.footer-col h4 {
    font-family: var(--ff-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold-dk);
    margin-bottom: 22px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    font-size: 14px;
    color: var(--c-text-sub);
    transition: color var(--t-fast) var(--ease);
}
.footer-col ul a:hover { color: var(--c-gold); }
.footer-bot {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--c-text-mute);
    font-family: var(--ff-display);
    letter-spacing: 0.05em;
}

/* ============================================
   스크롤 페이드인
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up[data-delay="1"] { transition-delay: 0.08s; }
.fade-up[data-delay="2"] { transition-delay: 0.16s; }
.fade-up[data-delay="3"] { transition-delay: 0.24s; }
.fade-up[data-delay="4"] { transition-delay: 0.32s; }

/* JS 미작동 시 폴백 — 전부 보이게 */
html:not(.has-js) .fade-up { opacity: 1; transform: none; }

/* ============================================
   서브페이지 본문
   ============================================ */
.page-body { padding: 100px 0; }
.page-body p { font-size: 19px; line-height: 1.9; color: var(--c-text-sub); margin-bottom: 20px; }
.page-body h2 {
    font-size: clamp(28px, 2.7vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 60px 0 28px;
    padding-top: 18px;
    border-top: 1px solid var(--c-line);
}
.page-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-body h3 {
    font-size: 23px;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--c-text);
}
.page-body strong { color: var(--c-gold-dk); font-weight: 700; }
.page-body ul { margin: 24px 0; padding-left: 0; }
.page-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--c-text-sub);
    line-height: 1.85;
}
.page-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 15px;
    width: 12px; height: 1px;
    background: var(--c-gold);
}

.greeting-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}
.greeting-grid figure {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.greeting-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.greeting-grid figure::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50%; height: 4px;
    background: var(--c-gold);
}
.sign {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    gap: 18px;
}
.sign .label {
    font-family: var(--ff-display);
    font-size: 10px;
    letter-spacing: 0.32em;
    color: var(--c-text-mute);
    text-transform: uppercase;
}
.sign .name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* 시설 페이지 */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
}
.facility-grid .item figure {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 24px;
}
.facility-grid .item figure img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.facility-grid .item:hover figure img { transform: scale(1.05); }
.facility-grid .item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}
.facility-grid .item p { font-size: 15px; color: var(--c-text-sub); line-height: 1.75; }

/* 갤러리 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-grid .cell {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--c-paper);
}
.gallery-grid .cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.gallery-grid .cell:hover img { transform: scale(1.08); }
.gallery-grid .cell .cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.82));
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--t-base) var(--ease);
}
.gallery-grid .cell:hover .cap { transform: translateY(0); opacity: 1; }
.gallery-grid .cell .cap strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.gallery-grid .cell .cap time {
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 0.75;
}

/* 공지사항 리스트 */
.board {
    width: 100%;
    border-top: 2px solid var(--c-text);
}
.board .row {
    display: grid;
    grid-template-columns: 90px 1fr 130px;
    gap: 24px;
    align-items: center;
    padding: 26px 16px;
    border-bottom: 1px solid var(--c-line);
    transition: background var(--t-fast) var(--ease);
}
.board .row:hover { background: var(--c-paper); }
.board .row .no {
    font-family: var(--ff-display);
    font-size: 14px;
    color: var(--c-text-mute);
    text-align: center;
}
.board .row .ti {
    font-size: 18px;
    color: var(--c-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.board .row:hover .ti { color: var(--c-gold); }
.board .row .dt {
    font-family: var(--ff-display);
    font-size: 14px;
    color: var(--c-text-mute);
    text-align: right;
}
.board .row .pin {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    margin-right: 8px;
    font-weight: 600;
}

/* 공지사항 상세 */
.notice-view-head {
    border-top: 2px solid var(--c-text);
    border-bottom: 1px solid var(--c-line);
    padding: 32px 16px;
    margin-bottom: 40px;
}
.notice-view-head h2 {
    font-size: clamp(26px, 2.7vw, 36px);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.notice-view-head .meta {
    font-family: var(--ff-display);
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--c-text-mute);
}
.notice-view-body {
    padding: 0 16px 60px;
    font-size: 19px;
    line-height: 1.95;
    color: var(--c-text);
    min-height: 240px;
}
.notice-view-body p { margin-bottom: 20px; }

/* 입소 절차 스텝 */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 40px 0;
}
.step {
    padding: 36px 24px;
    border: 1px solid var(--c-line);
    margin-left: -1px;
    margin-top: -1px;
    background: #fff;
    text-align: center;
}
.step .n {
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.32em;
    color: var(--c-gold);
    margin-bottom: 18px;
}
.step .t {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.step .d {
    font-size: 15px;
    color: var(--c-text-sub);
    line-height: 1.65;
}

/* 비용 테이블 */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-top: 2px solid var(--c-text);
}
.cost-table th, .cost-table td {
    padding: 20px 18px;
    text-align: left;
    border-bottom: 1px solid var(--c-line);
    font-size: 17px;
}
.cost-table th {
    background: var(--c-paper);
    font-family: var(--ff-display);
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--c-text-mute);
    text-transform: uppercase;
    font-weight: 500;
}
.cost-table tr:hover td { background: var(--c-soft); }
.cost-table .num { font-family: var(--ff-display); font-weight: 600; color: var(--c-gold-dk); }

/* 지도 영역 */
.map-wrap {
    aspect-ratio: 16 / 9;
    background: var(--c-paper);
    margin: 40px 0;
    overflow: hidden;
    position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   반응형
   ============================================ */
@media (max-width: 1024px) {
    .section { padding: 80px 0; }
    .principal-grid, .greeting-grid { grid-template-columns: 1fr; gap: 48px; }
    .notice-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .fac-strip { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(5, 1fr); font-size: 13px; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }

    .menu-toggle { display: block; }
    .header-tel { display: none; }
    .gnb {
        position: fixed;
        top: 0; right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 32px 40px;
        background: #fff;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
        overflow-y: auto;
    }
    .gnb.is-open { transform: translateX(0); }
    .gnb > li { width: 100%; border-bottom: 1px solid var(--c-line); }
    .gnb > li > a {
        color: var(--c-text) !important;
        padding: 22px 0;
        font-size: 18px;
        font-weight: 600;
    }
    .gnb .sub {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        background: transparent;
        border: 0; box-shadow: none;
        padding: 0 0 14px;
        min-width: 0;
    }
    .gnb .sub li a { padding: 8px 0; font-size: 14px; color: var(--c-text-sub); }
    .gnb .sub li a:hover { background: transparent; padding-left: 0; }

    .hero { min-height: 560px; }
    .hero-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-meta { display: none; }

    .sub-hero { height: 320px; }

    .principal { padding: 80px 0; }
    .principal-meta { gap: 18px 32px; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 44px 28px; }

    .fac-strip { grid-template-columns: 1fr 1fr; }

    .info-block { padding: 32px 24px; }
    .info-block .row { grid-template-columns: 90px 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bot { flex-direction: column; gap: 8px; text-align: center; }

    .facility-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid .cell .cap { transform: none; opacity: 1; }

    .steps { grid-template-columns: 1fr 1fr; }

    .board .row { grid-template-columns: 1fr 100px; gap: 12px; padding: 18px 8px; }
    .board .row .no { display: none; }
    .board .row .ti { font-size: 14px; }
    .board .row .dt { font-size: 11px; }

    .cost-table th, .cost-table td { padding: 12px 8px; font-size: 13px; }
}

@media (max-width: 480px) {
    .h-display { font-size: 30px; }
    .hero-title { font-size: 36px; }
    .gallery-grid { grid-template-columns: 1fr; }
}
