/* =========================================================
   의정부재활요양원 — 사이트 스타일
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --green-900: #1b2a55;   /* 로고 네이비 (진) */
  --green-800: #263c74;   /* 로고 네이비 */
  --green-700: #2f4f92;
  --green-600: #3d68b0;
  --green-100: #e3eaf5;
  --green-50: #f1f5fb;
  --sun: #4e8f26;          /* 로고 잎 그린 (포인트) */
  --leaf: #78b442;
  --teal: #2f8f95;
  --sky: #0079b8;
  --grad: linear-gradient(115deg, #1b2a55 0%, #263c74 38%, #0a6fb0 78%, #1f9aa0 100%);
  --grad-line: linear-gradient(90deg, #99bf3c, #00abb5 50%, #0061b1);
  --sun-100: #eaf4e0;
  --ink: #1a2233;
  --ink-2: #475066;
  --ink-3: #7a8296;
  --line: #dde4ee;
  --paper: #f7f9fc;
  --white: #fff;
  --danger: #c2412d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 42, 85, .06), 0 6px 20px rgba(27, 42, 85, .07);
  --wrap: 1180px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 상단 띠 ---------- */
.topbar { background: var(--green-900); color: #c9d4ea; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-left { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 헤더 / 메뉴 ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--green-700); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem; }
.logo-text strong { display: block; font-size: 1.22rem; letter-spacing: -.02em; color: var(--green-900); line-height: 1.2; }
.logo-text span { font-size: .78rem; color: var(--teal); letter-spacing: .08em; font-weight: 600; }

.gnb { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; height: 100%; }
.gnb > li { position: relative; display: flex; align-items: center; }
.gnb > li > a { padding: 0 18px; font-weight: 600; font-size: 1.02rem; height: 100%; display: flex; align-items: center; color: var(--ink); }
.gnb > li > a:hover, .gnb > li.on > a { color: var(--green-700); }
.gnb > li.on > a { box-shadow: inset 0 -3px 0 var(--green-700); }
.gnb .sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transition: .15s; }
.gnb > li:hover .sub, .gnb > li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .94rem; color: var(--ink-2); white-space: nowrap; }
.gnb .sub a:hover { background: var(--green-50); color: var(--green-800); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* 모바일 메뉴 */
.mnav { display: none; }
@media (max-width: 960px) {
  .gnb { display: none; }
  .menu-btn { display: block; }
  .header .wrap { height: 64px; }
  .mnav { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .2s; }
  .mnav.open { opacity: 1; visibility: visible; }
  .mnav-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: #fff; overflow-y: auto; transform: translateX(100%); transition: .25s; }
  .mnav.open .mnav-panel { transform: none; }
  .mnav-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
  .mnav-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; }
  .mnav details { border-bottom: 1px solid var(--line); }
  .mnav summary { padding: 15px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
  .mnav summary::after { content: '+'; color: var(--ink-3); }
  .mnav details[open] summary::after { content: '−'; }
  .mnav details a { display: block; padding: 10px 32px; color: var(--ink-2); background: var(--green-50); }
  .mnav-call { display: block; margin: 20px; text-align: center; }
}

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: .15s; font-size: .98rem; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { filter: brightness(.95); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- 메인 히어로 ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; }
.hero-slide.on { opacity: 1; }
.hero-slide.ph { background: var(--grad); display: grid; place-items: end; padding: 20px; }
.hero-slide.ph em { font-style: normal; font-size: .8rem; color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.35); padding: 4px 10px; border-radius: 6px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,28,60,.78), rgba(18,28,60,.22) 70%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 120px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 14px; border-radius: 999px; font-size: .88rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.25; margin: 0 0 18px; letter-spacing: -.03em; font-weight: 800; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.88); margin: 0 0 30px; max-width: 34em; }
.hero .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* 퀵메뉴 */
.quick { position: relative; z-index: 3; margin-top: -54px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.quick-grid a { padding: 26px 20px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); transition: .15s; }
.quick-grid a:last-child { border-right: 0; }
.quick-grid a:hover { background: var(--green-50); }
.quick-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.quick-ic svg { width: 26px; height: 26px; }
.quick-grid strong { display: block; font-size: 1.05rem; }
.quick-grid small { color: var(--ink-3); font-size: .84rem; }
@media (max-width: 760px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid a { border-bottom: 1px solid var(--line); padding: 18px 14px; flex-direction: column; text-align: center; gap: 8px; }
  .quick-grid a:nth-child(2n) { border-right: 0; }
  .quick-grid small { display: none; }
}

