:root {
  --color-primary: #1F5D4A;
  --color-primary-light: #2E7D65;
  --color-bg: #F7FAF8;
  --color-text: #333333;
  --color-muted: #6B7C74;
  --color-border: #E3EAE6;
  --color-white: #FFFFFF;
  --color-gold: #D59636;
  --container-width: 1280px;
  --wide-width: 1760px;
  --shadow-soft: 0 14px 36px rgba(31, 93, 74, .10);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans KR", Pretendard, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 18px; z-index: 1000; padding: 10px 14px; background: var(--color-primary); color: white; border-radius: 8px; }
.skip:focus { top: 18px; }
:focus-visible { outline: 3px solid rgba(46, 125, 101, .42); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 8px clamp(28px, 5vw, 78px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(31, 93, 74, .06);
  backdrop-filter: blur(14px);
}
.brand { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(13px, 1.1vw, 18px); min-width: 0; }
.brand::after {
  content: "밀양시 선비문화체험관";
  color: var(--color-primary);
  font-family: "Noto Serif KR", serif;
  font-size: clamp(23px, 1.55vw, 28px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-logo { flex: 0 0 auto; width: clamp(58px, 4vw, 64px); height: clamp(58px, 4vw, 64px); object-fit: cover; object-position: left center; border-radius: 50%; filter: contrast(1.04) saturate(1.02); }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 3.5vw, 58px); font-size: 16px; font-weight: 700; white-space: nowrap; }
.site-nav a { position: relative; color: #17251f; transition: color .22s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-primary); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--color-primary); }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; font-size: 28px; color: var(--color-primary); }

.hero { position: relative; min-height: clamp(315px, 25vw, 380px); overflow: hidden; background: #16251f; }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; object-position: center 48%; opacity: 0; transition: opacity 1.1s ease; }
.hero-slides img.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 48, 40, .56) 0%, rgba(15, 48, 40, .38) 42%, rgba(15, 48, 40, .05) 100%), linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18)); }
.hero-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 56px; width: min(var(--wide-width), calc(100% - 120px)); min-height: inherit; margin: 0 auto; color: white; }
.hero-main { max-width: 720px; }
.eyebrow, .hero .eyebrow { margin: 0 0 12px; color: var(--color-gold); font-weight: 800; letter-spacing: 0; }
h1, h2, h3, p { word-break: keep-all; }
h1 { margin: 0; font-family: "Noto Serif KR", serif; font-size: clamp(42px, 3.6vw, 58px); line-height: 1.16; letter-spacing: 0; text-shadow: 0 3px 18px rgba(0,0,0,.30); }
.hero-copy { max-width: 680px; margin: 14px 0 0; color: rgba(255,255,255,.92); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.58; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.button, .hero-actions .button, .contact-actions a, .home-logo-download a, .download-card a, .download-card button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; cursor: pointer; transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}
.button.primary, .hero-actions .button.primary, .contact-actions a, .home-logo-download a { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.button:hover, .contact-actions a:hover, .home-logo-download a:hover { transform: translateY(-1px); background: var(--color-primary-light); }
.button.ghost-dark { color: var(--color-primary); border-color: var(--color-primary); background: white; }
.hero-side { display: grid; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.hero-info-card { display: grid; gap: 6px; min-height: 98px; padding: 20px 22px; }
.hero-info-card span { font-weight: 900; font-size: 18px; }
.hero-info-card strong { font-size: 15px; line-height: 1.65; }
.hero-info-card.dark { background: #066252; }
.hero-info-card.light { background: #fffdf8; color: var(--color-text); }

.home-board { display: grid; grid-template-columns: minmax(0, 55fr) minmax(420px, 45fr); gap: 14px 32px; width: min(var(--wide-width), calc(100% - 120px)); margin: 16px auto 0; }
.home-board > *, .gallery-preview, .download-row, .notice-list, .home-lecture-banner { min-width: 0; }
.home-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.home-card-heading h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.home-card-heading p { margin: 4px 0 0; color: var(--color-muted); font-size: 13px; }
.more-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 8px; background: white; color: var(--color-primary); font-size: 13px; font-weight: 800; }
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-card { display: grid; gap: 7px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: zoom-in; }
[data-home-gallery-posts] a.photo-card { cursor: pointer; }
.photo-card img, .expanded figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 14px; transition: transform .25s ease; }
.photo-card:hover img, .expanded figure button:hover img { transform: scale(1.025); }
.photo-card:focus-visible img { outline: 3px solid rgba(46, 125, 101, .42); outline-offset: 3px; }
.photo-card strong { font-size: 14px; font-weight: 800; }
.photo-card time, .expanded time { color: var(--color-muted); font-size: 12px; }
.home-result-heading { margin: 18px 0 10px; }
.home-result-heading h3 { margin: 0; color: #17251f; font-size: 18px; line-height: 1.25; }
.home-result-heading p { margin: 3px 0 0; color: var(--color-muted); font-size: 13px; }
.result-preview .photo-card img { object-fit: contain; object-position: center; background: #eef5f1; }
.notice { align-self: start; }
.notice-list { display: grid; min-height: 186px; padding: 16px 18px; background: white; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.notice-item + .notice-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.notice-item a { display: grid; gap: 7px; min-width: 0; }
.notice-item span, .badge, .page-list span { width: fit-content; padding: 5px 10px; border: 1px solid rgba(31,93,74,.25); border-radius: 8px; color: var(--color-primary); font-size: 13px; font-weight: 800; }
.notice-item strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; line-height: 1.35; }
.notice-item time { color: var(--color-muted); font-size: 13px; }
.notice-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--color-muted); line-height: 1.5; font-size: 14px; }
.notice-item:not(.notice-item-primary) strong { font-size: 16px; }
.home-lecture-banner { display: block; margin-top: 12px; border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; background: #fffaf2; box-shadow: var(--shadow-soft); transition: transform .22s ease, border-color .22s ease; }
.home-lecture-banner:hover { transform: translateY(-1px); border-color: rgba(31,93,74,.24); }
.home-lecture-banner[hidden] { display: none; }
.home-lecture-banner img { width: 100%; height: auto; object-fit: contain; background: #fffaf2; }
.news-featured-section { padding-bottom: 0; }
.news-featured-heading { margin-bottom: 16px; }
.featured-news-list { display: grid; gap: 12px; }
.featured-news-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; min-height: 82px; padding: 18px 20px; border: 1px solid var(--color-border); border-radius: 14px; background: white; box-shadow: var(--shadow-soft); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.featured-news-card:hover, .featured-news-card:focus-visible { border-color: rgba(31,93,74,.36); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(10,38,30,.12); outline: 0; }
.featured-news-number { display: grid; place-items: center; grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: #eef7f2; color: var(--color-primary); font-weight: 900; }
.featured-news-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text); font-size: 18px; line-height: 1.35; }
.featured-news-card small { grid-column: 2; color: var(--color-muted); font-size: 14px; }
.featured-news-card em { grid-column: 3; grid-row: 1 / span 2; color: var(--color-primary); font-size: 14px; font-style: normal; font-weight: 900; white-space: nowrap; }
.download-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.download-row.is-single { grid-template-columns: 1fr; }
.download-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; max-width: 100%; min-width: 0; padding: 8px 10px; background: white; border: 1px solid var(--color-primary); border-radius: 12px; }
.download-card > div { min-width: 0; }
.download-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(31,93,74,.35); border-radius: 8px; color: var(--color-primary); font-size: 18px; font-weight: 900; }
.download-card strong { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.3; }
.download-card p { margin: 2px 0 0; color: var(--color-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.download-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.download-actions a { min-width: 0; min-height: 32px; padding: 0 10px; border-color: var(--color-primary); background: var(--color-primary); color: white; font-size: 12px; white-space: nowrap; }
.download-actions a:last-child { background: white; color: var(--color-primary); }
.download-actions a:hover { background: var(--color-primary-light); color: white; }
.download-card button[disabled] { background: #eef3f0; color: var(--color-muted); border-color: var(--color-border); cursor: not-allowed; }

.contact-band { width: min(var(--wide-width), calc(100% - 120px)); margin: 16px auto 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.12fr 1.45fr 360px; background: white; border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.contact-item, .contact-actions { padding: 16px 20px; border-right: 1px solid var(--color-border); }
.contact-actions { border-right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-item span { display: block; color: var(--color-muted); font-size: 13px; margin-bottom: 6px; }
.contact-item strong { display: block; font-size: 16px; line-height: 1.45; }
.contact-item small { display: block; color: var(--color-muted); margin-top: 2px; }
.contact-actions .contact-button { min-height: 42px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 800; }
.contact-actions .contact-button.primary { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.contact-actions .contact-button.secondary { background: white; color: var(--color-primary); border-color: var(--color-primary); }
.contact-actions .contact-button.secondary:hover { background: #f4f8f6; color: var(--color-primary); border-color: var(--color-primary-light); }

.program-schedule-section { width: min(var(--wide-width), calc(100% - 120px)); margin: 32px auto 0; }
.schedule-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.schedule-heading h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.schedule-heading p { margin: 6px 0 0; color: var(--color-muted); font-size: 15px; }
.schedule-shell { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr); gap: 18px; }
.schedule-calendar, .schedule-detail { background: white; border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow-soft); }
.schedule-calendar { padding: 18px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendar-toolbar strong { font-size: 20px; }
.calendar-toolbar button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 10px; background: white; color: var(--color-primary); font-size: 24px; cursor: pointer; }
.calendar-toolbar button:hover { border-color: var(--color-primary); background: #f4f8f6; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 6px; color: var(--color-muted); font-size: 12px; font-weight: 800; text-align: center; }
.calendar-weekdays .is-sunday, .calendar-day.is-sunday { color: #c43d3d; }
.calendar-weekdays .is-saturday, .calendar-day.is-saturday { color: #315fa8; }
.calendar-day.is-holiday { color: #c43d3d; }
.calendar-day { position: relative; display: grid; place-items: center; min-height: 42px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--color-text); font-weight: 800; cursor: pointer; }
.calendar-day.is-empty { min-height: 42px; }
.calendar-day:hover { border-color: rgba(31,93,74,.25); background: #f4f8f6; }
.calendar-day.is-today { border-color: var(--color-gold); color: #8a5a12; }
.calendar-day.is-selected { background: var(--color-primary); color: white; }
.calendar-day.is-selected:is(.is-sunday, .is-saturday, .is-holiday) { color: white; }
.calendar-day.has-schedule::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); }
.calendar-day.is-selected.has-schedule::after { background: white; }
.schedule-detail { padding: 20px; }
.schedule-detail-head { display: grid; gap: 4px; margin-bottom: 14px; }
.schedule-detail-head span { color: var(--color-muted); font-size: 13px; }
.schedule-detail-head strong { font-size: 22px; }
.schedule-event-list { display: grid; gap: 12px; }
.schedule-event { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--color-border); border-radius: 14px; background: #fbfdfb; }
.schedule-event h3 { margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.schedule-event p { margin: 0; color: var(--color-muted); font-size: 14px; }
.schedule-description { color: var(--color-text) !important; font-weight: 700; }
.schedule-meta { display: grid; gap: 6px; margin: 2px 0 0; }
.schedule-meta div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; align-items: start; }
.schedule-meta dt { color: var(--color-primary); font-size: 13px; font-weight: 900; }
.schedule-meta dd { margin: 0; color: var(--color-muted); font-size: 14px; }
.schedule-registration-note { display: inline-flex; width: fit-content; max-width: 100%; padding: 8px 11px; border-radius: 8px; background: #eef5f1; color: var(--color-primary) !important; font-weight: 900; line-height: 1.5; }
.schedule-poster { width: 100%; max-height: 280px; object-fit: contain; border-radius: 10px; background: #eef5f1; }
.schedule-status { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px; background: #eaf4ef; color: var(--color-primary); font-size: 12px; font-weight: 800; }
.schedule-status.status-group { background: #f6eee2; color: #8a5a12; }
.schedule-status.status-closed { background: #f1f1f1; color: var(--color-muted); }
.schedule-status.status-external { background: #f6eee2; color: #8a5a12; }
.schedule-status.status-confirmed-unavailable, .schedule-status.status-group-unavailable, .schedule-status.status-planned-unavailable { background: #fff0ed; color: #b42318; }
.schedule-reserve { justify-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 8px; background: var(--color-primary); color: white; font-size: 13px; font-weight: 800; }
.schedule-reserve.is-disabled { background: #eef3f0; color: var(--color-muted); cursor: not-allowed; }
.schedule-empty, .gallery-empty { margin: 0; padding: 22px; border: 1px dashed var(--color-border); border-radius: 14px; color: var(--color-muted); background: white; }
.schedule-empty { display: grid; gap: 6px; }
.schedule-empty strong { color: var(--color-text); font-size: 17px; }
.schedule-empty span { font-size: 14px; }

.page-hero { min-height: 280px; margin-top: 0; display: grid; align-items: end; background: linear-gradient(90deg, rgba(31,93,74,.78), rgba(31,93,74,.32)), url('./assets/facility-drone.jpg') center 50%/cover; color: white; }
.page-hero > div { width: min(var(--container-width), calc(100% - 64px)); margin: 0 auto; padding: 72px 0 54px; }
.page-hero span { color: #f0b45a; font-weight: 800; }
.page-hero h1 { margin-top: 8px; font-size: clamp(34px, 4vw, 52px); }
.page-hero p { max-width: 720px; margin: 14px 0 0; color: rgba(255,255,255,.9); font-size: 18px; }
.section { width: min(var(--container-width), calc(100% - 64px)); margin: 0 auto; padding: 72px 0; }
.detail-section { font-size: 16px; }
.section-heading { display: grid; gap: 8px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 32px; }
.intro-grid, .program-list, .reserve, .visit-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.intro-grid p, .visit-panel p, .reserve-copy p { color: var(--color-muted); line-height: 1.85; }
.about-guide { padding-top: 0; }
.about-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-info-card { display: grid; align-content: start; gap: 10px; min-height: 210px; padding: 24px; border: 1px solid var(--color-border); border-radius: 16px; background: white; box-shadow: var(--shadow-soft); }
.about-info-card > span { color: #b87a1c; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.about-info-card h3 { margin: 0; color: var(--color-primary); font-size: 24px; }
.about-info-card p { margin: 0; color: var(--color-muted); line-height: 1.75; }
.basic-info-list { display: grid; gap: 9px; margin: 4px 0 0; padding: 0; list-style: none; }
.basic-info-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: start; padding-top: 9px; border-top: 1px solid rgba(31,93,74,.12); }
.basic-info-list strong { color: var(--color-text); font-weight: 800; }
.basic-info-list span { color: var(--color-muted); line-height: 1.55; }
.guide-note { font-size: 14px; }
.greeting-panel > div { display: grid; gap: 18px; }
.greeting-direction { display: grid; gap: 14px; margin-top: 4px; padding-top: 22px; border-top: 1px solid rgba(31,93,74,.14); }
.greeting-direction h3 { margin: 0; color: var(--color-primary); font-size: 26px; }
.greeting-direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.greeting-direction-grid article { display: grid; gap: 8px; min-height: 112px; padding: 18px; border: 1px solid var(--color-border); border-radius: 14px; background: #fbfdfb; }
.greeting-direction-grid strong { color: var(--color-text); font-size: 17px; }
.greeting-direction-grid span { color: var(--color-muted); font-size: 14px; }
.program-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.program-catalog article, .program-card, .reserve-link-panel, .visit-panel, .article-page, .page-list a { background: white; border: 1px solid var(--color-border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-soft); }
.program-catalog h3, .program-card h3 { margin-top: 0; }
.program-catalog li { margin: 7px 0; }
.program-list { margin-top: 20px; }
.text-button { color: var(--color-primary); font-weight: 800; }
.expanded { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expanded figure { margin: 0; background: white; border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.expanded figure button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.expanded figcaption { display: grid; gap: 5px; padding: 14px 16px 16px; }
.expanded figcaption a { color: var(--color-primary); font-weight: 800; font-size: 14px; }
.gallery-index-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.gallery-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-category-card { display: grid; overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: white; box-shadow: var(--shadow-soft); }
.gallery-category-card:hover { transform: translateY(-2px); border-color: rgba(31,93,74,.35); }
.gallery-card-image { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #eef5f1, #fbfdfb); }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--color-primary); font-size: 44px; font-weight: 900; }
.gallery-category-card strong { padding: 14px 16px 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.gallery-detail-panel { display: grid; gap: 20px; }
.page-list { display: grid; gap: 14px; }
.page-list a { display: grid; gap: 8px; }
.article-page { max-width: 900px; }
.article-page h2 { font-size: 30px; }
.article-page h3 { margin: 22px 0 10px; color: var(--color-primary); font-size: 22px; }
.article-page p { line-height: 1.85; color: var(--color-muted); }
.article-page ul { margin: 14px 0 18px; padding-left: 22px; color: var(--color-muted); line-height: 1.9; }
.article-page li { margin: 4px 0; }
.policy-page { max-width: 980px; }
.policy-page h2 { margin-bottom: 14px; }
.policy-note, .policy-pending { padding: 16px 18px; border-radius: 12px; line-height: 1.75; }
.policy-note { border: 1px solid rgba(31,93,74,.22); background: #f4f8f6; color: #43544c !important; }
.policy-pending { border: 1px solid rgba(213,150,54,.36); background: #fff9ee; color: #6d5630 !important; }
.policy-pending strong { color: #9a6417; }
.policy-toc { margin: 28px 0 34px; padding: 22px 24px; border: 1px solid var(--color-border); border-radius: 14px; background: #fbfdfb; }
.policy-toc h3 { margin-top: 0; color: #17251f; }
.policy-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; margin: 0; padding-left: 22px; color: var(--color-text); }
.policy-toc a { color: var(--color-primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.policy-section { scroll-margin-top: 96px; padding-top: 8px; }
.policy-section + .policy-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.policy-data-list { display: grid; gap: 12px; margin: 18px 0; }
.policy-data-list section { padding: 18px; border: 1px solid var(--color-border); border-radius: 12px; background: #fbfdfb; }
.policy-data-list h4 { margin: 0 0 8px; color: #17251f; font-size: 17px; }
.policy-data-list p { margin: 6px 0 0; }
.policy-table { display: block; width: 100%; margin: 18px 0; overflow-x: auto; border-collapse: collapse; color: var(--color-muted); }
.policy-table caption { margin-bottom: 8px; color: var(--color-primary); font-weight: 800; text-align: left; }
.policy-table thead, .policy-table tbody { display: table; width: 100%; min-width: 720px; }
.policy-table th, .policy-table td { padding: 13px 14px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.policy-table th { background: #f4f8f6; color: #17251f; font-weight: 800; }
.policy-table td:first-child { color: var(--color-primary); font-weight: 800; }
.policy-contact-list { display: grid; margin: 16px 0; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.policy-contact-list div { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.policy-contact-list div + div { border-top: 1px solid var(--color-border); }
.policy-contact-list dt, .policy-contact-list dd { margin: 0; padding: 13px 15px; }
.policy-contact-list dt { background: #f4f8f6; color: var(--color-primary); font-weight: 800; }
.policy-contact-list dd { color: var(--color-muted); }
.notice-poster-slot { margin: 20px 0; }
.notice-poster-slot img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: #eef5f1; }
.notice-caution { color: var(--color-primary) !important; font-weight: 700; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.info-list dt { font-weight: 800; color: var(--color-primary); }
.info-list dd { margin: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.map-links a { padding: 7px 11px; border: 1px solid var(--color-primary); border-radius: 999px; color: var(--color-primary); font-weight: 800; }
.phone-reserve { margin-top: 16px; padding: 14px; background: #f4f8f6; border-radius: 12px; }

.reservation-section { padding-top: 56px; }
.reservation-card { max-width: 800px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); background: white; border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow-soft); }
.reservation-card .section-heading { margin-bottom: 24px; }
.reservation-card .section-heading p { margin: 0; color: var(--color-muted); line-height: 1.75; }
.reservation-form { display: grid; gap: 20px; }
.reservation-form .inquiry-only, .reservation-form .inquiry-message-required { display: none; }
.reservation-form.is-inquiry .reservation-only, .reservation-form.is-inquiry .reservation-only-field { display: none; }
.reservation-form.is-inquiry .inquiry-only { display: grid; }
.reservation-form.is-inquiry .inquiry-message-required { display: inline; }
.form-fieldset { margin: 0; padding: 0; border: 0; }
.form-fieldset legend, .form-field label { display: block; margin-bottom: 8px; font-weight: 800; color: var(--color-text); }
.required-mark { color: #c24135; font-weight: 900; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label, .privacy-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-group label { min-height: 44px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 999px; background: #fbfdfb; font-weight: 800; }
.radio-group input, .privacy-check input { accent-color: var(--color-primary); }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--color-border); border-radius: 10px; background: white; color: var(--color-text); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input, .form-field select { min-height: 46px; padding: 0 14px; }
.form-field textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(31, 93, 74, .10); outline: 0; }
.form-field .has-error { border-color: #c24135; }
.form-field input[readonly] { background: #f4f8f6; color: var(--color-primary); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.program-picker { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.program-picker legend { margin-bottom: 8px; font-weight: 800; color: var(--color-text); }
.program-picker-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.program-picker-legend small { color: var(--color-muted); font-size: 13px; font-weight: 700; line-height: 1.45; }
.program-select-list { display: grid; gap: 14px; }
.program-choice { display: grid; gap: 10px; padding: 15px; border: 1px solid rgba(31,93,74,.14); border-radius: 14px; background: #fbfdfb; }
.program-choice label { margin-bottom: 0; }
.program-dependent { display: grid; gap: 7px; padding-top: 2px; }
.program-dependent label { color: var(--color-muted); font-size: 14px; }
.program-price { margin: 0; padding: 11px 12px; border-radius: 10px; background: #eef7f2; color: var(--color-muted); font-size: 14px; line-height: 1.5; }
.program-price strong { margin-right: 8px; color: var(--color-text); }
.program-price span { color: var(--color-primary); font-weight: 800; }
.program-price small { display: block; margin-top: 4px; color: var(--color-muted); }
.field-error { min-height: 20px; margin: 6px 0 0; color: #b42318; font-size: 13px; line-height: 1.45; }
.field-note { margin: 7px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.45; }
.form-status { min-height: 22px; margin: 0; color: #b42318; font-size: 14px; font-weight: 700; }
.form-status.is-success { color: var(--color-primary); }
.form-status.is-error { color: #b42318; }
.field-helper { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.field-helper span { margin-top: 6px; color: var(--color-muted); font-size: 13px; white-space: nowrap; }
.time-block-notice { margin: 8px 0 0; padding: 10px 12px; border: 1px solid rgba(180,35,24,.18); border-radius: 10px; background: #fff8f6; color: #8f1f16; font-size: 13px; font-weight: 700; line-height: 1.55; }
.privacy-box { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--color-border); border-radius: 12px; background: #fbfdfb; }
.privacy-check { align-items: flex-start; font-weight: 800; }
.privacy-check input { margin-top: 5px; }
.privacy-toggle { justify-self: start; min-height: 36px; padding: 4px 0; border: 0; background: transparent; color: var(--color-primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-detail { padding: 14px 16px; border-radius: 10px; background: white; color: var(--color-muted); }
.privacy-detail strong { display: block; margin-bottom: 8px; color: var(--color-text); }
.privacy-detail ul { margin: 0; padding-left: 18px; }
.privacy-detail li { margin: 5px 0; }
.form-guide, .special-program-info { padding: 16px; border: 1px solid rgba(31,93,74,.18); border-radius: 12px; background: #f4f8f6; color: var(--color-muted); }
.form-guide { gap: 14px; }
.form-guide p { margin: 0; line-height: 1.75; }
.inquiry-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inquiry-contact-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid rgba(31,93,74,.16); border-radius: 12px; background: white; color: var(--color-text); }
.inquiry-contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #eaf4ef; color: var(--color-primary); font-size: 12px; font-weight: 900; letter-spacing: 0; }
.inquiry-contact-card strong, .contact-value { display: block; }
.inquiry-contact-card strong { margin-bottom: 3px; font-size: 16px; font-weight: 900; }
.contact-value { color: var(--color-primary); font-size: 17px; font-weight: 900; line-height: 1.35; user-select: text; }
.mobile-contact-link { display: none; }
.inquiry-contact-card small { display: block; margin-top: 7px; color: var(--color-muted); font-size: 13px; line-height: 1.55; }
.mobile-contact-hint { display: none; margin-top: 5px; color: var(--color-primary); font-size: 12px; font-style: normal; font-weight: 800; }
.inquiry-form-note { padding-top: 2px; color: var(--color-primary); font-weight: 800; }
.special-program-info { margin-top: 10px; }
.special-program-info strong { display: block; margin-bottom: 8px; color: var(--color-primary); }
.special-program-info ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin: 0; padding-left: 18px; }
.reservation-submit { justify-self: stretch; min-height: 50px; margin-top: 4px; font-size: 16px; }
.reservation-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

.admin-page { background: #f3f7f5; }
.admin-hero { min-height: 240px; }
.admin-section { padding-top: 52px; }
.admin-panel, .admin-card { min-width: 0; background: white; border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow-soft); }
.admin-panel { max-width: 840px; margin: 0 auto; padding: clamp(24px, 4vw, 36px); }
.admin-wide { max-width: min(1180px, 100%); }
.admin-panel h2 { margin: 0 0 10px; font-size: 26px; }
.admin-panel p { color: var(--color-muted); }
.admin-dashboard { display: grid; gap: 20px; }
.admin-grid, .admin-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-menu-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-card { display: grid; gap: 16px; min-height: 150px; padding: 22px; }
.admin-card strong { font-size: 20px; }
.admin-card span { align-self: end; justify-self: start; padding: 5px 10px; border-radius: 999px; background: #eef5f1; color: var(--color-primary); font-size: 13px; font-weight: 900; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-stat-card { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--color-border); border-radius: 16px; background: white; box-shadow: var(--shadow-soft); }
.admin-stat-card span { color: var(--color-muted); font-size: 14px; font-weight: 800; }
.admin-stat-card strong { color: var(--color-primary); font-size: 34px; line-height: 1; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-section-head h2 { margin: 0; }
.admin-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 18px 0; padding-left: 20px; color: var(--color-muted); }
.admin-logout { border: 1px solid var(--color-primary); border-radius: 999px; background: white; color: var(--color-primary); padding: 8px 12px; font-weight: 800; cursor: pointer; }
.admin-login-form { display: grid; gap: 16px; }
.admin-toolbar { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, .8fr)) auto auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.admin-toolbar.reservation-toolbar { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.admin-toolbar label { display: grid; gap: 6px; color: var(--color-muted); font-size: 13px; font-weight: 800; }
.admin-toolbar input, .admin-toolbar select { min-height: 40px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 8px; background: white; }
.admin-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; }
.admin-table { width: 100%; min-width: 980px; border-collapse: collapse; background: white; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.admin-table th { background: #f4f8f6; color: var(--color-primary); font-weight: 900; white-space: nowrap; }
.admin-program-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-program-list li { padding: 4px 8px; border-radius: 999px; background: #eef7f2; color: var(--color-primary); font-size: 12px; font-weight: 800; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 210px; }
.admin-row-actions button, .admin-row-actions select { min-height: 32px; border: 1px solid var(--color-border); border-radius: 8px; background: white; color: var(--color-primary); font-weight: 800; cursor: pointer; }
.admin-row-actions button { padding: 0 9px; }
.admin-row-actions select { padding: 0 8px; }
.status-badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #eef5f1; color: var(--color-primary); font-size: 12px; font-weight: 900; white-space: nowrap; }
.status-확인중 { background: #fff5df; color: #8a5a12; }
.status-처리완료 { background: #eef1f4; color: #53606a; }
.status-취소 { background: #fff0ed; color: #b42318; }
.admin-detail { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.admin-detail-list { display: grid; gap: 0; margin: 0; }
.admin-detail-list div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.admin-detail-list dt { color: var(--color-primary); font-weight: 900; }
.admin-detail-list dd { margin: 0; white-space: pre-wrap; }
.admin-memo-editor { display: grid; gap: 8px; margin-top: 18px; }
.admin-memo-editor label { color: var(--color-primary); font-weight: 900; }
.admin-memo-editor textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; resize: vertical; }
.admin-content-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.admin-content-layout > * { min-width: 0; }
.admin-content-form { display: grid; gap: 14px; }
.admin-check, .admin-check-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 800; }
.admin-check input { accent-color: var(--color-primary); }
.admin-search-inline { min-height: 38px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 8px; }

.has-lightbox-open, .has-result-modal-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px; background: rgba(10,20,16,.84); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.lightbox-close { position: fixed; top: 24px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: white; color: var(--color-primary); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.lightbox-nav { position: fixed; top: 50%; display: grid; place-items: center; width: 54px; height: 62px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.92); color: var(--color-primary); font-size: 42px; line-height: 1; cursor: pointer; box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--color-primary); color: white; }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: clamp(14px, 4vw, 54px); }
.lightbox-next { right: clamp(14px, 4vw, 54px); }
.reservation-result-modal { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 24px; background: rgba(10,20,16,.54); }
.reservation-result-modal[hidden] { display: none; }
.reservation-result-panel { position: relative; display: grid; justify-items: center; gap: 14px; width: min(460px, 100%); padding: 38px 32px 30px; border: 1px solid rgba(31,93,74,.18); border-radius: 16px; background: white; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.reservation-result-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #eaf4ef; color: var(--color-primary); font-size: 30px; font-weight: 900; }
.reservation-result-modal.is-error .reservation-result-icon { background: #fff0ed; color: #b42318; }
.reservation-result-panel h2 { margin: 0; color: #15231d; font-size: 23px; line-height: 1.35; }
.reservation-result-panel p { margin: 0; color: var(--color-muted); font-size: 16px; line-height: 1.7; }
.reservation-result-panel .button { min-width: 132px; margin-top: 6px; }
.reservation-result-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4f8f6; color: var(--color-primary); font-size: 24px; line-height: 1; cursor: pointer; }
.reservation-result-close:hover { background: var(--color-primary); color: white; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-top: 56px; padding: 36px clamp(24px, 5vw, 72px); background: #12372d; color: white; }
.site-footer p { margin: 6px 0 0; color: rgba(255,255,255,.72); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 8px; color: rgba(255,255,255,.66); font-size: 13px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.footer-note { font-size: 13px; }
.copyright { white-space: nowrap; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gallery-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 18px; align-items: center; margin: 22px 0 12px; }
.gallery-category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-category-filters button { min-height: 42px; padding: 8px 18px; border: 1px solid var(--color-border); border-radius: 6px; background: white; color: var(--color-primary); font: inherit; font-weight: 700; cursor: pointer; }
.gallery-category-filters button[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.gallery-category-filters button:hover, .gallery-category-filters button:focus-visible { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(16,91,74,.12); }
.gallery-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
.gallery-search input, .admin-gallery-filters input, .admin-gallery-filters select { min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: 6px; background: white; font: inherit; }
.gallery-search button { min-height: 44px; padding: 8px 15px; border: 1px solid var(--color-primary); border-radius: 6px; background: var(--color-primary); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.gallery-search .gallery-search-reset { background: white; color: var(--color-primary); }
.gallery-result-summary { min-height: 24px; margin: 0 0 14px; color: var(--color-muted); font-size: 14px; }
.gallery-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-post-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(25,55,45,.07); transition: transform .18s ease, box-shadow .18s ease; }
.gallery-post-card:hover, .gallery-post-card:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(25,55,45,.13); outline: 2px solid transparent; }
.gallery-post-cover { aspect-ratio: 4 / 3; overflow: hidden; background: #eef5f1; }
.gallery-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery-post-placeholder { display: grid; place-items: center; height: 100%; color: var(--color-muted); }
.gallery-post-card-body { display: grid; gap: 6px; padding: 13px; }
.gallery-post-card-body h3 { min-width: 0; margin: 0; overflow: hidden; color: #17241f; font-size: 18px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.gallery-post-card-body p, .gallery-post-card-body time { margin: 0; color: var(--color-muted); font-size: 14px; }
.gallery-category-badge { display: inline-flex; justify-self: start; padding: 4px 9px; border: 1px solid #b8d3ca; border-radius: 999px; background: #f1f8f5; color: var(--color-primary); font-size: 12px; font-weight: 800; }
.gallery-category-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.gallery-detail-category { margin-top: 30px; }
.gallery-detail-category h2 { margin: 0 0 12px; color: #17241f; font-size: 22px; }
.gallery-empty { grid-column: 1 / -1; padding: 42px 20px; border: 1px dashed var(--color-border); border-radius: 8px; background: #fbfdfc; text-align: center; color: var(--color-muted); }
.gallery-empty strong { display: block; margin-bottom: 5px; color: #24372f; font-size: 18px; }
.gallery-pagination { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 24px; }
.gallery-pagination button { min-width: 74px; min-height: 40px; border: 1px solid var(--color-primary); border-radius: 6px; background: white; color: var(--color-primary); font: inherit; font-weight: 700; cursor: pointer; }
.gallery-pagination button:disabled { opacity: .42; cursor: default; }
.gallery-post-detail { max-width: 1120px; }
.gallery-detail-back { display: inline-flex; margin-bottom: 20px; color: var(--color-primary); font-weight: 700; }
.gallery-detail-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.gallery-detail-header h1 { margin: 10px 0 15px; color: #17241f; font-family: "Noto Serif KR", serif; font-size: clamp(28px, 4vw, 42px); }
.gallery-detail-header dl { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.gallery-detail-header dl div { display: flex; gap: 8px; }
.gallery-detail-header dt { color: var(--color-muted); }
.gallery-detail-header dd { margin: 0; font-weight: 700; }
.gallery-detail-header p { max-width: 820px; margin: 20px 0 0; line-height: 1.8; }
.gallery-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-detail-grid button { overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 7px; background: #eef5f1; cursor: zoom-in; }
.gallery-detail-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-detail-grid button:hover img { transform: scale(1.02); }

.admin-gallery-stats { margin-bottom: 16px; padding: 14px 18px; border: 1px solid #b8d3ca; border-radius: 7px; background: #f1f8f5; color: var(--color-primary); font-weight: 700; }
.admin-gallery-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 28px; align-items: start; }
.admin-gallery-form { min-width: 0; }
.admin-gallery-upload { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 18px 0 12px; padding: 16px; border: 1px dashed #9abdb1; border-radius: 7px; background: #f7fbf9; }
.admin-gallery-upload p { margin: 4px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.6; }
.gallery-file-button { position: relative; flex: 0 0 auto; overflow: hidden; cursor: pointer; }
.gallery-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-gallery-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-gallery-image { overflow: hidden; border: 1px solid var(--color-border); border-radius: 7px; background: white; }
.admin-gallery-image.is-error { border-color: #c73b32; }
.admin-gallery-image > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef5f1; }
.admin-gallery-image-placeholder { display: grid !important; place-items: center; aspect-ratio: 4 / 3; background: #eef5f1; color: var(--color-muted); }
.admin-gallery-image > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; }
.admin-gallery-image-meta { flex-wrap: wrap; }
.admin-gallery-category-buttons { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 0 !important; }
.admin-gallery-category-buttons button { min-height: 32px; padding: 4px 2px; border: 1px solid var(--color-border); border-radius: 4px; background: white; color: var(--color-primary); font: inherit; font-size: 12px; cursor: pointer; }
.admin-gallery-category-buttons button.is-selected { background: var(--color-primary); color: white; }
.admin-gallery-batch-tools { margin-bottom: 16px; padding: 14px; border: 1px solid #b8d3ca; border-radius: 7px; background: #f7fbf9; }
.admin-gallery-batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.admin-gallery-batch-actions .button { min-height: 34px; padding: 5px 9px; font-size: 13px; }
.admin-gallery-batch-summary-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #dbe9e3; }
.admin-gallery-batch-summary-row input { min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 5px; background: white; font: inherit; }
.admin-gallery-image small { color: var(--color-muted); }
.admin-gallery-image-actions { border-top: 1px solid var(--color-border); }
.admin-gallery-image-actions button, .admin-row-actions button { min-height: 34px; padding: 5px 9px; border: 1px solid var(--color-border); border-radius: 5px; background: white; color: var(--color-primary); cursor: pointer; }
.admin-gallery-filters { display: grid; grid-template-columns: 1fr 150px; gap: 8px; margin-bottom: 14px; }
.admin-gallery-post-list { display: grid; gap: 10px; }
.admin-gallery-post-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--color-border); border-radius: 7px; }
.admin-gallery-post-thumb { display: grid; place-items: center; overflow: hidden; width: 96px; aspect-ratio: 4 / 3; border-radius: 5px; background: #eef5f1; color: var(--color-muted); font-size: 12px; }
.admin-gallery-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-post-card h3 { margin: 4px 0; font-size: 16px; }
.admin-gallery-post-card p, .admin-gallery-post-card small { margin: 0; color: var(--color-muted); font-size: 12px; }
.admin-gallery-post-card .admin-row-actions { display: grid; gap: 6px; }

@media (max-width: 1200px) {
  .brand::after { font-size: 21px; }
  .brand-logo { width: 56px; height: 56px; }
  .site-nav { gap: 18px; font-size: 15px; }
  .hero-content, .home-board, .program-schedule-section, .contact-band { width: min(calc(100vw - 48px), var(--container-width)); }
  .home-board { grid-template-columns: 1fr; }
  .schedule-shell { grid-template-columns: 1fr; }
  .notice { grid-column: auto; }
  .contact-inner { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .site-header { min-height: 78px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 24px; display: none; width: min(320px, calc(100vw - 48px)); padding: 14px; background: white; border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow-soft); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .hero { min-height: auto; }
  .hero-slides img { object-position: center center; }
  .hero-content { grid-template-columns: 1fr; gap: 18px; min-height: 500px; padding: 42px 0; }
  .hero-side { width: min(420px, 100%); }
  .gallery-preview, .program-catalog, .expanded, .gallery-category-grid, .admin-grid, .admin-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-toolbar, .admin-toolbar.reservation-toolbar, .admin-content-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-row, .intro-grid, .program-list, .reserve, .visit-panel, .about-card-grid, .greeting-direction-grid { grid-template-columns: 1fr; }
  .gallery-tools, .admin-gallery-layout { grid-template-columns: 1fr; }
  .gallery-post-grid, .gallery-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 993px) and (max-width: 1199px) {
  .gallery-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { gap: 14px; padding: 8px 18px; }
  .brand { gap: 11px; max-width: calc(100vw - 88px); }
  .brand::after { overflow: hidden; font-size: clamp(17px, 5vw, 20px); text-overflow: ellipsis; }
  .brand-logo { width: 50px; height: 50px; }
  .nav-toggle { font-size: 26px; }
  .site-nav { right: 18px; width: calc(100vw - 36px); }
  .hero-content, .home-board, .program-schedule-section, .contact-band, .section, .page-hero > div { width: min(100%, calc(100vw - 36px)); }
  .hero-content { min-height: 500px; gap: 16px; padding: 34px 0 28px; }
  .hero-main { max-width: 100%; }
  .hero .eyebrow { margin-bottom: 9px; font-size: 14px; }
  h1 { font-size: clamp(31px, 9.3vw, 38px); line-height: 1.18; }
  .hero-copy { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-side { border-radius: 14px; }
  .hero-info-card { min-height: auto; padding: 16px 18px; }
  .hero-info-card span { font-size: 16px; }
  .hero-info-card strong { font-size: 14px; }
  .home-board { gap: 18px; margin-top: 14px; }
  .home-card-heading { align-items: center; gap: 10px; }
  .home-card-heading h2 { font-size: 22px; }
  .home-card-heading p { font-size: 12px; }
  .featured-news-card { grid-template-columns: auto minmax(0, 1fr); min-height: 88px; padding: 16px; }
  .featured-news-card strong { white-space: normal; font-size: 16px; }
  .featured-news-card small { grid-column: 2; }
  .featured-news-card em { grid-column: 2; grid-row: auto; justify-self: start; font-size: 13px; }
  .about-info-card { min-height: auto; padding: 20px; }
  .basic-info-list li { grid-template-columns: 1fr; gap: 3px; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .photo-card img, .expanded figure img, .gallery-card-image img { object-fit: contain; background: #eef5f1; }
  .gallery-preview { gap: 10px; }
  .photo-card strong { font-size: 13px; line-height: 1.35; }
  .expanded, .gallery-category-grid, .contact-inner, .admin-grid, .admin-menu-grid, .admin-stat-grid, .admin-feature-list, .admin-content-layout { grid-template-columns: 1fr; }
  .admin-toolbar, .admin-toolbar.reservation-toolbar { grid-template-columns: 1fr; }
  .admin-section-head { align-items: stretch; flex-direction: column; }
  .admin-detail-list div { grid-template-columns: 1fr; gap: 4px; }
  .contact-item, .contact-actions { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-inner { border-radius: 14px; }
  .contact-item, .contact-actions { padding: 14px 16px; }
  .contact-actions .contact-button { min-height: 44px; }
  .schedule-heading h2 { font-size: 24px; }
  .schedule-calendar, .schedule-detail { padding: 14px; }
  .calendar-weekdays, .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 36px; border-radius: 8px; font-size: 13px; }
  .page-hero { min-height: 230px; background-position: center center; }
  .page-hero > div { padding: 52px 0 38px; }
  .page-hero p { font-size: 15px; }
  .reservation-card { padding: 22px 18px; }
  .gallery-category-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-category-filters button { padding-inline: 8px; }
  .gallery-search { grid-template-columns: 1fr auto; }
  .gallery-search-reset { grid-column: 1 / -1; }
  .gallery-post-grid, .gallery-detail-grid { grid-template-columns: 1fr; }
  .gallery-post-cover { aspect-ratio: 16 / 10; }
  .gallery-detail-grid button { aspect-ratio: auto; min-height: 220px; }
  .gallery-detail-grid img { object-fit: contain; }
  .admin-gallery-upload { align-items: stretch; flex-direction: column; }
  .admin-gallery-images, .admin-gallery-filters { grid-template-columns: 1fr; }
  .admin-gallery-post-card { grid-template-columns: 82px minmax(0, 1fr); }
  .admin-gallery-post-thumb { width: 82px; }
  .admin-gallery-post-card .admin-row-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .radio-group { display: grid; grid-template-columns: 1fr; }
  .field-helper { display: grid; gap: 0; }
  .special-program-info ul, .inquiry-contact-grid { grid-template-columns: 1fr; }
  .schedule-meta div { grid-template-columns: 1fr; gap: 1px; }
  .inquiry-contact-card { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 14px; }
  .inquiry-contact-icon { width: 42px; height: 42px; font-size: 11px; }
  .desktop-contact-value { display: none; }
  .mobile-contact-link { display: block; }
  .mobile-contact-hint { display: block; }
  .complete-actions { display: grid; }
  .download-card { grid-template-columns: 36px 1fr; }
  .download-card button, .download-actions { grid-column: 1 / -1; }
  .lightbox { padding: 18px 12px; }
  .lightbox img { max-width: 96vw; max-height: 74vh; border-radius: 10px; }
  .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-nav { width: 38px; height: 48px; font-size: 34px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .reservation-result-modal { padding: 18px; }
  .reservation-result-panel { padding: 34px 20px 24px; }
  .reservation-result-panel h2 { font-size: 21px; }
  .privacy-toggle { min-height: 40px; }
  .policy-page { padding: 22px 18px; }
  .policy-toc { padding: 18px; }
  .policy-toc ol { grid-template-columns: 1fr; }
  .policy-contact-list div { grid-template-columns: 1fr; }
  .policy-contact-list dt { padding-bottom: 4px; }
  .policy-contact-list dd { padding-top: 4px; }
  .footer-links a { min-height: 40px; }
  .site-footer { display: block; }
  .copyright { white-space: normal; margin-top: 18px; }
}
@media (max-width: 380px) {
  .download-actions { grid-template-columns: 1fr; }
  .download-actions a { min-height: 34px; }
  .photo-card strong { font-size: 12px; }
  .hero-content { min-height: 520px; }
}
