/*
  신월실버요양원 - 공통 스타일
  Design read: 보호자를 위한 신뢰 우선 요양원 사이트, 차분하고 따뜻한 베이지 톤.
  Dials: DESIGN_VARIANCE 5 / MOTION_INTENSITY 3 / VISUAL_DENSITY 3
  Shape rule: 카드·이미지 20px, 입력창 12px, 버튼·칩은 pill(999px).
  Accent: 딥 브라운 하나만 사용.
*/

:root {
  --bg: #f6f0e6;
  --surface: #eee4d4;
  --surface-2: #fbf8f2;
  --ink: #2e2620;
  --ink-2: #54483e;
  --muted: #6f6257;
  --line: #e0d3bf;
  --accent: #7a5a3e;
  --accent-ink: #fffaf2;
  --accent-soft: #e7d8c2;
  --accent-strong: #694c33; /* 연베이지(--accent-soft) 위 글씨용 */
  --danger: #a3402f;
  --shadow: 0 1px 2px rgb(92 68 44 / 0.06), 0 12px 32px -12px rgb(92 68 44 / 0.18);

  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --nav-h: 88px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1713;
    --surface: #26201a;
    --surface-2: #2d261f;
    --ink: #f2eadf;
    --ink-2: #d4c8b8;
    --muted: #b3a595;
    --line: #3d342b;
    --accent: #d8b48c;
    --accent-ink: #1b1713;
    --accent-soft: #3a2f24;
    --accent-strong: #d8b48c;
    --danger: #e8907c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* WebP용 picture 감싸기는 레이아웃에 영향 없음 */
picture { display: contents; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.25; }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); }
h3 { font-size: 1.25rem; line-height: 1.45; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }
.stack > * + * { margin-top: 20px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: auto; flex: none; }
.site-header .brand { gap: 12px; }
.site-header .brand-mark { width: 58px; }
.site-header .brand-name { font-size: 1.5rem; }
.brand-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.brand-name small { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 16px; border-radius: var(--r-pill);
  text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease;
}
.nav-links a[aria-current="page"], .nav-links a.is-section { color: var(--ink); background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
}
/* 하위 메뉴: 데스크톱은 마우스·키보드 포커스로 펼침, 모바일은 버튼으로 펼침 */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: -10px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted);
  font-size: 0.875rem; cursor: pointer;
}
.sub-toggle i { transition: transform 200ms var(--ease-out); }
.has-sub.is-open .sub-toggle i { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 184px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.has-sub.is-open > .sub-menu,
.sub-menu:focus-within { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 14px;
  border-radius: var(--r-pill); background: var(--accent-soft);
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease;
}
.nav-phone i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--surface-2); font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) { .nav-phone:hover { background: var(--line); } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink); font-size: 1.5rem; cursor: pointer;
  place-items: center;
}