/* 섹션 */
.sec { padding: 80px 0; }
.sec-alt { background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.3; }
.sec-head .kicker { display: block; color: var(--sun); font-weight: 700; font-size: .88rem; letter-spacing: .06em; margin-bottom: 6px; }
.more { color: var(--ink-3); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.more:hover { color: var(--green-700); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sec-alt .feature { background: var(--paper); }
.feature .num { font-size: .82rem; font-weight: 800; color: var(--sun); letter-spacing: .08em; }
.feature h3 { margin: 6px 0 8px; font-size: 1.22rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.home-2col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
@media (max-width: 960px) { .home-2col { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 1.2rem; }
.today-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.today-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: .9rem; }
.today-tabs button.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.meal-today dl { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 10px 14px; }
.meal-today dt { font-weight: 700; color: var(--green-700); }
.meal-today dd { margin: 0; color: var(--ink-2); }
.prog-today li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.prog-today li:last-child { border-bottom: 0; }
.prog-today time { font-weight: 700; color: var(--green-700); min-width: 56px; font-variant-numeric: tabular-nums; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.notice-mini li a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-mini li:last-child a { border-bottom: 0; }
.notice-mini .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-mini time { color: var(--ink-3); font-size: .88rem; flex-shrink: 0; }
.empty { color: var(--ink-3); text-align: center; padding: 30px 0; }

.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.album-grid.col3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .album-grid, .album-grid.col3 { grid-template-columns: repeat(2, 1fr); } }
.album-item { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .15s; }
.album-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.album-item .thumb { aspect-ratio: 4/3; background: var(--green-100) center/cover; position: relative; }
.album-item .cnt { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; padding: 2px 9px; border-radius: 999px; }
.album-item .info { padding: 14px 16px; }
.album-item strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.album-item time { color: var(--ink-3); font-size: .86rem; }

.contact-band { background: var(--grad); color: #fff; padding: 56px 0; }
.contact-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.contact-band p { margin: 0; color: rgba(255,255,255,.8); }
.contact-band .tel { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; display: block; }

/* ---------- 서브페이지 ---------- */
.sub-hero { background: var(--grad); color: #fff; padding: 54px 0 0; position: relative; overflow: hidden; }
.sub-hero::before { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.05); }
.sub-hero .crumb { font-size: .85rem; color: rgba(255,255,255,.7); }
.sub-hero h1 { margin: 6px 0 30px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; }
.sub-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs a { padding: 13px 20px; color: rgba(255,255,255,.75); white-space: nowrap; border-radius: 10px 10px 0 0; font-weight: 600; font-size: .95rem; }
.sub-tabs a:hover { color: #fff; }
.sub-tabs a.on { background: var(--paper); color: var(--green-800); }
.sub-body { padding: 56px 0 90px; min-height: 50vh; }

/* 편집 가능한 본문 */
.content { font-size: 1.02rem; }
.content h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; letter-spacing: -.02em; color: var(--green-900); }
.content h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.content > :first-child { margin-top: 0; }
.content p { margin: 0 0 1em; color: var(--ink-2); }
.content img { border-radius: 12px; margin: 1em 0; height: auto; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; background: #fff; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; }
.content th { background: var(--green-50); }
.content ul, .content ol { padding-left: 1.3em; color: var(--ink-2); }
.content a { color: var(--green-700); text-decoration: underline; }
.content blockquote { margin: 1em 0; padding: 14px 20px; background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: 0 10px 10px 0; }
.table-scroll { overflow-x: auto; }
/* 디자인 블록 (카드·단계·강조 전화) */
.content .blk-lead { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 1.6em; }
.content .blk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 2.4em; }
.content .blk-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: 0 6px 18px rgba(31, 77, 65, .06); }
.content .blk-card h3 { margin: 0 0 14px; font-size: 1.2rem; color: var(--green-800); padding-bottom: 12px; border-bottom: 2px solid var(--green-50); }
.content .blk-card ul, .content .blk-card ol { margin: 0 0 .8em; line-height: 1.8; }
.content .blk-card p:last-child { margin-bottom: 0; }
.content .blk-call { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; margin: 0 0 .3em; }
.content .blk-call a { color: var(--sun); text-decoration: none; }
.content .blk-note { font-size: .88rem; color: var(--ink-3, #7a847f); }
.content a.blk-btn { display: inline-block; margin: 4px 4px 0 0; padding: 9px 16px; border-radius: 999px; background: var(--green-800); color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; }
.content a.blk-btn.line { background: #fff; color: var(--green-800); border: 1px solid var(--green-800); }
.content .blk-steps { list-style: none; padding: 0; margin: 1.2em 0 .8em; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; counter-reset: st; }
.content .blk-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 46px 14px 20px; text-align: center; counter-increment: st; }
.content .blk-steps li::before { content: counter(st); position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: .82rem; font-weight: 700; }
.content .blk-steps li:not(:last-child)::after { content: '›'; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; line-height: 16px; border-radius: 50%; background: var(--sun); color: #fff; font-size: .95rem; font-weight: 700; }
.content .blk-steps b { display: block; font-size: 1.05rem; color: var(--green-800); margin-bottom: 6px; }
.content .blk-steps span { display: block; font-size: .9rem; color: var(--ink-2); }
.content .blk-need { color: #b4541f; background: #fff3ea; border-radius: 4px; padding: 0 4px; font-size: .9em; font-weight: 600; }
.content .blk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 2em; }
.content .blk-photos img { margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.content .blk-photo { margin: 0; min-height: 160px; display: grid; place-items: center; background: var(--green-50); border: 2px dashed #b6c4dc; border-radius: 14px; color: var(--green-700); font-weight: 600; font-size: .92rem; text-align: center; padding: 12px; }
.content .blk-greet { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; margin-bottom: 2.4em; }
.content .blk-greet > .blk-photo { min-height: 380px; }
.content .blk-greet > p img { margin: 0; width: 100%; }
.content .blk-greet h2 { margin-top: 0; color: var(--green-800); }
.content .blk-formula { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 0 0 2em; }
.content .blk-formula span { min-width: 180px; padding: 18px 24px; border: 2px solid var(--green-800); border-radius: 999px; text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--green-800); background: #fff; }
.content .blk-formula span small { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.content .blk-formula span.on { background: var(--green-800); color: #fff; }
.content .blk-formula i { font-style: normal; font-size: 1.8rem; font-weight: 800; color: var(--sun); }
.content h3 { color: var(--green-800); }
@media (max-width: 720px) {
  .content .blk-greet { grid-template-columns: 1fr; gap: 20px; }
  .content .blk-greet > .blk-photo { min-height: 240px; }
  .content .blk-formula span { min-width: 0; flex: 1 1 100%; }
  .content .blk-grid { grid-template-columns: 1fr; }
  .content .blk-card { padding: 22px 20px; }
  .content .blk-steps { grid-template-columns: 1fr; gap: 26px; }
  .content .blk-steps li:not(:last-child)::after { content: '⌄'; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); line-height: 12px; }
}
@media (max-width: 720px) { .content table { display: block; overflow-x: auto; white-space: nowrap; font-size: .88rem; } .content th, .content td { padding: 8px 10px; } }

/* 자리표시자 */
.ph-block { border: 2px dashed #cdd5e2; border-radius: var(--radius); padding: 34px 28px; background: repeating-linear-gradient(45deg, #fff, #fff 12px, #fbf9f5 12px, #fbf9f5 24px); color: var(--ink-3); }
.ph-block strong { display: block; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 4px; }
.ph-block + .ph-block { margin-top: 18px; }
.ph-img { aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; }
.ph-row { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.ph-row .ph-block { margin: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ph-grid .ph-block { margin: 0; aspect-ratio: 4/3; display: grid; place-items: center; padding: 10px; text-align: center; }
@media (max-width: 760px) { .ph-row { grid-template-columns: 1fr; } .ph-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 게시판 ---------- */
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.board-top .total { color: var(--ink-2); }
.board-top .total b { color: var(--green-700); }
.search { display: flex; gap: 6px; }
.search input { border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 42px; background: #fff; min-width: 0; width: 220px; }
.btable { width: 100%; border-collapse: collapse; background: #fff; border-top: 2px solid var(--green-800); }
.btable th { font-weight: 700; padding: 14px 10px; border-bottom: 1px solid var(--line); background: var(--green-50); font-size: .94rem; }
.btable td { padding: 15px 10px; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: .95rem; }
.btable td.title { text-align: left; color: var(--ink); }
.btable td.title a:hover { color: var(--green-700); text-decoration: underline; }
.btable tr.pin td { background: #f2f8ec; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--green-100); color: var(--green-800); white-space: nowrap; }
.badge.sun { background: var(--sun-100); color: #3d7a1c; }
.badge.gray { background: #eee; color: #666; }
.ic-lock::before { content: '🔒'; font-size: .8em; margin-right: 4px; }
@media (max-width: 700px) {
  .btable .hide-m { display: none; }
  .btable td { padding: 12px 6px; font-size: .9rem; }
  .search input { width: 150px; }
}
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.pager button.on { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }

.view-head { border-top: 2px solid var(--green-800); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 24px; }
.view-head h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -.02em; }
.view-meta { color: var(--ink-3); font-size: .9rem; display: flex; gap: 16px; flex-wrap: wrap; }
.view-body { background: #fff; padding: 30px 24px; border-bottom: 1px solid var(--line); min-height: 160px; }
.view-body.pre { white-space: pre-wrap; }
.view-files { background: #fff; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.view-files a { color: var(--green-700); text-decoration: underline; margin-right: 14px; cursor: pointer; }
.video-wrap { position: relative; aspect-ratio: 16/9; margin-bottom: 24px; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.view-nav { background: #fff; margin-top: 24px; border-top: 1px solid var(--line); }
.view-nav a { display: flex; gap: 20px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.view-nav a span { color: var(--ink-3); min-width: 50px; }
.view-nav a:hover b { color: var(--green-700); }
.view-actions { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.reply-box { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; }
.reply-box h4 { margin: 0 0 8px; color: var(--green-800); }

/* 앨범 보기 */
.photo-stack { display: grid; gap: 16px; }
.photo-stack img { width: 100%; border-radius: 12px; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; color: #fff; font-size: .9rem; }

/* 주간 표 (식단·일정) */
.week-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.week-nav strong { font-size: 1.25rem; min-width: 240px; text-align: center; font-variant-numeric: tabular-nums; }
.week-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; }
.week-nav .today-btn { width: auto; padding: 0 16px; border-radius: 999px; font-size: .88rem; }
.week-table { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; min-width: 880px; }
.week-table th, .week-table td { border: 1px solid var(--line); padding: 12px 10px; vertical-align: top; font-size: .92rem; }
.week-table thead th { background: var(--green-800); color: #fff; font-weight: 600; text-align: center; }
.week-table thead th small { display: block; font-weight: 400; opacity: .8; font-size: .8rem; }
.week-table thead th.today { background: var(--sun); }
.week-table tbody th { background: var(--green-50); width: 80px; color: var(--green-800); text-align: center; vertical-align: middle; }
.week-table td.today { background: #f2f8ec; }
.week-table .kcal { display: block; margin-top: 6px; color: var(--sun); font-size: .8rem; font-weight: 700; }
.week-table .sun-col { color: #c2412d; }
.prog-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.prog-item:last-child { border-bottom: 0; }
.prog-item time { display: block; font-weight: 700; color: var(--green-700); font-size: .82rem; font-variant-numeric: tabular-nums; }
.prog-item b { display: block; }
.prog-item small { display: block; color: var(--ink-3); line-height: 1.5; }
.prog-item .cat { display: inline-block; font-size: .72rem; background: var(--green-100); color: var(--green-800); padding: 0 7px; border-radius: 6px; margin: 2px 0; }
/* 모바일: 요일별 카드 */
.day-cards { display: none; }
@media (max-width: 860px) {
  .week-desktop { display: none; }
  .day-cards { display: grid; gap: 12px; }
}
.day-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day-card.today { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun-100); }
.day-card h4 { margin: 0; padding: 10px 16px; background: var(--green-50); font-size: 1rem; display: flex; justify-content: space-between; }
.day-card.today h4 { background: var(--sun-100); }
.day-card .body { padding: 12px 16px; }
.day-card dl { margin: 0; display: grid; grid-template-columns: 52px 1fr; gap: 6px 10px; font-size: .93rem; }
.day-card dt { font-weight: 700; color: var(--green-700); }
.day-card dd { margin: 0; color: var(--ink-2); }

/* 폼 */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.form-row:last-of-type { border-bottom: 0; }
.form-row > label { font-weight: 700; }
.form-row > label .req { color: var(--danger); margin-left: 3px; }
.input, .form input[type=text], .form input[type=tel], .form input[type=password], .form input[type=date], .form textarea, .form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: #fff; }
.form textarea { min-height: 180px; resize: vertical; }
.input:focus, .form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green-600); outline-offset: -1px; border-color: transparent; }
.hint { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.agree-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: .88rem; color: var(--ink-2); max-height: 170px; overflow-y: auto; margin: 18px 0 10px; }
.agree-box h5 { margin: 0 0 6px; font-size: .95rem; color: var(--ink); }
.agree-box ul { margin: 0; padding-left: 1.2em; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green-700); }
.form-actions { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
@media (max-width: 700px) { .form { padding: 20px; } .form-row { grid-template-columns: 1fr; gap: 6px; } }

.gate { max-width: 520px; margin: 0 auto; text-align: center; }
.gate .gate-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; margin: 0 auto 14px; font-size: 2rem; }
.gate h2 { margin: 0 0 6px; }
.gate p { color: var(--ink-2); margin: 0 0 22px; }
.gate .form { text-align: left; }
.msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.msg.err { background: #fdecea; color: var(--danger); }
.msg.ok { background: var(--green-50); color: var(--green-800); }

.map-frame { width: 100%; aspect-ratio: 16/8; border: 0; border-radius: var(--radius); background: var(--green-50); }
.info-table { width: 100%; border-collapse: collapse; background: #fff; margin-top: 22px; border-top: 2px solid var(--green-800); }
.info-table th { width: 140px; background: var(--green-50); text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.info-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* ---------- 푸터 ---------- */
.footer { background: #141f40; color: #aab4cc; padding: 44px 0 36px; font-size: .88rem; }
.footer .f-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 20px; }
.footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .f-links a { color: #fff; font-weight: 600; }
.footer .f-logo { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer p { margin: 2px 0; }
.footer .sep { margin: 0 8px; opacity: .3; }
.footer .copy { margin-top: 14px; opacity: .6; }

/* 우측 하단 상담 버튼 */
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.float-call a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); color: #fff; font-size: .7rem; font-weight: 700; text-align: center; line-height: 1.2; }
.float-call .fc-tel { background: var(--sun); }
.float-call .fc-consult { background: var(--green-700); }

.loading { text-align: center; color: var(--ink-3); padding: 40px 0; }
.mock-flag { position: fixed; left: 12px; bottom: 12px; z-index: 300; background: #222; color: #ffd36b; font-size: .75rem; padding: 4px 10px; border-radius: 6px; opacity: .85; pointer-events: none; }

/* 모바일 보정 */
.home-2col > * { min-width: 0; }
@media (max-width: 600px) {
  .topbar .tb-left { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .card { padding: 20px; }
  .sec { padding: 56px 0; }
  .hero .wrap { padding-top: 70px; padding-bottom: 100px; }
}

/* 로고 이미지 */
.logo-img { width: 50px; height: auto; flex-shrink: 0; }
@media (max-width: 960px) { .logo-img { width: 38px; } }

/* 모바일에서 히어로 인물이 보이도록 */
@media (max-width: 600px) { .hero-slide { background-position: 72% center; } }

/* 로고 컬러 포인트 라인 (명함 그라데이션) */
.sub-hero::after, .contact-band { position: relative; }
.sub-hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-line); }
.header { border-bottom: 1px solid var(--line); }
.footer .f-logo { display: flex; align-items: center; gap: 10px; }
.footer .f-logo img { width: 34px; height: auto; }