/* 좁은 화면: 전화번호 글자 대신 둥근 전화 버튼 */
@media (max-width: 1240px) {
  .nav-phone { padding: 5px; }
  .nav-phone span { display: none; }
  .nav-phone i { width: 40px; height: 40px; font-size: 1.25rem; }
}
@media (max-width: 1060px) {
  .nav { justify-content: flex-start; gap: 8px; }
  .nav-phone { margin-left: auto; }
}
@media (max-width: 480px) {
  :root { --nav-h: 72px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-mark { width: 46px; }
  .site-header .brand-name { font-size: 1.3125rem; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 14px 16px; font-size: 1.0625rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; margin-left: 0; font-size: 1.125rem; }
  .sub-menu {
    position: static; flex-basis: 100%; min-width: 0; display: none;
    padding: 0 0 8px 16px; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .sub-menu::before { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 12px 16px; font-size: 1rem; color: var(--ink-2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 1.0625rem; font-weight: 600; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn i { font-size: 1.25rem; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
  .btn:hover i { transform: translateX(3px); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
}

/* ---------- Home: Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: min(560px, calc(100dvh - var(--nav-h) - 96px));
}
.hero-copy h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.hero-eyebrow {
  display: inline-flex; align-items: center; margin-bottom: 20px; padding: 6px 16px;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong);
  font-size: 0.9375rem; font-weight: 600;
}
.phrase { display: inline-block; }
.hero-copy .lead { margin-top: 24px; max-width: 27em; }
.hero-note {
  margin-top: 40px; display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.9375rem;
}
.hero-note i { color: var(--accent); font-size: 1.25rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 70%;
  border-radius: var(--r-card); box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fadeUp 700ms var(--ease-out) both; }
  .reveal-2 { animation-delay: 80ms; }
  .reveal-3 { animation-delay: 160ms; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-note { margin-top: 28px; }
}

/* ---------- Section head ---------- */
.section-head { max-width: 40em; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 16px; }

/* ---------- Home: Strengths (bento, 3 cells) ---------- */
.bento {
  display: grid; gap: 20px;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
}
.tile {
  border-radius: var(--r-card); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile-body { padding: clamp(24px, 3vw, 36px); }
.tile-body h3 { margin-top: 18px; }
.tile-body p { margin-top: 10px; }
.tile-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.5rem;
}
.tile--feature { grid-row: span 2; }
.tile--feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; flex: 1 1 auto; min-height: 0; }
.tile--tint { background: var(--accent-soft); border-color: transparent; justify-content: flex-end; }
.tile--tint .tile-icon { background: var(--surface-2); }
.tile--photo { position: relative; color: #fbf6ee; border: 0; min-height: 280px; justify-content: flex-end; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.tile--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(30 22 15 / 0.82) 0%, rgb(30 22 15 / 0.35) 55%, rgb(30 22 15 / 0.05) 100%);
}
.tile--photo .tile-body { position: relative; z-index: 1; }
.tile--photo h3 { color: #fffaf2; }
.tile--photo p { color: #efe4d4; }
.tile--photo .tile-icon { background: rgb(255 250 242 / 0.18); color: #fffaf2; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile--feature { grid-row: auto; }
  .tile--photo { min-height: 440px; }
}

/* ---------- Home: Reviews ---------- */
.review-feature {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.review-feature img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-card); }
.quote-mark { color: var(--accent); font-size: 2.5rem; line-height: 1; }
blockquote { margin: 0; }
.review-feature blockquote p {
  margin-top: 16px;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.55; font-weight: 550;
  color: var(--ink); letter-spacing: -0.02em;
}
.cite { display: block; margin-top: 24px; font-style: normal; font-size: 1rem; color: var(--muted); }
.cite strong { color: var(--ink); font-weight: 600; margin-right: 8px; }

.review-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.review-list blockquote p { font-size: 1.125rem; color: var(--ink); }

@media (max-width: 860px) {
  .review-feature, .review-list { grid-template-columns: 1fr; }
  .review-feature img { aspect-ratio: 4 / 3; }
}

/* ---------- Home: FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-aside p { margin-top: 16px; }
.faq-aside .text-link { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; font-size: 1.125rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  transition: transform 220ms var(--ease-out);
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 60px 28px 4px; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-answer { animation: fadeUp 240ms var(--ease-out); }
}
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-answer { padding-right: 4px; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px);
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px 48px; align-items: center;
}
.cta p { margin-top: 14px; max-width: 32em; }
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
}

/* ---------- Page header (sub pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 14em; }
.page-head .lead { margin-top: 20px; }

/* ---------- Services ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split + .split { margin-top: clamp(64px, 8vw, 112px); }
.split--flip .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--r-card); }
.split-body h2 { margin-top: 0; }
.split-body > p { margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks i { color: var(--accent); font-size: 1.25rem; margin-top: 4px; flex: none; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
}

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card);
  background: var(--surface-2); border: 1px solid var(--line);
}
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.timeline li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.timeline li:nth-child(3n+2), .timeline li:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.timeline time { display: block; font-size: 1.375rem; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.timeline strong { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }
.timeline span { display: block; margin-top: 4px; font-size: 1rem; color: var(--muted); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:nth-child(n) { padding: 24px 20px 24px 0; border-left: 0; }
  .timeline li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li:nth-child(n) { padding: 20px 0; border-left: 0; }
}

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 28px; border-radius: var(--r-card); background: var(--accent-soft); color: var(--ink-2);
}
.notice i { color: var(--accent); font-size: 1.5rem; flex: none; margin-top: 2px; }
.notice strong { color: var(--ink); }
.notice .text-link { color: var(--accent-strong); }

/* ---------- About ---------- */
.letter { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.letter img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-card); }
.letter-body p + p { margin-top: 18px; }
.signature { margin-top: 32px; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .letter { grid-template-columns: 1fr; }
  .letter img { aspect-ratio: 4 / 3; }
}

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.values li { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line); }
.values li:first-child { background: var(--accent); border-color: transparent; }
.values li:first-child h3, .values li:first-child p { color: var(--accent-ink); }
.values li:first-child .tile-icon { background: color-mix(in srgb, var(--accent-ink) 18%, transparent); color: var(--accent-ink); }
.values h3 { margin-top: 18px; }
.values p { margin-top: 10px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* 큰 사진 1장 + 옆 2장, 아랫줄 4장 (12칸 격자) */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px 16px; }
.gallery figure { grid-column: span 4; }
.gallery figure:nth-child(n+4) { grid-column: span 3; }
.gallery figure, .visit-photos figure { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.gallery figure:first-child { grid-column: span 8; grid-row: span 2; }
.gallery figure:first-child img { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
.gallery figcaption, .visit-photos figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .gallery figure, .gallery figure:nth-child(n+4) { grid-column: auto; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery figure:first-child img { aspect-ratio: 16 / 9; flex: none; }
}

.visit-photos { grid-column: 1 / -1; display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; }
.visit-photos img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--r-card); }
@media (max-width: 860px) {
  .visit-photos { grid-template-columns: 1fr; }
  .visit-photos img { height: auto; aspect-ratio: 16 / 9; }
  .visit-photos figure:first-child img { aspect-ratio: 3 / 1; }
}

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.info-list { margin: 0; display: grid; gap: 24px; }
.info-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.info-list dt { color: var(--muted); font-size: 1rem; padding-top: 2px; }
.info-list dd { margin: 0; color: var(--ink); }
.map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; border: 0;
  border-radius: var(--r-card); background: var(--surface-2);
}
.map-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
.map-slot {
  aspect-ratio: 4 / 3; border-radius: var(--r-card); border: 1px dashed var(--line);
  background: var(--surface-2); display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: 24px; font-size: 1rem;
}
.map-slot i { display: block; margin: 0 auto 10px; font-size: 2rem; color: var(--accent); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .info-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 1rem; font-weight: 600; color: var(--ink); padding: 0; }
.field .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--muted); border-radius: var(--r-input);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field .help { font-size: 0.9375rem; color: var(--muted); }
.field .error { font-size: 0.9375rem; color: var(--danger); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
  background: var(--bg); color: var(--ink-2); font-size: 1rem; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.choice span:active { transform: scale(0.97); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.field .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.form-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions .muted { font-size: 0.9375rem; }
.form-required-note { margin: 0 0 20px; font-size: 0.9375rem; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

.form-success { display: none; text-align: center; padding: 32px 8px; }
.form-success i { font-size: 3rem; color: var(--accent); }
.form-success h2 { margin-top: 16px; }
.form-success p { margin: 12px auto 0; max-width: 28em; }
.form-card.is-done form { display: none; }
.form-card.is-done .form-success { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .form-card.is-done .form-success { animation: fadeUp 320ms var(--ease-out); }
}

.contact-side { display: grid; gap: 20px; }
.contact-box { padding: 28px; border-radius: var(--r-card); background: var(--surface); }
.contact-box h2 { font-size: 1.0625rem; }
.contact-box .big { display: block; margin-top: 8px; font-size: 1.75rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; text-decoration: none; }
.contact-box p { margin-top: 8px; font-size: 1rem; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 1rem; color: var(--ink); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--ink); } }
.footer-brand p { margin-top: 14px; max-width: 24em; }
.footer-info { margin: 14px 0 0; display: grid; gap: 4px; }
.footer-info div { display: flex; gap: 10px; }
.footer-info dt { flex: none; width: 4.5em; color: var(--ink); font-weight: 500; }
.footer-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.footer-brand .footer-badge { margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.footer-badge i { color: var(--accent); font-size: 1.125rem; }
.copyright { margin-top: 48px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Facility (rooms) ---------- */
.room-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.room-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.room-jump a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .room-jump a:hover { background: var(--accent-soft); } }
.room-size { font-size: 0.6em; font-weight: 600; color: var(--accent); margin-left: 8px; letter-spacing: 0; vertical-align: 0.2em; }
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: var(--r-card); border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  background: var(--surface); display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 1rem; padding: 24px;
}
.photo-slot i { display: block; margin: 0 auto 8px; font-size: 2rem; color: var(--accent); }
.photo-slot--wide { aspect-ratio: 21 / 8; background: var(--surface-2); }
.room-wide-body { margin-top: 32px; max-width: 40em; }
.room-wide-body p { margin-top: 16px; }
@media (max-width: 860px) { .photo-slot--wide { aspect-ratio: 4 / 3; } }

/* ---------- Notice boards ---------- */
.board-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.board-head h2 { margin-top: 18px; }
.board-head p { margin-top: 12px; }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.board li { border-bottom: 1px solid var(--line); }
.board a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 20px 4px; text-decoration: none; color: var(--ink);
}
.board-title { font-weight: 500; }
.board time { flex: none; font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .board a:hover .board-title { color: var(--accent); } }
.board .board-empty {
  display: grid; justify-items: center; gap: 8px; padding: 48px 16px;
  text-align: center; color: var(--muted); font-size: 1rem;
}
.board-empty i { font-size: 2rem; color: var(--accent); }
@media (max-width: 860px) {
  .board-grid { grid-template-columns: 1fr; gap: 28px; }
  .board a { flex-direction: column; gap: 4px; }
}
.board-body { min-width: 0; }
.board-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.board-more span { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.board-more:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .board-more:hover { background: var(--accent-soft); } }
.board-feature {
  margin-bottom: 32px; padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line);
}
.board-feature-label { font-size: 0.9375rem; font-weight: 600; color: var(--accent); }
.board-feature-title { display: block; margin-top: 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.board-feature img { width: 100%; margin-top: 16px; border-radius: 12px; background: #fff; }

/* ---------- Post view ---------- */
.post { max-width: 880px; }
.post:focus { outline: none; }
.post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .post-back:hover { color: var(--ink); } }
.post h1 { margin-top: 24px; font-size: clamp(1.625rem, 3vw, 2.25rem); }
.post-meta { margin-top: 12px; color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.post-text { margin-top: 28px; }
.post-images { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.post-images img { width: 100%; height: auto; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.post-nav { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a {
  display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500;
}
.post-nav a span { display: block; margin-bottom: 4px; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.post-nav-next { text-align: right; grid-column: 2; }
@media (hover: hover) and (pointer: fine) { .post-nav a:hover { background: var(--accent-soft); } }
.post-missing { color: var(--muted); padding-block: 48px; }
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { grid-column: auto; text-align: left; }
}

[hidden] { display: none !important; }

/* ---------- Board admin ---------- */
.board-write {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.board-write:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .board-write:hover { background: var(--accent-soft); color: var(--ink); } }
.board-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.board-head--row .board-write { margin-top: 0; flex: none; }
.board-head--row p { max-width: 36em; }
@media (max-width: 560px) { .board-head--row { flex-direction: column; align-items: flex-start; } }

.gallery-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; border-top: 0; }
.gallery-board li { border-bottom: 0; }
.gallery-board .board-empty { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-board .gallery-card { display: grid; gap: 4px; padding: 0; }
.gallery-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 2rem; margin-bottom: 10px;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 300ms var(--ease-out); }
.gallery-count {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: var(--r-pill);
  background: rgb(27 23 19 / 0.7); color: #fffaf2; font-size: 0.8125rem;
}
.gallery-card .board-title { font-size: 1rem; line-height: 1.5; }
.gallery-card time { font-size: 0.875rem; }
@media (hover: hover) and (pointer: fine) { .gallery-card:hover .gallery-thumb img { transform: scale(1.03); } }
@media (max-width: 1024px) { .gallery-board { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery-board { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }

.post-admin { display: flex; gap: 10px; margin-top: 40px; }
.post-admin .board-write { margin-top: 0; }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--danger { background: var(--danger); color: #fffaf2; }
.dialog {
  width: min(100% - 32px, 440px); padding: 32px; border: 0; border-radius: var(--r-card);
  background: var(--surface-2); color: var(--ink-2); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgb(27 23 19 / 0.45); }
.dialog-title { font-size: 1.25rem; }
.dialog form > .muted { margin-top: 8px; font-size: 0.9375rem; }
.dialog .field { margin-top: 24px; }
.dialog .dialog-error { display: block; min-height: 1.4em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.dialog-actions .btn { min-height: 48px; padding: 0 22px; }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dialogIn 200ms var(--ease-out); }
  @keyframes dialogIn { from { opacity: 0; transform: scale(0.97); } }
}

.write-card { margin-top: 32px; }
.field input[type="file"] { padding: 12px; background: var(--surface-2); cursor: pointer; }
.upload-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.upload-list:empty { display: none; }
.upload-list li { position: relative; }
.upload-list img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--surface); }
.upload-remove {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgb(27 23 19 / 0.7); color: #fffaf2; cursor: pointer;
}
.form-error { margin-top: 20px; color: var(--danger); font-size: 0.9375rem; }
.form-error:empty { display: none; }
.tile--feature .tile-img--hall { object-position: center 62%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 첫 화면 롤링 문구: 모든 문구를 같은 칸에 겹쳐 두어 폭이 바뀌지 않게 함 */
.hero-rotator { overflow: hidden; }
.rotator-track { display: grid; }
.rotator-item {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}
.rotator-item.is-active { opacity: 1; transform: none; }
.rotator-item.is-leaving { opacity: 0; transform: translateY(-100%); }
.rotator-item i { font-size: 1.125rem; }
.rotator-item strong { font-weight: 800; color: var(--accent-strong); }
@media (prefers-reduced-motion: reduce) {
  .rotator-item { transition: opacity 200ms ease; transform: none; }
  .rotator-item.is-leaving { transform: none; }
}
@media (max-width: 380px) { .rotator-item { white-space: normal; } }

/* ---------- Cost ---------- */
.cost-box { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line); }
.cost-box h2 .muted, .cost-split h2 .muted { font-size: 0.6em; font-weight: 500; letter-spacing: 0; }
.cost-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cost-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.cost-tab span { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cost-tab:active { transform: scale(0.97); }
.cost-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cost-tab[aria-selected="true"] span { color: inherit; opacity: 0.8; }
.cost-who { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.cost-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.cost-card { padding: 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.cost-card h3 { font-size: 1.0625rem; }
.cost-total { margin-top: 8px; color: var(--ink); font-size: 1.0625rem; }
.cost-total strong { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.cost-break { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.9375rem; }
.cost-break div { display: flex; justify-content: space-between; gap: 12px; }
.cost-break dt { color: var(--muted); }
.cost-break dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.cost-foot { margin: 20px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.9375rem; color: var(--muted); }
.cost-foot strong { color: var(--ink); font-weight: 600; }
.cost-intro { margin-top: 12px; max-width: 42em; color: var(--ink-2); }
.cost-sub { margin-top: 40px; margin-bottom: 14px; font-size: 1.125rem; }

/* 비용 계산기: 등급·본인부담률 고르기 */
.calc { margin-top: 24px; display: grid; gap: 18px; }
.calc-group { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.calc-group legend { float: left; width: 7.5em; padding: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.calc-chip { position: relative; cursor: pointer; }
.calc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.calc-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.calc-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.calc-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-chip:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .calc-chip:hover input:not(:checked) + span { border-color: var(--accent); color: var(--ink); } }
.calc-result { display: grid; gap: 4px; min-height: 104px; align-content: center; padding: 20px 24px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); }
.calc-hint { color: var(--ink-2); }
.calc-label small, .calc-total small { font-size: 0.875rem; color: var(--ink-2); font-weight: 400; }
.calc-total strong { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-break { font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .calc-group legend { float: none; width: 100%; margin-bottom: 2px; }
  .calc-chip span { padding: 8px 14px; }
}
/* 고른 칸 표시 */
.cost-matrix td.is-col, .cost-matrix tr.is-row > * { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.cost-matrix td.is-pick { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@media (max-width: 860px) { .cost-cards { grid-template-columns: 1fr; } }

.cost-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cost-split > div > p { margin-top: 16px; }
.cost-split .checks { margin-top: 0; }
@media (max-width: 860px) { .cost-split { grid-template-columns: 1fr; gap: 24px; } }

.table-wrap { overflow-x: auto; border-radius: 16px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.cost-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.cost-table th, .cost-table td { padding: 16px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cost-table thead th { font-size: 0.875rem; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.cost-table th:first-child { text-align: left; }
.cost-table tbody th { color: var(--ink); font-weight: 600; }
.cost-table tbody tr:last-child > * { border-bottom: 0; }
.table-note { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

.extra-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.extra-list li { display: grid; gap: 2px; padding: 20px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.extra-list span { font-size: 0.9375rem; color: var(--muted); }
.extra-list strong { font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.extra-list em { font-style: normal; font-size: 0.9375rem; color: var(--muted); }
.extra-list .extra-sum { background: var(--accent-soft); border-color: transparent; }
.extra-list .extra-sum span, .extra-list .extra-sum em { color: var(--ink-2); }
.extra-list .extra-wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .extra-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cost-table { min-width: 0; font-size: 0.875rem; }
  .cost-table th, .cost-table td { padding: 12px 4px; }
  .cost-table th:first-child { padding-left: 12px; }
  .cost-table th:last-child, .cost-table td:last-child { padding-right: 10px; }
  .cost-table thead th { font-size: 0.875rem; white-space: normal; }
}

/* ---------- Org chart ---------- */
.org { display: grid; justify-items: center; }
.org-node {
  position: relative; display: grid; justify-items: center; gap: 2px; min-width: 240px;
  padding: 18px 28px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: center;
}
.org-node strong { font-size: 1.1875rem; color: var(--ink); }
.org-node span { font-size: 0.9375rem; color: var(--muted); }
.org-node--top { background: var(--accent); border-color: var(--accent); }
.org-node--top strong, .org-node--top span { color: var(--accent-ink); }
.org-node--top span { opacity: 0.85; }
.org-node + .org-node, .org-teams { margin-top: 40px; }
.org-node + .org-node::before, .org-teams::before {
  content: ""; position: absolute; left: 50%; top: -41px; width: 1px; height: 40px; background: var(--line);
}
.org-teams {
  position: relative; width: 100%; list-style: none; margin-bottom: 0; padding: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line);
}
.org-team { padding: 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.org-team h2 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; line-height: 1.45; }
.org-team h2 i { color: var(--accent); font-size: 1.375rem; }
.org-staff { margin-top: 12px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.org-work { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.org-partner {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 24px; padding: 18px 22px;
  border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); color: var(--ink-2); font-size: 1rem;
}
.org-partner i { color: var(--accent); font-size: 1.5rem; flex: none; }
.org-partner strong { color: var(--ink); margin-right: 6px; }
@media (max-width: 960px) { .org-teams { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .org-node { width: 100%; min-width: 0; }
  .org-teams { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
}
.staff-table { min-width: 0; }
.staff-table td.is-more { color: var(--accent); font-weight: 700; }
.staff-table tbody td:nth-child(3) { color: var(--ink-2); font-weight: 400; }
.staff-table tbody td.is-more { color: var(--accent); font-weight: 700; }
.org-roles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.org-roles li { display: grid; gap: 2px; }
.org-roles strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
.org-roles span { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Hero slides ---------- */
.hero-slides { display: grid; border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; background: var(--surface-2); }
.hero-slides .hero-slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero-slides .hero-slide.is-active { opacity: 1; }
.hero-slides .hero-slide img { box-shadow: none; border-radius: 0; }
.hero-slide--doc { display: grid; place-items: center; background: #fff; }
.hero-slides .hero-slide--doc img { width: 100%; height: 100%; object-fit: contain; padding: clamp(12px, 3vw, 28px); }
.slide-controls {
  grid-area: 1 / 1; align-self: end; justify-self: end; z-index: 1; margin: 0 12px 12px 0;
  display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--r-pill);
  background: rgb(27 23 19 / 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slide-dot {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent;
}
.slide-dot::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: rgb(255 250 242 / 0.5); transition: background-color 200ms ease, transform 200ms var(--ease-out);
}
.slide-dot.is-active::before { background: #fffaf2; transform: scale(1.2); }
.slide-pause {
  display: grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fffaf2; font-size: 0.875rem; cursor: pointer;
}
.slide-dot:focus-visible, .slide-pause:focus-visible { outline: 2px solid #fffaf2; outline-offset: 0; box-shadow: 0 0 0 4px rgb(27 23 19 / 0.6); }
@media (prefers-reduced-motion: reduce) { .hero-slides .hero-slide { transition: opacity 200ms ease; } }

/* ---------- Floor guide ---------- */
.floors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.floor {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 16px 32px; align-items: center;
  padding: 18px 16px; border-bottom: 1px solid var(--line);
}
.floor--highlight { background: var(--accent-soft); border-radius: 16px; border-bottom-color: transparent; margin: 8px 0; }
.floor-label { display: flex; align-items: center; gap: 14px; }
.floor-badge {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--accent); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em;
}
.floor--highlight .floor-badge { background: var(--accent); color: var(--accent-ink); }
.floor-name { color: var(--ink); font-weight: 600; }
.floor-rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.room-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem;
}
.room-chip--main { background: var(--bg); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); font-weight: 600; }
.floor-link { font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 860px) {
  .floor { grid-template-columns: 1fr; padding: 18px 4px; }
  .floor--highlight { padding: 18px 16px; }
  .floor-badge { width: 44px; height: 44px; font-size: 1rem; }
  .floor-link { justify-self: start; }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.svc-head h2 { margin-top: 18px; }
.svc-head > p { margin-top: 12px; }
.svc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); margin-top: 28px; }
.svc-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-items li { padding: 20px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.svc-items h3 { font-size: 1.0625rem; }
.svc-items p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); }
.section--tint .svc-items li { background: var(--bg); }
@media (min-width: 861px) { .svc-head { position: sticky; top: calc(var(--nav-h) + 24px); } }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; gap: 24px; }
  .svc-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) { .svc-items { grid-template-columns: 1fr; } }

/* 롤링 문구 1.5배 */
.hero-rotator { font-size: 1.40625rem; padding: 10px 24px; margin-bottom: 28px; }
.hero-rotator .rotator-item { gap: 12px; }
.hero-rotator .rotator-item i { font-size: 1.6875rem; }
@media (max-width: 560px) {
  .hero-rotator { font-size: 1.125rem; padding: 8px 18px; }
  .hero-rotator .rotator-item i { font-size: 1.375rem; }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.room-wide-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; border-radius: var(--r-card); }
@media (max-width: 860px) { .room-wide-img { aspect-ratio: 4 / 3; } }

/* ---------- Floor guide: building ---------- */
.floor-guide { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bldg {
  --teal: #2f7d76; --wall: #efe7d6; --glass: #9cc9d6; --glass-2: #5f9fb3; --brick: #b97a5f;
  display: grid; padding-left: 52px; position: relative;
}
.bldg-roof { position: relative; height: 34px; }
.bldg-roof::before { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 12px; background: var(--teal); border-radius: 4px 4px 0 0; }
.bldg-penthouse { position: absolute; right: 14%; bottom: 12px; width: 22%; height: 28px; background: var(--wall); border: 3px solid var(--teal); border-bottom: 0; border-radius: 3px 3px 0 0; }

.bldg-floor {
  position: relative; display: block; width: 100%; height: 58px; padding: 0; border: 0; background: none;
  font: inherit; cursor: pointer; text-align: left;
}
.bldg-no {
  position: absolute; left: -52px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.9375rem; font-weight: 800; color: var(--accent); background: var(--surface);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out);
}
.bldg-face {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 0;
  background: var(--wall); border-top: 4px solid var(--teal);
  border-left: 3px solid var(--teal); border-right: 3px solid var(--teal);
  transition: filter 200ms ease, box-shadow 200ms ease;
}
.bldg-glass {
  flex: none; width: 24%; align-self: stretch; margin-right: 6%;
  background: linear-gradient(90deg, var(--glass-2), var(--glass) 55%, #cfe6ec);
  border-right: 3px solid var(--teal); border-radius: 18px 0 0 18px;
}
.bldg-wins { flex: 1; display: flex; justify-content: space-around; padding-right: 4%; }
.win { width: 11%; height: 26px; background: var(--glass); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--teal); }
.win--arch { height: 30px; border-radius: 12px 12px 0 0; }
.bldg-floor--ground .bldg-face { background: linear-gradient(var(--wall) 0 38%, var(--brick) 38%); }
.bldg-floor--ground .bldg-glass { background: linear-gradient(var(--glass-2) 0 38%, var(--brick) 38%); }
.bldg-floor--ground .bldg-wins { align-self: flex-end; padding-bottom: 6px; }
.bldg-floor--ground .win { height: 18px; }
.bldg-sign {
  position: absolute; left: 30%; right: 4%; top: 2px; height: 16px; display: grid; place-items: center;
  background: #17703b; color: #fff; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; border-radius: 2px;
}
.bldg-ground { height: 10px; margin: 0 -18px; background: #6f6257; border-radius: 3px; }
.bldg-floor--basement { height: 50px; margin-top: 4px; }
.bldg-floor--basement .bldg-face {
  border: 2px dashed color-mix(in srgb, var(--muted) 60%, transparent); background: var(--surface);
}

.bldg-floor[aria-pressed="true"] .bldg-face { box-shadow: inset 0 0 0 999px rgb(122 90 62 / 0.22); }
.bldg-floor[aria-pressed="true"] .bldg-no { background: var(--accent); color: var(--accent-ink); transform: translateY(-50%) scale(1.08); }
@media (hover: hover) and (pointer: fine) {
  .bldg-floor:hover .bldg-face { box-shadow: inset 0 0 0 999px rgb(122 90 62 / 0.12); }
  .bldg-floor[aria-pressed="true"]:hover .bldg-face { box-shadow: inset 0 0 0 999px rgb(122 90 62 / 0.22); }
}
.bldg-floor:focus-visible { outline: none; }
.bldg-floor:focus-visible .bldg-no { outline: 3px solid var(--accent); outline-offset: 2px; }

/* JS가 켜지면 고른 층 하나만 보여 줌 */
.floor-guide.is-enhanced .floors { border-top: 0; }
.floor-guide.is-enhanced .floor { display: none; border-bottom: 0; padding: 32px; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line); grid-template-columns: 1fr; gap: 20px; }
.floor-guide.is-enhanced .floor.is-active { display: grid; }
.floor-guide.is-enhanced .floor-name { font-size: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .floor-guide.is-enhanced .floor.is-active { animation: fadeUp 260ms var(--ease-out); }
}
@media (max-width: 860px) {
  .floor-guide { grid-template-columns: 1fr; gap: 24px; }
  .bldg { max-width: 360px; width: 100%; margin: 0 auto; }
  .bldg-floor { height: 48px; }
  .win { height: 20px; } .win--arch { height: 24px; }
  .floor-guide.is-enhanced .floor { padding: 24px 20px; }
}

/* ---------- Sketch map ---------- */
.sketch, .route-list, .visit .map-links { grid-column: 1 / -1; }
.sketch { margin: 0; }
.sketch-map { display: block; width: 100%; height: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface-2); }
.sk-bg { fill: var(--surface-2); }
.sk-park { fill: #cfe3c4; }
.sk-lake { fill: #a9d3e3; }
.sk-road path { fill: none; stroke: #fffdf8; stroke-width: 18; stroke-linecap: round; }
.sk-road--big path { stroke: #f3d9a8; stroke-width: 30; }
.sk-metro { fill: none; stroke: #8e5bb5; stroke-width: 4; stroke-dasharray: 14 8; }
.sk-label text { font-size: 17px; font-weight: 600; fill: #8a7a6a; letter-spacing: 0.02em; }
.sk-place text { font-size: 19px; font-weight: 700; fill: #3f7a3a; text-anchor: middle; }
.sk-poi circle { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.sk-poi--metro { fill: #8e5bb5 !important; }
.sk-poi--bus { fill: #2f7fbf !important; }
.sk-poi text { font-size: 19px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface-2); stroke-width: 5px; }
.sk-poi .sk-sub { font-size: 14px; font-weight: 500; fill: var(--muted); }
.sk-home-shadow { fill: rgb(60 40 20 / 0.12); }
.sk-home-roof, .sk-home-band rect { fill: #2f7d76; }
.sk-home-house { fill: #efe7d6; stroke: #2f7d76; stroke-width: 2; }
.sk-home-wall { fill: #efe7d6; stroke: #2f7d76; stroke-width: 2; }
.sk-home-glass { fill: #7fb6c7; }
.sk-home-brick { fill: #b97a5f; }
.sk-home-sign { fill: #1f8a4c; }
.sk-home-win rect { fill: #9cc9d6; }
.sk-home-tag { fill: var(--accent); }
.sk-home-name { font-size: 17px; font-weight: 700; fill: var(--accent-ink); }
.sk-north path { fill: var(--ink-2); }
.sk-north text { font-size: 15px; font-weight: 700; fill: var(--ink-2); }
.sketch-caption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.route-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.route-list i { font-size: 1.5rem; color: var(--accent); flex: none; margin-top: 2px; }
.route-list strong { display: block; color: var(--ink); }
.route-list span { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.6; }
.route-list span + span { margin-top: 8px; }
.route-list span b { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); font-weight: 650; font-size: 0.875rem; }
@media (max-width: 860px) { .route-list { grid-template-columns: 1fr; } }
.sketch-hint { display: none; }
@media (max-width: 720px) {
  .sketch-scroll { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
  .sketch-scroll .sketch-map { width: 760px; max-width: none; border: 0; border-radius: 0; }
  .sketch-hint { display: inline; }
}
.visit > * { min-width: 0; }
.room-chip--soon { background: #fff4e0; border-color: #e9c48a; color: #8a5a12; font-weight: 600; }
.soon-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px;
  border-radius: 12px; background: #fff4e0; color: #8a5a12; font-size: 0.9375rem; font-weight: 500;
}
.soon-note i { font-size: 1.125rem; }
@media (prefers-color-scheme: dark) {
  .room-chip--soon, .soon-note { background: #3a2c16; border-color: #6b5228; color: #f0cf95; }
}
.bldg-floor--top .bldg-face { background: repeating-linear-gradient(-45deg, var(--wall) 0 14px, #f3e4c4 14px 28px); }
.bldg-floor--top .win { opacity: 0.45; }
.bldg-soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 12px; border-radius: var(--r-pill); background: #e8a33a; color: #3a2508;
  font-size: 0.8125rem; font-weight: 800; box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}
.bldg-soon i { font-size: 0.9375rem; }

/* 입소 절차 단계 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { padding: 24px; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line); }
.steps .step-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--surface-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.steps strong { display: block; margin-top: 16px; color: var(--ink); font-weight: 600; }
.steps li > span:last-child { display: block; margin-top: 8px; font-size: 1rem; color: var(--muted); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .cost-box { padding: 24px 14px; }
  .cost-box .cost-table { font-size: 0.875rem; letter-spacing: -0.02em; }
  .cost-box .cost-table th, .cost-box .cost-table td { padding: 12px 3px; }
  .cost-box .cost-table th:first-child { padding-left: 10px; }
  .cost-box .cost-table th:last-child, .cost-box .cost-table td:last-child { padding-right: 8px; }
}

/* 일수별 비용표 3개 (28·30·31일) */
.month-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.month-table { padding: 16px 12px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: border-color 160ms ease, box-shadow 160ms ease; }
.month-table.is-day { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.month-table-title { margin: 0 4px 8px; font-size: 1rem; font-weight: 650; color: var(--ink); }
.month-table .table-wrap { border-radius: 10px; }
.month-table .cost-table { min-width: 0; background: transparent; font-size: 0.9375rem; }
.month-table .cost-table th, .month-table .cost-table td { padding: 11px 6px; }
.month-table .cost-table thead th { font-size: 0.875rem; white-space: nowrap; }
@media (max-width: 1100px) { .month-tables { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .month-table { padding: 14px 6px 6px; }
  .month-table .cost-table th, .month-table .cost-table td { padding: 10px 4px; }
}
